diff --git a/app/vue/dist/assets/Analytics-BgTKH9L-.js b/app/vue/dist/assets/Analytics-BgTKH9L-.js new file mode 100644 index 00000000..3d3d11bf --- /dev/null +++ b/app/vue/dist/assets/Analytics-BgTKH9L-.js @@ -0,0 +1,35 @@ +import{A as e,D as t,M as n,O as r,R as i,St as a,V as o,X as s,c,d as l,g as u,i as d,l as f,rt as p,s as m,t as h,u as g,v as _,xt as v,yt as y,z as b}from"./_plugin-vue_export-helper-p2JYVKvd.js";import"./Button-INoaGcLE.js";import{H as x,X as S,et as C}from"./index-6hg61Of-.js";import"./SuggestionItem-BCn16Hfa.js";import{t as w}from"./QueryEditor-CiDHRmdS.js";import"./Option-tgytz2q0.js";import"./Tab-z8y4UjVu.js";import{n as T,t as E}from"./useCurrentSchema-cTL0A8zd.js";var D=new Set([`DATE`,`TIME`,`TIMESTAMP`,`SECONDDATE`]);function O(e){return D.has(e.toUpperCase())}function k(e,t){let n=e.length,r=t.length;if(n===0)return r===1?`kpi`:`bar`;if(n===1&&O(e[0].dataType)&&r>=1)return`line`;if(n>=2&&r>=2)return`scatter`;if(n===2&&r===1)return`heatmap`;if(n===1&&r>=2)return`groupedBar`;if(n===1&&r===1){let t=e[0].distinctCount;return t!==void 0&&t<=5?`pie`:`bar`}return`bar`}function A(){let e=s(``),t=s(``),n=s(`table`),r=s([]),a=s([]),o=s([]),c=s(`bar`),l=s(!1),u=s(void 0),d=s(100),f=m(()=>k(r.value,a.value)),p=m(()=>({schema:e.value,object:t.value,objectType:n.value,dimensions:r.value,measures:a.value,filters:o.value,chartType:c.value,orderBy:u.value,limit:d.value}));i([r,a],()=>{l.value||(c.value=f.value)},{deep:!0});function h(e){r.value.some(t=>t.column===e.column)||(r.value=[...r.value,e])}function g(e){r.value=r.value.filter(t=>t.column!==e)}function _(e){a.value.some(t=>t.column===e.column)||(a.value=[...a.value,e])}function v(e){a.value=a.value.filter(t=>t.column!==e)}function y(e){o.value=[...o.value,e]}function b(e){o.value=o.value.filter(t=>t.column!==e)}function x(e){o.value=o.value.filter((t,n)=>n!==e)}function S(){o.value=[]}function C(){r.value=[],a.value=[],o.value=[],c.value=`bar`,l.value=!1,u.value=void 0,d.value=100}function w(e){c.value=e,l.value=!0}function T(r){e.value=r.schema,t.value=r.object,n.value=r.objectType,C()}return{schema:e,object:t,objectType:n,dimensions:r,measures:a,filters:o,chartType:c,orderBy:u,limit:d,suggestedChartType:f,config:p,addDimension:h,removeDimension:g,addMeasure:_,removeMeasure:v,addFilter:y,removeFilter:b,removeFilterAtIndex:x,clearFilters:S,setChartType:w,clearAll:C,setDataSource:T}}var j=1e4;function ee(){let e=s([]),t=s(null),n=s(!1),r=s(!0),{execute:i}=x();async function a(a,o){n.value=!0;try{let n=await i(`inspectTable-ui`,{schema:a,table:o}),s=n.fields||n.columns||[];e.value=s.map(e=>{let t=e.LENGTH??e.length,n={column:e.COLUMN_NAME||e.column_name||``,dataType:e.DATA_TYPE_NAME||e.data_type_name||``,nullable:(e.IS_NULLABLE||``)===`TRUE`};return t!=null&&(n.length=Number(t)),n});let c=n.TABLE_SIZE?.RECORD_COUNT??n.basic?.RECORD_COUNT??null;t.value=c===null?null:Number(c),r.value=t.value===null||t.value>j}finally{n.value=!1}}async function o(e){let t=await fetch(`/hana/analytics-ui`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok){let e=`${t.status} ${t.statusText}`;try{let n=await t.json();n.error&&(e=n.error)}catch{}throw Error(e)}return t.json()}function c(){e.value=[],t.value=null,n.value=!1,r.value=!0}return{columns:e,rowCount:t,loading:n,useServerAggregation:r,loadMetadata:a,fetchAggregated:o,clear:c}}var te={class:`data-source-picker`},M={class:`picker-row`},ne=[`value`],re=[`text`],ie=[`placeholder`,`value`],ae=[`text`],oe=h(_({__name:`DataSourcePicker`,emits:[`select`],setup(t,{emit:r}){let a=r,{resolvedSchema:o}=E(),u=s(``),f=s(``),m=s(`table`),h=T(`schemas-ui`,`SCHEMA_NAME`),g=T(`tables-ui`,`TABLE_NAME`),_=T(`views-ui`,`VIEW_NAME`);h.load(),i(o,e=>{e&&!u.value&&(u.value=e)},{immediate:!0}),i([u,m],()=>{f.value=``,u.value&&(m.value===`table`?g.load({schema:u.value}):_.load({schema:u.value}))});function v(e){let t=e.detail?.item?.text||e.detail?.item?.textContent||f.value;f.value=t,t&&a(`select`,u.value,t,m.value)}return(t,r)=>(e(),l(`div`,te,[c(`div`,M,[c(`ui5-input`,{class:`schema-input`,placeholder:`Schema`,value:u.value,"show-suggestions":``,onInput:r[0]||=e=>u.value=e.target.value,onSelectionChange:r[1]||=e=>u.value=e.detail?.item?.text||e.detail?.item?.textContent||u.value},[(e(!0),l(d,null,n(p(h).items.value,t=>(e(),l(`ui5-suggestion-item`,{key:t,text:t},null,8,re))),128))],40,ne),c(`ui5-select`,{class:`type-select`,onChange:r[2]||=e=>m.value=e.detail.selectedOption.dataset.value},[...r[4]||=[c(`ui5-option`,{"data-value":`table`,selected:``},`Table`,-1),c(`ui5-option`,{"data-value":`view`},`View`,-1)]],32)]),c(`ui5-input`,{class:`object-input`,placeholder:`Search ${m.value}s...`,value:f.value,"show-suggestions":``,onInput:r[3]||=e=>f.value=e.target.value,onSelectionChange:v},[(e(!0),l(d,null,n(m.value===`table`?p(g).items.value:p(_).items.value,t=>(e(),l(`ui5-suggestion-item`,{key:t,text:t},null,8,ae))),128))],40,ie)]))}}),[[`__scopeId`,`data-v-49623184`]]),se=new Set([`INTEGER`,`INT`,`BIGINT`,`SMALLINT`,`TINYINT`,`DECIMAL`,`DOUBLE`,`REAL`,`FLOAT`,`SMALLDECIMAL`]);function ce(){let e=s(null),t=s(null);function n(e){return se.has(e.toUpperCase())}function r(t,n){e.value=t,n.dataTransfer&&(n.dataTransfer.effectAllowed=`move`,n.dataTransfer.setData(`text/plain`,t.column))}function i(e,n){n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect=`move`),t.value=e}function a(){t.value=null}function o(t){let r=e.value;if(!r)return l(),null;let i={column:r,zone:t,defaultAggregation:n(r.dataType)?`SUM`:`COUNT`};return l(),i}function c(){l()}function l(){e.value=null,t.value=null}return{draggedColumn:e,dragOverZone:t,startDrag:r,dragOver:i,dragLeave:a,drop:o,endDrag:c,isNumericType:n}}var le={class:`drag-drop-config`},ue={class:`column-source`},de={class:`column-list`},fe=[`onDragstart`],N={class:`col-name`},pe={class:`col-dtype`},me={class:`drop-zones`},he=[`onClick`],ge={key:0,class:`zone-hint`},_e=[`onChange`],ve=[`data-value`,`selected`],ye=[`onClick`],be={key:0,class:`zone-hint`},xe=h(_({__name:`DragDropConfig`,props:{columns:{},dimensions:{},measures:{}},emits:[`addDimension`,`removeDimension`,`addMeasure`,`removeMeasure`,`updateAggregation`],setup(t,{emit:r}){let i=t,o=r,{dragOverZone:s,startDrag:u,dragOver:f,dragLeave:h,drop:_,endDrag:v,isNumericType:b}=ce(),x=m(()=>i.columns.filter(e=>!i.dimensions.find(t=>t.column===e.column)&&!i.measures.find(t=>t.column===e.column)));function S(e){e.preventDefault();let t=_(`dimensions`);t&&o(`addDimension`,{column:t.column.column,dataType:t.column.dataType})}function C(e){e.preventDefault();let t=_(`measures`);t&&o(`addMeasure`,{column:t.column.column,aggregation:t.defaultAggregation})}return(r,i)=>(e(),l(`div`,le,[c(`div`,ue,[i[5]||=c(`h4`,null,`Columns`,-1),c(`div`,de,[(e(!0),l(d,null,n(x.value,t=>(e(),l(`div`,{key:t.column,class:`column-item`,draggable:`true`,onDragstart:e=>p(u)(t,e),onDragend:i[0]||=(...e)=>p(v)&&p(v)(...e)},[c(`span`,{class:y([`col-type`,{numeric:p(b)(t.dataType)}])},a(p(b)(t.dataType)?`#`:`A`),3),c(`span`,N,a(t.column),1),c(`span`,pe,a(t.dataType),1)],40,fe))),128))])]),c(`div`,me,[c(`div`,{class:y([`drop-zone dimensions-zone`,{"drag-over":p(s)===`dimensions`}]),onDragover:i[1]||=e=>p(f)(`dimensions`,e),onDragleave:i[2]||=(...e)=>p(h)&&p(h)(...e),onDrop:S},[i[6]||=c(`h4`,null,`Dimensions (Group By)`,-1),(e(!0),l(d,null,n(t.dimensions,t=>(e(),l(`div`,{key:t.column,class:`zone-item`},[c(`span`,null,a(t.column),1),c(`ui5-button`,{icon:`decline`,design:`Transparent`,onClick:e=>o(`removeDimension`,t.column)},null,8,he)]))),128)),t.dimensions.length===0?(e(),l(`p`,ge,`Drop columns here`)):g(``,!0)],34),c(`div`,{class:y([`drop-zone measures-zone`,{"drag-over":p(s)===`measures`}]),onDragover:i[3]||=e=>p(f)(`measures`,e),onDragleave:i[4]||=(...e)=>p(h)&&p(h)(...e),onDrop:C},[i[7]||=c(`h4`,null,`Measures (Aggregate)`,-1),(e(!0),l(d,null,n(t.measures,t=>(e(),l(`div`,{key:t.column,class:`zone-item`},[c(`span`,null,a(t.column),1),c(`ui5-select`,{class:`agg-select`,onChange:e=>o(`updateAggregation`,t.column,e.detail.selectedOption.dataset.value)},[(e(),l(d,null,n([`SUM`,`AVG`,`COUNT`,`MIN`,`MAX`],e=>c(`ui5-option`,{key:e,"data-value":e,selected:t.aggregation===e},a(e),9,ve)),64))],40,_e),c(`ui5-button`,{icon:`decline`,design:`Transparent`,onClick:e=>o(`removeMeasure`,t.column)},null,8,ye)]))),128)),t.measures.length===0?(e(),l(`p`,be,`Drop numeric columns here`)):g(``,!0)],34)])]))}}),[[`__scopeId`,`data-v-fe89c52a`]]),Se={class:`filter-bar`},Ce=[`onClick`],we={class:`filter-form`},Te=[`data-value`],Ee=[`data-value`],De=[`value`],Oe=h(_({__name:`FilterBar`,props:{filters:{},columns:{}},emits:[`addFilter`,`removeFilter`,`clearAll`],setup(t,{emit:r}){let i=r,o=s(null),u=s(``),f=s(`=`),p=s(``),m=[`=`,`!=`,`>`,`<`,`>=`,`<=`,`IN`,`LIKE`,`BETWEEN`];function h(e){let t=o.value;t&&(t.opener=e.target,t.open=!0)}function _(){u.value&&p.value&&(i(`addFilter`,{column:u.value,operator:f.value,value:p.value}),u.value=``,f.value=`=`,p.value=``,o.value&&(o.value.open=!1))}return(r,s)=>(e(),l(`div`,Se,[(e(!0),l(d,null,n(t.filters,(t,n)=>(e(),l(`div`,{key:`${t.column}_${t.operator}_${t.value}`,class:`filter-chip`},[c(`span`,null,a(t.column)+` `+a(t.operator)+` `+a(t.value),1),c(`ui5-button`,{icon:`decline`,design:`Transparent`,onClick:e=>i(`removeFilter`,n)},null,8,Ce)]))),128)),c(`ui5-button`,{icon:`add`,design:`Transparent`,tooltip:`Add filter`,onClick:h}),t.filters.length>0?(e(),l(`ui5-button`,{key:0,design:`Transparent`,onClick:s[0]||=e=>i(`clearAll`)},`Clear all`)):g(``,!0),c(`ui5-popover`,{ref_key:`popoverRef`,ref:o,"header-text":`Add Filter`,placement:`Bottom`},[c(`div`,we,[c(`ui5-select`,{class:`filter-col`,onChange:s[1]||=e=>u.value=e.detail.selectedOption?.dataset?.value||``},[s[4]||=c(`ui5-option`,{"data-value":``},`Column...`,-1),(e(!0),l(d,null,n(t.columns,t=>(e(),l(`ui5-option`,{key:t.column,"data-value":t.column},a(t.column),9,Te))),128))],32),c(`ui5-select`,{class:`filter-op`,onChange:s[2]||=e=>f.value=e.detail.selectedOption?.dataset?.value||`=`},[(e(),l(d,null,n(m,e=>c(`ui5-option`,{key:e,"data-value":e},a(e),9,Ee)),64))],32),c(`ui5-input`,{class:`filter-val`,placeholder:`Value`,value:p.value,onInput:s[3]||=e=>p.value=e.target.value},null,40,De),c(`ui5-button`,{design:`Emphasized`,onClick:_},`Add`)])],512)]))}}),[[`__scopeId`,`data-v-29f3c046`]]),ke=function(e,t){return ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ke(e,t)};function P(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);ke(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ae=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),F=new(function(){function e(){this.browser=new Ae,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 e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(F.wxa=!0,F.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?F.worker=!0:!F.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(F.node=!0,F.svgSupported=!0):je(navigator.userAgent,F);function je(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var Me=`12px sans-serif`,Ne=20,Pe=100,Fe=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function Ie(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n=0)s=o*n.length;else for(var c=0;c=Ze&&(Xe=0),Xe++}function $e(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function I(e){if(typeof e!=`object`||!e)return e;var t=e,n=Ve.call(e);if(n===`[object Array]`){if(!Dt(e)){t=[];for(var r=0,i=e.length;r>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){B(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function hn(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?cn(s,o):cn(o,s))}function gn(e){return e.nodeName.toUpperCase()===`CANVAS`}var _n=/([&<>"'])/g,vn={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function yn(e){return e==null?``:(e+``).replace(_n,function(e,t){return vn[t]})}var bn=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xn=[],Sn=F.browser.firefox&&+F.browser.version.split(`.`)[0]<39;function Cn(e,t,n,r){return n||={},r?wn(e,t,n):Sn&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?wn(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function wn(e,t,n){if(F.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(gn(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(pn(xn,e,r,i)){n.zrX=xn[0],n.zrY=xn[1];return}}n.zrX=n.zrY=0}function Tn(e){return e||window.event}function En(e,t,n){if(t=Tn(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&Cn(e,i,t,n)}else{Cn(e,t,t,n);var a=Dn(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&bn.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Dn(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function On(e,t,n,r){e.addEventListener(t,n,r)}function kn(e,t,n,r){e.removeEventListener(t,n,r)}var An=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function jn(e){return e.which===2||e.which===3}var Mn=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a1&&r&&r.length>1){var a=Nn(r)/Nn(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Pn(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function In(){return[1,0,0,1,0,0]}function Ln(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Rn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function zn(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function Bn(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Vn(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function Hn(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Un(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}var Y=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),Wn=Math.min,Gn=Math.max,Kn=Math.abs,qn=[`x`,`y`],Jn=[`width`,`height`],Yn=new Y,Xn=new Y,Zn=new Y,Qn=new Y,$n=pr(),er=$n.minTv,tr=$n.maxTv,nr=[0,0],X=function(){function e(e,t,n,r){ir(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=Wn(e.x,this.x),n=Wn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Gn(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Gn(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return or(In(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&Y.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=ir(lr,t.x,t.y,t.width,t.height)),n instanceof e||(n=ir(ur,n.x,n.y,n.width,n.height));var s=!!r;$n.reset(i,s);var c=$n.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){ar(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n){e!==t&&ar(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Yn.x=Zn.x=t.x,Yn.y=Qn.y=t.y,Xn.x=Qn.x=t.x+t.width,Xn.y=Zn.y=t.y+t.height,Yn.transform(n),Qn.transform(n),Xn.transform(n),Zn.transform(n),e.x=Wn(Yn.x,Xn.x,Zn.x,Qn.x),e.y=Wn(Yn.y,Xn.y,Zn.y,Qn.y);var s=Gn(Yn.x,Xn.x,Zn.x,Qn.x),c=Gn(Yn.y,Xn.y,Zn.y,Qn.y);e.width=s-e.x,e.height=c-e.y},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=Ln(e||[]),Bn(e,e,Vt(dr,-t.x,-t.y)),Hn(e,e,Vt(dr,r,i)),Bn(e,e,Vt(dr,n.x,n.y)),e},e}(),rr=X.create,ir=X.set,ar=X.copy,or=X.calculateTransform,sr=X.applyTransform,cr=X.contain,lr=new X(0,0,0,0),ur=new X(0,0,0,0),dr=[];function fr(e,t,n,r,i,a,o,s){var c=Kn(t-n),l=Kn(r-e),u=Wn(c,l),d=qn[i],f=qn[1-i],p=Jn[i];t=l||!$n.bidirectional)&&(er[d]=-l,er[f]=0,$n.useDir&&$n.calcDirMTV())))}function pr(){var e=0,t=new Y,n=new Y,r={minTv:new Y,maxTv:new Y,useDir:!1,dirMinTv:new Y,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=Gn(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(br.copy(u.getBoundingRect()),u.transform&&br.applyTransform(u.transform),br.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Sr(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||mr}return!1}function Cr(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Sr(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==mr)){t.target=o;break}}}function wr(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Tr=32,Er=7;function Dr(e){for(var t=0;e>=Tr;)t|=e&1,e>>=1;return e+t}function Or(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function kr(e,t,n){for(n--;t>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function jr(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function Mr(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function Nr(e,t){var n=Er,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]=Er||m>=Er);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-jr(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c=Er||g>=Er);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;cs&&(c=s),Ar(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var Fr=!1;function Ir(){Fr||(Fr=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Lr(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Rr=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Lr}return e.prototype.traverse=function(e,t){for(var n=0;n=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),zr=F.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Br={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Br.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Br.bounceIn(e*2)*.5:Br.bounceOut(e*2-1)*.5+.5}},Vr=Math.pow,Hr=Math.sqrt,Ur=1e-8,Wr=1e-4,Gr=Hr(3),Kr=1/3,qr=Rt(),Jr=Rt(),Yr=Rt();function Xr(e){return e>-Ur&&eUr||e<-Ur}function Qr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function $r(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function ei(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(Xr(u)&&Xr(d))if(Xr(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(Xr(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Hr(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Vr(-y,Kr):Vr(y,Kr),b=b<0?-Vr(-b,Kr):Vr(b,Kr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Hr(u*u*u)),S=Math.acos(x)/3,C=Hr(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Gr*Math.sin(S)))/(3*o),T=(-s+C*(w-Gr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function ti(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(Xr(o)){if(Zr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(Xr(u))i[0]=-a/(2*o);else if(u>0){var d=Hr(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function ni(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function ri(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;qr[0]=c,qr[1]=l;for(var v=0;v<1;v+=.05)Jr[0]=Qr(e,n,i,o,v),Jr[1]=Qr(t,r,a,s,v),g=Zt(qr,Jr),g=0&&g=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(Xr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Hr(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function ci(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function li(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function ui(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;qr[0]=o,qr[1]=s;for(var f=0;f<1;f+=.05){Jr[0]=ai(e,n,i,f),Jr[1]=ai(t,r,a,f);var p=Zt(qr,Jr);p=0&&p=1?1:ei(0,r,a,1,e,s)&&Qr(0,i,o,1,s[0])}}}var mi=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||It,this.ondestroy=e.ondestroy||It,this.onrestart=e.onrestart||It,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=W(e)?e:Br[e]||pi(e)},e}(),hi=function(){function e(e){this.value=e}return e}(),gi=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new hi(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),_i=function(){function e(e){this._list=new gi,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new hi(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),vi={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 yi(e){return e=Math.round(e),e<0?0:e>255?255:e}function bi(e){return e=Math.round(e),e<0?0:e>360?360:e}function xi(e){return e<0?0:e>1?1:e}function Si(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?yi(parseFloat(t)/100*255):yi(parseInt(t,10))}function Ci(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?xi(parseFloat(t)/100):xi(parseFloat(t))}function wi(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Ti(e,t,n){return e+(t-e)*n}function Ei(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Di(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Oi=new _i(20),ki=null;function Ai(e,t){ki&&Di(ki,t),ki=Oi.put(e,ki||t.slice())}function ji(e,t){if(e){t||=[];var n=Oi.get(e);if(n)return Di(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in vi)return Di(t,vi[r]),Ai(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Ei(t,0,0,0,1);return}return Ei(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Ai(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ei(t,0,0,0,1);return}return Ei(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Ai(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Ei(t,+l[0],+l[1],+l[2],1):Ei(t,0,0,0,1);u=Ci(l.pop());case`rgb`:if(l.length>=3)return Ei(t,Si(l[0]),Si(l[1]),Si(l[2]),l.length===3?u:Ci(l[3])),Ai(e,t),t;Ei(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Ei(t,0,0,0,1);return}return l[3]=Ci(l[3]),Mi(l,t),Ai(e,t),t;case`hsl`:if(l.length!==3){Ei(t,0,0,0,1);return}return Mi(l,t),Ai(e,t),t;default:return}}Ei(t,0,0,0,1)}}function Mi(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Ci(e[1]),i=Ci(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Ei(t,yi(wi(o,a,n+1/3)*255),yi(wi(o,a,n)*255),yi(wi(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Ni(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function Pi(e,t){var n=ji(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return zi(n,n.length===4?`rgba`:`rgb`)}}function Fi(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=yi(Ti(o[0],s[0],c)),n[1]=yi(Ti(o[1],s[1],c)),n[2]=yi(Ti(o[2],s[2],c)),n[3]=xi(Ti(o[3],s[3],c)),n}}function Ii(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=ji(t[i]),s=ji(t[a]),c=r-i,l=zi([yi(Ti(o[0],s[0],c)),yi(Ti(o[1],s[1],c)),yi(Ti(o[2],s[2],c)),xi(Ti(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Li(e,t,n,r){var i=ji(e);if(e)return i=Ni(i),t!=null&&(i[0]=bi(W(t)?t(i[0]):t)),n!=null&&(i[1]=Ci(W(n)?n(i[1]):n)),r!=null&&(i[2]=Ci(W(r)?r(i[2]):r)),zi(Mi(i),`rgba`)}function Ri(e,t){var n=ji(e);if(n&&t!=null)return n[3]=xi(t),zi(n,`rgba`)}function zi(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Bi(e,t){var n=ji(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Vi=new _i(100);function Hi(e){if(G(e)){var t=Vi.get(e);return t||(t=Pi(e,-.1),Vi.put(e,t)),t}else if(gt(e)){var n=R({},e);return n.colorStops=V(e.colorStops,function(e){return{offset:e.offset,color:Pi(e.color,-.1)}}),n}return e}function Ui(e){return e.type===`linear`}function Wi(e){return e.type===`radial`}(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})();var Gi=Array.prototype.slice;function Ki(e,t,n){return(t-e)*n+e}function qi(e,t,n,r){for(var i=t.length,a=0;ar?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so)r.length=o;else for(var s=a;s=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=ca,s=t;if(it(t)){var c=ta(t);o=c,(c===1&&!ft(t[0])||c===2&&!ft(t[0][0]))&&(a=!0)}else if(ft(t)&&!vt(t))o=na;else if(G(t))if(!isNaN(+t))o=na;else{var l=ji(t);l&&(s=l,o=aa)}else if(gt(t)){var u=R({},s);u.colorStops=V(t.colorStops,function(e){return{offset:e.offset,color:ji(e.color)}}),Ui(t)?o=oa:Wi(t)&&(o=sa),s=u}i===0?this.valType=o:(o!==this.valType||o===ca)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=W(n)?n:Br[n]||pi(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=ua(r),c=la(r),l=0;l=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;lt);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?da:e[s];if((ua(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(ua(i))i===ra?qi(g,f[r],p[r],h):Ji(g,f[r],p[r],h);else if(la(i)){var _=f[r],v=p[r],y=i===oa;e[s]={type:y?`linear`:`radial`,x:Ki(_.x,v.x,h),y:Ki(_.y,v.y,h),colorStops:V(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Ki(e.offset,n.offset,h),color:ea(qi([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Ki(_.x2,v.x2,h),e[s].y2=Ki(_.y2,v.y2,h)):e[s].r=Ki(_.r,v.r,h)}else if(c)qi(g,f[r],p[r],h),n||(e[s]=ea(g));else{var b=Ki(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===na?e[n]=e[n]+r:t===aa?(ji(e[n],da),Yi(da,da,r,1),e[n]=ea(da)):t===ra?Yi(e[n],e[n],r,1):t===ia&&Xi(e[n],e[n],r,1)},e}(),pa=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){$e(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,ct(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a0&&s.addKeyframe(0,$i(c),r),this._trackKeys.push(o)}s.addKeyframe(e,$i(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function ma(){return new Date().getTime()}var ha=function(e){P(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}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 t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=ma()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(zr(t),!e._paused&&e.update())}zr(t)},t.prototype.start=function(){this._running||(this._time=ma(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=ma(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=ma()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new pa(e,t.loop);return this.addAnimator(n),n},t}(an),ga=300,_a=F.domSupported,va=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:V(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),ya={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},ba=!1;function xa(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Sa(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Ca(e){e&&(e.zrByTouch=!0)}function wa(e,t){return En(e.dom,new Ea(e,t),!0)}function Ta(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Ea=function(){function e(e,t){this.stopPropagation=It,this.stopImmediatePropagation=It,this.preventDefault=It,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Da={mousedown:function(e){e=En(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=En(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=En(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=En(this.dom,e);var t=e.toElement||e.relatedTarget;Ta(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){ba=!0,e=En(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){ba||(e=En(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=En(this.dom,e),Ca(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Da.mousemove.call(this,e),Da.mousedown.call(this,e)},touchmove:function(e){e=En(this.dom,e),Ca(e),this.handler.processGesture(e,`change`),Da.mousemove.call(this,e)},touchend:function(e){e=En(this.dom,e),Ca(e),this.handler.processGesture(e,`end`),Da.mouseup.call(this,e),new Date-+this.__lastTouchMomentHa||e<-Ha}var Wa=[],Ga=[],Ka=In(),qa=Math.abs,Ja=function(){function e(){}return e.prototype.getLocalTransform=function(e){return Ya(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Ua(this.rotation)||Ua(this.x)||Ua(this.y)||Ua(this.scaleX-1)||Ua(this.scaleY-1)||Ua(this.skewX)||Ua(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Va(n),this.invTransform=null);return}n||=In(),t?this.getLocalTransform(n):Va(n),e&&(t?zn(n,e,n):Rn(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||In(),Un(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Wa);var n=Wa[0]<0?-1:1,r=Wa[1]<0?-1:1,i=((Wa[0]-n)*t+n)/Wa[0]||0,a=((Wa[1]-r)*t+r)/Wa[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||In(),zn(Ga,e.invTransform,t),t=Ga);var n=this.originX,r=this.originY;(n||r)&&(Ka[4]=n,Ka[5]=r,zn(Ga,t,Ka),Ga[4]-=n,Ga[5]-=r,t=Ga),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&$t(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&$t(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&qa(e[0]-1)>1e-10&&qa(e[3]-1)>1e-10?Math.sqrt(qa(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Qa(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Vn(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.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})(),e}(),Ya=Ja.getLocalTransform;function Xa(){return new Ja}var Za=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function Qa(e,t){return et(e,t,Za)}function $a(e){eo||=new _i(100),e||=`12px sans-serif`;var t=eo.get(e);return t||(t={font:e,strWidthCache:new _i(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Re.measureText(`国`,e).width,asciiCharWidth:Re.measureText(`a`,e).width},eo.put(e,t)),t}var eo;function to(e){if(!(no>=ro)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=Re.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?no=ro:i>2&&no++,t}}var no=0,ro=5;function io(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=to(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function ao(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=Re.measureText(t,e.font).width,n.put(t,r)),r}function oo(e,t,n,r){var i=ao($a(t),e),a=uo(t);return new X(co(0,i,n),lo(0,a,r),i,a)}function so(e,t,n,r){var i=((e||``)+``).split(` +`);if(i.length===1)return oo(i[0],t,n,r);for(var a=new X(0,0,0,0),o=0;o=0?parseFloat(e)/100*t:parseFloat(e):e}function po(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=fo(r[0],n.width),l+=fo(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var mo=`__zr_normal__`,ho=Za.concat([`ignore`]),go=at(Za,function(e,t){return e[t]=!0,e},{ignore:!1}),_o={},vo=new X(0,0,0,0),yo=[],bo=function(){function e(e){this.id=Qe(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=vo,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(_o,n,d):po(_o,n,d),i.x=_o.x,i.y=_o.y,a=_o.align,o=_o.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=fo(f[0],d.width),m=fo(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new X(0,0,0,0);i.getLocalTransform(yo),Un(yo,yo),X.copy(_,d),_.applyTransform(yo)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?za:Ra},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&ji(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,zi(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},R(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(K(e))for(var n=ct(e),r=0;r0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(mo,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===mo;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(z(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){$e(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=Oo(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,Ao(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=z(r,e),a=z(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b0}var jo=function(e){P(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}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 t=this._children,n=0;n=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=z(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=z(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var es=ts;function ts(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`;break}return ns(e,t,n)}function ns(e,t,n){return G(e)?rs(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function rs(e){return!!Vo(e).match(/%$/)}function Z(e,t,n){return isNaN(t)?n?``+e:+e:(t=Ho(Uo(0,t),Bo),e=(+e).toFixed(t),n?e:+e)}function is(e){return e.sort(function(e,t){return e-t}),e}function as(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Go(e*t)/t===e)return n}return os(e)}function os(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return Uo(0,(a<0?0:i-1-a)-r)}function ss(e,t,n){var r=Wo(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=Yo(2*Wo(n||1)*Wo(r))/Xo,a=Yo(Wo(t))/Xo,o=Uo(0,qo(-i+a));return isFinite(o)||(o=NaN),o}function cs(e,t){var n=at(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=Jo(10,t),i=V(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=V(i,function(e){return Ko(e)}),s=at(o,function(e,t){return e+t},0),c=V(i,function(e,t){return e-o[t]});sl&&(l=c[d],u=d);++o[u],c[u]=0,++s}return V(o,function(e){return e/r})}function ls(e,t){var n=Uo(as(e),as(t)),r=e+t;return n>Bo?r:Z(r,n)}var us=Jo(2,53)-1;function ds(e){var t=Zo*2;return(e%t+t)%t}function fs(e){return e>-zo&&e=10&&t++,t}function _s(e,t){var n=gs(e),r=Jo(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,Z(e,-n)}function vs(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx=this._end)?(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0):!1},e})();function mc(){return[1/0,-1/0]}function hc(e,t){yc(t)&&(te[1]&&(e[1]=t))}function gc(e,t){yc(t)&&te[1]&&(e[1]=t)}function vc(e,t){bc(t[0],t[1])&&(t[0]e[1]&&(e[1]=t[1]))}function yc(e){return e!=null&&isFinite(e)}function bc(e,t){return yc(e)&&yc(t)&&e<=t}function xc(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Sc(e){bc(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Cc(){var e=`__ec_once_`+wc++;return function(t,n){Ft(t,e)||(t[e]=1,n())}}var wc=xs();function Tc(e,t,n){var r=J(),i=0;B(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function Ec(e){return e.value+``}function Dc(e){return e+``}function Oc(e,t){return q(t,!0)?e.seriesIndex+2:0}function kc(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function Ac(e,t){return{seriesType:e,overallReset:t}}function jc(e){return{overallReset:e}}var Mc=`.`,Nc=`___EC__COMPONENT__CONTAINER___`,Pc=`___EC__EXTENDED_CLASS___`;function Fc(e){var t={main:``,sub:``};if(e){var n=e.split(Mc);t.main=n[0]||``,t.sub=n[1]||``}return t}function Ic(e){Ct(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Lc(e){return!!(e&&e[Pc])}function Rc(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return zc(t)?n=function(e){P(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},nt(n,this)),R(n.prototype,e),n[Pc]=!0,n.extend=this.extend,n.superCall=Uc,n.superApply=Wc,n.superClass=t,n}}function zc(e){return W(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Bc(e,t){e.extend=t.extend}var Vc=Math.round(Math.random()*10);function Hc(e){var t=[`__\0is_clz`,Vc++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Uc(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function Wc(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Gc(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Ic(r),e.prototype.type=r;var i=Fc(r);if(!i.sub)t[i.main]=e;else if(i.sub!==Nc){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Nc]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Fc(e),r=[],i=t[n.main];return i&&i[Nc]?B(i,function(e,t){t!==Nc&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Fc(e).main]},e.getAllClassMainTypes=function(){var e=[];return B(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Fc(e).main];return n&&n[Nc]};function n(e){var n=t[e.main];return(!n||!n[Nc])&&(n=t[e.main]={},n[Nc]=!0),n}}function Kc(e,t){for(var n=0;n=0||i&&z(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var qc=Kc([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Jc=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return qc(this,e,t)},e}(),Yc=new _i(50);function Xc(e){if(typeof e==`string`){var t=Yc.get(e);return t&&t.image}else return e}function Zc(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=Yc.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!$c(t)&&a.pending.push(o)):(t=Re.loadImage(e,Qc,Qc),t.__zrImageSrc=e,Yc.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e}function Qc(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;l++)c-=s;var u=ao(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function rl(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=ao(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?il(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=ao(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function il(e,t,n){for(var r=0,i=0,a=e.length;ig&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=nl(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)rl(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=$a(l),S=0;S<_.length;S++)w=Math.max(ao(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var ol=function(){function e(){}return e}(),sl=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),cl=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function ll(e,t,n,r,i){var a=new cl,o=vl(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=el.lastIndex=0,h;(h=el.exec(o))!=null;){var g=h.index;g>m&&ul(a,o.substring(m,g),t,p),ul(a,h[2],t,p,h[1]),m=el.lastIndex}md){var ne=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length0&&m+r.accumWidth>r.width&&(u=t.split(` +`),l=!0),r.accumWidth=m}else{var h=ml(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(` +`);for(var g=$a(c),_=0;_=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var fl=at(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function pl(e){return!dl(e)||!!fl[e]}function ml(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=$a(t),f=0;fn:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function hl(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;X.set(gl,co(n,o,i),lo(r,s,a),o,s),X.intersect(t,gl,null,_l);var c=_l.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=co(c.x,c.width,i,!0),e.baseY=lo(c.y,c.height,a,!0)}}var gl=new X(0,0,0,0),_l={outIntersectRect:{},clamp:!0};function vl(e){return e==null?e=``:e+=``}function yl(e){var t=vl(e.text),n=e.font;return bl(e,ao($a(n),t),uo(n),null)}function bl(e,t,n,r){var i=new X(co(e.x||0,t,e.textAlign),lo(e.y||0,n,e.textBaseline),t,n),a=r??(xl(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function xl(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Sl=`__zr_style_`+Math.round(Math.random()*10),Cl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},wl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Cl[Sl]=!0;var Tl=[`z`,`z2`,`invisible`],El=[`invisible`],Dl=function(e){P(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=ct(t),r=0;r1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Il[0]=Pl(i)*n+e,Il[1]=Nl(i)*r+t,Ll[0]=Pl(a)*n+e,Ll[1]=Nl(a)*r+t,l(s,Il,Ll),u(c,Il,Ll),i%=Fl,i<0&&(i+=Fl),a%=Fl,a<0&&(a+=Fl),i>a&&!o?a+=Fl:ii&&(Rl[0]=Pl(p)*n+e,Rl[1]=Nl(p)*r+t,l(s,Rl,s),u(c,Rl,c))}var Gl={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Kl=[],ql=[],Jl=[],Yl=[],Xl=[],Zl=[],Ql=Math.min,$l=Math.max,eu=Math.cos,tu=Math.sin,nu=Math.abs,ru=Math.PI,iu=ru*2,au=typeof Float32Array<`u`,ou=[];function su(e){return Math.round(e/ru*1e8)/1e8%2*ru}function cu(e,t){var n=su(e[0]);n<0&&(n+=iu);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=iu?i=n+iu:t&&n-i>=iu?i=n-iu:!t&&n>i?i=n+(iu-su(n-i)):t&&n0&&(this._ux=nu(n/Ia/e)||0,this._uy=nu(n/Ia/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Gl.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=nu(e-this._xi),r=nu(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Gl.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Gl.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Gl.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),ou[0]=r,ou[1]=i,cu(ou,a),r=ou[0],i=ou[1];var o=i-r;return this.addData(Gl.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=eu(i)*n+e,this._yi=tu(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Gl.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Gl.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&au&&(this.data=new Float32Array(t));for(var n=0;n0&&a))for(var o=0;ol.length&&(this._expandData(),l=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Jl[0]=Jl[1]=Xl[0]=Xl[1]=Number.MAX_VALUE,Yl[0]=Yl[1]=Zl[0]=Zl[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;an||nu(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Gl.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=ii(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Gl.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=di(i,a,y,b,h,g,10),i=h,a=g;break;case Gl.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=eu(D)*T+C,s=tu(D)*E+w),m=$l(T,E)*Ql(iu,Math.abs(O)),i=eu(k)*T+C,a=tu(k)*E+w;break;case Gl.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Gl.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x0&&(e.lineTo(y,b),v=0),S){case Gl.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Gl.L:u=n[x++],d=n[x++];var w=nu(u-c),T=nu(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case Gl.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],te=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;ni(c,k,j,te,D,Kl),ni(l,A,ee,M,D,ql),e.bezierCurveTo(Kl[1],ql[1],Kl[2],ql[2],Kl[3],ql[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,te,M),c=te,l=M;break;case Gl.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;li(c,k,j,D,Kl),li(l,A,ee,D,ql),e.quadraticCurveTo(Kl[1],ql[1],Kl[2],ql[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case Gl.A:var ne=n[x++],re=n[x++],ie=n[x++],ae=n[x++],oe=n[x++],se=n[x++],ce=n[x++],le=!n[x++],ue=ie>ae?ie:ae,de=nu(ie-ae)>.001,fe=oe+se,N=!1;if(f){var E=p[g++];h+E>_&&(fe=oe+se*(_-h)/E,N=!0),h+=E}if(de&&e.ellipse?e.ellipse(ne,re,ie,ae,ce,oe,fe,le):e.arc(ne,re,ue,oe,fe,le),N)break lo;C&&(o=eu(oe)*ie+ne,s=tu(oe)*ae+re),c=eu(fe)*ie+ne,l=tu(fe)*ae+re;break;case Gl.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var pe=n[x++],me=n[x++];if(f){var E=p[g++];if(h+E>_){var he=_-h;e.moveTo(u,d),e.lineTo(u+Ql(he,pe),d),he-=pe,he>0&&e.lineTo(u+pe,d+Ql(he,me)),he-=me,he>0&&e.lineTo(u+$l(pe-he,0),d+me),he-=pe,he>0&&e.lineTo(u,d+$l(me-he,0));break lo}h+=E}e.rect(u,d,pe,me);break;case Gl.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Gl,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function uu(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||oe+s&&a>n+s||at+d&&u>r+d&&u>a+d&&u>s+d||ue+d&&l>n+d&&l>i+d&&l>o+d||lt+l&&c>r+l&&c>a+l||ce+l&&s>n+l&&s>i+l||sn||u+li&&(i+=hu);var f=Math.atan2(c,s);return f<0&&(f+=hu),f>=r&&f<=i||f+hu>=r&&f+hu<=i}function _u(e,t,n,r,i,a){if(a>t&&a>r||ai?s:0}var vu=lu.CMD,yu=Math.PI*2,bu=1e-4;function xu(e,t){return Math.abs(e-t)t&&l>r&&l>a&&l>s||l1&&wu(),p=Qr(t,r,a,s,Cu[0]),f>1&&(m=Qr(t,r,a,s,Cu[1]))),f===2?gt&&s>r&&s>a||s=0&&l<=1){for(var u=0,d=ai(t,r,a,l),f=0;fn||s<-n)return 0;var c=Math.sqrt(n*n-s*s);Su[0]=-c,Su[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=yu-1e-4){r=0,i=yu;var u=a?1:-1;return o>=Su[0]+e&&o<=Su[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=yu,i+=yu);for(var f=0,p=0;p<2;p++){var m=Su[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=yu+h),(h>=r&&h<=i||h+yu>=r&&h+yu<=i)&&(h>Math.PI/2&&h1&&(n||(s+=_u(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case vu.M:u=a[m++],d=a[m++],c=u,l=d;break;case vu.L:if(n){if(uu(c,l,a[m],a[m+1],t,r,i))return!0}else s+=_u(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case vu.C:if(n){if(du(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Tu(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case vu.Q:if(n){if(fu(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Eu(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case vu.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=_u(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(gu(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Du(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case vu.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(uu(u,d,f,d,t,r,i)||uu(f,d,f,p,t,r,i)||uu(f,p,u,p,t,r,i)||uu(u,p,u,d,t,r,i))return!0}else s+=_u(f,d,f,p,r,i),s+=_u(u,p,u,d,r,i);break;case vu.Z:if(n){if(uu(c,l,u,d,t,r,i))return!0}else s+=_u(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!xu(l,d)&&(s+=_u(c,l,u,d,r,i)||0),s!==0}function ku(e,t,n){return Ou(e,0,!1,t,n)}function Au(e,t,n,r){return Ou(e,t,!0,n,r)}var ju=tt({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Cl),Mu={style:tt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},wl.style)},Nu=Za.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Pu=function(e){P(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Ra:t>.2?Ba:za}else if(e)return za}return Ra},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(G(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Bi(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},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 lu(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Au(a,o/s,e,t)))return!0}if(this.hasFill())return ku(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,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(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:R(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Nt(ju,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=R({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=R({},r.shape),R(c,n.shape)):(c=R({},i?this.shape:r.shape),R(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=R({},this.shape);for(var l={},u=ct(c),d=0;di&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Hu=Math.round;function Uu(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Hu(r*2)===Hu(i*2)&&(e.x1=e.x2=Gu(r,s,!0)),Hu(a*2)===Hu(o*2)&&(e.y1=e.y2=Gu(a,s,!0)),e):e}}function Wu(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Gu(r,s,!0),e.y=Gu(i,s,!0),e.width=Math.max(Gu(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Gu(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Gu(e,t,n){if(!t)return e;var r=Hu(e*2);return(r+Hu(t))%2==0?r/2:(r+(n?1:-1))/2}var Ku=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),qu={},Ju=function(e){P(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Ku},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Wu(qu,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Vu(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Pu);Ju.prototype.type=`rect`;var Yu={fill:`#000`},Xu=2,Zu={},Qu={style:tt({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},wl.style)},$u=function(e){P(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Yu,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,T=0;T=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&fd(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=ud(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Iu),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=ld(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=cd(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Xu,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=bt(s.opacity,t.opacity,1),id(p,s),y&&(p.lineWidth=bt(s.lineWidth,t.lineWidth,g),p.lineDash=q(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(bl(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Ju),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=q(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Bu),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=q(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=bt(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return ad(e)&&(t=[e.fontStyle,e.fontWeight,rd(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&wt(t)||e.textFont||e.font},t}(Dl),ed={left:!0,right:1,center:1},td={top:1,bottom:1,middle:1},nd=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function rd(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function id(e,t){for(var n=0;n=0,a=!1;if(e instanceof Pu){var o=Od(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Rd(s)||Rd(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=R({},r),l=R({},l),l.fill=s):!Rd(l.fill)&&Rd(s)?(a=!0,r=R({},r),l=R({},l),l.fill=Hi(s)):!Rd(l.stroke)&&Rd(c)&&(a||(r=R({},r),l=R({},l)),l.stroke=Hi(c)),r.style=l}}if(r&&r.z2==null){a||(r=R({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Zd(e,t,n){if(n&&n.z2==null){n=R({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Qd(e,t,n){var r=z(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Yd(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=R({},n),o=R({opacity:r?i:a.opacity*.1},o),n.style=o),n}function $d(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Xd(this,e,t,n);if(e===`blur`)return Qd(this,e,n);if(e===`select`)return Zd(this,e,n)}return n}function ef(e){e.stateProxy=$d;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=$d),n&&(n.stateProxy=$d)}function tf(e,t){!uf(e,t)&&!e.__highByOuter&&qd(e,Bd)}function nf(e,t){!uf(e,t)&&!e.__highByOuter&&qd(e,Vd)}function rf(e,t){e.__highByOuter|=1<<(t||0),qd(e,Bd)}function af(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&qd(e,Vd)}function of(e){qd(e,Hd)}function sf(e){qd(e,Ud)}function cf(e){qd(e,Wd)}function lf(e){qd(e,Gd)}function uf(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function df(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=kd(i),o=Td(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Ud(e)}),s&&n.push(i)),a.isBlured=!1}),B(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function ff(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function xf(e,t,n){Of(e,!0),qd(e,ef),wf(e,t,n)}function Sf(e){Of(e,!1)}function Cf(e,t,n,r){r?Sf(e):xf(e,t,n)}function wf(e,t,n){var r=pd(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var Tf=[`emphasis`,`blur`,`select`],Ef={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function Df(e,t,n,r){n||=`itemStyle`;for(var i=0;i1&&(o*=zf(m),s*=zf(m));var h=(i===a?-1:1)*zf((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Vf(d)*g-Bf(d)*_,y=(t+r)/2+Bf(d)*g+Vf(d)*_,b=Gf([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Gf(x,S);if(Wf(x,S)<=-1&&(C=Hf),Wf(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Hf*1e6)/1e6;C=Hf*2+w%2*Hf}u.addData(l,v,y,o,s,b,C,d,a)}var qf=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Jf=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Yf(e){var t=new lu;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=lu.CMD,c=e.match(qf);if(!c)return t;for(var l=0;lA*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function yp(e){var t;if(U(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function bp(e,t){var n,r=mp(t.r,0),i=mp(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=fp(c-s),p=f>sp&&f%sp;if(p>gp&&(f=p),!(r>gp))e.moveTo(l,u);else if(f>sp-gp)e.moveTo(l+r*lp(s),u+r*cp(s)),e.arc(l,u,r,s,c,!d),i>gp&&(e.moveTo(l+i*lp(c),u+i*cp(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*lp(s),j=r*cp(s),ee=i*lp(c),te=i*cp(c),M=f>gp;if(M){var ne=t.cornerRadius;ne&&(n=yp(ne),m=n[0],h=n[1],g=n[2],_=n[3]);var re=fp(r-i)/2;if(v=hp(re,g),y=hp(re,_),b=hp(re,m),x=hp(re,h),w=S=mp(v,y),T=C=mp(b,x),(S>gp||C>gp)&&(E=r*lp(c),D=r*cp(c),O=i*lp(s),k=i*cp(s),fgp){var de=hp(g,w),fe=hp(_,w),N=vp(O,k,A,j,r,de,d),pe=vp(E,D,ee,te,r,fe,d);e.moveTo(l+N.cx+N.x0,u+N.cy+N.y0),w0&&e.arc(l+N.cx,u+N.cy,de,dp(N.y0,N.x0),dp(N.y1,N.x1),!d),e.arc(l,u,r,dp(N.cy+N.y1,N.cx+N.x1),dp(pe.cy+pe.y1,pe.cx+pe.x1),!d),fe>0&&e.arc(l+pe.cx,u+pe.cy,fe,dp(pe.y1,pe.x1),dp(pe.y0,pe.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>gp)||!M)e.lineTo(l+ee,u+te);else if(T>gp){var de=hp(m,T),fe=hp(h,T),N=vp(ee,te,E,D,i,-fe,d),pe=vp(A,j,O,k,i,-de,d);e.lineTo(l+N.cx+N.x0,u+N.cy+N.y0),T0&&e.arc(l+N.cx,u+N.cy,fe,dp(N.y0,N.x0),dp(N.y1,N.x1),!d),e.arc(l,u,i,dp(N.cy+N.y1,N.cx+N.x1),dp(pe.cy+pe.y1,pe.cx+pe.x1),d),de>0&&e.arc(l+pe.cx,u+pe.cy,de,dp(pe.y1,pe.x1),dp(pe.y0,pe.x0),!d))}else e.lineTo(l+ee,u+te),e.arc(l,u,i,c,s,d)}e.closePath()}}}var xp=function(){function e(){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 e}(),Sp=function(e){P(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new xp},t.prototype.buildPath=function(e,t){bp(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Pu);Sp.prototype.type=`sector`;var Cp=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),wp=function(e){P(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Cp},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Pu);wp.prototype.type=`ring`;function Tp(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f=2){if(r){var a=Tp(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;sJp[1]){if(i=!1,Yp.negativeSize||n)return i;var s=Kp(Jp[0]-qp[1]),c=Kp(qp[0]-Jp[1]);Wp(s,c)>Zp.len()&&(s=c||!Yp.bidirectional)&&(Y.scale(Xp,o,-c*r),Yp.useDir&&Yp.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function im(e,t,n,r,i,a){rm(`update`,e,t,n,r,i,a)}function am(e,t,n,r,i,a){rm(`enter`,e,t,n,r,i,a)}function om(e){if(!e.__zr)return!0;for(var t=0;tzp,BezierCurve:()=>Lp,BoundingRect:()=>X,Circle:()=>rp,CompoundPath:()=>Bp,Ellipse:()=>ap,Group:()=>jo,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>Bu,IncrementalDisplayable:()=>em,Line:()=>Np,LinearGradient:()=>Hp,OrientedBoundingRect:()=>Qp,Path:()=>Pu,Point:()=>Y,Polygon:()=>Op,Polyline:()=>Ap,RadialGradient:()=>Up,Rect:()=>Ju,Ring:()=>wp,Sector:()=>Sp,Text:()=>$u,WH:()=>mm,XY:()=>pm,applyTransform:()=>km,calcZ2Range:()=>Qm,clipPointsByRect:()=>Pm,clipRectByRect:()=>Fm,createIcon:()=>Im,decomposeTransform:()=>nh,ensureCopyRect:()=>Ym,ensureCopyTransform:()=>Xm,expandOrShrinkRect:()=>Vm,extendPath:()=>_m,extendShape:()=>hm,getCurrentCanvasPainter:()=>ih,getShapeClass:()=>ym,getTransform:()=>Om,groupTransition:()=>Nm,initProps:()=>am,isBoundingRectAxisAligned:()=>qm,isElementRemoved:()=>om,lineLineIntersect:()=>Rm,linePolygonIntersect:()=>Lm,makeImage:()=>xm,makePath:()=>bm,mergePath:()=>Cm,payloadDisableAnimation:()=>th,registerShape:()=>vm,removeElement:()=>sm,removeElementWithFadeOut:()=>lm,resizePath:()=>wm,retrieveZInfo:()=>Zm,setTooltipConfig:()=>Wm,subPixelOptimize:()=>Dm,subPixelOptimizeLine:()=>Tm,subPixelOptimizeRect:()=>Em,transformDirection:()=>Am,traverseElements:()=>Km,traverseUpdateZ:()=>$m,updateProps:()=>im}),fm={},pm=[`x`,`y`],mm=[`width`,`height`];function hm(e){return Pu.extend(e)}var gm=ep;function _m(e,t){return gm(e,t)}function vm(e,t){fm[e]=t}function ym(e){if(fm.hasOwnProperty(e))return fm[e]}function bm(e,t,n,r){var i=$f(e,t);return n&&(r===`center`&&(n=Sm(n,i.getBoundingRect())),wm(i,n)),i}function xm(e,t,n){var r=new Bu({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(Sm(t,i))}}});return r}function Sm(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var Cm=tp;function wm(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Tm(e,t){return Uu(e,e,{lineWidth:t}),e}function Em(e,t){return Wu(e,e,t),e}var Dm=Gu;function Om(e,t){for(var n=Ln([]);e&&e!==t;)zn(n,e.getLocalTransform(),n),e=e.parent;return n}function km(e,t,n){return t&&!it(t)&&(t=Ja.getLocalTransform(t)),n&&(t=Un([],t)),$t([],e,t)}function Am(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Wo(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Wo(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=km(a,t,n),Wo(a[0])>Wo(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function jm(e){return!e.isGroup}function Mm(e){return e.shape!=null}function Nm(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){jm(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Mm(e)&&(t.shape=I(e.shape)),t}var a=r(e);t.traverse(function(e){if(jm(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),im(e,r,n,pd(e).dataIndex)}}})}function Pm(e,t){return V(e,function(e){var n=e[0];n=Uo(n,t.x),n=Ho(n,t.x+t.width);var r=e[1];return r=Uo(r,t.y),r=Ho(r,t.y+t.height),[n,r]})}function Fm(e,t){var n=Uo(e.x,t.x),r=Ho(e.x+e.width,t.x+t.width),i=Uo(e.y,t.y),a=Ho(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function Im(e,t,n){var r=R({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),tt(i,n),new Bu(r)):bm(e.replace(`path://`,``),r,n,`center`)}function Lm(e,t,n,r,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=zm(p,m,u,d)/f;return!(g<0||g>1)}function zm(e,t,n,r){return e*r-n*t}function Bm(e){return e<=1e-6&&e>=-1e-6}function Vm(e,t,n,r,i){return t==null?e:(ft(t)?Hm[0]=Hm[1]=Hm[2]=Hm[3]=t:(Hm[0]=t[0],Hm[1]=t[1],Hm[2]=t[2],Hm[3]=t[3]),r&&(Hm[0]=Uo(0,Hm[0]),Hm[1]=Uo(0,Hm[1]),Hm[2]=Uo(0,Hm[2]),Hm[3]=Uo(0,Hm[3])),n&&(Hm[0]=-Hm[0],Hm[1]=-Hm[1],Hm[2]=-Hm[2],Hm[3]=-Hm[3]),Um(e,Hm,`x`,`width`,3,1,i&&i[0]||0),Um(e,Hm,`y`,`height`,0,2,i&&i[1]||0),e)}var Hm=[0,0,0,0];function Um(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=Uo(0,Ho(o,c)),e[r]=0?-t[i]:t[a]>=0?c+t[a]:Wo(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Wm(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=G(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&B(ct(c),function(e){Ft(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=pd(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:tt({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Gm(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Km(e,t){if(e)if(U(e))for(var n=0;nt&&(t=r),rt&&(n=t=0),{min:n,max:t}}function $m(e,t,n){eh(e,t,n,-1/0)}function eh(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s=0&&n.push(e)}),n}}function Lh(e,t){return L(L({},e,!0),t,!0)}var Rh={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`,`Friday`,`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:`. `}}}},zh={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},Bh=`ZH`,Vh=`EN`,Hh=Vh,Uh={},Wh={},Gh=F.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Hh).toUpperCase().indexOf(Bh)>-1?Bh:Hh}():Hh;function Kh(e,t){e=e.toUpperCase(),Wh[e]=new Mh(t),Uh[e]=t}function qh(e){if(G(e)){var t=Uh[e.toUpperCase()]||{};return e===Bh||e===Vh?I(t):L(I(t),I(Uh[Hh]),!1)}else return L(I(e),I(Uh[Hh]),!1)}function Jh(e){return Wh[e]}function Yh(){return Wh[Hh]}Kh(Vh,Rh),Kh(Bh,zh);var Xh=null;function Zh(){return Xh}function Qh(e,t){var n=Zh(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function $h(e){var t=e.brk;return t?t.breaks:[]}function eg(e){var t=e.brk;return t?t.hasBreaks():!1}var tg=1e3,ng=tg*60,rg=ng*60,ig=rg*24,ag=ig*365,og={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})/},sg={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},cg=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,lg=`{yyyy}-{MM}-{dd}`,ug={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:lg,hour:lg+` `+sg.hour,minute:lg+` `+sg.minute,second:lg+` `+sg.second,millisecond:cg},dg=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],fg=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function pg(e){return!G(e)&&!W(e)?mg(e):e}function mg(e){e||={};var t={},n=!0;return B(dg,function(t){n&&=e[t]==null}),B(dg,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=dg[s],l=K(a)&&!U(a)?a[c]:a,u=void 0;U(l)?(u=l.slice(),o=u[0]||``):G(l)?(o=l,u=[o]):(o==null?o=sg[r]:og[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function hg(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function gg(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function _g(e){return e===gg(e)}function vg(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function yg(e,t,n,r){var i=ms(e),a=i[Cg(n)](),o=i[wg(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Tg(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Eg(n)](),d=(u-1)%12+1,f=i[Dg(n)](),p=i[Og(n)](),m=i[kg(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Mh?r:Jh(r||Gh)||Yh()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,hg(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,hg(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,hg(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,hg(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,hg(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,hg(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,hg(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,hg(m,3)).replace(/{S}/g,m+``)}function bg(e,t,n,r,i){var a=null;if(G(n))a=n;else if(W(n)){var o={time:e.time,level:e.time?e.time.level:0},s=Zh();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=xg(e.value,i);a=n[u][u][0]}}return yg(new Date(e.value),a,i,r)}function xg(e,t){var n=ms(e),r=n[wg(t)]()+1,i=n[Tg(t)](),a=n[Eg(t)](),o=n[Dg(t)](),s=n[Og(t)](),c=n[kg(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function Sg(e,t,n){switch(t){case`year`:e[jg(n)](0);case`month`:e[Mg(n)](1);case`day`:e[Ng(n)](0);case`hour`:e[Pg(n)](0);case`minute`:e[Fg(n)](0);case`second`:e[Ig(n)](0)}return e}function Cg(e){return e?`getUTCFullYear`:`getFullYear`}function wg(e){return e?`getUTCMonth`:`getMonth`}function Tg(e){return e?`getUTCDate`:`getDate`}function Eg(e){return e?`getUTCHours`:`getHours`}function Dg(e){return e?`getUTCMinutes`:`getMinutes`}function Og(e){return e?`getUTCSeconds`:`getSeconds`}function kg(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Ag(e){return e?`setUTCFullYear`:`setFullYear`}function jg(e){return e?`setUTCMonth`:`setMonth`}function Mg(e){return e?`setUTCDate`:`setDate`}function Ng(e){return e?`setUTCHours`:`setHours`}function Pg(e){return e?`setUTCMinutes`:`setMinutes`}function Fg(e){return e?`setUTCSeconds`:`setSeconds`}function Ig(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Lg(e){if(!bs(e))return G(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Rg(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var zg=St;function Bg(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&wt(e)?e:`-`}function a(e){return ws(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?ms(e):e;if(!isNaN(+c))return yg(c,r,n);if(s)return`-`}if(t===`ordinal`)return dt(e)?i(e):ft(e)&&a(e)?e+``:`-`;var l=ys(e);return a(l)?Lg(l):dt(e)?i(e):typeof e==`boolean`?e+``:`-`}var Vg=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Hg=function(e,t){return`{`+e+(t??``)+`}`};function Ug(e,t,n){U(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a`:``:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function Gg(e,t){return t||=`transparent`,G(e)?e:K(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Kg(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var qg={},Jg={},Yg=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(qg,!0),this._normalMasterList=n(Jg,!1);function n(n,r){var i=[];return B(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){B(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){qg[e]=t;return}Jg[e]=t},e.get=function(e){return Jg[e]||qg[e]},e}();function Xg(e){return!!qg[e]}function Zg(e){Qg.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var Qg=J();function $g(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=Qg.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function e_(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!Xg(n)&&(i=0))}return{coordSysType:n,kind:i}}function t_(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=e_(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var n_=B,r_=[`left`,`right`,`top`,`bottom`,`width`,`height`],i_=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function a_(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var o_=a_;ut(a_,`vertical`),ut(a_,`horizontal`);function s_(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function c_(e,t){var n=f_(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===d_.point)a=n.refPoint,i=u_(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=U(o)?o:[o,o];i=u_(r,n.refContainer),a=n.boxCoordFrom===2?n.refPoint:[es(s[0],i.width)+i.x,es(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function l_(e,t){var n=c_(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);U(a)||(a=[0,a]);var o=es(r.width,t.getWidth()),s=es(r.height,t.getHeight()),c=Math.min(o,s),l=es(a[0],c/2),u=es(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function u_(e,t,n){n=zg(n||0);var r=t.width,i=t.height,a=es(e.left,r),o=es(e.top,i),s=es(e.right,r),c=es(e.bottom,i),l=es(e.width,r),u=es(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new X((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var d_={rect:1,point:2};function f_(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=$g(e),l=c.coord,u=c.from;if(o.dataToLayout){a=d_.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=d_.point,s=u,i=o.dataToPoint(l))}return a??=d_.rect,a===d_.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function p_(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new X(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=u_(tt({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function m_(e){var t=e.layoutMode||e.constructor.layoutMode;return K(t)?t:t?{type:t}:null}function h_(e,t,n){var r=n&&n.ignoreSize;!U(r)&&(r=[r,r]);var i=o(i_[0],0),a=o(i_[1],1);c(i_[0],e,i),c(i_[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(n_(n,function(t){c[t]=e[t]}),n_(n,function(e){Ft(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d=0;o--)a=L(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return cc(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return s_(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}(Mh);Bc(y_,Mh),Gc(y_),Fh(y_),Ih(y_,b_);function b_(e){var t=[];return B(y_.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=V(t,function(e){return Fc(e).main}),e!==`dataset`&&z(t,`dataset`)<=0&&t.unshift(`dataset`),t}var Q={color:{},darkColor:{},size:{}},x_=Q.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)`};for(var S_ in R(x_,{primary:x_.neutral80,secondary:x_.neutral70,tertiary:x_.neutral60,quaternary:x_.neutral50,disabled:x_.neutral20,border:x_.neutral30,borderTint:x_.neutral20,borderShade:x_.neutral40,background:x_.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:x_.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:x_.neutral70,axisLineTint:x_.neutral40,axisTick:x_.neutral70,axisTickMinor:x_.neutral60,axisLabel:x_.neutral70,axisSplitLine:x_.neutral15,axisMinorSplitLine:x_.neutral05}),x_)if(x_.hasOwnProperty(S_)){var C_=x_[S_];S_===`theme`?Q.darkColor.theme=x_.theme.slice():S_===`highlight`?Q.darkColor.highlight=`rgba(255,231,130,0.4)`:S_.indexOf(`accent`)===0?Q.darkColor[S_]=Li(C_,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Q.darkColor[S_]=Li(C_,null,function(e){return e*.9},function(e){return 1-e**1.5})}Q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var w_=``;typeof navigator<`u`&&(w_=navigator.platform||``);var T_=`rgba(0, 0, 0, 0.2)`,E_=Q.color.theme[0],D_=Li(E_,null,null,.9),O_={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[D_,E_],aria:{decal:{decals:[{color:T_,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:T_,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:T_,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:T_,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:T_,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:T_,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:w_.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},k_={Must:1,Might:2,Not:3},A_=nc();function j_(e){A_(e).datasetMap=J()}function M_(e,t,n){var r={},i=P_(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=A_(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),B(e,function(t,n){var i=K(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});B(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;rt)return e[r];return e[n-1]}function W_(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:U_(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function G_(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var K_,q_,J_,Y_=`\0_ec_inner`,X_=1,Z_=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new Mh(r),this._locale=new Mh(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=nv(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,nv(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?J_(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&B(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=J(),s=t&&t.replaceMergeMainTypeMap;j_(this),B(e,function(e,t){e!=null&&(y_.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?I(e):L(n[t],e,!0))}),s&&s.each(function(e,t){y_.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),y_.topologicalTravel(a,y_.getAllClassMainTypes(),c,this);function c(t){var a=B_(this,t,Ps(e[t])),o=r.get(t),c=zs(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);Qs(c,t,y_),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;B(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=y_.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=R({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),R(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&K_(this)}this._seriesIndices||K_(this)},t.prototype.getOption=function(){var e=I(this.option);return B(e,function(t,n){if(y_.hasClass(n)){for(var r=Ps(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Xs(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[Y_],e},t.prototype.setTheme=function(e){this._theme=new Mh(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,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i=t:n===`max`?e<=t:e===t}function cv(e,t){return e.join(`,`)===t.join(`,`)}var lv=B,uv=K,dv=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function fv(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=dv.length;n0?e[n-1].seriesModel:null)}),Fv(e))})}function Fv(e){B(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=ls(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var Iv=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;nl&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Zv=(e={},e[_d+`_`+Sd]={pure:!0,appendData:i},e[_d+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[vd]={pure:!0,appendData:i},e[yd]={pure:!0,appendData:function(e){var t=this._data;B(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[gd]={appendData:i},e[bd]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return dy(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function my(e){var t,n;return K(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function hy(e){return new gy(e)}var gy=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f1&&r>0?s:o}};return a;function o(){return t=e?null:at},gte:function(e,t){return e>=t}};(function(){function e(e,t){ft(t)||As(``),this._opFn=yy[e],this._rvalFloat=ys(t)}return e.prototype.evaluate=function(e){return ft(e)?this._opFn(e,this._rvalFloat):this._opFn(ys(e),this._rvalFloat)},e})();var by=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ft(e)?e:ys(e),r=ft(t)?t:ys(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=G(e),s=G(t);o&&(n=s?e:0),s&&(r=o?t:0)}return nr?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ys(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=ys(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function xy(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function Sy(e,t){return t>e.g&&t>=e.ge&&t`u`?Array:Uint32Array,Fy=typeof Uint16Array>`u`?Array:Uint16Array,Iy=typeof Int32Array>`u`?Array:Int32Array,Ly=typeof Float64Array>`u`?Array:Float64Array,Ry={float:Ly,int:Iy,ordinal:Array,number:Array,time:Ly},zy;function By(e){return e>65535?Py:Fy}function Vy(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Hy(e,t,n,r,i){var a=Ry[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;lh[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=V(a,function(e){return e.property}),l=0;lg[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&ne)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;he[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return sg[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(By(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;fc&&(c=l,u=v)}T>0&&To&&(m=o-l);for(var h=0;hp&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);ul-p&&(s=l-p,o.length=s);for(var m=0;mu[1]&&(u[1]=h),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();id&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return vy(e[r],this._dimensions[r])}zy={arrayRows:e,objectRows:function(e,t,n,r){return vy(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return vy(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Wy=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Gy(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=mt(o)?bd:gd,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=q(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=q(u.sourceHeader,d.sourceHeader),m=q(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[Rv(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[Rv(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&Ky(``);var i,a=[],o=[];return B(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&Ky(``),a.push(t),o.push(e._getVersionSign())}),n?i=jy(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[Bv(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||n>0&&!e.noHeader;return B(e.blocks,function(e){var n=tb(e);n>=t&&(t=n+ +(r&&(!n||$y(e)&&!e.noHeader)))}),t}return 0}function nb(e,t,n,r){var i=t.noHeader,a=ab(tb(t)),o=[],s=t.blocks||[];Ct(!s||U(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(Ft(l,c)){var u=new by(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}B(s,function(n,i){var s=t.valueFormatter,c=eb(n)(s?R(R({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):ob(r,o.join(``),i?n:a.html);if(i)return d;var f=Bg(t.header,`ordinal`,e.useUTC),p=Yy(r,e.renderMode).nameStyle,m=Jy(r);return e.renderMode===`richText`?lb(e,f,p)+a.richText+d:ob(r,`
`+yn(f)+`
`+d,n)}function rb(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=U(e)?e:[e],V(e,function(e,t){return Bg(e,U(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:Bg(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=Yy(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:lb(e,f,v))+(o?``:ub(e,m,h,g,y)):ob(r,(s?``:d)+(a?``:sb(f,!s,v))+(o?``:cb(m,h,g,y)),n)}}function ib(e,t,n,r,i,a){if(e)return eb(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function ab(e){return{html:Xy[e],richText:Zy[e]}}function ob(e,t,n){var r=`
`,i=`margin: `+n+`px 0 0`,a=Jy(e);return`
`+t+r+`
`}function sb(e,t,n){var r=t?`margin-left:2px`:``;return``+yn(e)+``}function cb(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=U(e)?e:[e],``+V(e,function(e){return yn(e)}).join(`  `)+``}function lb(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function ub(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(U(t)?t.join(` `):t,a)}function db(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Gg(n)}function fb(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var pb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=xs()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Wg({color:t,type:e,renderMode:n,markerId:r});return G(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};U(t)?B(t,function(e){return R(n,e)}):R(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function mb(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=U(s),l=db(t,n),u,d,f,p;if(o>1||c&&!o){var m=hb(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=dy(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Ys(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return Qy(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[Qy(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!wt(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function hb(e,t,n,r,i){var a=t.getData(),o=at(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?B(r,function(e){u(dy(a,n,e),e)}):B(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(Qy(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var gb=nc();function _b(e,t){return e.getName(t)||e.getId(t)}var vb=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=hy({count:xb,reset:Sb}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(gb(this).sourceManager=new Wy(this)).prepareSource();var r=this.getInitialData(e,n);wb(r,this),this.dataTask.context.data=r,gb(this).dataBeforeProcessed=r,yb(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=m_(this),r=n?g_(e):{},i=this.subType;y_.hasClass(i)&&(i+=`Series`),L(e,t.getTheme().get(this.subType)),L(e,this.getDefaultOption()),Fs(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&h_(e,r,n)},t.prototype.mergeOption=function(e,t){e=L(this.option,e,!0),this.fillDataTextStyle(e.data);var n=m_(this);n&&h_(this.option,e,n);var r=gb(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);wb(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,gb(this).dataBeforeProcessed=i,yb(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!mt(e))for(var t=[`show`],n=0;n=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return mb({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(F.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=H_.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},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,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[_b(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){K(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c0&&this._innerSelect(e,t)}},t.registerClass=function(e){return y_.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}(y_);rt(vb,py),rt(vb,H_),Bc(vb,y_);function yb(e){var t=e.name;Ys(e)||(e.name=bb(e)||t)}function bb(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return B(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function xb(e){return e.model.getRawData().count()}function Sb(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Cb}function Cb(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function wb(e,t){B(Mt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ut(Tb,t))})}function Tb(e,t){var n=Eb(e);return n&&n.setOutputEnd((t||this).count()),t}function Eb(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var Db=function(){function e(){this.group=new jo,this.uid=Ph(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Rc(Db),Gc(Db);function Ob(){var e=nc();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var kb=nc(),Ab=Ob(),jb=function(){function e(){this.group=new jo,this.uid=Ph(`viewChart`),this.renderTask=hy({plan:Pb,reset:Fb}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Nb(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Nb(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Km(this.group,e)},e.markUpdateMethod=function(e,t){kb(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function Mb(e,t,n){e&&kf(e)&&(t===`emphasis`?rf:af)(e,n)}function Nb(e,t,n){var r=tc(e,t),i=t&&t.highlightKey!=null?Af(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){Mb(e,n,i)}):B(Ps(r),function(t){Mb(e.getItemGraphicEl(t),n,i)})}Rc(jb,[`dispose`]),Gc(jb);function Pb(e){return Ab(e.model)}function Fb(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&kb(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Ib[c]}var Ib={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Lb=`\0__throttleOriginMethod`,Rb=`\0__throttleRate`,zb=`\0__throttleType`;function Bb(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function Vb(e,t,n,r){var i=e[t];if(i){var a=i[Lb]||i,o=i[zb];if(i[Rb]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Bb(a,n,r===`debounce`),i[Lb]=a,i[zb]=r,i[Rb]=n}return i}}function Hb(e,t){var n=e[t];n&&n[Lb]&&(n.clear&&n.clear(),e[t]=n[Lb])}var Ub=nc(),Wb={itemStyle:Kc(kh,!0),lineStyle:Kc(Eh,!0)},Gb={lineStyle:`stroke`,itemStyle:`fill`};function Kb(e,t){return e.visualStyleMapper||Wb[t]||(console.warn(`Unknown style type '`+t+`'.`),Wb.itemStyle)}function qb(e,t){return e.visualDrawType||Gb[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var Jb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=Kb(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=qb(e,r),c=a[s],l=W(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||W(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||W(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=R({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},Yb=new Mh,Xb={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=Kb(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Yb.option=n[r];var o=i(Yb);R(e.ensureUniqueItemVisual(t,`style`),o),Yb.option.decal&&(e.setItemVisual(t,`decal`,Yb.option.decal),Yb.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},Zb={performRawSeries:!0,overallReset:function(e){var t=J();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();Ub(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=Ub(e).scope,a=qb(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},Qb=Math.PI;function $b(e,t){t||={},tt(t,{text:`loading`,textColor:Q.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new jo,r=new Ju({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new $u({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ju({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new zp({shape:{startAngle:-Qb/2,endAngle:-Qb/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Qb*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:Qb*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var ex=function(){function e(e,t,n,r){this._stageTaskMap=J(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):kc(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=J();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;B(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});Ct(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;B(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=J(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||hy({plan:ax,reset:ox,count:lx}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||hy({reset:tx});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=J(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;Ct(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):B(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,hy({reset:nx,onDirty:ix})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return W(e)&&(e={overallReset:e,seriesType:ux(e)}),e.uid=Ph(`stageHandler`),t&&(e.visualType=t),e},e}();function tx(e){e.overallReset(e.ecModel,e.api,e.payload)}function nx(e){return e.dirtyOnOverallProgress&&rx}function rx(){this.agent.dirty(),this.getDownstream().dirty()}function ix(){this.agent&&this.agent.dirty()}function ax(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function ox(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ps(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?V(t,function(e,t){return cx(t)}):sx}var sx=cx(0);function cx(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),bx=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],xx=bx.concat([`symbolKeepAspect`]),Sx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o=0&&tS(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function iS(e,t,n){for(var r=t.type===`radial`?rS(e,t,n):nS(e,t,n),i=t.colorStops,a=0;a0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ft(e)?[e]:U(e)?e:null}function lS(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&cS(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=V(n,function(e){return e/i}),r/=i)}return[n,r]}var uS=new lu(!0);function dS(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function fS(e){return typeof e==`string`&&e!==`none`}function pS(e){var t=e.fill;return t!=null&&t!==`none`}function mS(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function hS(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function gS(e,t,n){var r=Zc(t.image,t.__image,n);if($c(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Lt),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function _S(e,t,n,r,i){var a,o=dS(n),s=pS(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||uS,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?iS(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?iS(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?gS(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?gS(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=lS(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&hS(e,n),s&&mS(e,n)):(s&&mS(e,n),o&&hS(e,n)),T&&e.setLineDash([])}function vS(e,t,n){var r=t.__image=Zc(n.image,t.__image,t,t.onload);if(!(!r||!$c(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function yS(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=lS(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(dS(n)&&e.strokeText(i,n.x,n.y),pS(n)&&e.fillText(i,n.x,n.y)):(pS(n)&&e.fillText(i,n.x,n.y),dS(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var bS=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],xS=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function SS(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){NS(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Cl.opacity:o}(r||t.blend!==n.blend)&&(a||=(NS(e,i),!0),e.globalCompositeOperation=t.blend||Cl.blend);for(var s=0;s0&&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,t,n){if(!this[pC]){if(this._disposed){this.id;return}var r,i,a;if(K(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[pC]=!0,GC(this),!this._model||t){var o=new iv(this._api),s=this._theme,c=this._model=new Z_;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},$C);var l={seriesTransition:a,optionChanged:!0};if(n)this[hC]={silent:r,updateParams:l},this[pC]=!1,this.getZr().wakeUp();else{try{DC(this),AC.update.call(this,null,l)}catch(e){throw this[hC]=null,this[pC]=!1,e}this._ssr||this._zr.flush(),this[hC]=null,this[pC]=!1,PC.call(this,r),FC.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[pC]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[hC]&&(r??=this[hC].silent,i=this[hC].updateParams,this[hC]=null),this[pC]=!0,GC(this);try{this._updateTheme(e),n.setTheme(this._theme),DC(this),AC.update.call(this,{type:`setTheme`},i)}catch(e){throw this[pC]=!1,e}this[pC]=!1,PC.call(this,r),FC.call(this,r)}}},t.prototype._updateTheme=function(e){G(e)&&(e=tw[e]),e&&(e=I(e),e&&Mv(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||F.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return B(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;B(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return B(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(iw[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();B(rw,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(I(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=Re.createCanvas(),h=Lo(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return B(u,function(e){var t=e.left-o,n=e.top-s;g+=``+e.dom+``}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}else return e.connectedBackgroundColor&&h.add(new Ju({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),B(u,function(e){var t=new Bu({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return jC(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return jC(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return jC(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return B(ic(n,e),function(e,n){n.indexOf(`Models`)>=0&&B(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=ic(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?Ex(i,t):Tx(i,a,t)},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;B(JC,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&jx(i,function(e){var t=pd(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}else if(t.eventData)return a=R({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;B(ZC,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),Ax(t,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,this.getDom()&&uc(this.getDom(),ow,``);var e=this,t=e._api,n=e._model;B(e._componentsViews,function(e){e.dispose(n,t)}),B(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete rw[e.id]},t.prototype.resize=function(e){if(!this[pC]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[hC]&&(r??=this[hC].silent,n=!0,this[hC]=null),this[pC]=!0,GC(this);try{n&&DC(this),AC.update.call(this,{type:`resize`,animation:R({duration:0},e&&e.animation)})}catch(e){throw this[pC]=!1,e}this[pC]=!1,PC.call(this,r),FC.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(K(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),nw[e]){var n=nw[e](this._api,t),r=this._zr;this._loadingFX=n,r.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 t=R({},e);return t.type=XC[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(K(t)||(t={silent:!!t}),YC[e.type]&&this._model){if(this[pC]){this._pendingActions.push(e);return}var n=t.silent;NC.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&F.browser.weChat&&this._throttledZrFlush(),PC.call(this,n),FC.call(this,n)}},t.prototype.updateLabelLayout=function(){Mx.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){DC=function(e){zx(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),OC(e,!0),OC(e,!1),t.plan()},OC=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;cq(t.get(`hoverLayerThreshold`),O_.hoverLayerThreshold)&&!F.node&&!F.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=Zm(e);t.eachRendered(function(e){return $m(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!om(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(om(e))return;if(e instanceof Pu&&Nf(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}VC=function(e){return new(function(t){P(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){rf(t,n),UC(e)},n.prototype.leaveEmphasis=function(t,n){af(t,n),UC(e)},n.prototype.enterBlur=function(t){of(t),UC(e)},n.prototype.leaveBlur=function(t){sf(t),UC(e)},n.prototype.enterSelect=function(t){cf(t),UC(e)},n.prototype.leaveSelect=function(t){lf(t),UC(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[mC]},n.prototype.usingTHL=function(){return e._usingTHL},n}(wd))(e)},HC=function(e){function t(e,t){for(var n=0;n=0)){yw.push(n);var o=ex.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function xw(e,t){nw[e]=t}function Sw(e,t,n){var r=Fx(`registerMap`);r&&r(e,t,n)}var Cw=Ay;vw(iC,Jb),vw(sC,Xb),vw(sC,Zb),vw(iC,Sx),vw(sC,Cx),vw(dC,qS),uw(Mv),dw(ZS,Nv),xw(`default`,$b),hw({type:Md,event:Md,update:Md},It),hw({type:Nd,event:Nd,update:Nd},It),hw({type:Pd,event:Ld,update:Pd,action:It,refineEvent:ww,publishNonRefinedEvent:!0}),hw({type:Fd,event:Ld,update:Fd,action:It,refineEvent:ww,publishNonRefinedEvent:!0}),hw({type:Id,event:Ld,update:Id,action:It,refineEvent:ww,publishNonRefinedEvent:!0});function ww(e,t,n,r){return{eventContent:{selected:bf(n),isFromClick:t.isFromClick||!1}}}lw(`default`,{}),lw(`dark`,vx);function Tw(e){return e==null?0:e.length||1}function Ew(e){return e}var Dw=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||Ew,this._newKeyGetter=r||Ew,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f1)for(var o=0;o30}var Vw=K,Hw=V,Uw=typeof Int32Array>`u`?Array:Int32Array,Ww=`e\0\0`,Gw=-1,Kw=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],qw=[`_approximateExtent`],Jw,Yw,Xw,Zw,Qw,$w,eT,tT=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},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 n,r=!1;Lw(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),U(i)?i=i.slice():Vw(i)&&(i=R({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Vw(t)?R(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Vw(e)?R(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?R(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){md(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){B(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:Hw(this.dimensions,this._getDimInfo,this),this.hostModel),Qw(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];W(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(xt(arguments)))})},e.internalField=function(){Jw=function(e){var t=e._invertedIndicesMap;B(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new Uw(a.categories.length);for(var s=0;s1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function nT(e,t){Lv(e)||(e=zv(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=J(),a=[],o=rT(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Bw(o),c=r===e.dimensionsDefine,l=c?zw(e):Rw(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=J(u),f=new Iy(o),p=0;p0&&(e.name+=t-1)}),new Iw({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function rT(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return B(t,function(e){var t;K(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function iT(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var aT=function(){function e(e){this.coordSysDims=[],this.axisMap=J(),this.categoryAxisMap=J(),this.coordSysName=e}return e}();function oT(e){var t=e.get(`coordinateSystem`),n=new aT(t),r=sT[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var sT={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,oc).models[0],a=e.getReferringComponents(`yAxis`,oc).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),cT(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),cT(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,oc).models[0];t.coordSysDims=[`single`],n.set(`single`,i),cT(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,oc).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),cT(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),cT(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();B(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),cT(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,oc).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function cT(e){return e.get(`type`)===`category`}function lT(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;uT(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(B(a,function(e,t){G(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),B(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;B(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function uT(e){return!Lw(e.schema)}function dT(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function fT(e,t){return dT(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function pT(e,t){var n=e.get(`coordinateSystem`),r=Yg.get(n),i;return t&&t.coordSysDims&&(i=V(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=jw(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function mT(e,t,n){var r,i;return n&&B(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function hT(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=zv(e)):(i=r.getSource(),a=i.sourceFormat===gd);var o=oT(t),s=pT(t,o),c=n.useEncodeDefaulter,l=W(c)?c:c?ut(M_,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=nT(i,u),f=mT(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=lT(t,{schema:d,store:p}),h=new tT(d,t);h.setCalculationInfo(m);var g=f!=null&&gT(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function gT(e){if(e.sourceFormat===`original`)return!U(Ls(_T(e.data||[])))}function _T(e){for(var t=0;t=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){MT(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),MT(r,e,t,n)},freeze:function(){}};function MT(e,t,n,r){bc(n,r)&&(e[t][0]=n,e[t][1]=r)}function NT(e){return PT(e)||IT(e)}function PT(e){return e.type===`interval`}function FT(e){return e.type===`time`}function IT(e){return e.type===`log`}function LT(e){return e.type===`ordinal`}function RT(e){var t=gs(e),n=Jo(10,t),r=Go(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Z(r*n,-t)}function zT(e){return as(e)+2}function BT(e,t){return Yo(e)/Yo(t)}function VT(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var KT=function(e){P(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,wT(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new bT({}),U(i)&&(i=new bT({categories:V(i,function(e){return K(e)?e.value:e})})),r._ordinalMeta=i;var a=CT(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,TT(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:G(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=Go(e),e},t.prototype.getTicks=function(){var e=[];return GT(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Ho(a,t.length);i=0&&e=0&&e=0&&eo[0]&&mi[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=Ho(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Z(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Z(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?Z(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return qT(this,e,$h(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=as(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),Lg(Z(e.value,n,!0))},t.type=`interval`,t}(vT);vT.registerClass(JT);var YT=function(e,t,n,r){for(;n>>1;e[i][1]16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function eE(e){var t=30*ig;return e/=t,e>6?6:e>3?3:e>2?2:1}function tE(e){return e/=rg,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function nE(e,t){return e/=t?ng:tg,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function rE(e){return Uo(_s(e,!0),1)}function iE(e,t,n){var r=Math.max(0,z(dg,t)-1);return Sg(new Date(e),dg[r],n).getTime()}function aE(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function oE(e,t,n,r,i,a){var o=fg,s=0;function c(e,t,n,i,o,c,l){for(var u=aE(o,e),d=t,f=new Date(d);d3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!QT(gg(e),r[0],r[1],n)){s&&(i=[{value:iE(r[0],e,n)},{value:r[1]}]);for(var l=0;l=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=ot(V(u,function(e){return ot(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;mr[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.values&&(a=s);var c=ZT.length,l=Math.min(YT(ZT,a,0,c),c-1),u=ZT[l][1],d=ZT[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};vT.registerClass(XT);var cE=0,lE=1,uE=2,dE=function(e){P(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=JT.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[cE]=i[lE]=a[cE]=a[lE]=NaN,wT(r,t.mapperMethods);var s=Zh(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},uE,l),r.powStub=new JT({breakParsed:l.original}),r.intervalStub=new JT({breakParsed:l.transformed}),TT(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=Zh(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return V(i.getTicks(e||{}),function(e){var i=e.value,o=VT(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,$h(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return qT(this,e,$h(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(BT(e,this.base))},scale:function(e){return VT(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=BT(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return fE.depth=n,pE.lookup=this._lookup,VT(n===2?e:this.intervalStub.transformOut(e,fE),this.base,pE)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!bc(t,n)||t<=0||n<=0)){var r=mE,i=mE;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[cE]=t,r[lE]=n);var o=this.base;this.intervalStub.setExtent2(e,i[cE]=BT(t,o),i[lE]=BT(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return bc(t[0],t[1])&&ws(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(vT);vT.registerClass(dE);var fE={},pE={},mE=[],hE={value:1,category:1,time:1,log:1},gE=nc();function _E(e){var t=e.get(`type`);return(t==null||!Ft(hE,t)&&!vT.getClass(t))&&(t=`value`),t}function vE(e,t,n){var r=Zh(),i;switch(r&&(i=kE(e,t,n)),t){case`category`:return new KT({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:mc()});case`time`:return new XT({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new dE({logBase:e.get(`logBase`),breakOption:i});case`value`:return new JT({breakOption:i});default:return new((vT.getClass(t))||JT)({})}}function yE(e,t,n){var r=n?DT(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return bc(i,a)?i===t||a===t?2:it?1:3:3}function bE(e){gE(e).noOnMyZero=!0}function xE(e){return gE(e).noOnMyZero}function SE(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=pg(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(G(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(W(t)){if(e.type===`category`)return function(n,r){return t(CE(e,n),n.value-e.scale.getExtent()[0],null)};var r=Zh();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(CE(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function CE(e,t){var n=e.scale;return LT(n)?n.getLabel(t):t.value}function wE(e){return e.get(`interval`)??`auto`}function TE(e){return e.type===`category`&&wE(e.getLabelModel())===0}function EE(e,t){var n={};return B(e.mapDimensionsAll(t),function(t){n[fT(e,t)]=!0}),ct(n)}function DE(e){return e===`middle`||e===`center`}function OE(e){return e.getShallow(`show`)}function kE(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!Zh()||!n||!AE(t)?void 0:r}function AE(e){return e!==`category`}function jE(e,t,n,r,i,a){var o=IT(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=UT(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function ME(e,t){return LT(e)?e.getRawOrdinalNumber(t.value):t.value}function NE(e,t){return LT(e)&&!!t.get(`boundaryGap`)}var PE=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),FE=Cc(),IE=nc(),LE=nc();function RE(e,t){var n=e.model,r=IE(Hx(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function zE(e,t){return HE(RE(e,t))}function BE(e,t){var n=[];return VE(e.model.ecModel,function(e){for(var r=0;r0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=aD(e,t.get(`startValue`,!0)),x=b!=null;!ws(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),ws(b)&&(x||!_||v)&&(bu[1]&&!d[1]&&(u[1]=b,d[1]=!0)),iD(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),iD(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function iD(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),Sc(t))}function aD(e,t){return t==null?null:vt(t)?NaN:e.parse(t)}function oD(e,t){var n;if(LT(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=U(r)?r:[r,r]}return[sD(n[0]),sD(n[1])]}function sD(e){return fo(typeof e==`boolean`?0:e,1)||0}function cD(e){var t=tD(e.scale);return t.extent||=mc(),t}function lD(e,t){cD(e).dimIdxInCoord=t.get(e.dim)}function uD(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||dD(n,e,i,r,t)}function dD(e,t,n,r,i){var a=cD(t),o=a.extent,s=!1;UE(t,function(r){if(r.boxCoordinateSystem){var i=$g(r).coord,c=a.dimIdxInCoord;if(c>=0&&U(i)){var l=i[c];l!=null&&!U(l)&&hc(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;B(EE(u,n),function(e){vc(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=_D(e,t,r);pD(e,new rD(e,r,o,s,c),i),a.extent=null}function fD(e,t){var n=e.scale;pD(n,new rD(n,e.model,t,!1,!1),nD)}function pD(e,t,n){e.rawExtentInfo=t,t.from=n}function mD(e,t){hD.set(e,t)}var hD=J();function gD(e,t,n,r,i){e.rawExtentInfo||fD({scale:e,model:t},i||mc());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function _D(e,t,n){var r=NE(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return qE(t,function(e){a=!!hD.get(e)||a}),a}function vD(e,t,n,r){if(n.ctnShp){var i;if(qE(e,function(t){var n=hD.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],gc(i,a[0]),_c(i,a[1]),bE(e))}}),i){var a=t.getExtent();if(LT(t))e.onBand||t.setExtent2(1,Ho(a[0],a[0]+i[0]),Uo(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=Ho(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=Uo(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]a[1])&&t.setExtent2(1,o[0],o[1])}}}}function yD(e,t){var n=IT(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=HT(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?xD(r,t):bD(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=zT(d)),i[0]||(s[0]=Z(Ko(s[0]/u)*u,l)),i[1]||(s[1]=Z(qo(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),jE(e,i,o,s,a,c)}function bD(e,t){var n=WT(t.splitNumber,5),r=kT(e),i=t.minInterval,a=t.maxInterval,o=_s(r/n,!0);i!=null&&oa&&(o=a);var s=zT(o),c=e.getExtent(),l=[Z(qo(c[0]/o)*o,s),Z(Ko(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function xD(e,t){var n=WT(t.splitNumber,10),r=e.getExtent(),i=kT(e),a=Uo(hs(i),1);n/i*a<=.5&&(a*=10);var o=zT(a),s=[Z(qo(r[0]/a)*a,o),Z(Ko(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function SD(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;CD(t,n,r,i,null)}function CD(e,t,n,r,i){var a=gD(e,t,r,n,i),o=PT(e)||FT(e);wD(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&vD(n,e,a,r)}function wD(e,t){TD[e.type](e,t)}var TD={interval:yD,log:yD,time:sE,ordinal:It},ED=[],DD={registerPreprocessor:uw,registerProcessor:dw,registerPostInit:fw,registerPostUpdate:pw,registerUpdateLifecycle:mw,registerAction:hw,registerCoordinateSystem:gw,registerLayout:_w,registerVisual:vw,registerTransform:Cw,registerLoading:xw,registerMap:Sw,registerImpl:Px,PRIORITY:fC,ComponentModel:y_,ComponentView:Db,SeriesModel:vb,ChartView:jb,registerComponentModel:function(e){y_.registerClass(e)},registerComponentView:function(e){Db.registerClass(e)},registerSeriesModel:function(e){vb.registerClass(e)},registerChartView:function(e){jb.registerClass(e)},registerCustomSeries:function(e,t){Lx(e,t)},registerSubTypeDefaulter:function(e,t){y_.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Ro(e,t)}};function OD(e){if(U(e)){B(e,function(e){OD(e)});return}z(ED,e)>=0||(ED.push(e),W(e)&&(e={install:e}),e.install(DD))}var kD=nc(),AD=nc(),jD={estimate:1,determine:2};function MD(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function ND(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:V(FD(n,r),function(t,n){return{formattedLabel:SE(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?ID(e,t):zD(e)}function PD(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:FD(i,r)}:e.type===`category`?RD(e,t):{ticks:r.getTicks(n)}}function FD(e,t){var n=t.getExtent(),r=[];return B(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Tc(r,Dc,null),is(r),V(r,function(e){return{value:e}})}function ID(e,t){var n=e.getLabelModel(),r=LD(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function LD(e,t,n){var r=VD(e),i=wE(t),a=n.kind===jD.estimate;if(!a){var o=UD(r,i);if(o)return o}var s,c;W(i)?s=XD(e,i,!1):(c=i===`auto`?GD(e,n):i,s=XD(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return WD(r,i,l),!0}):WD(r,i,l),l}function RD(e,t){var n=BD(e),r=wE(t),i=UD(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),W(r))a=XD(e,r,!0);else if(r===`auto`){var s=LD(e,e.getLabelModel(),MD(jD.determine));o=s.labelCategoryInterval,a=V(s.labels,function(e){return e.tick})}else o=r,a=XD(e,o,!0);return WD(n,r,{ticks:a,tickCategoryInterval:o})}function zD(e){var t=e.scale.getTicks(),n=SE(e);return{labels:V(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var BD=HD(`axisTick`),VD=HD(`axisLabel`);function HD(e){return function(t){return AD(t)[e]||(AD(t)[e]={list:[]})}}function UD(e,t){for(var n=0;nu&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=so(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===jD.estimate?(t.out.noPxChangeTryDetermine.push(H(qD,null,e,S,c)),S):JD(e,S,c)??S}function qD(e,t,n){return JD(e,t,n)==null}function JD(e,t,n){var r=kD(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function YD(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function XD(e,t,n){var r=SE(e),i=e.scale,a=[],o=W(t);return GT(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var ZD=.8;function QD(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=OT(r);ws(o)||(o=NaN);var s=e.getExtent(),c=Wo(s[1]-s[0]);return LT(r)?$D(n,e,o,c):i&&eO(n,e,o,c,i),a!=null&&(n.w=ws(n.w)?Uo(a,n.w):a),n}function $D(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function eO(e,t,n,r,i){var a=!1,o=-1/0;B(i.key?[zE(t,i.key)]:BE(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),ws(n)&&n>0&&ws(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*ZD,e.w2=e.w*n/r)}var tO=[0,1],nO=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),$o(e,tO,rO(this),t)},e.prototype.coordToData=function(e,t){var n=$o(e,rO(this),tO,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=V(PD(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(ME(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=iO(this,n,r);return V(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(LT(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),V(this.scale.getMinorTicks(e),function(e){return V(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=MD(jD.determine),ND(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return QD(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=MD(jD.determine),KD(this,e)},e}();function rO(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function iO(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=QD(e).w;if(!i)return!1;B(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}Math.PI*2,lu.CMD;function aO(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}var oO=new Y,sO=new Y,cO=new Y,lO=new Y,uO=new Y,dO=[],fO=new Y;function pO(e,t){if(t<=180&&t>0){t=t/180*Math.PI,oO.fromArray(e[0]),sO.fromArray(e[1]),cO.fromArray(e[2]),Y.sub(lO,oO,sO),Y.sub(uO,cO,sO);var n=lO.len(),r=uO.len();if(!(n<.001||r<.001)){lO.scale(1/n),uO.scale(1/r);var i=lO.dot(uO);if(Math.cos(t)1&&Y.copy(fO,cO),fO.toArray(e[1])}}}}function mO(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,oO.fromArray(e[0]),sO.fromArray(e[1]),cO.fromArray(e[2]),Y.sub(lO,sO,oO),Y.sub(uO,cO,sO);var r=lO.len(),i=uO.len();if(!(r<.001||i<.001)&&(lO.scale(1/r),uO.scale(1/i),lO.dot(t)=o)Y.copy(fO,cO);else{fO.scaleAndAdd(uO,a/Math.tan(Math.PI/2-s));var c=cO.x===sO.x?(fO.y-sO.y)/(cO.y-sO.y):(fO.x-sO.x)/(cO.x-sO.x);if(isNaN(c))return;c<0?Y.copy(fO,sO):c>1&&Y.copy(fO,cO)}fO.toArray(e[1])}}}function hO(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function gO(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Yt(r[0],r[1]),a=Yt(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=Qt([],r[1],r[0],o/i),c=Qt([],r[1],r[2],o/a),l=Qt([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i0)for(var c=0;c0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function NO(e){var t=[];e.sort(function(e,t){return!!t.suggestIgnore-+!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r-1&&(s.style.stroke=s.style.fill,s.style.fill=Q.color.neutral00,s.style.lineWidth=2),t},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,triggerEvent:!1},t}(vb);function IO(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=dy(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o=0&&r.push(t[a])}return r.join(` `)}var RO=function(e){P(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=Qx(e,-1,-1,2,2,null,a);o.attr({z2:q(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=zO,this._symbolType=e,this.add(o)},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(){rf(this.childAt(0))},t.prototype.downplay=function(){af(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):im(f,p,o,n),um(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,am(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=lh(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=eS(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof Bu){var S=a.style;a.useStyle(R({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(R({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;ch(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):IO(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),Cf(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=pd(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&sm(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();sm(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return $x(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(jo);function zO(e,t){this.parent.drift(e,t)}function BO(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function VO(e){return e!=null&&!K(e)&&(e={isIgnore:e}),e||{}}function HO(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:lh(t),cursorStyle:t.get(`cursor`)}}function UO(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var WO=function(){function e(e){this.group=new jo,this._SymbolCtor=e||RO}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=VO(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=HO(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);BO(e,i,r,t)&&UO(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!BO(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):im(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i0?n=r[0]:r[1]<0&&(n=r[1]),n}function qO(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function JO(e,t){return!isFinite(e)||!isFinite(t)}var YO=typeof Float32Array<`u`?Float32Array:void 0,XO=typeof Float64Array<`u`?Float64Array:void 0;function ZO(e){return QO({ctor:YO},e).arr}function QO(e,t){var n=e.arr,r=e.ctor;if(t>us&&(t=us),!n||e.typed&&n.length=i||h<0)break;if(JO(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g=r||JO(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,ee=v-u,te=C-v,M=void 0,ne=void 0;if(s===`x`){M=Math.abs(A),ne=Math.abs(j);var re=E>0?1:-1;p=_-re*M*o,m=v,O=_+re*ne*o,k=v}else if(s===`y`){M=Math.abs(ee),ne=Math.abs(te);var ie=D>0?1:-1;p=_,m=v-ie*M*o,O=_,k=v+ie*ne*o}else M=Math.sqrt(A*A+ee*ee),ne=Math.sqrt(j*j+te*te),T=ne/(ne+M),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=tk(O,nk(S,_)),k=tk(k,nk(C,v)),O=nk(O,tk(S,_)),k=nk(k,tk(C,v)),E=O-_,D=k-v,p=_-E*M/ne,m=v-D*M/ne,p=tk(p,nk(l,_)),m=tk(m,nk(u,v)),p=nk(p,tk(l,_)),m=nk(m,tk(u,v)),E=_-p,D=v-m,O=_+E*ne/M,k=v+D*ne/M}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var ik=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),ak=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new ik},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&JO(n[i*2-2],n[i*2-1]);i--);for(;r=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?ei(i,u,f,m,e,s):ei(a,d,p,h,e,s);if(v>0)for(var y=0;y=0){var _=o?Qr(a,d,p,h,b):Qr(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(Pu),ok=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ik),sk=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new ok},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&JO(n[a*2-2],n[a*2-1]);a--);for(;it){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function xk(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=V(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=bk(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;B(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new Hp(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function Sk(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&Ck(a,t))){var o=t.mapDimension(a.dim),s={};return B(a.getViewLabels(),function(e){e.tick.offInterval||(s[ME(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function Ck(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;or)return!1;return!0}function wk(e){for(var t=e.length/2;t>0&&JO(e[t*2-2],e[t*2-1]);t--);return t-1}function Tk(e,t){return[e[t*2],e[t*2+1]]}function Ek(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function Dk(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var ee=f.getState(`emphasis`).style;ee.lineWidth=+f.style.lineWidth+1}pd(f).seriesIndex=e.seriesIndex,Cf(f,k,A,j);var te=_k(e.get(`smooth`)),M=e.get(`smoothMonotone`);if(f.setShape({smooth:te,smoothMonotone:M,connectNulls:x}),p){var ne=a.getCalculationInfo(`stackedOnSeries`),re=0;p.useStyle(tt(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),ne&&(re=_k(ne.get(`smooth`))),p.setShape({smooth:te,stackedOnSmooth:re,smoothMonotone:M,connectNulls:x}),Df(p,e,`areaStyle`),pd(p).seriesIndex=e.seriesIndex,Cf(p,k,A,j)}var ie=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var ae=e.get(`triggerEvent`),oe=e.get(`triggerLineEvent`),se=oe===!0||ae===!0||ae===`line`,ce=oe===!0||ae===!0||ae===`area`;this.packEventData(e,f,se),p&&this.packEventData(e,p,ce)},t.prototype.packEventData=function(e,t,n){pd(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=tc(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(JO(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new RO(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else jb.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=tc(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else jb.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Jd(this._polyline,e),t&&Jd(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new ak({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new sk({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);W(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=W(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=W(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(Dk(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new $u({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=wk(o);c>=0&&(ch(a,lh(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?IO(i,e):LO(i,n)},enableTextSetter:!0},kk(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=Ek(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=Tk(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=pc(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=Tk(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=yh(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=ek(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=yk(u.stackedOnCurrent,u.current,n,i,o),d=yk(u.current,null,n,i,o),m=yk(u.stackedOnNext,u.next,n,i,o),p=yk(u.next,null,n,i,o)),gk(d,p)>3e3||c&&gk(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),im(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),im(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;tt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;G(i)?p=Mk[i]:W(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,Nk))}}}}}function Fk(e){e.registerChartView(Ak),e.registerSeriesModel(FO),e.registerLayout(jk(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Pk(`line`))}var Ik=function(e){P(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(nO),Lk=null;function Rk(){return Lk}var zk=`expandAxisBreak`,Bk=Math.PI,Vk=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Hk=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Uk=nc(),Wk=nc(),Gk=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function Kk(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=gA(e.axisName)&&DE(e.nameLocation);B(r,function(e){var t=TO(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?Un(qk,n.transform):Ln(qk),t.transform&&zn(qk,qk,t.transform),X.copy(Jk,t.localRect),Jk.applyTransform(qk),s?s.union(Jk):X.copy(s=new X(0,0,0,0),Jk))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new X(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var qk=In(),Jk=new X(0,0,0,0),Yk=function(e,t,n,r,i,a){if(DE(e.nameLocation)){var o=a.stOccupiedRect;o&&Xk(OO({},o,a.transGroup.transform),r,i)}else Zk(a.labelInfoList,a.dirVec,r,i)};function Xk(e,t,n){var r=new Y;PO(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&kO(t,r)}function Zk(e,t,n,r){for(var i=Y.dot(r,t)>=0,a=0,o=e.length;a0?`top`:`bottom`,i=`center`):fs(r-Bk)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),$k=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],eA={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&($t(u,u,l),$t(d,d,l));var p=R({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&eg(r.axis.scale))Rk().buildAxisBreakLine(r,i,a,m);else{var h=new Np(R({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));Tm(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);G(g)&&(g=[g,g]),(G(_)||ft(_))&&(_=[_,_]);var v=eS(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];B([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=Qx(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){lA(t,i,s)&&tA(e,t,n,r,i,a,o,jD.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){lA(t,i,s)&&tA(e,t,n,r,i,a,o,jD.determine);var c=sA(e,i,a,r);iA(e,t.labelLayoutList,c),cA(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(gA(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new Y(0,0),_=new Y(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=In();_.transform(Vn(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*Bk/180);var b,x;DE(u)?b=Qk.innerTextLayout(e.rotation,y??e.rotation,d):(b=nA(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=yt(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new $u({x:g.x,y:g.y,rotation:b.rotation,silent:Qk.isLabelSilent(r),style:uh(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(Wm({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=Qk.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,pd(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=TO({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:DE(u)?Vk[E]:Hk[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function tA(e,t,n,r,i,a,o,s){dA(t)||uA(e,t,i,s,r,o);var c=t.labelLayoutList;pA(e,r,c,a),vA(r,e.rotation,c);var l=e.optionHideOverlap;rA(r,c,l),l&&NO(ot(c,function(e){return e&&!e.label.ignore})),Kk(e,n,r,c)}function nA(e,t,n,r){var i=ds(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return fs(i-Bk/2)?(o=c?`bottom`:`top`,a=`center`):fs(i-Bk*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=iBk/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function rA(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(TE(r))return;function a(e,a,o){var s=TO(t[a]),c=TO(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=Uk(s.label).labelInfo.tick;if(FT(l)&&u.notNice||LT(l)&&u.offInterval){aA(s.label);return}}if(e===!1||s.suggestIgnore){aA(s.label);return}if(c.suggestIgnore){aA(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=AO({marginForce:f},s),c=AO({marginForce:f},c)}PO(s,c,null,{touchThreshold:d})&&aA(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function iA(e,t,n){e.showMinorTicks||B(t,function(e){if(e&&e.label.ignore)for(var t=0;t=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}QO(DA,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r0&&v0?-2:-1,n.serUids=r}var DA=QO({ctor:XO},50);function OA(e){return function(t,n){var r=QD(t,{fromStat:{key:e}});if(ws(r.w2))return[-r.w2/2,r.w2/2]}}function kA(e,t){return e+`|&`+t}function AA(e){return TA(),{liPosMinGap:!LT(e.scale)}}function jA(e,t,n,r){$E(e,{key:t,seriesType:n,coordSysType:r,getMetrics:AA})}function MA(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var NA={left:0,right:0,top:0,bottom:0},PA=[`25%`,`25%`],FA=`cartesian2d`,IA=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=g_(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&h_(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&h_(this.option.outerBounds,t.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:NA,outerBoundsContain:`all`,outerBoundsClampWidth:PA[0],outerBoundsClampHeight:PA[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},t}(y_),LA=Cc(),RA=`__ec_stack_`;function zA(e){return e.get(`stack`)||RA+e.seriesIndex}function BA(e,t){var n=VA(e,t);return n.columnMap=HA(n),n}function VA(e,t){var n=kA(t,FA),r=[],i=QD(e,{fromStat:{key:n},min:1});return WE(e,n,function(e){r.push({barWidth:es(e.get(`barWidth`),i.w),barMaxWidth:es(e.get(`barMaxWidth`),i.w),barMinWidth:es(e.get(`barMinWidth`)||(GA(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:zA(e)})}),{bandWidthResult:i,seriesInfo:r}}function HA(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};B(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;Ft(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=Ho(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=Uo(35-o.length*4,15)+`%`;var c=es(i,t),l=es(a,1),u=(n-c)/(r+(r-1)*l);u=Uo(u,0),B(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=Ho(o,i)),a&&(o=Uo(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&io&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=Uo(u,0);var d=0,f;B(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return B(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function UA(e){return{seriesType:e,overallReset:function(t){var n=kA(e,FA);KE(t,n,function(t){var r=BA(t,e);WE(t,n,function(e){var t=r.columnMap[zA(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function WA(e){return{seriesType:e,plan:Ob(),reset:function(e){if(bA(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=dT(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(MA(i))),p=GA(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&ZO(r*3),c=p&&s&&ZO(r*3),l=p&&ZO(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,Wo(k)s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},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}(vb);vb.registerClass(JA);var YA=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return hT(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=kc(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=Lh(JA.defaultOption,{clip:!0,roundCap:!1,showBackground:!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:Q.color.primary,borderWidth:2}},realtimeSort:!1}),t}(JA),XA=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),ZA=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new XA},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-cMath.PI/2&&ua)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){lm(t,e,pd(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(jb),oj={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=rj(t.x,e.x),s=ij(t.x+t.width,i),c=rj(t.y,e.y),l=ij(t.y+t.height,a),u=si?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=ij(t.r,e.r),a=rj(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},sj={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Ju({shape:R({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?ZA:Sp,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=QA(gj(i),{isRoundCap:l===ZA}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?im:am)(u,{shape:p},a)}return u}};function cj(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function lj(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?im:am)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?im:am)(n,{shape:l},u,i)}function uj(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.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 hj(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function gj(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function _j(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;R(u,nj(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?Ej(i,a.coordinateSystem):Dj(i,a.coordinateSystem),p=lh(r);ch(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:IO(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,$A(e,h===`outside`?f:h,gj(o),r.get([`label`,`rotate`]))}bh(m,p,a.getRawValue(n),function(e){return LO(t,e)});var g=r.getModel([`emphasis`]);Cf(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),Df(e,r),hj(i)&&(e.style.fill=`none`,e.style.stroke=`none`,B(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function vj(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var yj=function(){function e(){}return e}(),bj=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new yj},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c=0?n:null},30,!1);function Cj(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function wj(e,t,n){if(fk(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function Tj(e,t,n){return new(e.type===`polar`?Sp:Ju)({shape:wj(t,n,e),silent:!0,z2:0})}function Ej(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function Dj(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function Oj(e){e.registerChartView(aj),e.registerSeriesModel(YA),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,UA(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,WA(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Pk(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),qA(e)}function kj(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(!(!n||!n.length)){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),Mj=nc(),Nj=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new jj(H(this.getData,this),H(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Aj(this,{coordDimensions:[`value`],encodeDefaulter:ut(N_,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=Mj(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=cs(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){Fs(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(vb);Zg({fullType:Nj.type,getCoord2:function(e){return e.getShallow(`center`)}});var Pj=Math.PI/180;function Fj(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;sn?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}Rj(a,r)}}}function Rj(e,t){Bj.rect=e,EO(Bj,t,zj)}var zj={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Bj={};function Vj(e){return e.position===`center`}function Hj(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*Pj,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=es(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=es(T,l);var E=w.get(`length2`);if(E=es(E,l),Math.abs(d.endAngle-d.startAngle)0?`right`:`left`:O>0?`left`:`right`}var ce=Math.PI,le=0,ue=v.get(`rotate`);if(ft(ue))le=ce/180*ue;else if(y===`center`)le=0;else if(ue===`radial`||ue===!0)le=O<0?-D+ce:-D;else if(ue===`tangential`||ue===`tangential-noflip`&&y!==`outside`&&y!==`outer`){var de=Math.atan2(O,k);de<0&&(de=ce*2+de),k>0&&ue!==`tangential-noflip`&&(de=ce+de),le=de-ce}if(a=!!le,h.x=A,h.y=j,h.rotation=le,h.setStyle({verticalAlign:`middle`}),M){h.setStyle({align:te});var fe=h.states.select;fe&&(fe.x+=h.x,fe.y+=h.y)}else{var N=new X(0,0,0,0);Rj(N,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new Y(O,k),linePoints:ee,textAlign:te,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:N,unconstrainedWidth:N.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:M})}}),!a&&e.get(`avoidLabelOverlap`)&&Ij(n,r,i,c,l,f,u,d);for(var h=0;hr?(l=O+x*r/2,u=l):(l=O+C,u=i-C),n.setItemLayout(t,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?$o(e,b,[c,s]):s}),O=i}),E0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l=n.r0}},t.type=`pie`,t}(jb);function Xj(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(ft(r)&&!isNaN(r)&&r<0)})}}}function Zj(e){e.registerChartView(Yj),e.registerSeriesModel(Nj),Ox(`pie`,e.registerAction),e.registerLayout(Gj),e.registerProcessor(kj(`pie`)),e.registerProcessor(Xj(`pie`))}var Qj=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return hT(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get(`progressiveThreshold`))},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:``},t.type=`series.scatter`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:Q.color.primary}},universalTransition:{divideShape:`clone`}},t}(vb),$j=4,eM=function(){function e(){}return e}(),tM=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new eM},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e,s=o&&r[0]<$j,c=this.softClipShape,l;if(s){this._ctx=o;return}for(this._ctx=null,l=this._off;l=0;s--){var c=s*2,l=r[c]-a/2,u=r[c+1]-o/2;if(e>=l&&t>=u&&e<=l+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,c=-1/0,l=-1/0,u=0;u=0&&(c.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),rM=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,iM(e)),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),Oc(t),iM(t)),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),this._finished){var i=jk(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(iM(e))}else return{update:!0}},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return(!n||r!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=r?new nM:new WO,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type=`scatter`,t}(jb);function iM(e){return{clipShape:dk(e)}}var aM=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,oc).models[0]},t.type=`cartesian2dAxis`,t}(y_);rt(aM,PE);var oM={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:`auto`,onZeroAxisIndex:null,lineStyle:{color:Q.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:Q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Q.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[Q.color.backgroundTint,Q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Q.color.neutral00,borderColor:Q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},sM=L({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},oM),cM=L({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Q.color.axisMinorSplitLine,width:1}}},oM),lM={category:sM,value:cM,time:L({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},cM),log:tt({logBase:10},cM)};function uM(e,t,n,r){B(hE,function(i,a){var o=L(L({},lM[a],!0),r,!0),s=function(e){P(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=m_(this),r=n?g_(e):{};L(e,t.getTheme().get(a+`Axis`)),L(e,this.getDefaultOption()),e.type=dM(e),n&&h_(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=bT.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=Rk();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,dM)}function dM(e){return e.type||(e.data?`category`:`value`)}var fM=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return V(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ot(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),pM=[`x`,`y`];function mM(e){return(e.type===`interval`||e.type===`time`)&&!eg(e)}var hM=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=FA,t.dimensions=pM,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!mM(e)||!mM(t))){var n=DT(e,null),r=DT(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Un([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.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,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new X(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return $t(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return $t(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new X(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(fM);function gM(e,t){var n=e.scale,r=e.model,i=gD(n,r,r.ecModel,e,null),a=IT(n),o=IT(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=Wo(l[0].value-l[1].value),g=Wo(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h=C[1])return!0})):b[1]?(T=C[1],A(function(){if(M(),k=Z(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=Z(qo(C[0]/E)*E,D),O=Z(Ko(C[1]/E)*E,D);var e=Go((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=Ko(t/2);n=t%2==0?[o,o]:w+T=C[1])return!0}})}jE(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}var _M=[[3,1],[0,2]],vM=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pM,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;B(this._axesList,function(e){uD(e,1);var t=e.scale;LT(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=ct(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):SD(i)}B(n,function(e){CM(e,e.__alignTo)?SD(e):gM(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};B(n.x,function(e){bM(n,`y`,e,i)}),B(n.y,function(e){bM(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=f_(e,t),i=this._rect=u_(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(TM(a,i),!n){var c=kM(i,o,a,s,t),l=void 0;if(s)DM?(DM(this._axesList,i),TM(a,i)):l=OM(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=jM(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=OM(d,f,p,i,a,c,r))}AM(i,a,jD.determine,null,l,r),B(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}K(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r=0;i--){var a=e[+t[i]];NT(a.scale)&&kE(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&B(r,function(e){e.__alignTo=n})}function CM(e,t){return eg(e.scale)||eg(t.scale)||t.scale.getTicks().length<2}function wM(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function TM(e,t){B(e.x,function(e){return EM(e,t.x,t.width)}),B(e.y,function(e){return EM(e,t.y,t.height)})}function EM(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),wM(e,t)}var DM;function OM(e,t,n,r,i,a,o){AM(r,i,jD.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=st(s,function(e){return e>0})==null;return Vm(r,s,!0,!0,n),TM(i,r),c;function l(e){B(i[pm[e]],function(t){if(OE(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i0&&!vt(t)&&t>1e-4&&(e/=t),e}}function kM(e,t,n,r,i){var a=new Gk(MM);return B(n,function(n){return B(n,function(n){if(OE(n.model)){var o=!r;n.axisBuilder=SA(e,t,n.model,i,a,o)}})}),a}function AM(e,t,n,r,i,a){var o=n===jD.determine;B(t,function(t){return B(t,function(t){OE(t.model)&&(CA(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[pm[1-t]]=e[mm[t]]<=a.refContainer[mm[t]]*.5?0:1-t==1?2:1}B(t,function(e,t){return B(e,function(e){OE(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function jM(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=u_(e.get(`outerBounds`,!0)||NA,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||z([`all`,`axisLabel`],a)<0?`all`:a,s=[ns(q(e.get(`outerBoundsClampWidth`,!0),PA[0]),t.width),ns(q(e.get(`outerBoundsClampHeight`,!0),PA[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var MM=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;Yk(e,t,n,r,i,a),DE(e.nameLocation)||B(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&Zk(e.labelInfoList,e.dirVec,r,i)})};function NM(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return PM(n,e,t),n.seriesInvolved&&IM(n,e),n}function PM(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];B(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=UM(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(B(n.getAxes(),ut(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&B(f.baseAxes,ut(p,!d||`cross`,u)),d&&B(f.otherAxes,ut(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!HM(d))){s??=d.get(`triggerTooltip`),d=r?FM(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=UM(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:HM(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=LM(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function FM(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};B(s,function(e){c[e]=I(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&tt(l,u.textStyle)}return e.model.getModel(`axisPointer`,new Mh(c,n,r))}function IM(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||B(e.coordSysAxesInfo[UM(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function LM(e,t){for(var n=t.model,r=t.dim,i=0;i=0||e===t}function zM(e){var t=BM(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=HM(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(sN(this._zr,`globalPan`)||dN(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(An(r.event),r.__ecRoamConsumed=!0,vN(e,t,n,r,i))},t}(an);function dN(e){return e.__ecRoamConsumed}var fN=nc();function pN(e){var t=fN(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function mN(e,t,n,r){for(var i=pN(e).roam,a=i[t]=i[t]||[],o=0;o=0;a--)r[a]??(delete n[t[a]],t.pop())}function NN(e,t){var n=e.visual,r=[];K(n)?DN(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),VN(e,r)}function PN(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:zN([0,1])}}function FN(e){var t=this.option.visual;return t[Math.round($o(e,[0,1],[0,t.length-1],!0))]||{}}function IN(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function LN(e){var t=this.option.visual;return t[this.option.loop&&e!==kN?e%t.length:e]}function RN(){return this.option.visual[0]}function zN(e){return{linear:function(t){return $o(t,e,this.option.visual,!0)},category:LN,piecewise:function(t,n){var r=BN.call(this,n);return r??=$o(t,e,this.option.visual,!0),r},fixed:RN}}function BN(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[AN.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function VN(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=V(t,function(e){return ji(e)||[0,0,0,1]})),t}var HN={linear:function(e){return $o(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=AN.findPieceIndex(e,t,!0);if(n!=null)return $o(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??kN},fixed:It};function UN(e,t,n){return e?t<=n:ta&&(t[1-r]=ls(t[r],d.sign*a)),t}function GN(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function KN(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var qN=!0,JN=Math.min,YN=Math.max,XN=Math.pow,ZN=1e4,QN=6,$N=6,eP=`globalPan`,tP={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},nP={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},rP={brushStyle:{lineWidth:2,stroke:Q.color.backgroundTint,fill:Q.color.borderTint},transformable:!0,brushMode:`single`,removeOnClick:!1},iP=0,aP=function(e){P(t,e);function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new jo,n._uid=`brushController_`+iP++,B(LP,function(e,t){this._handlers[t]=H(e,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||aN(t,eP,this._uid),B(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=L(I(rP),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;oN(e,eP,this._uid),B(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};B(e,function(e){t[e.panelId]=I(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e||={},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=V(e,function(e){return L(I(rP),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new Dw(n,e,s,o).add(c).update(c).remove(l).execute(),this;function o(e,n){return(e.id==null?t+n:e.id)+`-`+e.brushType}function s(e,t){return o(e.__brushOption,t)}function c(t,o){var s=e[t];o!=null&&n[o]===a?r[t]=n[o]:uP(i,r[t]=o==null?sP(i,oP(i,s)):(n[o].__brushOption=s,n[o]))}function l(e){n[e]!==a&&i.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),mP(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(an);function oP(e,t){var n=BP[t.brushType].createCover(e,t);return n.__brushOption=t,lP(n,t),e.group.add(n),n}function sP(e,t){var n=dP(t);return n.endCreating&&(n.endCreating(e,t),lP(t,t.__brushOption)),t}function cP(e,t){var n=t.__brushOption;dP(t).updateCoverShape(e,t,n.range,n)}function lP(e,t){var n=t.z;n??=ZN,e.traverse(function(e){e.z=n,e.z2=n})}function uP(e,t){dP(t).updateCommon(e,t),cP(e,t)}function dP(e){return BP[e.__brushOption.brushType]}function fP(e,t,n){var r=e._panels;if(!r)return qN;var i,a=e._transform;return B(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function pP(e,t){var n=e._panels;if(!n)return qN;var r=t.__brushOption.panelId;return r==null?qN:n[r]}function mP(e){var t=e._covers,n=t.length;return B(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function hP(e,t){var n=V(e._covers,function(e){var t=e.__brushOption,n=I(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function gP(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return XN(i*i+a*a,.5)>QN}function _P(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function vP(e,t,n,r){var i=new jo;return i.add(new Ju({name:`main`,style:SP(n),silent:!0,draggable:!0,cursor:`move`,drift:ut(DP,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:ut(hP,t,{isEnd:!0})})),B(r,function(n){i.add(new Ju({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ut(DP,e,t,i,n),ondragend:ut(hP,t,{isEnd:!0})}))}),i}function yP(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=YN(i,$N),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;xP(e,t,`main`,o,s,m,h),r.transformable&&(xP(e,t,`w`,c,l,a,_),xP(e,t,`e`,f,l,a,_),xP(e,t,`n`,c,l,g,a),xP(e,t,`s`,c,p,g,a),xP(e,t,`nw`,c,l,a,a),xP(e,t,`ne`,f,l,a,a),xP(e,t,`sw`,c,p,a,a),xP(e,t,`se`,f,p,a,a))}function bP(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(SP(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),B([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?TP(e,n[0]):EP(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?nP[a]+`-resize`:null})})}function xP(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(jP(AP(e,t,[[r,i],[r+a,i+o]])))}function SP(e){return tt({strokeNoScale:!0},e.brushStyle)}function CP(e,t,n,r){var i=[JN(e,n),JN(t,r)],a=[YN(e,n),YN(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function wP(e){return Om(e.group)}function TP(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[Am({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],wP(e))]}function EP(e,t){var n=[TP(e,t[0]),TP(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function DP(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=kP(t,i,a);B(r,function(e){var t=tP[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(CP(s[0][0],s[1][0],s[0][1],s[1][1])),uP(t,n),hP(t,{isEnd:!1})}function OP(e,t,n,r){var i=t.__brushOption.range,a=kP(e,n,r);B(i,function(e){e[0]+=a[0],e[1]+=a[1]}),uP(e,t),hP(e,{isEnd:!1})}function kP(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function AP(e,t,n){var r=pP(e,t);return r&&r!==qN?r.clipPath(n,e._transform):I(n)}function jP(e){var t=JN(e[0][0],e[1][0]),n=JN(e[0][1],e[1][1]),r=YN(e[0][0],e[1][0]),i=YN(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function MP(e,t,n){if(!(!e._brushType||zP(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=fP(e,t,n);if(!e._dragging)for(var o=0;or.getWidth()||n<0||n>r.getHeight()}var BP={lineX:VP(0),lineY:VP(1),rect:{createCover:function(e,t){function n(e){return e}return vP({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=_P(e);return CP(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){yP(e,t,n,r)},updateCommon:bP,contain:PP},polygon:{createCover:function(e,t){var n=new jo;return n.add(new Ap({name:`main`,style:SP(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Op({name:`main`,draggable:!0,drift:ut(OP,e,t),ondragend:ut(hP,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:AP(e,t,n)})},updateCommon:bP,contain:PP}};function VP(e){return{createCover:function(t,n){return vP({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=_P(t);return[JN(n[0][e],n[1][e]),YN(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=pP(t,n);if(o!==qN&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),yP(t,n,c,i)},updateCommon:bP,contain:PP}}function HP(e){return e=GP(e),function(t){return Pm(t,e)}}function UP(e,t){return e=GP(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function WP(e,t,n){var r=GP(e);return function(e,i){return r.contain(i[0],i[1])&&!lN(e,t,n)}}function GP(e){return X.create(e)}var KP=256,qP=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Re.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,`inRange`),c=this._getGradient(i,`outOfRange`),l=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext(`2d`),f=e.length;u.width=t,u.height=n;for(var p=0;p0){var E=a(v)?s:c;v>0&&(v=v*w+C),b[x++]=E[T],b[x++]=E[T+1],b[x++]=E[T+2],b[x++]=E[T+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||=Re.createCanvas(),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var r=e.getContext(`2d`);return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=Q.color.neutral99,r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function JP(e,t,n){var r=e[1]-e[0];t=V(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var i=t.length,a=0;return function(e){var r;for(r=a;r=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r=t[0]&&e<=t[1]}}var XP=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r;t.eachComponent(`visualMap`,function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;i.type===`cartesian2d`||i.type===`calendar`||i.type===`matrix`?this._renderOnGridLike(e,n,0,e.getData().count()):pk(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(pk(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Km(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=fk(a,`cartesian2d`),s=fk(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);c=QD(f).w+.5,l=QD(p).w+.5,u=f.scale.getExtent(),d=p.scale.getExtent()}for(var m=this.group,h=e.getData(),g=e.getModel([`emphasis`,`itemStyle`]).getItemStyle(),_=e.getModel([`blur`,`itemStyle`]).getItemStyle(),v=e.getModel([`select`,`itemStyle`]).getItemStyle(),y=e.get([`itemStyle`,`borderRadius`]),b=lh(e),x=e.getModel(`emphasis`),S=x.get(`focus`),C=x.get(`blurScope`),w=x.get(`disabled`),T=o||s?[h.mapDimension(`x`),h.mapDimension(`y`),h.mapDimension(`value`)]:[h.mapDimension(`time`),h.mapDimension(`value`)],E=n;Eu[1]||Ad[1])continue;var j=a.dataToPoint([k,A]);D=new Ju({shape:{x:j[0]-c/2,y:j[1]-l/2,width:c,height:l},style:O})}else if(s){var ee=a.dataToLayout([h.get(T[0],E),h.get(T[1],E)]).rect;if(vt(ee.x))continue;D=new Ju({z2:1,shape:ee,style:O})}else{if(isNaN(h.get(T[1],E)))continue;var te=a.dataToLayout([h.get(T[0],E)]),ee=te.contentRect||te.rect;if(vt(ee.x)||vt(ee.y))continue;D=new Ju({z2:1,shape:ee,style:O})}if(h.hasItemOption){var M=h.getItemModel(E),ne=M.getModel(`emphasis`);g=ne.getModel(`itemStyle`).getItemStyle(),_=M.getModel([`blur`,`itemStyle`]).getItemStyle(),v=M.getModel([`select`,`itemStyle`]).getItemStyle(),y=M.get([`itemStyle`,`borderRadius`]),S=ne.get(`focus`),C=ne.get(`blurScope`),w=ne.get(`disabled`),b=lh(M)}D.shape.r=y;var re=e.getRawValue(E),ie=`-`;re&&re[2]!=null&&(ie=re[2]+``),ch(D,b,{labelFetcher:e,labelDataIndex:E,defaultOpacity:O.opacity,defaultText:ie}),D.ensureState(`emphasis`).style=g,D.ensureState(`blur`).style=_,D.ensureState(`select`).style=v,Cf(D,S,C,w),D.incremental=Oc(e,i),i&&(D.states.emphasis.hoverLayer=2),m.add(D),h.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new qP;s.blurSize=t.get(`blurSize`),s.pointSize=t.get(`pointSize`),s.minOpacity=t.get(`minOpacity`),s.maxOpacity=t.get(`maxOpacity`);var c=e.getViewRect().clone(),l=e.getRoamTransform();c.applyTransform(l);var u=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),p=Math.min(c.height+c.y,r.getHeight()),m=f-u,h=p-d,g=[o.mapDimension(`lng`),o.mapDimension(`lat`),o.mapDimension(`value`)],_=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i}),v=n.getExtent(),y=n.type===`visualMap.continuous`?YP(v,n.option.range):JP(v,n.getPieceList(),n.option.selected);s.update(_,m,h,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new Bu({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(jb),ZP=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return hT(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=Yg.get(this.get(`coordinateSystem`));if(e&&e.dimensions)return e.dimensions[0]===`lng`&&e.dimensions[1]===`lat`},t.type=`series.heatmap`,t.dependencies=[`grid`,`geo`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:Q.color.primary}}},t}(vb);function QP(e){e.registerChartView(XP),e.registerSeriesModel(ZP)}var $P=nc(),eF=I,tF=H,nF=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new jo,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=ut(rF,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}sF(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&QD(r).w>o)return!0;if(a){var s=BM(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=$P(e).pointerEl=new dm[i.type](eF(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=$P(e).labelEl=new $u(eF(t.label));e.add(i),aF(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=$P(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=$P(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),aF(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=Im(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){An(e.event)},onmousedown:tF(this._onHandleDragMove,this,0,0),drift:tF(this._onHandleDragMove,this),ondragend:tF(this._onHandleDragEnd,this)}),n.add(r)),sF(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);U(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Vb(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){rF(this._axisPointerModel,!t&&this._moveAnimation,this._handle,oF(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(oF(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(oF(r)),$P(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Hb(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function rF(e,t,n,r){iF($P(n).lastProp,r)||($P(n).lastProp=r,t?im(n,r,e):(n.stopAnimation(),n.attr(r)))}function iF(e,t){if(K(e)&&K(t)){var n=!0;return B(t,function(t,r){n&&=iF(e[r],t)}),!!n}else return e===t}function aF(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function oF(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function sF(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function cF(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function lF(e,t,n,r,i){var a=dF(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=zg(o.get(`padding`)||0),c=o.getFont(),l=so(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),uF(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:uh(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function uF(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function dF(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:CE(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};B(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),G(o)?a=o.replace(`{value}`,a):W(o)&&(a=o(s))}return a}function fF(e,t,n){var r=In();return Vn(r,r,n.rotation),Bn(r,r,n.position),km([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function pF(e,t,n,r,i,a){var o=Qk.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),lF(t,r,i,a,{position:fF(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function mF(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function hF(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function gF(e,t,n){return QD(e,{fromStat:{sers:V(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function _F(e,t,n){return[Uo(Ho(t[0],t[1]),e-n/2),Ho(e+n/2,Uo(t[0],t[1]))]}var vF=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=yF(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=cF(r),f=bF[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}pF(t,e,yA(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=yA(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=fF(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=yF(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Ho(o[1],l[c]),l[c]=Uo(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(nF);function yF(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var bF={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:mF([t,r[0]],[t,r[1]],xF(e))}},shadow:function(e,t,n,r,i,a){var o=gF(e,i,a),s=r[1]-r[0],c=_F(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:hF([l,r[0]],[u-l,s],xF(e))}}};function xF(e){return e.dim===`x`?0:1}var SF=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}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:Q.color.border,width:1,type:`dashed`},shadowStyle:{color:Q.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Q.color.neutral00,padding:[5,7,5,7],backgroundColor:Q.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:Q.color.accent40,throttle:40}},t}(y_),CF=nc(),wF=B;function TF(e,t,n){if(!F.node){var r=t.getZr();CF(r).records||(CF(r).records={}),EF(r,t);var i=CF(r).records[e]||(CF(r).records[e]={});i.handler=n}}function EF(e,t){if(CF(e).initialized)return;CF(e).initialized=!0,n(`click`,ut(kF,`click`)),n(`mousemove`,ut(kF,`mousemove`)),n(`mousewheel`,ut(kF,`mousewheel`)),n(`globalout`,OF);function n(n,r){e.on(n,function(n){var i=AF(t);wF(CF(e).records,function(e){e&&r(e,n,i.dispatchAction)}),DF(i.pendings,t)})}}function DF(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function OF(e,t,n){e.handler(`leave`,null,n)}function kF(e,t,n,r){t.handler(e,n,r)}function AF(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function jF(e,t){if(!F.node){var n=t.getZr();(CF(n).records||{})[e]&&(CF(n).records[e]=null)}}var MF=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;TF(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){jF(`axisPointer`,t)},t.prototype.dispose=function(e,t){jF(`axisPointer`,t)},t.type=`axisPointer`,t}(Db);function NF(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=tc(a,e);if(o==null||o<0||U(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(V(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var PF=nc();function FF(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||H(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){GF(i)&&(i=NF({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=GF(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||GF(i),f={},p={},m={list:[],map:{}},h={showPointer:ut(RF,p),showTooltip:ut(zF,m)};B(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);B(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=UF(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&IF(e,o,h,!1,f)}})});var g={};return B(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&B(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,WF(t),WF(e)))),g[e.key]=a}})}),B(g,function(e,t){IF(u[t],e,h,!0,f)}),BF(p,u,f),VF(m,i,e,o),HF(u,o,n),f}}function IF(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=LF(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&R(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function LF(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return B(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(ws(u)){var p=e-u,m=Math.abs(p);m<=o&&((m=0&&s<0)&&(o=m,s=p,i=u,a.length=0),B(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function RF(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function zF(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=UM(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function BF(e,t,n){var r=n.axesInfo=[];B(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function VF(e,t,n,r){if(GF(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function HF(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=PF(r)[i]||{},o=PF(r)[i]={};B(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&B(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}B(a,function(e,t){!o[t]&&c.push(l(e))}),B(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function UF(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function WF(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function GF(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function KF(e){GM.registerAxisPointerClass(`CartesianAxisPointer`,vF),e.registerComponentModel(SF),e.registerComponentView(MF),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!U(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=NM(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},FF)}function qF(e){OD(nN),OD(KF)}var JF=[`x`,`y`,`radius`,`angle`,`single`],YF=nc(),XF=[`cartesian2d`,`polar`,`singleAxis`];function ZF(e){return z(XF,e.get(`coordinateSystem`))>=0}function QF(e){return e+`Axis`}function $F(e,t){var n=J(),r=[],i=J();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function eI(e){var t=e.ecModel,n={infoList:[],infoMap:J()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(QF(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}function tI(e){var t=YF(Vx(e));return t.axisProxyMap||=J()}function nI(e){if(e)return tI(e.ecModel).get(e.uid)}function rI(e,t){tI(e.ecModel).set(e.uid,t)}function iI(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?nI(n.model):null}var aI=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),oI=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=sI(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=sI(e);L(this.option,e,!0),L(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;B([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=J();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return B(JF,function(n){var r=this.getReferringComponents(QF(n),sc);if(r.specified){t=!0;var i=new aI;B(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new aI;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,oc).models[0];o&&B(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,oc).models[0]&&a.add(e.componentIndex)})}}}r&&B(JF,function(t){if(r){var i=n.findComponents({mainType:QF(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new aI;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);B([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(QF(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){B(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){return nI(this.getAxisModel(e,t))},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(QF(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;B([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;B([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(e,t).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return nI(e);for(var t,n=this._targetAxisInfoMap.keys(),r=0;ra[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else B(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});B(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;B([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=$o(i,[0,100],n,!0)-n[0]):i=$o(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),fI={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(QF(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!nI(i)){var o=new dI(t,r,a,e);n.push(o),rI(i,o)}});var r=J();return B(n,function(e){B(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){var n=[];e.eachTargetAxis(function(t,r){var i=e.getAxisProxy(t,r),a=iI(e,i);a?n.push([i,a]):i.reset(e,null)}),B(n,function(t){t[0].reset(e,t[1].getWindow().percentInverted)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getWindow(),r=n.percent,i=n.value;e.setCalculatedRange({start:r[0],end:r[1],startValue:i[0],endValue:i[1]})}})}};function pI(e){e.registerAction(`dataZoom`,function(e,t){B($F(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var mI=Cc();function hI(e){mI(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,fI),pI(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function gI(e){e.registerComponentModel(cI),e.registerComponentView(uI),hI(e)}var _I=function(){function e(){}return e}(),vI={};function yI(e,t){vI[e]=t}function bI(e){return vI[e]}var xI=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=r.getTheme().get(`toolbox`),a=i?i.feature:null;a&&(this._themeFeatureOption=R({},a),i.feature={}),e.prototype.init.call(this,t,n,r),a&&(i.feature=a)},t.prototype.optionUpdated=function(){B(this.option.feature,function(e,t){var n=this._themeFeatureOption,r=bI(t);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(this.ecModel)),n&&n[t]&&(L(e,n[t]),n[t]=null),L(e,r.defaultOption))},this)},t.type=`toolbox`,t.layoutMode={type:`box`,ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:Q.size.m,itemSize:15,itemGap:Q.size.s,showTitle:!0,iconStyle:{borderColor:Q.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:Q.color.accent70}},tooltip:{show:!1,position:`bottom`}},t}(y_);function SI(e,t){var n=zg(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Ju({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var CI=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||=J(),l=[];B(s,function(e,t){l.push(t)}),new Dw(this._featureNames||[],l).add(u).update(u).remove(ut(u,null)).execute(),this._featureNames=ot(l,function(e){return c.hasKey(e)});function u(i,a){var o=i!=null&&a==null,u=i!=null&&a!=null,f=i==null,p=o||u?l[i]:l[a],m=s[p],h=o||u?new Mh(m,e,t):null,g=h&&h.get(`show`),_;if(o){if(!g)return;if(wI(p))_={onclick:h.option.onclick,featureName:p};else{var v=bI(p);if(!v)return;_=new v}c.set(p,_)}else _=c.get(p);if(f||!g){TI(_)&&_.dispose&&_.dispose(t,n),c.removeKey(p);return}r&&r.newTitle!=null&&r.featureName===p&&(m.title=r.newTitle),o&&(_.uid=Ph(`toolbox-feature`)),_.model=h,_.ecModel=t,_.api=n,d(h,_,p),h.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?rf:af)(r[e])},TI(_)&&_.render&&_.render(h,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof _I&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;G(d)?(p={},p[c]=d):p=d,G(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};B(p,function(c,d){var f=Im(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new $u({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:vh({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),Wm({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||Q.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?rf:af)(f),i.add(f),f.on(`click`,H(s.onclick,s,t,n,d)),h[d]=f})}var f=f_(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=u_(p,f,m);o_(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),p_(i,p,f,m),i.add(SI(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!W(c)&&t){var l=c.style||={},u=so(t,$u.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){B(this._features,function(e){e&&e instanceof _I&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.dispose=function(e,t){B(this._features,function(n){n&&n instanceof _I&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(Db);function wI(e){return e.indexOf(`my`)===0}function TI(e){return e instanceof _I}var EI=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||Q.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=F.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var m=f.length,h=new Uint8Array(m);m--;)h[m]=f.charCodeAt(m);var g=new Blob([h]);window.navigator.msSaveOrOpenBlob(g,p)}else{var _=document.createElement(`iframe`);document.body.appendChild(_);var v=_.contentWindow,y=v.document;y.open(`image/svg+xml`,`replace`),y.write(f),y.close(),v.focus(),y.execCommand(`SaveAs`,!0,p),document.body.removeChild(_)}}else{var b=n.get(`lang`),x=``,S=window.open();S.document.write(x),S.document.title=r}},t.getDefaultOption=function(e){return{show:!0,icon:`M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0`,title:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:Q.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(_I),DI=`__ec_magicType_stack__`,OI=[[`line`,`bar`],[`stack`]],kI=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return B(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:`M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4`,bar:`M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7`,stack:`M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z`},title:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if(AI[n]){var a={series:[]};B(OI,function(e){z(e,n)>=0&&B(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=AI[n](t,i,e,r);o&&(tt(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,oc).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=L({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(_I),AI={line:function(e,t,n,r){if(e===`bar`)return L({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return L({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===DI;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),L({id:t,stack:i?``:DI},r.get([`option`,`stack`])||{},!0)}};hw({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var jI=Array(60).join(`-`),MI=` `;function NI(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=wA(a);t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function PI(e){var t=[];return B(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(V(e.series,function(e){return e.name})),o=[r.model.getCategories()];B(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(MI)],c=0;c=0)return!0}var zI=RegExp(`[`+MI+`]+`,`g`);function BI(e){for(var t=e.split(/\n+/g),n=LI(t.shift()).split(zI),r=[],i=V(n,function(e){return{name:e,data:[]}}),a=0;a=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function JI(e){var t=ZI(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return GI(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function YI(e){KI(e).snapshots=null}function XI(e){return ZI(e).length}function ZI(e){var t=KI(e);return t.snapshots||=[{}],t.snapshots}var QI=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){YI(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:`M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5`,title:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(_I);hw({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var $I=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],eL=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=nL(t,e);B(rL,function(e,t){(!n||!n.include||z(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=oL[e.brushType](0,n,t);e.__rangeOffset={offset:cL[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){B(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&B(r.coordSyses,function(r){n(e,oL[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){B(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=oL[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?cL[e.brushType](r.values,i.offset,uL(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return V(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:HP(r),isTargetByCursor:WP(r,e,n.coordSysModel),getLinearBrushOtherExtent:UP(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&z(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=nL(t,e),i=0;ie[1]&&e.reverse(),e}function nL(e,t){return ic(e,t,{includeMainTypes:$I})}var rL={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=J(),o={},s={};!n&&!r&&!i||(B(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),B(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),B(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];B(i.getCartesians(),function(e,t){(z(n,e.getAxis(`x`).model)>=0||z(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:aL.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){B(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:aL.geo})})}},iL=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],aL={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys.view,t=wN(null,e);return sr(t,t,CN(null,e)),t}},oL={lineX:ut(sL,0),lineY:ut(sL,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[tL([i[0],a[0]]),tL([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[mc(),mc()];return{values:V(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function sL(e,t,n,r){var i=n.getAxis([`x`,`y`][e]),a=tL(V([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var cL={lineX:ut(lL,0),lineY:ut(lL,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return V(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function lL(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function uL(e,t){var n=dL(e),r=dL(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function dL(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var fL=B,pL=Zs(`toolbox-dataZoom_`),mL={x:`width`,y:`height`},hL=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new aP(n.getZr()),this._brushController.on(`brush`,H(this._onBrush,this)).mount()),yL(e,t,this,r,n),vL(e,t)},t.prototype.onclick=function(e,t,n){gL[n].call(this)},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new eL(_L(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=n.master.getRect().clone(),a=e.brushType;a===`rect`?(i(`x`,n,r,t[0]),i(`y`,n,r,t[1])):i({lineX:`x`,lineY:`y`}[a],n,r,t)}}),qI(r,n),this._dispatchZoomAction(n);function i(e,t,i,o){var s=t.getAxis(e),c=s.model,l=a(e,c,r),u=l.findRepresentativeAxisProxy(c).getMinMaxSpan(),d=s.scale.getExtent();(u.minValueSpan!=null||u.maxValueSpan!=null)&&(o=WN(0,o.slice(),d,0,u.minValueSpan,u.maxValueSpan));var f=ss(d,i[mL[e]],.5);l&&(n[l.id]={dataZoomId:l.id,startValue:isFinite(f)?Z(o[0],f):o[0],endValue:isFinite(f)?Z(o[1],f):o[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];fL(e,function(e,n){t.push(I(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:`filter`,icon:{zoom:`M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1`,back:`M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26`},title:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:Q.color.backgroundTint}}},t}(_I),gL={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(JI(this.ecModel))}};function _L(e){var t={xAxisIndex:e.get(`xAxisIndex`,!0),yAxisIndex:e.get(`yAxisIndex`,!0),xAxisId:e.get(`xAxisId`,!0),yAxisId:e.get(`yAxisId`,!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex=`all`),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex=`all`),t}function vL(e,t){e.setIconStatus(`back`,XI(t)>1?`emphasis`:`normal`)}function yL(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`&&r.dataZoomSelectActive),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new eL(_L(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}z_(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=ic(e,_L(r));fL(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),fL(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:pL+t+a};o[n]=a,i.push(o)}return i});function bL(e){e.registerComponentModel(xI),e.registerComponentView(CI),yI(`saveAsImage`,EI),yI(`magicType`,kI),yI(`dataView`,UI),yI(`dataZoom`,hL),yI(`restore`,QI),OD(gI)}var xL=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Q.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Q.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Q.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Q.color.tertiary,fontSize:14}},t}(y_);function SL(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function CL(e){if(F.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`
`}function NL(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(F.transformSupported?``+kL+i:`,left`+i+`,top`+i)),OL+`:`+a}function PL(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!F.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=F.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+kL+`:`+o+`;`:[[`top`,0],[`left`,0],[wL,o]]}function FL(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=q(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),B([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function IL(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=fb(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(NL(a,n,r)),o&&i.push(`background-color:`+o),B([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Rg(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(FL(d)),f!=null&&i.push(`padding:`+zg(f).join(`px `)+`px`),i.join(`;`)+`;`}function LL(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&dn(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var RL=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,F.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(G(i)?document.querySelector(i):ht(i)?i:W(i)&&i(e.getDom()));LL(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;En(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=DL(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=AL+IL(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+PL(i[0],i[1],!0)+(`border-color:`+Gg(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(G(i)&&n.get(`trigger`)===`item`&&!SL(n)&&(o=ML(n,r,i)),G(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,U(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||F.node||!n.getDom())){var i=KL(r,n);this._ticket=``;var a=r.dataByCoordSys,o=ZL(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=UL;c.x=r.x,c.y=r.y,c.update(),pd(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=NF(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(KL(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(!(i==null||a==null||o==null)){var s=t.getSeriesByIndex(i);if(s&&GL([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(pd(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;jx(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(pd(e).dataIndex==null?pd(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=H(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=GL([t.tooltipOption],r),o=this._renderMode,s=[],c=Qy(`section`,{blocks:[],noHeader:!0}),l=[],u=new pb;B(e,function(e){B(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=dF(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=Qy(`section`,{header:f,noHeader:!wt(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),B(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=CE(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Gg(m.color),o);var h=my(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=GL([a],r).get(`valueFormatter`);p.blocks.push(_?R({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=ib(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?` + +`:`
`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=pd(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=GL([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new pb;h.marker=g.makeTooltipMarker(`item`,Gg(h.color),d);var _=my(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?ib(y?R({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=pd(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(G(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=I(a),a.content=yn(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=GL(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new pb;this._showOrMove(d,function(){var n=I(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(G(u)){var p=e.ecModel.get(`useUTC`),m=U(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=yg(m.axisValue,d,p)),d=Ug(d,n,!0)}else if(W(u)){var g=H(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||U(t))return{color:r||i};if(!U(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),W(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),U(t))n=es(t[0],s),r=es(t[1],c);else if(K(t)){var p=t;p.width=l[0],p.height=l[1];var m=u_(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(G(t)&&o){var h=YL(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=qL(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=XL(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=XL(d)?l[1]/2:d===`bottom`?l[1]:0),SL(e)){var h=JL(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&B(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&B(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&B(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&B(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){F.node||!t.getDom()||(Hb(this,`_updatePosition`),this._tooltipContent.dispose(),jF(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(Db);function GL(e,t,n){var r=t.ecModel,i;n?(i=new Mh(n,r,r),i=new Mh(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Mh&&(o=o.get(`tooltip`,!0)),G(o)&&(o={formatter:o}),o&&(i=new Mh(o,i,r)))}return i}function KL(e,t){return e.dispatchAction||H(t.dispatchAction,t)}function qL(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function JL(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function YL(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function XL(e){return e===`center`||e===`middle`}function ZL(e,t,n){var r=ac(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=cc(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=pd(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function QL(e){OD(KF),e.registerComponentModel(xL),e.registerComponentView(WL),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},It),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},It)}var $L=B;function eR(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function tR(e,t,n){var r={};return $L(t,function(t){var a=r[t]=i();$L(e[t],function(e,r){if(AN.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new AN(i),r===`opacity`&&(i=I(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new AN(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function nR(e,t,n){var r;B(n,function(e){t.hasOwnProperty(e)&&eR(t[e])&&(r=!0)}),r&&B(n,function(n){t.hasOwnProperty(n)&&eR(t[n])?e[n]=I(t[n]):delete e[n]})}function rR(e,t,n,r){var i={};return B(e,function(e){i[e]=AN.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return Tx(a,l,e)}function c(e,t){Dx(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}var iR=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:Q.size.m,backgroundColor:Q.color.transparent,borderColor:Q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:Q.color.primary},subtextStyle:{fontSize:12,color:Q.color.quaternary}},t}(y_),aR=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=q(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new $u({style:uh(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new $u({style:uh(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){Kg(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){Kg(p,`_`+e.get(`subtarget`))}),pd(c).eventData=pd(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=u_(g,f_(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new Ju({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(Db);function oR(e){e.registerComponentModel(iR),e.registerComponentView(aR)}var sR=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},cR=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),U(t)&&B(t,function(e,r){G(e)&&(e={type:e}),t[r]=L(e,sR(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n=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:Q.size.m,align:`auto`,backgroundColor:Q.color.transparent,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:Q.color.disabled,inactiveBorderColor:Q.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:Q.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:Q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:Q.color.tertiary,borderWidth:1,borderColor:Q.color.border},emphasis:{selectorLabel:{show:!0,color:Q.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(y_),lR=ut,uR=B,dR=jo,fR=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new dR),this.group.add(this._selectorGroup=new dR),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=f_(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=u_(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=u_(tt({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=SI(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=J(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),uR(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===` +`)){var p=new dR;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,lR(hR,f,null,r,d)).on(`mouseover`,lR(gR,m.name,null,r,d)).on(`mouseout`,lR(_R,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=pd(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=ji(h.fill);_&&_[3]===0&&(_[3]=.2,h=R(R({},h),{fill:zi(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,lR(hR,null,f,r,d)).on(`mouseover`,lR(gR,null,f,r,d)).on(`mouseout`,lR(_R,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=pd(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};pd(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();uR(e,function(e){var r=e.type,i=new $u({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),ch(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),xf(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=pR(c,r,o,s,d,m,u),y=new dR,b=r.getModel(`textStyle`);if(W(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(mR({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;G(w)&&w?T=w.replace(`{name}`,t??``):W(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new $u({style:uh(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Ju({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Wm({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),xf(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();o_(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){o_(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(Db);function pR(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),uR(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:VS(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function mR(e){var t=e.icon||`roundRect`,n=Qx(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2),n}function hR(e,t,n,r){_R(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),gR(e,t,n,r)}function gR(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function _R(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function vR(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),yR(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){B(i,function(t,n){e[t?`select`:`unSelect`](n)}),yR(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function yR(e,t){var n=t||{};return B(e.getData(),function(t){var r=t.get(`name`);if(!(r===` +`||r===``)){var i=e.isSelected(r);Ft(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function bR(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,ut(vR,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,ut(vR,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,ut(vR,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,ut(vR,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,ut(vR,`unSelect`))}var xR=jc(SR);function SR(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;nn[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=q(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Ju({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&im(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;B([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,G(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=DR[i],o=OR[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(fR);function AR(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function jR(e){OD(CR),e.registerComponentModel(wR),e.registerComponentView(kR),AR(e)}function MR(e){OD(CR),OD(jR)}var NR=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=Lh(oI.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(oI),PR=nc();function FR(e,t,n){PR(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function IR(e,t){for(var n=PR(e).coordSysRecordMap,r=n.keys(),i=0;ia[i+r]&&(r=n),o&&=t.get(`preventDefaultMouseMove`,!0),s=q(t.get(`cursorGrab`,!0),s),c=q(t.get(`cursorGrabbing`,!0),c)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:n,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:s,cursorGrabbing:c}}}function HR(e){e.registerUpdateLifecycle(`coordsys:aftercreate`,function(e,t){var n=PR(t),r=n.coordSysRecordMap||=J();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){B(eI(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,RR(t,n.model));(a.dataZoomInfoMap||=J()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var n=e.controller,i,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];o!=null&&(i=a.get(o))}if(!i){LR(r,e);return}var s=VR(a,e,t);n.enable(s.controlType,s.opt),Vb(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)})})}var UR=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),FR(r,t,{pan:H(WR.pan,this),zoom:H(WR.zoom,this),scrollMove:H(WR.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){IR(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(lI),WR={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=KR[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(WN(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:GR(function(e,t,n,r,i,a){var o=KR[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:GR(function(e,t,n,r,i,a){return KR[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function GR(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(WN(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var KR={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function qR(e){hI(e),e.registerComponentModel(NR),e.registerComponentView(UR),HR(e)}var JR=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=Lh(oI.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:Q.color.accent10,borderRadius:0,backgroundColor:Q.color.transparent,dataBackground:{lineStyle:{color:Q.color.accent30,width:.5},areaStyle:{color:Q.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:Q.color.accent40,width:.5},areaStyle:{color:Q.color.accent20,opacity:.3}},fillerColor:`rgba(135,175,274,0.2)`,handleIcon:`path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z`,handleSize:`100%`,handleStyle:{color:Q.color.neutral00,borderColor:Q.color.accent20},moveHandleSize:7,moveHandleIcon:`path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z`,moveHandleStyle:{color:Q.color.accent40,opacity:.5},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:Q.color.tertiary},brushSelect:!0,brushStyle:{color:Q.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:Q.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(oI),YR=Ju,XR=1,ZR=30,QR=7,$R=`horizontal`,ez=`vertical`,tz=5,nz=[`line`,`bar`,`candlestick`,`scatter`],rz={easing:`cubicOut`,duration:100,delay:0},iz=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=H(this._onBrush,this),this._onBrushEnd=H(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),Vb(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!==`dataZoom`||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Hb(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new jo;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?QR:0,r=f_(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===$R?{right:r.width-i.x-i.width,top:r.height-ZR-a-n,width:i.width,height:ZR}:{right:a,top:i.y,width:ZR,height:i.height},s=g_(e.option);B([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=u_(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===ez&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===$R&&!i?{scaleY:o?1:-1,scaleX:1}:n===$R&&i?{scaleY:o?1:-1,scaleX:-1}:n===ez&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]),c=isNaN(s.x)?0:s.x,l=isNaN(s.y)?0:s.y;e.x=t.x-c,e.y=t.y-l,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new YR({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new YR({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:H(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(e.thisDim),u=i.getDataExtent(o),d=(u[1]-u[0])*.3;u=[u[0]-d,u[1]+d];var f=[0,t[1]],p=[0,t[0]],m=[[t[0],0],[0,0]],h=[],g=p[1]/Math.max(1,i.count()-1),_=t[0]/(l[1]-l[0]),v=e.thisAxis.type===`time`,y=-g,b=Math.round(i.count()/t[0]),x;i.each([e.thisDim,o],function(e,t,n){if(b>0&&n%b){v||(y+=g);return}y=v?(+e-l[0])*_:y+g;var r=t==null||isNaN(t)||t===``,i=r?0:$o(t,u,f,!0);r&&!x&&n?(m.push([m[m.length-1][0],0]),h.push([h[h.length-1][0],0])):!r&&x&&(m.push([y,0]),h.push([y,0])),r||(m.push([y,i]),h.push([y,i])),x=r}),s=this._shadowPolygonPts=m,c=this._shadowPolylinePts=h}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var S=this.dataZoomModel;function C(e){var t=S.getModel(e?`selectedDataBackground`:`dataBackground`),n=new jo,r=new Op({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new Ap({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var w=0;w<3;w++){var T=C(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){B(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&z(nz,e.get(`type`))<0)){var o=r.getComponent(QF(i),a).axis,s=oz(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:e.getData().mapDimension(i),otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new YR({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new YR({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:XR,fill:Q.color.transparent}})),B([0,1],function(t){var a=o.get(`handleIcon`);!Yx[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=Qx(a,-1,0,2,2,null,!0);s.attr({cursor:sz(this._orient),draggable:!0,drift:H(this._onDragMove,this,t),ondragend:H(this._onDragEnd,this),onmouseover:H(this._onOverDataInfoTriggerArea,this,!0),onmouseout:H(this._onOverDataInfoTriggerArea,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=es(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),xf(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new $u({silent:!0,invisible:!f,style:uh(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=es(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new Ju({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=Qx(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,Q.color.neutral00,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new Ju({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:`grab`,drift:H(this._onActualMoveZoneDrift,this),ondragstart:H(this._onActualMoveZoneDragStart,this),ondragend:H(this._onActualMoveZoneDragEnd,this),onmouseover:H(this._onOverDataInfoTriggerArea,this,!0),onmouseout:H(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[$o(e[0],[0,100],t,!0),$o(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];WN(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:$o(a.minSpan,o,i,!0),a.maxSpan==null?null:$o(a.maxSpan,o,i,!0));var s=this._range,c=this._range=is([$o(r[0],i,o,!0),$o(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=is(n.slice()),i=this._size;B([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;ct[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Y(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100],a=this._handleEnds=[n.x,n.x+n.width],o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();WN(0,a,r,0,o.minSpan==null?null:$o(o.minSpan,i,r,!0),o.maxSpan==null?null:$o(o.maxSpan,i,r,!0)),this._range=is([$o(a[0],r,i,!0),$o(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(An(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new YR({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?rz:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=eI(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(lI);function az(e,t,n,r){var i=e.get(`labelFormatter`),a=e.get(`labelPrecision`);(a==null||a===`auto`)&&(a=n.valuePrecision);var o=n.value[t],s=o==null||isNaN(o)?``:LT(r)||FT(r)?r.getLabel({value:Math.round(o)}):isFinite(a)?Z(o,a,!0):o+``;return W(i)?i(o,s):G(i)?i.replace(`{value}`,s):s}function oz(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function sz(e){return e===`vertical`?`ns-resize`:`ew-resize`}function cz(e){e.registerComponentModel(JR),e.registerComponentView(iz),hI(e)}function lz(e){OD(qR),OD(cz)}var uz={get:function(e,t,n){var r=I((dz[e]||{})[t]);return n&&U(r)?r[r.length-1]:r}},dz={color:{active:[`#006edd`,`#e0ffff`],inactive:[Q.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},fz=AN.mapVisual,pz=AN.eachVisual,mz=U,hz=B,gz=is,_z=$o,vz=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&nR(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=H(e,this),this.controllerVisuals=tR(this.option.controller,t,e),this.targetVisuals=tR(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return hz(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=cc(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return V(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){B(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],U(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(G(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(W(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=gz([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=st(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};L(r,n),L(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){mz(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},hz(r,function(e,t){if(AN.isValidType(t)){var n=uz.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;hz(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&I(t)||(a?i:[i]),c.symbolSize??=n&&I(n)||(a?s[0]:[s[0],s[0]]),c.symbol=fz(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;pz(l,function(e){e>u&&(u=e)}),c.symbolSize=fz(l,function(e){return _z(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:Q.color.transparent,borderColor:Q.color.borderTint,contentColor:Q.color.theme[0],inactiveColor:Q.color.disabled,borderWidth:0,padding:Q.size.m,textGap:10,precision:0,textStyle:{color:Q.color.secondary}},t}(y_),yz=[20,140],bz=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=yz[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=yz[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):U(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),B(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=is((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=xz(this,`outOfRange`,this.getExtent()),n=xz(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new jo(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);Dz([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=Ez(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=km(n.handleLabelPoints[l],Om(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=Ez(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=km(c.indicatorLabelPoint,Om(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Ci[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||Fz(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=ec(u,d);this._dispatchHighDown(`downplay`,Tz(f[0],n)),this._dispatchHighDown(`highlight`,Tz(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(jx(e.target,function(e){var n=pd(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function Bz(e,t,n,r){for(var i=t.targetVisuals[r],a=AN.prepareVisualTypes(i),o={color:Ex(e.getData(),`color`)},s=0,c=a.length;s0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(Lz,Rz),B(zz,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(Hz))}function Kz(e){e.registerComponentModel(bz),e.registerComponentView(Mz),Gz(e)}var qz=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],Jz[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=I(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=V(this._pieceList,function(e){return e=I(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=AN.listVisualTypes(),i=this.isCategory();B(t.pieces,function(e){B(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),B(n,function(e,n){var r=!1;B(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&B(this.stateList,function(e){(t[e]||(t[e]={}))[n]=uz.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,B(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;B(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=I(e)},t.prototype.getValueState=function(e){var t=AN.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){AN.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return B(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=Lh(vz.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(vz),Jz={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function Yz(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var Xz=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=yt(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),B(o.viewPieceList,function(o){var s=o.piece,u=new jo;u.onclick=H(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new $u({style:uh(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:q(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),o_(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:Tz(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return wz(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new jo,o=this.visualMapModel.textStyleModel;a.add(new $u({style:uh(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=V(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=Qx(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=I(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,B(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(Sz);function Zz(e){e.registerComponentModel(qz),e.registerComponentView(Xz),Gz(e)}function Qz(e){OD(Kz),OD(Zz)}function $z(e,t,n){var r=Re.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function eB(e){return!e.__cursors.get(0)}function tB(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var nB=function(e){P(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=Ia,typeof t==`string`?a=$z(t,n,r):K(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(Pt(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=tB(this)},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=$z(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new X(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new X(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l=a}}for(var l=tB(this),u=l.startIdx;u=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!eB(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}mB(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},bB),F.wxa&&gB(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r)if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=eB(e),c=s&&Re.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d15){d++;break}}}IS(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=iB,t=0);var i=hB(this._i,e)[t];return i||(i=uB(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&L(i,this._layerConfig[e],!0),(n||r&&e!==iB)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&cB(e)){for(var l=o.length,u=0;u0&&(c=hB(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),hB(i,t)[n]=e,!r&&!e.virtual)if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom);e.painter||=this}},e.prototype.eachLayer=function(e,t){return gB(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return gB(this._i,function(n,r){e.call(t,n,r)},_B)},e.prototype.eachOtherLayer=function(e,t){return gB(this._i,function(n,r){e.call(t,n,r)},vB)},e.prototype.getLayers=function(){var e={};return gB(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(eB(t)?s=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=sS(i,0,r),t=sS(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,gB(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(iB).resize(e,t)}return this},e.prototype.clearLayer=function(e){B(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[iB][0].dom;var t=new nB(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;gB(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;sString(e[r]??``)),o=e.data.map(e=>e[i]??0);return{tooltip:{trigger:`axis`,axisPointer:{type:`shadow`}},grid:{left:`3%`,right:`4%`,bottom:`10%`,containLabel:!0},dataZoom:[{type:`inside`,start:0,end:100},{type:`slider`,start:0,end:100}],xAxis:{type:`category`,data:a,axisLabel:{rotate:30}},yAxis:{type:`value`},series:[{type:`bar`,data:o,name:n[0]??``}]}}function wB(e,t,n){let r=t[0]?e.columns.indexOf(t[0]):0,i=e.data.map(e=>String(e[r]??``)),a=n.map(t=>{let n=e.columns.indexOf(t);return{type:`bar`,name:t,data:e.data.map(e=>e[n]??0)}});return{tooltip:{trigger:`axis`,axisPointer:{type:`shadow`}},legend:{show:!0},grid:{left:`3%`,right:`4%`,bottom:`10%`,containLabel:!0},dataZoom:[{type:`inside`,start:0,end:100},{type:`slider`,start:0,end:100}],xAxis:{type:`category`,data:i,axisLabel:{rotate:30}},yAxis:{type:`value`},series:a}}function TB(e,t,n){let r=t[0]?e.columns.indexOf(t[0]):0,i=e.data.map(e=>String(e[r]??``)),a=n.map(t=>{let n=e.columns.indexOf(t);return{type:`line`,name:t,smooth:!0,data:e.data.map(e=>e[n]??0)}});return{tooltip:{trigger:`axis`},legend:{show:n.length>1},grid:{left:`3%`,right:`4%`,bottom:`10%`,containLabel:!0},dataZoom:[{type:`inside`,start:0,end:100},{type:`slider`,start:0,end:100}],xAxis:{type:`category`,data:i},yAxis:{type:`value`},series:a}}function EB(e,t,n){let r=t[0]?e.columns.indexOf(t[0]):0,i=n[0]?e.columns.indexOf(n[0]):1,a=e.data.map(e=>({name:String(e[r]??``),value:e[i]??0}));return{tooltip:{trigger:`item`,formatter:`{a}
{b}: {c} ({d}%)`},legend:{orient:`vertical`,left:`left`},series:[{type:`pie`,name:n[0]??``,radius:[`40%`,`70%`],data:a,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:`rgba(0,0,0,0.5)`}}}]}}function DB(e,t,n){let r=n[0]?e.columns.indexOf(n[0]):0,i=n[1]?e.columns.indexOf(n[1]):1,a=e.data.map(e=>[e[r]??0,e[i]??0]);return{tooltip:{trigger:`item`},grid:{left:`3%`,right:`4%`,bottom:`10%`,containLabel:!0},xAxis:{type:`value`,name:n[0]??``},yAxis:{type:`value`,name:n[1]??``},series:[{type:`scatter`,data:a,name:`${n[0]} vs ${n[1]}`}]}}function OB(e,t,n){let r=n[0]??e.columns[0]??``,i=r?e.columns.indexOf(r):0,a=e.data[0]?.[i]??0;return{title:[{text:String(a),textStyle:{fontSize:48,fontWeight:`bold`},left:`center`,top:`center`},{text:r,textStyle:{fontSize:16,color:`#666`},left:`center`,top:`65%`}],series:[]}}function kB(e,t,n){let r=t[0]?e.columns.indexOf(t[0]):0,i=t[1]?e.columns.indexOf(t[1]):1,a=n[0]?e.columns.indexOf(n[0]):2,o=[...new Set(e.data.map(e=>String(e[r]??``)))],s=[...new Set(e.data.map(e=>String(e[i]??``)))],c=e.data.map(e=>[o.indexOf(String(e[r]??``)),s.indexOf(String(e[i]??``)),e[a]??0]),l=e.data.map(e=>Number(e[a]??0)),u=Math.min(...l),d=Math.max(...l);return{tooltip:{position:`top`},grid:{left:`3%`,right:`10%`,bottom:`10%`,containLabel:!0},xAxis:{type:`category`,data:o,splitArea:{show:!0}},yAxis:{type:`category`,data:s,splitArea:{show:!0}},visualMap:{min:u,max:d,calculable:!0,orient:`horizontal`,left:`center`,bottom:`0%`},series:[{type:`heatmap`,data:c,name:n[0]??``,label:{show:!1},emphasis:{itemStyle:{shadowBlur:10,shadowColor:`rgba(0,0,0,0.5)`}}}]}}function AB(e,t,n,r){switch(e){case`bar`:return CB(t,n,r);case`groupedBar`:return wB(t,n,r);case`line`:return TB(t,n,r);case`pie`:return EB(t,n,r);case`scatter`:return DB(t,n,r);case`kpi`:return OB(t,n,r);case`heatmap`:return kB(t,n,r);default:return CB(t,n,r)}}function jB(e){let n=s(null),i=s(!1),a=[];function o(){if(!(!e.value||n.value)){n.value=sw(e.value);for(let e of a)n.value.on(`click`,e)}}function c(e,t,r,i){if(n.value||o(),!n.value)return;let a=AB(e,t,r,i);n.value.setOption(a,!0)}function l(){n.value?.resize()}function u(e){n.value?n.value.on(`click`,e):a.push(e)}function d(e){n.value?.on(`brushSelected`,e)}function f(){n.value?.dispose(),n.value=null}let p=()=>l();return r(()=>{o(),window.addEventListener(`resize`,p)}),t(()=>{window.removeEventListener(`resize`,p),f()}),{chart:n,loading:i,render:c,resize:l,onChartClick:u,onBrushSelected:d,dispose:f}}var MB=h(_({__name:`ChartRenderer`,props:{chartType:{},data:{},dimensions:{},measures:{}},emits:[`chartClick`],setup(t,{emit:n}){let a=t,o=n,c=s(null),{render:u,onChartClick:d}=jB(c);function f(){a.data&&u(a.chartType,a.data,a.dimensions,a.measures)}return r(()=>{f(),d(e=>o(`chartClick`,e))}),i(()=>[a.chartType,a.data,a.dimensions,a.measures],()=>f(),{deep:!0}),(t,n)=>(e(),l(`div`,{ref_key:`containerRef`,ref:c,class:`chart-renderer`},null,512))}}),[[`__scopeId`,`data-v-89a52437`]]),NB={class:`chart-type-switcher`},PB=[`icon`,`tooltip`,`pressed`,`onClick`],FB=h(_({__name:`ChartTypeSwitcher`,props:{modelValue:{},suggested:{}},emits:[`update:modelValue`],setup(t,{emit:r}){let i=t,o=r,s=[{type:`bar`,icon:`vertical-bar-chart`,label:`Bar`},{type:`groupedBar`,icon:`horizontal-bar-chart`,label:`Grouped Bar`},{type:`line`,icon:`line-chart`,label:`Line`},{type:`pie`,icon:`donut-chart`,label:`Pie`},{type:`scatter`,icon:`scatter-chart`,label:`Scatter`},{type:`heatmap`,icon:`heatmap-chart`,label:`Heatmap`},{type:`kpi`,icon:`kpi-corporate-performance`,label:`KPI`}];function u(e){i.modelValue!==e&&o(`update:modelValue`,e)}return(r,i)=>(e(),l(`div`,NB,[(e(),l(d,null,n(s,e=>c(`ui5-toggle-button`,{key:e.type,icon:e.icon,tooltip:e.label,pressed:t.modelValue===e.type,class:y({"is-suggested":t.suggested===e.type}),design:`Transparent`,onClick:t=>u(e.type)},a(e.label),11,PB)),64))]))}}),[[`__scopeId`,`data-v-f09c1717`]]),IB=[`color-scheme`],LB=_({__name:`AggregationBadge`,props:{aggregated:{type:Boolean},totalRows:{},resultRows:{}},setup(t){let n=t;function r(e){return e>=1e3?`${Math.round(e/1e3)}K`:String(e)}let i=m(()=>n.aggregated?`8`:`6`),o=m(()=>n.aggregated?`Aggregated (${n.totalRows==null?`?`:r(n.totalRows)} → ${n.resultRows==null?`?`:String(n.resultRows)})`:`Raw data (${n.totalRows==null?`?`:r(n.totalRows)} rows)`);return(t,n)=>(e(),l(`ui5-tag`,{"color-scheme":i.value},a(o.value),9,IB))}}),RB={class:`explore-tab`},zB={class:`explore-content`},BB={class:`config-panel`},VB={class:`chart-panel`},HB={class:`chart-toolbar`},UB=h(_({__name:`ExploreTab`,setup(t){let n=A(),r=ee(),a=s(null);async function o(e,t,i){n.setDataSource({schema:e,object:t,objectType:i}),await r.loadMetadata(e,t)}async function d(){if(n.dimensions.value.length===0&&n.measures.value.length===0){a.value=null;return}try{let e=await r.fetchAggregated(n.config.value);a.value={columns:e.columns,data:e.data}}catch{a.value=null}}i(()=>[n.dimensions.value,n.measures.value,n.filters.value],d,{deep:!0});function f(e){n.addDimension(e)}function m(e){n.removeDimension(e)}function h(e){n.addMeasure(e)}function g(e){n.removeMeasure(e)}function _(e,t){let r=n.measures.value.find(t=>t.column===e);r&&(r.aggregation=t)}function v(e){n.addFilter(e)}function y(e){n.removeFilterAtIndex(e)}return(t,i)=>(e(),l(`div`,RB,[u(Oe,{filters:p(n).filters.value,columns:p(r).columns.value,onAddFilter:v,onRemoveFilter:y,onClearAll:p(n).clearFilters},null,8,[`filters`,`columns`,`onClearAll`]),c(`div`,zB,[c(`div`,BB,[u(oe,{onSelect:o}),u(xe,{columns:p(r).columns.value,dimensions:p(n).dimensions.value,measures:p(n).measures.value,onAddDimension:f,onRemoveDimension:m,onAddMeasure:h,onRemoveMeasure:g,onUpdateAggregation:_},null,8,[`columns`,`dimensions`,`measures`])]),c(`div`,VB,[c(`div`,HB,[u(FB,{"model-value":p(n).chartType.value,suggested:p(n).suggestedChartType.value,"onUpdate:modelValue":p(n).setChartType},null,8,[`model-value`,`suggested`,`onUpdate:modelValue`]),u(LB,{aggregated:p(r).useServerAggregation.value,"total-rows":p(r).rowCount.value,"result-rows":a.value?.data.length},null,8,[`aggregated`,`total-rows`,`result-rows`])]),u(MB,{"chart-type":p(n).chartType.value,data:a.value,dimensions:p(n).dimensions.value.map(e=>e.column),measures:p(n).measures.value.map(e=>`${e.aggregation}_${e.column}`)},null,8,[`chart-type`,`data`,`dimensions`,`measures`])])])]))}}),[[`__scopeId`,`data-v-4fe70e45`]]),WB={class:`sql-tab`},GB={key:0,class:`chart-section`},KB=h(_({__name:`SqlTab`,setup(t){let n=A(),r=s(null),i=s(!1),a=s(null);function o(e){a.value=e}function d(){if(!a.value)return;i.value=!0;let e=a.value.columns;r.value={columns:e,data:a.value.rows.map(t=>e.map(e=>t[e]))},e.length>=2&&(n.clearAll(),n.addDimension({column:e[0],dataType:`NVARCHAR`}),n.addMeasure({column:e[1],aggregation:`SUM`}))}return(t,s)=>(e(),l(`div`,WB,[c(`div`,{class:y([`editor-section`,{"with-chart":i.value}])},[u(w,{onResults:o}),a.value?(e(),l(`ui5-button`,{key:0,class:`visualize-btn`,design:`Emphasized`,icon:`chart-table-view`,onClick:d},` Visualize `)):g(``,!0)],2),i.value?(e(),l(`div`,GB,[u(FB,{modelValue:p(n).chartType.value,"onUpdate:modelValue":s[0]||=e=>p(n).chartType.value=e,suggested:p(n).suggestedChartType.value},null,8,[`modelValue`,`suggested`]),u(MB,{"chart-type":p(n).chartType.value,data:r.value,dimensions:p(n).dimensions.value.map(e=>e.column),measures:p(n).measures.value.map(e=>e.column)},null,8,[`chart-type`,`data`,`dimensions`,`measures`])])):g(``,!0)]))}}),[[`__scopeId`,`data-v-c9bd1876`]]),qB={class:`dashboard-toolbar`},JB=[`data-id`,`selected`],YB=h(_({__name:`DashboardToolbar`,props:{dashboards:{},activeDashboard:{}},emits:[`create`,`select`,`save`,`remove`,`exportDash`,`importDash`,`addChart`],setup(t,{emit:r}){let i=r,o=s(null);function u(){o.value?.click()}function f(e){let t=e.target.files?.[0];if(t){let e=new FileReader;e.onload=()=>i(`importDash`,e.result),e.readAsText(t)}}return(r,s)=>(e(),l(`div`,qB,[t.dashboards.length>0?(e(),l(`ui5-select`,{key:0,onChange:s[0]||=e=>i(`select`,e.detail.selectedOption?.dataset?.id||``)},[(e(!0),l(d,null,n(t.dashboards,n=>(e(),l(`ui5-option`,{key:n.id,"data-id":n.id,selected:n.id===t.activeDashboard?.id},a(n.name),9,JB))),128))],32)):g(``,!0),c(`ui5-button`,{icon:`add`,onClick:s[1]||=e=>i(`create`,`Dashboard ${t.dashboards.length+1}`)},`New`),t.activeDashboard?(e(),l(`ui5-button`,{key:1,icon:`add-activity`,design:`Emphasized`,onClick:s[2]||=e=>i(`addChart`)},`Add Chart`)):g(``,!0),t.activeDashboard?(e(),l(`ui5-button`,{key:2,icon:`save`,onClick:s[3]||=e=>i(`save`)},`Save`)):g(``,!0),t.activeDashboard?(e(),l(`ui5-button`,{key:3,icon:`download`,onClick:s[4]||=e=>i(`exportDash`)},`Export`)):g(``,!0),c(`ui5-button`,{icon:`upload`,onClick:u},`Import`),t.activeDashboard?(e(),l(`ui5-button`,{key:4,icon:`delete`,design:`Negative`,onClick:s[5]||=e=>i(`remove`,t.activeDashboard.id)},`Delete`)):g(``,!0),c(`input`,{ref_key:`fileInput`,ref:o,type:`file`,accept:`.json`,style:{display:`none`},onChange:f},null,544)]))}}),[[`__scopeId`,`data-v-af3a393a`]]),XB={class:`chart-tile`},ZB={class:`tile-header`},QB={class:`tile-title`},$B=h(_({__name:`ChartTile`,props:{config:{},crossFilters:{}},emits:[`chartClick`,`remove`],setup(t,{emit:n}){let o=t,d=n,f=ee(),p=s(null);async function m(){try{let e={...o.config,filters:[...o.config.filters,...o.crossFilters||[]]},t=await f.fetchAggregated(e);p.value={columns:t.columns,data:t.data}}catch{p.value=null}}return r(m),i(()=>o.crossFilters,m,{deep:!0}),(n,r)=>(e(),l(`div`,XB,[c(`div`,ZB,[c(`span`,QB,a(t.config.object),1),c(`ui5-button`,{icon:`decline`,design:`Transparent`,onClick:r[0]||=e=>d(`remove`)})]),u(MB,{"chart-type":t.config.chartType,data:p.value,dimensions:t.config.dimensions.map(e=>e.column),measures:t.config.measures.map(e=>`${e.aggregation}_${e.column}`),onChartClick:r[1]||=e=>d(`chartClick`,e)},null,8,[`chart-type`,`data`,`dimensions`,`measures`])]))}}),[[`__scopeId`,`data-v-05aa1592`]]),eV={class:`dashboard-grid`},tV={key:0,class:`empty-state`},nV=h(_({__name:`DashboardGrid`,props:{tiles:{},crossFiltersFn:{type:Function}},emits:[`removeTile`,`chartClick`],setup(t,{emit:r}){let i=r;return(r,a)=>(e(),l(`div`,eV,[(e(!0),l(d,null,n(t.tiles,n=>(e(),l(`div`,{key:n.id,class:`grid-cell`,style:v({gridColumn:`${n.position.x+1} / span ${n.position.w}`,gridRow:`${n.position.y+1} / span ${n.position.h}`})},[u($B,{config:n.config,"cross-filters":t.crossFiltersFn?.(n.id),onRemove:e=>i(`removeTile`,n.id),onChartClick:e=>i(`chartClick`,n.id,e)},null,8,[`config`,`cross-filters`,`onRemove`,`onChartClick`])],4))),128)),t.tiles.length===0?(e(),l(`div`,tV,[...a[0]||=[c(`p`,null,`No charts yet. Click "Add Chart" to get started.`,-1)]])):g(``,!0)]))}}),[[`__scopeId`,`data-v-ee79cc24`]]),rV={class:`modal-content`},iV={slot:`footer`},aV={design:`Footer`},oV=[`disabled`],sV=h(_({__name:`AddChartModal`,emits:[`confirm`,`cancel`],setup(t,{expose:n,emit:r}){let i=r,a=A(),o=ee(),d=s(null);async function m(e,t,n){a.setDataSource({schema:e,object:t,objectType:n}),await o.loadMetadata(e,t)}function h(){i(`confirm`,a.config.value),d.value&&(d.value.open=!1)}function _(){d.value&&(d.value.open=!0)}return n({show:_}),(t,n)=>(e(),l(`ui5-dialog`,{ref_key:`dialogRef`,ref:d,"header-text":`Add Chart`},[c(`div`,rV,[u(oe,{onSelect:m}),p(o).columns.value.length>0?(e(),f(xe,{key:0,columns:p(o).columns.value,dimensions:p(a).dimensions.value,measures:p(a).measures.value,onAddDimension:n[0]||=e=>p(a).addDimension(e),onRemoveDimension:n[1]||=e=>p(a).removeDimension(e),onAddMeasure:n[2]||=e=>p(a).addMeasure(e),onRemoveMeasure:n[3]||=e=>p(a).removeMeasure(e),onUpdateAggregation:n[4]||=(e,t)=>{let n=p(a).measures.value.find(t=>t.column===e);n&&(n.aggregation=t)}},null,8,[`columns`,`dimensions`,`measures`])):g(``,!0),u(FB,{modelValue:p(a).chartType.value,"onUpdate:modelValue":n[5]||=e=>p(a).chartType.value=e,suggested:p(a).suggestedChartType.value},null,8,[`modelValue`,`suggested`])]),c(`div`,iV,[c(`ui5-bar`,aV,[c(`ui5-button`,{slot:`endContent`,design:`Emphasized`,onClick:h,disabled:p(a).measures.value.length===0},`Add`,8,oV),c(`ui5-button`,{slot:`endContent`,onClick:n[6]||=e=>{i(`cancel`),d.value&&(d.value.open=!1)}},`Cancel`)])])],512))}}),[[`__scopeId`,`data-v-393739a2`]]),cV=`hana-cli-dashboards`;function lV(){let e=s([]),t=s(null);function n(){try{let t=localStorage.getItem(cV);e.value=t?JSON.parse(t):[]}catch{e.value=[]}}function r(){localStorage.setItem(cV,JSON.stringify(e.value))}function i(n){let i={id:crypto.randomUUID(),name:n,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),globalFilters:[],tiles:[]};return e.value.push(i),t.value=i,r(),i}function a(){if(t.value){t.value.updatedAt=new Date().toISOString();let n=e.value.findIndex(e=>e.id===t.value.id);n>=0&&(e.value[n]=t.value),r()}}function o(n){e.value=e.value.filter(e=>e.id!==n),t.value?.id===n&&(t.value=null),r()}function c(e){return JSON.stringify(e,null,2)}function l(t){try{let n=JSON.parse(t);if(!n||typeof n.name!=`string`||!Array.isArray(n.tiles))return null;for(let e of n.tiles)if(!e.config||!e.position)return null;let i=n;return i.id=crypto.randomUUID(),i.updatedAt=new Date().toISOString(),e.value.push(i),r(),i}catch{return null}}function u(n){t.value=e.value.find(e=>e.id===n)||null}return n(),{dashboards:e,activeDashboard:t,create:i,save:a,remove:o,exportDashboard:c,importDashboard:l,setActive:u,loadAll:n}}function uV(){let e=s([]);function t(t){let n={id:t,x:0,y:e.value.length>0?Math.max(...e.value.map(e=>e.y+e.h)):0,w:6,h:1};return e.value.push(n),n}function n(t){e.value=e.value.filter(e=>e.id!==t)}function r(t,n,r){let i=e.value.find(e=>e.id===t);i&&(i.w=Math.max(3,Math.min(12,n)),i.h=Math.max(1,r))}function i(t,n,r){let i=e.value.find(e=>e.id===t);i&&(i.x=Math.max(0,Math.min(12-i.w,n)),i.y=Math.max(0,r))}function a(t){e.value=t}return{tiles:e,addTile:t,removeTile:n,resizeTile:r,moveTile:i,setTiles:a}}function dV(){let e=s([]);function t(t,n,r){e.value=e.value.filter(e=>e.sourceTileId!==t),e.value.push({sourceTileId:t,filter:{column:n,operator:`=`,value:r}})}function n(){e.value=[]}function r(t){return e.value.filter(e=>e.sourceTileId!==t).map(e=>e.filter)}return{crossFilters:e,addCrossFilter:t,clearCrossFilters:n,getFiltersForTile:r,hasCrossFilters:m(()=>e.value.length>0)}}var fV={class:`dashboard-tab`},pV={key:2,class:`no-dashboard`},mV=h(_({__name:`DashboardTab`,setup(t){let n=lV(),r=uV(),i=dV(),a=s(null);b(()=>{n.activeDashboard.value&&r.setTiles(n.activeDashboard.value.tiles.map(e=>e.position))});function o(){a.value?.show()}function d(e){if(!n.activeDashboard.value)return;let t=crypto.randomUUID(),i={id:t,position:r.addTile(t),config:e};n.activeDashboard.value.tiles.push(i),n.save()}function m(e){n.activeDashboard.value&&(n.activeDashboard.value.tiles=n.activeDashboard.value.tiles.filter(t=>t.id!==e),r.removeTile(e),n.save())}function h(){if(!n.activeDashboard.value)return;let e=n.exportDashboard(n.activeDashboard.value),t=new Blob([e],{type:`application/json`}),r=URL.createObjectURL(t),i=document.createElement(`a`);i.href=r,i.download=`${n.activeDashboard.value.name}.json`,i.click(),URL.revokeObjectURL(r)}function _(e){n.importDashboard(e)}function v(e,t){t.name&&i.addCrossFilter(e,t.seriesName||`value`,t.name)}return(t,r)=>(e(),l(`div`,fV,[u(YB,{dashboards:p(n).dashboards.value,"active-dashboard":p(n).activeDashboard.value,onCreate:r[0]||=e=>p(n).create(e),onSelect:r[1]||=e=>p(n).setActive(e),onSave:p(n).save,onRemove:r[2]||=e=>p(n).remove(e),onExportDash:h,onImportDash:_,onAddChart:o},null,8,[`dashboards`,`active-dashboard`,`onSave`]),p(i).hasCrossFilters.value?(e(),l(`ui5-button`,{key:0,design:`Transparent`,icon:`clear-filter`,onClick:r[3]||=e=>p(i).clearCrossFilters()},` Clear cross-filters `)):g(``,!0),p(n).activeDashboard.value?(e(),f(nV,{key:1,tiles:p(n).activeDashboard.value.tiles,"cross-filters-fn":p(i).getFiltersForTile,onRemoveTile:m,onChartClick:v},null,8,[`tiles`,`cross-filters-fn`])):(e(),l(`div`,pV,[...r[4]||=[c(`p`,null,`Select or create a dashboard to get started.`,-1)]])),u(sV,{ref_key:`addChartRef`,ref:a,onConfirm:d},null,512)]))}}),[[`__scopeId`,`data-v-f361d9b7`]]),hV={class:`analytics-view`},gV={class:`tab-content`},_V=h(_({__name:`Analytics`,setup(t){let n=s(`explore`);function r(e){let t=e.detail?.tab?.dataset?.key;t&&(n.value=t)}return(t,i)=>(e(),l(`div`,hV,[c(`ui5-tabcontainer`,{onTabSelect:r},[...i[0]||=[c(`ui5-tab`,{"data-key":`explore`,text:`Explore`,icon:`chart-table-view`,selected:``},null,-1),c(`ui5-tab`,{"data-key":`sql`,text:`SQL`,icon:`syntax`},null,-1),c(`ui5-tab`,{"data-key":`dashboard`,text:`Dashboard`,icon:`business-objects-experience`},null,-1)]],32),c(`div`,gV,[o(u(UB,null,null,512),[[S,n.value===`explore`]]),o(u(KB,null,null,512),[[S,n.value===`sql`]]),o(u(mV,null,null,512),[[S,n.value===`dashboard`]])])]))}}),[[`__scopeId`,`data-v-a79f99bd`]]);export{_V as default}; \ No newline at end of file diff --git a/app/vue/dist/assets/Analytics-DVzlnwiN.css b/app/vue/dist/assets/Analytics-DVzlnwiN.css deleted file mode 100644 index 5dd02e25..00000000 --- a/app/vue/dist/assets/Analytics-DVzlnwiN.css +++ /dev/null @@ -1 +0,0 @@ -.data-source-picker[data-v-49623184]{display:flex;flex-direction:column;gap:.5rem}.picker-row[data-v-49623184]{display:flex;gap:.5rem}.schema-input[data-v-49623184]{flex:1}.type-select[data-v-49623184]{width:6rem}.object-input[data-v-49623184]{width:100%}.drag-drop-config[data-v-fe89c52a]{display:flex;gap:1rem;height:100%}.column-source[data-v-fe89c52a]{width:40%;overflow-y:auto}.drop-zones[data-v-fe89c52a]{width:60%;display:flex;flex-direction:column;gap:.75rem}.column-list[data-v-fe89c52a]{display:flex;flex-direction:column;gap:.25rem}.column-item[data-v-fe89c52a]{display:flex;align-items:center;gap:.5rem;padding:.4rem .5rem;border:1px solid var(--sapField_BorderColor);border-radius:4px;cursor:grab;font-size:.85rem}.column-item[data-v-fe89c52a]:active{cursor:grabbing}.col-type[data-v-fe89c52a]{width:1.2rem;text-align:center;font-weight:700;font-size:.75rem}.col-type.numeric[data-v-fe89c52a]{color:var(--sapPositiveColor)}.col-name[data-v-fe89c52a]{flex:1}.col-dtype[data-v-fe89c52a]{font-size:.7rem;color:var(--sapNeutralColor)}.drop-zone[data-v-fe89c52a]{border:2px dashed var(--sapField_BorderColor);border-radius:8px;padding:.75rem;min-height:80px;transition:border-color .2s,background .2s}.drop-zone.drag-over[data-v-fe89c52a]{border-color:var(--sapInformativeColor);background:var(--sapInformativeBackground)}.zone-item[data-v-fe89c52a]{display:flex;align-items:center;gap:.5rem;padding:.25rem .5rem;background:var(--sapBackgroundColor);border-radius:4px;margin-bottom:.25rem}.zone-hint[data-v-fe89c52a]{color:var(--sapNeutralColor);font-style:italic;font-size:.85rem}.agg-select[data-v-fe89c52a]{width:5rem}h4[data-v-fe89c52a]{margin:0 0 .5rem;font-size:.85rem}.filter-bar[data-v-29f3c046]{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.5rem 0;min-height:2.5rem}.filter-chip[data-v-29f3c046]{display:flex;align-items:center;gap:.25rem;padding:.25rem .5rem;background:var(--sapInformativeBackground);border:1px solid var(--sapInformativeColor);border-radius:1rem;font-size:.8rem}.filter-form[data-v-29f3c046]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;min-width:250px}.chart-renderer[data-v-89a52437]{width:100%;height:100%;min-height:300px}.chart-type-switcher[data-v-f09c1717]{display:flex;flex-wrap:wrap;gap:.25rem;align-items:center}.is-suggested[data-v-f09c1717]{outline:2px dashed var(--sapHighlightColor, #0070f2);outline-offset:1px;border-radius:4px}.explore-tab[data-v-4fe70e45]{display:flex;flex-direction:column;height:100%}.explore-content[data-v-4fe70e45]{display:flex;gap:1rem;flex:1;overflow:hidden}.config-panel[data-v-4fe70e45]{width:35%;display:flex;flex-direction:column;gap:1rem;overflow-y:auto}.chart-panel[data-v-4fe70e45]{width:65%;display:flex;flex-direction:column}.chart-toolbar[data-v-4fe70e45]{display:flex;align-items:center;justify-content:space-between}.sql-tab[data-v-c9bd1876]{display:flex;flex-direction:column;height:100%}.editor-section[data-v-c9bd1876]{flex:1;position:relative;min-height:0;overflow:hidden}.editor-section.with-chart[data-v-c9bd1876]{flex:.6}.chart-section[data-v-c9bd1876]{flex:.4;border-top:1px solid var(--sapField_BorderColor);padding-top:.5rem}.visualize-btn[data-v-c9bd1876]{position:absolute;bottom:.5rem;right:.5rem}.dashboard-toolbar[data-v-af3a393a]{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.5rem 0}.chart-tile[data-v-05aa1592]{display:flex;flex-direction:column;height:100%;border:1px solid var(--sapField_BorderColor);border-radius:8px;overflow:hidden}.tile-header[data-v-05aa1592]{display:flex;justify-content:space-between;align-items:center;padding:.25rem .5rem;background:var(--sapTile_Background);border-bottom:1px solid var(--sapField_BorderColor);cursor:move}.tile-title[data-v-05aa1592]{font-size:.85rem;font-weight:600}.dashboard-grid[data-v-ee79cc24]{display:grid;grid-template-columns:repeat(12,1fr);gap:1rem;padding:1rem 0;min-height:400px}.grid-cell[data-v-ee79cc24]{min-height:250px}.empty-state[data-v-ee79cc24]{grid-column:1 / -1;display:flex;align-items:center;justify-content:center;color:var(--sapNeutralColor);font-style:italic}.modal-content[data-v-393739a2]{display:flex;flex-direction:column;gap:1rem;padding:1rem;min-width:500px;min-height:300px}.dashboard-tab[data-v-f361d9b7]{display:flex;flex-direction:column;height:100%}.no-dashboard[data-v-f361d9b7]{flex:1;display:flex;align-items:center;justify-content:center;color:var(--sapNeutralColor)}.analytics-view[data-v-a79f99bd]{display:flex;flex-direction:column;height:100%;padding:1rem}.tab-content[data-v-a79f99bd]{flex:1;margin-top:1rem;overflow:hidden} diff --git a/app/vue/dist/assets/Analytics-FtXydGx4.css b/app/vue/dist/assets/Analytics-FtXydGx4.css new file mode 100644 index 00000000..27566a97 --- /dev/null +++ b/app/vue/dist/assets/Analytics-FtXydGx4.css @@ -0,0 +1 @@ +.data-source-picker[data-v-49623184]{flex-direction:column;gap:.5rem;display:flex}.picker-row[data-v-49623184]{gap:.5rem;display:flex}.schema-input[data-v-49623184]{flex:1}.type-select[data-v-49623184]{width:6rem}.object-input[data-v-49623184]{width:100%}.drag-drop-config[data-v-fe89c52a]{gap:1rem;height:100%;display:flex}.column-source[data-v-fe89c52a]{width:40%;overflow-y:auto}.drop-zones[data-v-fe89c52a]{flex-direction:column;gap:.75rem;width:60%;display:flex}.column-list[data-v-fe89c52a]{flex-direction:column;gap:.25rem;display:flex}.column-item[data-v-fe89c52a]{border:1px solid var(--sapField_BorderColor);cursor:grab;border-radius:4px;align-items:center;gap:.5rem;padding:.4rem .5rem;font-size:.85rem;display:flex}.column-item[data-v-fe89c52a]:active{cursor:grabbing}.col-type[data-v-fe89c52a]{text-align:center;width:1.2rem;font-size:.75rem;font-weight:700}.col-type.numeric[data-v-fe89c52a]{color:var(--sapPositiveColor)}.col-name[data-v-fe89c52a]{flex:1}.col-dtype[data-v-fe89c52a]{color:var(--sapNeutralColor);font-size:.7rem}.drop-zone[data-v-fe89c52a]{border:2px dashed var(--sapField_BorderColor);border-radius:8px;min-height:80px;padding:.75rem;transition:border-color .2s,background .2s}.drop-zone.drag-over[data-v-fe89c52a]{border-color:var(--sapInformativeColor);background:var(--sapInformativeBackground)}.zone-item[data-v-fe89c52a]{background:var(--sapBackgroundColor);border-radius:4px;align-items:center;gap:.5rem;margin-bottom:.25rem;padding:.25rem .5rem;display:flex}.zone-hint[data-v-fe89c52a]{color:var(--sapNeutralColor);font-size:.85rem;font-style:italic}.agg-select[data-v-fe89c52a]{width:5rem}h4[data-v-fe89c52a]{margin:0 0 .5rem;font-size:.85rem}.filter-bar[data-v-29f3c046]{flex-wrap:wrap;align-items:center;gap:.5rem;min-height:2.5rem;padding:.5rem 0;display:flex}.filter-chip[data-v-29f3c046]{background:var(--sapInformativeBackground);border:1px solid var(--sapInformativeColor);border-radius:1rem;align-items:center;gap:.25rem;padding:.25rem .5rem;font-size:.8rem;display:flex}.filter-form[data-v-29f3c046]{flex-direction:column;gap:.5rem;min-width:250px;padding:1rem;display:flex}.chart-renderer[data-v-89a52437]{width:100%;height:100%;min-height:300px}.chart-type-switcher[data-v-f09c1717]{flex-wrap:wrap;align-items:center;gap:.25rem;display:flex}.is-suggested[data-v-f09c1717]{outline:2px dashed var(--sapHighlightColor,#0070f2);outline-offset:1px;border-radius:4px}.explore-tab[data-v-4fe70e45]{flex-direction:column;height:100%;display:flex}.explore-content[data-v-4fe70e45]{flex:1;gap:1rem;display:flex;overflow:hidden}.config-panel[data-v-4fe70e45]{flex-direction:column;gap:1rem;width:35%;display:flex;overflow-y:auto}.chart-panel[data-v-4fe70e45]{flex-direction:column;width:65%;display:flex}.chart-toolbar[data-v-4fe70e45]{justify-content:space-between;align-items:center;display:flex}.sql-tab[data-v-c9bd1876]{flex-direction:column;height:100%;display:flex}.editor-section[data-v-c9bd1876]{flex:1;min-height:0;position:relative;overflow:hidden}.editor-section.with-chart[data-v-c9bd1876]{flex:.6}.chart-section[data-v-c9bd1876]{border-top:1px solid var(--sapField_BorderColor);flex:.4;padding-top:.5rem}.visualize-btn[data-v-c9bd1876]{position:absolute;bottom:.5rem;right:.5rem}.dashboard-toolbar[data-v-af3a393a]{flex-wrap:wrap;align-items:center;gap:.5rem;padding:.5rem 0;display:flex}.chart-tile[data-v-05aa1592]{border:1px solid var(--sapField_BorderColor);border-radius:8px;flex-direction:column;height:100%;display:flex;overflow:hidden}.tile-header[data-v-05aa1592]{background:var(--sapTile_Background);border-bottom:1px solid var(--sapField_BorderColor);cursor:move;justify-content:space-between;align-items:center;padding:.25rem .5rem;display:flex}.tile-title[data-v-05aa1592]{font-size:.85rem;font-weight:600}.dashboard-grid[data-v-ee79cc24]{grid-template-columns:repeat(12,1fr);gap:1rem;min-height:400px;padding:1rem 0;display:grid}.grid-cell[data-v-ee79cc24]{min-height:250px}.empty-state[data-v-ee79cc24]{color:var(--sapNeutralColor);grid-column:1/-1;justify-content:center;align-items:center;font-style:italic;display:flex}.modal-content[data-v-393739a2]{flex-direction:column;gap:1rem;min-width:500px;min-height:300px;padding:1rem;display:flex}.dashboard-tab[data-v-f361d9b7]{flex-direction:column;height:100%;display:flex}.no-dashboard[data-v-f361d9b7]{color:var(--sapNeutralColor);flex:1;justify-content:center;align-items:center;display:flex}.analytics-view[data-v-a79f99bd]{flex-direction:column;height:100%;padding:1rem;display:flex}.tab-content[data-v-a79f99bd]{flex:1;margin-top:1rem;overflow:hidden} diff --git a/app/vue/dist/assets/BtpInfo-BOWkl0uT.css b/app/vue/dist/assets/BtpInfo-BOWkl0uT.css new file mode 100644 index 00000000..e83ae171 --- /dev/null +++ b/app/vue/dist/assets/BtpInfo-BOWkl0uT.css @@ -0,0 +1 @@ +.btp-info-view[data-v-c5260c33]{flex-direction:column;gap:1rem;display:flex}.info-cards[data-v-c5260c33]{flex-wrap:wrap;gap:1rem;display:flex}.info-card[data-v-c5260c33]{min-width:250px;max-width:400px}.loading[data-v-c5260c33]{justify-content:center;padding:3rem;display:flex}.error[data-v-c5260c33]{color:var(--sapNegativeTextColor);padding:1rem} diff --git a/app/vue/dist/assets/BtpInfo-Blf0up3B.css b/app/vue/dist/assets/BtpInfo-Blf0up3B.css deleted file mode 100644 index 316a6aa2..00000000 --- a/app/vue/dist/assets/BtpInfo-Blf0up3B.css +++ /dev/null @@ -1 +0,0 @@ -.btp-info-view[data-v-c5260c33]{display:flex;flex-direction:column;gap:1rem}.info-cards[data-v-c5260c33]{display:flex;flex-wrap:wrap;gap:1rem}.info-card[data-v-c5260c33]{min-width:250px;max-width:400px}.loading[data-v-c5260c33]{display:flex;justify-content:center;padding:3rem}.error[data-v-c5260c33]{padding:1rem;color:var(--sapNegativeTextColor)} diff --git a/app/vue/dist/assets/BtpInfo-noE6lMkL.js b/app/vue/dist/assets/BtpInfo-noE6lMkL.js new file mode 100644 index 00000000..1700ea2d --- /dev/null +++ b/app/vue/dist/assets/BtpInfo-noE6lMkL.js @@ -0,0 +1 @@ +import{A as e,M as t,O as n,St as r,X as i,c as a,d as o,i as s,rt as c,s as l,t as u,u as d,v as f}from"./_plugin-vue_export-helper-p2JYVKvd.js";import"./BusyIndicator-ozQjqKjn.js";import{H as p,J as m}from"./index-6hg61Of-.js";import"./Link-D7D_IjML.js";import"./CardHeader-DqLiA11s.js";var h={class:`btp-info-view`},g={key:0,active:``,size:`Medium`,class:`loading`},_={key:1,class:`error`},v={key:2,class:`info-cards`},y=[`title-text`,`subtitle-text`],b=u(f({__name:`BtpInfo`,setup(u){let{fetchDirect:f}=p(),b=m(),x=i(!1),S=i(``),C=i({}),w=l(()=>{let e=S.value.toLowerCase();return e.includes(`unknown session`)||e.includes(`authorization failed`)||e.includes(`btp cli target`)||e.includes(`no btp cli`)||e.includes(`not logged in`)||e.includes(`unexpected end of json`)});async function T(){x.value=!0,S.value=``;try{let e=await f(`/hana/btpInfo`);C.value=e||{}}catch(e){S.value=e.message}finally{x.value=!1}}return n(T),(n,i)=>(e(),o(`div`,h,[i[1]||=a(`ui5-title`,{level:`H3`},`BTP Information`,-1),x.value?(e(),o(`ui5-busy-indicator`,g)):S.value?(e(),o(`div`,_,[a(`p`,null,r(S.value),1),w.value?(e(),o(`ui5-link`,{key:0,onClick:i[0]||=e=>c(b).push({name:`btpLogin`})},`Go to BTP Login`)):d(``,!0)])):(e(),o(`div`,v,[(e(!0),o(s,null,t(C.value,(t,n)=>(e(),o(`ui5-card`,{key:n,class:`info-card`},[a(`ui5-card-header`,{slot:`header`,"title-text":String(n),"subtitle-text":typeof t==`object`?JSON.stringify(t):String(t)},null,8,y)]))),128))]))]))}}),[[`__scopeId`,`data-v-c5260c33`]]);export{b as default}; \ No newline at end of file diff --git a/app/vue/dist/assets/BtpLogin-BIqAb-ud.css b/app/vue/dist/assets/BtpLogin-BIqAb-ud.css deleted file mode 100644 index e95d6a68..00000000 --- a/app/vue/dist/assets/BtpLogin-BIqAb-ud.css +++ /dev/null @@ -1 +0,0 @@ -.btp-login-view[data-v-0e99168e]{display:flex;flex-direction:column;gap:1rem;padding:1rem;max-width:700px}.loading[data-v-0e99168e]{display:flex;justify-content:center;padding:3rem}.mode-toggle[data-v-0e99168e]{display:flex}.form-card[data-v-0e99168e]{display:flex;flex-direction:column;gap:1rem;padding:1.25rem;background:var(--sapGroup_ContentBackground, #fff);border-radius:8px;border:1px solid var(--sapGroup_ContentBorderColor, #d9d9d9)}.form-grid[data-v-0e99168e]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-field[data-v-0e99168e]{display:flex;flex-direction:column;gap:.25rem}.action-bar[data-v-0e99168e]{display:flex;gap:.5rem;align-items:center} diff --git a/app/vue/dist/assets/BtpLogin-BNTKEyHQ.css b/app/vue/dist/assets/BtpLogin-BNTKEyHQ.css new file mode 100644 index 00000000..3130e7af --- /dev/null +++ b/app/vue/dist/assets/BtpLogin-BNTKEyHQ.css @@ -0,0 +1 @@ +.btp-login-view[data-v-0e99168e]{flex-direction:column;gap:1rem;max-width:700px;padding:1rem;display:flex}.loading[data-v-0e99168e]{justify-content:center;padding:3rem;display:flex}.mode-toggle[data-v-0e99168e]{display:flex}.form-card[data-v-0e99168e]{background:var(--sapGroup_ContentBackground,#fff);border:1px solid var(--sapGroup_ContentBorderColor,#d9d9d9);border-radius:8px;flex-direction:column;gap:1rem;padding:1.25rem;display:flex}.form-grid[data-v-0e99168e]{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.form-field[data-v-0e99168e]{flex-direction:column;gap:.25rem;display:flex}.action-bar[data-v-0e99168e]{align-items:center;gap:.5rem;display:flex} diff --git a/app/vue/dist/assets/BtpLogin-D476Lq_X.js b/app/vue/dist/assets/BtpLogin-D476Lq_X.js new file mode 100644 index 00000000..169ccbe9 --- /dev/null +++ b/app/vue/dist/assets/BtpLogin-D476Lq_X.js @@ -0,0 +1 @@ +import{A as e,M as t,O as n,St as r,X as i,c as a,d as o,i as s,s as c,t as ee,u as l,v as u}from"./_plugin-vue_export-helper-p2JYVKvd.js";import"./BusyIndicator-ozQjqKjn.js";import"./Button-INoaGcLE.js";import{G as d,H as te}from"./index-6hg61Of-.js";import"./Option-tgytz2q0.js";import"./SegmentedButton-N43lIgfy.js";import"./MessageStrip-ub7Xvxnh.js";var ne={class:`btp-login-view`},re={key:0,active:``,size:`Medium`,class:`loading`},ie={key:0,design:`Positive`,"hide-close-button":``},ae={key:1,design:`Warning`,"hide-close-button":``},oe={key:2,design:`Warning`,"hide-close-button":``},se={key:3,class:`form-card`},ce={class:`form-field`},f=[`disabled`],p=[`value`,`selected`],le=[`disabled`],ue={class:`mode-toggle`},de=[`pressed`],fe=[`pressed`],pe={key:4,class:`form-card`},me={class:`form-grid`},he={class:`form-field`},ge=[`value`],m={class:`form-field`},h=[`value`],g={class:`form-field`},_=[`value`],v=[`disabled`],y={key:5,class:`form-card`},b={class:`form-grid`},x={class:`form-field`},S=[`value`],C={class:`form-field`},w=[`value`],T={class:`form-field`},E=[`value`],D={class:`form-field`},O=[`value`],k={class:`form-field`},A=[`value`],j=[`disabled`],M={key:6,design:`Negative`,"hide-close-button":``},N={key:7,design:`Positive`,"hide-close-button":``},P={class:`action-bar`},F=[`disabled`],I=ee(u({__name:`BtpLogin`,setup(ee){let{fetchDirect:u}=te(),I=i(`sso`),L=i(!1),R=i(!1),z=i(``),B=i(``),V=i({loggedIn:!1}),H=i(`https://cli.btp.cloud.sap`),U=i(``),W=i(``),G=i(``),K=i(``),q=i([]),J=i(``),Y=i(!1),X=i(!1),_e=c(()=>V.value.loggedIn),ve=c(()=>!!J.value&&!X.value),ye=c(()=>!R.value),be=c(()=>!!W.value&&!!G.value&&!R.value);async function Z(){L.value=!0,z.value=``;try{V.value=await u(`/hana/btp-status`),V.value.loggedIn&&await Q()}catch(e){z.value=e.message}finally{L.value=!1}}async function Q(){Y.value=!0;try{q.value=await u(`/hana/btp-subaccounts`)}catch{}finally{Y.value=!1}}function xe(e){J.value=e.detail?.selectedOption?.value||e.detail?.selectedOption?.textContent||``}async function Se(){X.value=!0,z.value=``,B.value=``;try{let e=await(await fetch(`/hana/btp-set-target`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({subaccount:J.value})})).json();if(e.success){V.value=e.status;let t=q.value.find(e=>e.guid===J.value);B.value=`Target set: ${t?.displayName||J.value}`,d.show(`BTP target set successfully`)}else z.value=e.message||`Failed to set target`}catch(e){z.value=e.message}finally{X.value=!1}}async function $(){R.value=!0,z.value=``,B.value=``;try{let e={mode:I.value};H.value&&(e.url=H.value),U.value&&(e.subdomain=U.value),K.value&&(e.idp=K.value),I.value===`password`&&(e.user=W.value,e.password=G.value);let t=await(await fetch(`/hana/btp-login`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})).json();t.success?(B.value=`Successfully logged in to BTP`,t.status&&(V.value=t.status),G.value=``,d.show(`BTP Login successful`),V.value.loggedIn&&await Q()):z.value=t.message||`Login failed`}catch(e){z.value=e.message||`Login failed`}finally{R.value=!1}}async function Ce(){R.value=!0,z.value=``,B.value=``;try{(await(await fetch(`/hana/btp-logout`,{method:`POST`})).json()).success&&(V.value={loggedIn:!1},q.value=[],J.value=``,B.value=`Logged out from BTP`,d.show(`BTP Logout successful`))}catch(e){z.value=e.message}finally{R.value=!1}}return n(Z),(n,i)=>(e(),o(`div`,ne,[i[24]||=a(`ui5-title`,{level:`H3`},`BTP Login`,-1),L.value?(e(),o(`ui5-busy-indicator`,re)):(e(),o(s,{key:1},[V.value.loggedIn&&V.value.subAccount?(e(),o(`ui5-message-strip`,ie,` Logged in as `+r(V.value.user)+` — GA: `+r(V.value.globalAccount)+`, Subaccount: `+r(V.value.subAccount),1)):V.value.loggedIn?(e(),o(`ui5-message-strip`,ae,` Logged in as `+r(V.value.user)+` — No subaccount targeted. Please select below. `,1)):(e(),o(`ui5-message-strip`,oe,` Not logged in to BTP `)),_e.value?(e(),o(`div`,se,[i[12]||=a(`ui5-title`,{level:`H5`},`Subaccount Target`,-1),a(`div`,ce,[i[11]||=a(`ui5-label`,{required:``},`Subaccount`,-1),a(`ui5-select`,{onChange:xe,disabled:Y.value},[i[10]||=a(`ui5-option`,{value:``},`-- Select --`,-1),(e(!0),o(s,null,t(q.value,t=>(e(),o(`ui5-option`,{key:t.guid,value:t.guid,selected:t.guid===J.value||t.guid===V.value.subAccountId},r(t.displayName)+` (`+r(t.region)+`)`,9,p))),128))],40,f)]),a(`ui5-button`,{design:`Emphasized`,icon:`target-group`,disabled:!ve.value,onClick:Se},`Set Target`,8,le)])):l(``,!0),a(`div`,ue,[a(`ui5-segmented-button`,null,[a(`ui5-segmented-button-item`,{pressed:I.value===`sso`,onClick:i[0]||=e=>I.value=`sso`},`SSO (Browser)`,8,de),a(`ui5-segmented-button-item`,{pressed:I.value===`password`,onClick:i[1]||=e=>I.value=`password`},`Username / Password`,8,fe)])]),I.value===`sso`?(e(),o(`div`,pe,[i[16]||=a(`ui5-title`,{level:`H5`},`SSO Login`,-1),i[17]||=a(`ui5-message-strip`,{design:`Information`,"hide-close-button":``},` A browser window will open for authentication. Complete the login there and return here. `,-1),a(`div`,me,[a(`div`,he,[i[13]||=a(`ui5-label`,null,`Server URL`,-1),a(`ui5-input`,{value:H.value,onChange:i[2]||=e=>H.value=e.target.value,placeholder:`https://cli.btp.cloud.sap`},null,40,ge)]),a(`div`,m,[i[14]||=a(`ui5-label`,null,`Global Account Subdomain`,-1),a(`ui5-input`,{value:U.value,onChange:i[3]||=e=>U.value=e.target.value,placeholder:`(optional)`},null,40,h)]),a(`div`,g,[i[15]||=a(`ui5-label`,null,`Custom IDP`,-1),a(`ui5-input`,{value:K.value,onChange:i[4]||=e=>K.value=e.target.value,placeholder:`(optional, origin key)`},null,40,_)])]),a(`ui5-button`,{design:`Emphasized`,icon:`log`,disabled:!ye.value,onClick:$},`Login with SSO`,8,v)])):(e(),o(`div`,y,[i[23]||=a(`ui5-title`,{level:`H5`},`Username / Password Login`,-1),a(`div`,b,[a(`div`,x,[i[18]||=a(`ui5-label`,null,`Server URL`,-1),a(`ui5-input`,{value:H.value,onChange:i[5]||=e=>H.value=e.target.value,placeholder:`https://cli.btp.cloud.sap`},null,40,S)]),a(`div`,C,[i[19]||=a(`ui5-label`,null,`Global Account Subdomain`,-1),a(`ui5-input`,{value:U.value,onChange:i[6]||=e=>U.value=e.target.value,placeholder:`(optional)`},null,40,w)]),a(`div`,T,[i[20]||=a(`ui5-label`,{required:``},`Username (Email)`,-1),a(`ui5-input`,{value:W.value,onChange:i[7]||=e=>W.value=e.target.value,placeholder:`user@example.com`},null,40,E)]),a(`div`,D,[i[21]||=a(`ui5-label`,{required:``},`Password`,-1),a(`ui5-input`,{type:`Password`,value:G.value,onChange:i[8]||=e=>G.value=e.target.value},null,40,O)]),a(`div`,k,[i[22]||=a(`ui5-label`,null,`Custom IDP`,-1),a(`ui5-input`,{value:K.value,onChange:i[9]||=e=>K.value=e.target.value,placeholder:`(optional, origin key)`},null,40,A)])]),a(`ui5-button`,{design:`Emphasized`,icon:`log`,disabled:!be.value,onClick:$},`Log In`,8,j)])),z.value?(e(),o(`ui5-message-strip`,M,r(z.value),1)):l(``,!0),B.value?(e(),o(`ui5-message-strip`,N,r(B.value),1)):l(``,!0),a(`div`,P,[a(`ui5-button`,{design:`Transparent`,icon:`refresh`,onClick:Z},`Refresh Status`),V.value.loggedIn?(e(),o(`ui5-button`,{key:0,design:`Negative`,icon:`log`,disabled:R.value,onClick:Ce},`Log Out`,8,F)):l(``,!0)])],64))]))}}),[[`__scopeId`,`data-v-0e99168e`]]);export{I as default}; \ No newline at end of file diff --git a/app/vue/dist/assets/BtpSubs-C2RN5pJA.js b/app/vue/dist/assets/BtpSubs-C2RN5pJA.js new file mode 100644 index 00000000..b390d05e --- /dev/null +++ b/app/vue/dist/assets/BtpSubs-C2RN5pJA.js @@ -0,0 +1 @@ +import{A as e,l as t,v as n}from"./_plugin-vue_export-helper-p2JYVKvd.js";import{t as r}from"./DynamicTableView-DkVyolQ9.js";var i=n({__name:`BtpSubs`,setup(n){return(n,i)=>(e(),t(r,{title:`BTP Subscriptions`,endpoint:`btpSubs-ui`,filters:[],"show-limit":!1,"link-column":`SubscriptionUrl`}))}});export{i as default}; \ No newline at end of file diff --git a/app/vue/dist/assets/BtpTarget-Dj2EQSii.css b/app/vue/dist/assets/BtpTarget-Dj2EQSii.css deleted file mode 100644 index 5d0106d3..00000000 --- a/app/vue/dist/assets/BtpTarget-Dj2EQSii.css +++ /dev/null @@ -1 +0,0 @@ -.btp-target-view[data-v-12b37921]{display:flex;flex-direction:column;gap:1rem}.loading[data-v-12b37921]{display:flex;justify-content:center;padding:3rem}.error[data-v-12b37921],.success[data-v-12b37921]{padding:.5rem 0} diff --git a/app/vue/dist/assets/BtpTarget-eU8MIa74.css b/app/vue/dist/assets/BtpTarget-eU8MIa74.css new file mode 100644 index 00000000..2d8a0dc3 --- /dev/null +++ b/app/vue/dist/assets/BtpTarget-eU8MIa74.css @@ -0,0 +1 @@ +.btp-target-view[data-v-12b37921]{flex-direction:column;gap:1rem;display:flex}.loading[data-v-12b37921]{justify-content:center;padding:3rem;display:flex}.error[data-v-12b37921],.success[data-v-12b37921]{padding:.5rem 0} diff --git a/app/vue/dist/assets/BtpTarget-rpaysco5.js b/app/vue/dist/assets/BtpTarget-rpaysco5.js new file mode 100644 index 00000000..5c213fa4 --- /dev/null +++ b/app/vue/dist/assets/BtpTarget-rpaysco5.js @@ -0,0 +1,4 @@ +import{A as e,M as t,O as n,St as r,X as i,c as a,d as o,i as s,rt as ee,s as te,t as ne,u as c,v as re}from"./_plugin-vue_export-helper-p2JYVKvd.js";import{Ar as l,Bn as u,Dr as d,Ei as f,Er as p,Fi as m,Hr as h,Jr as g,Kr as _,Nr as v,Oi as y,Vn as b,Wr as ie,Yt as ae,_r as oe,ai as x,ar as S,di as C,fi as w,hr as T,i as E,ir as D,kr as O,li as k,ni as se,or as A,rr as j,sr as M,ui as N,wi as ce,zn as le}from"./BusyIndicator-ozQjqKjn.js";import{t as ue}from"./Button-INoaGcLE.js";import{C as de,D as fe,G as pe,H as me,J as he,M as ge,d as _e,m as P,s as ve,w as ye}from"./index-6hg61Of-.js";import"./Link-D7D_IjML.js";import{n as be,t as xe}from"./slideUp-BITSDmQ7.js";import"./MessageStrip-ub7Xvxnh.js";var Se={listItemPreContent:Ce,listItemContent:Te,imageBegin:Ee,iconBegin:De};function F(e){let t={...Se,...e};return M(`div`,{children:[_e.call(this,t),we.call(this)]})}function Ce(){return A(`div`,{class:`ui5-li-tree-toggle-box`,style:this.styles.preContent,children:this.showToggleButton&&A(E,{part:`toggle-icon`,class:`ui5-li-tree-toggle-icon`,name:this.expanded?`navigation-down-arrow`:`navigation-right-arrow`,showTooltip:!0,accessibleName:this.iconAccessibleName,onClick:this._toggleClick})})}function we(){if(this.expanded)return A(`ul`,{role:`group`,id:`${this._id}-subtree`,class:`ui5-tree-li-subtree`,children:A(`slot`,{})})}function Te(){}function Ee(){if(this.hasImage)return A(`div`,{class:`ui5-tree-item-image`,children:A(`slot`,{name:`image`})})}function De(){return this.icon?A(E,{part:`icon`,name:this.icon,class:`ui5-li-icon`}):A(S,{})}f(`@ui5/webcomponents-theming`,`sap_horizon`,async()=>D),f(`@ui5/webcomponents`,`sap_horizon`,async()=>j,`host`);var I=`.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host(:not([hidden])){display:block;position:relative}.ui5-li-tree-text-wrapper{flex:auto}.ui5-li-root-tree{padding-inline-start:0}:host(:not([level="1"])) .ui5-li-root{border-color:var(--sapList_AlternatingBackground)}:host([_toggle-button-end][selected]:not([level="1"])) .ui5-li-root{border-bottom:var(--ui5-listitem-selected-border-bottom)}:host([_toggle-button-end]) .ui5-li-root-tree:hover,:host([_selection-mode]:not([_selection-mode="None"],[_selection-mode="Delete"],[active])) .ui5-li-root-tree:hover{cursor:pointer}:host([_toggle-button-end]:not([selected])) .ui5-li-root-tree:hover,:host(:not([_selection-mode="None"]):not([_selection-mode="Delete"]):not([active]):not([selected])) .ui5-li-root-tree:hover{background:var(--sapList_Hover_Background)}:host(:not([level="1"]):not([active]):not([selected])) .ui5-li-root-tree{background:var(--sapList_AlternatingBackground)}:host([_toggle-button-end]:not([level="1"])) .ui5-li-root-tree{background:var(--ui5-listitem-background-color)}:host([_toggle-button-end][selected]:not([level="1"])) .ui5-li-root-tree{background:var(--sapList_SelectionBackgroundColor)}:host(:not([_selection-mode="None"]):not([_selection-mode="Delete"]):not([active])[selected]) .ui5-li-root-tree:hover{background-color:var(--sapList_Hover_SelectionBackground)}:host([_has-image]){height:unset}::slotted([ui5-avatar][slot="image"]){min-width:var(--_ui5_avatar_fontsize_XS);min-height:var(--_ui5_avatar_fontsize_XS)}.ui5-li-tree-toggle-box{min-width:var(--_ui5-tree-toggle-box-width);min-height:var(--_ui5-tree-toggle-box-height);display:flex;align-items:center;justify-content:center;flex-shrink:0}.ui5-li-tree-toggle-icon{display:flex;align-items:center;justify-content:center;width:var(--_ui5-tree-toggle-box-width);height:var(--_ui5-tree-toggle-box-height);color:var(--sapContent_IconColor);cursor:pointer}.ui5-li-tree-toggle-icon::part(root){width:var(--_ui5-tree-toggle-icon-size);height:var(--_ui5-tree-toggle-icon-size)}:host([actionable]) .ui5-li-tree-toggle-icon{color:var(--sapButton_TextColor)}:host([active][actionable]) .ui5-li-tree-toggle-icon{color:var(--sapList_Active_TextColor)}:host{height:unset}.ui5-li-root{height:var(--_ui5_list_item_base_height)}:host([selected]){background:unset}:host([selected]) .ui5-li-root{background:var(--sapList_SelectionBackgroundColor)}:host([has-border]){border-bottom:unset}:host([has-border]) .ui5-li-root{border-bottom:var(--ui5-listitem-border-bottom)}:host(:not([focused])[selected][has-border]){border-bottom:unset}:host(:not([focused])[selected][has-border]) .ui5-li-root{border-bottom:var(--ui5-listitem-selected-border-bottom)}:host([focused][selected]){border-bottom:unset}:host([focused][selected]) .ui5-li-root{border-bottom:var(--ui5-listitem-focused-selected-border-bottom)}.ui5-tree-li-subtree{margin:0;padding:0;list-style:none}:host([focused][active]) .ui5-li-root-tree{background:var(--sapList_Active_Background)}:host([focused][active]) .ui5-li-root-tree .ui5-li-tree-toggle-icon,:host([focused][active]) .ui5-li-root-tree .ui5-li-title,:host([focused][active]) .ui5-li-root-tree .ui5-li-additional-text{color:var(--sapList_Active_TextColor)} +`,L=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},R,z=R=class extends P{constructor(){super(...arguments),this.level=1,this.showToggleButton=!1,this.expanded=!1,this.movable=!1,this.hasChildren=!1,this.additionalTextState=`None`,this.forcedSetsize=1,this.forcedPosinset=1,this._fixed=!1,this._hasImage=!1}onBeforeRendering(){this.showToggleButton=this.requiresToggleButton,this._hasImage=this.hasImage}get classes(){let e=super.classes;return e.main[`ui5-li-root-tree`]=!0,e}get styles(){return{preContent:{"padding-inline-start":`calc(var(--_ui5-tree-indent-step) * ${this.effectiveLevel})`}}}get requiresToggleButton(){return this._fixed?!1:this.hasChildren||this.items.length>0}get effectiveLevel(){return this.level-1}get hasParent(){return this.level>1}get hasImage(){return!!this.image.length}get _toggleIconName(){return this.expanded?`navigation-down-arrow`:`navigation-right-arrow`}get _ariaLabel(){return R.i18nBundle.getText(le)}get _accInfo(){let e={role:`treeitem`,ariaExpanded:this.showToggleButton?this.expanded:void 0,ariaLevel:this.level,posinset:this.forcedPosinset,setsize:this.forcedSetsize,ariaSelectedText:this.ariaSelectedText,listItemAriaLabel:this.accessibleName?void 0:this._ariaLabel,ariaOwns:this.expanded?`${this._id}-subtree`:void 0,ariaHaspopup:this.accessibilityAttributes.hasPopup};return{...super._accInfo,...e}}get isTreeItem(){return!0}toggle(){this.expanded=!this.expanded}_toggleClick(e){e.stopPropagation(),this.fireDecoratorEvent(`toggle`,{item:this})}_onkeydown(e){super._onkeydown(e),!this._fixed&&this.showToggleButton&&h(e)&&(this.expanded?this.fireDecoratorEvent(`step-in`,{item:this}):this.fireDecoratorEvent(`toggle`,{item:this})),!this._fixed&&v(e)&&(this.expanded?this.fireDecoratorEvent(`toggle`,{item:this}):this.hasParent&&this.fireDecoratorEvent(`step-out`,{item:this}))}get iconAccessibleName(){return this.expanded?R.i18nBundle.getText(u):R.i18nBundle.getText(b)}};L([N({type:Number})],z.prototype,`level`,void 0),L([N()],z.prototype,`icon`,void 0),L([N({type:Boolean})],z.prototype,`showToggleButton`,void 0),L([N({type:Boolean})],z.prototype,`expanded`,void 0),L([N({type:Boolean})],z.prototype,`movable`,void 0),L([N({type:Boolean})],z.prototype,`indeterminate`,void 0),L([N({type:Boolean})],z.prototype,`hasChildren`,void 0),L([N()],z.prototype,`additionalTextState`,void 0),L([N()],z.prototype,`accessibleName`,void 0),L([N({type:Number,noAttribute:!0})],z.prototype,`forcedSetsize`,void 0),L([N({type:Number,noAttribute:!0})],z.prototype,`forcedPosinset`,void 0),L([N({type:Boolean})],z.prototype,`_fixed`,void 0),L([N({type:Boolean})],z.prototype,`_hasImage`,void 0),L([C({type:HTMLElement,invalidateOnChildChange:{properties:!1,slots:[`default`]},default:!0})],z.prototype,`items`,void 0),L([C()],z.prototype,`image`,void 0),L([O(`@ui5/webcomponents`)],z,`i18nBundle`,void 0),z=R=L([w({languageAware:!0,renderer:p,template:F,styles:[P.styles,I]}),d(`toggle`,{bubbles:!0}),d(`step-in`,{bubbles:!0}),d(`step-out`,{bubbles:!0})],z);var B=z,Oe={listItemContent:Ae};function ke(e){let t={...Oe,...e};return F.call(this,t)}function Ae(){return M(S,{children:[A(`div`,{class:`ui5-li-text-wrapper`,children:!!this._showTitle&&M(`div`,{part:`title`,class:`ui5-li-title`,children:[` `,this.text]})}),this.additionalText&&A(`span`,{part:`additional-text`,class:`ui5-li-additional-text`,children:this.additionalText})]})}var V=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},H=class extends B{get _showTitle(){return this.text?.length}};V([N()],H.prototype,`text`,void 0),V([N()],H.prototype,`additionalText`,void 0),H=V([w({renderer:p,tag:`ui5-tree-item`,template:ke,styles:[B.styles,I]})],H),H.define();var je={listItemContent:Ne};function Me(e){let t={...je,...e};return F.call(this,t)}function Ne(){return A(`div`,{class:`ui5-li-tree-text-wrapper`,children:A(`slot`,{name:`content`,slot:`content`})})}var U=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},W=class extends B{constructor(){super(...arguments),this.hideSelectionElement=!1}_onkeydown(e){if(_(e)&&this.content?.some(t=>t.contains(e.target))){e.stopPropagation();return}let t=k(e)||ie(e),n=this.matches(`:focus`);!t&&!n&&!x(e)||super._onkeydown(e)}_onkeyup(e){let t=k(e)||ie(e),n=this.matches(`:focus`);!t&&!n&&!x(e)||super._onkeyup(e)}get placeSelectionElementBefore(){return!this.hideSelectionElement&&super.placeSelectionElementBefore}get placeSelectionElementAfter(){return!this.hideSelectionElement&&super.placeSelectionElementAfter}};U([N({type:Boolean})],W.prototype,`hideSelectionElement`,void 0),U([C()],W.prototype,`content`,void 0),W=U([w({renderer:p,tag:`ui5-tree-item-custom`,template:Me,styles:[B.styles,I]})],W),W.define();var Pe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},G=class extends ve{getItems(e=!1){let t=this.getSlottedNodes(`items`),n=[];return t.length===1&&t[0].hasAttribute(`ui5-drop-indicator`)||K(t,n,e),n}getItemsForProcessing(){return this.getItems(!0)}};G=Pe([w(`ui5-tree-list`)],G);var K=(e,t,n=!1)=>{e.forEach(e=>{t.push(e),(e.expanded||n)&&e.items&&K(e.items,t,n)})};G.define();var Fe=G;function Ie(){return M(Fe,{class:`ui5-tree-root`,selectionMode:this.selectionMode,headerText:this.headerText,footerText:this.footerText,noDataText:this.noDataText,accessibleRole:this._role,accessibleName:this.accessibleName,accessibleNameRef:this.accessibleNameRef,accessibleDescription:this.accessibleDescription,accessibleDescriptionRef:this.accessibleDescriptionRef,onDragEnter:this._ondragenter,onDragOver:this._ondragover,onDrop:this._ondrop,onDragLeave:this._ondragleave,onItemClick:this._onListItemClick,onItemDelete:this._onListItemDelete,onItemFocused:this._onListItemFocus,onSelectionChange:this._onListSelectionChange,onMouseOver:this._onListItemMouseOver,onMouseOut:this._onListItemMouseOut,"onui5-toggle":this._onListItemToggle,"onui5-step-in":this._onListItemStepIn,"onui5-step-out":this._onListItemStepOut,children:[this._hasHeader&&A(`slot`,{name:`header`,slot:`header`}),A(`slot`,{}),A(de,{orientation:`Horizontal`,ownerReference:this})]})}f(`@ui5/webcomponents-theming`,`sap_horizon`,async()=>D),f(`@ui5/webcomponents`,`sap_horizon`,async()=>j,`host`);var Le=`.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host(:not([hidden])){display:block;width:100%}.ui5-tree-root{height:100%;width:100%} +`,q=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},J=class extends T{constructor(){super(),this.selectionMode=`None`,this._dragAndDropHandler=new fe(this,{getItems:this._getItems.bind(this),getDropIndicator:()=>this.dropIndicatorDOM,transformElement:this._transformElement.bind(this),validateDraggedElement:this._validateDraggedElement.bind(this),filterPlacements:this._filterPlacements.bind(this)})}onBeforeRendering(){this._prepareTreeItems()}onAfterRendering(){this.shadowRoot.querySelector(`[ui5-tree-list]`).onBeforeRendering()}get dropIndicatorDOM(){return this.shadowRoot.querySelector(`[ui5-drop-indicator]`)}get list(){return this.getDomRef()}get _role(){return ye.Tree}get _hasHeader(){return!!this.header.length}_ondragenter(e){this._dragAndDropHandler.ondragenter(e)}_ondragleave(e){this._dragAndDropHandler.ondragleave(e)}_ondragover(e){this._dragAndDropHandler.ondragover(e)}_ondrop(e){this._dragAndDropHandler.ondrop(e)}_onListItemStepIn(e){let t=e.detail.item;if(t.items.length>0){let e=t.items[0],n=this._getListItemForTreeItem(e);n&&this.list.focusItem(n)}}_onListItemStepOut(e){let t=e.detail.item;if(t.parentElement!==this){let e=t.parentElement,n=this._getListItemForTreeItem(e);n&&this.list.focusItem(n)}}_onListItemToggle(e){let t=e.detail.item;this.fireDecoratorEvent(`item-toggle`,{item:t})&&t.toggle()}_onListItemClick(e){let t=e.detail.item;this.fireDecoratorEvent(`item-click`,{item:t})||e.preventDefault()}_onListItemDelete(e){let t=e.detail.item;this.fireDecoratorEvent(`item-delete`,{item:t})}_onListItemFocus(e){let t=e.detail.item;this.fireDecoratorEvent(`item-focus`,{item:t})}_onListItemMouseOver(e){let t=e.target;Y(t)&&this.fireDecoratorEvent(`item-mouseover`,{item:t})}_onListItemMouseOut(e){let t=e.target;Y(t)&&this.fireDecoratorEvent(`item-mouseout`,{item:t})}_onListSelectionChange(e){if(!e.detail||!e.detail.previouslySelectedItems||!e.detail.selectedItems)return;let t=e.detail.previouslySelectedItems,n=e.detail.selectedItems,r=e.detail.targetItem;t.forEach(e=>{e.selected=!1}),n.forEach(e=>{e.selected=!0}),this.fireDecoratorEvent(`selection-change`,{previouslySelectedItems:t,selectedItems:n,targetItem:r})}_prepareTreeItems(){this.walk((e,t,n)=>{let r=e.parentNode,i=r&&r.children.length||this.items.length;e.setAttribute(`level`,t.toString()),e.forcedSetsize=i,e.forcedPosinset=n+1})}_getListItemForTreeItem(e){return this.getItems().find(t=>t===e)}getItems(){return this.list.getItems()}focusItemByIndex(e){let t=this.getItems()[e];t&&this.list.focusItem(t)}walk(e){X(this,1,e)}_getItems(){let e=[];return this.walk(t=>{e.push(t.shadowRoot.querySelector(`li`))}),e}_transformElement(e){return e.getRootNode().host}_validateDraggedElement(e,t){return!e.contains(t)}_filterPlacements(e,t,n){return n===t?e.filter(e=>e!==ge.On):e}};q([N()],J.prototype,`selectionMode`,void 0),q([N()],J.prototype,`noDataText`,void 0),q([N()],J.prototype,`headerText`,void 0),q([N()],J.prototype,`footerText`,void 0),q([N()],J.prototype,`accessibleName`,void 0),q([N()],J.prototype,`accessibleNameRef`,void 0),q([N()],J.prototype,`accessibleDescription`,void 0),q([N()],J.prototype,`accessibleDescriptionRef`,void 0),q([C({type:HTMLElement,invalidateOnChildChange:!0,default:!0})],J.prototype,`items`,void 0),q([C()],J.prototype,`header`,void 0),J=q([w({tag:`ui5-tree`,renderer:p,styles:Le,template:Ie}),d(`item-toggle`,{bubbles:!0,cancelable:!0}),d(`item-mouseover`,{bubbles:!0}),d(`item-mouseout`,{bubbles:!0}),d(`item-click`,{bubbles:!0,cancelable:!0}),d(`item-delete`,{bubbles:!0}),d(`item-focus`,{bubbles:!0}),d(`selection-change`,{bubbles:!0}),d(`move`,{bubbles:!0}),d(`move-over`,{bubbles:!0,cancelable:!0})],J);var Y=oe(`isTreeItem`),X=(e,t,n)=>{e.items.forEach((e,r)=>{n(e,t,r),e.items.length>0&&X(e,t+1,n)})};J.define();function Re(){return A(S,{children:M(`div`,{class:`ui5-panel-root`,role:this.accRole,"aria-label":this.effectiveAccessibleName,"aria-labelledby":this.fixedPanelAriaLabelledbyReference,children:[this.hasHeaderOrHeaderText&&A(`div`,{class:{"ui5-panel-heading-wrapper":!0,"ui5-panel-heading-wrapper-sticky":this.stickyHeader},role:this.headingWrapperRole,"aria-level":this.headingWrapperAriaLevel,part:`header-wrapper`,children:M(`div`,{onClick:this._headerClick,onKeyDown:this._headerKeyDown,onKeyUp:this._headerKeyUp,onTouchStart:this._isMobile,onFocusOut:this._headerFocusOut,class:`ui5-panel-header`,tabindex:this.headerTabIndex,role:this.accInfo.role,"aria-expanded":this.accInfo.ariaExpanded,"aria-controls":this.accInfo.ariaControls,"aria-labelledby":this.accInfo.ariaLabelledby,part:`header`,children:[!this.fixed&&A(`div`,{class:`ui5-panel-header-button-root`,children:this._hasHeader?A(ue,{design:`Transparent`,class:`ui5-panel-header-button ui5-panel-header-button-with-icon`,onClick:this._toggleButtonClick,accessibilityAttributes:this.accInfo.button.accessibilityAttributes,tooltip:this.accInfo.button.title,accessibleName:this.accInfo.button.ariaLabelButton,children:A(`div`,{class:`ui5-panel-header-icon-wrapper`,children:A(E,{class:{"ui5-panel-header-icon":!0,"ui5-panel-header-button-animated":!this.shouldNotAnimate},name:`slim-arrow-right`})})}):A(E,{class:{"ui5-panel-header-button":!0,"ui5-panel-header-icon":!0,"ui5-panel-header-button-animated":!this.shouldNotAnimate},name:`slim-arrow-right`,showTooltip:!0,accessibleName:this.toggleButtonTitle})}),this._hasHeader?A(`slot`,{name:`header`}):A(`div`,{id:`${this._id}-header-title`,class:`ui5-panel-header-title`,children:this.headerText})]})}),A(`div`,{class:`ui5-panel-content`,id:`${this._id}-content`,tabindex:-1,style:{display:this._contentExpanded?`block`:`none`},part:`content`,children:A(`slot`,{})})]})})}f(`@ui5/webcomponents-theming`,`sap_horizon`,async()=>D),f(`@ui5/webcomponents`,`sap_horizon`,async()=>j,`host`);var ze=`.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host(:not([hidden])){display:block}:host{font-family:var(--sapFontFamily);background-color:var(--sapGroup_TitleBackground);border-radius:var(--_ui5_panel_border_radius)}:host(:not([collapsed])){border-bottom:var(--_ui5_panel_border_bottom)}:host([fixed]) .ui5-panel-header{padding-left:1rem}.ui5-panel-header{min-height:var(--_ui5_panel_header_height);width:100%;position:relative;display:flex;justify-content:flex-start;align-items:center;outline:none;box-sizing:border-box;padding-right:var(--_ui5_panel_header_padding_right);font-family:var(--sapFontHeaderFamily);font-size:var(--sapGroup_Title_FontSize);font-weight:400;color:var(--sapGroup_TitleTextColor)}.ui5-panel-header-icon{color:var(--_ui5_panel_icon_color)}.ui5-panel-header-button-animated{transition:transform .4s ease-out}:host(:not([_has-header]):not([fixed])) .ui5-panel-header{cursor:pointer}:host(:not([_has-header]):not([fixed])) .ui5-panel-header:focus:after{content:"";position:absolute;pointer-events:none;z-index:2;border:var(--_ui5_panel_focus_border);border-radius:var(--_ui5_panel_border_radius);top:var(--_ui5_panel_focus_offset);bottom:var(--_ui5_panel_focus_bottom_offset);left:var(--_ui5_panel_focus_offset);right:var(--_ui5_panel_focus_offset)}:host(:not([collapsed]):not([_has-header]):not([fixed])) .ui5-panel-header:focus:after{border-radius:var(--_ui5_panel_border_radius_expanded)}:host([_touched]:not([_has-header]):not([fixed])) .ui5-panel-header:focus:after{display:none}:host(:not([collapsed])) .ui5-panel-header-button:not(.ui5-panel-header-button-with-icon),:host(:not([collapsed])) .ui5-panel-header-icon-wrapper [ui5-icon]{transform:var(--_ui5_panel_toggle_btn_rotation)}:host([fixed]) .ui5-panel-header-title{width:100%}.ui5-panel-heading-wrapper.ui5-panel-heading-wrapper-sticky{position:sticky;top:0;background-color:var(--_ui5_panel_header_background_color);z-index:100;border-radius:var(--_ui5_panel_border_radius)}.ui5-panel-header-title{width:calc(100% - var(--_ui5_panel_button_root_width));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui5-panel-content{padding:var(--_ui5_panel_content_padding);background-color:var(--sapGroup_ContentBackground);outline:none;border-bottom-left-radius:var(--_ui5_panel_border_radius);border-bottom-right-radius:var(--_ui5_panel_border_radius);overflow:auto}.ui5-panel-header-button-root{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:var(--_ui5_panel_button_root_width);height:var(--_ui5_panel_button_root_height);padding:var(--_ui5_panel_header_button_wrapper_padding);box-sizing:border-box}:host([fixed]:not([collapsed]):not([_has-header])) .ui5-panel-header,:host([collapsed]) .ui5-panel-header{border-bottom:.0625rem solid var(--sapGroup_TitleBorderColor)}:host([collapsed]) .ui5-panel-header{border-bottom-left-radius:var(--_ui5_panel_border_radius);border-bottom-right-radius:var(--_ui5_panel_border_radius)}:host(:not([fixed]):not([collapsed])) .ui5-panel-header{border-bottom:var(--_ui5_panel_default_header_border)}[ui5-button].ui5-panel-header-button{display:flex;justify-content:center;align-items:center;min-width:initial;height:100%;width:100%}.ui5-panel-header-icon-wrapper{display:flex;justify-content:center;align-items:center}.ui5-panel-header-icon-wrapper,.ui5-panel-header-icon-wrapper .ui5-panel-header-icon{color:inherit}.ui5-panel-header-icon-wrapper,[ui5-button].ui5-panel-header-button-with-icon [ui5-icon]{pointer-events:none}.ui5-panel-root{height:100%;display:flex;flex-direction:column} +`,Z=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Q,$=Q=class extends T{constructor(){super(...arguments),this.fixed=!1,this.collapsed=!1,this.noAnimation=!1,this.accessibleRole=`Form`,this.headerLevel=`H2`,this.stickyHeader=!1,this.useAccessibleNameForToggleButton=!1,this._hasHeader=!1,this._contentExpanded=!1,this._animationRunning=!1,this._pendingToggle=!1,this._touched=!1}onBeforeRendering(){this._animationRunning||(this._contentExpanded=!this.collapsed),this._hasHeader=!!this.header.length}shouldToggle(e){return!this.header.length||e.classList.contains(`ui5-panel-header-button`)}get shouldNotAnimate(){return this.noAnimation||y()===m.None}_isMobile(){ce()&&(this._touched=!0)}_headerFocusOut(){this._touched=!1}_headerClick(e){this.shouldToggle(e.target)&&this._toggleOpen()}_toggleButtonClick(e){e.detail.originalEvent.x===0&&e.detail.originalEvent.y===0&&e.stopImmediatePropagation()}_headerKeyDown(e){this.shouldToggle(e.target)&&(g(e)&&this._toggleOpen(),l(e)&&(e.preventDefault(),this._pendingToggle=!0),se(e)&&this._pendingToggle&&(e.preventDefault(),this._pendingToggle=!1))}_headerKeyUp(e){this.shouldToggle(e.target)&&(g(e)&&e.preventDefault(),l(e)&&(this._pendingToggle&&this._toggleOpen(),this._pendingToggle=!1))}_toggleOpen(){if(this.fixed)return;if(this.collapsed=!this.collapsed,this.shouldNotAnimate){this.fireDecoratorEvent(`toggle`);return}this._animationRunning=!0;let e=this.getDomRef().querySelectorAll(`.ui5-panel-content`),t=[];[].forEach.call(e,e=>{this.collapsed?t.push(xe(e).promise()):t.push(be(e).promise())}),Promise.all(t).then(()=>{this._animationRunning=!1,this._contentExpanded=!this.collapsed,this.fireDecoratorEvent(`toggle`)})}_headerOnTarget(e){return e.classList.contains(`sapMPanelWrappingDiv`)}get toggleButtonTitle(){return Q.i18nBundle.getText(ae)}get expanded(){return!this.collapsed}get accRole(){return this.accessibleRole.toLowerCase()}get effectiveAccessibleName(){return typeof this.accessibleName==`string`&&this.accessibleName.length?this.accessibleName:void 0}get accInfo(){return{button:{accessibilityAttributes:{expanded:this.expanded},title:this.toggleButtonTitle,ariaLabelButton:!this.nonFocusableButton&&this.useAccessibleNameForToggleButton?this.effectiveAccessibleName:void 0},ariaExpanded:this.nonFixedInternalHeader?this.expanded:void 0,ariaControls:this.nonFixedInternalHeader?`${this._id}-content`:void 0,ariaLabelledby:this.nonFocusableButton?this.ariaLabelledbyReference:void 0,role:this.nonFixedInternalHeader?`button`:void 0}}get ariaLabelledbyReference(){return this.nonFocusableButton&&this.headerText&&!this.fixed?`${this._id}-header-title`:void 0}get fixedPanelAriaLabelledbyReference(){return this.fixed&&!this.effectiveAccessibleName?`${this._id}-header-title`:void 0}get headerAriaLevel(){return Number.parseInt(this.headerLevel.slice(1))}get headerTabIndex(){return this.header.length||this.fixed?-1:0}get headingWrapperAriaLevel(){return this._hasHeader?void 0:this.headerAriaLevel}get headingWrapperRole(){return this._hasHeader?void 0:`heading`}get nonFixedInternalHeader(){return!this._hasHeader&&!this.fixed}get hasHeaderOrHeaderText(){return this._hasHeader||this.headerText}get nonFocusableButton(){return!this.header.length}};Z([N()],$.prototype,`headerText`,void 0),Z([N({type:Boolean})],$.prototype,`fixed`,void 0),Z([N({type:Boolean})],$.prototype,`collapsed`,void 0),Z([N({type:Boolean})],$.prototype,`noAnimation`,void 0),Z([N()],$.prototype,`accessibleRole`,void 0),Z([N()],$.prototype,`headerLevel`,void 0),Z([N()],$.prototype,`accessibleName`,void 0),Z([N({type:Boolean})],$.prototype,`stickyHeader`,void 0),Z([N({type:Boolean})],$.prototype,`useAccessibleNameForToggleButton`,void 0),Z([N({type:Boolean})],$.prototype,`_hasHeader`,void 0),Z([N({type:Boolean,noAttribute:!0})],$.prototype,`_contentExpanded`,void 0),Z([N({type:Boolean,noAttribute:!0})],$.prototype,`_animationRunning`,void 0),Z([N({type:Boolean,noAttribute:!0})],$.prototype,`_pendingToggle`,void 0),Z([N({type:Boolean})],$.prototype,`_touched`,void 0),Z([C()],$.prototype,`header`,void 0),Z([O(`@ui5/webcomponents`)],$,`i18nBundle`,void 0),$=Q=Z([w({tag:`ui5-panel`,fastNavigation:!0,languageAware:!0,renderer:p,template:Re,styles:ze}),d(`toggle`,{bubbles:!0})],$),$.define();var Be={class:`btp-target-view`},Ve={key:0,design:`Information`,"hide-close-button":``},He={key:1,active:``,size:`Medium`,class:`loading`},Ue={key:2,class:`error`},We={design:`Negative`,"hide-close-button":``},Ge={key:3,class:`success`},Ke={design:`Positive`,"hide-close-button":``},qe=[`header-text`],Je=[`text`,`data-guid`,`additional-text`],Ye=[`text`,`has-children`],Xe=[`text`,`icon`,`data-guid`,`additional-text`],Ze=ne(re({__name:`BtpTarget`,setup(ne){let{fetchDirect:re}=me(),l=he(),u=i(!1),d=i(``),f=i(``),p=i(null),m=i(null),h=i(null),g=te(()=>{let e=d.value.toLowerCase();return e.includes(`unknown session`)||e.includes(`authorization failed`)||e.includes(`btp cli target`)||e.includes(`no btp cli`)||e.includes(`not logged in`)||e.includes(`unexpected end of json`)});async function _(){u.value=!0,d.value=``;try{let e=await re(`/hana/btp-ui`);p.value=e.globalAccount||null,m.value=e.hierarchy||null,h.value=e.currentTarget||null}catch(e){d.value=e.message}finally{u.value=!1}}async function v(e){d.value=``,f.value=``;try{let t=await(await fetch(`/hana/btp-ui/setTarget`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({subaccount:e})})).json();t.success?(f.value=`Target set to: ${e}`,h.value={guid:e,displayName:e},pe.show(`Target set to ${e}`),await _()):d.value=t.message||`Failed to set target`}catch(e){d.value=e.message}}function y(e){if(!e)return[];let t=[];if(e.subaccounts)for(let n of e.subaccounts)t.push({displayName:n.displayName||n.guid,guid:n.guid,type:`subaccount`});if(e.children)for(let n of e.children)n.directoryType?t.push({displayName:n.displayName||n.guid,type:`directory`,children:y(n)}):t.push({displayName:n.displayName||n.guid,guid:n.guid,type:`subaccount`});return t}function b(e){let t=(e.detail?.item)?.dataset?.guid;t&&v(t)}return n(_),(n,i)=>(e(),o(`div`,Be,[i[1]||=a(`ui5-title`,{level:`H3`},`BTP Subaccount Target`,-1),h.value?(e(),o(`ui5-message-strip`,Ve,` Current target: `+r(h.value.displayName)+` (`+r(h.value.guid)+`) `,1)):c(``,!0),u.value?(e(),o(`ui5-busy-indicator`,He)):d.value?(e(),o(`div`,Ue,[a(`ui5-message-strip`,We,r(d.value),1),g.value?(e(),o(`ui5-link`,{key:0,onClick:i[0]||=e=>ee(l).push({name:`btpLogin`})},`Go to BTP Login`)):c(``,!0)])):f.value?(e(),o(`div`,Ge,[a(`ui5-message-strip`,Ke,r(f.value),1)])):c(``,!0),m.value?(e(),o(`ui5-panel`,{key:4,"header-text":p.value?.displayName||`Global Account`,"accessible-role":`Region`},[a(`ui5-tree`,{onItemClick:b},[(e(!0),o(s,null,t(y(m.value),n=>(e(),o(s,{key:n.displayName},[n.type===`subaccount`?(e(),o(`ui5-tree-item`,{key:0,text:n.displayName,icon:`it-system`,"data-guid":n.guid,"additional-text":n.guid===h.value?.guid?`(current)`:``},null,8,Je)):(e(),o(`ui5-tree-item`,{key:1,text:n.displayName,icon:`open-folder`,"has-children":(n.children?.length??0)>0},[(e(!0),o(s,null,t(n.children,t=>(e(),o(`ui5-tree-item`,{key:t.displayName,text:t.displayName,icon:t.type===`subaccount`?`it-system`:`open-folder`,"data-guid":t.guid,"additional-text":t.guid===h.value?.guid?`(current)`:``},null,8,Xe))),128))],8,Ye))],64))),128))],32)],8,qe)):c(``,!0),a(`ui5-button`,{design:`Transparent`,icon:`refresh`,onClick:_},`Refresh`)]))}}),[[`__scopeId`,`data-v-12b37921`]]);export{Ze as default}; \ No newline at end of file diff --git a/app/vue/dist/assets/BusyIndicator-ozQjqKjn.js b/app/vue/dist/assets/BusyIndicator-ozQjqKjn.js new file mode 100644 index 00000000..0596f27a --- /dev/null +++ b/app/vue/dist/assets/BusyIndicator-ozQjqKjn.js @@ -0,0 +1,51 @@ +var e={},t=e.hasOwnProperty,n=e.toString,r=t.toString,i=r.call(Object),a=function(e){var a,o;return!e||n.call(e)!==`[object Object]`?!1:(a=Object.getPrototypeOf(e),a?(o=t.call(a,`constructor`)&&a.constructor,typeof o==`function`&&r.call(o)===i):!0)},o=Object.create(null),s=function(e,t,n,r){var i,c,l,u,d,f,p=arguments[2]||{},m=3,h=arguments.length,g=arguments[0]||!1,_=arguments[1]?void 0:o;for(typeof p!=`object`&&typeof p!=`function`&&(p={});m{l.set(e,t)},d=e=>l.get(e),f=()=>[...l.keys()],p={themes:{default:`sap_horizon`,all:[`sap_fiori_3`,`sap_fiori_3_dark`,`sap_fiori_3_hcb`,`sap_fiori_3_hcw`,`sap_horizon`,`sap_horizon_auto`,`sap_horizon_dark`,`sap_horizon_hc_auto`,`sap_horizon_hcb`,`sap_horizon_hcw`]},languages:{default:`en`,all:`ar.bg.ca.cnr.cs.cy.da.de.el.en.en_GB.en_US_sappsd.en_US_saprigi.en_US_saptrc.es.es_MX.et.fi.fr.fr_CA.hi.hr.hu.id.it.iw.ja.kk.ko.lt.lv.mk.ms.nl.no.pl.pt_PT.pt.ro.ru.sh.sk.sl.sr.sv.th.tr.uk.vi.zh_CN.zh_TW`.split(`.`)},locales:{default:`en`,all:`ar.ar_EG.ar_SA.bg.ca.cnr.cs.da.de.de_AT.de_CH.el.el_CY.en.en_AU.en_GB.en_HK.en_IE.en_IN.en_NZ.en_PG.en_SG.en_ZA.es.es_AR.es_BO.es_CL.es_CO.es_MX.es_PE.es_UY.es_VE.et.fa.fi.fr.fr_BE.fr_CA.fr_CH.fr_LU.he.hi.hr.hu.id.it.it_CH.ja.kk.ko.lt.lv.ms.mk.nb.nl.nl_BE.pl.pt.pt_PT.ro.ru.ru_UA.sk.sl.sr.sr_Latn.sv.th.tr.uk.vi.zh_CN.zh_HK.zh_SG.zh_TW`.split(`.`)}},m=p.themes.default,h=p.themes.all,g=p.languages.default,_=p.locales.default,v=p.locales.all,y=(e=>(e.Full=`full`,e.Basic=`basic`,e.Minimal=`minimal`,e.None=`none`,e))(y||{}),b=class{constructor(){this._eventRegistry=new Map}attachEvent(e,t){let n=this._eventRegistry,r=n.get(e);if(!Array.isArray(r)){n.set(e,[t]);return}r.includes(t)||r.push(t)}detachEvent(e,t){let n=this._eventRegistry,r=n.get(e);if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1),r.length===0&&n.delete(e)}fireEvent(e,t){let n=this._eventRegistry.get(e);return n?n.map(e=>e.call(this,t)):[]}fireEventAsync(e,t){return Promise.all(this.fireEvent(e,t))}isHandlerAttached(e,t){let n=this._eventRegistry.get(e);return n?n.includes(t):!1}hasListeners(e){return!!this._eventRegistry.get(e)}},x=new b,S=`configurationReset`,C=e=>{x.attachEvent(S,e)},w=()=>{x.fireEvent(S,void 0)},T=typeof document>`u`,E={search(){return T?``:window.location.search}},D=()=>T?``:window.location.hostname,ee=()=>T?``:window.location.port,te=()=>T?``:window.location.protocol,ne=()=>T?``:window.location.href,re=()=>E.search(),ie=!1,O={animationMode:y.Full,theme:m,themeRoot:void 0,rtl:void 0,language:void 0,timezone:void 0,calendarType:void 0,secondaryCalendarType:void 0,noConflict:!1,formatSettings:{},fetchDefaultLanguage:!1,defaultFontLoading:!0,enableDefaultTooltips:!0,ignoreUrlParams:!1},ae=()=>(k(),O.animationMode),oe=()=>(k(),O.theme),se=()=>(k(),O.themeRoot),ce=()=>(k(),O.language),le=()=>(k(),O.fetchDefaultLanguage),ue=()=>(k(),O.noConflict),de=()=>(k(),O.defaultFontLoading),fe=()=>(k(),O.enableDefaultTooltips),pe=()=>(k(),O.ignoreUrlParams),me=()=>(k(),O.calendarType),he=()=>(k(),O.secondaryCalendarType),ge=()=>(k(),O.timezone),_e=()=>(k(),O.formatSettings),ve=new Map;ve.set(`true`,!0),ve.set(`false`,!1);var ye=()=>{let e=document.querySelector(`[data-ui5-config]`)||document.querySelector(`[data-id='sap-ui-config']`),t;if(e){try{t=JSON.parse(e.innerHTML)}catch{console.warn(`Incorrect data-sap-ui-config format. Please use JSON`)}t&&(O=c(O,t))}},be=()=>{let e=new URLSearchParams(re());e.forEach((e,t)=>{let n=t.split(`sap-`).length;n===0||n===t.split(`sap-ui-`).length||Ce(t,e,`sap`)}),e.forEach((e,t)=>{t.startsWith(`sap-ui`)&&Ce(t,e,`sap-ui`)})},xe=e=>e.split(`@`)[1],Se=(e,t)=>e===`theme`&&t.includes(`@`)?t.split(`@`)[0]:t,Ce=(e,t,n)=>{let r=t.toLowerCase(),i=e.split(`${n}-`)[1];ve.has(t)&&(t=ve.get(r)),i===`theme`?(O.theme=Se(i,t),t&&t.includes(`@`)&&(O.themeRoot=xe(t))):O[i]=t},we=()=>{let e=d(`OpenUI5Support`);if(!e||!e.isOpenUI5Detected())return;let t=e.getConfigurationSettingsObject();O=c(O,t)},k=()=>{typeof document>`u`||ie||(Te(),ie=!0)},Te=e=>{e&&w(),ye(),O.ignoreUrlParams||be(),we()},Ee=class{constructor(){this.list=[],this.lookup=new Set}add(e){this.lookup.has(e)||(this.list.push(e),this.lookup.add(e))}remove(e){this.lookup.has(e)&&(this.list=this.list.filter(t=>t!==e),this.lookup.delete(e))}shift(){let e=this.list.shift();if(e)return this.lookup.delete(e),e}isEmpty(){return this.list.length===0}isAdded(e){return this.lookup.has(e)}process(e){let t,n=new Map;for(t=this.shift();t;){let r=n.get(t)||0;if(r>10)throw Error(`Web component processed too many times this task, max allowed is: 10`);e(t),n.set(t,r+1),t=this.shift()}}},De=(e,t=document.body,n)=>{let r=document.querySelector(e);return r||(r=n?n():document.createElement(e),t.insertBefore(r,t.firstChild))},Oe=()=>{let e=document.createElement(`meta`);return e.setAttribute(`name`,`ui5-shared-resources`),e.setAttribute(`content`,``),e},ke=()=>typeof document>`u`?null:De(`meta[name="ui5-shared-resources"]`,document.head,Oe),A=(e,t)=>{let n=e.split(`.`),r=ke();if(!r)return t;for(let e=0;eje,Fe=()=>Me,Ie=e=>{if(!Ne.has(e)){let t=Me.include.some(t=>e.match(t))&&!Me.exclude.some(t=>e.match(t));Ne.set(e,t)}return Ne.get(e)},Le=e=>{if(Ie(e))return Pe()},Re=(e,t=!1)=>{if(!t)return e;let n=`v${Ae.version.replaceAll(`.`,`-`)}`;return e.replaceAll(/(--_?ui5)([^,:)\s]+)/g,`$1-${n}$2`)},ze;C(()=>{ze=void 0});var Be=()=>(ze===void 0&&(ze=ae()),ze),Ve=(e=>(e.Gregorian=`Gregorian`,e.Islamic=`Islamic`,e.Japanese=`Japanese`,e.Buddhist=`Buddhist`,e.Persian=`Persian`,e))(Ve||{}),He,Ue;C(()=>{He=void 0,Ue=void 0});var We=()=>(He===void 0&&(He=me()),He&&He in Ve?He:Ve.Gregorian),Ge=()=>(Ue===void 0&&(Ue=he()),Ue&&Ue in Ve,Ue),Ke;C(()=>{Ke=void 0});var qe=()=>(Ke===void 0&&(Ke=de()),Ke),Je,Ye=class{static getLegacyDateCalendarCustomizing(){return Je===void 0&&(Je=_e()),Je.legacyDateCalendarCustomizing||[]}};u(`LegacyDateFormats`,Ye);var Xe;C(()=>{Xe=void 0});var Ze=()=>(Xe===void 0&&(Xe=_e()),Xe.firstDayOfWeek),Qe=d(`LegacyDateFormats`)?Ye.getLegacyDateCalendarCustomizing:()=>[],$e=new b,et=`languageChange`,tt=e=>{$e.attachEvent(et,e)},nt=e=>$e.fireEventAsync(et,e),rt=()=>new Promise(e=>{document.body?e():document.addEventListener(`DOMContentLoaded`,()=>{e()})}),it=typeof document>`u`,at=(e,t)=>t?`${e}|${t}`:e,ot=e=>e===void 0||fr(ur(),parseInt(e))>=1,st=(e,t,n=``,r)=>{let i=ur(),a=new CSSStyleSheet;a.replaceSync(e),a._ui5StyleId=at(t,n),r&&(a._ui5RuntimeIndex=i,a._ui5Theme=r),document.adoptedStyleSheets=[...document.adoptedStyleSheets,a]},ct=(e,t,n=``,r)=>{if(it)return;let i=ur(),a=document.adoptedStyleSheets.find(e=>e._ui5StyleId===at(t,n));if(a)if(!r)a.replaceSync(e||``);else{let t=a._ui5RuntimeIndex;(a._ui5Theme!==r||ot(t))&&(a.replaceSync(e||``),a._ui5RuntimeIndex=String(i),a._ui5Theme=r)}},lt=(e,t=``)=>it?!0:!!document.adoptedStyleSheets.find(n=>n._ui5StyleId===at(e,t)),ut=(e,t=``)=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter(n=>n._ui5StyleId!==at(e,t))},dt=(e,t,n=``,r)=>{lt(t,n)?ct(e,t,n,r):st(e,t,n,r)},ft=(e,t)=>e===void 0?t:t===void 0?e:`${e} ${t}`,pt=`@font-face{font-family:"72";font-style:normal;font-weight:400;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Regular.woff2) format("woff2"),local("72");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72full";font-style:normal;font-weight:400;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Regular-full.woff2) format("woff2")} +@font-face{font-family:"72-Bold";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Bold.woff2) format("woff2"),local("72-Bold");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72";font-style:normal;font-weight:700;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Bold.woff2) format("woff2"),local("72-Bold");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72-Boldfull";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Bold-full.woff2) format("woff2")} +@font-face{font-family:"72full";font-style:normal;font-weight:700;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Bold-full.woff2) format("woff2")} +@font-face{font-family:"72-Semibold";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Semibold.woff2) format("woff2"),local("72-Semibold");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72";font-style:normal;font-weight:600;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Semibold.woff2) format("woff2"),local("72-Semibold");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72-Semiboldfull";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Semibold-full.woff2) format("woff2")} +@font-face{font-family:"72full";font-style:normal;font-weight:600;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Semibold-full.woff2) format("woff2")} +@font-face{font-family:"72-SemiboldDuplex";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-SemiboldDuplex.woff2) format("woff2"),local("72-SemiboldDuplex");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72-SemiboldDuplexfull";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-SemiboldDuplex-full.woff2) format("woff2")} +@font-face{font-family:"72-Light";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Light.woff2) format("woff2"),local("72-Light");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72";font-style:normal;font-weight:300;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Light.woff2) format("woff2"),local("72-Light");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72-Lightfull";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Light-full.woff2) format("woff2")} +@font-face{font-family:"72full";font-style:normal;font-weight:300;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Light-full.woff2) format("woff2")} +@font-face{font-family:"72Black";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Black.woff2) format("woff2"),local("72Black");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+160-161,U+178,U+17D-17E,U+192,U+237,U+2C6-2C7,U+2DC,U+3BC,U+1E0E,U+2013-2014,U+2018-2019,U+201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72";font-style:normal;font-weight:900;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Black.woff2) format("woff2"),local("72Black");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+160-161,U+178,U+17D-17E,U+192,U+237,U+2C6-2C7,U+2DC,U+3BC,U+1E0E,U+2013-2014,U+2018-2019,U+201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72Blackfull";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Black-full.woff2) format("woff2")} +@font-face{font-family:"72full";font-style:normal;font-weight:900;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Black-full.woff2) format("woff2")} +@font-face{font-family:"72-BoldItalic";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-BoldItalic.woff2) format("woff2"),local("72-BoldItalic");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72";font-style:italic;font-weight:700;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-BoldItalic.woff2) format("woff2"),local("72-BoldItalic");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72full";font-style:italic;font-weight:700;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-BoldItalic-full.woff2) format("woff2")} +@font-face{font-family:"72-Condensed";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Condensed.woff2) format("woff2"),local("72-Condensed");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72";font-style:normal;font-weight:400;font-stretch:condensed;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Condensed.woff2) format("woff2"),local("72-Condensed");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72";font-style:normal;font-weight:400;font-stretch:condensed;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Condensed-full.woff2) format("woff2");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72-CondensedBold";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-CondensedBold.woff2) format("woff2"),local("72-CondensedBold");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72";font-style:normal;font-weight:700;font-stretch:condensed;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-CondensedBold.woff2) format("woff2"),local("72-CondensedBold");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72full";font-style:normal;font-weight:700;font-stretch:condensed;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-CondensedBold-full.woff2) format("woff2")} +@font-face{font-family:"72-Italic";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Italic.woff2) format("woff2"),local("72-Italic");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72";font-style:italic;font-weight:400;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Italic.woff2) format("woff2"),local("72-Italic");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72full";font-style:italic;font-weight:400;src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72-Italic-full.woff2) format("woff2")} +@font-face{font-family:"72Mono";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72Mono-Regular.woff2) format("woff2"),local("72Mono");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72Monofull";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72Mono-Regular-full.woff2) format("woff2")} +@font-face{font-family:"72Mono-Bold";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72Mono-Bold.woff2) format("woff2"),local("72Mono-Bold");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122} +@font-face{font-family:"72Mono-Boldfull";src:url(https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11.36.4/content/Base/baseLib/baseTheme/fonts/72Mono-Bold-full.woff2) format("woff2")}`,mt=()=>{let e=d(`OpenUI5Support`);(!e||!e.isOpenUI5Detected())&&ht()},ht=()=>{let e=document.querySelector(`head>style[data-ui5-font-face]`);!qe()||e||dt(pt,`data-ui5-font-face`)},gt=`:root{--_ui5-cozy-size:var(--_ui5-f2d95f8);--_ui5-compact-size: ;--_ui5_content_density:cozy}.sapUiSizeCompact,.ui5-content-density-compact,[data-ui5-compact-size]{--_ui5-cozy-size: ;--_ui5-compact-size:var(--_ui5-f2d95f8);--_ui5_content_density:compact}`,_t=()=>{dt(gt,`data-ui5-system-css-vars`)},vt=`html:not(.ui5-content-native-scrollbars){scrollbar-color:var(--sapScrollBar_FaceColor) var(--sapScrollBar_TrackColor)}`,yt=()=>{dt(vt,`data-ui5-scrollbar-styles`)},bt=new b,xt=`themeRegistered`,St=e=>{bt.attachEvent(xt,e)},Ct=e=>bt.fireEvent(xt,e),wt=new Map,Tt=new Map,Et=new Map,Dt=new Map,Ot=new Set,j=(e,t,n,r=`root`)=>{Tt.set(`${e}/${t}`,n),Dt.set(e,{cssVariablesTarget:r}),Ot.add(t),Ct(t)},kt=async(e,t,n)=>{let r=`${e}_${t}_${n||``}`,i=wt.get(r);if(i!==void 0)return i;if(!Ot.has(t)){let n=[...Ot.values()].join(`, `);return console.warn(`You have requested a non-registered theme ${t} - falling back to ${m}. Registered themes are: ${n}`),At(e,m)}let[a,o]=await Promise.all([At(e,t),n?At(e,n,!0):void 0]),s=ft(a,o);return s&&wt.set(r,s),s},At=async(e,t,n=!1)=>{let r=(n?Et:Tt).get(`${e}/${t}`);if(!r){n||console.error(`Theme [${t}] not registered for package [${e}]`);return}let i;try{i=await r(t)}catch(t){console.error(e,t.message);return}return i},jt=()=>Dt,Mt=e=>Ot.has(e),Nt=new Set,Pt=()=>{let e=document.querySelector(`.sapThemeMetaData-Base-baseLib`)||document.querySelector(`.sapThemeMetaData-UI5-sap-ui-core`);if(e)return getComputedStyle(e).backgroundImage;e=document.createElement(`span`),e.style.display=`none`,e.classList.add(`sapThemeMetaData-Base-baseLib`),document.body.appendChild(e);let t=getComputedStyle(e).backgroundImage;return t===`none`&&(e.classList.add(`sapThemeMetaData-UI5-sap-ui-core`),t=getComputedStyle(e).backgroundImage),document.body.removeChild(e),t},Ft=e=>{let t=/\(["']?data:text\/plain;utf-8,(.*?)['"]?\)$/i.exec(e);if(t&&t.length>=2){let e=t[1];if(e=e.replace(/\\"/g,`"`),e.charAt(0)!==`{`&&e.charAt(e.length-1)!==`}`)try{e=decodeURIComponent(e)}catch{Nt.has(`decode`)||(console.warn(`Malformed theme metadata string, unable to decodeURIComponent`),Nt.add(`decode`));return}try{return JSON.parse(e)}catch{Nt.has(`parse`)||(console.warn(`Malformed theme metadata string, unable to parse JSON`),Nt.add(`parse`))}}},It=e=>{let t,n;try{let r=e.Path.split(`.`);t=r.length===4?r[2]:getComputedStyle(document.body).getPropertyValue(`--sapSapThemeId`),n=e.Extends[0]}catch{Nt.has(`object`)||(console.warn(`Malformed theme metadata Object`,e),Nt.add(`object`));return}return{themeName:t,baseThemeName:n}},Lt=()=>{let e=Pt();if(!e||e===`none`)return;let t=Ft(e);if(t)return It(t)},Rt=new b,zt=`themeLoaded`,Bt=e=>Rt.fireEvent(zt,e),Vt=(e,t)=>{let n=document.createElement(`link`);return n.type=`text/css`,n.rel=`stylesheet`,t&&Object.entries(t).forEach(e=>n.setAttribute(...e)),n.href=e,document.head.appendChild(n),new Promise(e=>{n.addEventListener(`load`,e),n.addEventListener(`error`,e)})},Ht=e=>{let t=document.querySelector(`META[name="${e}"]`);return t&&t.getAttribute(`content`)},Ut=(e,t=!1)=>{let n=Ht(`sap-allowed-theme-origins`)??Ht(`sap-allowedThemeOrigins`);return n?t?!0:n.split(`,`).some(t=>t===`*`||e===t.trim()):!1},Wt=e=>{let t,n=!1;try{if(e.startsWith(`.`)||e.startsWith(`/`)&&!e.startsWith(`//`))t=new URL(e,ne()).toString(),n=!0;else{let r=e.startsWith(`//`)?new URL(e,ne()):new URL(e),i=r.origin;if(n=i===new URL(ne()).origin,i&&Ut(i,n))t=r.toString();else return}return t.endsWith(`/`)||(t=`${t}/`),`${t}UI5/`}catch{return}},Gt;C(()=>{Gt=void 0});var Kt=()=>(Gt===void 0&&(Gt=se()),Gt),qt=(e,t)=>`${t}Base/baseLib/${e}/css_variables.css`,Jt=async e=>{let t=document.querySelector(`[sap-ui-webcomponents-theme="${e}"]`);t&&document.head.removeChild(t);let n=Kt();if(!n)return;let r=Wt(n);if(!r){console.warn(`The ${n} is not valid. Check the allowed origins as suggested in the "setThemeRoot" description.`);return}await Vt(qt(e,r),{"sap-ui-webcomponents-theme":e})},Yt=new Map,Xt,Zt=()=>(Xt||=new CSSStyleSheet,Xt),Qt=(e,t)=>{Yt.set(e,t);let n=Array.from(Yt.values()).join(` +`);Zt().replaceSync(n)},$t=`@ui5/webcomponents-theming`,en=()=>jt().has($t),tn=async e=>{if(!en())return;let t=await kt($t,e);t&&dt(t,`data-ui5-theme-properties`,$t,e)},nn=()=>{ut(`data-ui5-theme-properties`,$t)},rn=async(e,t)=>{let n=[...jt().entries()].map(async([n,{cssVariablesTarget:r}])=>{if(n===$t)return;let i=await kt(n,e,t);i&&(r===`root`?dt(i,`data-ui5-component-properties-${ur()}`,n):r===`host`&&Qt(n,i))});return Promise.all(n)},an=async e=>{let t=Lt();if(t)return t;let n=d(`OpenUI5Support`);if(n&&n.isOpenUI5Detected()){if(n.cssVariablesLoaded())return{themeName:n.getConfigurationSettingsObject()?.theme,baseThemeName:``}}else if(Kt())return await Jt(e),Lt()},on=async e=>{let t=await an(e);!t||e!==t.themeName?await tn(e):nn();let n=t&&t.themeName===e?e:void 0,r=t&&t.baseThemeName;await rn(Mt(e)?e:r||m,n),Xr(r),Bt(e)},M=typeof document>`u`,N={get userAgent(){return M?``:navigator.userAgent},get touch(){return M?!1:`ontouchstart`in window||navigator.maxTouchPoints>0},get chrome(){return!M&&/(Chrome|CriOS)/.test(N.userAgent)},get firefox(){return!M&&/Firefox/.test(N.userAgent)},get safari(){return!M&&!N.chrome&&/(Version|PhantomJS)\/(\d+\.\d+).*Safari/.test(N.userAgent)},get webkit(){return!M&&/webkit/.test(N.userAgent)},get windows(){return!M&&navigator.platform.indexOf(`Win`)!==-1},get macOS(){return!M&&!!navigator.userAgent.match(/Macintosh|Mac OS X/i)},get iOS(){return M?!1:!!navigator.platform.match(/iPhone|iPad|iPod/)||!!(N.userAgent.match(/Mac/)&&`ontouchend`in document)},get android(){return!M&&!N.windows&&/Android/.test(N.userAgent)},get androidPhone(){return!M&&N.android&&/(?=android)(?=.*mobile)/i.test(N.userAgent)},get ipad(){return M?!1:/ipad/i.test(N.userAgent)||/Macintosh/i.test(N.userAgent)&&`ontouchend`in document},_isPhone(){return dn(),N.touch&&!P}},sn,cn,P,ln=()=>{if(M||!N.windows)return!1;if(sn===void 0){let e=N.userAgent.match(/Windows NT (\d+).(\d)/);sn=e?parseFloat(e[1]):0}return sn>=8},un=()=>{if(M||!N.webkit)return!1;if(cn===void 0){let e=N.userAgent.match(/(webkit)[ /]([\w.]+)/);cn=e?parseFloat(e[1]):0}return cn>=537.1},dn=()=>{if(M)return!1;if(P===void 0){if(N.ipad){P=!0;return}if(N.touch){if(ln()){P=!0;return}if(N.chrome&&N.android){P=!/Mobile Safari\/[.0-9]+/.test(N.userAgent);return}let e=window.devicePixelRatio?window.devicePixelRatio:1;N.android&&un()&&(e=1),P=Math.min(window.screen.width/e,window.screen.height/e)>=600;return}P=N.userAgent.indexOf(`Touch`)!==-1||N.android&&!N.androidPhone}},fn=()=>N.touch,pn=()=>N.safari,mn=()=>N.chrome,hn=()=>N.firefox,gn=()=>(dn(),(N.touch||ln())&&P),_n=()=>N._isPhone(),vn=()=>M?!1:!gn()&&!_n()||ln(),yn=()=>N.iOS,bn=()=>N.macOS,xn=()=>N.android||N.androidPhone,Sn=!1,Cn=()=>{pn()&&yn()&&!Sn&&(document.body.addEventListener(`touchstart`,()=>{}),Sn=!0)},wn=!1,Tn,En=!1,Dn=new b,On=()=>wn,kn=e=>{if(!wn){Dn.attachEvent(`boot`,e);return}e()},An=async()=>{let e=d(`OpenUI5Support`),t=e?e.isOpenUI5Detected():!1,n=d(`F6Navigation`);e&&(n&&n.destroy(),await e.init()),n&&!t&&n.init()},jn=()=>{if(En)return;let e=d(`OpenUI5Support`);e&&(En=e.attachListeners())},Mn=async()=>(Tn===void 0&&(Tn=new Promise(async e=>{if(lr(),typeof document>`u`){e();return}St(Nn),await An(),await rt(),await on(Gr()),jn(),mt(),_t(),yt(),Cn(),e(),wn=!0,Dn.fireEvent(`boot`)})),Tn),Nn=e=>{if(!wn)return;let t=Gr(),n=Yr();(e===t||e===n)&&on(t)},Pn=()=>A(`ConfigChange.eventProvider`,new b),Fn=()=>A(`ConfigChange.values`,{}),In=`configChange`,Ln=new Set,Rn=(e,t)=>{Fn()[e]=t,Ln.add(e);try{Pn().fireEvent(In,{name:e,value:t})}finally{Ln.delete(e)}},zn=(e,t)=>{Pn().attachEvent(In,n=>{n.name===e&&!Ln.has(e)&&t(n.value)})},Bn=e=>Fn()[e],Vn,Hn;C(()=>{Vn=void 0,Hn=void 0});var Un=!1;zn(`language`,e=>{Vn=e,Un=!0,nt(e).then(()=>{Un=!1,On()&&Ur({languageAware:!0})})});var Wn=()=>Un,Gn=()=>(Vn===void 0&&(Vn=Bn(`language`)??ce()),Vn),Kn=()=>(Hn===void 0&&(Hn=le()),Hn),qn=[`value-changed`,`click`],Jn;C(()=>{Jn=void 0});var Yn=e=>qn.includes(e),Xn=e=>{let t=Zn();return!(typeof t!=`boolean`&&t.events&&t.events.includes&&t.events.includes(e))},Zn=()=>(Jn===void 0&&(Jn=ue()),Jn),Qn=e=>{let t=Zn();return Yn(e)?!1:t===!0||!Xn(e)},$n;C(()=>{$n=void 0});var er=()=>($n===void 0&&($n=ge()),$n),tr,nr=()=>(tr===void 0&&(tr=fe()),tr),rr,ir=()=>(rr===void 0&&(rr=pe()),rr),ar,or=``,sr=new Map,cr=A(`Runtimes`,[]),lr=()=>{if(ar===void 0){ar=cr.length;let e=Ae;cr.push({...e,get scopingSuffix(){return Pe()},get registeredTags(){return br()},get registeredFeatures(){return f()},get configuration(){return{theme:Gr(),themeRoot:Kt(),baseTheme:Yr(),language:Gn(),fetchDefaultLanguage:Kn(),timezone:er(),animationMode:Be(),calendarType:We(),secondaryCalendarType:Ge(),noConflict:Zn(),defaultFontLoading:qe(),enableDefaultTooltips:nr(),firstDayOfWeek:Ze(),legacyDateCalendarCustomizing:Qe(),ignoreUrlParams:ir()}},get scopingRules(){return Fe()},get openUI5Detected(){return d(`OpenUI5Support`)?.isOpenUI5Detected()??!1},get openUI5LoadedFirst(){let e=d(`OpenUI5Support`);return e?e.isOpenUI5LoadedFirst():void 0},alias:or,description:`Runtime ${ar} - ver ${e.version}`,importMetaUrl:import.meta.url})}},ur=()=>ar,dr=(e,t)=>e.isNext||t.isNext?e.buildTime-t.buildTime:e.major-t.major||e.minor-t.minor||e.patch-t.patch||new Intl.Collator(void 0,{numeric:!0,sensitivity:`base`}).compare(e.suffix,t.suffix),fr=(e,t)=>{let n=`${e},${t}`;if(sr.has(n))return sr.get(n);let r=cr[e],i=cr[t];if(!r||!i)throw Error(`Invalid runtime index supplied`);let a=dr(r,i);return sr.set(n,a),a},pr=()=>cr,mr=A(`Tags`,new Map),hr=new Set,F=new Map,gr,_r=-1,vr=e=>{hr.add(e),mr.set(e,ur())},yr=e=>hr.has(e),br=()=>[...hr.values()],xr=e=>{let t=mr.get(e);t===void 0&&(t=_r),F.has(t)||F.set(t,new Set),F.get(t).add(e),gr||=setTimeout(()=>{Sr(),F=new Map,gr=void 0},1e3)},Sr=()=>{let e=pr(),t=ur(),n=e[t],r=`Multiple UI5 Web Components instances detected.`;e.length>1&&(r=`${r} +Loading order (versions before 1.1.0 not listed): ${e.map(e=>` +${e.description}`).join(``)}`),[...F.keys()].forEach(i=>{let a,o;i===_r?(a=1,o={description:`Older unknown runtime`}):(a=fr(t,i),o=e[i]);let s;s=a>0?`an older`:a<0?`a newer`:`the same`,r=`${r} + +"${n.description}" failed to define ${F.get(i).size} tag(s) as they were defined by a runtime of ${s} version "${o.description}": ${[...F.get(i)].sort().join(`, `)}.`,r=a>0?`${r} +WARNING! If your code uses features of the above web components, unavailable in ${o.description}, it might not work as expected!`:`${r} +Since the above web components were defined by the same or newer version runtime, they should be compatible with your code.`}),r=`${r} + +To prevent other runtimes from defining tags that you use, consider using scoping or have third-party libraries use scoping: https://github.com/UI5/webcomponents/blob/main/docs/2-advanced/06-scoping.md.`,console.warn(r)},Cr=new Set,wr=e=>{Cr.add(e)},Tr=e=>Cr.has(e),Er=new Set,Dr=new b,Or=new Ee,kr,Ar,jr,Mr,Nr=async e=>{Or.add(e),await Rr()},Pr=e=>{Er.add(e)},Fr=e=>{Er.delete(e)},Ir=e=>{Dr.fireEvent(`beforeComponentRender`,e),Pr(e),e._render()},Lr=e=>{Or.remove(e),Fr(e)},Rr=async()=>{Mr||=new Promise(e=>{window.requestAnimationFrame(()=>{Or.process(Ir),Mr=null,e(),jr||=setTimeout(()=>{jr=void 0,Or.isEmpty()&&Hr()},200)})}),await Mr},zr=()=>kr||(kr=new Promise(e=>{Ar=e,window.requestAnimationFrame(()=>{Or.isEmpty()&&(kr=void 0,e())})}),kr),Br=()=>{let e=br().map(e=>customElements.whenDefined(e));return Promise.all(e)},Vr=async()=>{await Br(),await zr()},Hr=()=>{Or.isEmpty()&&Ar&&(Ar(),Ar=void 0,kr=void 0)},Ur=async e=>{Er.forEach(t=>{let n=t.constructor,r=n.getMetadata().getTag(),i=Tr(n),a=n.getMetadata().isLanguageAware(),o=n.getMetadata().isThemeAware();(!e||e.tag===r||e.rtlAware&&i||e.languageAware&&a||e.themeAware&&o)&&Nr(t)}),await Vr()},I,Wr;C(()=>{I=void 0}),zn(`theme`,e=>{I=e,On()&&on(I).then(()=>Ur({themeAware:!0}))});var Gr=()=>(I===void 0&&(I=Bn(`theme`)??oe()),I),Kr=async e=>{I!==e&&(I=e,Rn(`theme`,e),On()&&(await on(I),await Ur({themeAware:!0})))},qr=()=>{let e=Gr();return Jr(e)?!e.startsWith(`sap_horizon`):!Lt()?.baseThemeName?.startsWith(`sap_horizon`)},Jr=e=>h.includes(e),Yr=()=>Wr,Xr=e=>{Wr=e},Zr=(e={})=>t=>{if(Object.prototype.hasOwnProperty.call(t,`metadata`)||(t.metadata={}),typeof e==`string`){t.metadata.tag=e;return}let{tag:n,languageAware:r,themeAware:i,cldr:a,fastNavigation:o,formAssociated:s,shadowRootOptions:c}=e;t.metadata.tag=n,r&&(t.metadata.languageAware=r),a&&(t.metadata.cldr=a),i&&(t.metadata.themeAware=i),o&&(t.metadata.fastNavigation=o),s&&(t.metadata.formAssociated=s),c&&(t.metadata.shadowRootOptions=c),[`renderer`,`template`,`styles`,`dependencies`].forEach(n=>{e[n]&&Object.defineProperty(t,n,{get:()=>e[n]})})};function Qr(e){return(t,n)=>{let r=t.constructor;Object.prototype.hasOwnProperty.call(r,`metadata`)||(r.metadata={});let i=r.metadata;i.slots||={};let a=i.slots;if(e&&e.default&&a.default)throw Error(`Only one slot can be the default slot.`);let o=e&&e.default?`default`:n;e||={type:HTMLElement},e.type||=HTMLElement,a[o]||(a[o]=e),e.default&&(delete a.default.default,a.default.propertyName=n),r.metadata.managedSlots=!0}}var L=e=>(t,n)=>{let r=t.constructor;Object.prototype.hasOwnProperty.call(r,`metadata`)||(r.metadata={});let i=r.metadata;i.properties||={};let a=i.properties;a[n]||(a[n]=e??{})},R={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CONTROL:17,ALT:18,BREAK:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,PRINT:44,INSERT:45,DELETE:46,DIGIT_0:48,DIGIT_1:49,DIGIT_2:50,DIGIT_3:51,DIGIT_4:52,DIGIT_5:53,DIGIT_6:54,DIGIT_7:55,DIGIT_8:56,DIGIT_9:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,WINDOWS:91,CONTEXT_MENU:93,TURN_OFF:94,SLEEP:95,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_ASTERISK:106,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_COMMA:110,NUMPAD_SLASH:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUM_LOCK:144,SCROLL_LOCK:145,COLON:186,PLUS:187,COMMA:188,SLASH:189,DOT:190,PIPE:191,SEMICOLON:192,MINUS:219,GREAT_ACCENT:220,EQUALS:221,SINGLE_QUOTE:222,BACKSLASH:226},$r=e=>(e.key?e.key===`Enter`:e.keyCode===R.ENTER)&&!z(e),ei=e=>(e.key?e.key===`Enter`:e.keyCode===R.ENTER)&&B(e,!0,!1,!1),ti=e=>(e.key?e.key===`Enter`:e.keyCode===R.ENTER)&&B(e,!1,!0,!1),ni=e=>(e.key?e.key===`Enter`:e.keyCode===R.ENTER)&&B(e,!1,!1,!0),ri=e=>B(e,!0,!1,!1),ii=e=>(e.key?e.key===`Spacebar`||e.key===` `:e.keyCode===R.SPACE)&&!z(e),ai=e=>(e.key?e.key===`Spacebar`||e.key===` `:e.keyCode===R.SPACE)&&B(e,!1,!1,!0),oi=e=>(e.key?e.key===`ArrowLeft`||e.key===`Left`:e.keyCode===R.ARROW_LEFT)&&!z(e),si=e=>(e.key?e.key===`ArrowRight`||e.key===`Right`:e.keyCode===R.ARROW_RIGHT)&&!z(e),ci=e=>(e.key?e.key===`ArrowUp`||e.key===`Up`:e.keyCode===R.ARROW_UP)&&!z(e),li=e=>(e.key?e.key===`ArrowDown`||e.key===`Down`:e.keyCode===R.ARROW_DOWN)&&!z(e),ui=e=>(e.key?e.key===`ArrowUp`||e.key===`Up`:e.keyCode===R.ARROW_UP)&&B(e,!1,!1,!0),di=e=>(e.key?e.key===`ArrowDown`||e.key===`Down`:e.keyCode===R.ARROW_DOWN)&&B(e,!1,!1,!0),fi=e=>(e.key?e.key===`ArrowUp`||e.key===`Up`:e.keyCode===R.ARROW_UP)&&B(e,!1,!0,!1),pi=e=>(e.key?e.key===`ArrowDown`||e.key===`Down`:e.keyCode===R.ARROW_DOWN)&&B(e,!1,!0,!1),mi=e=>(e.key?e.key===`ArrowLeft`||e.key===`Left`:e.keyCode===R.ARROW_LEFT)&&B(e,!1,!1,!0),hi=e=>(e.key?e.key===`ArrowRight`||e.key===`Right`:e.keyCode===R.ARROW_RIGHT)&&B(e,!1,!1,!0),gi=e=>(e.key?e.key===`Home`:e.keyCode===R.HOME)&&!z(e),_i=e=>(e.key?e.key===`End`:e.keyCode===R.END)&&!z(e),vi=e=>(e.key?e.key===`Escape`||e.key===`Esc`:e.keyCode===R.ESCAPE)&&!z(e),yi=e=>(e.key?e.key===`Tab`:e.keyCode===R.TAB)&&!z(e),bi=e=>(e.key?e.key===`Tab`:e.keyCode===R.TAB)&&B(e,!1,!1,!0),xi=e=>(e.key?e.key===`Backspace`:e.keyCode===R.BACKSPACE)&&!z(e),Si=e=>(e.key?e.key===`Delete`:e.keyCode===R.DELETE)&&!z(e),Ci=e=>(e.key?e.key===`PageUp`:e.keyCode===R.PAGE_UP)&&!z(e),wi=e=>(e.key?e.key===`PageDown`:e.keyCode===R.PAGE_DOWN)&&!z(e),Ti=e=>(e.key?e.key===`+`:e.keyCode===R.PLUS)||e.keyCode===R.NUMPAD_PLUS&&!z(e),Ei=e=>(e.key?e.key===`-`:e.keyCode===R.MINUS)||e.keyCode===R.NUMPAD_MINUS&&!z(e),Di=e=>e.key?ki(e)||Mi(e):e.keyCode===R.F4&&!z(e)||e.keyCode===R.ARROW_DOWN&&B(e,!1,!0,!1),Oi=e=>e.key===`F2`&&!z(e),ki=e=>e.key===`F4`&&!z(e),Ai=e=>(e.key?e.key===`F7`:e.keyCode===R.F7)&&!z(e),ji=e=>(e.key?e.key===`F8`:e.keyCode===R.F8)&&B(e,!0,!0,!1),Mi=e=>(e.key===`ArrowDown`||e.key===`Down`||e.key===`ArrowUp`||e.key===`Up`)&&B(e,!1,!0,!1),Ni=e=>e.key===`Shift`||e.keyCode===R.SHIFT,z=e=>e.shiftKey||e.altKey||Pi(e),Pi=e=>!!(e.metaKey||e.ctrlKey),B=(e,t,n,r)=>e.shiftKey===r&&e.altKey===n&&Pi(e)===t,Fi=e=>(t,n)=>{t.metadata.i18n||(t.metadata.i18n={}),Object.defineProperty(t,n,{get(){return t.i18nBundles[e]},set(){}}),t.metadata.i18n[n]={bundleName:e,target:t}};function Ii(e){return e.toLowerCase()}var Li=(e,t={})=>n=>{Object.prototype.hasOwnProperty.call(n,`metadata`)||(n.metadata={});let r=n.metadata;r.events||={};let i=r.events;i[e]||(t.bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,i[e]=t)},Ri,V,zi,H,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji={},Yi=[],Xi=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Zi=Array.isArray;function U(e,t){for(var n in t)e[n]=t[n];return e}function Qi(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function $i(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?Ri.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return ea(e,o,r,i,null)}function ea(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++zi,__i:-1,__u:0};return i==null&&V.vnode!=null&&V.vnode(a),a}function ta(e){return e.children}function na(e,t){this.props=e,this.context=t}function ra(e,t){if(t==null)return e.__?ra(e.__,e.__i+1):null;for(var n;tt&&H.sort(Hi));oa.__r=0}function sa(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_=r&&r.__k||Yi,v=t.length;for(c=ca(n,t,_,c),d=0;d0?ea(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,o=null,(c=a.__i=ua(a,n,s,d))!==-1&&(d--,(o=n[c])&&(o.__u|=2)),o==null||o.__v===null?(c==-1&&f--,typeof a.type!=`function`&&(a.__u|=4)):c!==s&&(c==s-1?f--:c==s+1?f++:(c>s?f--:f++,a.__u|=4))):a=e.__k[i]=null;if(d)for(i=0;i+(c!=null&&!(2&c.__u)))for(;o>=0||s=0){if((c=t[o])&&!(2&c.__u)&&i==c.key&&a===c.type)return o;o--}if(s{let n=Ta.get(e);n||(n=Sa(e),Ta.set(e,n));let r=e.render(),i=wa(n.Provider,{value:e,children:r});e.__shouldHydrate?(e.shadowRoot?.querySelectorAll(`style`).forEach(e=>e.remove()),xa(i,t),e.__shouldHydrate=!1):ba(i,t)},Da=new Map,Oa=new Map,ka=new Map,Aa=e=>{if(!Da.has(e)){let t=Ma(e.split(`-`));Da.set(e,t)}return Da.get(e)},ja=e=>{if(!Oa.has(e)){let t=e.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase();Oa.set(e,t)}return Oa.get(e)},Ma=e=>e.map((e,t)=>t===0?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(``),Na=e=>{let t=ka.get(e);if(t)return t;let n=Aa(e),r=n.charAt(0).toUpperCase()+n.slice(1);return ka.set(e,r),r},Pa=e=>{if(!(e instanceof HTMLElement))return`default`;let t=e.getAttribute(`slot`);if(t){let e=t.match(/^(.+?)-\d+$/);return e?e[1]:t}return`default`},Fa=e=>e instanceof HTMLSlotElement?e.assignedNodes({flatten:!0}).filter(e=>e instanceof HTMLElement):[e],Ia=e=>e.reduce((e,t)=>e.concat(Fa(t)),[]),La=class{constructor(e){this.metadata=e}getInitialState(){if(Object.prototype.hasOwnProperty.call(this,`_initialState`))return this._initialState;let e={};if(this.slotsAreManaged()){let t=this.getSlots();for(let[n,r]of Object.entries(t)){let t=r.propertyName||n;e[t]=[],e[Aa(t)]=e[t]}}return this._initialState=e,e}static validateSlotValue(e,t){return Ra(e,t)}getPureTag(){return this.metadata.tag||``}getTag(){let e=this.metadata.tag;if(!e)return``;let t=Le(e);return t?`${e}-${t}`:e}hasAttribute(e){return!this.getProperties()[e].noAttribute}getPropertiesList(){return Object.keys(this.getProperties())}getAttributesList(){return this.getPropertiesList().filter(this.hasAttribute.bind(this)).map(ja)}canSlotText(){return this.getSlots().default?.type===Node}hasSlots(){return!!Object.entries(this.getSlots()).length}hasIndividualSlots(){return this.slotsAreManaged()&&Object.values(this.getSlots()).some(e=>e.individualSlots)}slotsAreManaged(){return!!this.metadata.managedSlots}supportsF6FastNavigation(){return!!this.metadata.fastNavigation}getProperties(){return this.metadata.properties||(this.metadata.properties={}),this.metadata.properties}getEvents(){return this.metadata.events||(this.metadata.events={}),this.metadata.events}getSlots(){return this.metadata.slots||(this.metadata.slots={}),this.metadata.slots}isLanguageAware(){return!!this.metadata.languageAware}isThemeAware(){return!!this.metadata.themeAware}needsCLDR(){return!!this.metadata.cldr}getShadowRootOptions(){return this.metadata.shadowRootOptions||{}}isFormAssociated(){return!!this.metadata.formAssociated}shouldInvalidateOnChildChange(e,t,n){let r=this.getSlots()[e].invalidateOnChildChange;if(r===void 0)return!1;if(typeof r==`boolean`)return r;if(typeof r==`object`){if(t===`property`){if(r.properties===void 0)return!1;if(typeof r.properties==`boolean`)return r.properties;if(Array.isArray(r.properties))return r.properties.includes(n);throw Error(`Wrong format for invalidateOnChildChange.properties: boolean or array is expected`)}if(t===`slot`){if(r.slots===void 0)return!1;if(typeof r.slots==`boolean`)return r.slots;if(Array.isArray(r.slots))return r.slots.includes(n);throw Error(`Wrong format for invalidateOnChildChange.slots: boolean or array is expected`)}}throw Error(`Wrong format for invalidateOnChildChange: boolean or object is expected`)}getI18n(){return this.metadata.i18n||(this.metadata.i18n={}),this.metadata.i18n}},Ra=(e,t)=>(e&&Fa(e).forEach(e=>{if(!(e instanceof t.type))throw Error(`The element is not of type ${t.type.toString()}`)}),e),za=()=>A(`CustomStyle.eventProvider`,new b),Ba=`CustomCSSChange`,Va=e=>{za().attachEvent(Ba,e)},Ha=()=>A(`CustomStyle.customCSSFor`,{}),Ua;Va(e=>{Ua||Ur({tag:e})});var Wa=e=>{let t=Ha();return t[e]?t[e].join(``):``},Ga=e=>Array.isArray(e)?e.filter(e=>!!e).flat(10).join(` `):e,Ka=new Map;Va(e=>{Ka.delete(`${e}_normal`)});var qa=e=>{let t=e.getMetadata().getTag(),n=`${t}_normal`,r=d(`OpenUI5Enablement`);if(!Ka.has(n)){let i=``;r&&(i=Ga(r.getBusyIndicatorStyles()));let a=Wa(t)||``,o=`${Ga(e.styles)} ${a} ${i}`;Ka.set(n,o)}return Ka.get(n)},Ja=new Map;Va(e=>{Ja.delete(`${e}_normal`)});var Ya=e=>{let t=`${e.getMetadata().getTag()}_normal`;if(!Ja.has(t)){let n=qa(e),r=new CSSStyleSheet;r.replaceSync(n),Ja.set(t,[r])}return Ja.get(t)},Xa=e=>{let t=e.constructor,n=e.shadowRoot;if(!n){console.warn(`There is no shadow root to update`);return}n.adoptedStyleSheets=[Zt(),...Ya(t)],t.renderer(e,n)},Za=[],Qa=e=>Za.some(t=>e.startsWith(t)),$a=new WeakMap,eo=(e,t,n)=>{let r=new MutationObserver(t);$a.set(e,r),r.observe(e,n)},to=e=>{let t=$a.get(e);t&&(t.disconnect(),$a.delete(e))},no=e=>e.matches(`:dir(rtl)`)?`rtl`:`ltr`,ro=[`disabled`,`title`,`hidden`,`role`,`draggable`],io=e=>ro.includes(e)||e.startsWith(`aria`)?!0:![HTMLElement,Element,Node].some(t=>t.prototype.hasOwnProperty(e)),ao=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;ne.call(t),so=e=>{let t=e.getAttribute(`form`);if(t){let e=document.getElementById(t);return e instanceof HTMLFormElement?e:null}return e._internals?.form??null},co=e=>{mo(e)&&lo(e)},lo=e=>{if(e._internals?.form){if(uo(e),!e.name){e._internals?.setFormValue(null);return}e._internals.setFormValue(e.formFormattedValue)}},uo=async e=>{if(!(!e.isUI5Element||!e._internals?.form))if(e._internals.setValidity({customError:!0},` `),await e.definePromise,e.formValidity&&Object.keys(e.formValidity).some(e=>e)){let t=await e.formElementAnchor?.();e._internals.setValidity(e.formValidity,e.formValidityMessage,t)}else e._internals.setValidity({})},fo=async e=>{let t=so(e);if(!t)return;let n=[...t.elements];await Promise.all(n.map(e=>mo(e)?uo(e):Promise.resolve())),t.requestSubmit()},po=e=>{so(e)?.reset()},mo=e=>`formFormattedValue`in e&&`name`in e,ho=typeof document>`u`,go=()=>{if(ho)return g;let e=navigator.languages;return e&&e[0]||navigator.language||g},_o=/^((?:[A-Z]{2,3}(?:-[A-Z]{3}){0,3})|[A-Z]{4}|[A-Z]{5,8})(?:-([A-Z]{4}))?(?:-([A-Z]{2}|[0-9]{3}))?((?:-[0-9A-Z]{5,8}|-[0-9][0-9A-Z]{3})*)((?:-[0-9A-WYZ](?:-[0-9A-Z]{2,8})+)*)(?:-(X(?:-[0-9A-Z]{1,8})+))?$/i,vo=class{constructor(e){let t=_o.exec(e.replace(/_/g,`-`));if(t===null)throw Error(`The given language ${e} does not adhere to BCP-47.`);this.sLocaleId=e,this.sLanguage=t[1]||g,this.sScript=t[2]||``,this.sRegion=t[3]||``,this.sVariant=t[4]&&t[4].slice(1)||null,this.sExtension=t[5]&&t[5].slice(1)||null,this.sPrivateUse=t[6]||null,this.sLanguage&&=this.sLanguage.toLowerCase(),this.sScript&&=this.sScript.toLowerCase().replace(/^[a-z]/,e=>e.toUpperCase()),this.sRegion&&=this.sRegion.toUpperCase()}getLanguage(){return this.sLanguage}getScript(){return this.sScript}getRegion(){return this.sRegion}getVariant(){return this.sVariant}getVariantSubtags(){return this.sVariant?this.sVariant.split(`-`):[]}getExtension(){return this.sExtension}getExtensionSubtags(){return this.sExtension?this.sExtension.slice(2).split(`-`):[]}getPrivateUse(){return this.sPrivateUse}getPrivateUseSubtags(){return this.sPrivateUse?this.sPrivateUse.slice(2).split(`-`):[]}hasPrivateUseSubtag(e){return this.getPrivateUseSubtags().indexOf(e)>=0}toString(){let e=[this.sLanguage];return this.sScript&&e.push(this.sScript),this.sRegion&&e.push(this.sRegion),this.sVariant&&e.push(this.sVariant),this.sExtension&&e.push(this.sExtension),this.sPrivateUse&&e.push(this.sPrivateUse),e.join(`-`)}},yo=new Map,bo=e=>(yo.has(e)||yo.set(e,new vo(e)),yo.get(e)),xo=e=>{try{if(e&&typeof e==`string`)return bo(e)}catch{}return new vo(_)},So=e=>{if(e)return xo(e);let t=Gn();return t?bo(t):xo(go())},Co=/^((?:[A-Z]{2,3}(?:-[A-Z]{3}){0,3})|[A-Z]{4}|[A-Z]{5,8})(?:-([A-Z]{4}))?(?:-([A-Z]{2}|[0-9]{3}))?((?:-[0-9A-Z]{5,8}|-[0-9][0-9A-Z]{3})*)((?:-[0-9A-WYZ](?:-[0-9A-Z]{2,8})+)*)(?:-(X(?:-[0-9A-Z]{1,8})+))?$/i,wo=/(?:^|-)(saptrc|sappsd)(?:-|$)/i,To={he:`iw`,yi:`ji`,nb:`no`,sr:`sh`},Eo=e=>{let t;if(!e)return _;if(typeof e==`string`&&(t=Co.exec(e.replace(/_/g,`-`)))){let e=t[1].toLowerCase(),n=t[3]?t[3].toUpperCase():void 0,r=t[2]?t[2].toLowerCase():void 0,i=t[4]?t[4].slice(1):void 0,a=t[6];return e=To[e]||e,a&&(t=wo.exec(a))||i&&(t=wo.exec(i))?`en_US_${t[1].toLowerCase()}`:(e===`zh`&&!n&&(r===`hans`?n=`CN`:r===`hant`&&(n=`TW`)),e+(n?`_`+n+(i?`_`+i.replace(`-`,`_`):``):``))}return _},Do={zh_HK:`zh_TW`,in:`id`},Oo=e=>{if(!e)return _;if(Do[e])return Do[e];let t=e.lastIndexOf(`_`);return t>=0?e.slice(0,t):e===_?``:_},ko=new Set,Ao=new Set,jo=new Map,Mo=new Map,No=new Map,Po=(e,t,n)=>{let r=`${e}/${t}`;No.set(r,n)},Fo=(e,t)=>{jo.set(e,t)},Io=e=>jo.get(e),Lo=(e,t)=>{let n=`${e}/${t}`;return No.has(n)},Ro=(e,t)=>{let n=`${e}/${t}`,r=No.get(n);return r&&!Mo.get(n)&&Mo.set(n,r(t)),Mo.get(n)},zo=e=>{ko.has(e)||(console.warn(`[${e}]: Message bundle assets are not configured. Falling back to English texts.`,` Add \`import "${e}/dist/Assets.js"\` in your bundle and make sure your build tool supports dynamic imports and JSON imports. See section "Assets" in the documentation for more information.`),ko.add(e))},Bo=(e,t)=>t!==g&&!Lo(e,t),Vo=async e=>{let t=So().getLanguage(),n=So().getRegion(),r=So().getVariant(),i=t+(n?`-${n}`:``)+(r?`-${r}`:``);if(Bo(e,i))for(i=Eo(i);Bo(e,i);)i=Oo(i);let a=Kn();if(i===g&&!a){Fo(e,null);return}if(!Lo(e,i)){zo(e);return}try{Fo(e,await Ro(e,i))}catch(e){let t=e;Ao.has(t.message)||(Ao.add(t.message),console.error(t.message))}};tt(e=>{let t=[...jo.keys()];return Promise.all(t.map(Vo))});var Ho=/('')|'([^']+(?:''[^']*)*)(?:'|$)|\{([0-9]+(?:\s*,[^{}]*)?)\}|[{}]/g,Uo=(e,t)=>(t||=[],e.replace(Ho,(e,n,r,i,a)=>{if(n)return`'`;if(r)return r.replace(/''/g,`'`);if(i)return String(t[typeof i==`string`?parseInt(i):i]);throw Error(`[i18n]: pattern syntax error at pos ${a}`)})),Wo=new Map,Go,Ko=class{constructor(e){this.packageName=e}getText(e,...t){if(typeof e==`string`&&(e={key:e,defaultText:e}),!e||!e.key)return``;let n=Io(this.packageName);return n&&!n[e.key]&&console.warn(`Key ${e.key} not found in the i18n bundle, the default text will be used`),Uo(n&&n[e.key]?n[e.key]:e.defaultText||e.key,t)}},qo=e=>{if(Wo.has(e))return Wo.get(e);let t=new Ko(e);return Wo.set(e,t),t},Jo=async e=>Go?Go(e):(await Vo(e),qo(e)),Yo=new Map,Xo=new Map,Zo=new Map,Qo=new Set,$o=!1,es={iw:`he`,ji:`yi`,in:`id`},ts=e=>{$o||=(console.warn(`[LocaleData] Supported locale "${e}" not configured, import the "Assets.js" module from the webcomponents package you are using.`),!0)},ns=(e,t,n)=>{e=e&&es[e]||e,e===`no`&&(e=`nb`),e===`zh`&&!t&&(n===`Hans`?t=`CN`:n===`Hant`&&(t=`TW`)),(e===`sh`||e===`sr`&&n===`Latn`)&&(e=`sr`,t=`Latn`);let r=`${e}_${t}`;return v.includes(r)?Xo.has(r)?r:(ts(r),_):(r=e,v.includes(r)?Xo.has(r)?r:(ts(r),_):_)},rs=(e,t)=>{Yo.set(e,t)},is=e=>{if(!Zo.get(e)){let t=Xo.get(e);if(!t)throw Error(`CLDR data for locale ${e} is not loaded!`);Zo.set(e,t(e))}return Zo.get(e)},as=async(e,t,n)=>{let r=ns(e,t,n),i=d(`OpenUI5Support`);if(i){let e=i.getLocaleDataObject();if(e){rs(r,e);return}}try{rs(r,await is(r))}catch(e){let t=e;Qo.has(t.message)||(Qo.add(t.message),console.error(t.message))}},os=(e,t)=>{Xo.set(e,t)};os(`en`,async()=>(console.warn(`[LocaleData] Falling back to loading "en" locale data from CDN.`,`For production usage, please configure locale data loading via the "Assets.js" module of the webcomponents package you are using.`),(await fetch(`https://cdn.jsdelivr.net/npm/@openui5/sap.ui.core@1.120.17/src/sap/ui/core/cldr/en.json`)).json())),tt(()=>{let e=So();return as(e.getLanguage(),e.getRegion(),e.getScript())});function ss(e){return t=>t!=null&&e in t&&t[e]===!0}var cs=0,ls=new Map,us=new Map,ds={fromAttribute(e,t){if(t===Boolean)return e!==null;if(t===Number)return e===null?void 0:parseFloat(e);if(t===Object||t===Array)try{return JSON.parse(e)}catch{return e}return e},toAttribute(e,t){return t===Boolean?e?``:null:t===Object||t===Array||e==null?null:String(e)}};function fs(e){this._suppressInvalidation||this.constructor.getMetadata().isLanguageAware()&&Wn()||(this.onInvalidation(e),this._changedState.push(e),Nr(this),this._invalidationEventProvider.fireEvent(`invalidate`,{...e,target:this}))}function ps(e,t){do{let n=Object.getOwnPropertyDescriptor(e,t);if(n)return n;e=Object.getPrototypeOf(e)}while(e&&e!==HTMLElement.prototype)}var ms=class e extends HTMLElement{constructor(){super(),this.__shouldHydrate=!1,this._rendered=!1;let e=this.constructor;this._changedState=[],this._suppressInvalidation=!0,this._inDOM=!1,this._fullyConnected=!1,this._childChangeListeners=new Map,this._slotChangeListeners=new Map,this._invalidationEventProvider=new b,this._componentStateFinalizedEventProvider=new b;let t;this._domRefReadyPromise=new Promise(e=>{t=e}),this._domRefReadyPromise._deferredResolve=t,this._doNotSyncAttributes=new Set,this._slotsAssignedNodes=new WeakMap,this._state={...e.getMetadata().getInitialState()},this.initializedProperties=new Map,this.constructor.getMetadata().getPropertiesList().forEach(e=>{if(this.hasOwnProperty(e)){let t=this[e];this.initializedProperties.set(e,t)}}),this._internals=this.attachInternals(),this._initShadowRoot()}_initShadowRoot(){let e=this.constructor;e._needsShadowDOM()&&(this.shadowRoot?this.__shouldHydrate=!0:this.attachShadow({mode:`open`,...e.getMetadata().getShadowRootOptions()}),e.getMetadata().slotsAreManaged()&&this.shadowRoot.addEventListener(`slotchange`,this._onShadowRootSlotChange.bind(this)))}_onShadowRootSlotChange(e){e.target?.getRootNode()===this.shadowRoot&&this._processChildren()}get _id(){return this.__id||=`ui5wc_${++cs}`,this.__id}render(){let e=this.constructor.template;return oo(e,this)}async connectedCallback(){let e=this.constructor;Pr(this),this.setAttribute(e.getMetadata().getPureTag(),``),e.getMetadata().supportsF6FastNavigation()&&!this.hasAttribute(`data-sap-ui-fastnavgroup`)&&this.setAttribute(`data-sap-ui-fastnavgroup`,`true`);let t=e.getMetadata().slotsAreManaged();this._inDOM=!0,t&&(this._startObservingDOMChildren(),await this._processChildren()),e.asyncFinished||await e._definePromise,!(e.getMetadata().isLanguageAware()&&Wn())&&this._inDOM&&(Ir(this),this._domRefReadyPromise._deferredResolve(),this._fullyConnected=!0,this.onEnterDOM(),this.hasAttribute(`autofocus`)&&requestAnimationFrame(()=>{this.focus()}))}get definePromise(){let e=this.constructor;return!e.asyncFinished&&e._definePromise?e._definePromise:Promise.resolve()}disconnectedCallback(){let e=this.constructor.getMetadata().slotsAreManaged();this._inDOM=!1,e&&this._stopObservingDOMChildren(),this._fullyConnected&&=(this.onExitDOM(),!1),this._domRefReadyPromise._deferredResolve(),Lr(this),Fr(this)}onBeforeRendering(){}onAfterRendering(){}onEnterDOM(){}onExitDOM(){}_startObservingDOMChildren(){let e=this.constructor.getMetadata();if(!e.hasSlots())return;let t=e.canSlotText(),n={childList:!0,subtree:t,characterData:t};eo(this,this._processChildren.bind(this),n)}_stopObservingDOMChildren(){to(this)}async _processChildren(){this.constructor.getMetadata().hasSlots()&&await this._updateSlots()}async _updateSlots(){let e=this.constructor,t=e.getMetadata().getSlots(),n=e.getMetadata().canSlotText(),r=Array.from(n?this.childNodes:this.children),i=new Map,a=new Map;for(let[e,n]of Object.entries(t)){let t=n.propertyName||e;a.set(t,e),i.set(t,[...this._state[t]]),this._clearSlot(e,n)}let o=new Map,s=new Map;r.forEach((e,n)=>{let r=Pa(e),i=t[r];if(i===void 0){if(r!=="default"){let n=Object.keys(t).join(`, `);console.warn(`Unknown slotName: ${r}, ignoring`,e,`Valid values are: ${n}`)}return}let a=i.propertyName||r;s.has(a)?s.get(a).push({child:e,idx:n}):s.set(a,[{child:e,idx:n}])}),s.forEach((e,t)=>{this._state[t]=e.sort((e,t)=>e.idx-t.idx).map(e=>e.child),this._state[Aa(t)]=this._state[t]});let c=r.map(async n=>{let r=Pa(n),i=t[r];if(i!==void 0){if(i.individualSlots){let e=(o.get(r)||0)+1;o.set(r,e),n._individualSlot=`${r}-${e}`}if(n instanceof HTMLElement){let e=n.localName;if(e.includes(`-`)&&!Qa(e)){if(!customElements.get(e)){let t=customElements.whenDefined(e),n=ls.get(e);n||(n=new Promise(e=>setTimeout(e,1e3)),ls.set(e,n)),await Promise.race([t,n])}customElements.upgrade(n)}}if(n=e.getMetadata().constructor.validateSlotValue(n,i),hs(n)&&i.invalidateOnChildChange){let e=this._getChildChangeListener(r);n.attachInvalidate.call(n,e)}n instanceof HTMLSlotElement&&this._attachSlotChange(n,r,!!i.invalidateOnChildChange)}});await Promise.all(c);let l=!1;for(let[n,r]of Object.entries(t)){let t=r.propertyName||n;ao(i.get(t),this._state[t])||(fs.call(this,{type:`slot`,name:a.get(t),reason:`children`}),l=!0,e.getMetadata().isFormAssociated()&&lo(this))}l||fs.call(this,{type:`slot`,name:`default`,reason:`textcontent`})}_clearSlot(e,t){let n=t.propertyName||e;this._state[n].forEach(t=>{if(hs(t)){let n=this._getChildChangeListener(e);t.detachInvalidate.call(t,n)}t instanceof HTMLSlotElement&&this._detachSlotChange(t,e)}),this._state[n]=[],this._state[Aa(n)]=this._state[n]}attachInvalidate(e){this._invalidationEventProvider.attachEvent(`invalidate`,e)}detachInvalidate(e){this._invalidationEventProvider.detachEvent(`invalidate`,e)}_onChildChange(e,t){this.constructor.getMetadata().shouldInvalidateOnChildChange(e,t.type,t.name)&&fs.call(this,{type:`slot`,name:e,reason:`childchange`,child:t.target})}attributeChangedCallback(e,t,n){let r;if(this._doNotSyncAttributes.has(e))return;let i=this.constructor.getMetadata().getProperties(),a=Aa(e.replace(/^ui5-/,``));if(i.hasOwnProperty(a)){let e=i[a];r=(e.converter??ds).fromAttribute(n,e.type),this[a]=r}}formAssociatedCallback(){this.constructor.getMetadata().isFormAssociated()&&co(this)}static get formAssociated(){return this.getMetadata().isFormAssociated()}_updateAttribute(e,t){let n=this.constructor;if(!n.getMetadata().hasAttribute(e))return;let r=n.getMetadata().getProperties()[e];if(r.type===Object||r.type===Array)return;let i=ja(e),a=(r.converter||ds).toAttribute(t,r.type);this._doNotSyncAttributes.add(i),a==null?this.removeAttribute(i):this.setAttribute(i,a),this._doNotSyncAttributes.delete(i)}_getChildChangeListener(e){return this._childChangeListeners.has(e)||this._childChangeListeners.set(e,this._onChildChange.bind(this,e)),this._childChangeListeners.get(e)}_getSlotChangeListener(e){return this._slotChangeListeners.has(e)||this._slotChangeListeners.set(e,this._onSlotChange.bind(this,e)),this._slotChangeListeners.get(e)}_attachSlotChange(e,t,n){let r=this._getSlotChangeListener(t);e.addEventListener(`slotchange`,i=>{if(r.call(e,i),n){let n=this._slotsAssignedNodes.get(e);n&&n.forEach(e=>{if(hs(e)){let n=this._getChildChangeListener(t);e.detachInvalidate.call(e,n)}});let r=Ia([e]);this._slotsAssignedNodes.set(e,r),r.forEach(e=>{if(hs(e)){let n=this._getChildChangeListener(t);e.attachInvalidate.call(e,n)}})}})}_detachSlotChange(e,t){e.removeEventListener(`slotchange`,this._getSlotChangeListener(t))}_onSlotChange(e){fs.call(this,{type:`slot`,name:e,reason:`slotchange`})}onInvalidation(e){}updateAttributes(){let e=this.constructor.getMetadata().getProperties();for(let[t,n]of Object.entries(e))this._updateAttribute(t,this[t])}_render(){let e=this.constructor,t=e.getMetadata().hasIndividualSlots();this.initializedProperties.size>0&&(Array.from(this.initializedProperties.entries()).forEach(([e,t])=>{delete this[e],this[e]=t}),this.initializedProperties.clear()),this._suppressInvalidation=!0;try{this.onBeforeRendering(),this._rendered||this.updateAttributes(),this._componentStateFinalizedEventProvider.fireEvent(`componentStateFinalized`)}finally{this._suppressInvalidation=!1}this._changedState=[],e._needsShadowDOM()&&Xa(this),this._rendered=!0,t&&this._assignIndividualSlotsToChildren(),this.onAfterRendering()}_assignIndividualSlotsToChildren(){Array.from(this.children).forEach(e=>{e._individualSlot&&e.setAttribute(`slot`,e._individualSlot)})}_waitForDomRef(){return this._domRefReadyPromise}getDomRef(){if(typeof this._getRealDomRef==`function`)return this._getRealDomRef();if(!(!this.shadowRoot||this.shadowRoot.children.length===0))return this.shadowRoot.children[0]}getFocusDomRef(){let e=this.getDomRef();if(e)return e.querySelector(`[data-sap-focus-ref]`)||e}async getFocusDomRefAsync(){return await this._waitForDomRef(),this.getFocusDomRef()}async focus(e){await this._waitForDomRef();let t=this.getFocusDomRef();t===this||!this.isConnected?HTMLElement.prototype.focus.call(this,e):t&&typeof t.focus==`function`&&t.focus(e)}fireEvent(e,t,n=!1,r=!0){let i=this._fireEvent(e,t,n,r),a=Na(e);return a===e?i:i&&this._fireEvent(a,t,n,r)}fireDecoratorEvent(e,t){let n=this.getEventData(e),r=n?n.cancelable:!1,i=n?n.bubbles:!1,a=this._fireEvent(e,t,r,i),o=Na(e);return o===e?a:a&&this._fireEvent(o,t,r,i)}_fireEvent(e,t,n=!1,r=!0){let i=new CustomEvent(`ui5-${e}`,{detail:t,composed:!1,bubbles:r,cancelable:n}),a=this.dispatchEvent(i);if(Qn(e))return a;let o=new CustomEvent(e,{detail:t,composed:!1,bubbles:r,cancelable:n});return this.dispatchEvent(o)&&a}getEventData(e){return this.constructor.getMetadata().getEvents()[e]}getSlottedNodes(e){return Ia(this[e])}attachComponentStateFinalized(e){this._componentStateFinalizedEventProvider.attachEvent(`componentStateFinalized`,e)}detachComponentStateFinalized(e){this._componentStateFinalizedEventProvider.detachEvent(`componentStateFinalized`,e)}get effectiveDir(){return wr(this.constructor),no(this)}get isUI5Element(){return!0}get isUI5AbstractElement(){return!this.constructor._needsShadowDOM()}get classes(){return{}}get accessibilityInfo(){}static get observedAttributes(){return this.getMetadata().getAttributesList()}static get tagsToScope(){let e=this.getMetadata().getPureTag(),t=this.getUniqueDependencies().map(e=>e.getMetadata().getPureTag()).filter(Ie);return Ie(e)&&t.push(e),t}static _needsShadowDOM(){return!!this.template||Object.prototype.hasOwnProperty.call(this.prototype,`render`)}static _generateAccessors(){let e=this.prototype,t=this.getMetadata().slotsAreManaged(),n=this.getMetadata().getProperties();for(let[t,r]of Object.entries(n)){io(t)||console.warn(`"${t}" is not a valid property name. Use a name that does not collide with DOM APIs`);let n=ps(e,t),r;n?.set&&(r=n.set);let i;n?.get&&(i=n.get),Object.defineProperty(e,t,{get(){return i?i.call(this):this._state[t]},set(e){let n=this.constructor,a=i?i.call(this):this._state[t];if(a!==e){if(r?r.call(this,e):this._state[t]=e,fs.call(this,{type:`property`,name:t,newValue:e,oldValue:a}),this._rendered){let e=i?i.call(this):this._state[t];this._updateAttribute(t,e)}n.getMetadata().isFormAssociated()&&lo(this)}}})}if(t){let t=this.getMetadata().getSlots();for(let[n,r]of Object.entries(t)){io(n)||console.warn(`"${n}" is not a valid property name. Use a name that does not collide with DOM APIs`);let t=r.propertyName||n,i={get(){return this._state[t]===void 0?[]:this._state[t]},set(){throw Error(`Cannot set slot content directly, use the DOM APIs (appendChild, removeChild, etc...)`)}};Object.defineProperty(e,t,i),t!==Aa(t)&&Object.defineProperty(e,Aa(t),i)}}}static{this.metadata={}}static{this.styles=``}static get dependencies(){return[]}static cacheUniqueDependencies(){let e=this.dependencies.filter((e,t,n)=>n.indexOf(e)===t);us.set(this,e)}static getUniqueDependencies(){return us.has(this)||this.cacheUniqueDependencies(),us.get(this)||[]}static async onDefine(){return Promise.resolve()}static fetchI18nBundles(){return Promise.all(Object.entries(this.getMetadata().getI18n()).map(e=>{let{bundleName:t}=e[1];return Jo(t)}))}static fetchCLDR(){return this.getMetadata().needsCLDR()?as(So().getLanguage(),So().getRegion(),So().getScript()):Promise.resolve()}static{this.i18nBundleStorage={}}static get i18nBundles(){return this.i18nBundleStorage}static define(){let e=async()=>{await Mn();let[e]=await Promise.all([this.fetchI18nBundles(),this.fetchCLDR(),this.onDefine()]);Object.entries(this.getMetadata().getI18n()).forEach((t,n)=>{let r=t[1].bundleName;this.i18nBundleStorage[r]=e[n]}),this.asyncFinished=!0};this._definePromise=e();let t=this.getMetadata().getTag(),n=yr(t),r=customElements.get(t);return r&&!n?xr(t):r||(this._generateAccessors(),vr(t),customElements.define(t,this)),this}static getMetadata(){if(this.hasOwnProperty(`_metadata`))return this._metadata;let t=[this.metadata],n=this;for(;n!==e;)n=Object.getPrototypeOf(n),t.unshift(n.metadata);let r=c({},...t);return this._metadata=new La(r),this._metadata}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}},hs=ss(`isUI5Element`),gs=new WeakMap,_s=new WeakMap,vs={attributes:!0,childList:!0,characterData:!0,subtree:!0},ys=e=>{let t=e;return t.accessibleNameRef?bs(e):t.accessibleName?t.accessibleName:void 0},bs=e=>{let t=e.accessibleNameRef?.split(` `)??[],n=``;return t.forEach((r,i)=>{let a=Cs(e,r),o=`${a&&a.textContent?a.textContent:``}`;o&&(n+=o,i{let t=new Set;Ss(e).forEach(e=>{t.add(e)});let n=[e.accessibleNameRef,e.accessibleDescriptionRef].filter(Boolean).join(` `);return(n?n.split(` `):[]).forEach(n=>{let r=Cs(e,n);r&&t.add(r)}),Array.from(t)},Ss=e=>{let t=e.getRootNode().querySelectorAll(`[for="${e.id}"]`);return Array.from(t)},Cs=(e,t)=>e.getRootNode().querySelector(`[id='${t}']`)||document.getElementById(t),ws=e=>{let t=[];if(Ss(e).forEach(e=>{let n=e.textContent;n&&t.push(n)}),t.length)return t.join(` `)},Ts=e=>t=>{let n=t&&t.type===`property`&&t.name===`accessibleNameRef`,r=t&&t.type===`property`&&t.name===`accessibleDescriptionRef`;if(!n&&!r)return;let i=_s.get(e);if(!i)return;let a=i.observedElements,o=xs(e);a.forEach(e=>{o.includes(e)||Os(i,e)}),o.forEach(e=>{a.includes(e)||(Ds(i,e),i.observedElements.push(e))}),i?.callback()},Es=(e,t)=>{if(_s.has(e))return;let n=xs(e),r=Ts(e),i={host:e,observedElements:n,callback:t,invalidationCallback:r};_s.set(e,i),e.attachInvalidate(r),n.forEach(e=>{Ds(i,e)}),t()},Ds=(e,t)=>{let n=gs.get(t);if(!n){n={observer:null,callbacks:[]};let r=new MutationObserver(()=>{n.callbacks.forEach(e=>{e()});let r=document.getElementById(t.id);e.host.id===t.getAttribute(`for`)||r||Os(e,t)});n.observer=r,r.observe(t,vs),gs.set(t,n)}n.callbacks.includes(e.callback)||n.callbacks.push(e.callback)},Os=(e,t)=>{let n=gs.get(t);n&&(n.callbacks=n.callbacks.filter(t=>t!==e.callback),n.callbacks.length||(n.observer?.disconnect(),gs.delete(t))),e.observedElements=e.observedElements.filter(e=>e!==t)},ks=e=>{let t=_s.get(e);t&&([...t.observedElements].forEach(e=>{Os(t,e)}),e.detachInvalidate(t.invalidationCallback),_s.delete(e))},As=e=>{let t=e;return t.accessibleDescriptionRef?js(e):t.accessibleDescription?t.accessibleDescription:void 0},js=e=>{let t=e.accessibleDescriptionRef?.split(` `)??[],n=``;return t.forEach((r,i)=>{let a=Cs(e,r),o=`${a&&a.textContent?a.textContent:``}`;o&&(n+=o,it&&Ps.sort(Ls));$s.__r=0}function ec(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_=r&&r.__k||Us,v=t.length;for(c=tc(n,t,_,c),d=0;d0?qs(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,o=null,(c=a.__i=rc(a,n,s,d))!==-1&&(d--,(o=n[c])&&(o.__u|=2)),o==null||o.__v===null?(c==-1&&f--,typeof a.type!=`function`&&(a.__u|=4)):c!==s&&(c==s-1?f--:c==s+1?f++:(c>s?f--:f++,a.__u|=4))):a=e.__k[i]=null;if(d)for(i=0;i+(c!=null&&!(2&c.__u)))for(;o>=0||s=0){if((c=t[o])&&!(2&c.__u)&&i==c.key&&a===c.type)return o;o--}if(s{if(!gc.has(e)){let t=e.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase();gc.set(e,t)}return gc.get(e)},vc=e=>_c(e);function yc(e,t,n){let r=e.getMetadata().getEvents();Object.keys(t).forEach(e=>{if(e.startsWith(`on`)){let n=e.slice(2),i=vc(n),a=n.charAt(0).toLowerCase()+n.slice(1),o;i in r?o=i:a in r&&(o=a),o&&e!==`onClick`&&(t[`onui5-${o}`]=t[e],delete t[e])}})}function bc(e){return typeof e==`function`&&`getMetadata`in e}function xc(e,t,n){let r;return bc(e)?(r=e.getMetadata().getTag(),yc(e,t,n)):r=e,typeof t.class==`object`&&(t.class=hc(t.class)),r}var Sc=W.vnode;W.vnode=e=>{let t=e.props;typeof t==`object`&&t&&t.class&&t.class,Sc&&Sc(e)};function Cc(e,t){return Js(e,t)}function K(e,t,n){return mc(xc(e,t,n),t,n)}function wc(e,t,n){return mc(xc(e,t,n),t,n)}var Tc=`:root {--sapThemeMetaData-Base-baseLib:{"Path": "Base.baseLib.sap_horizon.css_variables","PathPattern": "/%frameworkId%/%libId%/%themeId%/%fileId%.css","Extends": ["baseTheme"],"Tags": ["Fiori_3","LightColorScheme"],"FallbackThemeId": "sap_fiori_3","Engine":{"Name": "theming-engine","Version": "17.0.29"},"Version":{"Build": "11.36.4.20260616082028","Source": "11.36.4"}};--sapBrandColor: #0070f2;--sapHighlightColor: #0064d9;--sapBaseColor: #fff;--sapShellColor: #fff;--sapBackgroundColor: #f5f6f7;--sapFontFamily: "72", "72full", Arial, Helvetica, sans-serif;--sapFontSize: .875rem;--sapTextColor: #131e29;--sapLinkColor: #0064d9;--sapCompanyLogo: none;--sapFavicon: none;--sapBackgroundImage: none;--sapBackgroundImageOpacity: 1;--sapBackgroundImageRepeat: false;--sapSelectedColor: #0064d9;--sapHoverColor: #eaecee;--sapActiveColor: #dee2e5;--sapTitleColor: #131e29;--sapNegativeColor: #aa0808;--sapCriticalColor: #e76500;--sapPositiveColor: #256f3a;--sapInformativeColor: #0070f2;--sapNeutralColor: #788fa6;--sapNegativeElementColor: #f53232;--sapCriticalElementColor: #e76500;--sapPositiveElementColor: #30914c;--sapInformativeElementColor: #0070f2;--sapNeutralElementColor: #788fa6;--sapNegativeTextColor: #aa0808;--sapCriticalTextColor: #b44f00;--sapPositiveTextColor: #256f3a;--sapInformativeTextColor: #0064d9;--sapNeutralTextColor: #131e29;--sapErrorColor: #aa0808;--sapWarningColor: #e76500;--sapSuccessColor: #256f3a;--sapInformationColor: #0070f2;--sapErrorBackground: #ffeaf4;--sapWarningBackground: #fff8d6;--sapSuccessBackground: #f5fae5;--sapInformationBackground: #e1f4ff;--sapNeutralBackground: #eff1f2;--sapErrorBorderColor: #e90b0b;--sapWarningBorderColor: #dd6100;--sapSuccessBorderColor: #30914c;--sapInformationBorderColor: #0070f2;--sapNeutralBorderColor: #788fa6;--sapElement_LineHeight: 2.75rem;--sapElement_Height: 2.25rem;--sapElement_BorderWidth: .0625rem;--sapElement_BorderCornerRadius: .75rem;--sapElement_Compact_LineHeight: 2rem;--sapElement_Compact_Height: 1.625rem;--sapElement_Condensed_LineHeight: 1.5rem;--sapElement_Condensed_Height: 1.375rem;--sapContent_LineHeight: 1.5;--sapContent_IconHeight: 1rem;--sapContent_IconColor: #131e29;--sapContent_ContrastIconColor: #fff;--sapContent_NonInteractiveIconColor: #758ca4;--sapContent_MarkerIconColor: #5d36ff;--sapContent_MarkerTextColor: #046c7a;--sapContent_MeasureIndicatorColor: #556b81;--sapContent_Selected_MeasureIndicatorColor: #0064d9;--sapContent_Placeholderloading_Background: #ccc;--sapContent_Placeholderloading_Gradient: linear-gradient(to right, #ccc 0%, #ccc 20%, #999 50%, #ccc 80%, #ccc 100%);--sapContent_ImagePlaceholderBackground: #eaecee;--sapContent_ImagePlaceholderForegroundColor: #556b82;--sapContent_RatedColor: #d27700;--sapContent_UnratedColor: #758ca4;--sapContent_BusyColor: #0064d9;--sapContent_FocusColor: #0032a5;--sapContent_FocusStyle: solid;--sapContent_FocusWidth: .125rem;--sapContent_ContrastFocusColor: #fff;--sapContent_ShadowColor: #223548;--sapContent_ContrastShadowColor: #fff;--sapContent_Shadow0: 0 0 .125rem 0 rgba(34,53,72,.2), 0 .125rem .25rem 0 rgba(34,53,72,.2);--sapContent_Shadow1: 0 0 0 .0625rem rgba(34,53,72,.48), 0 .125rem .5rem 0 rgba(34,53,72,.3);--sapContent_Shadow2: 0 0 0 .0625rem rgba(34,53,72,.48), 0 .625rem 1.875rem 0 rgba(34,53,72,.25);--sapContent_Shadow3: 0 0 0 .0625rem rgba(34,53,72,.48), 0 1.25rem 5rem 0 rgba(34,53,72,.25);--sapContent_TextShadow: 0 0 .125rem #fff;--sapContent_ContrastTextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapContent_HeaderShadow: 0 .125rem .125rem 0 rgba(34,53,72,.05), inset 0 -.0625rem 0 0 #d9d9d9;--sapContent_Interaction_Shadow: inset 0 0 0 .0625rem rgba(85,107,129,.25);--sapContent_Selected_Shadow: inset 0 0 0 .0625rem rgba(79,160,255,.5);--sapContent_Negative_Shadow: inset 0 0 0 .0625rem rgba(255,142,196,.45);--sapContent_Critical_Shadow: inset 0 0 0 .0625rem rgba(255,213,10,.4);--sapContent_Positive_Shadow: inset 0 0 0 .0625rem rgba(48,145,76,.18);--sapContent_Informative_Shadow: inset 0 0 0 .0625rem rgba(104,174,255,.5);--sapContent_Neutral_Shadow: inset 0 0 0 .0625rem rgba(120,143,166,.3);--sapContent_SearchHighlightColor: #dafdf5;--sapContent_HelpColor: #188918;--sapContent_LabelColor: #556b82;--sapContent_MonospaceFontFamily: "72Mono", "72Monofull", lucida console, monospace;--sapContent_MonospaceBoldFontFamily: "72Mono-Bold", "72Mono-Boldfull", lucida console, monospace;--sapContent_IconFontFamily: "SAP-icons";--sapContent_DisabledTextColor: rgba(19,30,41,.6);--sapContent_DisabledOpacity: .4;--sapContent_ContrastTextThreshold: .65;--sapContent_ContrastTextColor: #fff;--sapContent_ForegroundColor: #efefef;--sapContent_ForegroundBorderColor: #758ca4;--sapContent_ForegroundTextColor: #131e29;--sapContent_BadgeBackground: #aa0808;--sapContent_BadgeTextColor: #fff;--sapContent_BadgeBorderColor: #fff;--sapContent_DragAndDropActiveColor: #0064d9;--sapContent_Selected_TextColor: #0064d9;--sapContent_Selected_Background: #fff;--sapContent_Selected_Hover_Background: #e3f0ff;--sapContent_Selected_ForegroundColor: #0064d9;--sapContent_ForcedColorAdjust: none;--sapContent_Lite_Shadow: none;--sapContent_Illustrative_Color1: #9b015d;--sapContent_Illustrative_Color2: #56bdff;--sapContent_Illustrative_Color3: #ff7f4c;--sapContent_Illustrative_Color4: #00144a;--sapContent_Illustrative_Color5: #a9b4be;--sapContent_Illustrative_Color6: #d5dadd;--sapContent_Illustrative_Color7: #dbf1ff;--sapContent_Illustrative_Color8: #fff;--sapContent_Illustrative_Color9: #0899a7;--sapContent_Illustrative_Color10: #dbf1ff;--sapContent_Illustrative_Color11: #df1278;--sapContent_Illustrative_Color12: #00a800;--sapContent_Illustrative_Color13: #0070f2;--sapContent_Illustrative_Color14: #0040b0;--sapContent_Illustrative_Color15: #c35500;--sapContent_Illustrative_Color16: #8d2a00;--sapContent_Illustrative_Color17: #046c7c;--sapContent_Illustrative_Color18: #bce5ff;--sapContent_Illustrative_Color19: #a3dbff;--sapContent_Illustrative_Color20: #89d1ff;--sapContent_Illustrative_Color21: #1b90ff;--sapContent_Illustrative_Color22: #00144a;--sapContent_Illustrative_Color23: #d20a0a;--sapContent_Illustrative_Color24: #ffb2d2;--sapContent_Illustrative_Color25: #ffeaf4;--sapContent_Illustrative_Color26: #ffdf72;--sapContent_Illustrative_Color27: #fff8d6;--sapContent_Illustrative_Color28: #a93e00;--sapContent_Illustrative_Color29: #450b00;--sapContent_Illustrative_Color30: #340800;--sapContent_Illustrative_Color31: #ffab92;--sapContent_Space_S: 1rem;--sapContent_Space_M: 2rem;--sapContent_Space_L: 2rem;--sapContent_Space_XL: 3rem;--sapContent_Space_Tiny: .5rem;--sapContent_Space_Small: 1rem;--sapContent_Space_Medium: 2rem;--sapContent_Space_Large: 3rem;--sapContent_Margin_Tiny: 0 0 1rem;--sapContent_Margin_Small: 1rem;--sapContent_Margin_Medium: 1rem 2rem;--sapContent_Margin_Large: 1rem 3rem;--sapContent_Margin_S: 0 0 1rem;--sapContent_Margin_M: 1rem;--sapContent_Margin_L: 1rem 2rem;--sapContent_Margin_XL: 1rem 3rem;--sapContent_Padding_S: 0rem;--sapContent_Padding_M: 2rem;--sapContent_Padding_L: 2rem;--sapContent_Padding_XL: 3rem;--sapContent_Gap: 1rem;--sapContent_Success_HeaderShadow: 0 .125rem .125rem 0 rgba(34,53,72,.05), inset 0 -.0625rem 0 0 #30914c;--sapContent_Warning_HeaderShadow: 0 .125rem .125rem 0 rgba(34,53,72,.05), inset 0 -.0625rem 0 0 #dd6100;--sapContent_Error_HeaderShadow: 0 .125rem .125rem 0 rgba(34,53,72,.05), inset 0 -.0625rem 0 0 #e90b0b;--sapContent_Information_HeaderShadow: 0 .125rem .125rem 0 rgba(34,53,72,.05), inset 0 -.0625rem 0 0 #0070f2;--sapFontLightFamily: "72-Light", "72-Lightfull", "72", "72full", Arial, Helvetica, sans-serif;--sapFontBoldFamily: "72-Bold", "72-Boldfull", "72", "72full", Arial, Helvetica, sans-serif;--sapFontSemiboldFamily: "72-Semibold", "72-Semiboldfull", "72", "72full", Arial, Helvetica, sans-serif;--sapFontSemiboldDuplexFamily: "72-SemiboldDuplex", "72-SemiboldDuplexfull", "72", "72full", Arial, Helvetica, sans-serif;--sapFontBlackFamily: "72Black", "72Blackfull","72", "72full", Arial, Helvetica, sans-serif;--sapFontHeaderFamily: "72-Bold", "72-Boldfull", "72", "72full", Arial, Helvetica, sans-serif;--sapFontSmallSize: .75rem;--sapFontLargeSize: 1rem;--sapFontHeader1Size: 3rem;--sapFontHeader2Size: 2rem;--sapFontHeader3Size: 1.5rem;--sapFontHeader4Size: 1.25rem;--sapFontHeader5Size: 1rem;--sapFontHeader6Size: .875rem;--sapLink_TextDecoration: none;--sapLink_Hover_Color: #0064d9;--sapLink_Hover_TextDecoration: underline;--sapLink_Active_Color: #0064d9;--sapLink_Active_TextDecoration: none;--sapLink_Visited_Color: #0064d9;--sapLink_InvertedColor: #a6cfff;--sapLink_SubtleColor: #131e29;--sapShell_Background: #eff1f2;--sapShell_BackgroundImage: linear-gradient(to bottom, #eff1f2, #eff1f2);--sapShell_BackgroundImageOpacity: 1;--sapShell_BackgroundImageRepeat: false;--sapShell_BorderColor: #d9d9d9;--sapShell_TextColor: #131e29;--sapShell_InteractiveBackground: #eff1f2;--sapShell_InteractiveTextColor: #131e29;--sapShell_InteractiveBorderColor: #556b81;--sapShell_GroupTitleTextColor: #131e29;--sapShell_GroupTitleTextShadow: 0 0 .125rem #fff;--sapShell_Hover_Background: #fff;--sapShell_Active_Background: #fff;--sapShell_Active_TextColor: #0070f2;--sapShell_Selected_Background: #fff;--sapShell_Selected_TextColor: #0070f2;--sapShell_Selected_Hover_Background: #fff;--sapShell_Favicon: none;--sapShell_Navigation_Background: #fff;--sapShell_Navigation_Hover_Background: #fff;--sapShell_Navigation_SelectedColor: #0064d9;--sapShell_Navigation_Selected_TextColor: #0064d9;--sapShell_Navigation_TextColor: #131e29;--sapShell_Navigation_Active_TextColor: #0064d9;--sapShell_Navigation_Active_Background: #fff;--sapShell_Shadow: 0 .125rem .125rem 0 rgba(34,53,72,.15), inset 0 -.0625rem 0 0 rgba(34,53,72,.2);--sapShell_NegativeColor: #aa0808;--sapShell_CriticalColor: #b44f00;--sapShell_PositiveColor: #256f3a;--sapShell_InformativeColor: #0064d9;--sapShell_NeutralColor: #131e29;--sapShell_Assistant_ForegroundColor: #5d36ff;--sapShell_SubBrand_TextColor: #003e87;--sapShell_HeroBanner_Background: #0070f2;--sapShell_HeroBanner_BackgroundImage: linear-gradient(135deg, transparent 45%, rgba(0,0,0,.45) 75%);--sapShell_HeroBanner_TextColor: #fff;--sapShell_Category_1_Background: #0057d2;--sapShell_Category_1_BorderColor: #0057d2;--sapShell_Category_1_TextColor: #fff;--sapShell_Category_1_TextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapShell_Category_2_Background: #df1278;--sapShell_Category_2_BorderColor: #df1278;--sapShell_Category_2_TextColor: #fff;--sapShell_Category_2_TextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapShell_Category_3_Background: #e76500;--sapShell_Category_3_BorderColor: #e76500;--sapShell_Category_3_TextColor: #fff;--sapShell_Category_3_TextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapShell_Category_4_Background: #7800a4;--sapShell_Category_4_BorderColor: #7800a4;--sapShell_Category_4_TextColor: #fff;--sapShell_Category_4_TextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapShell_Category_5_Background: #aa2608;--sapShell_Category_5_BorderColor: #aa2608;--sapShell_Category_5_TextColor: #fff;--sapShell_Category_5_TextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapShell_Category_6_Background: #07838f;--sapShell_Category_6_BorderColor: #07838f;--sapShell_Category_6_TextColor: #fff;--sapShell_Category_6_TextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapShell_Category_7_Background: #f31ded;--sapShell_Category_7_BorderColor: #f31ded;--sapShell_Category_7_TextColor: #fff;--sapShell_Category_7_TextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapShell_Category_8_Background: #188918;--sapShell_Category_8_BorderColor: #188918;--sapShell_Category_8_TextColor: #fff;--sapShell_Category_8_TextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapShell_Category_9_Background: #002a86;--sapShell_Category_9_BorderColor: #002a86;--sapShell_Category_9_TextColor: #fff;--sapShell_Category_9_TextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapShell_Category_10_Background: #5b738b;--sapShell_Category_10_BorderColor: #5b738b;--sapShell_Category_10_TextColor: #fff;--sapShell_Category_10_TextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapShell_Category_11_Background: #d20a0a;--sapShell_Category_11_BorderColor: #d20a0a;--sapShell_Category_11_TextColor: #fff;--sapShell_Category_11_TextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapShell_Category_12_Background: #7858ff;--sapShell_Category_12_BorderColor: #7858ff;--sapShell_Category_12_TextColor: #fff;--sapShell_Category_12_TextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapShell_Category_13_Background: #a00875;--sapShell_Category_13_BorderColor: #a00875;--sapShell_Category_13_TextColor: #fff;--sapShell_Category_13_TextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapShell_Category_14_Background: #14565b;--sapShell_Category_14_BorderColor: #14565b;--sapShell_Category_14_TextColor: #fff;--sapShell_Category_14_TextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapShell_Category_15_Background: #223548;--sapShell_Category_15_BorderColor: #223548;--sapShell_Category_15_TextColor: #fff;--sapShell_Category_15_TextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapShell_Category_16_Background: #1e592f;--sapShell_Category_16_BorderColor: #1e592f;--sapShell_Category_16_TextColor: #fff;--sapShell_Category_16_TextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapShell_Space_S: .5rem;--sapShell_Space_M: 2rem;--sapShell_Space_L: 2rem;--sapShell_Space_XL: 3rem;--sapShell_Gap_S: .5rem;--sapShell_Gap_M: 1rem;--sapShell_Gap_L: 1rem;--sapShell_Gap_XL: 1rem;--sapShell_GroupGap_S: 2rem;--sapShell_GroupGap_M: 3rem;--sapShell_GroupGap_L: 3rem;--sapShell_GroupGap_XL: 3rem;--sapAssistant_Color1: #5d36ff;--sapAssistant_Color2: #a100c2;--sapAssistant_BackgroundGradient: linear-gradient(#5d36ff, #a100c2);--sapAssistant_Background: #5d36ff;--sapAssistant_BorderColor: #5d36ff;--sapAssistant_TextColor: #fff;--sapAssistant_Hover_Background: #2800cf;--sapAssistant_Hover_BorderColor: #2800cf;--sapAssistant_Hover_TextColor: #fff;--sapAssistant_Active_Background: #fff;--sapAssistant_Active_BorderColor: #5d36ff;--sapAssistant_Active_TextColor: #5d36ff;--sapAssistant_Question_Background: #eae5ff;--sapAssistant_Question_BorderColor: #eae5ff;--sapAssistant_Question_TextColor: #131e29;--sapAssistant_Answer_Background: #eff1f2;--sapAssistant_Answer_BorderColor: #eff1f2;--sapAssistant_Answer_TextColor: #131e29;--sapAvatar_1_Background: #fff3b8;--sapAvatar_1_BorderColor: #fff3b8;--sapAvatar_1_TextColor: #a45d00;--sapAvatar_1_Hover_Background: #fff3b8;--sapAvatar_2_Background: #ffd0e7;--sapAvatar_2_BorderColor: #ffd0e7;--sapAvatar_2_TextColor: #aa0808;--sapAvatar_2_Hover_Background: #ffd0e7;--sapAvatar_3_Background: #ffdbe7;--sapAvatar_3_BorderColor: #ffdbe7;--sapAvatar_3_TextColor: #ba066c;--sapAvatar_3_Hover_Background: #ffdbe7;--sapAvatar_4_Background: #ffdcf3;--sapAvatar_4_BorderColor: #ffdcf3;--sapAvatar_4_TextColor: #a100c2;--sapAvatar_4_Hover_Background: #ffdcf3;--sapAvatar_5_Background: #ded3ff;--sapAvatar_5_BorderColor: #ded3ff;--sapAvatar_5_TextColor: #552cff;--sapAvatar_5_Hover_Background: #ded3ff;--sapAvatar_6_Background: #d1efff;--sapAvatar_6_BorderColor: #d1efff;--sapAvatar_6_TextColor: #0057d2;--sapAvatar_6_Hover_Background: #d1efff;--sapAvatar_7_Background: #c2fcee;--sapAvatar_7_BorderColor: #c2fcee;--sapAvatar_7_TextColor: #046c7a;--sapAvatar_7_Hover_Background: #c2fcee;--sapAvatar_8_Background: #ebf5cb;--sapAvatar_8_BorderColor: #ebf5cb;--sapAvatar_8_TextColor: #256f3a;--sapAvatar_8_Hover_Background: #ebf5cb;--sapAvatar_9_Background: #ddccf0;--sapAvatar_9_BorderColor: #ddccf0;--sapAvatar_9_TextColor: #6c32a9;--sapAvatar_9_Hover_Background: #ddccf0;--sapAvatar_10_Background: #eaecee;--sapAvatar_10_BorderColor: #eaecee;--sapAvatar_10_TextColor: #556b82;--sapAvatar_10_Hover_Background: #eaecee;--sapAvatar_Lite_BorderColor: transparent;--sapAvatar_Lite_Background: transparent;--sapAvatar_Hover_BorderColor: rgba(85,107,129,.25);--sapButton_Background: #fff;--sapButton_BorderColor: #bcc3ca;--sapButton_BorderWidth: .0625rem;--sapButton_BorderCornerRadius: .5rem;--sapButton_TextColor: #0064d9;--sapButton_FontFamily: "72-SemiboldDuplex", "72-SemiboldDuplexfull", "72", "72full", Arial, Helvetica, sans-serif;--sapButton_Hover_Background: #eaecee;--sapButton_Hover_BorderColor: #bcc3ca;--sapButton_Hover_TextColor: #0064d9;--sapButton_IconColor: #0064d9;--sapButton_Active_Background: #fff;--sapButton_Active_BorderColor: #0064d9;--sapButton_Active_TextColor: #0064d9;--sapButton_Emphasized_Background: #0070f2;--sapButton_Emphasized_BorderColor: #0070f2;--sapButton_Emphasized_BorderWidth: .0625rem;--sapButton_Emphasized_TextColor: #fff;--sapButton_Emphasized_FontFamily: "72-Bold", "72-Boldfull", "72", "72full", Arial, Helvetica, sans-serif;--sapButton_Emphasized_Hover_Background: #0064d9;--sapButton_Emphasized_Hover_BorderColor: #0064d9;--sapButton_Emphasized_Hover_TextColor: #fff;--sapButton_Emphasized_Active_Background: #fff;--sapButton_Emphasized_Active_BorderColor: #0064d9;--sapButton_Emphasized_Active_TextColor: #0064d9;--sapButton_Emphasized_TextShadow: transparent;--sapButton_Reject_Background: #ffd6e9;--sapButton_Reject_BorderColor: #ffc2de;--sapButton_Reject_TextColor: #aa0808;--sapButton_Reject_Hover_Background: #ffbddb;--sapButton_Reject_Hover_BorderColor: #ffbddb;--sapButton_Reject_Hover_TextColor: #aa0808;--sapButton_Reject_Active_Background: #fff;--sapButton_Reject_Active_BorderColor: #e90b0b;--sapButton_Reject_Active_TextColor: #aa0808;--sapButton_Reject_Selected_Background: #fff;--sapButton_Reject_Selected_BorderColor: #e90b0b;--sapButton_Reject_Selected_TextColor: #aa0808;--sapButton_Reject_Selected_Hover_Background: #ffbddb;--sapButton_Reject_Selected_Hover_BorderColor: #e90b0b;--sapButton_Accept_Background: #ebf5cb;--sapButton_Accept_BorderColor: #dbeda0;--sapButton_Accept_TextColor: #256f3a;--sapButton_Accept_Hover_Background: #e3f1b6;--sapButton_Accept_Hover_BorderColor: #e3f1b6;--sapButton_Accept_Hover_TextColor: #256f3a;--sapButton_Accept_Active_Background: #fff;--sapButton_Accept_Active_BorderColor: #30914c;--sapButton_Accept_Active_TextColor: #256f3a;--sapButton_Accept_Selected_Background: #fff;--sapButton_Accept_Selected_BorderColor: #30914c;--sapButton_Accept_Selected_TextColor: #256f3a;--sapButton_Accept_Selected_Hover_Background: #e3f1b6;--sapButton_Accept_Selected_Hover_BorderColor: #30914c;--sapButton_Lite_Background: transparent;--sapButton_Lite_BorderColor: transparent;--sapButton_Lite_TextColor: #0064d9;--sapButton_Lite_Hover_Background: #eaecee;--sapButton_Lite_Hover_BorderColor: #bcc3ca;--sapButton_Lite_Hover_TextColor: #0064d9;--sapButton_Lite_Active_Background: #fff;--sapButton_Lite_Active_BorderColor: #0064d9;--sapButton_Selected_Background: #edf6ff;--sapButton_Selected_BorderColor: #0064d9;--sapButton_Selected_TextColor: #0064d9;--sapButton_Selected_Hover_Background: #d9ecff;--sapButton_Selected_Hover_BorderColor: #0064d9;--sapButton_Attention_Background: #fff3b7;--sapButton_Attention_BorderColor: #ffeb84;--sapButton_Attention_TextColor: #b44f00;--sapButton_Attention_Hover_Background: #ffef9e;--sapButton_Attention_Hover_BorderColor: #ffef9e;--sapButton_Attention_Hover_TextColor: #b44f00;--sapButton_Attention_Active_Background: #fff;--sapButton_Attention_Active_BorderColor: #dd6100;--sapButton_Attention_Active_TextColor: #b44f00;--sapButton_Attention_Selected_Background: #fff;--sapButton_Attention_Selected_BorderColor: #dd6100;--sapButton_Attention_Selected_TextColor: #b44f00;--sapButton_Attention_Selected_Hover_Background: #ffef9e;--sapButton_Attention_Selected_Hover_BorderColor: #dd6100;--sapButton_Negative_Background: #f53232;--sapButton_Negative_BorderColor: #f53232;--sapButton_Negative_TextColor: #fff;--sapButton_Negative_Hover_Background: #e90b0b;--sapButton_Negative_Hover_BorderColor: #e90b0b;--sapButton_Negative_Hover_TextColor: #fff;--sapButton_Negative_Active_Background: #fff;--sapButton_Negative_Active_BorderColor: #f53232;--sapButton_Negative_Active_TextColor: #aa0808;--sapButton_Critical_Background: #e76500;--sapButton_Critical_BorderColor: #e76500;--sapButton_Critical_TextColor: #fff;--sapButton_Critical_Hover_Background: #dd6100;--sapButton_Critical_Hover_BorderColor: #dd6100;--sapButton_Critical_Hover_TextColor: #fff;--sapButton_Critical_Active_Background: #fff;--sapButton_Critical_Active_BorderColor: #dd6100;--sapButton_Critical_Active_TextColor: #b44f00;--sapButton_Success_Background: #30914c;--sapButton_Success_BorderColor: #30914c;--sapButton_Success_TextColor: #fff;--sapButton_Success_Hover_Background: #2c8646;--sapButton_Success_Hover_BorderColor: #2c8646;--sapButton_Success_Hover_TextColor: #fff;--sapButton_Success_Active_Background: #fff;--sapButton_Success_Active_BorderColor: #30914c;--sapButton_Success_Active_TextColor: #256f3a;--sapButton_Information_Background: #e8f3ff;--sapButton_Information_BorderColor: #b5d8ff;--sapButton_Information_TextColor: #0064d9;--sapButton_Information_Hover_Background: #d4e8ff;--sapButton_Information_Hover_BorderColor: #b5d8ff;--sapButton_Information_Hover_TextColor: #0064d9;--sapButton_Information_Active_Background: #fff;--sapButton_Information_Active_BorderColor: #0064d9;--sapButton_Information_Active_TextColor: #0064d9;--sapButton_Neutral_Background: #e8f3ff;--sapButton_Neutral_BorderColor: #b5d8ff;--sapButton_Neutral_TextColor: #0064d9;--sapButton_Neutral_Hover_Background: #d4e8ff;--sapButton_Neutral_Hover_BorderColor: #b5d8ff;--sapButton_Neutral_Hover_TextColor: #0064d9;--sapButton_Neutral_Active_Background: #fff;--sapButton_Neutral_Active_BorderColor: #0064d9;--sapButton_Neutral_Active_TextColor: #0064d9;--sapButton_Track_Background: #788fa6;--sapButton_Track_BorderColor: #788fa6;--sapButton_Track_TextColor: #fff;--sapButton_Track_Hover_Background: #637d97;--sapButton_Track_Hover_BorderColor: #637d97;--sapButton_Track_Selected_Background: #0064d9;--sapButton_Track_Selected_BorderColor: #0064d9;--sapButton_Track_Selected_TextColor: #fff;--sapButton_Track_Selected_Hover_Background: #0058c0;--sapButton_Track_Selected_Hover_BorderColor: #0058c0;--sapButton_Handle_Background: #fff;--sapButton_Handle_BorderColor: #fff;--sapButton_Handle_TextColor: #131e29;--sapButton_Handle_Hover_Background: #fff;--sapButton_Handle_Hover_BorderColor: rgba(255,255,255,.5);--sapButton_Handle_Selected_Background: #edf6ff;--sapButton_Handle_Selected_BorderColor: #edf6ff;--sapButton_Handle_Selected_TextColor: #0064d9;--sapButton_Handle_Selected_Hover_Background: #edf6ff;--sapButton_Handle_Selected_Hover_BorderColor: rgba(237,246,255,.5);--sapButton_Track_Negative_Background: #f53232;--sapButton_Track_Negative_BorderColor: #f53232;--sapButton_Track_Negative_TextColor: #fff;--sapButton_Track_Negative_Hover_Background: #e90b0b;--sapButton_Track_Negative_Hover_BorderColor: #e90b0b;--sapButton_Handle_Negative_Background: #fff;--sapButton_Handle_Negative_BorderColor: #fff;--sapButton_Handle_Negative_TextColor: #aa0808;--sapButton_Handle_Negative_Hover_Background: #fff;--sapButton_Handle_Negative_Hover_BorderColor: rgba(255,255,255,.5);--sapButton_Track_Positive_Background: #30914c;--sapButton_Track_Positive_BorderColor: #30914c;--sapButton_Track_Positive_TextColor: #fff;--sapButton_Track_Positive_Hover_Background: #2c8646;--sapButton_Track_Positive_Hover_BorderColor: #2c8646;--sapButton_Handle_Positive_Background: #fff;--sapButton_Handle_Positive_BorderColor: #fff;--sapButton_Handle_Positive_TextColor: #256f3a;--sapButton_Handle_Positive_Hover_Background: #fff;--sapButton_Handle_Positive_Hover_BorderColor: rgba(255,255,255,.5);--sapButton_TokenBackground: #fff;--sapButton_TokenBorderColor: #bcc3ca;--sapButton_TokenBorderCornerRadius: .375rem;--sapButton_Selected_TokenBorderWidth: .0625rem;--sapButton_ReadOnly_TokenBackground: #fff;--sapButton_Segment_BorderCornerRadius: .5rem;--sapField_Background: #fff;--sapField_BackgroundStyle: 0 100% / 100% .0625rem no-repeat linear-gradient(0deg, #556b81, #556b81) border-box;--sapField_TextColor: #131e29;--sapField_PlaceholderTextColor: #556b82;--sapField_BorderColor: #556b81;--sapField_HelpBackground: #fff;--sapField_BorderWidth: .0625rem;--sapField_BorderStyle: none;--sapField_BorderCornerRadius: .25rem;--sapField_Shadow: inset 0 0 0 .0625rem rgba(85,107,129,.25);--sapField_Hover_Background: #fff;--sapField_Hover_BackgroundStyle: 0 100% / 100% .0625rem no-repeat linear-gradient(0deg, #0064d9, #0064d9) border-box;--sapField_Hover_BorderColor: #0064d9;--sapField_Hover_HelpBackground: #fff;--sapField_Hover_Shadow: inset 0 0 0 .0625rem rgba(79,160,255,.5);--sapField_Hover_InvalidShadow: inset 0 0 0 .0625rem rgba(255,142,196,.45);--sapField_Hover_WarningShadow: inset 0 0 0 .0625rem rgba(255,213,10,.4);--sapField_Hover_SuccessShadow: inset 0 0 0 .0625rem rgba(48,145,76,.18);--sapField_Hover_InformationShadow: inset 0 0 0 .0625rem rgba(104,174,255,.5);--sapField_Active_BorderColor: #0064d9;--sapField_Focus_Background: #fff;--sapField_Focus_BorderColor: #0032a5;--sapField_Focus_HelpBackground: #fff;--sapField_ReadOnly_Background: #eaecee;--sapField_ReadOnly_BackgroundStyle: 0 100% / .375rem .0625rem repeat-x linear-gradient(90deg, #556b81 0, #556b81 .25rem, transparent .25rem) border-box;--sapField_ReadOnly_BorderColor: #556b81;--sapField_ReadOnly_BorderStyle: none;--sapField_ReadOnly_HelpBackground: #eaecee;--sapField_RequiredColor: #ba066c;--sapField_InvalidColor: #e90b0b;--sapField_InvalidBackground: #ffeaf4;--sapField_InvalidBackgroundStyle: 0 100% / 100% .125rem no-repeat linear-gradient(0deg, #e90b0b, #e90b0b) border-box;--sapField_InvalidBorderWidth: .125rem;--sapField_InvalidBorderStyle: none;--sapField_InvalidShadow: inset 0 0 0 .0625rem rgba(255,142,196,.45);--sapField_WarningColor: #dd6100;--sapField_WarningBackground: #fff8d6;--sapField_WarningBackgroundStyle: 0 100% / 100% .125rem no-repeat linear-gradient(0deg, #dd6100, #dd6100) border-box;--sapField_WarningBorderWidth: .125rem;--sapField_WarningBorderStyle: none;--sapField_WarningShadow: inset 0 0 0 .0625rem rgba(255,213,10,.4);--sapField_SuccessColor: #30914c;--sapField_SuccessBackground: #f5fae5;--sapField_SuccessBackgroundStyle: 0 100% / 100% .0625rem no-repeat linear-gradient(0deg, #30914c, #30914c) border-box;--sapField_SuccessBorderWidth: .0625rem;--sapField_SuccessBorderStyle: none;--sapField_SuccessShadow: inset 0 0 0 .0625rem rgba(48,145,76,.18);--sapField_InformationColor: #0070f2;--sapField_InformationBackground: #e1f4ff;--sapField_InformationBackgroundStyle: 0 100% / 100% .125rem no-repeat linear-gradient(0deg, #0070f2, #0070f2) border-box;--sapField_InformationBorderWidth: .125rem;--sapField_InformationBorderStyle: none;--sapField_InformationShadow: inset 0 0 0 .0625rem rgba(104,174,255,.5);--sapField_Selector_Hover_Background: #e3f0ff;--sapField_Selector_Hover_InvalidBackground: #fff;--sapField_Selector_Hover_WarningBackground: #fff;--sapField_Selector_Hover_SuccessBackground: #fff;--sapField_Selector_Hover_InformationBackground: #fff;--sapField_Picker_BorderColor: #556b81;--sapField_Picker_BorderWidth: .0625rem;--sapField_Selector_BorderStyle: solid;--sapField_Selector_ReadOnly_BorderStyle: dashed;--sapField_Selector_InvalidBorderStyle: solid;--sapField_Selector_WarningBorderStyle: solid;--sapField_Selector_SuccessBorderStyle: solid;--sapField_Selector_InformationBorderStyle: solid;--sapGroup_TitleBorderWidth: .0625rem;--sapGroup_TitleBackground: #fff;--sapGroup_TitleBorderColor: #a8b2bd;--sapGroup_TitleTextColor: #131e29;--sapGroup_Title_FontSize: 1rem;--sapGroup_ContentBackground: #fff;--sapGroup_ContentAlternatingBackground: #eaecee;--sapGroup_ContentBorderColor: #d9d9d9;--sapGroup_BorderWidth: .0625rem;--sapGroup_BorderCornerRadius: .75rem;--sapGroup_FooterBackground: transparent;--sapToolbar_Background: #fff;--sapToolbar_SeparatorColor: #d9d9d9;--sapList_HeaderBackground: #fff;--sapList_HeaderBorderColor: #a8b2bd;--sapList_HeaderTextColor: #131e29;--sapList_BorderColor: #e5e5e5;--sapList_BorderWidth: .0625rem;--sapList_TextColor: #131e29;--sapList_Active_TextColor: #131e29;--sapList_Active_Background: #dee2e5;--sapList_SelectionBackgroundColor: #ebf8ff;--sapList_SelectionBorderColor: #0064d9;--sapList_Hover_SelectionBackground: #dcf3ff;--sapList_Background: #fff;--sapList_Hover_Background: #eaecee;--sapList_AlternatingBackground: #f5f6f7;--sapList_GroupHeaderBackground: #fff;--sapList_GroupHeaderBorderColor: #a8b2bd;--sapList_GroupHeaderTextColor: #131e29;--sapList_TableGroupHeaderBackground: #eff1f2;--sapList_TableGroupHeaderBorderColor: #a8b2bd;--sapList_TableGroupHeaderTextColor: #131e29;--sapList_FooterBackground: #fff;--sapList_FooterTextColor: #131e29;--sapList_TableFooterBorder: #a8b2bd;--sapList_TableFixedBorderColor: #8c8c8c;--sapList_TableFixedColumnBorderWidth: .0625rem;--sapList_TableFixedRowBorderWidth: .125rem;--sapMessage_BorderWidth: .0625rem;--sapMessage_ErrorBorderColor: #ff8ec4;--sapMessage_WarningBorderColor: #ffe770;--sapMessage_SuccessBorderColor: #cee67e;--sapMessage_InformationBorderColor: #7bcfff;--sapMessage_Button_Hover_Background: rgba(234,236,238,.2);--sapPopover_BorderCornerRadius: .5rem;--sapProgress_Background: #d5dadd;--sapProgress_BorderColor: #d5dadd;--sapProgress_TextColor: #131e29;--sapProgress_FontSize: .875rem;--sapProgress_NegativeBackground: #ffdbec;--sapProgress_NegativeBorderColor: #ffdbec;--sapProgress_NegativeTextColor: #131e29;--sapProgress_CriticalBackground: #fff4bd;--sapProgress_CriticalBorderColor: #fff4bd;--sapProgress_CriticalTextColor: #131e29;--sapProgress_PositiveBackground: #e5f2ba;--sapProgress_PositiveBorderColor: #e5f2ba;--sapProgress_PositiveTextColor: #131e29;--sapProgress_InformationBackground: #cdedff;--sapProgress_InformationBorderColor: #cdedff;--sapProgress_InformationTextColor: #131e29;--sapProgress_Value_Background: #617b94;--sapProgress_Value_BorderColor: #617b94;--sapProgress_Value_TextColor: #788fa6;--sapProgress_Value_NegativeBackground: #f53232;--sapProgress_Value_NegativeBorderColor: #f53232;--sapProgress_Value_NegativeTextColor: #f53232;--sapProgress_Value_CriticalBackground: #e76500;--sapProgress_Value_CriticalBorderColor: #e76500;--sapProgress_Value_CriticalTextColor: #e76500;--sapProgress_Value_PositiveBackground: #30914c;--sapProgress_Value_PositiveBorderColor: #30914c;--sapProgress_Value_PositiveTextColor: #30914c;--sapProgress_Value_InformationBackground: #0070f2;--sapProgress_Value_InformationBorderColor: #0070f2;--sapProgress_Value_InformationTextColor: #0070f2;--sapScrollBar_FaceColor: #7b91a8;--sapScrollBar_TrackColor: #fff;--sapScrollBar_BorderColor: #7b91a8;--sapScrollBar_SymbolColor: #0064d9;--sapScrollBar_Dimension: .75rem;--sapScrollBar_Hover_FaceColor: #5b728b;--sapSlider_Background: #d5dadd;--sapSlider_BorderColor: #d5dadd;--sapSlider_Selected_Background: #0064d9;--sapSlider_Selected_BorderColor: #0064d9;--sapSlider_Selected_Dimension: .125rem;--sapSlider_HandleBackground: #fff;--sapSlider_HandleBorderColor: #b0d5ff;--sapSlider_RangeHandleBackground: #fff;--sapSlider_Hover_HandleBackground: #d9ecff;--sapSlider_Hover_HandleBorderColor: #b0d5ff;--sapSlider_Hover_RangeHandleBackground: #d9ecff;--sapSlider_Active_HandleBackground: #fff;--sapSlider_Active_HandleBorderColor: #0064d9;--sapSlider_Active_RangeHandleBackground: transparent;--sapPageHeader_Background: #fff;--sapPageHeader_BorderColor: #d9d9d9;--sapPageHeader_TextColor: #131e29;--sapPageFooter_Background: #fff;--sapPageFooter_BorderColor: #d9d9d9;--sapPageFooter_TextColor: #131e29;--sapInfobar_Background: #c2fcee;--sapInfobar_Hover_Background: #fff;--sapInfobar_Active_Background: #fff;--sapInfobar_NonInteractive_Background: #f5f6f7;--sapInfobar_TextColor: #046c7a;--sapObjectHeader_Background: #fff;--sapObjectHeader_Hover_Background: #eaecee;--sapObjectHeader_BorderColor: #d9d9d9;--sapObjectHeader_Title_TextColor: #131e29;--sapObjectHeader_Title_FontSize: 1.5rem;--sapObjectHeader_Title_SnappedFontSize: 1.25rem;--sapObjectHeader_Title_FontFamily: "72Black", "72Blackfull","72", "72full", Arial, Helvetica, sans-serif;--sapObjectHeader_Subtitle_TextColor: #556b82;--sapBlockLayer_Background: #000;--sapBlockLayer_Opacity: .2;--sapTab_TextColor: #131e29;--sapTab_ForegroundColor: #0064d9;--sapTab_IconColor: #0064d9;--sapTab_Background: #fff;--sapTab_Selected_TextColor: #0064d9;--sapTab_Selected_IconColor: #fff;--sapTab_Selected_Background: #0064d9;--sapTab_Selected_Indicator_Dimension: .1875rem;--sapTab_Positive_TextColor: #256f3a;--sapTab_Positive_ForegroundColor: #30914c;--sapTab_Positive_IconColor: #30914c;--sapTab_Positive_Selected_TextColor: #256f3a;--sapTab_Positive_Selected_IconColor: #fff;--sapTab_Positive_Selected_Background: #30914c;--sapTab_Negative_TextColor: #aa0808;--sapTab_Negative_ForegroundColor: #f53232;--sapTab_Negative_IconColor: #f53232;--sapTab_Negative_Selected_TextColor: #aa0808;--sapTab_Negative_Selected_IconColor: #fff;--sapTab_Negative_Selected_Background: #f53232;--sapTab_Critical_TextColor: #b44f00;--sapTab_Critical_ForegroundColor: #e76500;--sapTab_Critical_IconColor: #e76500;--sapTab_Critical_Selected_TextColor: #b44f00;--sapTab_Critical_Selected_IconColor: #fff;--sapTab_Critical_Selected_Background: #e76500;--sapTab_Neutral_TextColor: #131e29;--sapTab_Neutral_ForegroundColor: #788fa6;--sapTab_Neutral_IconColor: #788fa6;--sapTab_Neutral_Selected_TextColor: #131e29;--sapTab_Neutral_Selected_IconColor: #fff;--sapTab_Neutral_Selected_Background: #788fa6;--sapTile_Background: #fff;--sapTile_Hover_Background: #eaecee;--sapTile_Active_Background: #dee2e5;--sapTile_BorderColor: transparent;--sapTile_BorderCornerRadius: 1rem;--sapTile_TitleTextColor: #131e29;--sapTile_TextColor: #556b82;--sapTile_IconColor: #556b82;--sapTile_SeparatorColor: transparent;--sapTile_Interactive_BorderColor: #b3b3b3;--sapTile_OverlayBackground: #fff;--sapTile_OverlayForegroundColor: #131e29;--sapTile_Hover_ContentBackground: #fff;--sapTile_Active_ContentBackground: #fff;--sapAccentColor1: #d27700;--sapAccentColor2: #aa0808;--sapAccentColor3: #ba066c;--sapAccentColor4: #a100c2;--sapAccentColor5: #5d36ff;--sapAccentColor6: #0057d2;--sapAccentColor7: #046c7a;--sapAccentColor8: #256f3a;--sapAccentColor9: #6c32a9;--sapAccentColor10: #5b738b;--sapAccentBackgroundColor1: #fff3b8;--sapAccentBackgroundColor2: #ffd0e7;--sapAccentBackgroundColor3: #ffdbe7;--sapAccentBackgroundColor4: #ffdcf3;--sapAccentBackgroundColor5: #ded3ff;--sapAccentBackgroundColor6: #d1efff;--sapAccentBackgroundColor7: #c2fcee;--sapAccentBackgroundColor8: #ebf5cb;--sapAccentBackgroundColor9: #ddccf0;--sapAccentBackgroundColor10: #eaecee;--sapIndicationColor_1: #840606;--sapIndicationColor_1_Background: #840606;--sapIndicationColor_1_BorderColor: #840606;--sapIndicationColor_1_TextColor: #fff;--sapIndicationColor_1_Hover_Background: #6c0505;--sapIndicationColor_1_Active_Background: #fff;--sapIndicationColor_1_Active_BorderColor: #fb9d9d;--sapIndicationColor_1_Active_TextColor: #840606;--sapIndicationColor_1_Selected_Background: #fff;--sapIndicationColor_1_Selected_BorderColor: #fb9d9d;--sapIndicationColor_1_Selected_TextColor: #840606;--sapIndicationColor_1b: #fb9d9d;--sapIndicationColor_1b_TextColor: #830707;--sapIndicationColor_1b_Background: #fb9d9d;--sapIndicationColor_1b_BorderColor: #fb9d9d;--sapIndicationColor_1b_Hover_Background: #fa8585;--sapIndicationColor_2: #aa0808;--sapIndicationColor_2_Background: #aa0808;--sapIndicationColor_2_BorderColor: #aa0808;--sapIndicationColor_2_TextColor: #fff;--sapIndicationColor_2_Hover_Background: #920707;--sapIndicationColor_2_Active_Background: #fff;--sapIndicationColor_2_Active_BorderColor: #fcc4c4;--sapIndicationColor_2_Active_TextColor: #aa0808;--sapIndicationColor_2_Selected_Background: #fff;--sapIndicationColor_2_Selected_BorderColor: #fcc4c4;--sapIndicationColor_2_Selected_TextColor: #aa0808;--sapIndicationColor_2b: #fcc4c4;--sapIndicationColor_2b_TextColor: #a90909;--sapIndicationColor_2b_Background: #fcc4c4;--sapIndicationColor_2b_BorderColor: #fcc4c4;--sapIndicationColor_2b_Hover_Background: #fbacac;--sapIndicationColor_3: #b95100;--sapIndicationColor_3_Background: #e76500;--sapIndicationColor_3_BorderColor: #e76500;--sapIndicationColor_3_TextColor: #fff;--sapIndicationColor_3_Hover_Background: #d85e00;--sapIndicationColor_3_Active_Background: #fff;--sapIndicationColor_3_Active_BorderColor: #ffdfc3;--sapIndicationColor_3_Active_TextColor: #b95100;--sapIndicationColor_3_Selected_Background: #fff;--sapIndicationColor_3_Selected_BorderColor: #ffdfc3;--sapIndicationColor_3_Selected_TextColor: #b95100;--sapIndicationColor_3b: #ffdfc3;--sapIndicationColor_3b_TextColor: #a44d00;--sapIndicationColor_3b_Background: #ffdfc3;--sapIndicationColor_3b_BorderColor: #ffdfc3;--sapIndicationColor_3b_Hover_Background: #ffd1a9;--sapIndicationColor_4: #256f3a;--sapIndicationColor_4_Background: #256f3a;--sapIndicationColor_4_BorderColor: #256f3a;--sapIndicationColor_4_TextColor: #fff;--sapIndicationColor_4_Hover_Background: #1f5c30;--sapIndicationColor_4_Active_Background: #fff;--sapIndicationColor_4_Active_BorderColor: #bae8bc;--sapIndicationColor_4_Active_TextColor: #256f3a;--sapIndicationColor_4_Selected_Background: #fff;--sapIndicationColor_4_Selected_BorderColor: #bae8bc;--sapIndicationColor_4_Selected_TextColor: #256f3a;--sapIndicationColor_4b: #bae8bc;--sapIndicationColor_4b_TextColor: #256f28;--sapIndicationColor_4b_Background: #bae8bc;--sapIndicationColor_4b_BorderColor: #bae8bc;--sapIndicationColor_4b_Hover_Background: #a7e2a9;--sapIndicationColor_5: #0070f2;--sapIndicationColor_5_Background: #0070f2;--sapIndicationColor_5_BorderColor: #0070f2;--sapIndicationColor_5_TextColor: #fff;--sapIndicationColor_5_Hover_Background: #0064d9;--sapIndicationColor_5_Active_Background: #fff;--sapIndicationColor_5_Active_BorderColor: #d9ebff;--sapIndicationColor_5_Active_TextColor: #0070f2;--sapIndicationColor_5_Selected_Background: #fff;--sapIndicationColor_5_Selected_BorderColor: #d9ebff;--sapIndicationColor_5_Selected_TextColor: #0070f2;--sapIndicationColor_5b: #d9ebff;--sapIndicationColor_5b_TextColor: #0067d9;--sapIndicationColor_5b_Background: #d9ebff;--sapIndicationColor_5b_BorderColor: #d9ebff;--sapIndicationColor_5b_Hover_Background: #c0deff;--sapIndicationColor_6: #046c7a;--sapIndicationColor_6_Background: #046c7a;--sapIndicationColor_6_BorderColor: #046c7a;--sapIndicationColor_6_TextColor: #fff;--sapIndicationColor_6_Hover_Background: #035661;--sapIndicationColor_6_Active_Background: #fff;--sapIndicationColor_6_Active_BorderColor: #cdf5ec;--sapIndicationColor_6_Active_TextColor: #046c7a;--sapIndicationColor_6_Selected_Background: #fff;--sapIndicationColor_6_Selected_BorderColor: #cdf5ec;--sapIndicationColor_6_Selected_TextColor: #046c7a;--sapIndicationColor_6b: #cdf5ec;--sapIndicationColor_6b_TextColor: #156b58;--sapIndicationColor_6b_Background: #cdf5ec;--sapIndicationColor_6b_BorderColor: #cdf5ec;--sapIndicationColor_6b_Hover_Background: #b8f1e4;--sapIndicationColor_7: #5d36ff;--sapIndicationColor_7_Background: #5d36ff;--sapIndicationColor_7_BorderColor: #5d36ff;--sapIndicationColor_7_TextColor: #fff;--sapIndicationColor_7_Hover_Background: #481cff;--sapIndicationColor_7_Active_Background: #fff;--sapIndicationColor_7_Active_BorderColor: #e2dbff;--sapIndicationColor_7_Active_TextColor: #5d36ff;--sapIndicationColor_7_Selected_Background: #fff;--sapIndicationColor_7_Selected_BorderColor: #e2dbff;--sapIndicationColor_7_Selected_TextColor: #5d36ff;--sapIndicationColor_7b: #e2dbff;--sapIndicationColor_7b_TextColor: #5f38ff;--sapIndicationColor_7b_Background: #e2dbff;--sapIndicationColor_7b_BorderColor: #e2dbff;--sapIndicationColor_7b_Hover_Background: #cdc2ff;--sapIndicationColor_8: #a100c2;--sapIndicationColor_8_Background: #a100c2;--sapIndicationColor_8_BorderColor: #a100c2;--sapIndicationColor_8_TextColor: #fff;--sapIndicationColor_8_Hover_Background: #8c00a9;--sapIndicationColor_8_Active_Background: #fff;--sapIndicationColor_8_Active_BorderColor: #f8d6ff;--sapIndicationColor_8_Active_TextColor: #a100c2;--sapIndicationColor_8_Selected_Background: #fff;--sapIndicationColor_8_Selected_BorderColor: #f8d6ff;--sapIndicationColor_8_Selected_TextColor: #a100c2;--sapIndicationColor_8b: #f8d6ff;--sapIndicationColor_8b_TextColor: #a100c2;--sapIndicationColor_8b_Background: #f8d6ff;--sapIndicationColor_8b_BorderColor: #f8d6ff;--sapIndicationColor_8b_Hover_Background: #f4bdff;--sapIndicationColor_9: #1d2d3e;--sapIndicationColor_9_Background: #1d2d3e;--sapIndicationColor_9_BorderColor: #1d2d3e;--sapIndicationColor_9_TextColor: #fff;--sapIndicationColor_9_Hover_Background: #15202d;--sapIndicationColor_9_Active_Background: #fff;--sapIndicationColor_9_Active_BorderColor: #d9d9d9;--sapIndicationColor_9_Active_TextColor: #1d2d3e;--sapIndicationColor_9_Selected_Background: #fff;--sapIndicationColor_9_Selected_BorderColor: #d9d9d9;--sapIndicationColor_9_Selected_TextColor: #1d2d3e;--sapIndicationColor_9b: #fff;--sapIndicationColor_9b_TextColor: #2e2e2e;--sapIndicationColor_9b_Background: #fff;--sapIndicationColor_9b_BorderColor: #d9d9d9;--sapIndicationColor_9b_Hover_Background: #f2f2f2;--sapIndicationColor_10: #45484a;--sapIndicationColor_10_Background: #83888b;--sapIndicationColor_10_BorderColor: #83888b;--sapIndicationColor_10_TextColor: #fff;--sapIndicationColor_10_Hover_Background: #767b7e;--sapIndicationColor_10_Active_Background: #fff;--sapIndicationColor_10_Active_BorderColor: #eaecee;--sapIndicationColor_10_Active_TextColor: #45484a;--sapIndicationColor_10_Selected_Background: #fff;--sapIndicationColor_10_Selected_BorderColor: #eaecee;--sapIndicationColor_10_Selected_TextColor: #45484a;--sapIndicationColor_10b: #eaecee;--sapIndicationColor_10b_TextColor: #464646;--sapIndicationColor_10b_Background: #eaecee;--sapIndicationColor_10b_BorderColor: #eaecee;--sapIndicationColor_10b_Hover_Background: #dcdfe3;--sapLegend_WorkingBackground: #fff;--sapLegend_NonWorkingBackground: #ebebeb;--sapLegend_CurrentDateTime: #a100c2;--sapLegendColor1: #c35500;--sapLegendColor2: #d23a0a;--sapLegendColor3: #df1278;--sapLegendColor4: #840606;--sapLegendColor5: #cc00dc;--sapLegendColor6: #0057d2;--sapLegendColor7: #07838f;--sapLegendColor8: #188918;--sapLegendColor9: #5b738b;--sapLegendColor10: #7800a4;--sapLegendColor11: #a93e00;--sapLegendColor12: #aa2608;--sapLegendColor13: #ba066c;--sapLegendColor14: #8d2a00;--sapLegendColor15: #4e247a;--sapLegendColor16: #002a86;--sapLegendColor17: #035663;--sapLegendColor18: #1e592f;--sapLegendColor19: #1a4796;--sapLegendColor20: #470ced;--sapLegendBackgroundColor1: #ffef9f;--sapLegendBackgroundColor2: #feeae1;--sapLegendBackgroundColor3: #fbf6f8;--sapLegendBackgroundColor4: #fbebeb;--sapLegendBackgroundColor5: #ffe5fe;--sapLegendBackgroundColor6: #d1efff;--sapLegendBackgroundColor7: #c2fcee;--sapLegendBackgroundColor8: #f5fae5;--sapLegendBackgroundColor9: #f5f6f7;--sapLegendBackgroundColor10: #fff0fa;--sapLegendBackgroundColor11: #fff8d6;--sapLegendBackgroundColor12: #fff6f6;--sapLegendBackgroundColor13: #f7ebef;--sapLegendBackgroundColor14: #f1ecd5;--sapLegendBackgroundColor15: #f0e7f8;--sapLegendBackgroundColor16: #ebf8ff;--sapLegendBackgroundColor17: #dafdf5;--sapLegendBackgroundColor18: #ebf5cb;--sapLegendBackgroundColor19: #fafdff;--sapLegendBackgroundColor20: #eceeff;--sapChart_Background: #fff;--sapChart_ContrastTextShadow: 0 0 .0625rem rgba(0,0,0,.7);--sapChart_ContrastShadowColor: #fff;--sapChart_ContrastLineColor: #fff;--sapChart_LineColor_1: #e1e6eb;--sapChart_LineColor_2: #768da4;--sapChart_LineColor_3: #000001;--sapChart_Choropleth_Background: #edf0f3;--sapChart_ChoroplethRegion_Background: #758ca4;--sapChart_ChoroplethRegion_BorderColor: #edf0f3;--sapChart_Data_TextColor: #000;--sapChart_Data_ContrastTextColor: #fff;--sapChart_Data_InteractiveColor: #000001;--sapChart_Data_Active_Background: #dee2e5;--sapChart_IBCS_Actual: #233649;--sapChart_IBCS_Previous: #758ca4;--sapChart_IBCS_Good: #287a40;--sapChart_IBCS_Bad: #d00a0a;--sapChart_OrderedColor_1: #168eff;--sapChart_OrderedColor_2: #c87b00;--sapChart_OrderedColor_3: #75980b;--sapChart_OrderedColor_4: #df1278;--sapChart_OrderedColor_5: #8b47d7;--sapChart_OrderedColor_6: #049f9a;--sapChart_OrderedColor_7: #0070f2;--sapChart_OrderedColor_8: #cc00dc;--sapChart_OrderedColor_9: #798c77;--sapChart_OrderedColor_10: #da6c6c;--sapChart_OrderedColor_11: #5d36ff;--sapChart_OrderedColor_12: #a68a5b;--sapChart_Bad: #f53232;--sapChart_Critical: #e26300;--sapChart_Good: #30914c;--sapChart_Neutral: #758ca4;--sapChart_Sequence_1_Plus3: #8bc7ff;--sapChart_Sequence_1_Plus3_TextColor: #000;--sapChart_Sequence_1_Plus3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_1_Plus2: #62b3ff;--sapChart_Sequence_1_Plus2_TextColor: #000;--sapChart_Sequence_1_Plus2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_1_Plus1: #3fa2ff;--sapChart_Sequence_1_Plus1_TextColor: #000;--sapChart_Sequence_1_Plus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_1: #168eff;--sapChart_Sequence_1_TextColor: #000;--sapChart_Sequence_1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_1_BorderColor: #0074e2;--sapChart_Sequence_1_Minus1: #0074e2;--sapChart_Sequence_1_Minus1_TextColor: #fff;--sapChart_Sequence_1_Minus1_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_1_Minus2: #0065c3;--sapChart_Sequence_1_Minus2_TextColor: #fff;--sapChart_Sequence_1_Minus2_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_1_Minus3: #0055a5;--sapChart_Sequence_1_Minus3_TextColor: #fff;--sapChart_Sequence_1_Minus3_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_1_Minus4: #003b72;--sapChart_Sequence_1_Minus4_TextColor: #fff;--sapChart_Sequence_1_Minus4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_1_Minus5: #00305d;--sapChart_Sequence_1_Minus5_TextColor: #fff;--sapChart_Sequence_1_Minus5_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_2_Plus3: #efbf72;--sapChart_Sequence_2_Plus3_TextColor: #000;--sapChart_Sequence_2_Plus3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_2_Plus2: #eaaa44;--sapChart_Sequence_2_Plus2_TextColor: #000;--sapChart_Sequence_2_Plus2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_2_Plus1: #e29419;--sapChart_Sequence_2_Plus1_TextColor: #000;--sapChart_Sequence_2_Plus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_2: #c87b00;--sapChart_Sequence_2_TextColor: #000;--sapChart_Sequence_2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_2_BorderColor: #9f6200;--sapChart_Sequence_2_Minus1: #9f6200;--sapChart_Sequence_2_Minus1_TextColor: #fff;--sapChart_Sequence_2_Minus1_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_2_Minus2: #7c4c00;--sapChart_Sequence_2_Minus2_TextColor: #fff;--sapChart_Sequence_2_Minus2_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_2_Minus3: #623c00;--sapChart_Sequence_2_Minus3_TextColor: #fff;--sapChart_Sequence_2_Minus3_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_2_Minus4: #492d00;--sapChart_Sequence_2_Minus4_TextColor: #fff;--sapChart_Sequence_2_Minus4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_2_Minus5: #2f1d00;--sapChart_Sequence_2_Minus5_TextColor: #fff;--sapChart_Sequence_2_Minus5_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_3_Plus3: #b9d369;--sapChart_Sequence_3_Plus3_TextColor: #000;--sapChart_Sequence_3_Plus3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_3_Plus2: #a6c742;--sapChart_Sequence_3_Plus2_TextColor: #000;--sapChart_Sequence_3_Plus2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_3_Plus1: #8fad33;--sapChart_Sequence_3_Plus1_TextColor: #000;--sapChart_Sequence_3_Plus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_3: #75980b;--sapChart_Sequence_3_TextColor: #000;--sapChart_Sequence_3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_3_BorderColor: #587208;--sapChart_Sequence_3_Minus1: #587208;--sapChart_Sequence_3_Minus1_TextColor: #fff;--sapChart_Sequence_3_Minus1_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_3_Minus2: #3e5106;--sapChart_Sequence_3_Minus2_TextColor: #fff;--sapChart_Sequence_3_Minus2_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_3_Minus3: #2c3904;--sapChart_Sequence_3_Minus3_TextColor: #fff;--sapChart_Sequence_3_Minus3_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_3_Minus4: #212b03;--sapChart_Sequence_3_Minus4_TextColor: #fff;--sapChart_Sequence_3_Minus4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_3_Minus5: #161c02;--sapChart_Sequence_3_Minus5_TextColor: #fff;--sapChart_Sequence_3_Minus5_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_4_Plus3: #f473b3;--sapChart_Sequence_4_Plus3_TextColor: #000;--sapChart_Sequence_4_Plus3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_4_Plus2: #f14d9e;--sapChart_Sequence_4_Plus2_TextColor: #000;--sapChart_Sequence_4_Plus2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_4_Plus1: #ee278a;--sapChart_Sequence_4_Plus1_TextColor: #000;--sapChart_Sequence_4_Plus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_4: #df1278;--sapChart_Sequence_4_TextColor: #fff;--sapChart_Sequence_4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_4_BorderColor: #df1278;--sapChart_Sequence_4_Minus1: #b90f64;--sapChart_Sequence_4_Minus1_TextColor: #fff;--sapChart_Sequence_4_Minus1_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_4_Minus2: #930c4f;--sapChart_Sequence_4_Minus2_TextColor: #fff;--sapChart_Sequence_4_Minus2_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_4_Minus3: #770a40;--sapChart_Sequence_4_Minus3_TextColor: #fff;--sapChart_Sequence_4_Minus3_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_4_Minus4: #51072c;--sapChart_Sequence_4_Minus4_TextColor: #fff;--sapChart_Sequence_4_Minus4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_4_Minus5: #3a051f;--sapChart_Sequence_4_Minus5_TextColor: #fff;--sapChart_Sequence_4_Minus5_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_5_Plus3: #d5bcf0;--sapChart_Sequence_5_Plus3_TextColor: #000;--sapChart_Sequence_5_Plus3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_5_Plus2: #b994e0;--sapChart_Sequence_5_Plus2_TextColor: #000;--sapChart_Sequence_5_Plus2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_5_Plus1: #a679d8;--sapChart_Sequence_5_Plus1_TextColor: #000;--sapChart_Sequence_5_Plus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_5: #8b47d7;--sapChart_Sequence_5_TextColor: #fff;--sapChart_Sequence_5_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_5_BorderColor: #8b47d7;--sapChart_Sequence_5_Minus1: #7236b5;--sapChart_Sequence_5_Minus1_TextColor: #fff;--sapChart_Sequence_5_Minus1_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_5_Minus2: #5e2c96;--sapChart_Sequence_5_Minus2_TextColor: #fff;--sapChart_Sequence_5_Minus2_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_5_Minus3: #522682;--sapChart_Sequence_5_Minus3_TextColor: #fff;--sapChart_Sequence_5_Minus3_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_5_Minus4: #46216f;--sapChart_Sequence_5_Minus4_TextColor: #fff;--sapChart_Sequence_5_Minus4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_5_Minus5: #341358;--sapChart_Sequence_5_Minus5_TextColor: #fff;--sapChart_Sequence_5_Minus5_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_6_Plus3: #64ede9;--sapChart_Sequence_6_Plus3_TextColor: #000;--sapChart_Sequence_6_Plus3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_6_Plus2: #2ee0da;--sapChart_Sequence_6_Plus2_TextColor: #000;--sapChart_Sequence_6_Plus2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_6_Plus1: #05c7c1;--sapChart_Sequence_6_Plus1_TextColor: #000;--sapChart_Sequence_6_Plus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_6: #049f9a;--sapChart_Sequence_6_TextColor: #000;--sapChart_Sequence_6_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_6_BorderColor: #05c7c1;--sapChart_Sequence_6_Minus1: #02837f;--sapChart_Sequence_6_Minus1_TextColor: #fff;--sapChart_Sequence_6_Minus1_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_6_Minus2: #006663;--sapChart_Sequence_6_Minus2_TextColor: #fff;--sapChart_Sequence_6_Minus2_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_6_Minus3: #00514f;--sapChart_Sequence_6_Minus3_TextColor: #fff;--sapChart_Sequence_6_Minus3_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_6_Minus4: #003d3b;--sapChart_Sequence_6_Minus4_TextColor: #fff;--sapChart_Sequence_6_Minus4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_6_Minus5: #002322;--sapChart_Sequence_6_Minus5_TextColor: #fff;--sapChart_Sequence_6_Minus5_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_7_Plus3: #68aeff;--sapChart_Sequence_7_Plus3_TextColor: #000;--sapChart_Sequence_7_Plus3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_7_Plus2: #4098ff;--sapChart_Sequence_7_Plus2_TextColor: #000;--sapChart_Sequence_7_Plus2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_7_Plus1: #1c85ff;--sapChart_Sequence_7_Plus1_TextColor: #000;--sapChart_Sequence_7_Plus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_7: #0070f2;--sapChart_Sequence_7_TextColor: #fff;--sapChart_Sequence_7_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_7_BorderColor: #0070f2;--sapChart_Sequence_7_Minus1: #0062d3;--sapChart_Sequence_7_Minus1_TextColor: #fff;--sapChart_Sequence_7_Minus1_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_7_Minus2: #0054b5;--sapChart_Sequence_7_Minus2_TextColor: #fff;--sapChart_Sequence_7_Minus2_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_7_Minus3: #00418c;--sapChart_Sequence_7_Minus3_TextColor: #fff;--sapChart_Sequence_7_Minus3_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_7_Minus4: #00244f;--sapChart_Sequence_7_Minus4_TextColor: #fff;--sapChart_Sequence_7_Minus4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_7_Minus5: #001b3a;--sapChart_Sequence_7_Minus5_TextColor: #fff;--sapChart_Sequence_7_Minus5_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_8_Plus3: #f462ff;--sapChart_Sequence_8_Plus3_TextColor: #000;--sapChart_Sequence_8_Plus3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_8_Plus2: #f034ff;--sapChart_Sequence_8_Plus2_TextColor: #000;--sapChart_Sequence_8_Plus2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_8_Plus1: #ed0bff;--sapChart_Sequence_8_Plus1_TextColor: #000;--sapChart_Sequence_8_Plus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_8: #cc00dc;--sapChart_Sequence_8_TextColor: #fff;--sapChart_Sequence_8_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_8_BorderColor: #cc00dc;--sapChart_Sequence_8_Minus1: #a600b3;--sapChart_Sequence_8_Minus1_TextColor: #fff;--sapChart_Sequence_8_Minus1_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_8_Minus2: #80008a;--sapChart_Sequence_8_Minus2_TextColor: #fff;--sapChart_Sequence_8_Minus2_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_8_Minus3: #6d0076;--sapChart_Sequence_8_Minus3_TextColor: #fff;--sapChart_Sequence_8_Minus3_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_8_Minus4: #56005d;--sapChart_Sequence_8_Minus4_TextColor: #fff;--sapChart_Sequence_8_Minus4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_8_Minus5: #350039;--sapChart_Sequence_8_Minus5_TextColor: #fff;--sapChart_Sequence_8_Minus5_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_9_Plus3: #bdc6bc;--sapChart_Sequence_9_Plus3_TextColor: #000;--sapChart_Sequence_9_Plus3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_9_Plus2: #b5bfb4;--sapChart_Sequence_9_Plus2_TextColor: #000;--sapChart_Sequence_9_Plus2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_9_Plus1: #97a695;--sapChart_Sequence_9_Plus1_TextColor: #000;--sapChart_Sequence_9_Plus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_9: #798c77;--sapChart_Sequence_9_TextColor: #000;--sapChart_Sequence_9_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_9_BorderColor: #798c77;--sapChart_Sequence_9_Minus1: #667664;--sapChart_Sequence_9_Minus1_TextColor: #fff;--sapChart_Sequence_9_Minus1_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_9_Minus2: #536051;--sapChart_Sequence_9_Minus2_TextColor: #fff;--sapChart_Sequence_9_Minus2_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_9_Minus3: #404a3f;--sapChart_Sequence_9_Minus3_TextColor: #fff;--sapChart_Sequence_9_Minus3_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_9_Minus4: #2d342c;--sapChart_Sequence_9_Minus4_TextColor: #fff;--sapChart_Sequence_9_Minus4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_9_Minus5: #1e231e;--sapChart_Sequence_9_Minus5_TextColor: #fff;--sapChart_Sequence_9_Minus5_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_10_Plus3: #f1c6c6;--sapChart_Sequence_10_Plus3_TextColor: #000;--sapChart_Sequence_10_Plus3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_10_Plus2: #eaadad;--sapChart_Sequence_10_Plus2_TextColor: #000;--sapChart_Sequence_10_Plus2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_10_Plus1: #e28d8d;--sapChart_Sequence_10_Plus1_TextColor: #000;--sapChart_Sequence_10_Plus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_10: #da6c6c;--sapChart_Sequence_10_TextColor: #000;--sapChart_Sequence_10_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_10_BorderColor: #b75757;--sapChart_Sequence_10_Minus1: #b75757;--sapChart_Sequence_10_Minus1_TextColor: #000;--sapChart_Sequence_10_Minus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_10_Minus2: #9d4343;--sapChart_Sequence_10_Minus2_TextColor: #fff;--sapChart_Sequence_10_Minus2_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_10_Minus3: #803737;--sapChart_Sequence_10_Minus3_TextColor: #fff;--sapChart_Sequence_10_Minus3_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_10_Minus4: #672c2c;--sapChart_Sequence_10_Minus4_TextColor: #fff;--sapChart_Sequence_10_Minus4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_10_Minus5: #562424;--sapChart_Sequence_10_Minus5_TextColor: #fff;--sapChart_Sequence_10_Minus5_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_11_Plus3: #c0b0ff;--sapChart_Sequence_11_Plus3_TextColor: #000;--sapChart_Sequence_11_Plus3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_11_Plus2: #9b83ff;--sapChart_Sequence_11_Plus2_TextColor: #000;--sapChart_Sequence_11_Plus2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_11_Plus1: #8669ff;--sapChart_Sequence_11_Plus1_TextColor: #000;--sapChart_Sequence_11_Plus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_11: #5d36ff;--sapChart_Sequence_11_TextColor: #fff;--sapChart_Sequence_11_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_11_BorderColor: #5d36ff;--sapChart_Sequence_11_Minus1: #4b25e7;--sapChart_Sequence_11_Minus1_TextColor: #fff;--sapChart_Sequence_11_Minus1_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_11_Minus2: #3a17cd;--sapChart_Sequence_11_Minus2_TextColor: #fff;--sapChart_Sequence_11_Minus2_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_11_Minus3: #2f13a8;--sapChart_Sequence_11_Minus3_TextColor: #fff;--sapChart_Sequence_11_Minus3_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_11_Minus4: #250f83;--sapChart_Sequence_11_Minus4_TextColor: #fff;--sapChart_Sequence_11_Minus4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_11_Minus5: #180955;--sapChart_Sequence_11_Minus5_TextColor: #fff;--sapChart_Sequence_11_Minus5_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_12_Plus3: #e4ddcf;--sapChart_Sequence_12_Plus3_TextColor: #000;--sapChart_Sequence_12_Plus3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_12_Plus2: #dacebb;--sapChart_Sequence_12_Plus2_TextColor: #000;--sapChart_Sequence_12_Plus2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_12_Plus1: #c4b293;--sapChart_Sequence_12_Plus1_TextColor: #000;--sapChart_Sequence_12_Plus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_12: #a68a5b;--sapChart_Sequence_12_TextColor: #000;--sapChart_Sequence_12_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_12_BorderColor: #a68a5b;--sapChart_Sequence_12_Minus1: #8c744c;--sapChart_Sequence_12_Minus1_TextColor: #fff;--sapChart_Sequence_12_Minus1_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_12_Minus2: #786441;--sapChart_Sequence_12_Minus2_TextColor: #fff;--sapChart_Sequence_12_Minus2_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_12_Minus3: #5e4e33;--sapChart_Sequence_12_Minus3_TextColor: #fff;--sapChart_Sequence_12_Minus3_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_12_Minus4: #433825;--sapChart_Sequence_12_Minus4_TextColor: #fff;--sapChart_Sequence_12_Minus4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_12_Minus5: #30271a;--sapChart_Sequence_12_Minus5_TextColor: #fff;--sapChart_Sequence_12_Minus5_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Bad_Plus3: #fdcece;--sapChart_Sequence_Bad_Plus3_TextColor: #000;--sapChart_Sequence_Bad_Plus3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_Bad_Plus2: #fa9d9d;--sapChart_Sequence_Bad_Plus2_TextColor: #000;--sapChart_Sequence_Bad_Plus2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_Bad_Plus1: #f86c6c;--sapChart_Sequence_Bad_Plus1_TextColor: #000;--sapChart_Sequence_Bad_Plus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_Bad: #f53232;--sapChart_Sequence_Bad_TextColor: #000;--sapChart_Sequence_Bad_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_Bad_BorderColor: #f53232;--sapChart_Sequence_Bad_Minus1: #d00a0a;--sapChart_Sequence_Bad_Minus1_TextColor: #fff;--sapChart_Sequence_Bad_Minus1_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Bad_Minus2: #a90808;--sapChart_Sequence_Bad_Minus2_TextColor: #fff;--sapChart_Sequence_Bad_Minus2_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Bad_Minus3: #830606;--sapChart_Sequence_Bad_Minus3_TextColor: #fff;--sapChart_Sequence_Bad_Minus3_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Bad_Minus4: #570404;--sapChart_Sequence_Bad_Minus4_TextColor: #fff;--sapChart_Sequence_Bad_Minus4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Bad_Minus5: #320000;--sapChart_Sequence_Bad_Minus5_TextColor: #fff;--sapChart_Sequence_Bad_Minus5_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Critical_Plus3: #ffb881;--sapChart_Sequence_Critical_Plus3_TextColor: #000;--sapChart_Sequence_Critical_Plus3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_Critical_Plus2: #ff933f;--sapChart_Sequence_Critical_Plus2_TextColor: #000;--sapChart_Sequence_Critical_Plus2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_Critical_Plus1: #ff760c;--sapChart_Sequence_Critical_Plus1_TextColor: #000;--sapChart_Sequence_Critical_Plus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_Critical: #e26300;--sapChart_Sequence_Critical_TextColor: #000;--sapChart_Sequence_Critical_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_Critical_BorderColor: #e26300;--sapChart_Sequence_Critical_Minus1: #c35600;--sapChart_Sequence_Critical_Minus1_TextColor: #fff;--sapChart_Sequence_Critical_Minus1_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Critical_Minus2: #aa4a00;--sapChart_Sequence_Critical_Minus2_TextColor: #fff;--sapChart_Sequence_Critical_Minus2_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Critical_Minus3: #903f00;--sapChart_Sequence_Critical_Minus3_TextColor: #fff;--sapChart_Sequence_Critical_Minus3_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Critical_Minus4: #6d3000;--sapChart_Sequence_Critical_Minus4_TextColor: #fff;--sapChart_Sequence_Critical_Minus4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Critical_Minus5: #492000;--sapChart_Sequence_Critical_Minus5_TextColor: #fff;--sapChart_Sequence_Critical_Minus5_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Good_Plus3: #88d79f;--sapChart_Sequence_Good_Plus3_TextColor: #000;--sapChart_Sequence_Good_Plus3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_Good_Plus2: #56c776;--sapChart_Sequence_Good_Plus2_TextColor: #000;--sapChart_Sequence_Good_Plus2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_Good_Plus1: #3ab05c;--sapChart_Sequence_Good_Plus1_TextColor: #000;--sapChart_Sequence_Good_Plus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_Good: #30914c;--sapChart_Sequence_Good_TextColor: #000;--sapChart_Sequence_Good_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_Good_BorderColor: #30914c;--sapChart_Sequence_Good_Minus1: #287a40;--sapChart_Sequence_Good_Minus1_TextColor: #fff;--sapChart_Sequence_Good_Minus1_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Good_Minus2: #226736;--sapChart_Sequence_Good_Minus2_TextColor: #fff;--sapChart_Sequence_Good_Minus2_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Good_Minus3: #1c542c;--sapChart_Sequence_Good_Minus3_TextColor: #fff;--sapChart_Sequence_Good_Minus3_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Good_Minus4: #13391e;--sapChart_Sequence_Good_Minus4_TextColor: #fff;--sapChart_Sequence_Good_Minus4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Good_Minus5: #0a1e10;--sapChart_Sequence_Good_Minus5_TextColor: #fff;--sapChart_Sequence_Good_Minus5_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Neutral_Plus3: #edf0f3;--sapChart_Sequence_Neutral_Plus3_TextColor: #000;--sapChart_Sequence_Neutral_Plus3_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_Neutral_Plus2: #c2ccd7;--sapChart_Sequence_Neutral_Plus2_TextColor: #000;--sapChart_Sequence_Neutral_Plus2_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_Neutral_Plus1: #9aabbc;--sapChart_Sequence_Neutral_Plus1_TextColor: #000;--sapChart_Sequence_Neutral_Plus1_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_Neutral: #758ca4;--sapChart_Sequence_Neutral_TextColor: #000;--sapChart_Sequence_Neutral_TextShadow: 0 0 .125rem #fff;--sapChart_Sequence_Neutral_BorderColor: #758ca4;--sapChart_Sequence_Neutral_Minus1: #5b728b;--sapChart_Sequence_Neutral_Minus1_TextColor: #fff;--sapChart_Sequence_Neutral_Minus1_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Neutral_Minus2: #495e74;--sapChart_Sequence_Neutral_Minus2_TextColor: #fff;--sapChart_Sequence_Neutral_Minus2_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Neutral_Minus3: #364a5f;--sapChart_Sequence_Neutral_Minus3_TextColor: #fff;--sapChart_Sequence_Neutral_Minus3_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Neutral_Minus4: #233649;--sapChart_Sequence_Neutral_Minus4_TextColor: #fff;--sapChart_Sequence_Neutral_Minus4_TextShadow: 0 0 .125rem #223548;--sapChart_Sequence_Neutral_Minus5: #1a2633;--sapChart_Sequence_Neutral_Minus5_TextColor: #fff;--sapChart_Sequence_Neutral_Minus5_TextShadow: 0 0 .125rem #223548;--sapBreakpoint_S_Min: 0;--sapBreakpoint_M_Min: 600px;--sapBreakpoint_L_Min: 1024px;--sapBreakpoint_XL_Min: 1440px;--sapSapThemeId: sap_horizon;--sapHighlightTextColor: #fff;--sapButton_Emphasized_FontWeight: bold;--sapShell_BackgroundGradient: linear-gradient(to bottom, #eff1f2, #eff1f2);--sapAt: @ +}`,Ec=`:host{--ui5-avatar-hover-box-shadow-offset: 0px 0px 0px .0625rem var(--sapAvatar_Hover_BorderColor);--ui5-avatar-initials-color: var(--sapContent_ImagePlaceholderForegroundColor);--ui5-avatar-border-radius: var(--sapElement_BorderCornerRadius);--ui5-avatar-border-radius-img-deduction: .0625rem;--ui5-avatar-initials-border: .0625rem solid var(--sapAvatar_1_BorderColor);--ui5-avatar-optional-border: .0625rem solid var(--sapGroup_ContentBorderColor);--ui5-avatar-accent1: var(--sapAvatar_1_Background);--ui5-avatar-accent2: var(--sapAvatar_2_Background);--ui5-avatar-accent3: var(--sapAvatar_3_Background);--ui5-avatar-accent4: var(--sapAvatar_4_Background);--ui5-avatar-accent5: var(--sapAvatar_5_Background);--ui5-avatar-accent6: var(--sapAvatar_6_Background);--ui5-avatar-accent7: var(--sapAvatar_7_Background);--ui5-avatar-accent8: var(--sapAvatar_8_Background);--ui5-avatar-accent9: var(--sapAvatar_9_Background);--ui5-avatar-accent10: var(--sapAvatar_10_Background);--ui5-avatar-placeholder: var(--sapContent_ImagePlaceholderBackground);--ui5-avatar-accent1-color: var(--sapAvatar_1_TextColor);--ui5-avatar-accent2-color: var(--sapAvatar_2_TextColor);--ui5-avatar-accent3-color: var(--sapAvatar_3_TextColor);--ui5-avatar-accent4-color: var(--sapAvatar_4_TextColor);--ui5-avatar-accent5-color: var(--sapAvatar_5_TextColor);--ui5-avatar-accent6-color: var(--sapAvatar_6_TextColor);--ui5-avatar-accent7-color: var(--sapAvatar_7_TextColor);--ui5-avatar-accent8-color: var(--sapAvatar_8_TextColor);--ui5-avatar-accent9-color: var(--sapAvatar_9_TextColor);--ui5-avatar-accent10-color: var(--sapAvatar_10_TextColor);--ui5-avatar-placeholder-color: var(--ui5-avatar-initials-color);--ui5-avatar-accent1-border-color: var(--sapAvatar_1_BorderColor);--ui5-avatar-accent2-border-color: var(--sapAvatar_2_BorderColor);--ui5-avatar-accent3-border-color: var(--sapAvatar_3_BorderColor);--ui5-avatar-accent4-border-color: var(--sapAvatar_4_BorderColor);--ui5-avatar-accent5-border-color: var(--sapAvatar_5_BorderColor);--ui5-avatar-accent6-border-color: var(--sapAvatar_6_BorderColor);--ui5-avatar-accent7-border-color: var(--sapAvatar_7_BorderColor);--ui5-avatar-accent8-border-color: var(--sapAvatar_8_BorderColor);--ui5-avatar-accent9-border-color: var(--sapAvatar_9_BorderColor);--ui5-avatar-accent10-border-color: var(--sapAvatar_10_BorderColor);--_ui5_avatar_outline: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);--_ui5_avatar_focus_offset: .1875rem;--_ui5_avatar_overflow_button_focus_offset: .0625rem;--_ui5_avatar_fontsize_XS: 1rem;--_ui5_avatar_fontsize_S: 1.125rem;--_ui5_avatar_fontsize_M: 1.5rem;--_ui5_avatar_fontsize_L: 2.25rem;--_ui5_avatar_fontsize_XL: 3rem;--_ui5_avatar_icon_XS: var(--_ui5_avatar_fontsize_XS);--_ui5_avatar_icon_S: var(--_ui5_avatar_fontsize_S);--_ui5_avatar_icon_M: var(--_ui5_avatar_fontsize_M);--_ui5_avatar_icon_L: var(--_ui5_avatar_fontsize_L);--_ui5_avatar_icon_XL: var(--_ui5_avatar_fontsize_XL);--_ui5_avatar_group_button_focus_border: none;--_ui5_avatar_group_padding: .3rem;--_ui5-tag-height: 1rem;--_ui5-tag-padding-inline-icon-only: .313rem;--_ui5-tag-text-padding: .1875rem .25rem;--_ui5-tag-text-transform: none;--_ui5-tag-icon-width: .75rem;--_ui5-tag-icon-gap: .25rem;--_ui5-tag-font-weight: normal;--_ui5-tag-letter-spacing: normal;--ui5-tag-text-shadow: var(--sapContent_TextShadow);--ui5-tag-contrast-text-shadow: var(--sapContent_ContrastTextShadow);--ui5-tag-information-text-shadow: var(--ui5-tag-text-shadow);--ui5-tag-set2-color-scheme-1-color: var(--sapIndicationColor_1b_TextColor);--ui5-tag-set2-color-scheme-1-background: var(--sapIndicationColor_1b_Background);--ui5-tag-set2-color-scheme-1-border: var(--sapIndicationColor_1b_BorderColor);--ui5-tag-set2-color-scheme-1-hover-background: var(--sapIndicationColor_1b_Hover_Background);--ui5-tag-set2-color-scheme-1-active-color: var(--sapIndicationColor_1_Active_TextColor);--ui5-tag-set2-color-scheme-1-active-background: var(--sapIndicationColor_1_Active_Background);--ui5-tag-set2-color-scheme-1-active-border: var(--sapIndicationColor_1_Active_BorderColor);--ui5-tag-set2-color-scheme-2-color: var(--sapIndicationColor_2b_TextColor);--ui5-tag-set2-color-scheme-2-background: var(--sapIndicationColor_2b_Background);--ui5-tag-set2-color-scheme-2-border: var(--sapIndicationColor_2b_BorderColor);--ui5-tag-set2-color-scheme-2-hover-background: var(--sapIndicationColor_2b_Hover_Background);--ui5-tag-set2-color-scheme-2-active-color: var(--sapIndicationColor_2_Active_TextColor);--ui5-tag-set2-color-scheme-2-active-background: var(--sapIndicationColor_2_Active_Background);--ui5-tag-set2-color-scheme-2-active-border: var(--sapIndicationColor_2_Active_BorderColor);--ui5-tag-set2-color-scheme-3-color: var(--sapIndicationColor_3b_TextColor);--ui5-tag-set2-color-scheme-3-background: var(--sapIndicationColor_3b_Background);--ui5-tag-set2-color-scheme-3-border: var(--sapIndicationColor_3b_BorderColor);--ui5-tag-set2-color-scheme-3-hover-background: var(--sapIndicationColor_3b_Hover_Background);--ui5-tag-set2-color-scheme-3-active-color: var(--sapIndicationColor_3_Active_TextColor);--ui5-tag-set2-color-scheme-3-active-background: var(--sapIndicationColor_3_Active_Background);--ui5-tag-set2-color-scheme-3-active-border: var(--sapIndicationColor_3_Active_BorderColor);--ui5-tag-set2-color-scheme-4-color: var(--sapIndicationColor_4b_TextColor);--ui5-tag-set2-color-scheme-4-background: var(--sapIndicationColor_4b_Background);--ui5-tag-set2-color-scheme-4-border: var(--sapIndicationColor_4b_BorderColor);--ui5-tag-set2-color-scheme-4-hover-background: var(--sapIndicationColor_4b_Hover_Background);--ui5-tag-set2-color-scheme-4-active-color: var(--sapIndicationColor_4_Active_TextColor);--ui5-tag-set2-color-scheme-4-active-background: var(--sapIndicationColor_4_Active_Background);--ui5-tag-set2-color-scheme-4-active-border: var(--sapIndicationColor_4_Active_BorderColor);--ui5-tag-set2-color-scheme-5-color: var(--sapIndicationColor_5b_TextColor);--ui5-tag-set2-color-scheme-5-background: var(--sapIndicationColor_5b_Background);--ui5-tag-set2-color-scheme-5-border: var(--sapIndicationColor_5b_BorderColor);--ui5-tag-set2-color-scheme-5-hover-background: var(--sapIndicationColor_5b_Hover_Background);--ui5-tag-set2-color-scheme-5-active-color: var(--sapIndicationColor_5_Active_TextColor);--ui5-tag-set2-color-scheme-5-active-background: var(--sapIndicationColor_5_Active_Background);--ui5-tag-set2-color-scheme-5-active-border: var(--sapIndicationColor_5_Active_BorderColor);--ui5-tag-set2-color-scheme-6-color: var(--sapIndicationColor_6b_TextColor);--ui5-tag-set2-color-scheme-6-background: var(--sapIndicationColor_6b_Background);--ui5-tag-set2-color-scheme-6-border: var(--sapIndicationColor_6b_BorderColor);--ui5-tag-set2-color-scheme-6-hover-background: var(--sapIndicationColor_6b_Hover_Background);--ui5-tag-set2-color-scheme-6-active-color: var(--sapIndicationColor_6_Active_TextColor);--ui5-tag-set2-color-scheme-6-active-background: var(--sapIndicationColor_6_Active_Background);--ui5-tag-set2-color-scheme-6-active-border: var(--sapIndicationColor_6_Active_BorderColor);--ui5-tag-set2-color-scheme-7-color: var(--sapIndicationColor_7b_TextColor);--ui5-tag-set2-color-scheme-7-background: var(--sapIndicationColor_7b_Background);--ui5-tag-set2-color-scheme-7-border: var(--sapIndicationColor_7b_BorderColor);--ui5-tag-set2-color-scheme-7-hover-background: var(--sapIndicationColor_7b_Hover_Background);--ui5-tag-set2-color-scheme-7-active-color: var(--sapIndicationColor_7_Active_TextColor);--ui5-tag-set2-color-scheme-7-active-background: var(--sapIndicationColor_7_Active_Background);--ui5-tag-set2-color-scheme-7-active-border: var(--sapIndicationColor_7_Active_BorderColor);--ui5-tag-set2-color-scheme-8-color: var(--sapIndicationColor_8b_TextColor);--ui5-tag-set2-color-scheme-8-background: var(--sapIndicationColor_8b_Background);--ui5-tag-set2-color-scheme-8-border: var(--sapIndicationColor_8b_BorderColor);--ui5-tag-set2-color-scheme-8-hover-background: var(--sapIndicationColor_8b_Hover_Background);--ui5-tag-set2-color-scheme-8-active-color: var(--sapIndicationColor_8_Active_TextColor);--ui5-tag-set2-color-scheme-8-active-background: var(--sapIndicationColor_8_Active_Background);--ui5-tag-set2-color-scheme-8-active-border: var(--sapIndicationColor_8_Active_BorderColor);--ui5-tag-set2-color-scheme-9-color: var(--sapIndicationColor_9b_TextColor);--ui5-tag-set2-color-scheme-9-background: var(--sapIndicationColor_9b_Background);--ui5-tag-set2-color-scheme-9-border: var(--sapIndicationColor_9b_BorderColor);--ui5-tag-set2-color-scheme-9-hover-background: var(--sapIndicationColor_9b_Hover_Background);--ui5-tag-set2-color-scheme-9-active-color: var(--sapIndicationColor_9_Active_TextColor);--ui5-tag-set2-color-scheme-9-active-background: var(--sapIndicationColor_9_Active_Background);--ui5-tag-set2-color-scheme-9-active-border: var(--sapIndicationColor_9_Active_BorderColor);--ui5-tag-set2-color-scheme-10-color: var(--sapIndicationColor_10b_TextColor);--ui5-tag-set2-color-scheme-10-background: var(--sapIndicationColor_10b_Background);--ui5-tag-set2-color-scheme-10-border: var(--sapIndicationColor_10b_BorderColor);--ui5-tag-set2-color-scheme-10-hover-background: var(--sapIndicationColor_10b_Hover_Background);--ui5-tag-set2-color-scheme-10-active-color: var(--sapIndicationColor_10_Active_TextColor);--ui5-tag-set2-color-scheme-10-active-background: var(--sapIndicationColor_10_Active_Background);--ui5-tag-set2-color-scheme-10-active-border: var(--sapIndicationColor_10_Active_BorderColor);--_ui5-tag-height_size_l: 1.5rem;--_ui5-tag-min-width_size_l: 1.75rem;--_ui5-tag-font-size_size_l: 1.25rem;--_ui5-tag-icon_min_width_size_l: 1.25rem;--_ui5-tag-icon_min_height_size_l: 1.25rem;--_ui5-tag-icon_height_size_l: 1.25rem;--_ui5-tag-text_padding_size_l: .125rem .25rem;--_ui5_bar_base_height: var(--_ui5-compact-size, 2.5rem) var(--_ui5-cozy-size, 2.75rem);--_ui5_bar_subheader_height: var(--_ui5-compact-size, 2.25rem) var(--_ui5-cozy-size, 3rem);--_ui5_bar-start-container-padding-start: 1rem;--_ui5_bar-mid-container-padding-start-end: .5rem;--_ui5_bar-end-container-padding-end: 1rem;--_ui5_bar_subheader_margin-top: -.0625rem;--_ui5_breadcrumbs_current_location_color: var(--sapTextColor);--_ui5_breadcrumbs_separator_color: var(--sapTextColor);--_ui5_breadcrumbs_margin: 0 0 .5rem 0;--_ui5_busy_indicator_color: var(--sapContent_BusyColor);--_ui5_busy_indicator_focus_outline: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);--_ui5-button-badge-diameter: var(--_ui5-compact-size, .625rem) var(--_ui5-cozy-size, .75rem);--_ui5-calendar-legend-root-padding: var(--_ui5-compact-size, .5rem) var(--_ui5-cozy-size, .75rem);--_ui5-calendar-legend-root-width: var(--_ui5-compact-size, 16.75rem) var(--_ui5-cozy-size, 18.5rem);--_ui5-calendar-legend-item-box-margin: .25rem;--_ui5-calendar-legend-item-root-focus-border: var(--sapContent_FocusWidth) solid var(--sapContent_FocusColor);--_ui5-calendar-legend-item-root-focus-border-radius: .25rem;--_ui5-calendar-legend-item-root-width: 7.75rem;--_ui5-calendar-legend-item-box-dot-display: block;--_ui5_card_box_shadow: var(--sapContent_Shadow0);--_ui5_card_hover_box_shadow: var(--sapContent_Shadow2);--_ui5_card_border: none;--_ui5_card_border-radius: var(--sapTile_BorderCornerRadius);--_ui5_card_header_padding: 1rem 1rem .75rem 1rem;--_ui5_card_header_hover_bg: var(--sapTile_Hover_Background);--_ui5_card_header_active_bg: var(--sapTile_Active_Background);--_ui5_card_header_border: none;--_ui5_card_header_border_color: var(--sapTile_SeparatorColor);--_ui5_card_header_focus_border: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);--_ui5_card_header_focus_radius: var(--_ui5_card_border-radius);--_ui5_card_header_focus_bottom_radius: 0px;--_ui5_card_header_focus_offset: 0px;--_ui5_card_header_title_font_family: var(--sapFontHeaderFamily);--_ui5_card_header_title_font_size: var(--sapFontHeader6Size);--_ui5_card_header_title_font_weight: normal;--_ui5_card_header_subtitle_margin_top: .25rem;--ui5_carousel_background_color_solid: var(--sapGroup_ContentBackground);--ui5_carousel_background_color_translucent: var(--sapBackgroundColor);--ui5_carousel_button_size: 2.25rem;--ui5_carousel_inactive_dot_size: .25rem;--ui5_carousel_inactive_dot_margin: 0 .375rem;--ui5_carousel_inactive_dot_border: 1px solid var(--sapContent_ForegroundBorderColor);--ui5_carousel_inactive_dot_background: var(--sapContent_ForegroundBorderColor);--ui5_carousel_active_dot_border: 1px solid var(--sapContent_Selected_ForegroundColor);--ui5_carousel_active_dot_background: var(--sapContent_Selected_ForegroundColor);--ui5_carousel_navigation_button_active_box_shadow: none;--_ui5_checkbox_wrapper_padding: var(--_ui5-compact-size, var(--_ui5_checkbox_compact_wrapper_padding)) var(--_ui5-cozy-size, .6875rem);--_ui5_checkbox_width_height: var(--_ui5-compact-size, var(--_ui5_checkbox_compact_width_height)) var(--_ui5-cozy-size, 2.75rem);--_ui5_checkbox_transition: unset;--_ui5_checkbox_disabled_opacity: var(--sapContent_DisabledOpacity);--_ui5_checkbox_border_radius: 0;--_ui5_checkbox_hover_background: var(--sapField_Selector_Hover_Background);--_ui5_checkbox_active_background: var(--sapContent_Selected_Hover_Background);--_ui5_checkbox_checkmark_warning_color: var(--sapField_WarningColor);--_ui5_checkbox_inner_warning_color: var(--sapField_WarningColor);--_ui5_checkbox_inner_information_color: var(--sapField_InformationColor);--_ui5_checkbox_checkmark_color: var(--sapContent_Selected_ForegroundColor);--_ui5_checkbox_focus_position: var(--_ui5-compact-size, .125rem) var(--_ui5-cozy-size, .3125rem);--_ui5_checkbox_focus_outline: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);--_ui5_checkbox_focus_border_radius: .5rem;--_ui5_checkbox_outer_hover_background: transparent;--_ui5_checkbox_inner_width_height: var(--_ui5-compact-size, var(--_ui5_checkbox_compact_inner_size)) var(--_ui5-cozy-size, 1.375rem);--_ui5_checkbox_inner_border: solid var(--sapField_BorderWidth) var(--sapField_BorderColor);--_ui5_checkbox_inner_hover_border_color: var(--sapField_Hover_BorderColor);--_ui5_checkbox_inner_hover_checked_border_color: var(--sapField_Hover_BorderColor);--_ui5_checkbox_inner_selected_border_color: var(--sapField_BorderColor);--_ui5_checkbox_inner_disabled_border_color: var(--sapField_BorderColor);--_ui5_checkbox_inner_active_border_color: var(--sapField_Hover_BorderColor);--_ui5_checkbox_inner_border_radius: var(--sapField_BorderCornerRadius);--_ui5_checkbox_inner_error_border: var(--sapField_InvalidBorderWidth) solid var(--sapField_InvalidColor);--_ui5_checkbox_inner_warning_border: var(--sapField_WarningBorderWidth) solid var(--sapField_WarningColor);--_ui5_checkbox_inner_information_border: var(--sapField_InformationBorderWidth) solid var(--sapField_InformationColor);--_ui5_checkbox_inner_warning_background_hover: var(--sapField_Selector_Hover_WarningBackground);--_ui5_checkbox_inner_error_background_hover: var(--sapField_Selector_Hover_InvalidBackground);--_ui5_checkbox_inner_success_background_hover: var(--sapField_Selector_Hover_SuccessBackground);--_ui5_checkbox_inner_information_background_hover: var(--sapField_Selector_Hover_InformationBackground);--_ui5_checkbox_inner_success_border: var(--sapField_SuccessBorderWidth) solid var(--sapField_SuccessColor);--_ui5_checkbox_inner_readonly_border: var(--sapElement_BorderWidth) var(--sapField_ReadOnly_BorderColor) dashed;--_ui5_checkbox_inner_background: var(--sapField_Background);--_ui5_checkbox_wrapped_focus_padding: .5rem;--_ui5_checkbox_wrapped_focus_inset_block: var(--_ui5-compact-size, .125rem) var(--_ui5-cozy-size, var(--_ui5_checkbox_focus_position));--_ui5_checkbox_compact_wrapper_padding: .5rem;--_ui5_checkbox_compact_width_height: 2rem;--_ui5_checkbox_compact_inner_size: 1rem;--_ui5_checkbox_compact_focus_position: .375rem;--_ui5_checkbox_label_color: var(--sapField_TextColor);--_ui5_checkbox_label_offset: var(--_ui5-compact-size, var(--_ui5_checkbox_compact_wrapper_padding)) var(--_ui5-cozy-size, var(--_ui5_checkbox_wrapper_padding));--_ui5_checkbox_disabled_label_color: var(--sapContent_LabelColor);--_ui5_checkbox_default_focus_border: none;--_ui5_checkbox_focus_outline_display: block;--_ui5_checkbox_right_focus_distance: .3125rem;--_ui5_checkbox_icon_size: var(--_ui5-compact-size, .75rem) var(--_ui5-cozy-size, 1rem);--_ui5_color-palette-item-after-focus-border-radius: .3125rem;--_ui5_color-palette-item-hover-margin: var(--_ui5-compact-size, .0625rem) var(--_ui5-cozy-size, .0625rem);--_ui5_color-palette-row-height: var(--_ui5-compact-size, 7.5rem) var(--_ui5-cozy-size, 9.5rem);--_ui5_color-palette-button-height: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 3rem);--_ui5_color-palette-item-before-focus-color: .125rem solid var(--sapContent_FocusColor);--_ui5_color-palette-item-before-focus-inset: var(--_ui5-compact-size, -.25rem) var(--_ui5-cozy-size, -.3125rem);--_ui5_color-palette-item-before-focus-hover-inset: -.0625rem;--_ui5_color-palette-item-after-focus-color: .0625rem solid var(--sapContent_ContrastFocusColor);--_ui5_color-palette-item-after-focus-inset: .0625rem;--_ui5_color-palette-item-after-focus-hover-inset: .0625rem;--_ui5_color-palette-item-before-focus-border-radius: .4375rem;--_ui5_color-palette-item-outer-border-radius: .25rem;--_ui5_color-palette-item-inner-border-radius: .1875rem;--_ui5_color-palette-item-hover-outer-border-radius: .4375rem;--_ui5_color-palette-item-hover-inner-border-radius: .375rem;--_ui5_color-palette-item-selected-focused-border-before: -.0625rem;--_ui5_color-palette-item-after-focus-not-selected-border: none;--_ui5_color-palette-item-after-not-focus-color: .0625rem solid var(--sapGroup_ContentBackground);--_ui5_color-palette-item-selected-focused-border: none;--_ui5-color-palette-item-mobile-focus-inset: 0px;--_ui5_color-palette-item-mobile-focus-sides-inset: -.375rem -.375rem;--_ui5_color-palette-item-after-mobile-focus-border: none;--_ui5-color-palette-item-background-color: transparent;--_ui5_color_picker_slider_handle_box_shadow: inset 0 0 0 .125rem var(--sapContent_ContrastShadowColor);--_ui5_color_picker_slider_handle_border: .125rem solid var(--sapField_BorderColor);--_ui5_color_picker_slider_handle_outline_hover: .125rem solid var(--sapContent_FocusColor);--_ui5_color_picker_slider_handle_outline_focus: .125rem solid var(--sapContent_FocusColor);--_ui5_color_picker_slider_handle_inner_border_color: #fff;--_ui5_color_picker_circle_outer_border: .0625rem solid var(--sapContent_ContrastShadowColor);--_ui5_color_picker_circle_inner_border: var(--sapField_Picker_BorderWidth) solid var(--sapField_BorderColor);--_ui5_color_picker_circle_inner_circle_size: .5625rem;--_ui5_color_picker_slider_handle_inline_focus: 1px solid var(--sapContent_ContrastFocusColor);--_ui5_color_picker_slider_handle_container_margin_top: none;--_ui5-datepicker_border_radius: .25rem;--_ui5-datepicker-hover-background: var(--sapField_Hover_Background);--_ui5_daypicker_item_margin: 2px;--_ui5_daypicker_item_border: none;--_ui5_daypicker_item_selected_border_color: var(--sapList_Background);--_ui5_daypicker_daynames_container_height: 2rem;--_ui5_daypicker_weeknumbers_container_padding_top: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2rem);--_ui5_daypicker_item_othermonth_background_color: var(--sapList_Background);--_ui5_daypicker_item_othermonth_color: var(--sapContent_LabelColor);--_ui5_daypicker_item_othermonth_hover_color: var(--sapContent_LabelColor);--_ui5_daypicker_item_border_radius: .4375rem;--_ui5_daypicker_dayname_color: var(--sapContent_LabelColor);--_ui5_daypicker_weekname_color: var(--sapContent_LabelColor);--_ui5_daypicker_item_now_selected_outline_offset: -.25rem;--_ui5_daypicker_item_selected_background: transparent;--_ui5_daypicker_item_selected_daytext_hover_background: transparent;--_ui5_daypicker_item_border_radius_focus_after: .1875rem;--_ui5_daypicker_item_selected_between_border: .5rem;--_ui5_daypicker_item_selected_between_background: var(--sapList_SelectionBackgroundColor);--_ui5_daypicker_item_selected_between_text_font: var(--sapFontFamily);--_ui5_daypicker_item_selected_between_hover_background: var(--sapList_Hover_SelectionBackground);--_ui5_daypicker_item_now_box_shadow: inset 0 0 0 .35rem var(--sapList_Background);--_ui5_daypicker_item_selected_text_outline: .0625rem solid var(--sapContent_FocusColor);--_ui5_daypicker_item_now_not_selected_inset: 0;--_ui5_daypicker_item_now_inset: .3125rem;--_ui5_daypicker_item_now_border_color: var(--sapLegend_CurrentDateTime);--_ui5_daypicker_item_weeekend_filter: brightness(105%);--_ui5_daypicker_item_selected_hover: var(--sapList_Hover_Background);--_ui5_daypicker_item_border_radius_item: .5rem;--_ui5_daypicker_two_calendar_item_now_inset: .3125rem;--_ui5_daypicker_item_selected__secondary_type_text_outline: .0625rem solid var(--sapContent_FocusColor);--_ui5_daypicker_two_calendar_item_now_day_text_content: "";--_ui5_daypicker_two_calendar_item_now_selected_border_width: .125rem;--_ui5_daypicker_two_calendar_item_border_radius: .5rem;--_ui5_daypicker_two_calendar_item_border_focus_border_radius: .375rem;--_ui5_daypicker_two_calendar_item_no_selected_inset: 0;--_ui5_daypicker_two_calendar_item_selected_now_border_radius_focus: .1875rem;--_ui5_daypicker_two_calendar_item_no_selected_focus_inset: .1875rem;--_ui5_daypicker_two_calendar_item_no_select_focus_border_radius: .3125rem;--_ui5_dp_two_calendar_item_secondary_text_border_radios: .25rem;--_ui5_daypicker_two_calendar_item_now_selected_border_inset: .125rem;--_ui5_daypicker_special_day_top: var(--_ui5-compact-size, 1.625rem) var(--_ui5-cozy-size, 2.5rem);--_ui5_daypicker_special_day_border_bottom_radius: .5rem;--_ui5_daypicker_special_day_before_border_color: var(--sapList_Background);--_ui5_daypicker_selected_item_special_day_width: calc(100% - .125rem) ;--_ui5_daypicker_selected_item_now_special_day_top: var(--_ui5-compact-size, 1.5625rem) var(--_ui5-cozy-size, 2.4375rem);--_ui5_daypicker_selected_item_now_special_day_width: calc(100% - .1875rem) ;--_ui5_daypicker_selected_item_now_special_day_border_bottom_radius: 0;--_ui5-daypicker_item_selected_now_border_radius: .5rem;--_ui5_daypicker_selected_item_now_special_day_border_bottom_radius_alternate: var(--_ui5-compact-size, .5rem) var(--_ui5-cozy-size, .5rem);--_ui5_daypicker_two_calendar_item_margin_bottom: var(--_ui5-compact-size, 0) var(--_ui5-cozy-size, 0);--_ui5_daypicker_twocalendar_item_special_day_now_inset: .3125rem;--_ui5_daypicker_twocalendar_item_special_day_now_border_radius: .25rem;--_ui5_daypicker_item_now_focus_margin: 0;--_ui5_daypicker_special_day_border_top: none;--_ui5_daypicker_special_day_selected_border_radius_bottom: .25rem;--_ui5_daypicker_specialday_focused_top: var(--_ui5-compact-size, 1.3125rem) var(--_ui5-cozy-size, 2.125rem);--_ui5_daypicker_specialday_focused_width: calc(100% - .75rem) ;--_ui5_daypicker_specialday_focused_border_bottom: var(--_ui5-compact-size, .25rem) var(--_ui5-cozy-size, 0);--_ui5_daypicker_item_now_specialday_top: var(--_ui5-compact-size, 1.4375rem) var(--_ui5-cozy-size, 2.3125rem);--_ui5_daypicker_item_now_specialday_width: calc(100% - .5rem) ;--_ui5_daypicker_twocalendar_item_special_day_after_border_width: .125rem;--_ui5_daypicker_twocalendar_item_special_day_dot: .375rem;--_ui5_daypicker_twocalendar_item_special_day_top: var(--_ui5-compact-size, 1.25rem) var(--_ui5-cozy-size, 2rem);--_ui5_daypicker_twocalendar_item_special_day_right: var(--_ui5-compact-size, 1.25rem) var(--_ui5-cozy-size, 1.4375rem);--_ui5_daypicker_item_selected_border: .0625rem solid var(--sapList_SelectionBorderColor);--_ui5_daypicker_item_not_selected_focus_border: .125rem solid var(--sapContent_FocusColor);--_ui5_daypicker_item_selected_focus_color: var(--sapContent_FocusColor);--_ui5_daypicker_item_selected_focus_width: .125rem;--_ui5_daypicker_item_no_selected_inset: .375rem;--_ui5_daypicker_item_now_border_focus_after: .125rem solid var(--sapContent_FocusColor);--_ui5_daypicker_item_now_border_radius_focus_after: .3125rem;--_ui5_day_picker_item_selected_now_border_focus: .125rem solid var(--sapContent_FocusColor);--_ui5_day_picker_item_selected_now_border_radius_focus: .1875rem;--_ui5_daypicker_item_selected_text_font: var(--sapFontBoldFamily);--_ui5_daypicker_item_now_selected_between_inset: .25rem;--_ui5_daypicker_item_now_selected_between_border: .0625rem solid var(--sapContent_Selected_ForegroundColor);--_ui5_daypicker_item_now_selected_between_border_radius: .1875rem;--_ui5_daypicker_item_select_between_border: 1px solid var(--sapContent_Selected_ForegroundColor);--_ui5-dp-item_withsecondtype_border: .25rem;--_ui5_dialog_header_state_line_height: .0625rem;--_ui5_dialog_focus_outline_offset: .0625rem;--_ui5_dialog_resizable_bottom_right_radius: 1.75rem;--_ui5_file_uploader_display_input_width: calc(100% - var(--_ui5_input_icon_width));--_ui5_file_uploader_tokenizer_width: calc(100% - 2 * var(--_ui5_input_icon_width) - var(--_ui5_input_inner_space_to_tokenizer));--_ui5_table_cell_valign: center;--_ui5_table_cell_min_width: 2.75rem;--_ui5_table_navigated_cell_width: .25rem;--_ui5_first_table_cell_horizontal_padding: 1rem;--_ui5_table_cell_horizontal_padding: .5rem;--_ui5_table_cell_vertical_padding: .25rem;--_ui5_table_row_actions_gap: .25rem;--_ui5_table_row_alternating_background: var(--sapTableRow_AlternatingBackground, var(--sapList_AlternatingBackground));--_ui5_table_row_alternating_hover_background: var(--sapTableRow_AlternatingHoverBackground, var(--sapList_Hover_Background));--_ui5_table_row_alternating_selection_background: var(--sapTableRow_AlternatingSelectionBackground, var(--sapList_SelectionBackgroundColor));--_ui5_table_row_alternating_selection_hover_background: var(--sapTableRow_AlternatingSelectionHoverBackground, var(--sapList_Hover_SelectionBackground));--ui5-group-header-listitem-background-color: var(--sapList_GroupHeaderBackground);--ui5-icon-focus-border-radius: .25rem;--_ui5_input_width: 13.125rem;--_ui5_input_min_width: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.75rem);--_ui5_input_min_width_tokenizer_available: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 3rem);--_ui5_input_height: var(--_ui5-compact-size, var(--sapElement_Compact_Height)) var(--_ui5-cozy-size, var(--sapElement_Height));--_ui5_input_margin_top_bottom: var(--_ui5-compact-size, .1875rem) var(--_ui5-cozy-size, .25rem);--_ui5_input_hover_border: none;--_ui5_input_value_state_error_hover_background: var(--sapField_Hover_Background);--_ui5_input_background_color: var(--sapField_Background);--_ui5_input_border_radius: var(--sapField_BorderCornerRadius);--_ui5_input_focus_border_radius: .25rem;--_ui5_input_readonly_focus_border_radius: 0;--_ui5-input-border: none;--_ui5_input_placeholder_style: italic;--_ui5_input_placeholder_color: var(--sapField_PlaceholderTextColor);--_ui5_input_bottom_border_height: 0;--_ui5_input_bottom_border_color: transparent;--_ui5_input_focused_border_color: var(--sapField_Hover_BorderColor);--_ui5_input_state_border_width: .125rem;--_ui5_input_information_border_width: .125rem;--_ui5_input_error_font_weight: normal;--_ui5_input_warning_font_weight: normal;--_ui5_input_focus_border_width: 1px;--_ui5_input_error_warning_border_style: none;--_ui5_input_error_warning_font_style: inherit;--_ui5_input_error_warning_text_indent: 0;--_ui5_input_disabled_border_color: var(--sapField_BorderColor);--_ui5-input_disabled_background: var(--sapField_Background);--_ui5_input_readonly_border: none;--_ui5_input_readonly_border_color: var(--sapField_ReadOnly_BorderColor);--_ui5_input_readonly_background: var(--sapField_ReadOnly_Background);--_ui5_input_custom_icon_padding: var(--_ui5-compact-size, .3125rem .5rem .25rem .5rem) var(--_ui5-cozy-size, .625rem .625rem .5625rem .625rem);--_ui5_input_error_warning_custom_icon_padding: var(--_ui5-compact-size, .3125rem .5rem .1875rem .5rem) var(--_ui5-cozy-size, .625rem .625rem .5rem .625rem);--_ui5_input_error_warning_custom_focused_icon_padding: var(--_ui5-compact-size, .3125rem .5rem .25rem .5rem) var(--_ui5-cozy-size, .625rem .625rem .5625rem .625rem);--_ui5_input_information_custom_icon_padding: var(--_ui5-compact-size, .3125rem .5rem .1875rem .5rem) var(--_ui5-cozy-size, .625rem .625rem .5rem .625rem);--_ui5_input_information_custom_focused_icon_padding: var(--_ui5-compact-size, .3125rem .5rem .25rem .5rem) var(--_ui5-cozy-size, .625rem .625rem .5625rem .625rem);--_ui5_input_error_warning_icon_padding: var(--_ui5-compact-size, .3125rem .5rem .1875rem .5rem) var(--_ui5-cozy-size, .625rem .625rem .5rem .625rem);--_ui5_input_error_warning_focused_icon_padding: var(--_ui5-compact-size, .3125rem .5rem .25rem .5rem) var(--_ui5-cozy-size, .625rem .625rem .5625rem .625rem);--_ui5_input_information_icon_padding: var(--_ui5-compact-size, .3125rem .5rem .1875rem .5rem) var(--_ui5-cozy-size, .625rem .625rem .5rem .625rem);--_ui5_input_information_focused_icon_padding: var(--_ui5-compact-size, .3125rem .5rem .25rem .5rem) var(--_ui5-cozy-size, .625rem .625rem .5625rem .625rem);--_ui5_input_disabled_opacity: var(--sapContent_DisabledOpacity);--_ui5_input_icon_min_width: var(--_ui5-compact-size, var(--_ui5_input_compact_min_width)) var(--_ui5-cozy-size, 2.25rem);--_ui5_input_compact_min_width: 2rem;--_ui5_input_transition: none;--_ui5-input-value-state-icon-display: none;--_ui5_input_focused_value_state_error_background: var(--sapField_Hover_Background);--_ui5_input_focused_value_state_warning_background: var(--sapField_Hover_Background);--_ui5_input_focused_value_state_success_background: var(--sapField_Hover_Background);--_ui5_input_focused_value_state_information_background: var(--sapField_Hover_Background);--_ui5_input_value_state_error_border_color: var(--sapField_InvalidColor);--_ui5_input_focused_value_state_error_border_color: var(--sapField_InvalidColor);--_ui5_input_focused_value_state_error_focus_outline_color: var(--sapField_InvalidColor);--_ui5_input_focused_value_state_warning_focus_outline_color: var(--sapField_WarningColor);--_ui5_input_focused_value_state_success_focus_outline_color: var(--sapField_SuccessColor);--_ui5_input_value_state_warning_border_color: var(--sapField_WarningColor);--_ui5_input_focused_value_state_warning_border_color: var(--sapField_WarningColor);--_ui5_input_value_state_success_border_color: var(--sapField_SuccessColor);--_ui5_input_focused_value_state_success_border_color: var(--sapField_SuccessColor);--_ui5_input_value_state_success_border_width: 1px;--_ui5_input_value_state_information_border_color: var(--sapField_InformationColor);--_ui5_input_focused_value_state_information_border_color: var(--sapField_InformationColor);--_ui5_input_focus_offset: 0;--_ui5_input_readonly_focus_offset: .125rem;--ui5_input_focus_pseudo_element_content: "";--_ui5_input_value_state_error_warning_placeholder_font_weight: normal;--_ui5_input_focus_outline_color: var(--sapContent_FocusColor);--_ui5-input_error_placeholder_color: var(--sapField_PlaceholderTextColor);--_ui5_input_icon_width: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.25rem);--_ui5_input_icon_wrapper_height: calc(100% - 1px) ;--_ui5_input_icon_wrapper_state_height: calc(100% - 2px) ;--_ui5_input_icon_wrapper_success_state_height: calc(100% - var(--_ui5_input_value_state_success_border_width));--_ui5-input-icons-count: 0;--_ui5_input_tokenizer_min_width: 3.5rem;--_ui5_input_icon_padding: var(--_ui5-compact-size, .3125rem .5rem .25rem .5rem) var(--_ui5-cozy-size, .625rem .625rem .5625rem .625rem);--_ui5_input_icon_color: var(--sapField_TextColor);--_ui5_input_icon_pressed_color: var(--sapButton_Active_TextColor);--_ui5_input_icon_pressed_bg: transparent;--_ui5_input_icon_hover_bg: transparent;--_ui5_input_icon_border_radius: var(--sapField_BorderCornerRadius);--_ui5_input_icon_box_shadow: var(--sapField_Hover_Shadow);--_ui5_input_icon_border: none;--_ui5_input_error_icon_box_shadow: var(--sapContent_Negative_Shadow);--_ui5_input_warning_icon_box_shadow: var(--sapContent_Critical_Shadow);--_ui5_input_information_icon_box_shadow: var(--sapContent_Informative_Shadow);--_ui5_input_success_icon_box_shadow: var(--sapContent_Positive_Shadow);--_ui5_input_icon_error_pressed_color: var(--sapButton_Reject_Selected_TextColor);--_ui5_input_icon_warning_pressed_color: var(--sapButton_Attention_Selected_TextColor);--_ui5_input_icon_information_pressed_color: var(--sapButton_Selected_TextColor);--_ui5_input_icon_success_pressed_color: var(--sapButton_Accept_Selected_TextColor);--_ui5_link_text_decoration: var(--sapLink_TextDecoration);--_ui5_link_hover_text_decoration: var(--sapLink_Hover_TextDecoration);--_ui5_link_focused_hover_text_decoration: none;--_ui5_link_focused_hover_text_color: var(--sapContent_ContrastTextColor);--_ui5_link_active_text_decoration: var(--sapLink_Active_TextDecoration);--_ui5_link_outline: none;--_ui5_link_focus_border-radius: .125rem;--_ui5_link_focus_background_color: var(--sapContent_FocusColor);--_ui5_link_focus_color: var(--sapContent_ContrastTextColor);--_ui5_link_focus_text_decoration: underline;--_ui5_link_subtle_text_decoration: underline;--_ui5_link_subtle_text_decoration_hover: none;--_ui5_link_large_interactive_area_height: 1.5rem;--ui5_list_footer_text_color: var(--sapList_FooterTextColor);--ui5-listitem-background-color: var(--sapList_Background);--ui5-listitem-border-bottom: var(--sapList_BorderWidth) solid var(--sapList_BorderColor);--ui5-listitem-selected-border-bottom: 1px solid var(--sapList_SelectionBorderColor);--ui5-listitem-focused-selected-border-bottom: 1px solid var(--sapList_SelectionBorderColor);--_ui5-listitembase_disabled_opacity: .5;--_ui5_product_switch_item_border: none;--_ui5_menu_popover_border_radius: var(--sapPopover_BorderCornerRadius);--_ui5_menu_item_padding: var(--_ui5-compact-size, 0 .75rem 0 .5rem) var(--_ui5-cozy-size, 0 1rem 0 .75rem);--_ui5_menu_item_submenu_icon_right: var(--_ui5-compact-size, .75rem) var(--_ui5-cozy-size, 1rem);--_ui5_monthpicker_item_margin: .0625rem;--_ui5_monthpicker_item_border: .0625rem solid var(--sapButton_Lite_BorderColor);--_ui5_monthpicker_item_border_radius: .5rem;--_ui5_monthpicker_item_hover_border: .0625rem solid var(--sapButton_Lite_Hover_BorderColor);--_ui5_monthpicker_item_active_border: .0625rem solid var(--sapButton_Lite_Active_BorderColor);--_ui5_monthpicker_item_selected_border: .0625rem solid var(--sapButton_Selected_BorderColor);--_ui5_monthpicker_item_selected_hover_border: .0625rem solid var(--sapButton_Selected_Hover_BorderColor);--_ui5_message_strip_padding: .4375rem 2.5rem .4375rem 2.5rem;--_ui5_message_strip_padding_block_no_icon: .4375rem .4375rem;--_ui5_message_strip_padding_inline_no_icon: 1rem 2.5rem;--_ui5_message_strip_border_width: var(--sapMessage_BorderWidth);--_ui5_message_strip_icon_top: .4375rem;--_ui5_message_strip_close_button_top: .125rem;--_ui5_message_strip_close_button_right: .1875rem;--_ui5_message_strip_close_button_color_set_1_background: var(--sapMessage_Button_Hover_Background);--_ui5_message_strip_close_button_color_set_2_background: var(--sapMessage_Button_Hover_Background);--_ui5_message_strip_close_button_color_set_1_color: var(--sapContent_ContrastIconColor);--_ui5_message_strip_scheme_1_set_2_background: var(--sapIndicationColor_1b);--_ui5_message_strip_scheme_1_set_2_border_color: var(--sapIndicationColor_1b_BorderColor);--_ui5_message_strip_scheme_2_set_2_background: var(--sapIndicationColor_2b);--_ui5_message_strip_scheme_2_set_2_border_color: var(--sapIndicationColor_2b_BorderColor);--_ui5_message_strip_scheme_3_set_2_background: var(--sapIndicationColor_3b);--_ui5_message_strip_scheme_3_set_2_border_color: var(--sapIndicationColor_3b_BorderColor);--_ui5_message_strip_scheme_4_set_2_background: var(--sapIndicationColor_4b);--_ui5_message_strip_scheme_4_set_2_border_color: var(--sapIndicationColor_4b_BorderColor);--_ui5_message_strip_scheme_5_set_2_background: var(--sapIndicationColor_5b);--_ui5_message_strip_scheme_5_set_2_border_color: var(--sapIndicationColor_5b_BorderColor);--_ui5_message_strip_scheme_6_set_2_background: var(--sapIndicationColor_6b);--_ui5_message_strip_scheme_6_set_2_border_color: var(--sapIndicationColor_6b_BorderColor);--_ui5_message_strip_scheme_7_set_2_background: var(--sapIndicationColor_7b);--_ui5_message_strip_scheme_7_set_2_border_color: var(--sapIndicationColor_7b_BorderColor);--_ui5_message_strip_scheme_8_set_2_background: var(--sapIndicationColor_8b);--_ui5_message_strip_scheme_8_set_2_border_color: var(--sapIndicationColor_8b_BorderColor);--_ui5_message_strip_scheme_9_set_2_background: var(--sapIndicationColor_9b);--_ui5_message_strip_scheme_9_set_2_border_color: var(--sapIndicationColor_9b_BorderColor);--_ui5_message_strip_scheme_10_set_2_background: var(--sapIndicationColor_10b);--_ui5_message_strip_scheme_10_set_2_border_color: var(--sapIndicationColor_10b_BorderColor);--_ui5_panel_focus_border: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);--_ui5_panel_header_height: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.75rem);--_ui5_panel_button_root_width: var(--_ui5-compact-size, 2.75rem) var(--_ui5-cozy-size, 2.75rem);--_ui5_panel_button_root_height: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.75rem);--_ui5_panel_border_radius: var(--sapGroup_BorderCornerRadius);--_ui5_panel_border_radius_expanded: var(--sapElement_BorderCornerRadius) var(--sapElement_BorderCornerRadius) 0 0;--_ui5_panel_default_header_border: .0625rem solid var(--sapGroup_TitleBorderColor);--_ui5_panel_border_bottom: none;--_ui5_panel_icon_color: var(--sapButton_Lite_TextColor);--_ui5_panel_header_padding_right: .5rem;--_ui5_panel_header_button_wrapper_padding: var(--_ui5-compact-size, .1875rem .25rem) var(--_ui5-cozy-size, .25rem);--_ui5_panel_focus_offset: 0px;--_ui5_panel_focus_bottom_offset: -1px;--_ui5_panel_content_padding: .625rem 1rem;--_ui5_panel_header_background_color: var(--sapGroup_TitleBackground);--_ui5_popover_background: var(--sapGroup_ContentBackground);--_ui5_popover_box_shadow: var(--sapContent_Shadow2);--_ui5_popover_no_arrow_box_shadow: var(--sapContent_Shadow1);--_ui5_popup_content_padding_s: 1rem;--_ui5_popup_content_padding_m_l: 2rem;--_ui5_popup_content_padding_xl: 3rem;--_ui5_popup_header_footer_padding_s: 1rem;--_ui5_popup_header_footer_padding_m_l: 2rem;--_ui5_popup_header_footer_padding_xl: 3rem;--_ui5_popup_viewport_margin: 10px;--_ui5_popup_header_prop_header_text_alignment: flex-start;--_ui5_popup_border_radius: .5rem;--_ui5_popup_header_shadow: var(--sapContent_HeaderShadow);--_ui5_popup_header_border: none;--_ui5_popup_block_layer_background: var(--sapBlockLayer_Background);--_ui5_popup_block_layer_opacity: .2;--_ui5_progress_indicator_background_none: var(--sapProgress_Background);--_ui5_progress_indicator_background_error: var(--sapProgress_NegativeBackground);--_ui5_progress_indicator_background_warning: var(--sapProgress_CriticalBackground);--_ui5_progress_indicator_background_success: var(--sapProgress_PositiveBackground);--_ui5_progress_indicator_background_information: var(--sapProgress_InformationBackground);--_ui5_progress_indicator_value_state_none: var(--sapProgress_Value_Background);--_ui5_progress_indicator_value_state_error: var(--sapProgress_Value_NegativeBackground);--_ui5_progress_indicator_value_state_warning: var(--sapProgress_Value_CriticalBackground);--_ui5_progress_indicator_value_state_success: var(--sapProgress_Value_PositiveBackground);--_ui5_progress_indicator_value_state_information: var(--sapProgress_Value_InformationBackground);--_ui5_progress_indicator_border_color_error: var(--sapErrorBorderColor);--_ui5_progress_indicator_border_color_warning: var(--sapWarningBorderColor);--_ui5_progress_indicator_border_color_success: var(--sapSuccessBorderColor);--_ui5_progress_indicator_border_color_information: var(--sapInformationBorderColor);--_ui5_progress_indicator_color: var(--sapField_TextColor);--_ui5_progress_indicator_bar_color: var(--sapProgress_TextColor);--_ui5_progress_indicator_border: none;--_ui5_progress_indicator_bar_border_max: none;--_ui5_progress_indicator_icon_visibility: inline-block;--_ui5_progress_indicator_side_points_visibility: block;--_ui5_progress_indicator_padding_novalue: .3125rem;--_ui5_progress_indicator_host_height: unset;--_ui5_progress_indicator_root_border_radius: .25rem;--_ui5_progress_indicator_root_height: .375rem;--_ui5_progress_indicator_root_overflow: visible;--_ui5_progress_indicator_bar_height: .625rem;--_ui5_progress_indicator_bar_border_radius: .5rem;--_ui5_progress_indicator_remaining_bar_overflow: visible;--_ui5_progress_indicator_icon_size: var(--sapFontLargeSize);--_ui5_progress_indicator_value_margin: 0 0 .1875rem 0;--_ui5_progress_indicator_padding: 1.25rem 0 .75rem 0;--_ui5_progress_indicator_padding_end: 1.25rem;--_ui5_progress_indicator_host_box_sizing: border-box;--_ui5_progress_indicator_root_position: relative;--_ui5_progress_indicator_root_min_height: .375rem;--_ui5_progress_indicator_remaining_bar_border_radius: 0 .5rem .5rem 0;--_ui5_progress_indicator_remaining_bar_position: absolute;--_ui5_progress_indicator_remaining_bar_width: 100%;--_ui5_progress_indicator_icon_position: absolute;--_ui5_progress_indicator_icon_right_position: -1.25rem;--_ui5_progress_indicator_value_position: absolute;--_ui5_progress_indicator_value_top_position: -1.3125rem;--_ui5_progress_indicator_value_left_position: 0;--_ui5_progress_indicator_value_state_error_icon_color: var(--sapProgress_Value_NegativeTextColor);--_ui5_progress_indicator_value_state_warning_icon_color: var(--sapProgress_Value_CriticalTextColor);--_ui5_progress_indicator_value_state_success_icon_color: var(--sapProgress_Value_PositiveTextColor);--_ui5_progress_indicator_value_state_information_icon_color: var(--sapProgress_Value_InformationTextColor);--_ui5_rating_indicator_border_radius: .5rem;--_ui5_rating_indicator_outline_offset: -.125rem;--_ui5_rating_indicator_item_height: var(--_ui5-compact-size, 1em) var(--_ui5-cozy-size, 1em);--_ui5_rating_indicator_item_width: var(--_ui5-compact-size, 1em) var(--_ui5-cozy-size, 1em);--_ui5_rating_indicator_readonly_item_height: var(--_ui5-compact-size, .75em) var(--_ui5-cozy-size, .75em);--_ui5_rating_indicator_readonly_item_width: var(--_ui5-compact-size, .75em) var(--_ui5-cozy-size, .75em);--_ui5_rating_indicator_readonly_item_spacing: .1875rem .1875rem;--_ui5_rating_indicator_component_spacing: var(--_ui5-compact-size, .5rem 0px) var(--_ui5-cozy-size, .5rem 0px);--_ui5_rating_indicator_component_padding: .25rem;--_ui5_rating_indicator_item_size_s: 1.375rem;--_ui5_rating_indicator_item_size_l: 2rem;--_ui5_segmented_btn_item_border_left: .0625rem;--_ui5_segmented_btn_item_border_right: .0625rem;--_ui5_segmented_btn_background_color: var(--sapButton_Lite_Background);--_ui5_segmented_btn_border_color: var(--sapButton_Lite_BorderColor);--_ui5_segmented_btn_hover_box_shadow: none;--_ui5_button_focused_border: .125rem solid var(--sapContent_FocusColor);--_ui5_button_focused_border_radius: .375rem;--_ui5_button_focused_inner_border_radius: .375rem;--_ui5_button_base_min_width: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.25rem);--_ui5_button_base_height: var(--_ui5-compact-size, var(--sapElement_Compact_Height)) var(--_ui5-cozy-size, var(--sapElement_Height));--_ui5_button_border_radius: var(--sapButton_BorderCornerRadius);--_ui5_button_base_padding: var(--_ui5-compact-size, .4375rem) var(--_ui5-cozy-size, .5625rem);--_ui5_button_base_icon_margin: .375rem;--_ui5_button_text_shadow: none;--_ui5_button_pressed_focused_border_color: var(--sapContent_FocusColor);--_ui5_button_fontFamily: var(--sapButton_FontFamily);--_ui5_button_emphasized_focused_border_color: var(--sapContent_ContrastFocusColor);--_ui5_button_emphasized_focused_border_before: .125rem solid var(--sapContent_FocusColor);--_ui5_button_emphasized_focused_active_border_color: transparent;--_ui5_button_emphasized_border_width: .0625rem;--_ui5_radio_button_min_width: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.75rem);--_ui5_radio_button_hover_fill: var(--sapField_Selector_Hover_Background);--_ui5_radio_button_hover_fill_error: var(--sapField_Selector_Hover_InvalidBackground);--_ui5_radio_button_hover_fill_warning: var(--sapField_Selector_Hover_WarningBackground);--_ui5_radio_button_hover_fill_success: var(--sapField_Selector_Hover_SuccessBackground);--_ui5_radio_button_hover_fill_information: var(--sapField_Selector_Hover_InformationBackground);--_ui5_radio_button_border_width: var(--sapContent_FocusWidth);--_ui5_radio_button_checked_fill: var(--sapSelectedColor);--_ui5_radio_button_checked_error_fill: var(--sapField_InvalidColor);--_ui5_radio_button_checked_warning_fill: var(--sapField_WarningColor);--_ui5_radio_button_checked_success_fill: var(--sapField_SuccessColor);--_ui5_radio_button_checked_information_fill: var(--sapField_InformationColor);--_ui5_radio_button_warning_error_border_dash: 0;--_ui5_radio_button_outer_ring_color: var(--sapField_BorderColor);--_ui5_radio_button_outer_ring_width: var(--sapField_BorderWidth);--_ui5_radio_button_outer_ring_bg: var(--sapField_Background);--_ui5_radio_button_outer_ring_hover_color: var(--sapField_Hover_BorderColor);--_ui5_radio_button_outer_ring_active_color: var(--sapField_Hover_BorderColor);--_ui5_radio_button_outer_ring_checked_hover_color: var(--sapField_Hover_BorderColor);--_ui5_radio_button_outer_ring_padding: var(--_ui5-compact-size, .5rem) var(--_ui5-cozy-size, .6875rem);--_ui5_radio_button_outer_ring_padding_with_label: var(--_ui5-compact-size, .5rem) var(--_ui5-cozy-size, .6875rem);--_ui5_radio_button_border_radius: .5rem;--_ui5_radio_button_border: none;--_ui5_radio_button_focus_outline: block;--_ui5_radio_button_focus_dist: var(--_ui5-compact-size, .1875rem) var(--_ui5-cozy-size, .375rem);--_ui5_radio_button_color: var(--sapField_BorderColor);--_ui5_radio_button_label_offset: 1px;--_ui5_radio_button_label_color: var(--sapField_TextColor);--_ui5_radio_button_inner_ring_radius: 27.5%;--_ui5_radio_button_read_only_border_type: 4, 2;--_ui5_radio_button_inner_ring_color: var(--sapContent_Selected_ForegroundColor);--_ui5_radio_button_information_border_width: var(--sapField_InformationBorderWidth);--_ui5_radio_button_read_only_border_width: var(--sapElement_BorderWidth);--_ui5_radio_button_read_only_inner_ring_color: var(--sapField_TextColor);--_ui5_switch_height: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.75rem);--_ui5_switch_width: var(--_ui5-compact-size, 2.75rem) var(--_ui5-cozy-size, 2.5rem);--_ui5_switch_min_width: var(--_ui5-compact-size, none) var(--_ui5-cozy-size, none);--_ui5_switch_with_label_width: var(--_ui5-compact-size, 2.75rem) var(--_ui5-cozy-size, 2.875rem);--_ui5_switch_focus_outline: none;--_ui5_switch_root_outline_top: var(--_ui5-compact-size, .25rem) var(--_ui5-cozy-size, .5rem);--_ui5_switch_root_outline_bottom: var(--_ui5-compact-size, .25rem) var(--_ui5-cozy-size, .5rem);--_ui5_switch_root_outline_left: -.125rem;--_ui5_switch_root_outline_right: -.125rem;--_ui5_switch_foucs_border_size: 1px;--_ui5-switch-root-border-radius: 0;--_ui5-switch-root-box-shadow: none;--_ui5_switch_root_after_outline: .125rem solid var(--sapContent_FocusColor);--_ui5_switch_disabled_opacity: var(--sapContent_DisabledOpacity);--_ui5_switch_transform: var(--_ui5-compact-size, translateX(100%) translateX(-1.375rem)) var(--_ui5-cozy-size, translateX(100%) translateX(-1.625rem));--_ui5_switch_transform_with_label: var(--_ui5-compact-size, translateX(100%) translateX(-1.875rem)) var(--_ui5-cozy-size, translateX(100%) translateX(-1.875rem));--_ui5_switch_rtl_transform: var(--_ui5-compact-size, translateX(1.375rem) translateX(-100%)) var(--_ui5-cozy-size, translateX(-100%) translateX(1.625rem));--_ui5_switch_rtl_transform_with_label: var(--_ui5-compact-size, translateX(1.875rem) translateX(-100%)) var(--_ui5-cozy-size, translateX(-100%) translateX(1.875rem));--_ui5_switch_track_with_label_width: var(--_ui5-compact-size, 2.75rem) var(--_ui5-cozy-size, 2.875rem);--_ui5_switch_track_with_label_height: var(--_ui5-compact-size, 1.25rem) var(--_ui5-cozy-size, 1.5rem);--_ui5_switch_track_width: var(--_ui5-compact-size, 2.75rem) var(--_ui5-cozy-size, 2.5rem);--_ui5_switch_track_height: var(--_ui5-compact-size, 1.25rem) var(--_ui5-cozy-size, 1.5rem);--_ui5_switch_track_border_radius: .75rem;--_ui5-switch-track-border: 1px solid;--_ui5_switch_track_active_background_color: var(--sapButton_Track_Selected_Background);--_ui5_switch_track_inactive_background_color: var(--sapButton_Track_Background);--_ui5_switch_track_hover_active_background_color: var(--sapButton_Track_Selected_Hover_Background);--_ui5_switch_track_hover_inactive_background_color: var(--sapButton_Track_Hover_Background);--_ui5_switch_track_active_border_color: var(--sapButton_Track_Selected_BorderColor);--_ui5_switch_track_inactive_border_color: var(--sapButton_Track_BorderColor);--_ui5_switch_track_hover_active_border_color: var(--sapButton_Track_Selected_Hover_BorderColor);--_ui5_switch_track_hover_inactive_border_color: var(--sapButton_Track_Hover_BorderColor);--_ui5_switch_track_semantic_accept_background_color: var(--sapButton_Track_Positive_Background);--_ui5_switch_track_semantic_reject_background_color: var(--sapButton_Track_Negative_Background);--_ui5_switch_track_semantic_hover_accept_background_color: var(--sapButton_Track_Positive_Hover_Background);--_ui5_switch_track_semantic_hover_reject_background_color: var(--sapButton_Track_Negative_Hover_Background);--_ui5_switch_track_semantic_accept_border_color: var(--sapButton_Track_Positive_BorderColor);--_ui5_switch_track_semantic_reject_border_color: var(--sapButton_Track_Negative_BorderColor);--_ui5_switch_track_semantic_hover_accept_border_color: var(--sapButton_Track_Positive_Hover_BorderColor);--_ui5_switch_track_semantic_hover_reject_border_color: var(--sapButton_Track_Negative_Hover_BorderColor);--_ui5_switch_track_transition: none;--_ui5_switch_track_icon_display: inline-block;--_ui5_switch_handle_width: var(--_ui5-compact-size, 1.25rem) var(--_ui5-cozy-size, 1.5rem);--_ui5_switch_handle_height: var(--_ui5-compact-size, 1rem) var(--_ui5-cozy-size, 1.25rem);--_ui5_switch_handle_with_label_width: var(--_ui5-compact-size, 1.75rem) var(--_ui5-cozy-size, 1.75rem);--_ui5_switch_handle_with_label_height: var(--_ui5-compact-size, 1rem) var(--_ui5-cozy-size, 1.25rem);--_ui5_switch_handle_border: var(--_ui5_switch_handle_border_width) solid var(--sapButton_Handle_BorderColor);--_ui5_switch_handle_border_width: .125rem;--_ui5_switch_handle_border_radius: 1rem;--_ui5_switch_handle_active_background_color: var(--sapButton_Handle_Selected_Background);--_ui5_switch_handle_inactive_background_color: var(--sapButton_Handle_Background);--_ui5_switch_handle_hover_active_background_color: var(--sapButton_Handle_Selected_Hover_Background);--_ui5_switch_handle_hover_inactive_background_color: var(--sapButton_Handle_Hover_Background);--_ui5_switch_handle_active_border_color: var(--sapButton_Handle_Selected_BorderColor);--_ui5_switch_handle_inactive_border_color: var(--sapButton_Handle_BorderColor);--_ui5_switch_handle_hover_active_border_color: var(--sapButton_Handle_Selected_BorderColor);--_ui5_switch_handle_hover_inactive_border_color: var(--sapButton_Handle_BorderColor);--_ui5_switch_handle_semantic_accept_background_color: var(--sapButton_Handle_Positive_Background);--_ui5_switch_handle_semantic_reject_background_color: var(--sapButton_Handle_Negative_Background);--_ui5_switch_handle_semantic_hover_accept_background_color: var(--sapButton_Handle_Positive_Hover_Background);--_ui5_switch_handle_semantic_hover_reject_background_color: var(--sapButton_Handle_Negative_Hover_Background);--_ui5_switch_handle_semantic_accept_border_color: var(--sapButton_Handle_Positive_BorderColor);--_ui5_switch_handle_semantic_reject_border_color: var(--sapButton_Handle_Negative_BorderColor);--_ui5_switch_handle_semantic_hover_accept_border_color: var(--sapButton_Handle_Positive_BorderColor);--_ui5_switch_handle_semantic_hover_reject_border_color: var(--sapButton_Handle_Negative_BorderColor);--_ui5_switch_handle_on_hover_box_shadow: 0 0 0 .125rem var(--sapButton_Handle_Selected_Hover_BorderColor);--_ui5_switch_handle_off_hover_box_shadow: 0 0 0 .125rem var(--sapButton_Handle_Hover_BorderColor);--_ui5_switch_handle_semantic_on_hover_box_shadow: 0 0 0 .125rem var(--sapButton_Handle_Positive_Hover_BorderColor);--_ui5_switch_handle_semantic_off_hover_box_shadow: 0 0 0 .125rem var(--sapButton_Handle_Negative_Hover_BorderColor);--_ui5_switch_handle_left: .0625rem;--_ui5-switch-slider-texts-display: inline;--_ui5_switch_text_font_family: var(--sapContent_IconFontFamily);--_ui5_switch_text_font_size: var(--_ui5-compact-size, var(--sapFontSize)) var(--_ui5-cozy-size, var(--sapFontLargeSize));--_ui5_switch_text_with_label_font_family: "72-Condensed-Bold", "72", "72full", Arial, Helvetica, sans-serif;--_ui5_switch_text_with_label_font_size: var(--sapFontSmallSize);--_ui5_switch_text_with_label_width: 1.75rem;--_ui5_switch_text_width: var(--_ui5-compact-size, 1rem) var(--_ui5-cozy-size, 1.25rem);--_ui5_switch_text_inactive_left: .1875rem;--_ui5_switch_text_inactive_left_alternate: .0625rem;--_ui5_switch_text_inactive_right: auto;--_ui5_switch_text_inactive_right_alternate: 0;--_ui5_switch_text_active_left: var(--_ui5-compact-size, .1875rem) var(--_ui5-cozy-size, .1875rem);--_ui5_switch_text_active_left_alternate: .0625rem;--_ui5_switch_text_active_color: var(--sapButton_Handle_Selected_TextColor);--_ui5_switch_text_inactive_color: var(--sapButton_Handle_TextColor);--_ui5_switch_text_semantic_accept_color: var(--sapButton_Handle_Positive_TextColor);--_ui5_switch_text_semantic_reject_color: var(--sapButton_Handle_Negative_TextColor);--_ui5_switch_text_overflow: hidden;--_ui5_switch_text_z_index: 1;--_ui5_switch_text_hidden: hidden;--_ui5_switch_text_min_width: none;--_ui5_switch_icon_width: 1rem;--_ui5_switch_icon_height: 1rem;--_ui5_switch_readonly_track_border_style: dashed;--_ui5_switch_readonly_handle_border_style: solid;--_ui5_switch_root_after_boreder_radius: 1rem;--_ui5_select_hover_icon_left_border: none;--_ui5_select_label_color: var(--sapField_TextColor);--_ui5_select_icon_width: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.25rem);--_ui5_select_icon_wrapper_height: 100%;--_ui5_select_bottom_border_gradient: linear-gradient(var(--sapField_BorderColor), var(--sapField_BorderColor)) bottom / 100% var(--sapField_BorderWidth) no-repeat;--_ui5_select_icon_wrapper_state_height: 100%;--_ui5_split_button_focused_border: .125rem solid var(--sapContent_FocusColor);--_ui5_split_button_focused_border_radius: .375rem;--_ui5_split_button_middle_separator_left: -.0625rem;--_ui5_split_button_middle_separator_hover_display: none;--_ui5_split_button_text_button_right_border_width: .0625rem;--_ui5_split_button_transparent_hover_background: var(--sapButton_Lite_Hover_Background);--_ui5_split_button_host_transparent_hover_background: transparent;--_ui5_split_button_transparent_hover_color: var(--sapButton_TextColor);--_ui5_split_button_transparent_disabled_background: transparent;--_ui5_split_button_inner_focused_border_radius_inner: .375rem;--_ui5_split_button_emphasized_separator_color: transparent;--_ui5_split_button_positive_separator_color: transparent;--_ui5_split_button_negative_separator_color: transparent;--_ui5_split_button_attention_separator_color: transparent;--_ui5_split_button_attention_separator_color_default: var(--sapButton_Attention_TextColor);--_ui5_split_button_host_default_box_shadow: inset 0 0 0 var(--sapButton_BorderWidth) var(--sapButton_BorderColor);--_ui5_split_button_host_attention_box_shadow: inset 0 0 0 var(--sapButton_BorderWidth) var(--sapButton_Attention_BorderColor);--_ui5_split_button_host_emphasized_box_shadow: inset 0 0 0 var(--sapButton_BorderWidth) var(--sapButton_Emphasized_BorderColor);--_ui5_split_button_host_positive_box_shadow: inset 0 0 0 var(--sapButton_BorderWidth) var(--sapButton_Accept_BorderColor);--_ui5_split_button_host_negative_box_shadow: inset 0 0 0 var(--sapButton_BorderWidth) var(--sapButton_Reject_BorderColor);--_ui5_split_button_host_transparent_box_shadow: inset 0 0 0 var(--sapButton_BorderWidth) var(--sapButton_Lite_BorderColor);--_ui5_split_button_host_transparent_hover_box_shadow: inset 0 0 0 var(--sapButton_BorderWidth) var(--sapButton_BorderColor);--_ui5_split_text_button_border_color: transparent;--_ui5_split_text_button_background_color: transparent;--_ui5_split_text_button_emphasized_border: var(--sapButton_BorderWidth) solid var(--sapButton_Emphasized_BorderColor);--_ui5_split_text_button_emphasized_border_width: .0625rem;--_ui5_split_text_button_hover_border: var(--sapButton_BorderWidth) solid var(--sapButton_BorderColor);--_ui5_split_text_button_positive_hover_border: var(--sapButton_BorderWidth) solid var(--sapButton_Accept_BorderColor);--_ui5_split_text_button_negative_hover_border: var(--sapButton_BorderWidth) solid var(--sapButton_Reject_BorderColor);--_ui5_split_text_button_attention_hover_border: var(--sapButton_BorderWidth) solid var(--sapButton_Attention_BorderColor);--_ui5_split_text_button_transparent_hover_border: var(--sapButton_BorderWidth) solid var(--sapButton_BorderColor);--_ui5_split_arrow_button_hover_border: var(--sapButton_BorderWidth) solid var(--sapButton_BorderColor);--_ui5_split_arrow_button_emphasized_hover_border: var(--sapButton_BorderWidth) solid var(--sapButton_Emphasized_BorderColor);--_ui5_split_arrow_button_positive_hover_border: var(--sapButton_BorderWidth) solid var(--sapButton_Accept_BorderColor);--_ui5_split_arrow_button_negative_hover_border: var(--sapButton_BorderWidth) solid var(--sapButton_Reject_BorderColor);--_ui5_split_arrow_button_attention_hover_border: var(--sapButton_BorderWidth) solid var(--sapButton_Attention_BorderColor);--_ui5_split_arrow_button_transparent_hover_border: var(--sapButton_BorderWidth) solid var(--sapButton_BorderColor);--_ui5_split_text_button_hover_border_right: var(--sapButton_BorderWidth) solid var(--sapButton_BorderColor);--_ui5_split_text_button_positive_hover_border_right: var(--sapButton_BorderWidth) solid var(--sapButton_Accept_BorderColor);--_ui5_split_text_button_negative_hover_border_right: var(--sapButton_BorderWidth) solid var(--sapButton_Reject_BorderColor);--_ui5_split_text_button_attention_hover_border_right: var(--sapButton_BorderWidth) solid var(--sapButton_Attention_BorderColor);--_ui5_split_text_button_transparent_hover_border_right: var(--sapButton_BorderWidth) solid var(--sapButton_BorderColor);--_ui5_split_button_middle_separator_hover_display_emphasized: none;--_ui5_tc_header_height: var(--_ui5-compact-size, var(--_ui5_tc_item_height)) var(--_ui5-cozy-size, var(--_ui5_tc_item_height));--_ui5_tc_header_height_text_only: var(--_ui5_tc_item_text_only_height);--_ui5_tc_header_height_text_with_additional_text: var(--_ui5_tc_item_text_only_with_additional_text_height);--_ui5_tc_header_box_shadow: var(--sapContent_HeaderShadow);--_ui5_tc_header_border_bottom: .0625rem solid var(--sapObjectHeader_Background);--_ui5_tc_header_background: var(--sapObjectHeader_Background);--_ui5_tc_header_background_translucent: var(--sapObjectHeader_Background);--_ui5_tc_content_background: var(--sapBackgroundColor);--_ui5_tc_content_background_translucent: var(--sapGroup_ContentBackground);--_ui5_tc_headeritem_padding: 1rem;--_ui5_tc_headerItem_color: var(--sapTab_TextColor);--_ui5_tc_headerItem_additional_text_color: var(--sapContent_LabelColor);--_ui5_tc_headerItem_text_hover_color: var(--sapTab_Selected_TextColor);--_ui5_tc_headerItem_text_selected_color: var(--sapTab_Selected_TextColor);--_ui5_tc_headerItem_text_selected_hover_color: var(--sapSelectedColor);--_ui5_tc_headeritem_text_font_weight: normal;--_ui5_tc_headerItem_additional_text_font_weight: normal;--_ui5_tc_headerItem_neutral_border_color: var(--sapTab_Neutral_ForegroundColor);--_ui5_tc_headerItem_transition: none;--_ui5_tc_headerItemContent_border_radius: .125rem .125rem 0 0;--_ui5_tc_headerItemContent_border_bg: transparent;--_ui5_tc_headerItem_neutral_border_bg: transparent;--_ui5_tc_headerItem_positive_border_bg: transparent;--_ui5_tc_headerItem_negative_border_bg: transparent;--_ui5_tc_headerItem_critical_border_bg: transparent;--_ui5_tc_headerItemContent_border_height: 0;--_ui5_tc_headerItem_focus_border: .125rem solid var(--sapContent_FocusColor);--_ui5_tc_headerItem_text_focus_border_offset_left: 0px;--_ui5_tc_headerItem_text_focus_border_offset_right: 0px;--_ui5_tc_headerItem_text_focus_border_offset_top: 0px;--_ui5_tc_headerItem_text_focus_border_offset_bottom: 0px;--_ui5_tc_headerItem_mixed_mode_focus_border_offset_left: .75rem;--_ui5_tc_headerItem_mixed_mode_focus_border_offset_right: .625rem;--_ui5_tc_headerItem_mixed_mode_focus_border_offset_top: .75rem;--_ui5_tc_headerItem_mixed_mode_focus_border_offset_bottom: .75rem;--_ui5_tc_headerItemContent_default_focus_border: none;--_ui5_tc_headerItemContent_focus_border_radius: 0;--_ui5_tc_headerItemSemanticIcon_display: none;--_ui5_tc_headerItemSemanticIcon_size: .75rem;--_ui5_tc_headerItem_focus_border_radius: .375rem;--_ui5_tc_mixedMode_itemText_color: var(--sapTextColor);--_ui5_tc_mixedMode_itemText_font_family: var(--sapFontFamily);--_ui5_tc_mixedMode_itemText_font_size: var(--sapFontSmallSize);--_ui5_tc_mixedMode_itemText_font_weight: normal;--_ui5_tc_headerItem_expand_button_margin_inline_start: 0rem;--_ui5_tc_headerItem_single_click_expand_button_margin_inline_start: .25rem;--_ui5_tc_headerItem_expand_button_border_radius: .25rem;--_ui5_tc_headerItem_expand_button_separator_display: inline-block;--_ui5_tc_overflowItem_positive_color: var(--sapPositiveColor);--_ui5_tc_overflowItem_negative_color: var(--sapNegativeColor);--_ui5_tc_overflowItem_critical_color: var(--sapCriticalColor);--_ui5_tc_overflowItem_focus_offset: .125rem;--_ui5_tc_overflowItem_indent: .5rem;--_ui5_tc_overflowItem_extra_indent: 0rem;--_ui5_tc_headerItemIcon_border: .125rem solid var(--sapTab_ForegroundColor);--_ui5_tc_headerItemIcon_semantic_selected_color: var(--sapGroup_ContentBackground);--_ui5_tc_overflowItem_default_color: var(--sapTab_TextColor);--_ui5_tc_overflowItem_current_color: CurrentColor;--_ui5_tc_content_border_bottom: .0625rem solid var(--sapObjectHeader_BorderColor);--_ui5_tc_headerItem_focus_border_offset: -5px;--_ui5_tc_headerItemIcon_focus_border_radius: 50%;--_ui5_tc_overflow_text_color: var(--sapTextColor);--_ui5_text_max_lines: initial;--_ui5_textarea_state_border_width: .125rem;--_ui5_textarea_information_border_width: .125rem;--_ui5_textarea_placeholder_font_style: italic;--_ui5_textarea_value_state_error_warning_placeholder_font_weight: normal;--_ui5_textarea_error_placeholder_font_style: italic;--_ui5_textarea_error_placeholder_color: var(--sapField_PlaceholderTextColor);--_ui5_textarea_error_hover_background_color: var(--sapField_Hover_Background);--_ui5_textarea_hover_border: none;--_ui5_textarea_error_warning_border_style: none;--_ui5_textarea_disabled_opacity: .4;--_ui5_textarea_line_height: 1.5;--_ui5_textarea_focus_pseudo_element_content: "";--_ui5_textarea_focused_value_state_error_background: var(--sapField_Hover_Background);--_ui5_textarea_focused_value_state_warning_background: var(--sapField_Hover_Background);--_ui5_textarea_focused_value_state_success_background: var(--sapField_Hover_Background);--_ui5_textarea_focused_value_state_information_background: var(--sapField_Hover_Background);--_ui5_textarea_focused_value_state_error_focus_outline_color: var(--sapField_InvalidColor);--_ui5_textarea_focused_value_state_warning_focus_outline_color: var(--sapField_WarningColor);--_ui5_textarea_focused_value_state_success_focus_outline_color: var(--sapField_SuccessColor);--_ui5_textarea_focus_offset: 0;--_ui5_textarea_readonly_focus_offset: 1px;--_ui5_textarea_value_state_focus_offset: 1px;--_ui5_textarea_focus_outline_color: var(--sapField_Active_BorderColor);--_ui5_textarea_min_height: var(--_ui5-compact-size, 1.625rem) var(--_ui5-cozy-size, 2.25rem);--_ui5_textarea_wrapper_padding: .0625rem;--_ui5_textarea_success_wrapper_padding: .0625rem;--_ui5_textarea_warning_error_wrapper_padding: .0625rem .0625rem .125rem .0625rem;--_ui5_textarea_information_wrapper_padding: .0625rem .0625rem .125rem .0625rem;--_ui5_textarea_inner_width: calc(100% - (2 * var(--_ui5_textarea_wrapper_padding)));--_ui5_textarea_padding_right_and_left: var(--_ui5-compact-size, .5rem) var(--_ui5-cozy-size, .625rem);--_ui5_textarea_padding_right_and_left_error_warning: var(--_ui5-compact-size, .5rem) var(--_ui5-cozy-size, .625rem);--_ui5_textarea_padding_right_and_left_information: var(--_ui5-compact-size, .5rem) var(--_ui5-cozy-size, .625rem);--_ui5_textarea_padding_right_and_left_readonly: var(--_ui5-compact-size, .4375rem) var(--_ui5-cozy-size, .5625rem);--_ui5_textarea_padding_top: var(--_ui5-compact-size, .1875rem) var(--_ui5-cozy-size, .5rem);--_ui5_textarea_padding_bottom: var(--_ui5-compact-size, .125rem) var(--_ui5-cozy-size, .4375rem);--_ui5_textarea_padding_top_readonly: var(--_ui5-compact-size, .125rem) var(--_ui5-cozy-size, .4375rem);--_ui5_textarea_padding_bottom_readonly: var(--_ui5-compact-size, .0625rem) var(--_ui5-cozy-size, .375rem);--_ui5_textarea_padding_top_error_warning: var(--_ui5-compact-size, .1875rem) var(--_ui5-cozy-size, .5rem);--_ui5_textarea_padding_bottom_error_warning: var(--_ui5-compact-size, .125rem) var(--_ui5-cozy-size, .4375rem);--_ui5_textarea_padding_top_information: var(--_ui5-compact-size, .1875rem) var(--_ui5-cozy-size, .5rem);--_ui5_textarea_padding_bottom_information: var(--_ui5-compact-size, .125rem) var(--_ui5-cozy-size, .4375rem);--_ui5_textarea_margin: var(--_ui5-compact-size, .1875rem 0) var(--_ui5-cozy-size, .25rem 0);--_ui5_textarea_readonly_border_style: dashed;--_ui5_textarea_focus_border_radius: .25rem;--_ui5-time_picker_border_radius: .25rem;--_ui5_toast_vertical_offset: 3rem;--_ui5_toast_horizontal_offset: 2rem;--_ui5_toast_background: var(--sapIndicationColor_9_Background);--_ui5_toast_shadow: var(--sapContent_Lite_Shadow);--_ui5_toast_offset_width: -.1875rem;--_ui5_toggle_button_emphasized_text_shadow: none;--_ui5_yearpicker_item_margin: .0625rem;--_ui5_yearpicker_item_border: .0625rem solid var(--sapButton_Lite_BorderColor);--_ui5_yearpicker_item_border_radius: .5rem;--_ui5_yearpicker_item_hover_border: .0625rem solid var(--sapButton_Lite_Hover_BorderColor);--_ui5_yearpicker_item_selected_border: .0625rem solid var(--sapButton_Selected_BorderColor);--_ui5_yearpicker_item_selected_hover_border: .0625rem solid var(--sapButton_Selected_Hover_BorderColor);--_ui5_calendar_header_arrow_button_border: .0625rem solid var(--sapList_Hover_Background);--_ui5_calendar_header_arrow_button_border_radius: .5rem;--_ui5_calendar_header_middle_button_width: 6.25rem;--_ui5_calendar_header_middle_button_flex: 1 1 auto;--_ui5_calendar_header_middle_button_focus_border_radius: .5rem;--_ui5_calendar_header_middle_button_focus_border: none;--_ui5_calendar_header_middle_button_focus_after_display: block;--_ui5_calendar_header_middle_button_focus_after_width: calc(100% - .375rem) ;--_ui5_calendar_header_middle_button_focus_after_height: calc(100% - .375rem) ;--_ui5_calendar_header_middle_button_focus_after_top_offset: .125rem;--_ui5_calendar_header_middle_button_focus_after_left_offset: .125rem;--_ui5_calendar_header_arrow_button_box_shadow: 0 0 .125rem 0 rgb(85 107 130 / 72%);--_ui5_calendar_header_middle_button_focus_background: transparent;--_ui5_calendar_header_middle_button_focus_outline: .125rem solid var(--sapContent_FocusColor);--_ui5_calendar_header_middle_button_focus_active_outline: .0625rem solid var(--sapContent_FocusColor);--_ui5_calendar_header_middle_button_focus_active_background: transparent;--_ui5_calendar_header_middle_button_focus_after_border: none;--_ui5_calendar_header_midcontainer_gap: var(--_ui5-compact-size, 0) var(--_ui5-cozy-size, .5rem);--_ui5_calendar_header_arrow_button_flex_shrink: var(--_ui5-compact-size, 1) var(--_ui5-cozy-size, 0);--_ui5_token_background: var(--sapButton_TokenBackground);--_ui5_token_readonly_background: var(--sapButton_TokenBackground);--_ui5_token_readonly_color: var(--sapContent_LabelColor);--_ui5_token_border_radius: .375rem;--_ui5_token_focus_outline_width: .0625rem;--_ui5_token_outline_offset: var(--_ui5-compact-size, -.125rem) var(--_ui5-cozy-size, .125rem);--_ui5_token_text_color: var(--sapTextColor);--_ui5_token_right_margin: var(--_ui5-compact-size, .25rem) var(--_ui5-cozy-size, .3125rem);--_ui5_token_left_padding: var(--_ui5-compact-size, .25rem) var(--_ui5-cozy-size, .3125rem);--_ui5_token_readonly_padding: var(--_ui5-compact-size, .125rem .25rem) var(--_ui5-cozy-size, .25rem .3125rem);--_ui5_token_selected_focus_outline: none;--_ui5_token_focus_outline: none;--_ui5_token_focused_selected_border: 1px solid var(--sapButton_Selected_BorderColor);--ui5_token_focus_pseudo_element_content: "";--_ui5_token_focus_offset: var(--_ui5-compact-size, -.125rem) var(--_ui5-cozy-size, -.25rem);--_ui5_token_selected_text_font_family: var(--sapFontSemiboldDuplexFamily);--_ui5_token_selected_internal_border_bottom: .125rem solid var(--sapButton_Selected_BorderColor);--_ui5_token_selected_internal_border_bottom_radius: .1875rem;--_ui5_token_icon_padding: var(--_ui5-compact-size, .375rem .375rem) var(--_ui5-cozy-size, .25rem .5rem);--_ui5_token_focus_outline_border_radius: .5rem;--_ui5_tokenizer_padding: var(--_ui5-compact-size, .25rem) var(--_ui5-cozy-size, .3125rem);--_ui5_tokenizer_gap: var(--_ui5-compact-size, .375em .25rem) var(--_ui5-cozy-size, .625rem .25rem);--_ui5_tokenizer_n_more_text_color: var(--sapLinkColor);--_ui5_tokenizer-popover_offset: var(--_ui5-compact-size, .1875rem) var(--_ui5-cozy-size, .3125rem);--_ui5_slider_inner_min_width: 4rem;--_ui5_slider_progress_border_width: .0625rem;--_ui5_slider_disabled_opacity: .4;--_ui5_slider_active_progress_left: -.0625rem;--_ui5_slider_handle_height: var(--_ui5-compact-size, 1.25rem) var(--_ui5-cozy-size, 1.5rem);--_ui5_slider_handle_width: var(--_ui5-compact-size, 1.5rem) var(--_ui5-cozy-size, 2rem);--_ui5_slider_handle_focus_border: .125rem solid var(--sapContent_FocusColor);--ui5_slider_handle_outline: none;--ui5_slider_handle_outline_offset: .0625rem;--_ui5_slider_handle_background: var(--sapSlider_HandleBackground);--_ui5_slider_handle_border: .0625rem solid var(--sapSlider_HandleBorderColor);--_ui5_slider_handle_border_radius: .5rem;--_ui5_slider_handle_hover_background: var(--sapSlider_Hover_HandleBackground);--_ui5_slider_handle_hover_border: .0625rem solid var(--sapSlider_Hover_HandleBorderColor);--_ui5_slider_handle_background_focus: var(--sapSlider_Active_RangeHandleBackground);--_ui5_slider_handle_active_border: .125rem solid var(--sapSlider_Active_HandleBorderColor);--_ui5_slider_handle_icon_display: inline-block;--_ui5_slider_handle_icon_size: .875rem;--_ui5_slider_handle_box_sizing: border-box;--_ui5_slider_scale_background: var(--sapSlider_Background);--_ui5_slider_scale_progress_background: var(--sapSlider_Selected_Background);--_ui5_slider_scale_progress_border: none;--_ui5_slider_scale_dots_distance: var(--_ui5-compact-size, -.75rem) var(--_ui5-cozy-size, -1rem);--_ui5_slider_scale_dots_display: inline-block;--_ui5_slider_scale_tickmark_height: .5rem;--_ui5_slider_scale_root_box_sizing: border-box;--_ui5_slider_scale_progress_top: 0;--_ui5_slider_scale_progress_height: 100%;--_ui5_range_slider_progress_focus_display: block;--_ui5_range_slider_progress_focus_top: calc(-1 * ((var(--_ui5_slider_handle_height) / 2) + .1875rem) + var(--_ui5_slider_progress_border_width) + .0625rem - .125rem - .0625rem);--_ui5_range_slider_progress_focus_left: calc(-1 * ((var(--_ui5_slider_handle_width) / 2) + .1875rem + var(--_ui5_slider_progress_border_width)) - .125rem);--_ui5_range_slider_progress_focus_right: calc(-1 * ((var(--_ui5_slider_handle_width) / 2) + .1875rem + var(--_ui5_slider_progress_border_width)) - .125rem - .0625rem);--_ui5_range_slider_progress_focus_height: calc(var(--_ui5_slider_handle_height) + .375rem + .25rem + .0625rem);--_ui5_range_slider_progress_focus_padding: 0 1rem 0 1rem;--_ui5_range_slider_progress_focus_border: var(--sapContent_FocusWidth) solid var(--sapContent_FocusColor);--_ui5_range_slider_progress_focus_border_radius: .5rem;--_ui5_range_slider_legacy_progress_focus_display: none;--_ui5_range_slider_focus_outline_width: 100%;--_ui5_slider_progress_outline: .0625rem var(--sapContent_FocusStyle) var(--sapContent_FocusColor);--_ui5_range_slider_focus_outline_radius: 0;--_ui5_slider_progress_outline_offset: var(--_ui5-compact-size, -.625rem) var(--_ui5-cozy-size, -.8125rem);--_ui5_slider_outer_height: var(--_ui5-compact-size, 1.3125rem) var(--_ui5-cozy-size, 1.6875rem);--_ui5_slider_progress_outline_offset_left: 0;--_ui5_slider_scale_progress_border_radius: .25rem;--_ui5_slider_scale_border: none;--_ui5_slider_root_side_padding: var(--_ui5-compact-size, 0 .75rem) var(--_ui5-cozy-size, 0 1rem);--_ui5_slider_height: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.75rem);--_ui5_value_state_message_border: none;--_ui5_value_state_header_border: none;--_ui5_input_value_state_icon_display: inline-block;--_ui5_value_state_message_padding: .5rem .5rem .5rem 1.875rem;--_ui5_value_state_message_padding_phone: .5rem .5rem .5rem 2.375rem;--_ui5_value_state_header_padding: .5rem .5rem .5rem 1.875rem;--_ui5_value_state_message_popover_box_shadow: var(--sapContent_Shadow1);--_ui5_value_state_message_icon_width: 1rem;--_ui5_value_state_message_icon_height: 1rem;--_ui5_input_value_state_icon_offset: .5rem;--_ui5_value_state_header_offset: -.25rem;--_ui5_value_state_message_popover_border_radius: var(--sapPopover_BorderCornerRadius);--_ui5_value_state_header_box_shadow_error: inset 0 -.0625rem var(--sapField_InvalidColor);--_ui5_value_state_header_box_shadow_information: inset 0 -.0625rem var(--sapField_InformationColor);--_ui5_value_state_header_box_shadow_success: inset 0 -.0625rem var(--sapField_SuccessColor);--_ui5_value_state_header_box_shadow_warning: inset 0 -.0625rem var(--sapField_WarningColor);--_ui5_value_state_message_line_height: 1.125rem;--_ui5_value_state_message_popover_header_min_height: 2rem;--_ui5_value_state_message_popover_header_min_width: 6rem;--_ui5_value_state_message_popover_header_max_width: 22rem;--_ui5_value_state_message_popover_header_width: auto;--_ui5_value_state_message_icon_offset_phone: 1rem;--_ui5_value_state_header_border_bottom: none;--_ui5-toolbar-padding-left: .5rem;--_ui5-toolbar-padding-right: .5rem;--_ui5-toolbar-item-margin-left: 0;--_ui5-toolbar-item-margin-right: .5rem;--_ui5_step_input_input_error_background_color: inherit;--_ui5-step_input_button_state_hover_background_color: var(--sapField_Hover_Background);--_ui5_step_input_border_style: none;--_ui5_step_input_border_style_hover: none;--_ui5_step_input_button_background_color: transparent;--_ui5_step_input_input_border: none;--_ui5_step_input_input_margin_top: 0;--_ui5_step_input_button_display: inline-flex;--_ui5_step_input_button_left: 0;--_ui5_step_input_button_right: 0;--_ui5_step_input_input_border_focused_after: .125rem solid #0070f2;--_ui5_step_input_input_border_top_bottom_focused_after: 0;--_ui5_step_input_input_border_radius_focused_after: .25rem;--_ui5_step_input_input_information_border_color_focused_after: var(--sapField_InformationColor);--_ui5_step_input_input_warning_border_color_focused_after: var(--sapField_WarningColor);--_ui5_step_input_input_success_border_color_focused_after: var(--sapField_SuccessColor);--_ui5_step_input_input_error_border_color_focused_after: var(--sapField_InvalidColor);--_ui5_step_input_disabled_button_background: none;--_ui5_step_input_border_color_hover: none;--_ui5_step_input_border_hover: none;--_ui5_input_input_background_color: transparent;--_ui5_step_input_min_width: var(--_ui5-compact-size, 6rem) var(--_ui5-cozy-size, 7.25rem);--_ui5_step_input_padding: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.5rem);--_ui5_load_more_padding: 0;--_ui5_load_more_border: 1px top solid transparent;--_ui5_load_more_border_radius: none;--_ui5_load_more_outline_width: var(--sapContent_FocusWidth);--_ui5_load_more_border-bottom: var(--sapList_BorderWidth) solid var(--sapList_BorderColor);--_ui5_calendar_height: var(--_ui5-compact-size, 18rem) var(--_ui5-cozy-size, 24.5rem);--_ui5_calendar_width: var(--_ui5-compact-size, 17.75rem) var(--_ui5-cozy-size, 20rem);--_ui5_calendar_left_right_padding: var(--_ui5-compact-size, .25rem) var(--_ui5-cozy-size, .5rem);--_ui5_calendar_top_bottom_padding: var(--_ui5-compact-size, .5rem) var(--_ui5-cozy-size, 1rem);--_ui5_calendar_header_height: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 3rem);--_ui5_calendar_header_arrow_button_width: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.5rem);--_ui5_calendar_header_padding: var(--_ui5-compact-size, 0) var(--_ui5-cozy-size, .25rem 0);--_ui5_calendar_multiple_layout: row;--_ui5_calendar_multiple_gap: var(--_ui5-compact-size, .5rem) var(--_ui5-cozy-size, 1rem);--_ui5_calendar_multiple_width: var(--_ui5-compact-size, calc((var(--_ui5_calendar_width) * 2) + (var(--_ui5_calendar_left_right_padding) * 2))) var(--_ui5-cozy-size, calc((var(--_ui5_calendar_width) * 2) + (var(--_ui5_calendar_left_right_padding) * 2)));--_ui5_calendar_overlay_top: var(--_ui5-compact-size, 54%) var(--_ui5-cozy-size, 57%);--_ui5_calendar_overlay_width: var(--_ui5-compact-size, 100%) var(--_ui5-cozy-size, 16rem);--_ui5_checkbox_root_side_padding: var(--_ui5-compact-size, var(--_ui5_checkbox_wrapped_focus_padding)) var(--_ui5-cozy-size, .6875rem);--_ui5_checkbox_partially_icon_size: var(--_ui5-compact-size, .5rem) var(--_ui5-cozy-size, .75rem);--_ui5_custom_list_item_rb_min_width: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.75rem);--_ui5_day_picker_item_width: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.25rem);--_ui5_day_picker_item_height: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.875rem);--_ui5_day_picker_empty_height: var(--_ui5-compact-size, 2.125rem) var(--_ui5-cozy-size, 3rem);--_ui5_day_picker_item_justify_content: var(--_ui5-compact-size, flex-end) var(--_ui5-cozy-size, space-between);--_ui5_dp_item_withsecondtype_font_size: var(--_ui5-compact-size, var(--sapFontSmallSize)) var(--_ui5-cozy-size, var(--sapFontSize));--_ui5_daypicker_item_now_selected_two_calendar_focus_special_day_top: var(--_ui5-compact-size, 1.125rem) var(--_ui5-cozy-size, 2rem);--_ui5_daypicker_item_now_selected_two_calendar_focus_special_day_right: var(--_ui5-compact-size, 1.125rem) var(--_ui5-cozy-size, 1.4375rem);--_ui5_dp_two_calendar_item_secondary_text_height: var(--_ui5-compact-size, .75rem) var(--_ui5-cozy-size, 1rem);--_ui5_dp_two_calendar_item_text_padding_top: var(--_ui5-compact-size, .5rem) var(--_ui5-cozy-size, .4375rem);--_ui5_dp_two_calendar_item_secondary_text_padding_block: var(--_ui5-compact-size, 0 .375rem) var(--_ui5-cozy-size, 0 .5rem);--_ui5_dp_two_calendar_item_secondary_text_padding: var(--_ui5-compact-size, 0 .375rem) var(--_ui5-cozy-size, 0 .5rem);--_ui5_daypicker_item_now_selected_two_calendar_focus_secondary_text_padding_block: var(--_ui5-compact-size, 0 1rem) var(--_ui5-cozy-size, 0 .5rem);--_ui5_daypicker_two_calendar_item_selected_focus_margin_bottom: var(--_ui5-compact-size, -.25rem) var(--_ui5-cozy-size, 0);--_ui5_daypicker_two_calendar_item_selected_focus_padding_right: var(--_ui5-compact-size, .4375rem) var(--_ui5-cozy-size, .5rem);--_ui5_calendar_multiple_months_height: var(--_ui5-compact-size, var(--_ui5_calendar_height)) var(--_ui5-cozy-size, var(--_ui5_calendar_height));--_ui5-calendar-legend-item-root-focus-offset: -.125rem;--_ui5-calendar-legend-item-box-inner-margin: .5rem;--_ui5_color_picker_slider_progress_container_height: var(--_ui5-compact-size, 1.125rem) var(--_ui5-cozy-size, 1.625rem);--_ui5_color_picker_slider_container_margin_top: var(--_ui5-compact-size, -.375rem) var(--_ui5-cozy-size, -.5rem);--_ui5_color_picker_slider_handle_height: var(--_ui5-compact-size, 1.5rem) var(--_ui5-cozy-size, 2rem);--_ui5_color_picker_slider_handle_width: var(--_ui5-compact-size, .9375rem) var(--_ui5-cozy-size, 1.0625rem);--_ui5_color_picker_slider_handle_after_height: var(--_ui5-compact-size, 1.25rem) var(--_ui5-cozy-size, 1.75rem);--_ui5_color_picker_slider_handle_focus_height: var(--_ui5-compact-size, 1.625rem) var(--_ui5-cozy-size, 2.125rem);--_ui5_color_picker_colors_wrapper_height: var(--_ui5-compact-size, 1.5rem) var(--_ui5-cozy-size, 2.25rem);--_ui5_color_picker_sliders_height: var(--_ui5-compact-size, 2.25rem) var(--_ui5-cozy-size, 3rem);--_ui5_color_picker_main_color_margin_bottom: var(--_ui5-compact-size, .75rem) var(--_ui5-cozy-size, 1rem);--_ui5_color_picker_slider_spacing: var(--_ui5-compact-size, .8125rem) var(--_ui5-cozy-size, .9375rem);--_ui5_color_channel_toggle_button_width: var(--_ui5-compact-size, 1.375rem) var(--_ui5-cozy-size, 1.625rem);--_ui5_color_channel_toggle_button_margin-top: var(--_ui5-compact-size, -.9375rem) var(--_ui5-cozy-size, -.75rem);--_ui5_color_channel_hex_input_width: var(--_ui5-compact-size, 4.625rem) var(--_ui5-cozy-size, 4.8125rem);--_ui5-color_channel_margin_top: var(--_ui5-compact-size, 0rem) var(--_ui5-cozy-size, .25rem);--_ui5_color-palette-item-height: var(--_ui5-compact-size, 1.25rem) var(--_ui5-cozy-size, 1.75rem);--_ui5_color-palette-item-hover-height: var(--_ui5-compact-size, 1.625rem) var(--_ui5-cozy-size, 2.25rem);--_ui5_color-palette-item-margin: var(--_ui5-compact-size, calc(((var(--_ui5_color-palette-item-hover-height) - var(--_ui5_color-palette-item-height)) / 2) + .0625rem)) var(--_ui5-cozy-size, calc(((var(--_ui5_color-palette-item-hover-height) - var(--_ui5_color-palette-item-height)) / 2) + .0625rem));--_ui5_color-palette-row-width: var(--_ui5-compact-size, 8.75rem) var(--_ui5-cozy-size, 12rem);--_ui5_color-palette-swatch-container-padding: var(--_ui5-compact-size, .1875rem .5rem) var(--_ui5-cozy-size, .3125rem .6875rem);--_ui5_datetime_picker_width: var(--_ui5-compact-size, 35.5rem) var(--_ui5-cozy-size, 40.0625rem);--_ui5_datetime_picker_height: var(--_ui5-compact-size, 20.5rem) var(--_ui5-cozy-size, 25rem);--_ui5_datetime_timeview_width: var(--_ui5-compact-size, 17rem) var(--_ui5-cozy-size, 17rem);--_ui5_datetime_timeview_phonemode_width: var(--_ui5-compact-size, 18.5rem) var(--_ui5-cozy-size, 19.5rem);--_ui5_datetime_timeview_phonemode_clocks_width: var(--_ui5-compact-size, 21.125rem) var(--_ui5-cozy-size, 24.5rem);--_ui5_datetime_dateview_phonemode_margin_bottom: var(--_ui5-compact-size, 3.125rem) var(--_ui5-cozy-size, 0);--_ui5_popup_footer_height: var(--_ui5-compact-size, 2.5rem) var(--_ui5-cozy-size, 2.75rem);--_ui5_dialog_content_min_height: var(--_ui5-compact-size, 2.5rem) var(--_ui5-cozy-size, 2.75rem);--_ui5_input_inner_padding: var(--_ui5-compact-size, 0 .5rem) var(--_ui5-cozy-size, 0 .625rem);--_ui5_input_inner_padding_with_icon: var(--_ui5-compact-size, 0 .25rem 0 .5rem) var(--_ui5-cozy-size, 0 .25rem 0 .625rem);--_ui5_input_inner_space_to_tokenizer: var(--_ui5-compact-size, .125rem) var(--_ui5-cozy-size, .125rem);--_ui5_input_inner_space_to_n_more_text: var(--_ui5-compact-size, .25rem) var(--_ui5-cozy-size, .3125rem);--_ui5_input_inner_with_tokenizer_padding_inline_end: var(--_ui5-compact-size, .25rem) var(--_ui5-cozy-size, .3125rem);--_ui5_list_no_data_height: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 3rem);--_ui5_list_item_cb_margin_right: var(--_ui5-compact-size, .5rem) var(--_ui5-cozy-size, 0);--_ui5_list_item_title_size: var(--_ui5-compact-size, var(--sapFontSize)) var(--_ui5-cozy-size, var(--sapFontLargeSize));--_ui5_list_no_data_font_size: var(--_ui5-compact-size, var(--sapFontSize)) var(--_ui5-cozy-size, var(--sapFontLargeSize));--_ui5_list_item_img_size: 3rem;--_ui5_list_item_img_top_margin: var(--_ui5-compact-size, .55rem) var(--_ui5-cozy-size, .5rem);--_ui5_list_item_img_bottom_margin: .5rem;--_ui5_list_item_img_hn_margin: .75rem;--_ui5_list_item_dropdown_base_height: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.5rem);--_ui5_list_item_base_height: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, var(--sapElement_LineHeight));--_ui5_list_item_base_padding: var(--_ui5-compact-size, 0 1rem) var(--_ui5-cozy-size, 0 1rem);--_ui5_list_item_icon_size: var(--_ui5-compact-size, 1rem) var(--_ui5-cozy-size, 1.125rem);--_ui5_list_item_icon_padding-inline-end: .75rem;--_ui5_list_item_selection_btn_margin_top: var(--_ui5-compact-size, calc(-1 * var(--_ui5_checkbox_wrapper_padding))) var(--_ui5-cozy-size, calc(-1 * var(--_ui5_checkbox_wrapper_padding)));--_ui5_list_item_content_vertical_offset: var(--_ui5-compact-size, calc((var(--_ui5_list_item_base_height) - var(--_ui5_list_item_title_size)) / 2)) var(--_ui5-cozy-size, calc((var(--_ui5_list_item_base_height) - var(--_ui5_list_item_title_size)) / 2));--_ui5_group_header_list_item_height: 2.75rem;--_ui5_month_picker_item_height: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 3rem);--_ui5_list_buttons_left_space: var(--_ui5-compact-size, .125rem) var(--_ui5-cozy-size, .125rem);--_ui5_form_item_min_height: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.813rem);--_ui5_form_item_padding: var(--_ui5-compact-size, .25rem) var(--_ui5-cozy-size, .65rem);--_ui5-form-group-heading-height: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.75rem);--_ui5_popup_default_header_height: var(--_ui5-compact-size, 2.5rem) var(--_ui5-cozy-size, 2.75rem);--_ui5_year_picker_item_height: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 3rem);--_ui5_token_height: var(--_ui5-compact-size, 1.25rem) var(--_ui5-cozy-size, 1.625rem);--_ui5_token_icon_size: var(--_ui5-compact-size, .75rem) var(--_ui5-cozy-size, .75rem);--_ui5_tc_item_text: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 3rem);--_ui5_tc_item_height: var(--_ui5-compact-size, 4rem) var(--_ui5-cozy-size, 4.75rem);--_ui5_tc_item_text_only_height: 2.75rem;--_ui5_tc_item_text_only_with_additional_text_height: 3.75rem;--_ui5_tc_item_text_line_height: var(--_ui5-compact-size, 1.325rem) var(--_ui5-cozy-size, 1.325rem);--_ui5_tc_item_icon_circle_size: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.75rem);--_ui5_tc_item_icon_size: var(--_ui5-compact-size, 1rem) var(--_ui5-cozy-size, 1.25rem);--_ui5_tc_item_add_text_margin_top: var(--_ui5-compact-size, .3125rem) var(--_ui5-cozy-size, .375rem);--_ui5_radio_button_label_side_padding: var(--_ui5-compact-size, .5rem) var(--_ui5-cozy-size, .6875rem);--_ui5_radio_button_inner_size: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.75rem);--_ui5_radio_button_svg_size: var(--_ui5-compact-size, 1.1429em) var(--_ui5-cozy-size, 1.5714em);--_ui5-responsive_popover_header_height: var(--_ui5-compact-size, 2.5rem) var(--_ui5-cozy-size, 2.75rem);--_ui5-tree-indent-step: var(--_ui5-compact-size, .5rem) var(--_ui5-cozy-size, 1.5rem);--_ui5-tree-toggle-box-width: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2.75rem);--_ui5-tree-toggle-box-height: var(--_ui5-compact-size, 1.5rem) var(--_ui5-cozy-size, 2.25rem);--_ui5-tree-toggle-icon-size: var(--_ui5-compact-size, .8125rem) var(--_ui5-cozy-size, 1.0625rem);--_ui5_split_button_middle_separator_top: var(--_ui5-compact-size, .3125rem) var(--_ui5-cozy-size, .625rem);--_ui5_split_button_middle_separator_height: var(--_ui5-compact-size, 1rem) var(--_ui5-cozy-size, 1rem);--_ui5-toolbar-separator-height: var(--_ui5-compact-size, 1.5rem) var(--_ui5-cozy-size, 2rem);--_ui5-toolbar-height: var(--_ui5-compact-size, var(--sapElement_Compact_LineHeight)) var(--_ui5-cozy-size, var(--sapElement_LineHeight));--_ui5_toolbar_overflow_padding: var(--_ui5-compact-size, .1875rem .375rem) var(--_ui5-cozy-size, .25rem .5rem);--_ui5_dynamic_page_title_actions_separator_height: var(--_ui5-compact-size, var(--_ui5-toolbar-separator-height)) var(--_ui5-cozy-size, var(--_ui5-toolbar-separator-height));--_ui5-shellbar-separator-height: var(--_ui5-compact-size, 2rem) var(--_ui5-cozy-size, 2rem);--___ui5-test-cozy-only: red;--___ui5-test-both: var(--_ui5-compact-size, blue) var(--_ui5-cozy-size, red);--___ui5-test-compact-only: var(--_ui5-compact-size, blue) var(--_ui5-cozy-size, var(--_ui5-f2d95f8));--_ui5_slider_tooltip_height: var(--_ui5-compact-size, 1.375rem) var(--_ui5-cozy-size, var(--_ui5-f2d95f8));--_ui5_slider_tooltip_padding: var(--_ui5-compact-size, .25rem) var(--_ui5-cozy-size, var(--_ui5-f2d95f8));--_ui5_rotation_90deg: rotate(90deg);--_ui5_rotation_minus_90deg: rotate(-90deg);--_ui5_icon_transform_scale: none;--_ui5_panel_toggle_btn_rotation: var(--_ui5_rotation_90deg);--_ui5_popover_upward_arrow_margin: .1875rem 0 0 .1875rem;--_ui5_popover_right_arrow_margin: .1875rem 0 0 -.375rem;--_ui5_popover_downward_arrow_margin: -.375rem 0 0 .125rem;--_ui5_popover_left_arrow_margin: .125rem 0 0 .25rem;--_ui5_dialog_resize_cursor: se-resize;--_ui5_menu_submenu_margin_offset: -.25rem 0}.ui5-avatar-group-items-xs{--_ui5_avatar_group_focus_border_radius: 1rem}.ui5-avatar-group-items-s{--_ui5_avatar_group_focus_border_radius: 1.5rem}.ui5-avatar-group-items-m{--_ui5_avatar_group_focus_border_radius: 2rem}.ui5-avatar-group-items-l{--_ui5_avatar_group_focus_border_radius: 2.5rem}.ui5-avatar-group-items-xl{--_ui5_avatar_group_focus_border_radius: 3.5rem}:dir(rtl){--_ui5_icon_transform_scale: scale(-1, 1);--_ui5_panel_toggle_btn_rotation: var(--_ui5_rotation_minus_90deg);--_ui5_popover_upward_arrow_margin: .1875rem .125rem 0 0;--_ui5_popover_right_arrow_margin: .1875rem .25rem 0 0;--_ui5_popover_downward_arrow_margin: -.4375rem .125rem 0 0;--_ui5_popover_left_arrow_margin: .1875rem -.375rem 0 0;--_ui5_dialog_resize_cursor:sw-resize;--_ui5_menu_submenu_margin_offset: 0 -.25rem;--_ui5_segmented_btn_item_border_left: .0625rem;--_ui5_segmented_btn_item_border_right: .0625rem;--_ui5_progress_indicator_bar_border_radius: .5rem;--_ui5_progress_indicator_remaining_bar_border_radius: .25rem} +`,Dc=(e=>(e[`SAP-icons`]=`SAP-icons-v4`,e.horizon=`SAP-icons-v5`,e[`SAP-icons-TNT`]=`tnt`,e.BusinessSuiteInAppSymbols=`business-suite`,e))(Dc||{}),Oc=e=>Dc[e]?Dc[e]:e,kc=(e=>(e.SAPIconsV4=`SAP-icons-v4`,e.SAPIconsV5=`SAP-icons-v5`,e.SAPIconsTNTV2=`tnt-v2`,e.SAPIconsTNTV3=`tnt-v3`,e.SAPBSIconsV1=`business-suite-v1`,e.SAPBSIconsV2=`business-suite-v2`,e))(kc||{}),q=new Map;q.set(`SAP-icons`,{legacy:`SAP-icons-v4`,sap_horizon:`SAP-icons-v5`}),q.set(`tnt`,{legacy:`tnt-v2`,sap_horizon:`tnt-v3`}),q.set(`business-suite`,{legacy:`business-suite-v1`,sap_horizon:`business-suite-v2`});var Ac=(e,t)=>{if(q.has(e)){q.set(e,{...t,...q.get(e)});return}q.set(e,t)},jc=e=>{let t=qr()?`legacy`:`sap_horizon`;return q.has(e)?q.get(e)[t]:e},Mc=new Map,Nc=e=>Mc.get(e),Pc=e=>{let t=Nc(Gr());return!e&&t?Oc(t):jc(e||`SAP-icons`)},Fc=`legacy`,Ic=new Map,Lc=A(`SVGIcons.registry`,new Map),Rc=A(`SVGIcons.promises`,new Map),zc=`ICON_NOT_FOUND`,Bc=(e,t)=>{Ic.set(e,t)},Vc=async e=>{if(!Rc.has(e)){if(!Ic.has(e))throw Error(`No loader registered for the ${e} icons collection. Probably you forgot to import the "AllIcons.js" module for the respective package.`);let t=Ic.get(e);Rc.set(e,t(e))}return Rc.get(e)},Hc=e=>{Object.keys(e.data).forEach(t=>{let n=e.data[t];Uc(t,{pathData:n.path||n.paths,ltr:n.ltr,viewBox:n.viewBox,accData:n.acc,collection:e.collection,packageName:e.packageName})})},Uc=(e,t)=>{let n=`${t.collection}/${e}`,r={collection:t.collection,packageName:t.packageName,pathData:t.pathData,viewBox:t.viewBox,ltr:t.ltr,accData:t.accData,customTemplate:t.customTemplate};Lc.set(n,r)},Wc=e=>{e.startsWith(`sap-icon://`)&&(e=e.replace(`sap-icon://`,``));let t;return[e,t]=e.split(`/`).reverse(),e=e.replace(`icon-`,``),t&&=Oc(t),{name:e,collection:t}},Gc=e=>{let{name:t,collection:n}=Wc(e);return qc(n,t)},Kc=async e=>{let{name:t,collection:n}=Wc(e),r=zc;try{r=await Vc(Pc(n))}catch(e){console.error(e.message)}return r===zc?r:qc(n,t)||(Array.isArray(r)?r.forEach(e=>{Hc(e),Ac(n,{[e.themeFamily||Fc]:e.collection})}):Hc(r),qc(n,t))},qc=(e,t)=>{let n=`${Pc(e)}/${t}`;return Lc.get(n)},Jc=async e=>{if(!e)return;let t=Gc(e);if(t||=await Kc(e),t&&t!==zc&&t.accData)return t.packageName?(await Jo(t.packageName)).getText(t.accData):t.accData?.defaultText||``},Yc={key:`ACC_STATE_REQUIRED`,defaultText:`Required`},Xc={key:`ACC_STATE_DISABLED`,defaultText:`Disabled`},Zc={key:`ACC_STATE_READONLY`,defaultText:`Read Only`},Qc={key:`ACC_STATE_EMPTY`,defaultText:`Empty`},$c={key:`ACC_STATE_SINGLE_CONTROL`,defaultText:`Includes element`},el={key:`ACC_STATE_MULTIPLE_CONTROLS`,defaultText:`Includes elements`},tl={key:`ARIA_LABEL_CARD_CONTENT`,defaultText:`Card Content`},nl={key:`ARIA_ROLEDESCRIPTION_CARD`,defaultText:`Card`},rl={key:`ARIA_ROLEDESCRIPTION_CARD_HEADER`,defaultText:`Card Header`},il={key:`ARIA_ROLEDESCRIPTION_INTERACTIVE_CARD_HEADER`,defaultText:`Interactive Card Header`},al={key:`AVATAR_TOOLTIP`,defaultText:`Avatar`},ol={key:`TAG_DESCRIPTION_TAG`,defaultText:`Tag`},sl={key:`TAG_ROLE_DESCRIPTION`,defaultText:`Tag button`},cl={key:`TAG_ERROR`,defaultText:`Error`},ll={key:`TAG_WARNING`,defaultText:`Warning`},ul={key:`TAG_SUCCESS`,defaultText:`Success`},dl={key:`TAG_INFORMATION`,defaultText:`Information`},fl={key:`BUSY_INDICATOR_TITLE`,defaultText:`Please wait`},pl={key:`BUTTON_ARIA_TYPE_ACCEPT`,defaultText:`Positive Action`},ml={key:`BUTTON_ARIA_TYPE_REJECT`,defaultText:`Negative Action`},hl={key:`BUTTON_ARIA_TYPE_EMPHASIZED`,defaultText:`Default Action`},gl={key:`BUTTON_ARIA_TYPE_ATTENTION`,defaultText:`Warning`},_l={key:`BUTTON_BADGE_ONE_ITEM`,defaultText:`{0} item`},vl={key:`BUTTON_BADGE_MANY_ITEMS`,defaultText:`{0} items`},yl={key:`BUTTON_ROLE_DESCRIPTION`,defaultText:`Button`},bl={key:`LINK_ROLE_DESCRIPTION`,defaultText:`Link`},xl={key:`DELETE`,defaultText:`Delete`},Sl={key:`EMPTY_INDICATOR_SYMBOL`,defaultText:`–`},Cl={key:`EMPTY_INDICATOR_ACCESSIBLE_TEXT`,defaultText:`Empty Value`},wl={key:`EXPANDABLE_TEXT_SHOW_MORE`,defaultText:`Show More`},Tl={key:`EXPANDABLE_TEXT_SHOW_LESS`,defaultText:`Show Less`},El={key:`EXPANDABLE_TEXT_CLOSE`,defaultText:`Close`},Dl={key:`EXPANDABLE_TEXT_SHOW_MORE_POPOVER_ARIA_LABEL`,defaultText:`Show the full text`},Ol={key:`EXPANDABLE_TEXT_SHOW_LESS_POPOVER_ARIA_LABEL`,defaultText:`Close the popover`},kl={key:`GROUP_HEADER_TEXT`,defaultText:`Group Header`},Al={key:`SELECT_ROLE_DESCRIPTION`,defaultText:`Listbox`},jl={key:`INPUT_SUGGESTIONS`,defaultText:`Suggestions Available`},Ml={key:`INPUT_SUGGESTIONS_TITLE`,defaultText:`All Items`},Nl={key:`INPUT_SUGGESTIONS_ONE_HIT`,defaultText:`1 result available`},Pl={key:`INPUT_SUGGESTIONS_MORE_HITS`,defaultText:`{0} results are available`},Fl={key:`INPUT_SUGGESTIONS_NO_HIT`,defaultText:`No results`},Il={key:`INPUT_SUGGESTIONS_EXPANDED`,defaultText:`Expanded`},Ll={key:`INPUT_SUGGESTIONS_COLLAPSED`,defaultText:`Collapsed`},Rl={key:`INPUT_CLEAR_ICON_ACC_NAME`,defaultText:`Clear`},zl={key:`INPUT_SUGGESTIONS_OK_BUTTON`,defaultText:`OK`},Bl={key:`INPUT_SUGGESTIONS_CANCEL_BUTTON`,defaultText:`Cancel`},Vl={key:`LINK_SUBTLE`,defaultText:`Subtle`},Hl={key:`LINK_EMPHASIZED`,defaultText:`Emphasized`},Ul={key:`LIST_ROLE_DESCRIPTION`,defaultText:`List with interactive items. To move to the content, press F2.`},Wl={key:`LIST_ITEM_ACTIVE`,defaultText:`Is Active`},Gl={key:`LIST_ITEM_POSITION`,defaultText:`List item {0} of {1}`},Kl={key:`LIST_ITEM_SELECTED`,defaultText:`Selected`},ql={key:`LIST_ITEM_NOT_SELECTED`,defaultText:`Not Selected`},Jl={key:`LIST_ITEM_GROUP_HEADER`,defaultText:`Group Header`},Yl={key:`LIST_ROLE_LIST_GROUP_DESCRIPTION`,defaultText:`contains {0} sub groups with {1} items`},Xl={key:`LIST_ROLE_LISTBOX_GROUP_DESCRIPTION`,defaultText:`contains {0} sub groups`},Zl={key:`ARIA_LABEL_LIST_ITEM_CHECKBOX`,defaultText:`Multiple Selection Mode`},Ql={key:`ARIA_LABEL_LIST_ITEM_RADIO_BUTTON`,defaultText:`Item Selection.`},$l={key:`ARIA_LABEL_LIST_SELECTABLE`,defaultText:`Contains Selectable Items`},eu={key:`ARIA_LABEL_LIST_MULTISELECTABLE`,defaultText:`Contains Multi-Selectable Items`},tu={key:`ARIA_LABEL_LIST_DELETABLE`,defaultText:`Contains Deletable Items`},nu={key:`MESSAGE_STRIP_CLOSE_BUTTON_INFORMATION`,defaultText:`Close information message strip`},ru={key:`MESSAGE_STRIP_CLOSE_BUTTON_POSITIVE`,defaultText:`Close positive message strip`},iu={key:`MESSAGE_STRIP_CLOSE_BUTTON_NEGATIVE`,defaultText:`Close negative message strip`},au={key:`MESSAGE_STRIP_CLOSE_BUTTON_CRITICAL`,defaultText:`Close critical message strip`},ou={key:`MESSAGE_STRIP_CLOSE_BUTTON_CUSTOM`,defaultText:`Close custom message strip`},su={key:`MESSAGE_STRIP_CLOSABLE`,defaultText:`Closable`},cu={key:`MESSAGE_STRIP_ERROR`,defaultText:`Error Message Strip`},lu={key:`MESSAGE_STRIP_WARNING`,defaultText:`Warning Message Strip`},uu={key:`MESSAGE_STRIP_SUCCESS`,defaultText:`Success Message Strip`},du={key:`MESSAGE_STRIP_INFORMATION`,defaultText:`Message Strip`},fu={key:`MESSAGE_STRIP_CUSTOM`,defaultText:`Custom Message Strip`},pu={key:`SELECT_DIALOG_CANCEL_BUTTON`,defaultText:`Cancel`},mu={key:`INPUT_AVALIABLE_VALUES`,defaultText:`Available Values`},hu={key:`PANEL_ICON`,defaultText:`Expand/Collapse`},gu={key:`RESPONSIVE_POPOVER_CLOSE_DIALOG_BUTTON`,defaultText:`Decline`},_u={key:`SEGMENTEDBUTTON_ARIA_DESCRIPTION`,defaultText:`Segmented button group`},vu={key:`SEGMENTEDBUTTON_ARIA_DESCRIBEDBY`,defaultText:`Press SPACE or ENTER to select an item`},yu={key:`SEGMENTEDBUTTONITEM_ARIA_DESCRIPTION`,defaultText:`Segmented button`},bu={key:`LOAD_MORE_TEXT`,defaultText:`More`},xu={key:`TAB_ARIA_DESIGN_POSITIVE`,defaultText:`Positive`},Su={key:`TAB_ARIA_DESIGN_NEGATIVE`,defaultText:`Negative`},Cu={key:`TAB_ARIA_DESIGN_CRITICAL`,defaultText:`Critical`},wu={key:`TAB_ARIA_DESIGN_NEUTRAL`,defaultText:`Neutral`},Tu={key:`TAB_SPLIT_ROLE_DESCRIPTION`,defaultText:`Tab with Subitems`},Eu={key:`TABCONTAINER_NEXT_ICON_ACC_NAME`,defaultText:`Next`},Du={key:`TABCONTAINER_PREVIOUS_ICON_ACC_NAME`,defaultText:`Previous`},Ou={key:`TABCONTAINER_OVERFLOW_MENU_TITLE`,defaultText:`Overflow Menu`},ku={key:`TABCONTAINER_END_OVERFLOW`,defaultText:`More`},Au={key:`TABCONTAINER_POPOVER_CANCEL_BUTTON`,defaultText:`Cancel`},ju={key:`TABCONTAINER_SUBTABS_DESCRIPTION`,defaultText:`Press down arrow key to open subitems menu`},Mu={key:`LISTITEMCUSTOM_TYPE_TEXT`,defaultText:`List Item`},Nu={key:`TREE_ITEM_ARIA_LABEL`,defaultText:`Tree Item`},Pu={key:`TREE_ITEM_EXPAND_NODE`,defaultText:`Expand Node`},Fu={key:`TREE_ITEM_COLLAPSE_NODE`,defaultText:`Collapse Node`},Iu={key:`VALUE_STATE_TYPE_ERROR`,defaultText:`Value State Error`},Lu={key:`VALUE_STATE_TYPE_WARNING`,defaultText:`Value State Warning`},Ru={key:`VALUE_STATE_TYPE_SUCCESS`,defaultText:`Value State Success`},zu={key:`VALUE_STATE_TYPE_INFORMATION`,defaultText:`Value State Information`},Bu={key:`VALUE_STATE_ERROR`,defaultText:`Invalid entry`},Vu={key:`VALUE_STATE_WARNING`,defaultText:`Warning issued`},Hu={key:`VALUE_STATE_INFORMATION`,defaultText:`Informative entry`},Uu={key:`VALUE_STATE_SUCCESS`,defaultText:`Entry successfully validated`},Wu={key:`VALUE_STATE_LINK`,defaultText:`To move the focus to the link, press Ctrl+Alt+F8`},Gu={key:`VALUE_STATE_LINK_MAC`,defaultText:`To move the focus to the link, press Cmd+Option+F8`},Ku={key:`VALUE_STATE_LINKS`,defaultText:`To go to the first link, press Ctrl+Alt+F8. To move to the next link, use Tab`},qu={key:`VALUE_STATE_LINKS_MAC`,defaultText:`To go to the first link, press Cmd+Option+F8. To move to the next link, use Tab`},Ju={key:`SPLIT_BUTTON_DESCRIPTION`,defaultText:`Split Button`},Yu={key:`SPLIT_BUTTON_KEYBOARD_HINT`,defaultText:`Press Space or Enter to trigger default action and Alt + Arrow Down or F4 to trigger arrow action`},Xu={key:`SPLIT_BUTTON_ARROW_BUTTON_TOOLTIP`,defaultText:`Open Menu`},Zu={key:`MENU_BACK_BUTTON_ARIA_LABEL`,defaultText:`Back`},Qu={key:`MENU_CANCEL_BUTTON_TEXT`,defaultText:`Cancel`},$u={key:`MENU_POPOVER_ACCESSIBLE_NAME`,defaultText:`Select an option from the menu`},ed={key:`MENU_ITEM_GROUP_NONE_ACCESSIBLE_NAME`,defaultText:`Contains Non-Selectable Items`},td={key:`MENU_ITEM_GROUP_SINGLE_ACCESSIBLE_NAME`,defaultText:`Contains Selectable Items`},nd={key:`MENU_ITEM_GROUP_MULTI_ACCESSIBLE_NAME`,defaultText:`Contains Multi-Selectable Items`},rd={key:`MENU_ITEM_END_CONTENT_ACCESSIBLE_NAME`,defaultText:`Additional Actions`},id={key:`MENU_ITEM_LOADING`,defaultText:`Loading`},ad={key:`DIALOG_ARIA_DESCRIBEDBY_RESIZABLE`,defaultText:`Use shift+arrow keys to resize`},od={key:`DIALOG_ARIA_DESCRIBEDBY_DRAGGABLE`,defaultText:`Use arrow keys to move`},sd={key:`DIALOG_ARIA_DESCRIBEDBY_DRAGGABLE_RESIZABLE`,defaultText:`Use arrow keys to move, Shift+arrow keys to resize`},cd={key:`DIALOG_ARIA_DESCRIBEDBY_REACH_DRAGGABLE_RESIZABLE`,defaultText:`Tab to the end of dialog to reach drag and resize handle.`},ld={key:`DIALOG_ARIA_DESCRIBEDBY_REACH_DRAGGABLE`,defaultText:`Tab to the end of dialog to reach drag handle.`},ud={key:`DIALOG_ARIA_DESCRIBEDBY_REACH_RESIZABLE`,defaultText:`Tab to the end of dialog to reach resize handle.`},dd={key:`DIALOG_RESIZE_HANDLE_TOOLTIP`,defaultText:`Drag handle to resize (shift+arrow)`},fd={key:`DIALOG_DRAG_AND_RESIZE_HANDLE_ARIA_LABEL`,defaultText:`Drag and Resize Dialog`},pd={key:`DIALOG_DRAG_HANDLE_ARIA_LABEL`,defaultText:`Drag Dialog`},md={key:`DIALOG_RESIZE_HANDLE_ARIA_LABEL`,defaultText:`Resize Dialog`},hd={key:`DIALOG_HANDLE_ARIA_ROLEDESCRIPTION`,defaultText:`Handle`},gd={key:`DIALOG_HEADER_ARIA_LABEL`,defaultText:`Header`},_d={key:`DIALOG_CONTENT_ARIA_LABEL`,defaultText:`Content`},vd={key:`DIALOG_FOOTER_ARIA_LABEL`,defaultText:`Footer`},yd={key:`LABEL_COLON`,defaultText:`:`},bd={key:`FORM_CHECKABLE_REQUIRED`,defaultText:`Please tick this box if you want to proceed.`},xd={key:`FORM_SELECTABLE_REQUIRED`,defaultText:`Please select an item in the list.`},Sd={key:`FORM_SELECTABLE_REQUIRED2`,defaultText:`Please select one of these options.`},Cd={key:`TABLE_SELECTION`,defaultText:`Selection`},wd={key:`TABLE_ROW_SELECTOR`,defaultText:`Row Selector`},Td={key:`TABLE_ROW_NAVIGATED`,defaultText:`Navigated`},Ed={key:`TABLE_NO_DATA`,defaultText:`No Data`},Dd={key:`TABLE_ROW`,defaultText:`Row`},Od={key:`TABLE_GROUP_ROW`,defaultText:`Group Row`},kd={key:`TABLE_ROW_POPIN`,defaultText:`Row Popin`},Ad={key:`TABLE_ROW_INDEX`,defaultText:`{0} of {1}`},jd={key:`TABLE_ROW_SELECTED`,defaultText:`Selected`},Md={key:`TABLE_ROW_ACTIVE`,defaultText:`Is Active`},Nd={key:`TABLE_ROW_NAVIGABLE`,defaultText:`Has Details`},Pd={key:`TABLE_COLUMN_HEADER_ROW`,defaultText:`Column Header Row`},Fd={key:`TABLE_ROW_ACTIONS`,defaultText:`Row Actions`},Id={key:`TABLE_ROW_SINGLE_ACTION`,defaultText:`1 row action available`},Ld={key:`TABLE_ROW_MULTIPLE_ACTIONS`,defaultText:`{0} row actions available`},Rd={key:`TABLE_SELECT_ALL_ROWS`,defaultText:`Select All Rows`},zd={key:`TABLE_DESELECT_ALL_ROWS`,defaultText:`Deselect All Rows`},Bd={key:`CHECKBOX_CHECKED`,defaultText:`Checked`},Vd={key:`CHECKBOX_NOT_CHECKED`,defaultText:`Not checked`},Hd={key:`CHECKBOX_ARIA_TYPE`,defaultText:`Checkbox`},Ud={key:`ICON_ARIA_TYPE_IMAGE`,defaultText:`Image`},Wd={key:`ICON_ARIA_TYPE_INTERACTIVE`,defaultText:`Button`},Gd;(function(e){e.H1=`H1`,e.H2=`H2`,e.H3=`H3`,e.H4=`H4`,e.H5=`H5`,e.H6=`H6`})(Gd||={});var Kd=Gd;function qd(){return K(Cc,{children:Jd.call(this,this.level)})}function Jd(e){switch(e){case`H1`:return K(`h1`,{class:`ui5-title-root`,children:Yd.call(this)});case`H2`:return K(`h2`,{class:`ui5-title-root`,children:Yd.call(this)});case`H3`:return K(`h3`,{class:`ui5-title-root`,children:Yd.call(this)});case`H4`:return K(`h4`,{class:`ui5-title-root`,children:Yd.call(this)});case`H5`:return K(`h5`,{class:`ui5-title-root`,children:Yd.call(this)});case`H6`:return K(`h6`,{id:`${this._id}-inner`,class:`ui5-title-root`,children:Yd.call(this)});default:return K(`h2`,{class:`ui5-title-root`,children:Yd.call(this)})}}function Yd(){return K(`span`,{id:`${this._id}-inner`,children:K(`slot`,{})})}j(`@ui5/webcomponents-theming`,`sap_horizon`,async()=>Tc),j(`@ui5/webcomponents`,`sap_horizon`,async()=>Ec,`host`);var Xd=`:host(:not([hidden])){display:block;cursor:text}:host{max-width:100%;color:var(--sapGroup_TitleTextColor);font-size:var(--sapFontHeader5Size);font-family:var(--sapFontHeaderFamily);text-shadow:var(--sapContent_TextShadow)}.ui5-title-root{display:inline-block;position:relative;font-weight:400;font-size:inherit;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;max-width:100%;vertical-align:bottom;-webkit-margin-before:0;-webkit-margin-after:0;-webkit-margin-start:0;-webkit-margin-end:0;margin:0;cursor:inherit}:host{white-space:pre-line}:host([wrapping-type="None"]){white-space:nowrap}.ui5-title-root,:host ::slotted(*){white-space:inherit}::slotted(*){font-size:inherit;font-family:inherit;text-shadow:inherit}:host([size="H1"]){font-size:var(--sapFontHeader1Size)}:host([size="H2"]){font-size:var(--sapFontHeader2Size)}:host([size="H3"]){font-size:var(--sapFontHeader3Size)}:host([size="H4"]){font-size:var(--sapFontHeader4Size)}:host([size="H5"]){font-size:var(--sapFontHeader5Size)}:host([size="H6"]){font-size:var(--sapFontHeader6Size)} +`,Zd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Qd=class extends ms{constructor(){super(...arguments),this.wrappingType=`Normal`,this.level=`H2`,this.size=`H5`}get h1(){return this.level===Kd.H1}get h2(){return this.level===Kd.H2}get h3(){return this.level===Kd.H3}get h4(){return this.level===Kd.H4}get h5(){return this.level===Kd.H5}get h6(){return this.level===Kd.H6}};Zd([L()],Qd.prototype,`wrappingType`,void 0),Zd([L()],Qd.prototype,`level`,void 0),Zd([L()],Qd.prototype,`size`,void 0),Qd=Zd([Zr({tag:`ui5-title`,renderer:Ea,template:qd,styles:Xd})],Qd),Qd.define();var $d=Qd;function ef(){return this.hasFontIcon?K(`span`,{class:`ui5-icon-root`,part:`root`,tabindex:this._tabIndex,role:this.effectiveAccessibleRole,"aria-label":this.effectiveAccessibleName,"aria-hidden":this.effectiveAriaHidden,onKeyDown:this._onkeydown,onKeyUp:this._onkeyup,onClick:this._onclick,children:K(`slot`,{name:`fontIcon`})}):wc(`svg`,{class:`ui5-icon-root`,part:`root`,tabindex:this._tabIndex,dir:this._dir,viewBox:this.viewBox,role:this.effectiveAccessibleRole,focusable:`false`,preserveAspectRatio:`xMidYMid meet`,"aria-label":this.effectiveAccessibleName,"aria-hidden":this.effectiveAriaHidden,xmlns:`http://www.w3.org/2000/svg`,onKeyDown:this._onkeydown,onKeyUp:this._onkeyup,onClick:this._onclick,children:[this.hasIconTooltip&&wc(`title`,{id:`${this._id}-tooltip`,children:[` `,this.effectiveAccessibleName,` `]}),K(`g`,{role:`presentation`,children:tf.call(this)})]})}function tf(){return this.customTemplate?this.customTemplate:this.customTemplateAsString?K(`g`,{dangerouslySetInnerHTML:{__html:this.customTemplateAsString}}):this.pathData.map(e=>K(`path`,{d:e}))}var nf;(function(e){e.Image=`Image`,e.Decorative=`Decorative`,e.Interactive=`Interactive`})(nf||={});var J=nf;j(`@ui5/webcomponents-theming`,`sap_horizon`,async()=>Tc),j(`@ui5/webcomponents`,`sap_horizon`,async()=>Ec,`host`);var rf=`:host{-webkit-tap-highlight-color:rgba(0,0,0,0)}:host([hidden]){display:none}:host([invalid]){display:none}:host(:not([hidden]).ui5_hovered){opacity:.7}:host{display:inline-block;width:1rem;height:1rem;color:var(--sapContent_IconColor);fill:currentColor;outline:none;container-type:size}:host([design="Contrast"]){color:var(--sapContent_ContrastIconColor)}:host([design="Critical"]){color:var(--sapCriticalElementColor)}:host([design="Information"]){color:var(--sapInformativeElementColor)}:host([design="Negative"]){color:var(--sapNegativeElementColor)}:host([design="Neutral"]){color:var(--sapNeutralElementColor)}:host([design="NonInteractive"]){color:var(--sapContent_NonInteractiveIconColor)}:host([design="Positive"]){color:var(--sapPositiveElementColor)}:host([mode="Interactive"][desktop]) .ui5-icon-root:focus,:host([mode="Interactive"]) .ui5-icon-root:focus-visible{outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);border-radius:var(--ui5-icon-focus-border-radius)}.ui5-icon-root{display:flex;height:100%;width:100%;outline:none;vertical-align:top;box-sizing:border-box;align-items:center;justify-content:center;font-size:min(100cqw,100cqh);line-height:1}:host([mode="Interactive"]){cursor:pointer}.ui5-icon-root:not([dir=ltr])>g{transform:var(--_ui5_icon_transform_scale);transform-origin:center} +`,Y=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},af,of=`ICON_NOT_FOUND`,X=af=class extends ms{constructor(){super(...arguments),this.design=`Default`,this.showTooltip=!1,this.mode=`Decorative`,this.pathData=[],this.invalid=!1}_onclick(e){this.mode===J.Interactive&&(e.stopImmediatePropagation(),this.fireDecoratorEvent(`click`))}_onkeydown(e){this.mode===J.Interactive&&($r(e)&&this.fireDecoratorEvent(`click`),ii(e)&&e.preventDefault())}_onkeyup(e){this.mode===J.Interactive&&ii(e)&&this.fireDecoratorEvent(`click`)}get _dir(){return this.ltr?`ltr`:void 0}get effectiveAriaHidden(){return this.mode===J.Decorative?`true`:void 0}get _tabIndex(){return this.mode===J.Interactive?0:void 0}get effectiveAccessibleRole(){switch(this.mode){case J.Interactive:return`button`;case J.Decorative:return`presentation`;default:return`img`}}onEnterDOM(){vn()&&this.setAttribute(`desktop`,``)}async onBeforeRendering(){if(this.fontIcon.length){this.accessibleName?this.effectiveAccessibleName=this.accessibleName:this.effectiveAccessibleName=void 0;return}let e=this.name;if(!e)return;let t=Gc(e);if(t||=await Kc(e),!t)return this.invalid=!0,console.warn(`Required icon is not registered. Invalid icon name: ${this.name}`);if(t===of)return this.invalid=!0,console.warn(`Required icon is not registered. You can either import the icon as a module in order to use it e.g. "@ui5/webcomponents-icons/dist/${e.replace(`sap-icon://`,``)}.js", or setup a JSON build step and import "@ui5/webcomponents-icons/dist/AllIcons.js".`);if(this.viewBox=t.viewBox||`0 0 512 512`,`customTemplate`in t&&t.customTemplate&&(this.customTemplate=oo(t.customTemplate,this)),`customTemplateAsString`in t&&(this.customTemplateAsString=t.customTemplateAsString),this.invalid=!1,`pathData`in t&&t.pathData&&(this.pathData=Array.isArray(t.pathData)?t.pathData:[t.pathData]),this.accData=t.accData,this.ltr=t.ltr,this.packageName=t.packageName,this.accessibleName)this.effectiveAccessibleName=this.accessibleName;else if(this.accData)if(this.packageName){let e=await Jo(this.packageName);this.effectiveAccessibleName=e.getText(this.accData)||void 0}else this.effectiveAccessibleName=this.accData?.defaultText||void 0;else this.effectiveAccessibleName=void 0}get hasFontIcon(){return this.fontIcon.length>0}get hasIconTooltip(){return this.showTooltip&&this.effectiveAccessibleName}_getAriaTypeDescription(){switch(this.mode){case J.Interactive:return af.i18nBundle.getText(Wd);case J.Image:return af.i18nBundle.getText(Ud);default:return``}}get accessibilityInfo(){return this.mode===J.Decorative?{}:{role:this.effectiveAccessibleRole,type:this._getAriaTypeDescription(),description:this.effectiveAccessibleName}}};Y([L()],X.prototype,`design`,void 0),Y([L()],X.prototype,`name`,void 0),Y([L()],X.prototype,`accessibleName`,void 0),Y([L({type:Boolean})],X.prototype,`showTooltip`,void 0),Y([L()],X.prototype,`mode`,void 0),Y([Qr({type:HTMLElement})],X.prototype,`fontIcon`,void 0),Y([L({type:Array,noAttribute:!0})],X.prototype,`pathData`,void 0),Y([L({type:Object,noAttribute:!0})],X.prototype,`accData`,void 0),Y([L({type:Boolean})],X.prototype,`invalid`,void 0),Y([L({noAttribute:!0})],X.prototype,`effectiveAccessibleName`,void 0),Y([Fi(`@ui5/webcomponents`)],X,`i18nBundle`,void 0),X=af=Y([Zr({tag:`ui5-icon`,languageAware:!0,themeAware:!0,renderer:Ea,template:ef,styles:rf}),Li(`click`,{bubbles:!0})],X),X.define();var sf=X,cf=e=>Array.from(e).filter(e=>e.nodeType!==Node.COMMENT_NODE&&(e.nodeType!==Node.TEXT_NODE||(e.nodeValue||``).trim().length!==0)).length>0,lf;(function(e){e.Top=`Top`,e.Bottom=`Bottom`})(lf||={});var uf=lf;function df(){return wc(`label`,{class:`ui5-label-root`,onClick:this._onclick,children:[K(`span`,{class:`ui5-label-text-wrapper`,children:K(`slot`,{})}),K(`span`,{"aria-hidden":`true`,class:`ui5-label-required-colon`,"data-ui5-colon":this._colonSymbol})]})}j(`@ui5/webcomponents-theming`,`sap_horizon`,async()=>Tc),j(`@ui5/webcomponents`,`sap_horizon`,async()=>Ec,`host`);var ff=`:host(:not([hidden])){display:inline-flex}:host{max-width:100%;color:var(--sapContent_LabelColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;cursor:text}.ui5-label-root{width:100%;cursor:inherit}:host{white-space:normal}:host([wrapping-type="None"]){white-space:nowrap}:host([wrapping-type="None"]) .ui5-label-root{display:inline-flex}:host([wrapping-type="None"]) .ui5-label-text-wrapper{text-overflow:ellipsis;overflow:hidden;display:inline-block;vertical-align:top;flex:0 1 auto;min-width:0}:host([show-colon]) .ui5-label-required-colon:before{content:attr(data-ui5-colon)}:host([required]) .ui5-label-required-colon:after{content:"*";color:var(--sapField_RequiredColor);font-size:var(--sapFontLargeSize);font-weight:700;position:relative;font-style:normal;vertical-align:middle;line-height:0}.ui5-label-text-wrapper{padding-inline-end:.075rem}:host([required][show-colon]) .ui5-label-required-colon:after{margin-inline-start:.125rem}:host([show-colon]) .ui5-label-required-colon{margin-inline-start:-.05rem;white-space:pre} +`,pf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},mf,Z=mf=class extends ms{constructor(){super(...arguments),this.showColon=!1,this.required=!1,this.wrappingType=`Normal`}_onclick(){if(!this.for)return;let e=this.getRootNode().querySelector(`[id="${this.for}"]`);e&&e.focus()}get _colonSymbol(){return mf.i18nBundle.getText(yd)}};pf([L()],Z.prototype,`for`,void 0),pf([L({type:Boolean})],Z.prototype,`showColon`,void 0),pf([L({type:Boolean})],Z.prototype,`required`,void 0),pf([L()],Z.prototype,`wrappingType`,void 0),pf([Fi(`@ui5/webcomponents`)],Z,`i18nBundle`,void 0),Z=mf=pf([Zr({tag:`ui5-label`,renderer:Ea,template:df,styles:ff,languageAware:!0})],Z),Z.define();var hf=Z;function gf(){return wc(`div`,{class:`ui5-busy-indicator-root`,children:[this._isBusy&&wc(`div`,{class:{"ui5-busy-indicator-busy-area":!0,"ui5-busy-indicator-busy-area-over-content":this.hasContent},title:this.ariaTitle,tabindex:0,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":`Busy`,"aria-labelledby":this.labelId,"data-sap-focus-ref":!0,children:[this.textPosition.top&&_f.call(this),wc(`div`,{class:`ui5-busy-indicator-circles-wrapper`,children:[K(`div`,{class:`ui5-busy-indicator-circle circle-animation-0`}),K(`div`,{class:`ui5-busy-indicator-circle circle-animation-1`}),K(`div`,{class:`ui5-busy-indicator-circle circle-animation-2`})]}),this.textPosition.bottom&&_f.call(this)]}),K(`slot`,{}),this._isBusy&&K(`span`,{"data-ui5-focus-redirect":!0,tabindex:0,role:`none`,onFocusIn:this._redirectFocus})]})}function _f(){return K(Cc,{children:this.text&&K(hf,{id:`${this._id}-label`,class:`ui5-busy-indicator-text`,children:this.text})})}j(`@ui5/webcomponents-theming`,`sap_horizon`,async()=>Tc),j(`@ui5/webcomponents`,`sap_horizon`,async()=>Ec,`host`);var vf=`:host(:not([hidden])){display:inline-block}:host([_is-busy]){color:var(--_ui5_busy_indicator_color)}:host([size="S"]) .ui5-busy-indicator-root{min-width:1.625rem;min-height:.5rem}:host([size="S"][text]:not([text=""])) .ui5-busy-indicator-root{min-height:1.75rem}:host([size="S"]) .ui5-busy-indicator-circle{width:.5rem;height:.5rem}:host([size="S"]) .ui5-busy-indicator-circle:first-child,:host([size="S"]) .ui5-busy-indicator-circle:nth-child(2){margin-inline-end:.0625rem}:host(:not([size])) .ui5-busy-indicator-root,:host([size="M"]) .ui5-busy-indicator-root{min-width:3.375rem;min-height:1rem}:host([size="M"]) .ui5-busy-indicator-circle:first-child,:host([size="M"]) .ui5-busy-indicator-circle:nth-child(2){margin-inline-end:.1875rem}:host(:not([size])[text]:not([text=""])) .ui5-busy-indicator-root,:host([size="M"][text]:not([text=""])) .ui5-busy-indicator-root{min-height:2.25rem}:host(:not([size])) .ui5-busy-indicator-circle,:host([size="M"]) .ui5-busy-indicator-circle{width:1rem;height:1rem}:host([size="L"]) .ui5-busy-indicator-root{min-width:6.5rem;min-height:2rem}:host([size="L"]) .ui5-busy-indicator-circle:first-child,:host([size="L"]) .ui5-busy-indicator-circle:nth-child(2){margin-inline-end:.25rem}:host([size="L"][text]:not([text=""])) .ui5-busy-indicator-root{min-height:3.25rem}:host([size="L"]) .ui5-busy-indicator-circle{width:2rem;height:2rem}.ui5-busy-indicator-root{display:flex;justify-content:center;align-items:center;position:relative;background-color:inherit;height:inherit;border-radius:inherit}.ui5-busy-indicator-busy-area.ui5-busy-indicator-busy-area-over-content{position:absolute;inset:0;z-index:99}.ui5-busy-indicator-busy-area{display:flex;justify-content:center;align-items:center;background-color:inherit;flex-direction:column;border-radius:inherit}:host([active]) ::slotted(*){opacity:var(--sapContent_DisabledOpacity)}:host([desktop]) .ui5-busy-indicator-busy-area:focus,.ui5-busy-indicator-busy-area:focus-visible{outline:var(--_ui5_busy_indicator_focus_outline);outline-offset:-2px}.ui5-busy-indicator-circles-wrapper{line-height:0}.ui5-busy-indicator-circle{display:inline-block;background-color:currentColor;border-radius:50%}.ui5-busy-indicator-circle:before{content:"";width:100%;height:100%;border-radius:100%}.circle-animation-0{animation:grow 1.6s infinite cubic-bezier(.32,.06,.85,1.11)}.circle-animation-1{animation:grow 1.6s infinite cubic-bezier(.32,.06,.85,1.11);animation-delay:.2s}.circle-animation-2{animation:grow 1.6s infinite cubic-bezier(.32,.06,.85,1.11);animation-delay:.4s}.ui5-busy-indicator-text{width:100%;text-align:center}:host([text-placement="Top"]) .ui5-busy-indicator-text{margin-bottom:.5rem}:host(:not([text-placement])) .ui5-busy-indicator-text,:host([text-placement="Bottom"]) .ui5-busy-indicator-text{margin-top:.5rem}@keyframes grow{0%,50%,to{-webkit-transform:scale(.5);-moz-transform:scale(.5);transform:scale(.5)}25%{-webkit-transform:scale(1);-moz-transform:scale(1);transform:scale(1)}} +`,Q=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},yf,$=yf=class extends ms{constructor(){super(),this.size=`M`,this.active=!1,this.delay=1e3,this.textPlacement=`Bottom`,this._isBusy=!1,this._keydownHandler=this._handleKeydown.bind(this),this._preventEventHandler=this._preventEvent.bind(this)}onEnterDOM(){this.addEventListener(`keydown`,this._keydownHandler,{capture:!0}),this.addEventListener(`keyup`,this._preventEventHandler,{capture:!0}),vn()&&this.setAttribute(`desktop`,``)}onExitDOM(){this._busyTimeoutId&&(clearTimeout(this._busyTimeoutId),delete this._busyTimeoutId),this.removeEventListener(`keydown`,this._keydownHandler,!0),this.removeEventListener(`keyup`,this._preventEventHandler,!0)}get ariaTitle(){return yf.i18nBundle.getText(fl)}get labelId(){return this.text?`${this._id}-label`:void 0}get textPosition(){return{top:this.text&&this.textPlacement===uf.Top,bottom:this.text&&this.textPlacement===uf.Bottom}}get hasContent(){return cf(Array.from(this.children))}onBeforeRendering(){this.active?!this._isBusy&&!this._busyTimeoutId&&(this._busyTimeoutId=setTimeout(()=>{delete this._busyTimeoutId,this._isBusy=!0},Math.max(0,this.delay))):(this._busyTimeoutId&&(clearTimeout(this._busyTimeoutId),delete this._busyTimeoutId),this._isBusy=!1)}_handleKeydown(e){this._isBusy&&(e.stopImmediatePropagation(),yi(e)&&(this.focusForward=!0,this.shadowRoot.querySelector(`[data-ui5-focus-redirect]`).focus(),this.focusForward=!1))}_preventEvent(e){this._isBusy&&e.stopImmediatePropagation()}_redirectFocus(e){this.focusForward||(e.preventDefault(),this.shadowRoot.querySelector(`.ui5-busy-indicator-busy-area`).focus())}};Q([L()],$.prototype,`text`,void 0),Q([L()],$.prototype,`size`,void 0),Q([L({type:Boolean})],$.prototype,`active`,void 0),Q([L({type:Number})],$.prototype,`delay`,void 0),Q([L()],$.prototype,`textPlacement`,void 0),Q([L({type:Boolean})],$.prototype,`_isBusy`,void 0),Q([Fi(`@ui5/webcomponents`)],$,`i18nBundle`,void 0),$=yf=Q([Zr({tag:`ui5-busy-indicator`,languageAware:!0,styles:vf,renderer:Ea,template:gf})],$),$.define();var bf=$;export{wl as $,Vu as $n,Ai as $r,_u as $t,Hd as A,A as Ai,wu as An,ii as Ar,Zu as At,_d as B,Fu as Bn,ci as Br,ou as Bt,pl as C,pn as Ci,jd as Cn,po as Cr,ql as Ct,vl as D,dt as Di,Rd as Dn,Li as Dr,Xl as Dt,ml as E,j as Ei,Cd as En,Ea as Er,Ul as Et,sd as F,y as Fi,dl as Fn,ai as Fr,td as Ft,gd as G,Ku as Gn,Si as Gr,cu as Gt,pd as H,Bu as Hn,si as Hr,iu as Ht,ld as I,d as Ii,sl as In,Ni as Ir,id as It,Cl as J,Uu as Jn,$r as Jr,lu as Jt,md as K,qu as Kn,li as Kr,du as Kt,cd as L,ul as Ln,gi as Lr,$u as Lt,Vd as M,te as Mi,Tu as Mn,ji as Mr,rd as Mt,xl as N,ee as Ni,ol as Nn,oi as Nr,nd as Nt,_l as O,Be as Oi,Cu as On,Ii as Or,Yl as Ot,od as P,D as Pi,cl as Pn,hi as Pr,ed as Pt,Ol as Q,Lu as Qn,ni as Qr,vu as Qt,ud as R,ll as Rn,di as Rr,su as Rt,al as S,mn as Si,kd as Sn,fo as Sr,Jl as St,hl as T,yn as Ti,Id as Tn,ao as Tr,Kl as Tt,vd as U,Hu as Un,pi as Ur,ru as Ut,fd as V,Pu as Vn,xi as Vr,nu as Vt,hd as W,Wu as Wn,bi as Wr,fu as Wt,El as X,zu as Xn,ti as Xr,gu as Xt,Sl as Y,Iu as Yn,ei as Yr,hu as Yt,Tl as Z,Ru as Zn,mi as Zr,yu as Zt,eu as _,bn as _i,Md as _n,ss as _r,Hl as _t,J as a,Oi as ai,ku as an,Cc as ar,mu as at,rl as b,_n as bi,Nd as bn,Ko as br,Mu as bt,Qc as c,fi as ci,Au as cn,ys as cr,Bl as ct,Yc as d,Qr as di,Pd as dn,ws as dr,Pl as dt,Ci as ei,pu as en,Bc as er,Dl as et,$c as f,Zr as fi,zd as fn,ks as fr,Fl as ft,Ql as g,kn as gi,Fd as gn,hs as gr,yd as gt,Zl as h,nr as hi,Dd as hn,ms as hr,Ml as ht,sf as i,wi as ii,Yu as in,Tc as ir,kl as it,Bd as j,De as ji,xu as jn,ri as jr,Qu as jt,yl as k,Re as ki,Su as kn,Fi as kr,bu as kt,el as l,yi as li,Du as ln,bs as lr,Ll as lt,tu as m,Vr as mi,Ed as mn,Es as mr,Nl as mt,hf as n,vi as ni,Xu as nn,Uc as nr,xd as nt,$d as o,ki as oi,Eu as on,K as or,Rl as ot,tl as p,Kr as pi,Od as pn,js as pr,zl as pt,dd as q,Gu as qn,Ti as qr,uu as qt,cf as r,_i as ri,Ju as rn,Ec as rr,Sd as rt,Xc as s,Ei as si,Ou as sn,wc as sr,jl as st,bf as t,Di as ti,Al as tn,Jc as tr,bd as tt,Zc as u,L as ui,ju as un,As as ur,Il as ut,$l as v,xn as vi,Ad as vn,os as vr,bl as vt,gl as w,fn as wi,wd as wn,oo as wr,Gl as wt,il as x,vn as xi,Td as xn,Po as xr,Wl as xt,nl as y,hn as yi,Ld as yn,Jo as yr,Vl as yt,ad as z,Nu as zn,ui as zr,au as zt}; \ No newline at end of file diff --git a/app/vue/dist/assets/Button-INoaGcLE.js b/app/vue/dist/assets/Button-INoaGcLE.js new file mode 100644 index 00000000..7e431d4b --- /dev/null +++ b/app/vue/dist/assets/Button-INoaGcLE.js @@ -0,0 +1,2 @@ +import{Ar as e,C as t,Ci as n,Cr as r,D as i,Dr as a,E as o,Ei as s,Er as c,Fr as l,Ir as u,Jr as d,O as f,Or as p,Sr as m,T as ee,ar as te,di as h,fi as ne,fr as re,gr as g,hi as ie,hr as _,i as v,ir as y,k as ae,kr as oe,lr as se,mr as ce,ni as b,nr as x,or as S,r as C,rr as le,sr as w,t as ue,tr as de,ui as T,vt as fe,w as pe,xi as me}from"./BusyIndicator-ozQjqKjn.js";var E=(e=>(e.None=`None`,e.Positive=`Positive`,e.Critical=`Critical`,e.Negative=`Negative`,e.Information=`Information`,e))(E||{}),he=e=>{if(e.nodeName===`SLOT`)return!1;let t=window.getComputedStyle(e);return t.display!==`contents`&&e.offsetWidth<=0&&e.offsetHeight<=0||t.visibility===`hidden`},ge=()=>{let e=document.activeElement;for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e},D,O=new Map,k=()=>(D||=new window.ResizeObserver(e=>{window.requestAnimationFrame(()=>{e.forEach(e=>{let t=O.get(e.target);t&&Promise.all(t.map(e=>e()))})})}),D),A=(e,t)=>{let n=O.get(e)||[];n.length||k().observe(e),O.set(e,[...n,t])},j=(e,t)=>{let n=O.get(e)||[];if(n.length===0)return;let r=n.filter(e=>e!==t);r.length===0?(k().unobserve(e),O.delete(e)):O.set(e,r)},M=class{static register(e,t){let n=e;g(n)&&(n=n.getDomRef()),n instanceof HTMLElement?A(n,t):console.warn(`Cannot register ResizeHandler for element`,e)}static deregister(e,t){let n=e;g(n)&&(n=n.getDomRef()),n instanceof HTMLElement?j(n,t):console.warn(`Cannot deregister ResizeHandler for element`,e)}},N=new Map,P=new Map;P.set(`S`,[0,599]),P.set(`M`,[600,1023]),P.set(`L`,[1024,1439]),P.set(`XL`,[1440,1/0]);var F=(e=>(e.RANGE_4STEPS=`4Step`,e))(F||{}),I={RANGESETS:F,initRangeSet:(e,t)=>{N.set(e,t)},getCurrentRange:(e,t=window.innerWidth)=>{let n=N.get(e);n||=N.get(`4Step`);let r,i=Math.floor(t);return n.forEach((e,t)=>{i>=e[0]&&i<=e[1]&&(r=t)}),r||[...n.keys()][0]}};I.initRangeSet(I.RANGESETS.RANGE_4STEPS,P);var L={key:`ICON_DECLINE`,defaultText:`Decline`},R={key:`ICON_ERROR`,defaultText:`Error`},_e={key:`ICON_NAV_BACK`,defaultText:`Navigate Back`},ve={key:`ICON_OVERFLOW`,defaultText:`More`},ye={key:`ICON_SEARCH`,defaultText:`Search`},be={key:`ICON_SORT_ASCENDING`,defaultText:`Sort Ascending`},xe={key:`ICON_SORT_DESCENDING`,defaultText:`Sort Descending`};x(`error`,{pathData:`M16 8a7.731 7.731 0 0 1-.64 3.125c-.428.98-1 1.828-1.72 2.547a8.025 8.025 0 0 1-2.53 1.703A7.785 7.785 0 0 1 8 16a7.73 7.73 0 0 1-3.125-.64c-.98-.428-1.828-1-2.547-1.72a7.977 7.977 0 0 1-1.703-2.546A7.82 7.82 0 0 1 0 8a7.864 7.864 0 0 1 2.344-5.672A8.214 8.214 0 0 1 4.89.625 7.785 7.785 0 0 1 8 0c1.104 0 2.14.208 3.11.625a8.08 8.08 0 0 1 2.546 1.719 8.081 8.081 0 0 1 1.719 2.547C15.792 5.859 16 6.896 16 8Zm-3.531 3.375c.125-.125.125-.25 0-.375L9.78 8.312c-.125-.124-.125-.25 0-.374l2.531-2.532c.126-.125.126-.25 0-.375l-1.156-1.156c-.041-.042-.104-.063-.187-.063-.084 0-.146.021-.188.063L8.187 6.438c-.02.062-.083.093-.187.093-.063 0-.125-.031-.188-.093L5.188 3.844c-.02-.042-.083-.063-.187-.063-.083 0-.146.021-.188.063L3.657 5c-.125.125-.125.25 0 .375L6.25 7.938c.125.125.125.25 0 .375l-2.594 2.562a.312.312 0 0 0-.078.188c-.01.083.016.145.078.187l1.125 1.156a.48.48 0 0 0 .188.063c.083 0 .146-.021.187-.063l2.657-2.625c.041-.041.104-.062.187-.062s.146.02.188.062l2.75 2.75a.479.479 0 0 0 .187.063.48.48 0 0 0 .188-.063l1.156-1.156Z`,ltr:!1,viewBox:`0 0 16 16`,accData:R,collection:`SAP-icons-v4`,packageName:`@ui5/webcomponents-icons`}),x(`error`,{pathData:`M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm3.707 4.293a1 1 0 0 0-1.414 0L8 6.586 5.707 4.293a1 1 0 1 0-1.414 1.414L6.586 8l-2.293 2.293a1 1 0 1 0 1.414 1.414L8 9.414l2.293 2.293a1 1 0 1 0 1.414-1.414L9.414 8l2.293-2.293a1 1 0 0 0 0-1.414Z`,ltr:!1,viewBox:`0 0 16 16`,accData:R,collection:`SAP-icons-v5`,packageName:`@ui5/webcomponents-icons`});var Se=`error`;x(`alert`,{pathData:`M15.656 12.688c.104.208.182.411.235.609.052.198.088.39.109.578v.156c0 .646-.24 1.136-.719 1.469-.479.333-1 .5-1.562.5H2.313c-.271 0-.542-.042-.813-.125a2.332 2.332 0 0 1-.734-.375 1.932 1.932 0 0 1-.532-.625A2.033 2.033 0 0 1 0 14.031c0-.27.042-.505.125-.703.083-.198.177-.411.281-.64l5.782-10.5C6.625 1.395 7.26 1 8.094 1c.791 0 1.406.396 1.844 1.188l5.718 10.5Zm-7.625-7.72c-.27 0-.515.084-.734.25-.219.167-.328.438-.328.813.02.146.041.271.062.375.063.521.11 1.021.14 1.5.032.48.069 1.115.11 1.907 0 .229.078.395.235.5a.91.91 0 0 0 .515.156c.459 0 .698-.219.719-.656l.063-1.126.28-2.656c0-.375-.109-.646-.327-.812a1.182 1.182 0 0 0-.735-.25Zm0 9.345c.417 0 .745-.126.985-.376s.359-.583.359-1c0-.395-.12-.718-.36-.968-.239-.25-.567-.375-.984-.375-.416 0-.745.125-.984.375-.24.25-.36.573-.36.969 0 .416.12.75.36 1s.568.374.984.374Z`,ltr:!1,viewBox:`0 0 16 16`,collection:`SAP-icons-v4`,packageName:`@ui5/webcomponents-icons`}),x(`alert`,{pathData:`M6.491 1.856C7.17.716 8.821.714 9.5 1.855l6.249 10.504c.694 1.166-.147 2.644-1.504 2.644H1.752c-1.357 0-2.197-1.478-1.504-2.644L6.491 1.856Zm1.503 9.138a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm0-7a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-4a1 1 0 0 0-1-1Z`,ltr:!1,viewBox:`0 0 16 16`,collection:`SAP-icons-v5`,packageName:`@ui5/webcomponents-icons`});var Ce=`alert`;x(`sys-enter-2`,{pathData:`M16 8a7.863 7.863 0 0 1-.625 3.14 8.026 8.026 0 0 1-1.703 2.532 7.979 7.979 0 0 1-2.547 1.703c-.98.417-2.02.625-3.125.625a7.863 7.863 0 0 1-5.672-2.344A8.215 8.215 0 0 1 .625 11.11 7.786 7.786 0 0 1 0 8c0-1.104.214-2.146.64-3.125.428-.98 1-1.828 1.72-2.547A7.977 7.977 0 0 1 4.905.625 7.82 7.82 0 0 1 8 0c1.104 0 2.146.208 3.125.625.98.417 1.828.984 2.547 1.703a7.979 7.979 0 0 1 1.703 2.547c.417.98.625 2.02.625 3.125Zm-3.688-2.719c.084-.166.073-.302-.03-.406L11.155 3.75a.297.297 0 0 0-.25-.125c-.104 0-.187.052-.25.156l-3.25 5.406c-.062.021-.104.021-.125 0L5.094 7.563c-.084-.063-.157-.094-.219-.094-.063 0-.11.02-.14.062a.917.917 0 0 1-.079.094L3.75 8.906c-.125.167-.104.313.063.438l3.53 2.969c.042.041.115.062.22.062a.297.297 0 0 0 .25-.125l4.5-6.969Z`,ltr:!0,viewBox:`0 0 16 16`,collection:`SAP-icons-v4`,packageName:`@ui5/webcomponents-icons`}),x(`sys-enter-2`,{pathData:`M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm3.707 5.793a1 1 0 0 0-1.414 0L7.5 8.586 6.207 7.293a1 1 0 1 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l3.5-3.5a1 1 0 0 0 0-1.414Z`,ltr:!0,viewBox:`0 0 16 16`,collection:`SAP-icons-v5`,packageName:`@ui5/webcomponents-icons`});var we=`sys-enter-2`;x(`information`,{pathData:`M0 8c0-1.104.214-2.146.64-3.125.428-.98 1-1.828 1.72-2.547A7.977 7.977 0 0 1 4.905.625 7.82 7.82 0 0 1 8 0a7.863 7.863 0 0 1 5.672 2.344 8.216 8.216 0 0 1 1.703 2.547C15.792 5.859 16 6.896 16 8a7.863 7.863 0 0 1-.625 3.14 8.026 8.026 0 0 1-1.703 2.532 7.979 7.979 0 0 1-2.547 1.703c-.98.417-2.02.625-3.125.625a7.863 7.863 0 0 1-5.672-2.344A8.215 8.215 0 0 1 .625 11.11 7.786 7.786 0 0 1 0 8Zm6 3.5v1.031h4V11.5H9V6.719c0-.125-.073-.188-.219-.188h-2.75V7.5h1v4H6Zm1.063-6.281c.291.229.604.343.937.343.354 0 .661-.12.922-.359.26-.24.39-.536.39-.89 0-.396-.135-.72-.406-.97A1.235 1.235 0 0 0 8 2.97c-.396 0-.714.13-.953.39-.24.26-.36.579-.36.954 0 .354.125.656.375.906Z`,ltr:!1,viewBox:`0 0 16 16`,collection:`SAP-icons-v4`,packageName:`@ui5/webcomponents-icons`}),x(`information`,{pathData:`M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm0 7a1 1 0 0 0-1 1v4a1 1 0 1 0 2 0V8a1 1 0 0 0-1-1Zm0-4a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z`,ltr:!1,viewBox:`0 0 16 16`,collection:`SAP-icons-v5`,packageName:`@ui5/webcomponents-icons`});var Te=`information`;x(`decline`,{pathData:`m2.205 2.96.752-.789A.559.559 0 0 1 3.367 2c.137 0 .263.057.377.171l4.239 4.286 4.273-4.286A.522.522 0 0 1 12.633 2a.56.56 0 0 1 .41.171l.752.789c.273.251.273.514 0 .789L9.555 8l4.24 4.286c.25.251.25.503 0 .754l-.752.789c-.183.114-.32.171-.41.171-.069 0-.194-.057-.377-.171L7.983 9.543l-4.24 4.286a.522.522 0 0 1-.375.171c-.092 0-.228-.057-.41-.171l-.753-.789c-.25-.251-.25-.503 0-.754L6.445 8l-4.24-4.251c-.273-.275-.273-.538 0-.789Z`,ltr:!1,viewBox:`0 0 16 16`,accData:L,collection:`SAP-icons-v4`,packageName:`@ui5/webcomponents-icons`}),x(`decline`,{pathData:`M11.72 3.22a.75.75 0 1 1 1.06 1.06L9.06 8l3.72 3.72a.75.75 0 1 1-1.06 1.06L8 9.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06L6.94 8 3.22 4.28a.75.75 0 1 1 1.06-1.06L8 6.94l3.72-3.72Z`,ltr:!1,viewBox:`0 0 16 16`,accData:L,collection:`SAP-icons-v5`,packageName:`@ui5/webcomponents-icons`});var Ee=`decline`,z;(function(e){e.Default=`Default`,e.Positive=`Positive`,e.Negative=`Negative`,e.Transparent=`Transparent`,e.Emphasized=`Emphasized`,e.Attention=`Attention`})(z||={});var B=z,V;(function(e){e.Button=`Button`,e.Submit=`Submit`,e.Reset=`Reset`})(V||={});var H=V,U;(function(e){e.InlineText=`InlineText`,e.OverlayText=`OverlayText`,e.AttentionDot=`AttentionDot`})(U||={});var W=U,G;(function(e){e.Button=`Button`,e.Link=`Link`})(G||={});var K=G,q;(function(e){e.S=`S`,e.M=`M`,e.L=`L`})(q||={});var J=q;function Y(e){return w(te,{children:[w(`button`,{type:`button`,class:{"ui5-button-root":!0,"ui5-button-badge-placement-end":this.badge[0]?.design===`InlineText`,"ui5-button-badge-placement-end-top":this.badge[0]?.design===`OverlayText`,"ui5-button-badge-dot":this.badge[0]?.design===`AttentionDot`},disabled:this.disabled,"data-sap-focus-ref":!0,"aria-pressed":e?.ariaPressed,"aria-valuemin":e?.ariaValueMin,"aria-valuemax":e?.ariaValueMax,"aria-valuenow":e?.ariaValueNow,"aria-valuetext":e?.ariaValueText,onFocusOut:this._onfocusout,onClick:this._onclick,onMouseDown:this._onmousedown,onKeyDown:this._onkeydown,onKeyUp:this._onkeyup,onTouchStart:this._ontouchstart,onTouchEnd:this._ontouchend,tabindex:this.tabIndexValue,"aria-expanded":this._computedAccessibilityAttributes?.expanded,"aria-controls":this._computedAccessibilityAttributes?.controls,"aria-haspopup":this._computedAccessibilityAttributes?.hasPopup,"aria-label":this._computedAccessibilityAttributes?.ariaLabel,"aria-keyshortcuts":this._computedAccessibilityAttributes?.ariaKeyShortcuts,"aria-description":this.ariaDescriptionText,"aria-busy":this.loading?`true`:void 0,title:this.buttonTitle,part:`button`,role:this.effectiveAccRole,children:[this.icon&&S(v,{class:`ui5-button-icon`,name:this.icon,mode:`Decorative`,part:`icon`}),S(`span`,{id:`${this._id}-content`,class:`ui5-button-text`,children:S(`bdi`,{children:S(`slot`,{})})}),this.endIcon&&S(v,{class:`ui5-button-end-icon`,name:this.endIcon,mode:`Decorative`,part:`endIcon`}),this.shouldRenderBadge&&S(`slot`,{name:`badge`})]}),this.loading&&S(ue,{id:`${this._id}-button-busy-indicator`,class:`ui5-button-busy-indicator`,size:this.iconOnly?J.S:J.M,active:!0,delay:this.loadingDelay,inert:this.loading})]})}s(`@ui5/webcomponents-theming`,`sap_horizon`,async()=>y),s(`@ui5/webcomponents`,`sap_horizon`,async()=>le,`host`);var De=`:host{vertical-align:middle}.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host(:not([hidden])){display:inline-block}:host{min-width:var(--_ui5_button_base_min_width);height:var(--_ui5_button_base_height);line-height:normal;font-family:var(--_ui5_button_fontFamily);font-size:var(--sapFontSize);text-shadow:var(--_ui5_button_text_shadow);border-radius:var(--_ui5_button_border_radius);cursor:pointer;background-color:var(--sapButton_Background);border:var(--sapButton_BorderWidth) solid var(--sapButton_BorderColor);color:var(--sapButton_TextColor);box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-tap-highlight-color:transparent}.ui5-button-root{min-width:inherit;cursor:inherit;height:100%;width:100%;box-sizing:border-box;display:flex;justify-content:center;align-items:center;outline:none;padding:0 var(--_ui5_button_base_padding);position:relative;background:transparent;border:none;color:inherit;text-shadow:inherit;font:inherit;white-space:inherit;overflow:inherit;text-overflow:inherit;letter-spacing:inherit;word-spacing:inherit;line-height:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host(:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host(:not([hidden]):not([disabled]).ui5_hovered){background:var(--sapButton_Hover_Background);border:1px solid var(--sapButton_Hover_BorderColor);color:var(--sapButton_Hover_TextColor)}.ui5-button-icon,.ui5-button-end-icon{color:inherit;flex-shrink:0}.ui5-button-end-icon{margin-inline-start:var(--_ui5_button_base_icon_margin)}:host([icon-only]:not([has-end-icon])) .ui5-button-root{min-width:auto;padding:0}:host([icon-only]) .ui5-button-text{display:none}.ui5-button-text{outline:none;position:relative;white-space:inherit;overflow:inherit;text-overflow:inherit}:host([has-icon]:not(:empty)) .ui5-button-text{margin-inline-start:var(--_ui5_button_base_icon_margin)}:host([has-end-icon]:not([has-icon]):empty) .ui5-button-end-icon{margin-inline-start:0}:host([disabled]){opacity:var(--sapContent_DisabledOpacity);pointer-events:unset;cursor:default}:host([has-icon]:not([icon-only]):not([has-end-icon])) .ui5-button-text{min-width:calc(var(--_ui5_button_base_min_width) - var(--_ui5_button_base_icon_margin) - 1rem)}:host([disabled]:active){pointer-events:none}:host([desktop]:not([loading])) .ui5-button-root:focus-within:after,:host(:not([active])) .ui5-button-root:focus-visible:after,:host([desktop][active][design="Emphasized"]) .ui5-button-root:focus-within:after,:host([active][design="Emphasized"]) .ui5-button-root:focus-visible:after,:host([desktop][active]) .ui5-button-root:focus-within:before,:host([active]) .ui5-button-root:focus-visible:before{content:"";position:absolute;box-sizing:border-box;pointer-events:none;inset:.0625rem;border:var(--_ui5_button_focused_border);border-radius:var(--_ui5_button_focused_border_radius)}:host([desktop][active]) .ui5-button-root:focus-within:before,:host([active]) .ui5-button-root:focus-visible:before{border-color:var(--_ui5_button_pressed_focused_border_color)}:host([design="Emphasized"][desktop]) .ui5-button-root:focus-within:after,:host([design="Emphasized"]) .ui5-button-root:focus-visible:after{border-color:var(--_ui5_button_emphasized_focused_border_color)}:host([design="Emphasized"][desktop]) .ui5-button-root:focus-within:before,:host([design="Emphasized"]) .ui5-button-root:focus-visible:before{content:"";position:absolute;box-sizing:border-box;inset:.0625rem;border:var(--_ui5_button_emphasized_focused_border_before);border-radius:var(--_ui5_button_focused_border_radius)}.ui5-button-root::-moz-focus-inner{border:0}bdi{display:block;white-space:inherit;overflow:inherit;text-overflow:inherit}:host([ui5-button][active]:not([disabled]):not([non-interactive])){background-image:none;background-color:var(--sapButton_Active_Background);border-color:var(--sapButton_Active_BorderColor);color:var(--sapButton_Active_TextColor)}:host([design="Positive"]){background-color:var(--sapButton_Accept_Background);border-color:var(--sapButton_Accept_BorderColor);color:var(--sapButton_Accept_TextColor)}:host([design="Positive"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Positive"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Accept_Hover_Background);border-color:var(--sapButton_Accept_Hover_BorderColor);color:var(--sapButton_Accept_Hover_TextColor)}:host([ui5-button][design="Positive"][active]:not([non-interactive])){background-color:var(--sapButton_Accept_Active_Background);border-color:var(--sapButton_Accept_Active_BorderColor);color:var(--sapButton_Accept_Active_TextColor)}:host([design="Negative"]){background-color:var(--sapButton_Reject_Background);border-color:var(--sapButton_Reject_BorderColor);color:var(--sapButton_Reject_TextColor)}:host([design="Negative"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Negative"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Reject_Hover_Background);border-color:var(--sapButton_Reject_Hover_BorderColor);color:var(--sapButton_Reject_Hover_TextColor)}:host([ui5-button][design="Negative"][active]:not([non-interactive])){background-color:var(--sapButton_Reject_Active_Background);border-color:var(--sapButton_Reject_Active_BorderColor);color:var(--sapButton_Reject_Active_TextColor)}:host([design="Attention"]){background-color:var(--sapButton_Attention_Background);border-color:var(--sapButton_Attention_BorderColor);color:var(--sapButton_Attention_TextColor)}:host([design="Attention"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Attention"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Attention_Hover_Background);border-color:var(--sapButton_Attention_Hover_BorderColor);color:var(--sapButton_Attention_Hover_TextColor)}:host([ui5-button][design="Attention"][active]:not([non-interactive])){background-color:var(--sapButton_Attention_Active_Background);border-color:var(--sapButton_Attention_Active_BorderColor);color:var(--sapButton_Attention_Active_TextColor)}:host([design="Emphasized"]){background-color:var(--sapButton_Emphasized_Background);border-color:var(--sapButton_Emphasized_BorderColor);border-width:var(--_ui5_button_emphasized_border_width);color:var(--sapButton_Emphasized_TextColor);font-family:var(--sapButton_Emphasized_FontFamily)}:host([design="Emphasized"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Emphasized"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Emphasized_Hover_Background);border-color:var(--sapButton_Emphasized_Hover_BorderColor);border-width:var(--_ui5_button_emphasized_border_width);color:var(--sapButton_Emphasized_Hover_TextColor)}:host([ui5-button][design="Empasized"][active]:not([non-interactive])){background-color:var(--sapButton_Emphasized_Active_Background);border-color:var(--sapButton_Emphasized_Active_BorderColor);color:var(--sapButton_Emphasized_Active_TextColor)}:host([design="Emphasized"][desktop]) .ui5-button-root:focus-within:after,:host([design="Emphasized"]) .ui5-button-root:focus-visible:after{border-color:var(--_ui5_button_emphasized_focused_border_color);outline:none}:host([design="Emphasized"][desktop][active]:not([non-interactive])) .ui5-button-root:focus-within:after,:host([design="Emphasized"][active]:not([non-interactive])) .ui5-button-root:focus-visible:after{border-color:var(--_ui5_button_emphasized_focused_active_border_color)}:host([design="Transparent"]){background-color:var(--sapButton_Lite_Background);color:var(--sapButton_Lite_TextColor);border-color:var(--sapButton_Lite_BorderColor)}:host([design="Transparent"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Transparent"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Lite_Hover_Background);border-color:var(--sapButton_Lite_Hover_BorderColor);color:var(--sapButton_Lite_Hover_TextColor)}:host([ui5-button][design="Transparent"][active]:not([non-interactive])){background-color:var(--sapButton_Lite_Active_Background);border-color:var(--sapButton_Lite_Active_BorderColor);color:var(--sapButton_Active_TextColor)}:host([ui5-segmented-button-item][active][desktop]) .ui5-button-root:focus-within:after,:host([ui5-segmented-button-item][active]) .ui5-button-root:focus-visible:after,:host([pressed][desktop]) .ui5-button-root:focus-within:after,:host([pressed]) .ui5-button-root:focus-visible:after{border-color:var(--_ui5_button_pressed_focused_border_color);outline:none}:host([ui5-segmented-button-item][desktop]:not(:last-child)) .ui5-button-root:focus-within:after,:host([ui5-segmented-button-item]:not(:last-child)) .ui5-button-root:focus-visible:after{border-top-right-radius:var(--_ui5_button_focused_inner_border_radius);border-bottom-right-radius:var(--_ui5_button_focused_inner_border_radius)}:host([ui5-segmented-button-item][desktop]:not(:first-child)) .ui5-button-root:focus-within:after,:host([ui5-segmented-button-item]:not(:first-child)) .ui5-button-root:focus-visible:after{border-top-left-radius:var(--_ui5_button_focused_inner_border_radius);border-bottom-left-radius:var(--_ui5_button_focused_inner_border_radius)}::slotted([slot="badge"][design="InlineText"]){pointer-events:initial;font-family:var(--sapButton_FontFamily);font-size:var(--sapFontSmallSize);padding-inline-start:.25rem;--_ui5-tag-height: .625rem}::slotted([slot="badge"][design="OverlayText"]){pointer-events:initial;position:absolute;top:0;inset-inline-end:0;margin:var(--_ui5_button_overlay_badge_offset, -.5rem);z-index:1;font-family:var(--sapButton_FontFamily);font-size:var(--sapFontSmallSize);--_ui5-tag-height: .625rem}::slotted([slot="badge"][design="AttentionDot"]){pointer-events:initial;content:"";position:absolute;top:0;inset-inline-end:0;margin:-.25rem;z-index:1}:host(:state(has-overlay-badge)){overflow:visible;margin-inline-end:.3125rem}:host([loading]){position:relative;pointer-events:unset}:host([loading]) .ui5-button-root{opacity:var(--sapContent_DisabledOpacity)}:host([loading][design="Emphasized"]){background-color:inherit;border:inherit}:host([design="Emphasized"][loading]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Emphasized"][loading]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:inherit;border:inherit}:host([design="Emphasized"][loading]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover) .ui5-button-root,:host([design="Emphasized"][loading]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered) .ui5-button-root{background-color:var(--sapButton_Emphasized_Hover_Background)}:host([loading][design="Emphasized"]) .ui5-button-root{background-color:var(--sapButton_Emphasized_Background);border-color:var(--sapButton_Emphasized_BorderColor)}.ui5-button-busy-indicator{position:absolute;height:100%;width:100%;top:0}:host([has-end-icon]:not([icon])) .ui5-button-root{justify-content:flex-start}:host([icon-only]) .ui5-button-root{justify-content:center}:host([has-end-icon]:not([icon]):not(:empty)) .ui5-button-end-icon{padding-inline-start:var(--_ui5_button_base_icon_margin);margin-inline-start:auto} +`,X=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Z,Oe=!1,Q=null,$=Z=class extends _{constructor(){super(),this.design=`Default`,this.disabled=!1,this.submits=!1,this.accessibilityAttributes={},this.type=`Button`,this.accessibleRole=`Button`,this.active=!1,this.iconOnly=!1,this.hasIcon=!1,this.hasEndIcon=!1,this.nonInteractive=!1,this.loading=!1,this.loadingDelay=1e3,this._iconSettings={},this.forcedTabIndex=`0`,this._isTouch=!1,this._cancelAction=!1,this._isSpacePressed=!1,this._clickHandlerAttached=!1,this._deactivate=()=>{Q&&Q._setActiveState(!1)},this._onclickBound=e=>{e instanceof CustomEvent||this._onclick(e)},this._clickHandlerAttached||=(this.addEventListener(`click`,this._onclickBound),!0),Oe||=(document.addEventListener(`mouseup`,this._deactivate),!0)}_ontouchstart(){this.nonInteractive||this._setActiveState(!0)}onEnterDOM(){me()&&this.setAttribute(`desktop`,``),this._clickHandlerAttached||=(this.addEventListener(`click`,this._onclickBound),!0),ce(this,this._updateAccessibleNameRefTexts.bind(this))}_updateAccessibleNameRefTexts(){this._accessibleNameRefTexts=se(this)}onExitDOM(){this._clickHandlerAttached&&=(this.removeEventListener(`click`,this._onclickBound),!1),Q===this&&(Q=null),re(this)}async onBeforeRendering(){this._setBadgeOverlayStyle(),this.hasIcon=!!this.icon,this.hasEndIcon=!!this.endIcon,this.iconOnly=this.isIconOnly;let e=await this.getDefaultTooltip();this.buttonTitle=this.iconOnly?this.tooltip??e:this.tooltip}_setBadgeOverlayStyle(){this.badge.length&&(this.badge[0].design===W.AttentionDot||this.badge[0].design===W.OverlayText)?this._internals.states.add(`has-overlay-badge`):this._internals.states.delete(`has-overlay-badge`)}_onclick(e){if(e.stopImmediatePropagation(),this.nonInteractive)return;if(this.loading){e.preventDefault();return}let{altKey:t,ctrlKey:i,metaKey:a,shiftKey:o}=e;if(!this.fireDecoratorEvent(`click`,{originalEvent:e,altKey:t,ctrlKey:i,metaKey:a,shiftKey:o})){e.preventDefault();return}this._isSubmit&&m(this),this._isReset&&r(this),n()&&this.getDomRef()?.focus()}_onmousedown(){this.nonInteractive||(this._setActiveState(!0),Q=this)}_ontouchend(e){(this.disabled||this.loading)&&(e.preventDefault(),e.stopPropagation()),this.active&&this._setActiveState(!1),Q&&Q._setActiveState(!1)}_onkeydown(t){u(t)||b(t)?this._cancelAction=!0:e(t)&&(this._isSpacePressed=!0),e(t)||d(t)?this._setActiveState(!0):this._cancelAction&&this._setActiveState(!1)}_onkeyup(t){let n=e(t),r=u(t)||b(t);if(n||l(t)){if(this._cancelAction){this._cancelAction=!1,this._isSpacePressed=!1,t.preventDefault();return}this._isSpacePressed=!1}else r&&!this._isSpacePressed&&(this._cancelAction=!1);(e(t)||d(t))&&this.active&&this._setActiveState(!1)}_onfocusout(){this.nonInteractive||(this._isSpacePressed=!1,this._cancelAction=!1,this.active&&this._setActiveState(!1))}_setActiveState(e){!this.fireDecoratorEvent(`active-state-change`)||this.loading||(this.active=e)}get hasButtonType(){return this.design!==B.Default&&this.design!==B.Transparent}get isIconOnly(){return!C(this.text)}static typeTextMappings(){return{Positive:t,Negative:o,Emphasized:ee,Attention:pe}}getDefaultTooltip(){if(ie())return de(this.icon)}get buttonTypeText(){return Z.i18nBundle.getText(Z.typeTextMappings()[this.design])}get effectiveAccRole(){return p(this.accessibleRole)}get tabIndexValue(){if(this.disabled)return;let e=this.getAttribute(`tabindex`);return e?Number.parseInt(e):this.nonInteractive?-1:Number.parseInt(this.forcedTabIndex)}get ariaLabelText(){let e=this._accessibleNameRefTexts||this.accessibleName||``,t=this.textContent||``,n=this.effectiveBadgeDescriptionText||``;return[e||t,n].filter(e=>e).join(` `)}get ariaDescriptionText(){let e=[this.accessibleDescription===``?void 0:this.accessibleDescription,this.hasButtonType?this.buttonTypeText:``].filter(e=>e);return e.length>0?e.join(` `):void 0}get _computedAccessibilityAttributes(){return{expanded:this.accessibilityAttributes.expanded,hasPopup:this.accessibilityAttributes.hasPopup,controls:this.accessibilityAttributes.controls,ariaKeyShortcuts:this.accessibilityAttributes.ariaKeyShortcuts,ariaLabel:this.accessibilityAttributes.ariaLabel||this.ariaLabelText}}get accessibilityInfo(){return{description:this.ariaDescriptionText,role:this.effectiveAccRole,disabled:this.disabled,children:this.text,type:this.effectiveAccRoleTranslation,label:this.ariaLabelText}}get effectiveAccRoleTranslation(){return this.accessibleRole===K.Button?Z.i18nBundle.getText(ae):this.accessibleRole===K.Link?Z.i18nBundle.getText(fe):``}get effectiveBadgeDescriptionText(){if(!this.shouldRenderBadge)return``;let e=this.badge[0].effectiveText;switch(e){case``:return e;case`1`:return Z.i18nBundle.getText(f,e);default:return Z.i18nBundle.getText(i,e)}}get _isSubmit(){return this.type===H.Submit||this.submits}get _isReset(){return this.type===H.Reset}get shouldRenderBadge(){return!!this.badge.length&&(!!this.badge[0].text.length||this.badge[0].design===W.AttentionDot)}};X([T()],$.prototype,`design`,void 0),X([T({type:Boolean})],$.prototype,`disabled`,void 0),X([T()],$.prototype,`icon`,void 0),X([T()],$.prototype,`endIcon`,void 0),X([T({type:Boolean})],$.prototype,`submits`,void 0),X([T()],$.prototype,`form`,void 0),X([T()],$.prototype,`tooltip`,void 0),X([T()],$.prototype,`accessibleName`,void 0),X([T()],$.prototype,`accessibleNameRef`,void 0),X([T({type:Object})],$.prototype,`accessibilityAttributes`,void 0),X([T()],$.prototype,`accessibleDescription`,void 0),X([T()],$.prototype,`type`,void 0),X([T()],$.prototype,`accessibleRole`,void 0),X([T({type:Boolean})],$.prototype,`active`,void 0),X([T({type:Boolean})],$.prototype,`iconOnly`,void 0),X([T({type:Boolean})],$.prototype,`hasIcon`,void 0),X([T({type:Boolean})],$.prototype,`hasEndIcon`,void 0),X([T({type:Boolean})],$.prototype,`nonInteractive`,void 0),X([T({type:Boolean})],$.prototype,`loading`,void 0),X([T({type:Number})],$.prototype,`loadingDelay`,void 0),X([T({noAttribute:!0})],$.prototype,`buttonTitle`,void 0),X([T({type:Object})],$.prototype,`_iconSettings`,void 0),X([T({noAttribute:!0})],$.prototype,`forcedTabIndex`,void 0),X([T({type:Boolean})],$.prototype,`_isTouch`,void 0),X([T({type:Boolean,noAttribute:!0})],$.prototype,`_cancelAction`,void 0),X([T({type:Boolean,noAttribute:!0})],$.prototype,`_isSpacePressed`,void 0),X([T({noAttribute:!0})],$.prototype,`_accessibleNameRefTexts`,void 0),X([h({type:Node,default:!0})],$.prototype,`text`,void 0),X([h({type:HTMLElement,invalidateOnChildChange:!0})],$.prototype,`badge`,void 0),X([oe(`@ui5/webcomponents`)],$,`i18nBundle`,void 0),$=Z=X([ne({tag:`ui5-button`,formAssociated:!0,languageAware:!0,renderer:c,template:Y,styles:De,shadowRootOptions:{delegatesFocus:!0}}),a(`click`,{bubbles:!0,cancelable:!0}),a(`active-state-change`,{bubbles:!0,cancelable:!0})],$),$.define();var ke=$;export{ge as _,Ee as a,Ce as c,ve as d,ye as f,M as g,I as h,B as i,Se as l,xe as m,Y as n,Te as o,be as p,W as r,we as s,ke as t,_e as u,he as v,E as y}; \ No newline at end of file diff --git a/app/vue/dist/assets/CFLogin-CPCl0TDT.css b/app/vue/dist/assets/CFLogin-CPCl0TDT.css deleted file mode 100644 index cfc69f94..00000000 --- a/app/vue/dist/assets/CFLogin-CPCl0TDT.css +++ /dev/null @@ -1 +0,0 @@ -.cf-login-view[data-v-3854a0f6]{display:flex;flex-direction:column;gap:1rem;padding:1rem;max-width:700px}.loading[data-v-3854a0f6]{display:flex;justify-content:center;padding:3rem}.mode-toggle[data-v-3854a0f6]{display:flex}.form-card[data-v-3854a0f6]{display:flex;flex-direction:column;gap:1rem;padding:1.25rem;background:var(--sapGroup_ContentBackground, #fff);border-radius:8px;border:1px solid var(--sapGroup_ContentBorderColor, #d9d9d9)}.form-grid[data-v-3854a0f6]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.full-width[data-v-3854a0f6]{grid-column:1 / -1}.form-field[data-v-3854a0f6]{display:flex;flex-direction:column;gap:.25rem}.hint[data-v-3854a0f6]{font-size:.8125rem;color:var(--sapContent_LabelColor);font-style:italic}.action-bar[data-v-3854a0f6]{display:flex;gap:.5rem;align-items:center} diff --git a/app/vue/dist/assets/CFLogin-CbZdU27o.js b/app/vue/dist/assets/CFLogin-CbZdU27o.js new file mode 100644 index 00000000..7f0984d1 --- /dev/null +++ b/app/vue/dist/assets/CFLogin-CbZdU27o.js @@ -0,0 +1 @@ +import{A as e,M as t,O as n,St as r,X as i,c as a,d as o,i as s,s as c,t as ee,u as l,v as u}from"./_plugin-vue_export-helper-p2JYVKvd.js";import"./BusyIndicator-ozQjqKjn.js";import"./Button-INoaGcLE.js";import{G as d,H as te}from"./index-6hg61Of-.js";import"./Link-D7D_IjML.js";import"./Option-tgytz2q0.js";import"./SegmentedButton-N43lIgfy.js";import"./MessageStrip-ub7Xvxnh.js";var ne={class:`cf-login-view`},re={key:0,active:``,size:`Medium`,class:`loading`},ie={key:0,design:`Positive`,"hide-close-button":``},ae={key:1,design:`Warning`,"hide-close-button":``},oe={key:2,design:`Warning`,"hide-close-button":``},se={key:3,class:`form-card`},ce={class:`form-grid`},le={class:`form-field`},ue=[`disabled`],de=[`value`,`selected`],fe={class:`form-field`},pe=[`disabled`],me=[`value`,`selected`],he=[`disabled`],ge={class:`mode-toggle`},_e=[`pressed`],ve=[`pressed`],ye={key:4,class:`form-card`},be={class:`form-field`},xe=[`value`],Se={class:`form-field`},Ce={key:1,class:`hint`},we={class:`form-field`},Te=[`value`],f=[`disabled`],p={key:5,class:`form-card`},m={class:`form-grid`},h={class:`form-field full-width`},g=[`value`],_={class:`form-field`},v=[`value`],y={class:`form-field`},b=[`value`],x={class:`form-field`},S=[`value`],C={class:`form-field`},w=[`value`],T=[`disabled`],E={key:6,design:`Negative`,"hide-close-button":``},D={key:7,design:`Positive`,"hide-close-button":``},O={class:`action-bar`},Ee=[`disabled`],k=ee(u({__name:`CFLogin`,setup(ee){let{fetchDirect:u}=te(),k=i(`sso`),A=i(!1),j=i(!1),M=i(``),N=i(``),P=i({loggedIn:!1}),F=i(``),I=i(``),L=i(``),R=i(``),z=i(``),B=i(``),V=i(``),H=i([]),U=i([]),W=i(``),G=i(``),K=i(!1),q=i(!1),J=i(!1);c(()=>P.value.loggedIn&&(!P.value.org||!P.value.space));let De=c(()=>P.value.loggedIn),Oe=c(()=>!!W.value&&!!G.value&&!J.value),ke=c(()=>!!I.value&&!!L.value&&!j.value),Ae=c(()=>!!I.value&&!!R.value&&!!z.value&&!j.value);async function Y(){A.value=!0,M.value=``;try{P.value=await u(`/hana/cf-status`),P.value.apiEndpoint&&!I.value&&(I.value=P.value.apiEndpoint);let e=await u(`/hana/cf-sso-url`);F.value=e.ssoUrl||``,e.apiEndpoint&&!I.value&&(I.value=e.apiEndpoint),P.value.loggedIn&&await X()}catch(e){M.value=e.message}finally{A.value=!1}}async function X(){K.value=!0;try{H.value=await u(`/hana/cf-orgs`),H.value.length===1&&(W.value=H.value[0].name,await Z(H.value[0].guid))}catch{}finally{K.value=!1}}async function Z(e){q.value=!0;try{let t=e?`?orgGuid=${e}`:``;U.value=await u(`/hana/cf-spaces${t}`),U.value.length===1&&(G.value=U.value[0].name)}catch{}finally{q.value=!1}}function je(e){let t=e.detail?.selectedOption?.value||e.detail?.selectedOption?.textContent||``;W.value=t,G.value=``;let n=H.value.find(e=>e.name===t);n&&Z(n.guid)}function Q(e){G.value=e.detail?.selectedOption?.value||e.detail?.selectedOption?.textContent||``}async function Me(){J.value=!0,M.value=``,N.value=``;try{let e=await(await fetch(`/hana/cf-target`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({org:W.value,space:G.value})})).json();e.success?(P.value=e.status,N.value=`Target set: Org: ${W.value}, Space: ${G.value}`,d.show(`CF target set successfully`)):M.value=e.message||`Failed to set target`}catch(e){M.value=e.message}finally{J.value=!1}}async function Ne(){if(I.value)try{let e=await u(`/hana/cf-sso-url?api=${encodeURIComponent(I.value)}`);F.value=e.ssoUrl||``}catch{}}async function $(){j.value=!0,M.value=``,N.value=``;try{let e={mode:k.value,apiEndpoint:I.value};k.value===`sso`?e.passcode=L.value:(e.username=R.value,e.password=z.value,B.value&&(e.org=B.value),V.value&&(e.space=V.value));let t=await(await fetch(`/hana/cf-login`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})).json();t.success?(N.value=`Successfully logged in to Cloud Foundry`,t.status&&(P.value=t.status),L.value=``,z.value=``,d.show(`CF Login successful`),P.value.loggedIn&&(!P.value.org||!P.value.space)&&await X()):M.value=t.message||`Login failed`}catch(e){M.value=e.message||`Login failed`}finally{j.value=!1}}function Pe(){F.value&&window.open(F.value,`_blank`)}async function Fe(){j.value=!0,M.value=``,N.value=``;try{(await(await fetch(`/hana/cf-logout`,{method:`POST`})).json()).success&&(P.value={loggedIn:!1},H.value=[],U.value=[],W.value=``,G.value=``,N.value=`Logged out from Cloud Foundry`,d.show(`CF Logout successful`))}catch(e){M.value=e.message}finally{j.value=!1}}return n(Y),(n,i)=>(e(),o(`div`,ne,[i[24]||=a(`ui5-title`,{level:`H3`},`Cloud Foundry Login`,-1),A.value?(e(),o(`ui5-busy-indicator`,re)):(e(),o(s,{key:1},[P.value.loggedIn&&P.value.org&&P.value.space?(e(),o(`ui5-message-strip`,ie,` Logged in to `+r(P.value.apiEndpoint)+` — Org: `+r(P.value.org)+`, Space: `+r(P.value.space),1)):P.value.loggedIn?(e(),o(`ui5-message-strip`,ae,` Logged in to `+r(P.value.apiEndpoint)+` — Org and Space not set. Please select below. `,1)):(e(),o(`ui5-message-strip`,oe,` Not logged in to Cloud Foundry `)),De.value?(e(),o(`div`,se,[i[13]||=a(`ui5-title`,{level:`H5`},`Organization & Space Target`,-1),a(`div`,ce,[a(`div`,le,[i[10]||=a(`ui5-label`,{required:``},`Organization`,-1),a(`ui5-select`,{onChange:je,disabled:K.value},[i[9]||=a(`ui5-option`,{value:``},`-- Select --`,-1),(e(!0),o(s,null,t(H.value,t=>(e(),o(`ui5-option`,{key:t.guid,value:t.name,selected:t.name===W.value},r(t.name),9,de))),128))],40,ue)]),a(`div`,fe,[i[12]||=a(`ui5-label`,{required:``},`Space`,-1),a(`ui5-select`,{onChange:Q,disabled:q.value||!W.value},[i[11]||=a(`ui5-option`,{value:``},`-- Select --`,-1),(e(!0),o(s,null,t(U.value,t=>(e(),o(`ui5-option`,{key:t.guid,value:t.name,selected:t.name===G.value},r(t.name),9,me))),128))],40,pe)])]),a(`ui5-button`,{design:`Emphasized`,icon:`target-group`,disabled:!Oe.value,onClick:Me},`Set Target`,8,he)])):l(``,!0),a(`div`,ge,[a(`ui5-segmented-button`,null,[a(`ui5-segmented-button-item`,{pressed:k.value===`sso`,onClick:i[0]||=e=>k.value=`sso`},`SSO Passcode`,8,_e),a(`ui5-segmented-button-item`,{pressed:k.value===`password`,onClick:i[1]||=e=>k.value=`password`},`Username / Password`,8,ve)])]),k.value===`sso`?(e(),o(`div`,ye,[i[17]||=a(`ui5-title`,{level:`H5`},`SSO Passcode Login`,-1),a(`div`,be,[i[14]||=a(`ui5-label`,{required:``},`API Endpoint`,-1),a(`ui5-input`,{value:I.value,onChange:i[2]||=e=>{I.value=e.target.value,Ne()},placeholder:`https://api.cf.us10.hana.ondemand.com`},null,40,xe)]),a(`div`,Se,[i[15]||=a(`ui5-label`,null,`Step 1: Get your one-time passcode`,-1),F.value?(e(),o(`ui5-link`,{key:0,onClick:Pe},` Open Passcode Page (`+r(F.value)+`) `,1)):(e(),o(`span`,Ce,`Enter API endpoint to generate SSO URL`))]),a(`div`,we,[i[16]||=a(`ui5-label`,{required:``},`Step 2: Paste the passcode`,-1),a(`ui5-input`,{value:L.value,onChange:i[3]||=e=>L.value=e.target.value,placeholder:`One-time passcode from browser`},null,40,Te)]),a(`ui5-button`,{design:`Emphasized`,icon:`log`,disabled:!ke.value,onClick:$},`Log In`,8,f)])):(e(),o(`div`,p,[i[23]||=a(`ui5-title`,{level:`H5`},`Username / Password Login`,-1),a(`div`,m,[a(`div`,h,[i[18]||=a(`ui5-label`,{required:``},`API Endpoint`,-1),a(`ui5-input`,{value:I.value,onChange:i[4]||=e=>I.value=e.target.value,placeholder:`https://api.cf.us10.hana.ondemand.com`},null,40,g)]),a(`div`,_,[i[19]||=a(`ui5-label`,{required:``},`Username (Email)`,-1),a(`ui5-input`,{value:R.value,onChange:i[5]||=e=>R.value=e.target.value,placeholder:`user@example.com`},null,40,v)]),a(`div`,y,[i[20]||=a(`ui5-label`,{required:``},`Password`,-1),a(`ui5-input`,{type:`Password`,value:z.value,onChange:i[6]||=e=>z.value=e.target.value},null,40,b)]),a(`div`,x,[i[21]||=a(`ui5-label`,null,`Organization`,-1),a(`ui5-input`,{value:B.value,onChange:i[7]||=e=>B.value=e.target.value,placeholder:`(optional)`},null,40,S)]),a(`div`,C,[i[22]||=a(`ui5-label`,null,`Space`,-1),a(`ui5-input`,{value:V.value,onChange:i[8]||=e=>V.value=e.target.value,placeholder:`(optional)`},null,40,w)])]),a(`ui5-button`,{design:`Emphasized`,icon:`log`,disabled:!Ae.value,onClick:$},`Log In`,8,T)])),M.value?(e(),o(`ui5-message-strip`,E,r(M.value),1)):l(``,!0),N.value?(e(),o(`ui5-message-strip`,D,r(N.value),1)):l(``,!0),a(`div`,O,[a(`ui5-button`,{design:`Transparent`,icon:`refresh`,onClick:Y},`Refresh Status`),P.value.loggedIn?(e(),o(`ui5-button`,{key:0,design:`Negative`,icon:`log`,disabled:j.value,onClick:Fe},`Log Out`,8,Ee)):l(``,!0)])],64))]))}}),[[`__scopeId`,`data-v-3854a0f6`]]);export{k as default}; \ No newline at end of file diff --git a/app/vue/dist/assets/CFLogin-CqumhYED.css b/app/vue/dist/assets/CFLogin-CqumhYED.css new file mode 100644 index 00000000..b99ae190 --- /dev/null +++ b/app/vue/dist/assets/CFLogin-CqumhYED.css @@ -0,0 +1 @@ +.cf-login-view[data-v-3854a0f6]{flex-direction:column;gap:1rem;max-width:700px;padding:1rem;display:flex}.loading[data-v-3854a0f6]{justify-content:center;padding:3rem;display:flex}.mode-toggle[data-v-3854a0f6]{display:flex}.form-card[data-v-3854a0f6]{background:var(--sapGroup_ContentBackground,#fff);border:1px solid var(--sapGroup_ContentBorderColor,#d9d9d9);border-radius:8px;flex-direction:column;gap:1rem;padding:1.25rem;display:flex}.form-grid[data-v-3854a0f6]{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.full-width[data-v-3854a0f6]{grid-column:1/-1}.form-field[data-v-3854a0f6]{flex-direction:column;gap:.25rem;display:flex}.hint[data-v-3854a0f6]{color:var(--sapContent_LabelColor);font-size:.8125rem;font-style:italic}.action-bar[data-v-3854a0f6]{align-items:center;gap:.5rem;display:flex} diff --git a/app/vue/dist/assets/CalcViewBrowser-CqGDwi6l.css b/app/vue/dist/assets/CalcViewBrowser-CqGDwi6l.css deleted file mode 100644 index 0ea67c82..00000000 --- a/app/vue/dist/assets/CalcViewBrowser-CqGDwi6l.css +++ /dev/null @@ -1 +0,0 @@ -.calc-view-browser[data-v-cbfcffc6]{padding:1rem;display:flex;flex-direction:column;gap:12px;height:100%}.browser-header[data-v-cbfcffc6]{display:flex;justify-content:space-between;align-items:center}.header-actions[data-v-cbfcffc6]{display:flex;gap:12px;align-items:center}.controls[data-v-cbfcffc6]{display:flex;gap:8px;align-items:center}.path-input[data-v-cbfcffc6]{flex:2}.search-input[data-v-cbfcffc6]{flex:1;min-width:200px}.full-width[data-v-cbfcffc6]{flex:1}.loader[data-v-cbfcffc6]{margin-top:2rem;align-self:center}.error-banner[data-v-cbfcffc6]{padding:12px;background:var(--sapErrorBackground, #fff3f3);border:1px solid var(--sapErrorBorderColor, #e00);border-radius:8px;color:var(--sapNegativeTextColor, #bb0000);font-size:12px}.empty-state[data-v-cbfcffc6]{padding:2rem;text-align:center;color:var(--sapContent_LabelColor, #666)}.file-table[data-v-cbfcffc6]{border:1px solid var(--sapGroup_ContentBorderColor, #d9d9d9);border-radius:8px;overflow:hidden;flex:1;overflow-y:auto}.table-header[data-v-cbfcffc6]{display:flex;padding:10px 16px;background:var(--sapList_HeaderBackground, #f2f2f2);border-bottom:1px solid var(--sapGroup_ContentBorderColor, #d9d9d9);font-size:11px;font-weight:600;color:var(--sapContent_LabelColor, #666)}.table-row[data-v-cbfcffc6]{display:flex;padding:10px 16px;border-bottom:1px solid var(--sapList_BorderColor, #e5e5e5);font-size:12px;cursor:pointer;transition:background .15s}.table-row[data-v-cbfcffc6]:hover{background:var(--sapList_Hover_Background, #e8f0fe)}.col-name[data-v-cbfcffc6]{flex:2;font-weight:500;overflow:hidden;text-overflow:ellipsis}.col-path[data-v-cbfcffc6]{flex:3;color:var(--sapContent_LabelColor, #666);overflow:hidden;text-overflow:ellipsis}.col-modified[data-v-cbfcffc6]{flex:1.5;color:var(--sapContent_LabelColor, #666)}.col-size[data-v-cbfcffc6]{flex:.5;color:var(--sapContent_LabelColor, #666);text-align:right} diff --git a/app/vue/dist/assets/CalcViewBrowser-IU2Zalek.js b/app/vue/dist/assets/CalcViewBrowser-IU2Zalek.js new file mode 100644 index 00000000..869521a5 --- /dev/null +++ b/app/vue/dist/assets/CalcViewBrowser-IU2Zalek.js @@ -0,0 +1 @@ +import{A as e,M as t,O as n,St as r,X as i,c as a,d as o,i as s,m as c,s as l,t as u,u as d,v as f}from"./_plugin-vue_export-helper-p2JYVKvd.js";import"./BusyIndicator-ozQjqKjn.js";import"./Button-INoaGcLE.js";import{J as p}from"./index-6hg61Of-.js";import"./SegmentedButton-N43lIgfy.js";import{n as m}from"./useCalcViewFileApi-CTo-kk4l.js";var h={class:`calc-view-browser`},g={class:`browser-header`},_={class:`header-actions`},v={key:0,class:`controls`},y=[`value`],b=[`value`],x={key:1,class:`controls`},S=[`value`],C={key:2,active:``,size:`Medium`,class:`loader`},w={key:3,class:`error-banner`},T={key:0,class:`empty-state`},E={key:1,class:`empty-state`},D={key:2,class:`file-table`},O=[`onClick`],k={class:`col-name`},A={class:`col-path`},j={class:`col-modified`},M={class:`col-size`},N={key:0,class:`empty-state`},P={key:1,class:`file-table`},F=[`onClick`],I={class:`col-name`},L={class:`col-path`},R=`calcview-project-path`,z=u(f({__name:`CalcViewBrowser`,setup(u){let f=p(),{listProjectFiles:z,listRuntimeViews:ee}=m(),B=i(`project`),V=i(localStorage.getItem(R)||``),H=i([]),U=i([]),W=i(!1),G=i(``),K=i(``),q=l(()=>{let e=K.value.toLowerCase();return e?H.value.filter(t=>t.name.toLowerCase().includes(e)):H.value}),J=l(()=>{let e=K.value.toLowerCase();return e?U.value.filter(t=>(t.SCENARIO_NAME||t.VIEW_NAME||``).toLowerCase().includes(e)):U.value});async function Y(){if(V.value){W.value=!0,G.value=``;try{localStorage.setItem(R,V.value),H.value=await z(V.value)}catch(e){G.value=e.message||`Failed to list files`,H.value=[]}finally{W.value=!1}}}async function X(){W.value=!0,G.value=``;try{U.value=await ee()}catch(e){G.value=e.message||`Failed to list runtime views`,U.value=[]}finally{W.value=!1}}function Z(e){let t=e.detail?.selectedItems;t&&t.length>0&&t[0].textContent?.trim()===`HANA Runtime`?(B.value=`runtime`,X()):(B.value=`project`,V.value&&Y())}function Q(e){f.push({name:`calcViewEditor`,query:{file:e}})}function $(){f.push({name:`calcViewEditor`,query:{new:`true`,dir:V.value}})}function te(e){return e?new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`,year:`numeric`,hour:`2-digit`,minute:`2-digit`}):``}function ne(e){return e<1024?`${e} B`:`${(e/1024).toFixed(1)} KB`}return n(()=>{V.value&&Y()}),(n,i)=>(e(),o(`div`,h,[a(`div`,g,[i[4]||=a(`ui5-title`,{level:`H3`},`Calculation Views`,-1),a(`div`,_,[a(`ui5-segmented-button`,{onSelectionChange:Z},[...i[3]||=[a(`ui5-segmented-button-item`,{selected:``},`Project Files`,-1),a(`ui5-segmented-button-item`,null,`HANA Runtime`,-1)]],32),B.value===`project`?(e(),o(`ui5-button`,{key:0,design:`Emphasized`,onClick:$},`Create New`)):d(``,!0)])]),B.value===`project`?(e(),o(`div`,v,[a(`ui5-input`,{class:`path-input`,placeholder:`Project directory path (e.g. D:\\projects\\myapp\\db\\src)`,value:V.value,onChange:i[0]||=e=>{V.value=e.target.value,Y()}},null,40,y),a(`ui5-input`,{class:`search-input`,placeholder:`Search by name...`,value:K.value,onInput:i[1]||=e=>K.value=e.target.value},null,40,b)])):d(``,!0),B.value===`runtime`?(e(),o(`div`,x,[a(`ui5-input`,{class:`search-input full-width`,placeholder:`Search runtime views...`,value:K.value,onInput:i[2]||=e=>K.value=e.target.value},null,40,S)])):d(``,!0),W.value?(e(),o(`ui5-busy-indicator`,C)):G.value?(e(),o(`div`,w,r(G.value),1)):B.value===`project`?(e(),o(s,{key:4},[V.value?q.value.length===0?(e(),o(`div`,E,` No .hdbcalculationview files found. `)):(e(),o(`div`,D,[i[5]||=c(`
NamePathModifiedSize
`,1),(e(!0),o(s,null,t(q.value,t=>(e(),o(`div`,{key:t.filePath,class:`table-row`,onClick:e=>Q(t.filePath)},[a(`span`,k,r(t.name),1),a(`span`,A,r(t.filePath),1),a(`span`,j,r(te(t.lastModified)),1),a(`span`,M,r(ne(t.size)),1)],8,O))),128))])):(e(),o(`div`,T,` Enter a project directory path to browse calculation view files. `))],64)):B.value===`runtime`?(e(),o(s,{key:5},[J.value.length===0?(e(),o(`div`,N,` No runtime calculation views found. `)):(e(),o(`div`,P,[i[6]||=a(`div`,{class:`table-header`},[a(`span`,{class:`col-name`},`Scenario Name`),a(`span`,{class:`col-path`},`Schema`)],-1),(e(!0),o(s,null,t(J.value,t=>(e(),o(`div`,{key:t.SCENARIO_NAME||t.VIEW_NAME,class:`table-row`,onClick:e=>Q(t.SCENARIO_NAME||t.VIEW_NAME)},[a(`span`,I,r(t.SCENARIO_NAME||t.VIEW_NAME),1),a(`span`,L,r(t.SCHEMA_NAME||``),1)],8,F))),128))]))],64)):d(``,!0)]))}}),[[`__scopeId`,`data-v-cbfcffc6`]]);export{z as default}; \ No newline at end of file diff --git a/app/vue/dist/assets/CalcViewBrowser-gxQ9T22e.css b/app/vue/dist/assets/CalcViewBrowser-gxQ9T22e.css new file mode 100644 index 00000000..f50e0ae5 --- /dev/null +++ b/app/vue/dist/assets/CalcViewBrowser-gxQ9T22e.css @@ -0,0 +1 @@ +.calc-view-browser[data-v-cbfcffc6]{flex-direction:column;gap:12px;height:100%;padding:1rem;display:flex}.browser-header[data-v-cbfcffc6]{justify-content:space-between;align-items:center;display:flex}.header-actions[data-v-cbfcffc6]{align-items:center;gap:12px;display:flex}.controls[data-v-cbfcffc6]{align-items:center;gap:8px;display:flex}.path-input[data-v-cbfcffc6]{flex:2}.search-input[data-v-cbfcffc6]{flex:1;min-width:200px}.full-width[data-v-cbfcffc6]{flex:1}.loader[data-v-cbfcffc6]{align-self:center;margin-top:2rem}.error-banner[data-v-cbfcffc6]{background:var(--sapErrorBackground,#fff3f3);border:1px solid var(--sapErrorBorderColor,#e00);color:var(--sapNegativeTextColor,#b00);border-radius:8px;padding:12px;font-size:12px}.empty-state[data-v-cbfcffc6]{text-align:center;color:var(--sapContent_LabelColor,#666);padding:2rem}.file-table[data-v-cbfcffc6]{border:1px solid var(--sapGroup_ContentBorderColor,#d9d9d9);border-radius:8px;flex:1;overflow:hidden auto}.table-header[data-v-cbfcffc6]{background:var(--sapList_HeaderBackground,#f2f2f2);border-bottom:1px solid var(--sapGroup_ContentBorderColor,#d9d9d9);color:var(--sapContent_LabelColor,#666);padding:10px 16px;font-size:11px;font-weight:600;display:flex}.table-row[data-v-cbfcffc6]{border-bottom:1px solid var(--sapList_BorderColor,#e5e5e5);cursor:pointer;padding:10px 16px;font-size:12px;transition:background .15s;display:flex}.table-row[data-v-cbfcffc6]:hover{background:var(--sapList_Hover_Background,#e8f0fe)}.col-name[data-v-cbfcffc6]{text-overflow:ellipsis;flex:2;font-weight:500;overflow:hidden}.col-path[data-v-cbfcffc6]{color:var(--sapContent_LabelColor,#666);text-overflow:ellipsis;flex:3;overflow:hidden}.col-modified[data-v-cbfcffc6]{color:var(--sapContent_LabelColor,#666);flex:1.5}.col-size[data-v-cbfcffc6]{color:var(--sapContent_LabelColor,#666);text-align:right;flex:.5} diff --git a/app/vue/dist/assets/CalcViewEditor-BB1EOOqj.js b/app/vue/dist/assets/CalcViewEditor-BB1EOOqj.js new file mode 100644 index 00000000..cdc61765 --- /dev/null +++ b/app/vue/dist/assets/CalcViewEditor-BB1EOOqj.js @@ -0,0 +1,134 @@ +import{$ as e,A as t,B as n,C as r,D as i,E as a,F as o,G as s,H as c,I as l,J as u,K as d,L as f,M as p,N as m,O as h,P as g,Q as _,R as v,S as y,St as b,T as x,U as S,W as ee,X as te,Y as ne,b as C,bt as re,c as w,d as ie,et as ae,f as oe,g as se,h as ce,i as le,j as ue,k as de,l as fe,m as pe,nt as me,q as he,rt as ge,s as _e,t as ve,tt as ye,u as be,v as xe,w as Se,x as Ce,xt as we,y as Te,yt as Ee,z as De}from"./_plugin-vue_export-helper-p2JYVKvd.js";import"./BusyIndicator-ozQjqKjn.js";import"./Button-INoaGcLE.js";import{$ as Oe,H as ke,J as Ae,Q as je,nt as Me,q as Ne,tt as Pe}from"./index-6hg61Of-.js";import"./Option-tgytz2q0.js";import{t as Fe}from"./es-BJhYdI7d.js";import"./Tab-z8y4UjVu.js";import{n as Ie,t as Le}from"./splitpanes-DL3ieZcw.js";import"./SegmentedButton-N43lIgfy.js";import{n as Re,t as eee}from"./useCalcViewFileApi-CTo-kk4l.js";var ze={join:{type:`join`,label:`Join`,icon:`⊕`,themeVariable:`--sapChart_OrderedColor_1`,maxInputs:2,canBeLeaf:!1},nonEquiJoin:{type:`nonEquiJoin`,label:`Non Equi Join`,icon:`⊗`,themeVariable:`--sapChart_OrderedColor_2`,maxInputs:2,canBeLeaf:!1},union:{type:`union`,label:`Union`,icon:`⊎`,themeVariable:`--sapChart_OrderedColor_3`,maxInputs:1/0,canBeLeaf:!1},minus:{type:`minus`,label:`Minus`,icon:`⊖`,themeVariable:`--sapChart_OrderedColor_4`,maxInputs:2,canBeLeaf:!1},intersect:{type:`intersect`,label:`Intersect`,icon:`⊓`,themeVariable:`--sapChart_OrderedColor_5`,maxInputs:2,canBeLeaf:!1},projection:{type:`projection`,label:`Projection`,icon:`▦`,themeVariable:`--sapChart_OrderedColor_6`,maxInputs:1,canBeLeaf:!0},aggregation:{type:`aggregation`,label:`Aggregation`,icon:`Σ`,themeVariable:`--sapChart_OrderedColor_7`,maxInputs:1,canBeLeaf:!0},rank:{type:`rank`,label:`Rank`,icon:`⧗`,themeVariable:`--sapChart_OrderedColor_8`,maxInputs:1,canBeLeaf:!1},tableFunction:{type:`tableFunction`,label:`Table Function`,icon:`ƒ`,themeVariable:`--sapChart_OrderedColor_9`,maxInputs:0,canBeLeaf:!0},hierarchyFunction:{type:`hierarchyFunction`,label:`Hierarchy Function`,icon:`⊹`,themeVariable:`--sapChart_OrderedColor_10`,maxInputs:1,canBeLeaf:!1}};function tee(){let e=te([]),t=te(-1),n=te(-1),r=_e(()=>t.value>=0),i=_e(()=>t.valuet.value!==n.value);function o(n){e.value=e.value.slice(0,t.value+1),e.value.push(n),t.value++,n.execute()}function s(){r.value&&(e.value[t.value].undo(),t.value--)}function c(){i.value&&(t.value++,e.value[t.value].execute())}function l(){n.value=t.value}return{commands:e,pointer:t,canUndo:r,canRedo:i,isDirty:a,push:o,undo:s,redo:c,markSaved:l}}var nee=class{model;node;position;type=`addNode`;description;constructor(e,t,n){this.model=e,this.node=t,this.position=n,this.description=`Add ${t.id}`}execute(){this.model.value.calculationViews.push(this.node),this.model.value.layout.shapes.push({modelObjectName:this.node.id,modelObjectNameSpace:`CalculationView`,expanded:!0,upperLeftCorner:{...this.position}})}undo(){this.model.value.calculationViews=this.model.value.calculationViews.filter(e=>e.id!==this.node.id),this.model.value.layout.shapes=this.model.value.layout.shapes.filter(e=>e.modelObjectName!==this.node.id)}},ree=class{model;nodeId;type=`removeNode`;description;removedNode=null;removedNodeIndex=-1;removedShape=null;removedShapeIndex=-1;removedInputs=[];constructor(e,t){this.model=e,this.nodeId=t,this.description=`Remove ${t}`}execute(){let e=this.model.value.calculationViews.findIndex(e=>e.id===this.nodeId);if(e===-1)return;this.removedNodeIndex=e,this.removedNode=this.model.value.calculationViews[e],this.model.value.calculationViews.splice(e,1);let t=this.model.value.layout.shapes.findIndex(e=>e.modelObjectName===this.nodeId);t!==-1&&(this.removedShapeIndex=t,this.removedShape=this.model.value.layout.shapes[t],this.model.value.layout.shapes.splice(t,1)),this.removedInputs=[];for(let e of this.model.value.calculationViews){let t=e.inputs.findIndex(e=>e.node===this.nodeId);t!==-1&&(this.removedInputs.push({nodeId:e.id,input:e.inputs[t]}),e.inputs.splice(t,1))}}undo(){this.removedNode&&this.model.value.calculationViews.splice(this.removedNodeIndex,0,this.removedNode),this.removedShape&&this.model.value.layout.shapes.splice(this.removedShapeIndex,0,this.removedShape);for(let{nodeId:e,input:t}of this.removedInputs){let n=this.model.value.calculationViews.find(t=>t.id===e);n&&n.inputs.push(t)}}},iee=class{model;sourceId;targetId;type=`connectNodes`;description;constructor(e,t,n){this.model=e,this.sourceId=t,this.targetId=n,this.description=`Connect ${t} → ${n}`}execute(){let e=this.model.value.calculationViews.find(e=>e.id===this.targetId);e&&!e.inputs.some(e=>e.node===this.sourceId)&&e.inputs.push({name:this.sourceId,node:this.sourceId})}undo(){let e=this.model.value.calculationViews.find(e=>e.id===this.targetId);e&&(e.inputs=e.inputs.filter(e=>e.node!==this.sourceId))}},aee=class{model;sourceId;targetId;type=`disconnectNodes`;description;removedInput=null;constructor(e,t,n){this.model=e,this.sourceId=t,this.targetId=n,this.description=`Disconnect ${t} → ${n}`}execute(){let e=this.model.value.calculationViews.find(e=>e.id===this.targetId);if(e){let t=e.inputs.findIndex(e=>e.node===this.sourceId);t!==-1&&(this.removedInput=e.inputs[t],e.inputs.splice(t,1))}}undo(){if(this.removedInput){let e=this.model.value.calculationViews.find(e=>e.id===this.targetId);e&&e.inputs.push(this.removedInput)}}},Be=class{model;nodeId;column;type=`mapColumn`;description;constructor(e,t,n){this.model=e,this.nodeId=t,this.column=n,this.description=`Map column ${n.name}`}execute(){let e=this.model.value.calculationViews.find(e=>e.id===this.nodeId);e&&e.outputColumns.push({...this.column})}undo(){let e=this.model.value.calculationViews.find(e=>e.id===this.nodeId);e&&(e.outputColumns=e.outputColumns.filter(e=>e.id!==this.column.id))}},oee=class{model;nodeId;columnId;type=`unmapColumn`;description;removedColumn=null;constructor(e,t,n){this.model=e,this.nodeId=t,this.columnId=n,this.description=`Unmap column ${n}`}execute(){let e=this.model.value.calculationViews.find(e=>e.id===this.nodeId);if(e){let t=e.outputColumns.findIndex(e=>e.id===this.columnId);t!==-1&&(this.removedColumn=e.outputColumns[t],e.outputColumns.splice(t,1))}}undo(){if(this.removedColumn){let e=this.model.value.calculationViews.find(e=>e.id===this.nodeId);e&&e.outputColumns.push(this.removedColumn)}}},see=class{model;nodeId;condition;type=`addJoinCondition`;description;constructor(e,t,n){this.model=e,this.nodeId=t,this.condition=n,this.description=`Add join condition ${n.leftColumn} ${n.operator} ${n.rightColumn}`}execute(){this.model.value.calculationViews.find(e=>e.id===this.nodeId)?.joinConfig?.conditions.push(this.condition)}undo(){this.model.value.calculationViews.find(e=>e.id===this.nodeId)?.joinConfig?.conditions.pop()}},Ve=class{model;nodeId;index;type=`removeJoinCondition`;description;removed=null;constructor(e,t,n){this.model=e,this.nodeId=t,this.index=n,this.description=`Remove join condition at index ${n}`}execute(){let e=this.model.value.calculationViews.find(e=>e.id===this.nodeId);e?.joinConfig&&(this.removed=e.joinConfig.conditions.splice(this.index,1)[0]??null)}undo(){this.removed&&this.model.value.calculationViews.find(e=>e.id===this.nodeId)?.joinConfig?.conditions.splice(this.index,0,this.removed)}},He=class{commands;type=`batch`;description;constructor(e,t){this.commands=e,this.description=t??`Batch (${e.length} operations)`}execute(){for(let e of this.commands)e.execute()}undo(){for(let e=this.commands.length-1;e>=0;e--)this.commands[e].undo()}},Ue=class{model;nodeId;column;type=`addCalculatedColumn`;description;constructor(e,t,n){this.model=e,this.nodeId=t,this.column=n,this.description=`Add calculated column ${n.id} to ${t}`}execute(){let e=this.model.value.calculationViews.find(e=>e.id===this.nodeId);e&&e.calculatedColumns.push(this.column)}undo(){let e=this.model.value.calculationViews.find(e=>e.id===this.nodeId);if(e){let t=e.calculatedColumns.findIndex(e=>e.id===this.column.id);t>=0&&e.calculatedColumns.splice(t,1)}}},We=class{model;nodeId;type=`removeCalculatedColumn`;description;column;removedIndex=-1;constructor(e,t,n){this.model=e,this.nodeId=t,this.column={id:``,name:``,dataType:``,expression:``},this.description=`Remove calculated column ${n} from ${t}`;let r=e.value.calculationViews.find(e=>e.id===t);if(r){let e=r.calculatedColumns.findIndex(e=>e.id===n);e>=0&&(this.column={...r.calculatedColumns[e]},this.removedIndex=e)}}execute(){let e=this.model.value.calculationViews.find(e=>e.id===this.nodeId);if(e){let t=e.calculatedColumns.findIndex(e=>e.id===this.column.id);t>=0&&e.calculatedColumns.splice(t,1)}}undo(){let e=this.model.value.calculationViews.find(e=>e.id===this.nodeId);e&&e.calculatedColumns.splice(this.removedIndex,0,this.column)}},cee=class{model;nodeId;columnId;updates;type=`updateCalculatedColumn`;description;previous={};constructor(e,t,n,r){this.model=e,this.nodeId=t,this.columnId=n,this.updates=r,this.description=`Update calculated column ${n}`;let i=e.value.calculationViews.find(e=>e.id===t);if(i){let e=i.calculatedColumns.find(e=>e.id===n);if(e)for(let t of Object.keys(r))this.previous[t]=e[t]}}execute(){let e=this.model.value.calculationViews.find(e=>e.id===this.nodeId);if(e){let t=e.calculatedColumns.find(e=>e.id===this.columnId);t&&Object.assign(t,this.updates)}}undo(){let e=this.model.value.calculationViews.find(e=>e.id===this.nodeId);if(e){let t=e.calculatedColumns.find(e=>e.id===this.columnId);t&&Object.assign(t,this.previous)}}},lee=class{model;nodeId;newExpression;type=`setFilterExpression`;description;previousExpression;constructor(e,t,n){this.model=e,this.nodeId=t,this.newExpression=n,this.description=`Set filter on ${t}`;let r=e.value.calculationViews.find(e=>e.id===t);this.previousExpression=r?.filterExpression}execute(){let e=this.model.value.calculationViews.find(e=>e.id===this.nodeId);e&&(e.filterExpression=this.newExpression)}undo(){let e=this.model.value.calculationViews.find(e=>e.id===this.nodeId);e&&(e.filterExpression=this.previousExpression)}},uee=class{model;variable;type=`addVariable`;description;constructor(e,t){this.model=e,this.variable=t,this.description=`Add variable ${t.id}`}execute(){this.model.value.localVariables.push(this.variable)}undo(){let e=this.model.value.localVariables.findIndex(e=>e.id===this.variable.id);e>=0&&this.model.value.localVariables.splice(e,1)}},dee=class{model;type=`removeVariable`;description;variable;removedIndex=-1;constructor(e,t){this.model=e,this.variable={id:``,name:``,dataType:``},this.description=`Remove variable ${t}`;let n=e.value.localVariables.findIndex(e=>e.id===t);n>=0&&(this.variable={...e.value.localVariables[n]},this.removedIndex=n)}execute(){let e=this.model.value.localVariables.findIndex(e=>e.id===this.variable.id);e>=0&&this.model.value.localVariables.splice(e,1)}undo(){this.model.value.localVariables.splice(this.removedIndex,0,this.variable)}},fee=class{model;variableId;updates;type=`updateVariable`;description;previous={};constructor(e,t,n){this.model=e,this.variableId=t,this.updates=n,this.description=`Update variable ${t}`;let r=e.value.localVariables.find(e=>e.id===t);if(r)for(let e of Object.keys(n))this.previous[e]=r[e]}execute(){let e=this.model.value.localVariables.find(e=>e.id===this.variableId);e&&Object.assign(e,this.updates)}undo(){let e=this.model.value.localVariables.find(e=>e.id===this.variableId);e&&Object.assign(e,this.previous)}},pee=class{model;hierarchy;type=`addHierarchy`;description;constructor(e,t){this.model=e,this.hierarchy=t,this.description=`Add hierarchy ${t.id}`}execute(){this.model.value.logicalModel.hierarchies.push(this.hierarchy)}undo(){this.model.value.logicalModel.hierarchies=this.model.value.logicalModel.hierarchies.filter(e=>e.id!==this.hierarchy.id)}},Ge=class{model;hierarchyId;type=`removeHierarchy`;description;removed=null;removedIndex=-1;constructor(e,t){this.model=e,this.hierarchyId=t,this.description=`Remove hierarchy ${t}`}execute(){this.removedIndex=this.model.value.logicalModel.hierarchies.findIndex(e=>e.id===this.hierarchyId),this.removedIndex>=0&&(this.removed=this.model.value.logicalModel.hierarchies[this.removedIndex],this.model.value.logicalModel.hierarchies.splice(this.removedIndex,1))}undo(){this.removed&&this.removedIndex>=0&&this.model.value.logicalModel.hierarchies.splice(this.removedIndex,0,this.removed)}},Ke=class{model;measure;type=`addRestrictedMeasure`;description;constructor(e,t){this.model=e,this.measure=t,this.description=`Add restricted measure ${t.id}`}execute(){this.model.value.logicalModel.restrictedMeasures.push(this.measure)}undo(){this.model.value.logicalModel.restrictedMeasures=this.model.value.logicalModel.restrictedMeasures.filter(e=>e.id!==this.measure.id)}},mee=class{model;measureId;type=`removeRestrictedMeasure`;description;removed=null;removedIndex=-1;constructor(e,t){this.model=e,this.measureId=t,this.description=`Remove restricted measure ${t}`}execute(){this.removedIndex=this.model.value.logicalModel.restrictedMeasures.findIndex(e=>e.id===this.measureId),this.removedIndex>=0&&(this.removed=this.model.value.logicalModel.restrictedMeasures[this.removedIndex],this.model.value.logicalModel.restrictedMeasures.splice(this.removedIndex,1))}undo(){this.removed&&this.removedIndex>=0&&this.model.value.logicalModel.restrictedMeasures.splice(this.removedIndex,0,this.removed)}},qe=class{model;collectionKey;columnId;updates;type=`updateColumnProperties`;description;oldProps={};constructor(e,t,n,r){this.model=e,this.collectionKey=t,this.columnId=n,this.updates=r,this.description=`Update ${n} properties`}execute(){let e=this.model.value.logicalModel[this.collectionKey].find(e=>e.id===this.columnId);if(e){this.oldProps={};for(let t of Object.keys(this.updates))this.oldProps[t]=e[t],e[t]=this.updates[t]}}undo(){let e=this.model.value.logicalModel[this.collectionKey].find(e=>e.id===this.columnId);if(e)for(let t of Object.keys(this.oldProps))e[t]=this.oldProps[t]}},hee=class{model;oldId;newId;type=`renameNode`;description;constructor(e,t,n){this.model=e,this.oldId=t,this.newId=n,this.description=`Rename ${t} to ${n}`}execute(){let e=this.model.value.calculationViews.find(e=>e.id===this.oldId);e&&(e.id=this.newId);let t=this.model.value.layout.shapes.find(e=>e.modelObjectName===this.oldId);t&&(t.modelObjectName=this.newId);for(let e of this.model.value.calculationViews)for(let t of e.inputs)t.node===this.oldId&&(t.node=this.newId);this.model.value.outputNodeId===this.oldId&&(this.model.value.outputNodeId=this.newId)}undo(){let e=this.model.value.calculationViews.find(e=>e.id===this.newId);e&&(e.id=this.oldId);let t=this.model.value.layout.shapes.find(e=>e.modelObjectName===this.newId);t&&(t.modelObjectName=this.oldId);for(let e of this.model.value.calculationViews)for(let t of e.inputs)t.node===this.newId&&(t.node=this.oldId);this.model.value.outputNodeId===this.newId&&(this.model.value.outputNodeId=this.oldId)}},Je=class{model;nodeId;newPosition;type=`moveNode`;description;previousPosition;constructor(e,t,n){this.model=e,this.nodeId=t,this.newPosition=n,this.description=`Move ${t}`;let r=t===`__semantics__`?`Output`:t,i=e.value.layout.shapes.find(e=>e.modelObjectName===r);this.previousPosition=i?{...i.upperLeftCorner}:{x:0,y:0}}execute(){let e=this.nodeId===`__semantics__`?`Output`:this.nodeId,t=this.model.value.layout.shapes.find(t=>t.modelObjectName===e);t&&(t.upperLeftCorner.x=this.newPosition.x,t.upperLeftCorner.y=this.newPosition.y)}undo(){let e=this.nodeId===`__semantics__`?`Output`:this.nodeId,t=this.model.value.layout.shapes.find(t=>t.modelObjectName===e);t&&(t.upperLeftCorner.x=this.previousPosition.x,t.upperLeftCorner.y=this.previousPosition.y)}};function gee(){let e=te(null),t=tee(),n=_e(()=>{if(!e.value)return[];let t=[],n=e.value.layout.shapes.find(e=>e.modelObjectName===`Output`);t.push({id:`__semantics__`,type:`semantics`,position:{x:n?.upperLeftCorner.x??200,y:n?.upperLeftCorner.y??50},data:{label:`Semantics`,dataCategory:e.value.dataCategory,attributeCount:e.value.logicalModel.attributes.length,measureCount:e.value.logicalModel.baseMeasures.length}});for(let n of e.value.calculationViews){let r=e.value.layout.shapes.find(e=>e.modelObjectName===n.id),i=ze[n.type];t.push({id:n.id,type:n.type,position:{x:r?.upperLeftCorner.x??200,y:r?.upperLeftCorner.y??300},data:{label:n.id,nodeType:n.type,typeDef:i,columnCount:n.outputColumns.length,inputCount:n.inputs.length}})}return t}),r=_e(()=>{if(!e.value)return[];let t=[],n=e.value.calculationViews.map(e=>e.id);for(let r of e.value.calculationViews){e.value.calculationViews.some(e=>e.inputs.some(e=>e.node===r.id))||t.push({id:`e-${r.id}-semantics`,source:r.id,target:`__semantics__`,type:`dataFlow`});for(let e of r.inputs)n.includes(e.node)&&t.push({id:`e-${e.node}-${r.id}`,source:e.node,target:r.id,type:`dataFlow`})}return t});function i(t){e.value=t}function a(t){if(!e.value)return`${t}_1`;let n=ze[t].label.replace(/\s/g,`_`);return`${n}_${e.value.calculationViews.filter(e=>e.id.startsWith(n)).length+1}`}function o(n,r){if(!e.value)return;let i=e,o={id:a(n),type:n,inputs:[],outputColumns:[],calculatedColumns:[],...n===`join`||n===`nonEquiJoin`?{joinConfig:{joinType:`inner`,cardinality:`1..1`,conditions:[]}}:{},...n===`rank`?{rankConfig:{orderBy:[],thresholdType:`top`,count:10}}:{}};t.push(new nee(i,o,r))}function s(n){e.value&&t.push(new ree(e,n))}function c(n,r){e.value&&t.push(new iee(e,n,r))}function l(n,r){e.value&&t.push(new aee(e,n,r))}function u(n,r){e.value&&t.push(new Be(e,n,r))}function d(n,r){e.value&&t.push(new oee(e,n,r))}function f(n,r){e.value&&t.push(new see(e,n,r))}function p(n,r){e.value&&t.push(new Ve(e,n,r))}function m(n,r){e.value&&t.push(new Ue(e,n,r))}function h(n,r){e.value&&t.push(new We(e,n,r))}function g(n,r,i){e.value&&t.push(new cee(e,n,r,i))}function _(n,r){e.value&&t.push(new lee(e,n,r))}function v(n){e.value&&t.push(new uee(e,n))}function y(n){e.value&&t.push(new dee(e,n))}function b(n,r){e.value&&t.push(new fee(e,n,r))}function x(n){e.value&&t.push(new pee(e,n))}function S(n){e.value&&t.push(new Ge(e,n))}function ee(n){e.value&&t.push(new Ke(e,n))}function ne(n){e.value&&t.push(new mee(e,n))}function C(n,r,i){e.value&&t.push(new qe(e,n,r,i))}function re(n,r){e.value&&t.push(new hee(e,n,r))}function w(n,r){e.value&&t.push(new Je(e,n,r))}return{model:e,undoRedo:t,vueFlowNodes:n,vueFlowEdges:r,loadModel:i,addNode:o,removeNode:s,connectNodes:c,disconnectNodes:l,mapColumn:u,unmapColumn:d,addJoinCondition:f,removeJoinCondition:p,addCalculatedColumn:m,removeCalculatedColumn:h,updateCalculatedColumn:g,setFilterExpression:_,addVariable:v,removeVariable:y,updateVariable:b,addHierarchy:x,removeHierarchy:S,addRestrictedMeasure:ee,removeRestrictedMeasure:ne,updateColumnProperties:C,renameNode:re,moveNode:w}}function Ye(){let e=_([]),t=_(null),n=_e(()=>e.value.find(e=>e.id===t.value)??null);function r(n,r){let i=r?e.value.find(e=>e.filePath===r):null;if(i)return t.value=i.id,i;let a=`tab_${Date.now()}`,o={id:a,title:n,filePath:r,editor:gee()};return e.value.push(o),me(e),t.value=a,o}function i(n){let r=e.value.find(e=>e.id===n);if(!r)return!0;if(r.editor.undoRedo.isDirty.value)return!1;let i=e.value.findIndex(e=>e.id===n);return e.value.splice(i,1),me(e),t.value===n&&(t.value=e.value.length>0?e.value[Math.min(i,e.value.length-1)].id:null),!0}function a(n){let r=e.value.findIndex(e=>e.id===n);r<0||(e.value.splice(r,1),me(e),t.value===n&&(t.value=e.value.length>0?e.value[Math.min(r,e.value.length-1)].id:null))}function o(t,n){let r=e.value.find(e=>e.id===t);r&&(r.filePath=n)}return{tabs:e,activeTabId:t,activeTab:n,openTab:r,closeTab:i,forceCloseTab:a,updateTabFilePath:o}}var _ee=RegExp(`^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`);function Xe(e,t){let n=[],r=t.exec(e);for(;r;){let i=[];i.startIndex=t.lastIndex-r[0].length;let a=r.length;for(let e=0;e`&&e[a]!==` `&&e[a]!==` `&&e[a]!==` +`&&e[a]!==`\r`;a++)c+=e[a];if(c=c.trim(),c[c.length-1]===`/`&&(c=c.substring(0,c.length-1),a--),!Tee(c)){let t;return t=c.trim().length===0?`Invalid space after '<'.`:`Tag '`+c+`' is an invalid name.`,st(`InvalidTag`,t,ct(e,a))}let l=xee(e,a);if(l===!1)return st(`InvalidAttr`,`Attributes for '`+c+`' have open quote.`,ct(e,a));let u=l.value;if(a=l.index,u[u.length-1]===`/`){let n=a-u.length;u=u.substring(0,u.length-1);let i=ot(u,t);if(i===!0)r=!0;else return st(i.err.code,i.err.msg,ct(e,n+i.err.line))}else if(s){if(!l.tagClosed)return st(`InvalidTag`,`Closing tag '`+c+`' doesn't have proper closing.`,ct(e,a));if(u.trim().length>0)return st(`InvalidTag`,`Closing tag '`+c+`' can't have attributes or invalid starting.`,ct(e,o));if(n.length===0)return st(`InvalidTag`,`Closing tag '`+c+`' has not been opened.`,ct(e,o));{let t=n.pop();if(c!==t.tagName){let n=ct(e,t.tagStartPos);return st(`InvalidTag`,`Expected closing tag '`+t.tagName+`' (opened in line `+n.line+`, col `+n.col+`) instead of closing tag '`+c+`'.`,ct(e,o))}n.length==0&&(i=!0)}}else{let s=ot(u,t);if(s!==!0)return st(s.err.code,s.err.msg,ct(e,a-u.length+s.err.line));if(i===!0)return st(`InvalidXml`,`Multiple possible root nodes found.`,ct(e,a));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:o}),r=!0}for(a++;a0?st(`InvalidXml`,`Invalid '`+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,``)+`' found.`,{line:1,col:1}):!0:st(`InvalidXml`,`Start tag expected.`,1)}function nt(e){return e===` `||e===` `||e===` +`||e===`\r`}function rt(e,t){let n=t;for(;t5&&r===`xml`)return st(`InvalidXml`,`XML declaration allowed only at the start of the document.`,ct(e,t));if(e[t]==`?`&&e[t+1]==`>`){t++;break}else continue}return t}function it(e,t){if(e.length>t+5&&e[t+1]===`-`&&e[t+2]===`-`){for(t+=3;t`){t+=2;break}}else if(e.length>t+8&&e[t+1]===`D`&&e[t+2]===`O`&&e[t+3]===`C`&&e[t+4]===`T`&&e[t+5]===`Y`&&e[t+6]===`P`&&e[t+7]===`E`){let n=1;for(t+=8;t`&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]===`[`&&e[t+2]===`C`&&e[t+3]===`D`&&e[t+4]===`A`&&e[t+5]===`T`&&e[t+6]===`A`&&e[t+7]===`[`){for(t+=8;t`){t+=2;break}}return t}var yee=`"`,bee=`'`;function xee(e,t){let n=``,r=``,i=!1;for(;t`&&r===``){i=!0;break}n+=e[t]}return r===``&&{value:n,index:t,tagClosed:i}}var at=RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,`g`);function ot(e,t){let n=Xe(e,at),r={};for(let e=0;e`,GT:`>`,quot:`"`,QUOT:`"`,apos:`'`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,lsquor:`‚`,rsquor:`’`,ldquor:`„`,bdquo:`„`,comma:`,`,period:`.`,colon:`:`,semi:`;`,excl:`!`,quest:`?`,num:`#`,dollar:`$`,percent:`%`,ast:`*`,commat:`@`,lowbar:`_`,verbar:`|`,vert:`|`,sol:`/`,bsol:`\\`,lbrace:`{`,rbrace:`}`,lbrack:`[`,rbrack:`]`,lpar:`(`,rpar:`)`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,COPY:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,REG:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,half:`½`,frac34:`¾`,iquest:`¿`,times:`×`,div:`÷`,divide:`÷`},Dee={Agrave:`À`,agrave:`à`,Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,Aring:`Å`,aring:`å`,AElig:`Æ`,aelig:`æ`,Ccedil:`Ç`,ccedil:`ç`,Egrave:`È`,egrave:`è`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Euml:`Ë`,euml:`ë`,Igrave:`Ì`,igrave:`ì`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,Iuml:`Ï`,iuml:`ï`,ETH:`Ð`,eth:`ð`,Ntilde:`Ñ`,ntilde:`ñ`,Ograve:`Ò`,ograve:`ò`,Oacute:`Ó`,oacute:`ó`,Ocirc:`Ô`,ocirc:`ô`,Otilde:`Õ`,otilde:`õ`,Ouml:`Ö`,ouml:`ö`,Oslash:`Ø`,oslash:`ø`,Ugrave:`Ù`,ugrave:`ù`,Uacute:`Ú`,uacute:`ú`,Ucirc:`Û`,ucirc:`û`,Uuml:`Ü`,uuml:`ü`,Yacute:`Ý`,yacute:`ý`,THORN:`Þ`,thorn:`þ`,szlig:`ß`,yuml:`ÿ`,Yuml:`Ÿ`},Oee={Amacr:`Ā`,amacr:`ā`,Abreve:`Ă`,abreve:`ă`,Aogon:`Ą`,aogon:`ą`,Cacute:`Ć`,cacute:`ć`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cdot:`Ċ`,cdot:`ċ`,Ccaron:`Č`,ccaron:`č`,Dcaron:`Ď`,dcaron:`ď`,Dstrok:`Đ`,dstrok:`đ`,Emacr:`Ē`,emacr:`ē`,Ecaron:`Ě`,ecaron:`ě`,Edot:`Ė`,edot:`ė`,Eogon:`Ę`,eogon:`ę`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gbreve:`Ğ`,gbreve:`ğ`,Gdot:`Ġ`,gdot:`ġ`,Gcedil:`Ģ`,Hcirc:`Ĥ`,hcirc:`ĥ`,Hstrok:`Ħ`,hstrok:`ħ`,Itilde:`Ĩ`,itilde:`ĩ`,Imacr:`Ī`,imacr:`ī`,Iogon:`Į`,iogon:`į`,Idot:`İ`,IJlig:`IJ`,ijlig:`ij`,Jcirc:`Ĵ`,jcirc:`ĵ`,Kcedil:`Ķ`,kcedil:`ķ`,kgreen:`ĸ`,Lacute:`Ĺ`,lacute:`ĺ`,Lcedil:`Ļ`,lcedil:`ļ`,Lcaron:`Ľ`,lcaron:`ľ`,Lmidot:`Ŀ`,lmidot:`ŀ`,Lstrok:`Ł`,lstrok:`ł`,Nacute:`Ń`,nacute:`ń`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ENG:`Ŋ`,eng:`ŋ`,Omacr:`Ō`,omacr:`ō`,Odblac:`Ő`,odblac:`ő`,OElig:`Œ`,oelig:`œ`,Racute:`Ŕ`,racute:`ŕ`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,Sacute:`Ś`,sacute:`ś`,Scirc:`Ŝ`,scirc:`ŝ`,Scedil:`Ş`,scedil:`ş`,Scaron:`Š`,scaron:`š`,Tcedil:`Ţ`,tcedil:`ţ`,Tcaron:`Ť`,tcaron:`ť`,Tstrok:`Ŧ`,tstrok:`ŧ`,Utilde:`Ũ`,utilde:`ũ`,Umacr:`Ū`,umacr:`ū`,Ubreve:`Ŭ`,ubreve:`ŭ`,Uring:`Ů`,uring:`ů`,Udblac:`Ű`,udblac:`ű`,Uogon:`Ų`,uogon:`ų`,Wcirc:`Ŵ`,wcirc:`ŵ`,Ycirc:`Ŷ`,ycirc:`ŷ`,Zacute:`Ź`,zacute:`ź`,Zdot:`Ż`,zdot:`ż`,Zcaron:`Ž`,zcaron:`ž`},kee={Alpha:`Α`,alpha:`α`,Beta:`Β`,beta:`β`,Gamma:`Γ`,gamma:`γ`,Delta:`Δ`,delta:`δ`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,varepsilon:`ϵ`,Zeta:`Ζ`,zeta:`ζ`,Eta:`Η`,eta:`η`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,vartheta:`ϑ`,Iota:`Ι`,iota:`ι`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,varkappa:`ϰ`,Lambda:`Λ`,lambda:`λ`,Mu:`Μ`,mu:`μ`,Nu:`Ν`,nu:`ν`,Xi:`Ξ`,xi:`ξ`,Omicron:`Ο`,omicron:`ο`,Pi:`Π`,pi:`π`,piv:`ϖ`,varpi:`ϖ`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,varrho:`ϱ`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,varsigma:`ς`,Tau:`Τ`,tau:`τ`,Upsilon:`Υ`,upsilon:`υ`,upsi:`υ`,Upsi:`ϒ`,upsih:`ϒ`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,varphi:`ϕ`,Chi:`Χ`,chi:`χ`,Psi:`Ψ`,psi:`ψ`,Omega:`Ω`,omega:`ω`,ohm:`Ω`,Gammad:`Ϝ`,gammad:`ϝ`,digamma:`ϝ`},Aee={Afr:`𝔄`,afr:`𝔞`,Acy:`А`,acy:`а`,Bcy:`Б`,bcy:`б`,Vcy:`В`,vcy:`в`,Gcy:`Г`,gcy:`г`,Dcy:`Д`,dcy:`д`,IEcy:`Е`,iecy:`е`,IOcy:`Ё`,iocy:`ё`,ZHcy:`Ж`,zhcy:`ж`,Zcy:`З`,zcy:`з`,Icy:`И`,icy:`и`,Jcy:`Й`,jcy:`й`,Kcy:`К`,kcy:`к`,Lcy:`Л`,lcy:`л`,Mcy:`М`,mcy:`м`,Ncy:`Н`,ncy:`н`,Ocy:`О`,ocy:`о`,Pcy:`П`,pcy:`п`,Rcy:`Р`,rcy:`р`,Scy:`С`,scy:`с`,Tcy:`Т`,tcy:`т`,Ucy:`У`,ucy:`у`,Fcy:`Ф`,fcy:`ф`,KHcy:`Х`,khcy:`х`,TScy:`Ц`,tscy:`ц`,CHcy:`Ч`,chcy:`ч`,SHcy:`Ш`,shcy:`ш`,SHCHcy:`Щ`,shchcy:`щ`,HARDcy:`Ъ`,hardcy:`ъ`,Ycy:`Ы`,ycy:`ы`,SOFTcy:`Ь`,softcy:`ь`,Ecy:`Э`,ecy:`э`,YUcy:`Ю`,yucy:`ю`,YAcy:`Я`,yacy:`я`,DJcy:`Ђ`,djcy:`ђ`,GJcy:`Ѓ`,gjcy:`ѓ`,Jukcy:`Є`,jukcy:`є`,DScy:`Ѕ`,dscy:`ѕ`,Iukcy:`І`,iukcy:`і`,YIcy:`Ї`,yicy:`ї`,Jsercy:`Ј`,jsercy:`ј`,LJcy:`Љ`,ljcy:`љ`,NJcy:`Њ`,njcy:`њ`,TSHcy:`Ћ`,tshcy:`ћ`,KJcy:`Ќ`,kjcy:`ќ`,Ubrcy:`Ў`,ubrcy:`ў`,DZcy:`Џ`,dzcy:`џ`},jee={plus:`+`,pm:`±`,times:`×`,div:`÷`,divide:`÷`,sdot:`⋅`,star:`☆`,starf:`★`,bigstar:`★`,lowast:`∗`,ast:`*`,midast:`*`,compfn:`∘`,smallcircle:`∘`,bullet:`•`,bull:`•`,nbsp:`\xA0`,hellip:`…`,mldr:`…`,prime:`′`,Prime:`″`,tprime:`‴`,bprime:`‵`,backprime:`‵`,minus:`−`,minusd:`∸`,dotminus:`∸`,plusdo:`∔`,dotplus:`∔`,plusmn:`±`,minusplus:`∓`,mnplus:`∓`,mp:`∓`,setminus:`∖`,smallsetminus:`∖`,Backslash:`∖`,setmn:`∖`,ssetmn:`∖`,lowbar:`_`,verbar:`|`,vert:`|`,VerticalLine:`|`,colon:`:`,Colon:`∷`,Proportion:`∷`,ratio:`∶`,equals:`=`,ne:`≠`,nequiv:`≢`,equiv:`≡`,Congruent:`≡`,sim:`∼`,thicksim:`∼`,thksim:`∼`,sime:`≃`,simeq:`≃`,TildeEqual:`≃`,asymp:`≈`,approx:`≈`,thickapprox:`≈`,thkap:`≈`,TildeTilde:`≈`,ncong:`≇`,cong:`≅`,TildeFullEqual:`≅`,asympeq:`≍`,CupCap:`≍`,bump:`≎`,Bumpeq:`≎`,HumpDownHump:`≎`,bumpe:`≏`,bumpeq:`≏`,HumpEqual:`≏`,le:`≤`,LessEqual:`≤`,ge:`≥`,GreaterEqual:`≥`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,greater:`>`,less:`<`},Mee={alefsym:`ℵ`,aleph:`ℵ`,beth:`ℶ`,gimel:`ℷ`,daleth:`ℸ`,forall:`∀`,ForAll:`∀`,part:`∂`,PartialD:`∂`,exist:`∃`,Exists:`∃`,nexist:`∄`,nexists:`∄`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,varnothing:`∅`,nabla:`∇`,Del:`∇`,isin:`∈`,isinv:`∈`,in:`∈`,Element:`∈`,notin:`∉`,notinva:`∉`,ni:`∋`,niv:`∋`,SuchThat:`∋`,ReverseElement:`∋`,notni:`∌`,notniva:`∌`,prod:`∏`,Product:`∏`,coprod:`∐`,Coproduct:`∐`,sum:`∑`,Sum:`∑`,minus:`−`,mp:`∓`,plusdo:`∔`,dotplus:`∔`,setminus:`∖`,lowast:`∗`,radic:`√`,Sqrt:`√`,prop:`∝`,propto:`∝`,Proportional:`∝`,varpropto:`∝`,infin:`∞`,infintie:`⧝`,ang:`∠`,angle:`∠`,angmsd:`∡`,measuredangle:`∡`,angsph:`∢`,mid:`∣`,VerticalBar:`∣`,nmid:`∤`,nsmid:`∤`,npar:`∦`,parallel:`∥`,spar:`∥`,nparallel:`∦`,nspar:`∦`,and:`∧`,wedge:`∧`,or:`∨`,vee:`∨`,cap:`∩`,cup:`∪`,int:`∫`,Integral:`∫`,conint:`∮`,ContourIntegral:`∮`,Conint:`∯`,DoubleContourIntegral:`∯`,Cconint:`∰`,there4:`∴`,therefore:`∴`,Therefore:`∴`,becaus:`∵`,because:`∵`,Because:`∵`,ratio:`∶`,Proportion:`∷`,minusd:`∸`,dotminus:`∸`,mDDot:`∺`,homtht:`∻`,sim:`∼`,bsimg:`∽`,backsim:`∽`,ac:`∾`,mstpos:`∾`,acd:`∿`,VerticalTilde:`≀`,wr:`≀`,wreath:`≀`,nsime:`≄`,nsimeq:`≄`,ncong:`≇`,simne:`≆`,ncongdot:`⩭̸`,ngsim:`≵`,nsim:`≁`,napprox:`≉`,nap:`≉`,ngeq:`≱`,nge:`≱`,nleq:`≰`,nle:`≰`,ngtr:`≯`,ngt:`≯`,nless:`≮`,nlt:`≮`,nprec:`⊀`,npr:`⊀`,nsucc:`⊁`,nsc:`⊁`},Nee={larr:`←`,leftarrow:`←`,LeftArrow:`←`,uarr:`↑`,uparrow:`↑`,UpArrow:`↑`,rarr:`→`,rightarrow:`→`,RightArrow:`→`,darr:`↓`,downarrow:`↓`,DownArrow:`↓`,harr:`↔`,leftrightarrow:`↔`,LeftRightArrow:`↔`,varr:`↕`,updownarrow:`↕`,UpDownArrow:`↕`,nwarr:`↖`,nwarrow:`↖`,UpperLeftArrow:`↖`,nearr:`↗`,nearrow:`↗`,UpperRightArrow:`↗`,searr:`↘`,searrow:`↘`,LowerRightArrow:`↘`,swarr:`↙`,swarrow:`↙`,LowerLeftArrow:`↙`,lArr:`⇐`,Leftarrow:`⇐`,uArr:`⇑`,Uparrow:`⇑`,rArr:`⇒`,Rightarrow:`⇒`,dArr:`⇓`,Downarrow:`⇓`,hArr:`⇔`,Leftrightarrow:`⇔`,iff:`⇔`,vArr:`⇕`,Updownarrow:`⇕`,lAarr:`⇚`,Lleftarrow:`⇚`,rAarr:`⇛`,Rrightarrow:`⇛`,lrarr:`⇆`,leftrightarrows:`⇆`,rlarr:`⇄`,rightleftarrows:`⇄`,lrhar:`⇋`,leftrightharpoons:`⇋`,ReverseEquilibrium:`⇋`,rlhar:`⇌`,rightleftharpoons:`⇌`,Equilibrium:`⇌`,udarr:`⇅`,UpArrowDownArrow:`⇅`,duarr:`⇵`,DownArrowUpArrow:`⇵`,llarr:`⇇`,leftleftarrows:`⇇`,rrarr:`⇉`,rightrightarrows:`⇉`,ddarr:`⇊`,downdownarrows:`⇊`,har:`↽`,lhard:`↽`,leftharpoondown:`↽`,lharu:`↼`,leftharpoonup:`↼`,rhard:`⇁`,rightharpoondown:`⇁`,rharu:`⇀`,rightharpoonup:`⇀`,lsh:`↰`,Lsh:`↰`,rsh:`↱`,Rsh:`↱`,ldsh:`↲`,rdsh:`↳`,hookleftarrow:`↩`,hookrightarrow:`↪`,mapstoleft:`↤`,mapstoup:`↥`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,crarr:`↵`,nleftarrow:`↚`,nleftrightarrow:`↮`,nrightarrow:`↛`,nrarr:`↛`,larrtl:`↢`,rarrtl:`↣`,leftarrowtail:`↢`,rightarrowtail:`↣`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Larr:`↞`,Rarr:`↠`,larrhk:`↩`,rarrhk:`↪`,larrlp:`↫`,looparrowleft:`↫`,rarrlp:`↬`,looparrowright:`↬`,harrw:`↭`,leftrightsquigarrow:`↭`,nrarrw:`↝̸`,rarrw:`↝`,rightsquigarrow:`↝`,larrbfs:`⤟`,rarrbfs:`⤠`,nvHarr:`⤄`,nvlArr:`⤂`,nvrArr:`⤃`,larrfs:`⤝`,rarrfs:`⤞`,Map:`⤅`,larrsim:`⥳`,rarrsim:`⥴`,harrcir:`⥈`,Uarrocir:`⥉`,lurdshar:`⥊`,ldrdhar:`⥧`,ldrushar:`⥋`,rdldhar:`⥩`,lrhard:`⥭`,uharr:`↾`,uharl:`↿`,dharr:`⇂`,dharl:`⇃`,Uarr:`↟`,Darr:`↡`,zigrarr:`⇝`,nwArr:`⇖`,neArr:`⇗`,seArr:`⇘`,swArr:`⇙`,nharr:`↮`,nhArr:`⇎`,nlarr:`↚`,nlArr:`⇍`,nrArr:`⇏`,larrb:`⇤`,LeftArrowBar:`⇤`,rarrb:`⇥`,RightArrowBar:`⇥`},Pee={square:`□`,Square:`□`,squ:`□`,squf:`▪`,squarf:`▪`,blacksquar:`▪`,blacksquare:`▪`,FilledVerySmallSquare:`▪`,blk34:`▓`,blk12:`▒`,blk14:`░`,block:`█`,srect:`▭`,rect:`▭`,sdot:`⋅`,sdotb:`⊡`,dotsquare:`⊡`,triangle:`▵`,tri:`▵`,trine:`▵`,utri:`▵`,triangledown:`▿`,dtri:`▿`,tridown:`▿`,triangleleft:`◃`,ltri:`◃`,triangleright:`▹`,rtri:`▹`,blacktriangle:`▴`,utrif:`▴`,blacktriangledown:`▾`,dtrif:`▾`,blacktriangleleft:`◂`,ltrif:`◂`,blacktriangleright:`▸`,rtrif:`▸`,loz:`◊`,lozenge:`◊`,blacklozenge:`⧫`,lozf:`⧫`,bigcirc:`◯`,xcirc:`◯`,circ:`ˆ`,Circle:`○`,cir:`○`,o:`○`,bullet:`•`,bull:`•`,hellip:`…`,mldr:`…`,nldr:`‥`,boxh:`─`,HorizontalLine:`─`,boxv:`│`,boxdr:`┌`,boxdl:`┐`,boxur:`└`,boxul:`┘`,boxvr:`├`,boxvl:`┤`,boxhd:`┬`,boxhu:`┴`,boxvh:`┼`,boxH:`═`,boxV:`║`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxDl:`╕`,boxdL:`╖`,boxDL:`╗`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxUl:`╜`,boxuL:`╛`,boxUL:`╝`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,boxVl:`╢`,boxvL:`╡`,boxVL:`╣`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`},Fee={excl:`!`,iexcl:`¡`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,nbsp:`\xA0`,comma:`,`,period:`.`,colon:`:`,semi:`;`,vert:`|`,Verbar:`‖`,verbar:`|`,dblac:`˝`,circ:`ˆ`,caron:`ˇ`,breve:`˘`,dot:`˙`,ring:`˚`,ogon:`˛`,tilde:`˜`,DiacriticalGrave:"`",DiacriticalAcute:`´`,DiacriticalTilde:`˜`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,grave:"`"},ut={cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,euro:`€`,dollar:`$`,fnof:`ƒ`,inr:`₹`,af:`؋`,birr:`ብር`,peso:`₱`,rub:`₽`,won:`₩`,yuan:`¥`,cedil:`¸`},Iee={frac12:`½`,half:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`},Lee={trade:`™`,TRADE:`™`,telrec:`⌕`,target:`⌖`,ulcorn:`⌜`,ulcorner:`⌜`,urcorn:`⌝`,urcorner:`⌝`,dlcorn:`⌞`,llcorner:`⌞`,drcorn:`⌟`,lrcorner:`⌟`,intercal:`⊺`,intcal:`⊺`,oplus:`⊕`,CirclePlus:`⊕`,ominus:`⊖`,CircleMinus:`⊖`,otimes:`⊗`,CircleTimes:`⊗`,osol:`⊘`,odot:`⊙`,CircleDot:`⊙`,oast:`⊛`,circledast:`⊛`,odash:`⊝`,circleddash:`⊝`,ocirc:`⊚`,circledcirc:`⊚`,boxplus:`⊞`,plusb:`⊞`,boxminus:`⊟`,minusb:`⊟`,boxtimes:`⊠`,timesb:`⊠`,boxdot:`⊡`,sdotb:`⊡`,veebar:`⊻`,vee:`∨`,barvee:`⊽`,and:`∧`,wedge:`∧`,Cap:`⋒`,Cup:`⋓`,Fork:`⋔`,pitchfork:`⋔`,epar:`⋕`,ltlarr:`⥶`,nvap:`≍⃒`,nvsim:`∼⃒`,nvge:`≥⃒`,nvle:`≤⃒`,nvlt:`<⃒`,nvgt:`>⃒`,nvltrie:`⊴⃒`,nvrtrie:`⊵⃒`,Vdash:`⊩`,dashv:`⊣`,vDash:`⊨`,Vvdash:`⊪`,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`};({...Eee,...Dee,...Oee,...kee,...Aee,...jee,...Mee,...Nee,...Pee,...Fee,...ut,...Iee,...Lee});var dt={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`},Ree={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},ft=Object.freeze({ALLOW:`allow`,BLOCK:`block`,THROW:`throw`}),zee=new Set(`!?\\\\/[]$%{}^&*()<>|+`);function pt(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(zee.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function mt(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}var ht=`external`,gt=`base`,_t=`all`;function Bee(e){return!e||e===ht?new Set([ht]):e===_t?new Set([_t]):e===gt?new Set([gt]):Array.isArray(e)?new Set(e):new Set([ht])}var vt=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Vee=new Set([9,10,13]);function Hee(e){if(!e)return{xmlVersion:1,onLevel:vt.allow,nullLevel:vt.remove};let t=e.xmlVersion===1.1?1.1:1,n=vt[e.onNCR]??vt.allow,r=vt[e.nullNCR]??vt.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,vt.remove)}}var Uee=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck==`function`?e.postCheck:e=>e,this._limitTiers=Bee(this._limit.applyLimitsTo??ht),this._numericAllowed=e.numericAllowed??!0,this._baseMap=mt(dt,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let t=Hee(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel,this._onExternalEntity=typeof e.onExternalEntity==`function`?e.onExternalEntity:null,this._onInputEntity=typeof e.onInputEntity==`function`?e.onInputEntity:null}_applyRegistrationHook(e,t,n,r){if(!e)return!0;let i=e(t,n);if(i===ft.BLOCK)return!1;if(i===ft.THROW)throw Error(`[EntityDecoder] Registration of ${r} entity "&${t};" was rejected by hook`);return!0}setExternalEntities(e){if(e)for(let t of Object.keys(e))pt(t);if(!this._onExternalEntity){this._externalMap=mt(e);return}let t=mt(e),n=Object.create(null);for(let[e,r]of Object.entries(t))this._applyRegistrationHook(this._onExternalEntity,e,r,`external`)&&(n[e]=r);this._externalMap=n}addExternalEntity(e,t){pt(e),typeof t==`string`&&t.indexOf(`&`)===-1&&this._applyRegistrationHook(this._onExternalEntity,e,t,`external`)&&(this._externalMap[e]=t)}addInputEntities(e){if(this._totalExpansions=0,this._expandedLength=0,!this._onInputEntity){this._inputMap=mt(e);return}let t=mt(e),n=Object.create(null);for(let[e,r]of Object.entries(t))this._applyRegistrationHook(this._onInputEntity,e,r,`input`)&&(n[e]=r);this._inputMap=n}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0||e.indexOf(`&`)===-1)return e;let t=e,n=[],r=e.length,i=0,a=0,o=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,c=o||s;for(;a=r||e.charCodeAt(t)!==59){a++;continue}let l=e.slice(a+1,t);if(l.length===0){a++;continue}let u,d;if(this._removeSet.has(l))u=``,d===void 0&&(d=ht);else if(this._leaveSet.has(l)){a++;continue}else if(l.charCodeAt(0)===35){let e=this._resolveNCR(l);if(e===void 0){a++;continue}u=e,d=gt}else{let e=this._resolveName(l);u=e?.value,d=e?.tier}if(u===void 0){a++;continue}if(a>i&&n.push(e.slice(i,a)),n.push(u),i=t+1,a=i,c&&this._tierCounts(d)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=u.length-(l.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}i=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!Vee.has(e)?vt.remove:-1}_applyNCRAction(e,t,n){switch(e){case vt.allow:return String.fromCodePoint(n);case vt.remove:return``;case vt.leave:return;case vt.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&rQe.includes(e)?`__`+e:e,Wee={preserveOrder:!1,attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0,unicode:!1},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:yt};function Gee(e,t){if(typeof e!=`string`)return;let n=e.toLowerCase();if(Qe.some(e=>n===e.toLowerCase())||$e.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function bt(e,t){return typeof e==`boolean`?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:`all`}:typeof e==`object`&&e?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??`all`}:bt(!0)}var Kee=function(e){let t=Object.assign({},Wee,e),n=[{value:t.attributeNamePrefix,name:`attributeNamePrefix`},{value:t.attributesGroupName,name:`attributesGroupName`},{value:t.textNodeName,name:`textNodeName`},{value:t.cdataPropName,name:`cdataPropName`},{value:t.commentPropName,name:`commentPropName`}];for(let{value:e,name:t}of n)e&&Gee(e,t);return t.onDangerousProperty===null&&(t.onDangerousProperty=yt),t.processEntities=bt(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),t},xt=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`,St=class{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][xt]={startIndex:t})}static getMetaDataSymbol(){return xt}},qee=`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�`,Jee=`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀`,Yee=`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`,Xee=`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀`,Ct=(e,t,n=``)=>{let r=`[${e.replace(`:`,``)}][${t.replace(`:`,``)}]*`;return{name:RegExp(`^[${e}][${t}]*$`,n),ncName:RegExp(`^${r}$`,n),qName:RegExp(`^${r}(?::${r})?$`,n),nmToken:RegExp(`^[${t}]+$`,n),nmTokens:RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`,n)}},Zee=Ct(qee,Jee),wt=Ct(Yee,Xee,`u`),Tt=(e=`1.0`)=>e===`1.1`?wt:Zee,Et=(e,{xmlVersion:t=`1.0`}={})=>Tt(t).qName.test(e),Dt=class{constructor(e,t){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=t||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,t){let n=Object.create(null),r=0;if(e[t+3]===`O`&&e[t+4]===`C`&&e[t+5]===`T`&&e[t+6]===`Y`&&e[t+7]===`P`&&e[t+8]===`E`){t+=9;let i=1,a=!1,o=!1,s=``;for(;t=this.options.maxEntityCount)throw Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=a,r++}}else if(a&&kt(e,`!ELEMENT`,t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&kt(e,`!ATTLIST`,t))t+=8;else if(a&&kt(e,`!NOTATION`,t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(kt(e,`!--`,t))o=!0;else throw Error(`Invalid DOCTYPE`);i++,s=``}else if(e[t]===`>`){if(o?e[t-1]===`-`&&e[t-2]===`-`&&(o=!1,i--):i--,i===0)break}else e[t]===`[`?a=!0:s+=e[t];if(i!==0)throw Error(`Unclosed DOCTYPE`)}else throw Error(`Invalid Tag instead of DOCTYPE`);return{entities:n,i:t}}readEntityExp(e,t){t=Ot(e,t);let n=t;for(;tthis.options.maxEntitySize)throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return t--,[r,i,t]}readNotationExp(e,t){t=Ot(e,t);let n=t;for(;t{for(;t=It&&i<=Lt||i===Rt)){if(i<1632){if(zt.has(i)){n=r;break}continue}if(i>=55296&&i<=56319){if(r+1=56320&&t<=57343){let e=65536+(i-55296<<10)+(t-56320);if(Mt.has(e)){n=r;break}}}continue}if(Ft[i-1632]!==255||zt.has(i)){n=r;break}}}if(n===-1)return e;let r=[];n>0&&r.push(e.slice(0,n));for(let i=n;i=It&&n<=Lt||n===Rt){r.push(e[i]);continue}if(n<1632){r.push(zt.has(n)?`-`:e[i]);continue}if(n>=55296&&n<=56319){if(i+1=56320&&t<=57343){let e=65536+(n-55296<<10)+(t-56320),a=Mt.get(e);if(a!==void 0){r.push(String.fromCharCode(a+48)),i++;continue}}}r.push(e[i]);continue}if(zt.has(n)){r.push(`-`);continue}let a=Ft[n-Pt];r.push(a===255?e[i]:String.fromCharCode(a+48))}return r.join(``)}var $ee=/^[-+]?0x[a-fA-F0-9]+$/,ete=/^0b[01]+$/,tte=/^0o[0-7]+$/,nte=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,rte={hex:!0,binary:!1,octal:!1,leadingZeros:!0,decimalPoint:`.`,eNotation:!0,infinity:`original`,unicode:!1};function ite(e,t={}){if(t=Object.assign({},rte,t),!e||typeof e!=`string`)return e;let n=e.trim();if(n.length===0||t.skipLike!==void 0&&t.skipLike.test(n))return e;if(n===`0`||t.unicode&&(n=Qee(n),n===`0`))return 0;if(t.hex&&$ee.test(n))return Bt(n,16);if(t.binary&&ete.test(n))return Bt(n,2);if(t.octal&&tte.test(n))return Bt(n,8);if(!isFinite(n))return cte(e,Number(n),t);if(n.includes(`e`)||n.includes(`E`))return ote(e,n,t);{let r=nte.exec(n);if(r){let i=r[1]||``,a=r[2],o=ste(r[3]),s=i?e[a.length+1]===`.`:e[a.length]===`.`;if(!t.leadingZeros&&(a.length>1||a.length===1&&!s))return e;{let r=Number(n),s=String(r);if(r===0)return r;if(s.search(/[eE]/)!==-1)return t.eNotation?r:e;if(n.indexOf(`.`)!==-1)return s===`0`||s===o||s===`${i}${o}`?r:e;let c=a?o:n;return a?c===s||i+c===s?r:e:c===s||c===i+s?r:e}}else return e}}var ate=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function ote(e,t,n){if(!n.eNotation)return e;let r=t.match(ate);if(r){let i=r[1]||``,a=r[3].indexOf(`e`)===-1?`E`:`e`,o=r[2],s=i?e[o.length+1]===a:e[o.length]===a;return o.length>1&&s?e:o.length===1&&(r[3].startsWith(`.${a}`)||r[3][0]===a)?Number(t):o.length>0?n.leadingZeros&&!s?(t=(r[1]||``)+r[3],Number(t)):e:Number(t)}else return e}function ste(e){return e&&e.indexOf(`.`)!==-1?(e=e.replace(/0+$/,``),e===`.`?e=`0`:e[0]===`.`?e=`0`+e:e[e.length-1]===`.`&&(e=e.substring(0,e.length-1)),e):e}function Bt(e,t){let n=e.trim();if((t===2||t===8)&&(e=n.substring(2)),parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error(`parseInt, Number.parseInt, window.parseInt are not supported`)}function cte(e,t,n){let r=t===1/0;switch(n.infinity.toLowerCase()){case`null`:return null;case`infinity`:return t;case`string`:return r?`Infinity`:`-Infinity`;default:return e}}function lte(e){return typeof e==`function`?e:Array.isArray(e)?t=>{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}var Vt=class{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getAnyParentAttr(e){return this._matcher.getAnyParentAttr(e)}hasAnyParentAttr(e){return this._matcher.hasAnyParentAttr(e)}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},Ht=class{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new dte(this),this._keptAttrs=[]}push(e,t=null,n=null,r=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let i=this.path.length,a=this.siblingStacks[i];a||(a={counts:new Map,total:0},this.siblingStacks[i]=a);let o=n?`${n}:${e}`:e,s=a.counts.get(o)||0,c=a.total;a.counts.set(o,s+1),a.total++;let l={tag:e,position:c,counter:s};n!=null&&(l.namespace=n),t!=null&&(l.values=t),this.path.push(l);let u=this.path.length,d=r===null?null:r.keep;if(d!=null&&d.length>0&&t)for(let e=0;ethis.path.length+1&&(this.siblingStacks.length=this.path.length+1);let t=this.path.length+1;for(;this._keptAttrs.length>0&&this._keptAttrs[this._keptAttrs.length-1].depth>=t;)this._keptAttrs.pop();return e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getAnyParentAttr(e){let t=this._keptAttrs;for(let n=t.length-1;n>=0;n--)if(t[n].name===e)return t[n].value}hasAnyParentAttr(e){let t=this._keptAttrs;for(let n=t.length-1;n>=0;n--)if(t[n].name===e)return!0;return!1}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&t===!0){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[],this._keptAttrs=[]}matches(e){let t=e.segments;return t.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>e&&{counts:new Map(e.counts),total:e.total}),keptAttrs:this._keptAttrs.map(e=>({...e}))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>e&&{counts:new Map(e.counts),total:e.total}),this._keptAttrs=(e.keptAttrs||[]).map(e=>({...e}))}readOnly(){return this._view}},fte=[{id:`html-script-open`,description:` - + + + + +
diff --git a/app/vue/src/model/navigation.ts b/app/vue/src/model/navigation.ts index 46e98e5e..42affc9c 100644 --- a/app/vue/src/model/navigation.ts +++ b/app/vue/src/model/navigation.ts @@ -57,10 +57,11 @@ export const navigation: NavGroup[] = [ }, { key: 'tools', - title: 'Import / Convert', + title: 'Import / Export / Convert', icon: 'upload', items: [ { key: 'import', title: 'Import', route: 'import' }, + { key: 'export', title: 'Export', route: 'export' }, { key: 'massConvert', title: 'Mass Convert', route: 'massConvert' } ] }, diff --git a/app/vue/src/router.ts b/app/vue/src/router.ts index 13022095..a70ac97e 100644 --- a/app/vue/src/router.ts +++ b/app/vue/src/router.ts @@ -102,6 +102,11 @@ export const router = createRouter({ name: 'import', component: () => import('./views/Import.vue') }, + { + path: '/export', + name: 'export', + component: () => import('./views/Export.vue') + }, { path: '/mass-convert', name: 'massConvert', diff --git a/app/vue/src/views/Export.vue b/app/vue/src/views/Export.vue new file mode 100644 index 00000000..5a76f93c --- /dev/null +++ b/app/vue/src/views/Export.vue @@ -0,0 +1,217 @@ + + + + + diff --git a/bin/commandMap.js b/bin/commandMap.js index 9dc57b14..5d7ba78f 100644 --- a/bin/commandMap.js +++ b/bin/commandMap.js @@ -138,6 +138,11 @@ export const commandMap = { 'exp': './export.js', 'downloadData': './export.js', 'downloaddata': './export.js', + 'exportUI': './exportUI.js', + 'expui': './exportUI.js', + 'exportui': './exportUI.js', + 'downloadUI': './exportUI.js', + 'downloadui': './exportUI.js', 'expensiveStatements': './expensiveStatements.js', 'examples': './examples.js', 'example': './examples.js', diff --git a/bin/commandMetadata.js b/bin/commandMetadata.js index 20dcc116..59e7fcf3 100644 --- a/bin/commandMetadata.js +++ b/bin/commandMetadata.js @@ -232,6 +232,7 @@ export const commandMetadata = { // UI Variants functionsUI: { category: 'schema-tools', relatedCommands: ['functions'] }, + exportUI: { category: 'data-tools', relatedCommands: ['export', 'import'] }, importUI: { category: 'data-tools', relatedCommands: ['import'] }, indexesUI: { category: 'schema-tools', relatedCommands: ['indexes'] }, schemasUI: { category: 'schema-tools', relatedCommands: ['schemas'] }, diff --git a/bin/export.js b/bin/export.js index 55604e92..f2d396f3 100644 --- a/bin/export.js +++ b/bin/export.js @@ -294,12 +294,17 @@ export async function exportData(prompts) { } // Export based on format + const fsp = (await import('fs')).promises if (prompts.format === 'json') { - await exportJSON(outputFile, rows, prompts.nullValue) + await fsp.writeFile(outputFile, serializeJSON(rows), 'utf8') } else if (prompts.format === 'excel') { - await exportExcel(outputFile, table, rows, prompts.nullValue) + await fsp.writeFile(outputFile, await serializeExcel(rows, { sheetName: table, nullValue: prompts.nullValue })) } else { - await exportCSV(outputFile, rows, prompts.delimiter, prompts.includeHeaders, prompts.nullValue) + await fsp.writeFile(outputFile, serializeCSV(rows, { + delimiter: prompts.delimiter, + includeHeaders: prompts.includeHeaders, + nullValue: prompts.nullValue + }), 'utf8') } const elapsed = Date.now() - startTime @@ -327,152 +332,91 @@ export async function exportData(prompts) { } /** - * Export rows to CSV file - * @param {string} filePath - Output file path - * @param {Array} rows - Data rows to export - * @param {string} delimiter - CSV delimiter - * @param {boolean} includeHeaders - Whether to include header row - * @param {string} nullValue - Value to use for NULL cells - * @returns {Promise} - */ -async function exportCSV(filePath, rows, delimiter = ',', includeHeaders = true, nullValue = '') { - const fs = await import('fs') - const base = await import('../utils/base.js') - - if (!rows || rows.length === 0) { - base.debug('No rows to export') - return - } - - try { - const headers = Object.keys(rows[0]) - let csvContent = '' - - // Add headers - if (includeHeaders) { - csvContent += headers.map(h => escapeCSVField(String(h))).join(delimiter) + '\n' - } - - // Add rows - for (const row of rows) { - const values = headers.map(header => { - const value = row[header] - const stringValue = value === null || value === undefined ? nullValue : String(value) - return escapeCSVField(stringValue) - }) - csvContent += values.join(delimiter) + '\n' - } - - await fs.promises.writeFile(filePath, csvContent, 'utf8') - base.debug(`CSV file written: ${filePath}`) - - } catch (error) { - throw new Error(`File write error for ${filePath}: ${error.message}`) - } -} - -/** - * Escape CSV field value - * @param {string} field - Field value + * Serialize rows to CSV string + * @param {Array} rows + * @param {{delimiter?:string, includeHeaders?:boolean, nullValue?:string}} opts * @returns {string} */ -function escapeCSVField(field) { - if (!field) return '' - if (field.includes(',') || field.includes('"') || field.includes('\n')) { - return `"${field.replace(/"/g, '""')}"` // Escape quotes by doubling them +export function serializeCSV(rows, { delimiter = ',', includeHeaders = true, nullValue = '' } = {}) { + if (!rows || rows.length === 0) return '' + const headers = Object.keys(rows[0]) + let csv = '' + if (includeHeaders) { + csv += headers.map(h => escapeCSVField(String(h), delimiter)).join(delimiter) + '\n' } - return field + for (const row of rows) { + const values = headers.map(header => { + const value = row[header] + const s = value === null || value === undefined ? nullValue : String(value) + return escapeCSVField(s, delimiter) + }) + csv += values.join(delimiter) + '\n' + } + return csv } /** - * Export rows to Excel file - * @param {string} filePath - Output file path - * @param {string} sheetName - Worksheet name - * @param {Array} rows - Data rows to export - * @param {string} nullValue - Value to use for NULL cells - * @returns {Promise} + * Serialize rows to an Excel workbook Buffer + * @param {Array} rows + * @param {{sheetName?:string, nullValue?:string}} opts + * @returns {Promise} */ -async function exportExcel(filePath, sheetName, rows, nullValue = '') { - const base = await import('../utils/base.js') - - if (!rows || rows.length === 0) { - base.debug('No rows to export') - return - } - - try { - const workbook = new ExcelJS.Workbook() - const worksheet = workbook.addWorksheet(sheetName.substring(0, 31)) // Excel sheet name limit - +export async function serializeExcel(rows, { sheetName = 'Sheet1', nullValue = '' } = {}) { + const workbook = new ExcelJS.Workbook() + const worksheet = workbook.addWorksheet(String(sheetName).substring(0, 31)) + if (rows && rows.length > 0) { const headers = Object.keys(rows[0]) - - // Add headers const headerRow = worksheet.addRow(headers) headerRow.font = { bold: true } headerRow.fill = { type: 'pattern', pattern: 'solid', fgColor: { argb: 'FFD3D3D3' } } - - // Add rows for (const row of rows) { - const values = headers.map(header => { - const value = row[header] + worksheet.addRow(headers.map(h => { + const value = row[h] return value === null || value === undefined ? nullValue : value - }) - worksheet.addRow(values) + })) } - - // Auto-fit columns + const sheetValues = worksheet.getSheetValues().slice(1) headers.forEach((header, index) => { const column = worksheet.getColumn(index + 1) let maxLength = header.length - for (const row of worksheet.getSheetValues().slice(1)) { - if (row[index + 1]) { - maxLength = Math.max(maxLength, String(row[index + 1]).length) - } + for (const r of sheetValues) { + if (r != null && r[index + 1] != null) maxLength = Math.max(maxLength, String(r[index + 1]).length) } column.width = Math.min(maxLength + 2, 50) }) - - await workbook.xlsx.writeFile(filePath) - base.debug(`Excel file written: ${filePath}`) - - } catch (error) { - throw new Error(`File write error for ${filePath}: ${error.message}`) } + const buf = await workbook.xlsx.writeBuffer() + return Buffer.isBuffer(buf) ? buf : Buffer.from(buf) } /** - * Export rows to JSON file - * @param {string} filePath - Output file path - * @param {Array} rows - Data rows to export - * @param {string} nullValue - Value to use for NULL cells (not used for JSON) - * @returns {Promise} + * Serialize rows to a JSON string + * @param {Array} rows + * @param {{nullValue?:string}} opts + * @returns {string} */ -async function exportJSON(filePath, rows, nullValue = '') { - const fs = await import('fs') - const base = await import('../utils/base.js') - - if (!rows || rows.length === 0) { - base.debug('No rows to export') - return - } - - try { - // Convert null values - const processedRows = rows.map(row => { - const processed = {} - for (const [key, value] of Object.entries(row)) { - processed[key] = value === null || value === undefined ? null : value - } - return processed - }) - - const jsonContent = JSON.stringify(processedRows, null, 2) - await fs.promises.writeFile(filePath, jsonContent, 'utf8') - base.debug(`JSON file written: ${filePath}`) +export function serializeJSON(rows /* , opts */) { + if (!rows || rows.length === 0) return '[]' + const processed = rows.map(row => { + const out = {} + for (const [k, v] of Object.entries(row)) out[k] = v === null || v === undefined ? null : v + return out + }) + return JSON.stringify(processed, null, 2) +} - } catch (error) { - throw new Error(`File write error for ${filePath}: ${error.message}`) +/** + * Escape CSV field value + * @param {string} field - Field value + * @param {string} [delimiter=','] - Active delimiter character + * @returns {string} + */ +function escapeCSVField(field, delimiter = ',') { + if (!field) return '' + if (field.includes(delimiter) || field.includes('"') || field.includes('\n')) { + return `"${field.replace(/"/g, '""')}"` // Escape quotes by doubling them } + return field } /** diff --git a/bin/exportUI.js b/bin/exportUI.js new file mode 100644 index 00000000..dc415b71 --- /dev/null +++ b/bin/exportUI.js @@ -0,0 +1,73 @@ +// @ts-check +import * as baseLite from '../utils/base-lite.js' +import * as exportCmd from './export.js' +import { buildDocEpilogue } from '../utils/doc-linker.js' + +export const command = 'exportUI [table]' +export const aliases = ['expui', 'exportui', 'downloadUI', 'downloadui'] +export const describe = baseLite.bundle.getText("export") + +export const builder = (yargs) => yargs.options(baseLite.getUIBuilder({ + table: { + alias: ['t'], + type: 'string', + desc: baseLite.bundle.getText("exportTable") + }, + schema: { + alias: ['s'], + type: 'string', + default: '**CURRENT_SCHEMA**', + desc: baseLite.bundle.getText("exportSchema") + } +})).wrap(160).example('hana-cli exportUI', baseLite.bundle.getText("export")).wrap(160).epilog(buildDocEpilogue('exportUI', 'data-tools', ['export', 'import'])) + +export const inputPrompts = { + ...exportCmd.inputPrompts, + // Override output and format: the web UI collects these, so don't block + // startup by prompting interactively. importUI precedent: it spreads + // import's required prompts unchanged (filename, table, matchMode stay + // required) because those are meaningful pre-fills. For exportUI, output + // (a file path) and format are exclusively UI concerns — prompting for + // them before the server starts is confusing and provides no value. + output: { + description: baseLite.bundle.getText("exportOutput"), + type: 'string', + required: false, + ask: () => { } + }, + format: { + description: baseLite.bundle.getText("exportFormat"), + type: 'string', + required: false, + ask: () => { } + }, + port: { + description: 'Server port (default: 3010)', + type: 'number', + required: false, + ask: () => { } + }, + host: { + description: 'Server host (default: localhost)', + type: 'string', + required: false, + ask: () => { } + } +} + +export async function handler (argv) { + const base = await import('../utils/base.js') + base.promptHandler(argv, startWebServer, inputPrompts) +} + +async function startWebServer(prompts) { + const base = await import('../utils/base.js') + base.debug('exportUI startWebServer') + try { + base.setPrompts(prompts) + await base.webServerSetup('/ui/#/export') + // Don't call base.end() - let the web server keep running + } catch (error) { + base.error(error) + } +} diff --git a/docs/superpowers/plans/2026-07-13-export-ui.md b/docs/superpowers/plans/2026-07-13-export-ui.md new file mode 100644 index 00000000..40b187b7 --- /dev/null +++ b/docs/superpowers/plans/2026-07-13-export-ui.md @@ -0,0 +1,874 @@ +# Export Data UI Implementation Plan + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** Add an Export Data view to the hana-cli Vue web UI that mirrors the export CLI and delivers the exported file as a browser download. + +**Architecture:** Refactor the three serializers in `bin/export.js` into pure buffer-returning functions shared by both the CLI and a new `GET /hana/export` Express route. The route streams the file back as an attachment. A new `Export.vue` view (mirroring `Import.vue`) triggers the download; nav + router entries and a `bin/exportUI.js` launcher complete the wiring. + +**Tech Stack:** Node.js ESM, Express, ExcelJS, Vue 3 + `@ui5/webcomponents`, Vite, Mocha + supertest (route tests), Vitest (Vue unit tests — not needed here). + +## Global Constraints + +- Pure ESM project (`"type": "module"`) — use `import`/`export`, no `require`. +- Node.js ≥ 22.0.0. +- Route tests use Mocha + supertest via `tests/appFactory.js`; run with `npm run test:routes`. +- All SQL identifier inputs must pass `base.sqlInjection.isAcceptableParameter()` before interpolation. +- Never break the existing `hana-cli export` CLI command (covered by existing tests). +- Follow existing route pattern: `base.createDBConnection()` + `next(error)` for error handling. +- Vue view strings are hardcoded English, matching `Import.vue` (the UI is not i18n-wired). +- ESLint flat config; run `npm run lint` before finishing. + +--- + +### Task 1: Refactor `bin/export.js` serializers into pure exported functions + +**Files:** +- Modify: `bin/export.js` +- Test: `tests/exportSerializers.Test.js` (Create) + +**Interfaces:** +- Produces (all exported from `bin/export.js`): + - `serializeCSV(rows, { delimiter = ',', includeHeaders = true, nullValue = '' }) -> string` + - `serializeExcel(rows, { sheetName = 'Sheet1', nullValue = '' }) -> Promise` + - `serializeJSON(rows, { nullValue = '' }) -> string` +- Consumes: `ExcelJS` (already imported at top of `bin/export.js`). + +Notes: `rows` is `Array`; headers derive from `Object.keys(rows[0])`. Empty/`null` rows → CSV/JSON return `''`/`'[]'` respectively; Excel returns a Buffer with just headers or an empty workbook. Keep the existing private `escapeCSVField` helper. + +- [ ] **Step 1: Write the failing test** + +Create `tests/exportSerializers.Test.js`: + +```javascript +// @ts-nocheck +import { assert } from './base.js' +import { serializeCSV, serializeJSON, serializeExcel } from '../bin/export.js' + +describe('Export Serializers', function () { + const rows = [ + { ID: 1, NAME: 'Alice', NOTE: 'a,b' }, + { ID: 2, NAME: 'Bob', NOTE: null } + ] + + describe('serializeCSV', function () { + it('includes headers by default and escapes delimiters', function () { + const csv = serializeCSV(rows, {}) + const lines = csv.trim().split('\n') + assert.strictEqual(lines[0], 'ID,NAME,NOTE') + assert.strictEqual(lines[1], '1,Alice,"a,b"') + }) + + it('omits headers when includeHeaders is false', function () { + const csv = serializeCSV(rows, { includeHeaders: false }) + assert.strictEqual(csv.trim().split('\n')[0], '1,Alice,"a,b"') + }) + + it('uses custom delimiter and nullValue', function () { + const csv = serializeCSV(rows, { delimiter: ';', nullValue: 'NULL' }) + const lines = csv.trim().split('\n') + assert.strictEqual(lines[0], 'ID;NAME;NOTE') + assert.strictEqual(lines[2], '2;Bob;NULL') + }) + + it('returns empty string for no rows', function () { + assert.strictEqual(serializeCSV([], {}), '') + }) + }) + + describe('serializeJSON', function () { + it('serializes rows as a JSON array with null preserved', function () { + const parsed = JSON.parse(serializeJSON(rows, {})) + assert.strictEqual(parsed.length, 2) + assert.strictEqual(parsed[1].NOTE, null) + }) + + it('returns [] for no rows', function () { + assert.strictEqual(serializeJSON([], {}), '[]') + }) + }) + + describe('serializeExcel', function () { + it('returns a non-empty Buffer', async function () { + const buf = await serializeExcel(rows, { sheetName: 'Test' }) + assert.ok(Buffer.isBuffer(buf)) + assert.ok(buf.length > 0) + }) + }) +}) +``` + +- [ ] **Step 2: Run test to verify it fails** + +Run: `npx mocha --config tests/.mocharc.json tests/exportSerializers.Test.js` +Expected: FAIL — `serializeCSV is not a function` (or import error). + +- [ ] **Step 3: Refactor `bin/export.js` — add pure serializers** + +In `bin/export.js`, replace the three `async function exportCSV/exportExcel/exportJSON` (lines ~338-476) with pure serializers, and add thin disk-writing wrappers the existing `exportData` uses. Concretely: + +Add these exported functions (place near the bottom, before `promptForConfirmation`): + +```javascript +/** + * Serialize rows to CSV string + * @param {Array} rows + * @param {{delimiter?:string, includeHeaders?:boolean, nullValue?:string}} opts + * @returns {string} + */ +export function serializeCSV(rows, { delimiter = ',', includeHeaders = true, nullValue = '' } = {}) { + if (!rows || rows.length === 0) return '' + const headers = Object.keys(rows[0]) + let csv = '' + if (includeHeaders) { + csv += headers.map(h => escapeCSVField(String(h))).join(delimiter) + '\n' + } + for (const row of rows) { + const values = headers.map(header => { + const value = row[header] + const s = value === null || value === undefined ? nullValue : String(value) + return escapeCSVField(s) + }) + csv += values.join(delimiter) + '\n' + } + return csv +} + +/** + * Serialize rows to an Excel workbook Buffer + * @param {Array} rows + * @param {{sheetName?:string, nullValue?:string}} opts + * @returns {Promise} + */ +export async function serializeExcel(rows, { sheetName = 'Sheet1', nullValue = '' } = {}) { + const workbook = new ExcelJS.Workbook() + const worksheet = workbook.addWorksheet(String(sheetName).substring(0, 31)) + if (rows && rows.length > 0) { + const headers = Object.keys(rows[0]) + const headerRow = worksheet.addRow(headers) + headerRow.font = { bold: true } + headerRow.fill = { type: 'pattern', pattern: 'solid', fgColor: { argb: 'FFD3D3D3' } } + for (const row of rows) { + worksheet.addRow(headers.map(h => { + const value = row[h] + return value === null || value === undefined ? nullValue : value + })) + } + headers.forEach((header, index) => { + const column = worksheet.getColumn(index + 1) + let maxLength = header.length + for (const r of worksheet.getSheetValues().slice(1)) { + if (r && r[index + 1]) maxLength = Math.max(maxLength, String(r[index + 1]).length) + } + column.width = Math.min(maxLength + 2, 50) + }) + } + const buf = await workbook.xlsx.writeBuffer() + return Buffer.from(buf) +} + +/** + * Serialize rows to a JSON string + * @param {Array} rows + * @param {{nullValue?:string}} opts + * @returns {string} + */ +export function serializeJSON(rows /* , opts */) { + if (!rows || rows.length === 0) return '[]' + const processed = rows.map(row => { + const out = {} + for (const [k, v] of Object.entries(row)) out[k] = v === null || v === undefined ? null : v + return out + }) + return JSON.stringify(processed, null, 2) +} +``` + +Then update the CLI `exportData` file-writing branch (lines ~296-303) to use the serializers: + +```javascript + // Export based on format + const fsp = (await import('fs')).promises + if (prompts.format === 'json') { + await fsp.writeFile(outputFile, serializeJSON(rows), 'utf8') + } else if (prompts.format === 'excel') { + await fsp.writeFile(outputFile, await serializeExcel(rows, { sheetName: table, nullValue: prompts.nullValue })) + } else { + await fsp.writeFile(outputFile, serializeCSV(rows, { + delimiter: prompts.delimiter, + includeHeaders: prompts.includeHeaders, + nullValue: prompts.nullValue + }), 'utf8') + } +``` + +Delete the now-unused `async function exportCSV`, `exportExcel`, `exportJSON`. Keep `escapeCSVField`. + +- [ ] **Step 4: Run tests to verify they pass** + +Run: `npx mocha --config tests/.mocharc.json tests/exportSerializers.Test.js` +Expected: PASS (7 passing). + +- [ ] **Step 5: Verify the CLI export command still works (existing tests)** + +Run: `npx mocha --config tests/.mocharc.json tests/export.Test.js` (if it exists; otherwise `npm run test:grep -- export`) +Expected: PASS, no regressions. If no export CLI test exists, skip and note it. + +- [ ] **Step 6: Commit** + +```bash +git add bin/export.js tests/exportSerializers.Test.js +git commit -m "refactor(export): extract pure serializers shared by CLI and UI" +``` + +--- + +### Task 2: Add `GET /hana/export` route + +**Files:** +- Create: `routes/hanaExport.js` +- Test: `tests/routes/hanaExport.http.Test.js` (Create) + +**Interfaces:** +- Consumes: `serializeCSV`, `serializeExcel`, `serializeJSON` from `../bin/export.js`; `base.createDBConnection()`, `base.dbClass.schemaCalc()`, `base.sqlInjection.isAcceptableParameter()`, `base.debug`, `base.getPrompts`, `base.setPrompts`. +- Produces: Express route registered via `export function route(app)`. +- Endpoint contract: `GET /hana/export?schema=&table=&format=csv|excel|json&where=&orderby=&columns=&limit=&delimiter=&includeHeaders=&nullValue=` + - Success: 200, `Content-Disposition: attachment; filename="_."`, correct content-type, body = serialized file. + - Missing/invalid `table` or `schema` or `columns`: 400 JSON `{ error }`. + - No rows: 400 JSON `{ error: 'No data to export' }`. + +- [ ] **Step 1: Write the failing test** + +Create `tests/routes/hanaExport.http.Test.js`: + +```javascript +// @ts-check +import { expect } from 'chai' +import request from 'supertest' +import { createMinimalApp } from '../appFactory.js' +import { route } from '../../routes/hanaExport.js' + +describe('Export Route - HTTP Integration Tests', function () { + let app + before(function () { app = createMinimalApp(route) }) + + describe('input validation', function () { + it('returns 400 when table is missing', async function () { + const res = await request(app).get('/hana/export').query({ format: 'csv' }) + expect(res.status).to.equal(400) + }) + + it('returns 400 for an invalid (injection) table name', async function () { + const res = await request(app) + .get('/hana/export') + .query({ table: 'FOO; DROP TABLE BAR', format: 'csv' }) + expect(res.status).to.equal(400) + }) + + it('returns 400 for invalid column identifiers', async function () { + const res = await request(app) + .get('/hana/export') + .query({ table: 'VALIDTABLE', columns: 'OK, BAD;--', format: 'csv' }) + expect(res.status).to.equal(400) + }) + }) +}) +``` + +- [ ] **Step 2: Run test to verify it fails** + +Run: `npx mocha --config tests/.mocharc.json tests/routes/hanaExport.http.Test.js` +Expected: FAIL — cannot find module `../../routes/hanaExport.js`. + +- [ ] **Step 3: Implement `routes/hanaExport.js`** + +Create `routes/hanaExport.js`: + +```javascript +// @ts-check +import * as base from '../utils/base.js' +import { serializeCSV, serializeExcel, serializeJSON } from '../bin/export.js' + +const CONTENT_TYPES = { + csv: 'text/csv; charset=utf-8', + json: 'application/json; charset=utf-8', + excel: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' +} +const EXT = { csv: 'csv', json: 'json', excel: 'xlsx' } + +/** + * Validate a single SQL identifier via the project's injection guard. + * @param {string} value + * @returns {boolean} + */ +function validIdentifier(value) { + return typeof value === 'string' && value.length > 0 && base.sqlInjection.isAcceptableParameter(value) +} + +/** + * @param {string|null} schema + * @param {string} table + * @returns {string} + */ +function qualifiedName(schema, table) { + return schema ? `"${schema}"."${table}"` : `"${table}"` +} + +export function route (app) { + base.debug('hanaExport Route') + + /** + * @swagger + * /hana/export: + * get: + * tags: [Export] + * summary: Export table/view data as a downloadable file + * responses: + * 200: + * description: File attachment (csv, xlsx, or json) + * 400: + * description: Invalid parameters or no data + */ + app.get('/hana/export', async (req, res, next) => { + try { + const q = req.query + const format = ['csv', 'excel', 'json'].includes(String(q.format)) ? String(q.format) : 'csv' + const table = String(q.table || '') + let schema = q.schema ? String(q.schema) : '**CURRENT_SCHEMA**' + + if (!validIdentifier(table)) { + return res.status(400).json({ error: 'Invalid or missing table name' }) + } + if (schema && schema !== '**CURRENT_SCHEMA**' && !validIdentifier(schema)) { + return res.status(400).json({ error: 'Invalid schema name' }) + } + + // Columns: '*' or a validated comma list + let columnList = '*' + if (q.columns && String(q.columns).trim()) { + const cols = String(q.columns).split(',').map(c => c.trim()).filter(Boolean) + if (!cols.every(validIdentifier)) { + return res.status(400).json({ error: 'Invalid column list' }) + } + columnList = cols.map(c => `"${c}"`).join(', ') + } + + // Limit: integer only + let limit = 1000000 + if (q.limit !== undefined && q.limit !== '') { + const n = Number(q.limit) + if (!Number.isInteger(n) || n < 0) { + return res.status(400).json({ error: 'Invalid limit' }) + } + limit = n + } + + // Establish a connection using the shared prompts/config mechanism + base.setPrompts({ ...base.getPrompts(), schema, table, isGui: true }) + await base.clearConnection() + const db = await base.createDBConnection() + + // Resolve current schema placeholder + if (!schema || schema === '**CURRENT_SCHEMA**') { + schema = await base.dbClass.schemaCalc(base.getPrompts(), db) + } + + let query = `SELECT ${columnList} FROM ${qualifiedName(schema, table)}` + if (q.where && String(q.where).trim()) query += ` WHERE ${String(q.where)}` + if (q.orderby && String(q.orderby).trim()) query += ` ORDER BY ${String(q.orderby)}` + if (limit > 0) query += ` LIMIT ${limit}` + + base.debug(`Export query: ${query}`) + const rows = await db.execSQL(query) + + if (!rows || rows.length === 0) { + return res.status(400).json({ error: 'No data to export' }) + } + + let body + if (format === 'json') { + body = serializeJSON(rows) + } else if (format === 'excel') { + body = await serializeExcel(rows, { sheetName: table, nullValue: q.nullValue ? String(q.nullValue) : '' }) + } else { + body = serializeCSV(rows, { + delimiter: q.delimiter ? String(q.delimiter) : ',', + includeHeaders: q.includeHeaders === undefined ? true : String(q.includeHeaders) !== 'false', + nullValue: q.nullValue ? String(q.nullValue) : '' + }) + } + + const ts = new Date().toISOString().replace(/[:.]/g, '-').slice(0, -5) + const filename = `${table}_${ts}.${EXT[format]}` + res.setHeader('Content-Disposition', `attachment; filename="${filename}"`) + return res.type(CONTENT_TYPES[format]).status(200).send(body) + } catch (error) { + next(error) + } + }) +} +``` + +- [ ] **Step 4: Run tests to verify they pass** + +Run: `npx mocha --config tests/.mocharc.json tests/routes/hanaExport.http.Test.js` +Expected: PASS (3 passing). The validation tests return 400 before any DB connection is attempted. + +- [ ] **Step 5: Run the full route suite for regressions** + +Run: `npm run test:routes` +Expected: PASS, all route tests green (the new file's route auto-loads via `appFactory` glob). + +- [ ] **Step 6: Commit** + +```bash +git add routes/hanaExport.js tests/routes/hanaExport.http.Test.js +git commit -m "feat(routes): add GET /hana/export download endpoint" +``` + +--- + +### Task 3: Add the `Export.vue` view + +**Files:** +- Create: `app/vue/src/views/Export.vue` + +**Interfaces:** +- Consumes: `useSuggestions` (`../composables/useSuggestions`), `useCurrentSchema` (`../composables/useCurrentSchema`), `toast` (`../composables/useToast`), the `/hana/export` route from Task 2. +- Produces: a default-exported Vue SFC used by the router (Task 4) as `component: () => import('./views/Export.vue')`. + +- [ ] **Step 1: Create the view** + +Create `app/vue/src/views/Export.vue`: + +```vue + + + + + +``` + +- [ ] **Step 2: Type-check the Vue app** + +Run: `cd app/vue && npx vue-tsc --noEmit` +Expected: no type errors introduced by `Export.vue`. (If `useToast`'s export name differs, adjust the import to match `Import.vue`'s usage — it uses `import { toast } from '../composables/useToast'`.) + +- [ ] **Step 3: Commit** + +```bash +git add app/vue/src/views/Export.vue +git commit -m "feat(vue): add Export Data view" +``` + +--- + +### Task 4: Wire the view into router and navigation + +**Files:** +- Modify: `app/vue/src/router.ts` (after the `/import` route, ~line 104) +- Modify: `app/vue/src/model/navigation.ts` (tools group, lines 58-66) + +**Interfaces:** +- Consumes: `Export.vue` from Task 3. +- Produces: route name `export` at path `/export`; nav item `export` in the tools group. + +- [ ] **Step 1: Add the router entry** + +In `app/vue/src/router.ts`, immediately after the `/import` route object (the one whose `name: 'import'`), add: + +```javascript + { + path: '/export', + name: 'export', + component: () => import('./views/Export.vue') + }, +``` + +- [ ] **Step 2: Add the nav item and relabel the group** + +In `app/vue/src/model/navigation.ts`, change the tools group (lines 58-66) to: + +```javascript + { + key: 'tools', + title: 'Import / Export / Convert', + icon: 'upload', + items: [ + { key: 'import', title: 'Import', route: 'import' }, + { key: 'export', title: 'Export', route: 'export' }, + { key: 'massConvert', title: 'Mass Convert', route: 'massConvert' } + ] + }, +``` + +- [ ] **Step 3: Build the Vue app to verify it compiles and routes resolve** + +Run: `cd app/vue && npm run build` +Expected: build succeeds; output written to `app/vue/dist/`. An `Export-*.js` chunk appears in `app/vue/dist/assets/`. + +- [ ] **Step 4: Commit** + +```bash +git add app/vue/src/router.ts app/vue/src/model/navigation.ts app/vue/dist +git commit -m "feat(vue): wire Export view into router and sidebar navigation" +``` + +--- + +### Task 5: Add the `bin/exportUI.js` launcher + +**Files:** +- Create: `bin/exportUI.js` + +**Interfaces:** +- Consumes: `baseLite` (`../utils/base-lite.js`), `exportCmd` (`./export.js` for `inputPrompts`), `buildDocEpilogue` (`../utils/doc-linker.js`), `base.webServerSetup` / `base.promptHandler` / `base.setPrompts`. +- Produces: yargs command module `exportUI` that opens the UI at `/ui/#/export`. + +- [ ] **Step 1: Create the launcher** + +Create `bin/exportUI.js` (modeled on `bin/importUI.js`, using the correct hash-history URL `/ui/#/export`): + +```javascript +// @ts-check +import * as baseLite from '../utils/base-lite.js' +import * as exportCmd from './export.js' +import { buildDocEpilogue } from '../utils/doc-linker.js' + +export const command = 'exportUI [table]' +export const aliases = ['expui', 'exportui', 'downloadUI', 'downloadui'] +export const describe = baseLite.bundle.getText("export") + +export const builder = (yargs) => yargs.options(baseLite.getUIBuilder({ + table: { + alias: ['t'], + type: 'string', + desc: baseLite.bundle.getText("exportTable") + }, + schema: { + alias: ['s'], + type: 'string', + default: '**CURRENT_SCHEMA**', + desc: baseLite.bundle.getText("exportSchema") + } +})).wrap(160).example('hana-cli exportUI', baseLite.bundle.getText("export")).wrap(160).epilog(buildDocEpilogue('exportUI', 'data-tools', ['export', 'import'])) + +export const inputPrompts = { + ...exportCmd.inputPrompts, + port: { + description: 'Server port (default: 3010)', + type: 'number', + required: false, + ask: () => { } + }, + host: { + description: 'Server host (default: localhost)', + type: 'string', + required: false, + ask: () => { } + } +} + +export async function handler (argv) { + const base = await import('../utils/base.js') + base.promptHandler(argv, startWebServer, inputPrompts) +} + +async function startWebServer(prompts) { + const base = await import('../utils/base.js') + base.debug('exportUI startWebServer') + try { + base.setPrompts(prompts) + await base.webServerSetup('/ui/#/export') + // Don't call base.end() - let the web server keep running + } catch (error) { + base.error(error) + } +} +``` + +Note: `exportCmd.inputPrompts` marks `output` and `format` as `required: true` for the CLI; because this launcher just starts the web server (the UI collects inputs), the required prompts are harmless — but if the prompt flow blocks on them during manual testing, override `output`/`format` here with `required: false, ask: () => {}`. Verify in Step 2. + +- [ ] **Step 2: Verify the command registers and starts without prompting to exit** + +Run: `node bin/cli.js exportUI --help` +Expected: help text prints with the `exportUI` usage, aliases, and options — no crash. + +- [ ] **Step 3: Commit** + +```bash +git add bin/exportUI.js +git commit -m "feat(cli): add exportUI launcher opening the Export screen" +``` + +--- + +### Task 6: Full verification pass + +**Files:** none (verification only). + +- [ ] **Step 1: Run the full route suite** + +Run: `npm run test:routes` +Expected: all passing, including `hanaExport.http.Test.js`. + +- [ ] **Step 2: Run the serializer tests** + +Run: `npx mocha --config tests/.mocharc.json tests/exportSerializers.Test.js` +Expected: PASS. + +- [ ] **Step 3: Lint** + +Run: `npm run lint` +Expected: 0 errors. Fix any reported issues in the new/modified files. + +- [ ] **Step 4: Manual smoke test (documented, run if a DB profile is available)** + +``` +1. Start: node bin/cli.js ui +2. In the sidebar, confirm the "Import / Export / Convert" group shows Import, Export, Mass Convert. +3. Open Export, pick a small table, format=CSV, click Export → a .csv downloads. +4. Repeat with Excel (.xlsx) and JSON (.json). +5. Enter an invalid column list (e.g. "A;--") → an error message strip appears, no download. +6. Run: node bin/cli.js exportUI → browser opens directly on the Export screen. +``` + +- [ ] **Step 5: Final commit (if any lint fixes were made)** + +```bash +git add -A +git commit -m "chore(export-ui): lint fixes and verification" +``` + +--- + +## Self-Review Notes + +- **Spec coverage:** browser download (Task 2 attachment headers + Task 3 blob download); core query+format options (Task 3 form → Task 2 query build); shared serializer refactor (Task 1); route (Task 2); view (Task 3); nav/router wiring + group relabel (Task 4); exportUI launcher (Task 5); security guards (Task 2 validation); tests (Tasks 1, 2, 6). All spec sections mapped. +- **No-data behavior:** pinned to 400 `{ error: 'No data to export' }` in Task 2, matching the spec. +- **Type consistency:** serializer names (`serializeCSV`/`serializeExcel`/`serializeJSON`) identical across Tasks 1, 2. Route name `export`/path `/export` consistent across Tasks 3, 4, 5. +- **Known adjustment point:** `useToast` import name and `useSuggestions`/`useCurrentSchema` signatures are copied verbatim from `Import.vue`; if any differ at implementation time, match `Import.vue`. diff --git a/docs/superpowers/specs/2026-07-13-export-ui-design.md b/docs/superpowers/specs/2026-07-13-export-ui-design.md new file mode 100644 index 00000000..1b1b72b3 --- /dev/null +++ b/docs/superpowers/specs/2026-07-13-export-ui-design.md @@ -0,0 +1,147 @@ +# Export Data UI — Design + +**Date:** 2026-07-13 +**Status:** Approved (pending spec review) + +## Problem + +The hana-cli Vue web UI (`hana-cli ui`) has an **Import** view in the "Import / Convert" +sidebar group, but no corresponding **Export** view — even though the CLI has fully +functional `hana-cli export` and `hana-cli massExport` commands, and `bin/importUI.js` +already exists as a UI launcher counterpart with no `exportUI.js` sibling. The asymmetry +is visible in the code: the Import view's doc epilogue references `['import', 'export']` +as an intended pair. Users expect to find Export listed alongside Import in the sidebar. + +## Goal + +Add an **Export Data** view that mirrors the export CLI, delivering the exported file as a +**browser download**. Scope: single-table/view export (not massExport). + +## Non-Goals + +- Mass export (bulk export of many objects) — future work. +- Writing to a server-side file path — browser download only. +- i18n-wiring the Vue strings (Import.vue uses hardcoded English; we match that pattern). + +## Delivery Model + +**Browser download.** The user selects a source table/view, optional filters, and a format, +clicks Export, and the file is streamed back with a `Content-Disposition: attachment` +header so the browser saves it to the user's Downloads folder. This follows the existing +`/excel` route pattern (`routes/excel.js`), which already streams an Excel attachment. + +## Options Exposed (core query + format) + +- **Source:** Table (required), Schema (defaults to `**CURRENT_SCHEMA**`) +- **Format:** csv | excel | json (required) +- **Query options:** WHERE clause, ORDER BY, Columns (comma list), Limit +- **CSV-specific:** Delimiter, Include headers, NULL value + +Dropped from the CLI (don't fit a browser-download model): `output` (server path), +`timeout` (long CLI ops), `maxRows` (overlaps with `limit`). + +## Architecture + +### 1. Shared serializers (refactor `bin/export.js`) + +Refactor the three serializers to **pure functions that return a Buffer/string** rather +than writing to disk, and export them: + +- `serializeCSV(rows, { delimiter, includeHeaders, nullValue }) -> string` +- `serializeExcel(rows, { sheetName, nullValue }) -> Promise` +- `serializeJSON(rows, { nullValue }) -> string` + +The existing CLI `exportData` keeps its disk-writing behavior by writing the returned +buffer/string to the output file. The new route sends the buffer/string to the browser. +One source of truth for serialization, consumed by both CLI and route. + +**Component boundary:** each serializer has one purpose (`rows -> bytes`), is independently +testable, and depends only on its args (plus ExcelJS for the Excel case). + +### 2. New route — `routes/hanaExport.js` + +`GET /hana/export` with query params: `schema`, `table`, `format`, `where`, `orderby`, +`columns`, `limit`, `delimiter`, `includeHeaders`, `nullValue`. + +Flow: +1. Validate inputs (see Security). +2. `base.createDBConnection()` to get the client (established route pattern). +3. Resolve `**CURRENT_SCHEMA**` the same way `bin/export.js` does. +4. Build the `SELECT ... FROM "schema"."table" [WHERE] [ORDER BY] [LIMIT]` query + (identical shape to `bin/export.js`). +5. Execute, serialize with the shared serializer for the requested format. +6. Stream back: + `Content-Disposition: attachment; filename=
_.` + with the correct content-type (text/csv, application/json, or the xlsx mime). +7. On no rows: return 200 with an empty file (headers still present) OR 404 with a + message — **decision: 400 with `{ error: 'No data to export' }`** so the UI can show it. +8. Errors pass to `next(error)` for the global error handler. + +### 3. Vue view — `app/vue/src/views/Export.vue` + +Mirrors Import's card layout and CSS: +- **Source** card: Table input (with `useSuggestions('tables-ui', ...)`) + Schema input + (with `useSuggestions('schemas-ui', ...)` and `useCurrentSchema` resolved hint). +- **Format** card: format select; CSV-specific fields (delimiter, include headers, + null value) shown when format === csv. +- **Query Options** card: where, orderby, columns, limit. +- **Export** button (`design="Emphasized"`, `icon="download"`), disabled until table set. +- On click: build query string, trigger download via + `fetch('/hana/export?...')` → blob → object URL → anchor click, so errors (400) can be + surfaced as a `ui5-message-strip` instead of navigating away. + +No WebSocket / progress bar — single request/response. + +### 4. Wiring + +- `app/vue/src/router.ts`: add `{ path: '/export', name: 'export', component: () => import('./views/Export.vue') }`. +- `app/vue/src/model/navigation.ts`: add `{ key: 'export', title: 'Export', route: 'export' }` + to the tools group; relabel group title to **"Import / Export / Convert"**. +- `bin/exportUI.js`: new launcher `hana-cli exportUI` (aliases e.g. `expui`, `exportui`, + `downloadUI`) mirroring `bin/importUI.js` — opens the UI on the Export screen. + +## Security + +`where`, `orderby`, `columns` are free-text concatenated into SQL. The CLI already has this +exposure; the route adds guards the CLI lacks: + +- `schema` / `table`: validate with `base.sqlInjection.isAcceptableParameter()` before + interpolating into the quoted qualified name. +- `columns`: split on comma; validate each identifier; reject if any fails. +- `limit`: coerce to integer; reject non-numeric. +- `where` / `orderby`: cannot be validated as identifiers; kept as-is. This matches the + existing trust model — `hana-cli ui` binds to `localhost` by default and runs under the + user's own DB credentials; the SQL Query view already lets them run arbitrary SQL. No + new privilege escalation. + +## Testing + +- `tests/routes/hanaExport.http.Test.js` (supertest): + - CSV/Excel/JSON each return correct content-type + `Content-Disposition` attachment. + - Missing/invalid `table` → 400. + - Injection guard rejects bad `schema`/`table`/`columns` identifiers. + - No-data case → 400 with error message. +- Serializer unit tests (direct calls to the refactored pure functions): + - CSV escaping (comma, quote, newline), delimiter, include-headers toggle, null value. + - JSON shape + null handling. + - Excel returns a non-empty Buffer. +- Full `npm run test:routes` and `npm run lint` stay green. + +## i18n + +`_i18n/export*.properties` already exists with all export keys across 10 languages. Add UI +keys only if needed. Vue strings hardcoded in English to match `Import.vue`. + +## Files + +**New:** +- `app/vue/src/views/Export.vue` +- `routes/hanaExport.js` +- `bin/exportUI.js` +- `tests/routes/hanaExport.http.Test.js` +- serializer unit test file (e.g. `tests/cli/export.serializers.Test.js`) + +**Modified:** +- `bin/export.js` (refactor serializers to pure exported functions) +- `app/vue/src/router.ts` +- `app/vue/src/model/navigation.ts` diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 1a5dc3ba..732c82a6 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -52,7 +52,7 @@ "ora": "^9.4.0", "properties": "^1.2.1", "rxjs": "^7.8.1", - "sap-hdb-promisfied": "2.202606.2", + "sap-hdb-promisfied": "2.202607.1", "swagger-jsdoc": "^6.2.8", "swagger-ui-express": "^5.0.0", "terminal-kit": "^3.1.1", @@ -16034,6 +16034,7 @@ "version": "2.4.0", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.4.0.tgz", "integrity": "sha512-9VGk3HGanVE6JoZXHiCpnGy5X0jYDnN4EA4lntFPj+1vIWlFhIylq2CrrCOJH9EAhc5CYhq18F2Av2tgoAPsYQ==", + "dev": true, "license": "MIT", "engines": { "node": ">= 10" @@ -17768,7 +17769,8 @@ "version": "0.9.2", "resolved": "https://registry.npmjs.org/lz4-wasm-nodejs/-/lz4-wasm-nodejs-0.9.2.tgz", "integrity": "sha512-hSwgJPS98q/Oe/89Y1OxzeA/UdnASG8GvldRyKa7aZyoAFCC8VPRtViBSava7wWC66WocjUwBpWau2rEmyFPsw==", - "license": "MIT" + "license": "MIT", + "optional": true }, "node_modules/magic-string": { "version": "0.30.21", @@ -21723,9 +21725,9 @@ "license": "MIT" }, "node_modules/sap-hdb-promisfied": { - "version": "2.202606.2", - "resolved": "https://registry.npmjs.org/sap-hdb-promisfied/-/sap-hdb-promisfied-2.202606.2.tgz", - "integrity": "sha512-uTtUhh0frYAYGvPUG/AdLNVJE5X0Sz/1n/5KCtxF3LRq86sUqc9/ENgNu3a3l/w3nOwwinUBAO1rF14di0jKyA==", + "version": "2.202607.1", + "resolved": "https://registry.npmjs.org/sap-hdb-promisfied/-/sap-hdb-promisfied-2.202607.1.tgz", + "integrity": "sha512-YmF1nHsxm3EabcU/Vzq312oQGZkXAlCQFFVKu7T7ziawpea4IvTJ0Bt/LrqwN1z05msFewA2ZJYsjDOoPMaxaQ==", "hasShrinkwrap": true, "license": "Apache-2.0", "dependencies": { @@ -21735,7 +21737,7 @@ "hdb": "2.27.1" }, "engines": { - "node": "^20.0.0 || ^22.0.0 || ^24.0.0" + "node": "^20.0.0 || ^22.0.0 || ^24.0.0 || ^26.0.0" } }, "node_modules/sap-hdb-promisfied/node_modules/@isaacs/cliui": { @@ -21805,9 +21807,9 @@ "license": "MIT" }, "node_modules/sap-hdb-promisfied/node_modules/@types/node": { - "version": "25.9.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.9.3.tgz", - "integrity": "sha512-603BddQMv3pUcr4U2dhujk83N2tTDVr/34wII2B6bJy6g+8WD6yUb11jszNs0gdi4PesVWl7ABt8nYMVpnLUcg==", + "version": "25.9.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.9.5.tgz", + "integrity": "sha512-OScDchr2fwuUmWdf4kZ9h7PcJiYDVInhJizG/biAq3cAvqwYktuy/TYGGdZNMtNTFUP7rnb0NU4TUdm82kt4Rg==", "extraneous": true, "license": "MIT", "dependencies": { @@ -21874,9 +21876,9 @@ "license": "MIT" }, "node_modules/sap-hdb-promisfied/node_modules/brace-expansion": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.1.tgz", - "integrity": "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.2.tgz", + "integrity": "sha512-w5JZcKgdhDOgOwm8H+KgbosopHMuGcl6qbulwjtz3SM7I7P3yW1eAjzMPLrIE+NQ9vjgANKHWeMHnrT0OXW1oA==", "extraneous": true, "license": "MIT", "dependencies": { @@ -22108,9 +22110,9 @@ } }, "node_modules/sap-hdb-promisfied/node_modules/diff": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-7.0.0.tgz", - "integrity": "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==", + "version": "8.0.4", + "resolved": "https://registry.npmjs.org/diff/-/diff-8.0.4.tgz", + "integrity": "sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==", "extraneous": true, "license": "BSD-3-Clause", "engines": { @@ -22369,9 +22371,9 @@ } }, "node_modules/sap-hdb-promisfied/node_modules/js-yaml": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.2.0.tgz", - "integrity": "sha512-ePWsvanv0DWuDRsW8dnt+R4jQ31SCRCQ7hhNcPXZPsoBZiemuZNYGf7adZdqX2D86j6rvKp3RpCxVTSb8WQlOw==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz", + "integrity": "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==", "extraneous": true, "funding": [ { @@ -22602,16 +22604,6 @@ "extraneous": true, "license": "ISC" }, - "node_modules/sap-hdb-promisfied/node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "extraneous": true, - "license": "MIT", - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, "node_modules/sap-hdb-promisfied/node_modules/readdirp": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", @@ -22636,27 +22628,6 @@ "node": ">=0.10.0" } }, - "node_modules/sap-hdb-promisfied/node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "extraneous": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, "node_modules/sap-hdb-promisfied/node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", @@ -22664,13 +22635,13 @@ "license": "MIT" }, "node_modules/sap-hdb-promisfied/node_modules/serialize-javascript": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", - "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", + "version": "7.0.7", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-7.0.7.tgz", + "integrity": "sha512-YAy8Od6KV+uuwUuU50np8fGB/Aues6Y0nAhA9y/hId74PlKUcme4pXcBD46NWKr1Q4osN/iseZ17YqO1XfmI8g==", "extraneous": true, "license": "BSD-3-Clause", - "dependencies": { - "randombytes": "^2.1.0" + "engines": { + "node": ">=20.0.0" } }, "node_modules/sap-hdb-promisfied/node_modules/shebang-command": { @@ -23006,9 +22977,9 @@ } }, "node_modules/sap-hdb-promisfied/node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "version": "17.7.3", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz", + "integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==", "extraneous": true, "license": "MIT", "dependencies": { @@ -23515,6 +23486,7 @@ "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" diff --git a/package.json b/package.json index f3b0387f..b0d87b61 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,8 @@ "release:notes": "node scripts/extract-release-notes.js", "build:vue": "cd app/vue && npm run build", "build:vscode": "cd app/vue && npm run build:vscode && cd ../../vscode-extension && npm run bundle", - "prepack": "npm run build:vue" + "package:vscode": "npm run build:vscode && cd vscode-extension && node -e \"const fs=require('fs');for(const f of fs.readdirSync('.'))if(f.endsWith('.vsix'))fs.rmSync(f)\" && npx vsce package --no-dependencies", + "prepack": "npm run build:vue && npm run package:vscode" }, "repository": { "type": "git", @@ -110,7 +111,7 @@ "ora": "^9.4.0", "properties": "^1.2.1", "rxjs": "^7.8.1", - "sap-hdb-promisfied": "2.202606.2", + "sap-hdb-promisfied": "2.202607.1", "swagger-jsdoc": "^6.2.8", "swagger-ui-express": "^5.0.0", "terminal-kit": "^3.1.1", diff --git a/routes/hanaExport.js b/routes/hanaExport.js new file mode 100644 index 00000000..bd7bb8fb --- /dev/null +++ b/routes/hanaExport.js @@ -0,0 +1,121 @@ +// @ts-check +import * as base from '../utils/base.js' +import { serializeCSV, serializeExcel, serializeJSON } from '../bin/export.js' + +const CONTENT_TYPES = { + csv: 'text/csv; charset=utf-8', + json: 'application/json; charset=utf-8', + excel: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' +} +const EXT = { csv: 'csv', json: 'json', excel: 'xlsx' } + +/** + * Validate a single SQL identifier via the project's injection guard. + * @param {string} value + * @returns {boolean} + */ +function validIdentifier(value) { + return typeof value === 'string' && value.length > 0 && base.sqlInjection.isAcceptableParameter(value) +} + +/** + * @param {string|null} schema + * @param {string} table + * @returns {string} + */ +function qualifiedName(schema, table) { + return schema ? `"${schema}"."${table}"` : `"${table}"` +} + +export function route (app) { + base.debug('hanaExport Route') + + /** + * @swagger + * /hana/export: + * get: + * tags: [Export] + * summary: Export table/view data as a downloadable file + * responses: + * 200: + * description: File attachment (csv, xlsx, or json) + * 400: + * description: Invalid parameters or no data + */ + app.get('/hana/export', async (req, res, next) => { + try { + const q = req.query + const format = ['csv', 'excel', 'json'].includes(String(q.format)) ? String(q.format) : 'csv' + const table = String(q.table || '') + let schema = q.schema ? String(q.schema) : '**CURRENT_SCHEMA**' + + if (!validIdentifier(table)) { + return res.status(400).json({ error: 'Invalid or missing table name' }) + } + if (schema && schema !== '**CURRENT_SCHEMA**' && !validIdentifier(schema)) { + return res.status(400).json({ error: 'Invalid schema name' }) + } + + // Columns: '*' or a validated comma list + let columnList = '*' + if (q.columns && String(q.columns).trim()) { + const cols = String(q.columns).split(',').map(c => c.trim()).filter(Boolean) + if (!cols.every(validIdentifier)) { + return res.status(400).json({ error: 'Invalid column list' }) + } + columnList = cols.map(c => `"${c}"`).join(', ') + } + + // Limit: integer only + let limit = 1000000 + if (q.limit !== undefined && q.limit !== '') { + const n = Number(q.limit) + if (!Number.isInteger(n) || n < 1) { + return res.status(400).json({ error: 'Invalid limit' }) + } + limit = n + } + + // Establish a connection using the shared prompts/config mechanism + base.setPrompts({ ...base.getPrompts(), schema, table, isGui: true }) + await base.clearConnection() + const db = await base.createDBConnection() + + // Resolve current schema placeholder + if (!schema || schema === '**CURRENT_SCHEMA**') { + schema = await base.dbClass.schemaCalc(base.getPrompts(), db) + } + + let query = `SELECT ${columnList} FROM ${qualifiedName(schema, table)}` + if (limit > 0) query += ` LIMIT ${limit}` + + base.debug(`Export query: ${query}`) + const rows = await db.execSQL(query) + + if (!rows || rows.length === 0) { + return res.status(400).json({ error: 'No data to export' }) + } + + let body + if (format === 'json') { + body = serializeJSON(rows) + } else if (format === 'excel') { + body = await serializeExcel(rows, { sheetName: table, nullValue: q.nullValue ? String(q.nullValue) : '' }) + } else { + body = serializeCSV(rows, { + delimiter: q.delimiter ? String(q.delimiter) : ',', + includeHeaders: q.includeHeaders === undefined ? true : String(q.includeHeaders) !== 'false', + nullValue: q.nullValue ? String(q.nullValue) : '' + }) + } + + const ts = new Date().toISOString().replace(/[:.]/g, '-').slice(0, -5) + const filename = `${table}_${ts}.${EXT[format]}` + res.setHeader('Content-Disposition', `attachment; filename="${filename}"`) + res.setHeader('Content-Type', CONTENT_TYPES[format]) + return res.status(200).send(body) + } catch (error) { + next(error) + } + }) +} diff --git a/routes/static.js b/routes/static.js index ca02a9a6..9f29d84d 100644 --- a/routes/static.js +++ b/routes/static.js @@ -47,9 +47,27 @@ function getCommandDocsIndex() { export function route (app) { base.debug('Static Route') - app.use('/ui', express.static(path.join(__dirname, '../app/vue/dist'))) + app.use('/ui', express.static(path.join(__dirname, '../app/vue/dist'), { + // Hashed assets (index-.js/.css) are immutable and safe to cache + // forever, but index.html holds the pointers to those hashes and MUST + // be revalidated so a rebuild's new hashes are always picked up. + setHeaders: (res, filePath) => { + if (filePath.endsWith('index.html')) { + res.setHeader('Cache-Control', 'no-cache') + } + } + })) - app.get('/ui/{*splat}', (req, res) => { + app.get('/ui/{*splat}', (req, res, next) => { + // SPA fallback for client-side navigation routes only. A request that + // reaches here with a file extension (e.g. a missing /ui/assets/*.js) + // is a genuinely absent file — fall through to the 404 handler rather + // than returning index.html, which would be served as text/html and + // trigger a "MIME type text/html" module-script error in the browser. + if (path.extname(req.path)) { + return next() + } + res.setHeader('Cache-Control', 'no-cache') res.sendFile(path.join(__dirname, '../app/vue/dist/index.html')) }) diff --git a/tests/exportSerializers.Test.js b/tests/exportSerializers.Test.js new file mode 100644 index 00000000..96ca6e64 --- /dev/null +++ b/tests/exportSerializers.Test.js @@ -0,0 +1,71 @@ +// @ts-nocheck +import { assert } from './base.js' +import { serializeCSV, serializeJSON, serializeExcel } from '../bin/export.js' + +describe('Export Serializers', function () { + const rows = [ + { ID: 1, NAME: 'Alice', NOTE: 'a,b' }, + { ID: 2, NAME: 'Bob', NOTE: null } + ] + + describe('serializeCSV', function () { + it('includes headers by default and escapes delimiters', function () { + const csv = serializeCSV(rows, {}) + const lines = csv.trim().split('\n') + assert.strictEqual(lines[0], 'ID,NAME,NOTE') + assert.strictEqual(lines[1], '1,Alice,"a,b"') + }) + + it('omits headers when includeHeaders is false', function () { + const csv = serializeCSV(rows, { includeHeaders: false }) + assert.strictEqual(csv.trim().split('\n')[0], '1,Alice,"a,b"') + }) + + it('uses custom delimiter and nullValue', function () { + const csv = serializeCSV(rows, { delimiter: ';', nullValue: 'NULL' }) + const lines = csv.trim().split('\n') + assert.strictEqual(lines[0], 'ID;NAME;NOTE') + assert.strictEqual(lines[2], '2;Bob;NULL') + }) + + it('returns empty string for no rows', function () { + assert.strictEqual(serializeCSV([], {}), '') + }) + + it('null field renders as empty string with default options', function () { + const csv = serializeCSV(rows, {}) + const lines = csv.trim().split('\n') + // Bob row: ID=2, NAME=Bob, NOTE=null → trailing empty cell + assert.strictEqual(lines[2], '2,Bob,') + }) + + it('custom delimiter field is quoted when it contains the delimiter', function () { + const csv = serializeCSV([{ A: 'a;b' }], { delimiter: ';' }) + // The value 'a;b' must be quoted because it contains the active delimiter ';' + assert.ok(csv.includes('"a;b"'), `Expected quoted field in: ${csv}`) + // Must NOT appear as an unquoted split: two separate cells 'a' and 'b' + const dataLine = csv.trim().split('\n')[1] + assert.ok(!dataLine.includes(';a;') && dataLine !== 'a;b', `Field must be quoted, got: ${dataLine}`) + }) + }) + + describe('serializeJSON', function () { + it('serializes rows as a JSON array with null preserved', function () { + const parsed = JSON.parse(serializeJSON(rows, {})) + assert.strictEqual(parsed.length, 2) + assert.strictEqual(parsed[1].NOTE, null) + }) + + it('returns [] for no rows', function () { + assert.strictEqual(serializeJSON([], {}), '[]') + }) + }) + + describe('serializeExcel', function () { + it('returns a non-empty Buffer', async function () { + const buf = await serializeExcel(rows, { sheetName: 'Test' }) + assert.ok(Buffer.isBuffer(buf)) + assert.ok(buf.length > 0) + }) + }) +}) diff --git a/tests/routes/hanaExport.http.Test.js b/tests/routes/hanaExport.http.Test.js new file mode 100644 index 00000000..b08910ce --- /dev/null +++ b/tests/routes/hanaExport.http.Test.js @@ -0,0 +1,114 @@ +// @ts-check +import { expect } from 'chai' +import request from 'supertest' +import esmock from 'esmock' +import sinon from 'sinon' +import { createMinimalApp } from '../appFactory.js' +import { route } from '../../routes/hanaExport.js' + +describe('Export Route - HTTP Integration Tests', function () { + let app + before(function () { app = createMinimalApp(route) }) + + describe('input validation', function () { + it('returns 400 when table is missing', async function () { + const res = await request(app).get('/hana/export').query({ format: 'csv' }) + expect(res.status).to.equal(400) + }) + + it('returns 400 for an invalid (injection) table name', async function () { + const res = await request(app) + .get('/hana/export') + .query({ table: 'FOO; DROP TABLE BAR', format: 'csv' }) + expect(res.status).to.equal(400) + }) + + it('returns 400 for invalid column identifiers', async function () { + const res = await request(app) + .get('/hana/export') + .query({ table: 'VALIDTABLE', columns: 'OK, BAD;--', format: 'csv' }) + expect(res.status).to.equal(400) + }) + + it('returns 400 for a non-integer limit', async function () { + const res = await request(app) + .get('/hana/export') + .query({ table: 'VALIDTABLE', limit: 'abc', format: 'csv' }) + expect(res.status).to.equal(400) + }) + + it('returns 400 for limit=0', async function () { + const res = await request(app) + .get('/hana/export') + .query({ table: 'VALIDTABLE', limit: '0', format: 'csv' }) + expect(res.status).to.equal(400) + }) + }) + + describe('success paths (mocked DB)', function () { + let mockedApp + + before(async function () { + const routeModule = await esmock('../../routes/hanaExport.js', { + '../../utils/base.js': { + debug: () => {}, + setPrompts: () => {}, + getPrompts: () => ({}), + clearConnection: sinon.stub().resolves(), + createDBConnection: sinon.stub().resolves({ + execSQL: sinon.stub().resolves([{ ID: 1, NAME: 'Alice' }, { ID: 2, NAME: 'Bob' }]) + }), + dbClass: { schemaCalc: sinon.stub().resolves('MYSCHEMA') }, + sqlInjection: { isAcceptableParameter: () => true } + } + }) + mockedApp = createMinimalApp(routeModule.route) + }) + + it('CSV: returns 200 with correct content-type and filename, body has header and data', async function () { + const res = await request(mockedApp) + .get('/hana/export') + .query({ table: 'MYTABLE', format: 'csv' }) + expect(res.status).to.equal(200) + expect(res.headers['content-type']).to.include('text/csv') + expect(res.headers['content-disposition']).to.match(/attachment; filename="MYTABLE_.*\.csv"/) + expect(res.text).to.include('ID,NAME') + expect(res.text).to.include('Alice') + }) + + it('JSON: returns 200 with application/json content-type and .json filename, body is array', async function () { + const res = await request(mockedApp) + .get('/hana/export') + .query({ table: 'MYTABLE', format: 'json' }) + expect(res.status).to.equal(200) + expect(res.headers['content-type']).to.include('application/json') + expect(res.headers['content-disposition']).to.match(/attachment; filename="MYTABLE_.*\.json"/) + const parsed = JSON.parse(res.text) + expect(parsed).to.be.an('array').with.length(2) + }) + + it('Excel: returns 200 with spreadsheetml content-type and .xlsx filename, body is non-empty buffer', async function () { + const res = await request(mockedApp) + .get('/hana/export') + .query({ table: 'MYTABLE', format: 'excel' }) + .buffer(true) + .parse((res, callback) => { + const chunks = [] + res.on('data', chunk => chunks.push(chunk)) + res.on('end', () => callback(null, Buffer.concat(chunks))) + }) + expect(res.status).to.equal(200) + expect(res.headers['content-type']).to.include('spreadsheetml') + expect(res.headers['content-disposition']).to.match(/attachment; filename="MYTABLE_.*\.xlsx"/) + expect(res.body.length).to.be.greaterThan(0) + }) + + it('columns plumbing: returns 200 when valid columns are provided', async function () { + const res = await request(mockedApp) + .get('/hana/export') + .query({ table: 'MYTABLE', format: 'csv', columns: 'ID,NAME' }) + expect(res.status).to.equal(200) + expect(res.headers['content-type']).to.include('text/csv') + }) + }) +}) diff --git a/tests/routes/static.http.Test.js b/tests/routes/static.http.Test.js index 74b17d29..f75330a0 100644 --- a/tests/routes/static.http.Test.js +++ b/tests/routes/static.http.Test.js @@ -30,6 +30,26 @@ describe('Static Route - HTTP Integration Tests', function () { expect(response.text).to.include('') } }) + + it('should NOT serve the SPA shell for a missing hashed asset (avoids MIME error)', async function () { + // A stale/cached index.html can request an old asset hash that no + // longer exists after a rebuild. The SPA fallback must NOT return + // index.html for such requests — that would be served as + // text/html and break module script loading in the browser. + const response = await request(app).get('/ui/assets/index-DOESNOTEXIST.js') + expect(response.status).to.not.equal(200) + // Must not be the Vue SPA shell (which mounts on #app) + expect(response.text).to.not.include('id="app"') + }) + + it('should serve index.html with no-cache so new asset hashes are picked up', async function () { + const response = await request(app).get('/ui/') + expect(response.status).to.not.equal(404) + expect(response.status).to.be.oneOf([200, 304]) + if (response.status === 200) { + expect(response.headers['cache-control']).to.equal('no-cache') + } + }) }) describe('/i18n static files', function () { diff --git a/tests/utils/connections.Test.js b/tests/utils/connections.Test.js index 5301e22d..df6dacd3 100644 --- a/tests/utils/connections.Test.js +++ b/tests/utils/connections.Test.js @@ -422,6 +422,56 @@ describe('connections.js - Connection Options (Isolated Tests)', () => { }) }) +describe('connections.js - Direct (env var) Connection', () => { + const saved = {} + const ENV_KEYS = [ + 'HANA_CLI_HOST', 'HANA_CLI_PORT', 'HANA_CLI_USER', + 'HANA_CLI_PASSWORD', 'HANA_CLI_DATABASE', 'HANA_CLI_SCHEMA' + ] + + beforeEach(() => { + for (const k of ENV_KEYS) { saved[k] = process.env[k]; delete process.env[k] } + process.env.HANA_CLI_HOST = 'db.example.com' + process.env.HANA_CLI_PORT = '443' + process.env.HANA_CLI_USER = 'CONTAINER_RT' + process.env.HANA_CLI_PASSWORD = 'secret' + process.env.HANA_CLI_DATABASE = 'SYSTEMDB' + }) + + afterEach(() => { + for (const k of ENV_KEYS) { + if (saved[k] === undefined) { delete process.env[k] } + else { process.env[k] = saved[k] } + } + }) + + it('should build a direct connection from HANA_CLI_* env vars', async () => { + const connections = await import('../../utils/connections.js') + const options = await connections.getConnOptions({}) + expect(options.hana.host).to.equal('db.example.com') + expect(options.hana.port).to.equal(443) + expect(options.hana.user).to.equal('CONTAINER_RT') + expect(options.hana.database).to.equal('SYSTEMDB') + }) + + it('should NOT set schema when HANA_CLI_SCHEMA is unset', async () => { + // Regression guard: without a schema, setSchema() skips SET SCHEMA and + // CURRENT_SCHEMA stays the empty HDI runtime user schema. + const connections = await import('../../utils/connections.js') + const options = await connections.getConnOptions({}) + expect(options.hana).to.not.have.property('schema') + }) + + it('should propagate HANA_CLI_SCHEMA into the connection options', async () => { + // The fix: propagating the container schema makes createConnection issue + // SET SCHEMA on connect, so schema-filtered commands (tables, views) work. + process.env.HANA_CLI_SCHEMA = 'MY_CONTAINER' + const connections = await import('../../utils/connections.js') + const options = await connections.getConnOptions({}) + expect(options.hana.schema).to.equal('MY_CONTAINER') + }) +}) + describe('connections.js - Module Exports', () => { let connections diff --git a/utils/connections.js b/utils/connections.js index 151bf969..d12a5721 100644 --- a/utils/connections.js +++ b/utils/connections.js @@ -298,6 +298,12 @@ export async function getConnOptions(prompts) { database: process.env.HANA_CLI_DATABASE || 'SYSTEMDB', } }; + // Propagate the container/default schema so setSchema() issues SET SCHEMA on + // connect. Without this, CURRENT_SCHEMA stays the (empty) HDI runtime user + // schema and schema-filtered commands (tables, views, ...) return no rows. + if (process.env.HANA_CLI_SCHEMA) { + directConnection.hana.schema = process.env.HANA_CLI_SCHEMA; + } base.debug('Using direct database connection from MCP context'); return directConnection; } diff --git a/vscode-extension/package-lock.json b/vscode-extension/package-lock.json index f41751de..5e13ced9 100644 --- a/vscode-extension/package-lock.json +++ b/vscode-extension/package-lock.json @@ -1,12 +1,12 @@ { "name": "hana-cli", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hana-cli", - "version": "0.1.0", + "version": "0.1.1", "dependencies": { "express": "^5.2.1" }, diff --git a/vscode-extension/package.json b/vscode-extension/package.json index 14d83b10..321bc2bf 100644 --- a/vscode-extension/package.json +++ b/vscode-extension/package.json @@ -2,7 +2,7 @@ "name": "hana-cli", "displayName": "hana-cli Tools for SAP HANA", "description": "Visual editors and database tools for SAP HANA powered by hana-cli", - "version": "0.1.0", + "version": "0.1.1", "publisher": "SAP-samples", "engines": { "vscode": "^1.85.0" diff --git a/vscode-extension/src/server/lifecycle.ts b/vscode-extension/src/server/lifecycle.ts index 913458ab..32ec1753 100644 --- a/vscode-extension/src/server/lifecycle.ts +++ b/vscode-extension/src/server/lifecycle.ts @@ -109,7 +109,14 @@ export function injectConnection(conn: HanaConnection): void { process.env.HANA_CLI_USER = conn.user process.env.HANA_CLI_PASSWORD = conn.password process.env.HANA_CLI_DATABASE = 'SYSTEMDB' + // Propagate the container schema so hana-cli issues SET SCHEMA on connect. + // Without it, CURRENT_SCHEMA stays the empty HDI runtime user schema and + // schema-filtered commands (tables, views, ...) return no rows. Clear any + // stale value when the new connection has no schema, to avoid leaking it + // across connection switches. if (conn.schema) { process.env.HANA_CLI_SCHEMA = conn.schema + } else { + delete process.env.HANA_CLI_SCHEMA } }