@univerjs/sheets-conditional-formatting 0.5.0-alpha.0 → 0.5.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { SheetExtension, SpreadsheetSkeleton, UniverRenderingContext } from '@univerjs/engine-render';
2
1
  import { IRange, IScale } from '@univerjs/core';
2
+ import { SpreadsheetSkeleton, UniverRenderingContext, SheetExtension } from '@univerjs/engine-render';
3
3
  export declare const dataBarUKey = "sheet-conditional-rule-data-bar";
4
4
  export declare const defaultDataBarPositiveColor = "#ffbe38";
5
5
  export declare const defaultDataBarNativeColor = "#abd91a";
@@ -1,5 +1,5 @@
1
- import { SheetExtension, SpreadsheetSkeleton, UniverRenderingContext } from '@univerjs/engine-render';
2
1
  import { IRange, IScale } from '@univerjs/core';
2
+ import { SpreadsheetSkeleton, UniverRenderingContext, SheetExtension } from '@univerjs/engine-render';
3
3
  export declare const IconUKey = "sheet-conditional-rule-icon";
4
4
  export declare const DEFAULT_WIDTH = 15;
5
5
  export declare const DEFAULT_PADDING = 2;
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(f,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("@univerjs/core"),require("rxjs"),require("rxjs/operators"),require("@univerjs/sheets"),require("@univerjs/engine-render"),require("@univerjs/engine-formula")):typeof define=="function"&&define.amd?define(["exports","@univerjs/core","rxjs","rxjs/operators","@univerjs/sheets","@univerjs/engine-render","@univerjs/engine-formula"],g):(f=typeof globalThis<"u"?globalThis:f||self,g(f.UniverSheetsConditionalFormatting={},f.UniverCore,f.rxjs,f.rxjs.operators,f.UniverSheets,f.UniverEngineRender,f.UniverEngineFormula))})(this,function(f,g,Q,d2,J,h2,n2){"use strict";var P0=Object.defineProperty;var W0=(f,g,Q)=>g in f?P0(f,g,{enumerable:!0,configurable:!0,writable:!0,value:Q}):f[g]=Q;var I=(f,g,Q)=>W0(f,typeof g!="symbol"?g+"":g,Q);var x2;const S2="SHEET_CONDITIONAL_FORMATTING_PLUGIN";var Y=(s=>(s.beginsWith="beginsWith",s.endsWith="endsWith",s.containsText="containsText",s.notContainsText="notContainsText",s.equal="equal",s.notEqual="notEqual",s.containsBlanks="containsBlanks",s.notContainsBlanks="notContainsBlanks",s.containsErrors="containsErrors",s.notContainsErrors="notContainsErrors",s))(Y||{}),H=(s=>(s.today="today",s.yesterday="yesterday",s.tomorrow="tomorrow",s.last7Days="last7Days",s.thisMonth="thisMonth",s.lastMonth="lastMonth",s.nextMonth="nextMonth",s.thisWeek="thisWeek",s.lastWeek="lastWeek",s.nextWeek="nextWeek",s))(H||{}),T=(s=>(s.greaterThan="greaterThan",s.greaterThanOrEqual="greaterThanOrEqual",s.lessThan="lessThan",s.lessThanOrEqual="lessThanOrEqual",s.notBetween="notBetween",s.between="between",s.equal="equal",s.notEqual="notEqual",s))(T||{}),W=(s=>(s.highlightCell="highlightCell",s.dataBar="dataBar",s.colorScale="colorScale",s.iconSet="iconSet",s))(W||{}),U=(s=>(s.uniqueValues="uniqueValues",s.duplicateValues="duplicateValues",s.rank="rank",s.text="text",s.timePeriod="timePeriod",s.number="number",s.average="average",s.formula="formula",s))(U||{}),z=(s=>(s.num="num",s.min="min",s.max="max",s.percent="percent",s.percentile="percentile",s.formula="formula",s))(z||{});const e0="#fff",n0="#000000",i0=()=>({cfId:void 0,ranges:[],stopIfTrue:!1,rule:{type:"highlightCell",subType:"text",operator:"containsText"}}),s0=(s,r)=>{switch(s){case"text":{if(["beginsWith","containsText","endsWith","equal","notContainsText","notEqual"].includes(r))return"";break}case"number":return["between","notBetween"].includes(r)?[10,100]:10}return""},a0=(s,r)=>{switch(s){case"formula":return"=";case"max":case"min":return"";case"percent":case"percentile":case"num":return r!==void 0?r:10}return""},O2=()=>`${g.Tools.generateRandomId(8)}`,i2=(s,r,t)=>{if(!r)return null;const e=r.findIndex(n=>t(n)===s.id);if(e<0)return null;switch(s.type){case"after":return e+1;case"before":return e-1;case"self":return e}},$2=(s,r,t,e)=>{if(!t)return null;const n=i2(s,t,e);let i=i2(r,t,e);if(n===null||i===null||n===i)return;const a=t.splice(n,1)[0];switch(n<i&&(i=i2(r,t,e)),r.type){case"before":{t.splice(i+1,0,a);break}case"self":case"after":{t.splice(i,0,a);break}}},U2=(s,r,t,e)=>{if(s.type==="after"&&["after","before"].includes(r.type))return[s,r];const n={...s},i={...r};if(n.type!=="after"){const a=i2(n,t,e);if(a===null)return null;if(a-1<0){const l=t[a+1];if(l)n.id=e(l),n.type="before";else return null}else{const l=e(t[a-1]);n.id=l,n.type="after"}}if(!["after","before"].includes(i.type)){const a=i2(i,t,e);if(a===null)return null;if(a===0)i.type="before";else if(a-1>=0){const l=e(t[a-1]);i.id=l,i.type="after"}else if(a+1<=t.length-1){const l=e(t[a+1]);i.id=l,i.type="before"}else return null}return n.id===i.id&&n.type===i.type?null:[n,i]},V2=(s,r)=>{if(["after","before"].includes(r.type)){if(s.type==="after")return[r,s];if(s.type==="before")return[r,{...s,type:"self"}]}return null},r0=(s,r)=>s.id===r.id&&s.type===r.type;var l0=Object.defineProperty,o0=Object.getOwnPropertyDescriptor,c0=(s,r,t,e)=>{for(var n=e>1?void 0:e?o0(r,t):r,i=s.length-1,a;i>=0;i--)(a=s[i])&&(n=(e?a(r,t,n):a(n))||n);return e&&n&&l0(r,t,n),n},u0=(s,r)=>(t,e)=>r(t,e,s);f.ConditionalFormattingRuleModel=class{constructor(r){I(this,"_model",new Map);I(this,"_ruleChange$",new Q.Subject);I(this,"$ruleChange",this._ruleChange$.asObservable().pipe(d2.bufferTime(16),d2.filter(r=>!!r.length),r=>new Q.Observable(t=>{r.subscribe({next:e=>{const n=o=>`${o.unitId}_${o.subUnitId}_${o.rule.cfId}`,i=o=>{const u=o.findIndex(d=>d.type==="add"),c=o.findIndex(d=>d.type==="delete");u!==-1&&c!==-1&&c>u&&o.splice(u,c-u+1)},a=e.reduce((o,u,c)=>{const d=n(u);return o[d]||(o[d]=[]),o[d].push({...u,_index:c}),o},{});for(const o in a){const u=a[o];u.length>=2&&i(u)}Object.keys(a).reduce((o,u)=>{const c=a[u];return o.push(...c),o},[]).sort((o,u)=>o._index-u._index).map(o=>o).forEach(o=>{t.next(o)})},error:e=>t.error(e),complete:()=>t.complete()})})));this._injector=r}_ensureList(r,t){let e=this.getSubunitRules(r,t);if(!e){e=[];let n=this._model.get(r);n||(n=new Map,this._model.set(r,n)),n.set(t,e)}return e}getRule(r,t,e){const n=this.getSubunitRules(r,t);return n?n.find(i=>i.cfId===e):null}getUnitRules(r){return this._model.get(r)||null}getSubunitRules(r,t){var n;return((n=this._model.get(r))==null?void 0:n.get(t))||null}deleteRule(r,t,e){const n=this.getSubunitRules(r,t);if(n){const i=n.findIndex(l=>l.cfId===e),a=n[i];a&&(n.splice(i,1),this._ruleChange$.next({rule:a,subUnitId:t,unitId:r,type:"delete"}))}}setRule(r,t,e,n){const a=this._ensureList(r,t).find(l=>l.cfId===n);if(a){const l=g.Tools.deepClone(a);Object.assign(a,e),this._ruleChange$.next({rule:a,subUnitId:t,unitId:r,type:"set",oldRule:l})}}addRule(r,t,e){const n=this._ensureList(r,t);n.find(a=>a.cfId===e.cfId)||n.unshift(e),this._ruleChange$.next({rule:e,subUnitId:t,unitId:r,type:"add"})}moveRulePriority(r,t,e,n){const i=this._ensureList(r,t),a=i2(e,i,u=>u.cfId),l=i2(n,i,u=>u.cfId);if(l===null||a===null||l===a)return;const o=i[a];o&&($2(e,n,i,u=>u.cfId),this._ruleChange$.next({rule:o,subUnitId:t,unitId:r,type:"sort"}))}createCfId(r,t){return O2()}deleteUnitId(r){this._model.delete(r)}},f.ConditionalFormattingRuleModel=c0([u0(0,g.Inject(g.Injector))],f.ConditionalFormattingRuleModel);class D2{constructor(){I(this,"_model",new Map);I(this,"_markDirty$",new Q.Subject);I(this,"markDirty$",this._markDirty$.asObservable())}_ensureMatrix(r,t){let e=this.getMatrix(r,t);if(!e){e=new g.ObjectMatrix;let n=this._model.get(r);n||(n=new Map,this._model.set(r,n)),n.set(t,e)}return e}getMatrix(r,t){var e;return(e=this._model.get(r))==null?void 0:e.get(t)}getCellCf(r,t,e,n,i){const a=i!=null?i:this.getMatrix(r,t);return a?a.getValue(e,n):null}setCellCfRuleCache(r,t,e,n,i,a){const o=this._ensureMatrix(r,t).getValue(e,n),u=o==null?void 0:o.cfList.find(c=>c.cfId===i);u&&(u.ruleCache=a,u.isDirty=!1)}deleteCellCf(r,t,e,n,i,a){const l=a!=null?a:this.getMatrix(r,t);if(l){const o=l.getValue(e,n);if(o){const u=o.cfList,c=u.findIndex(d=>d.cfId===i);c>-1&&u.splice(c,1),u.length||l.realDeleteValue(e,n)}}}pushCellCf(r,t,e,n,i){const a=this._ensureMatrix(r,t);let l=a.getValue(e,n);if(!l)l={cfList:[{cfId:i,isDirty:!0}]};else{const o=l.cfList;if(o.findIndex(c=>c.cfId===i)>-1)return;o.push({cfId:i,isDirty:!0})}a.setValue(e,n,l)}sortCellCf(r,t,e,n,i){const a=this.getCellCf(r,t,e,n);if(a){const l=a.cfList.map(o=>{const u=i.get(o.cfId);return u===void 0?null:{...o,priority:u}}).filter(o=>!!o).sort((o,u)=>o.priority-u.priority);a.cfList=l}}markRuleDirty(r,t,e,n,i){const a=(l,o)=>{const u=this.getCellCf(r,t,l,o);if(u){const c=u.cfList.find(d=>d.cfId===e.cfId);c&&(c.isDirty=!0)}};n!==void 0&&i!==void 0?(a(n,i),this._markDirty$.next({rule:e,unitId:r,subUnitId:t})):(e.ranges.forEach(l=>{g.Range.foreach(l,(o,u)=>{a(o,u)})}),this._markDirty$.next({rule:e,unitId:r,subUnitId:t}))}}const F={feedback:{mistake:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%227.03704%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.87359%206.87332C6.6146%207.13231%206.6146%207.55221%206.87359%207.8112L9.062%209.99961L6.87356%2012.188C6.61457%2012.447%206.61457%2012.8669%206.87356%2013.1259C7.13255%2013.3849%207.55245%2013.3849%207.81144%2013.1259L9.99987%2010.9375L12.1882%2013.1258C12.4472%2013.3848%2012.8671%2013.3848%2013.1261%2013.1258C13.3851%2012.8669%2013.3851%2012.447%2013.1261%2012.188L10.9378%209.99961L13.1261%207.81127C13.3851%207.55228%2013.3851%207.13238%2013.1261%206.87339C12.8671%206.61441%2012.4472%206.61441%2012.1882%206.87339L9.99987%209.06173L7.81147%206.87332C7.55248%206.61433%207.13257%206.61433%206.87359%206.87332Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A",warn:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%227.03704%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3Cpath%20d%3D%22M9.16817%206.67735C9.16646%206.61745%209.1656%206.5875%209.16653%206.56236C9.18103%206.16817%209.49136%205.84883%209.88497%205.82306C9.91008%205.82141%209.94004%205.82141%209.99996%205.82141V5.82141C10.0599%205.82141%2010.0899%205.82141%2010.115%205.82306C10.5086%205.84883%2010.8189%206.16817%2010.8334%206.56236C10.8343%206.5875%2010.8335%206.61745%2010.8318%206.67735L10.7043%2011.131C10.6934%2011.5121%2010.3812%2011.8154%209.99995%2011.8154V11.8154C9.61866%2011.8154%209.30655%2011.5121%209.29564%2011.131L9.16817%206.67735Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3Crect%20x%3D%229.31488%22%20y%3D%2212.8086%22%20width%3D%221.37006%22%20height%3D%221.37006%22%20rx%3D%220.685032%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A",correct:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M17.037%2010C17.037%2013.8865%2013.8864%2017.0371%209.99999%2017.0371C6.11354%2017.0371%202.96295%2013.8865%202.96295%2010C2.96295%206.1136%206.11354%202.96301%209.99999%202.96301C13.8864%202.96301%2017.037%206.1136%2017.037%2010Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3Cpath%20d%3D%22M13.9239%207.17477C13.6638%206.91472%2013.2422%206.91472%2012.9821%207.17477L8.74433%2011.4126L7.01786%209.6861C6.75781%209.42606%206.33619%209.42606%206.07614%209.6861C5.81609%209.94615%205.81609%2010.3678%206.07614%2010.6278L8.27349%2012.8252C8.53354%2013.0852%208.95516%2013.0852%209.21521%2012.8252L9.2195%2012.8209L13.9239%208.1165C14.1839%207.85645%2014.1839%207.43482%2013.9239%207.17477Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A"},star:{starEmpty:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.8451%207.0699%2012.2165%207.33978%2012.6421%207.36863L16.2362%207.61233C16.5693%207.63492%2016.7048%208.05202%2016.4486%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.215%2011.2859%2013.319%2011.6996L14.1979%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6418%2015.5971L10.5908%2013.6817C10.2296%2013.4549%209.77045%2013.4549%209.40924%2013.6817L6.35828%2015.5971C6.07553%2015.7746%205.72072%2015.5168%205.80217%2015.1931L6.68105%2011.6996C6.7851%2011.2859%206.64322%2010.8493%206.31592%2010.5758L3.55145%208.26607C3.29525%208.05202%203.43078%207.63492%203.76386%207.61233L7.358%207.36863C7.78352%207.33978%208.15498%207.0699%208.31391%206.67412L9.65633%203.3312C9.78074%203.0214%2010.2193%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A",starIncomplete:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_177)%22%3E%0A%3Cmask%20id%3D%22mask0_613_177%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2210%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2220%22%3E%0A%3Crect%20x%3D%2210.3704%22%20y%3D%220.37037%22%20width%3D%229.25926%22%20height%3D%2219.2593%22%20fill%3D%22%23C4C4C4%22%20stroke%3D%22%23F7D564%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fmask%3E%0A%3Cg%20mask%3D%22url(%23mask0_613_177)%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.845%207.0699%2012.2165%207.33978%2012.642%207.36863L16.2361%207.61233C16.5692%207.63492%2016.7047%208.05202%2016.4485%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.2149%2011.2859%2013.3189%2011.6996L14.1978%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6417%2015.5971L10.5908%2013.6817C10.2295%2013.4549%209.77039%2013.4549%209.40918%2013.6817L6.35822%2015.5971C6.07547%2015.7746%205.72066%2015.5168%205.80211%2015.1931L6.68098%2011.6996C6.78504%2011.2859%206.64316%2010.8493%206.31586%2010.5758L3.55139%208.26607C3.29519%208.05202%203.43072%207.63492%203.7638%207.61233L7.35793%207.36863C7.78346%207.33978%208.15491%207.0699%208.31385%206.67412L9.65627%203.3312C9.78068%203.0214%2010.2192%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fg%3E%0A%3Cmask%20id%3D%22mask1_613_177%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2220%22%3E%0A%3Crect%20width%3D%2210%22%20height%3D%2220%22%20fill%3D%22%23C4C4C4%22%2F%3E%0A%3C%2Fmask%3E%0A%3Cg%20mask%3D%22url(%23mask1_613_177)%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.845%207.0699%2012.2165%207.33978%2012.642%207.36863L16.2361%207.61233C16.5692%207.63492%2016.7047%208.05202%2016.4485%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.2149%2011.2859%2013.3189%2011.6996L14.1978%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6417%2015.5971L10.5908%2013.6817C10.2295%2013.4549%209.77039%2013.4549%209.40918%2013.6817L6.35822%2015.5971C6.07547%2015.7746%205.72066%2015.5168%205.80211%2015.1931L6.68098%2011.6996C6.78504%2011.2859%206.64316%2010.8493%206.31586%2010.5758L3.55139%208.26607C3.29519%208.05202%203.43072%207.63492%203.7638%207.61233L7.35793%207.36863C7.78346%207.33978%208.15491%207.0699%208.31385%206.67412L9.65627%203.3312C9.78068%203.0214%2010.2192%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_177%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A",starFull:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.8451%207.0699%2012.2165%207.33978%2012.6421%207.36863L16.2362%207.61233C16.5693%207.63492%2016.7048%208.05202%2016.4486%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.215%2011.2859%2013.319%2011.6996L14.1979%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6418%2015.5971L10.5908%2013.6817C10.2296%2013.4549%209.77045%2013.4549%209.40924%2013.6817L6.35828%2015.5971C6.07553%2015.7746%205.72072%2015.5168%205.80217%2015.1931L6.68105%2011.6996C6.7851%2011.2859%206.64322%2010.8493%206.31592%2010.5758L3.55145%208.26607C3.29525%208.05202%203.43078%207.63492%203.76386%207.61233L7.358%207.36863C7.78352%207.33978%208.15498%207.0699%208.31391%206.67412L9.65633%203.3312C9.78074%203.0214%2010.2193%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A"},progress:{progress0:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A",progress25:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M16.2963%209.99991C16.2963%209.17307%2016.1335%208.35432%2015.8171%207.59042C15.5006%206.82652%2015.0369%206.13242%2014.4522%205.54776C13.8675%204.96309%2013.1734%204.49931%2012.4095%204.18289C11.6456%203.86647%2010.8269%203.70361%2010%203.70361L10%209.99991H16.2963Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",progress50:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M10%2016.2962C11.6699%2016.2962%2013.2714%2015.6328%2014.4522%2014.4521C15.633%2013.2713%2016.2963%2011.6698%2016.2963%209.99991C16.2963%208.33003%2015.633%206.72854%2014.4522%205.54776C13.2714%204.36697%2011.6699%203.70361%2010%203.70361L10%209.99991L10%2016.2962Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",progress75:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M3.70374%209.99991C3.70374%2011.2452%204.07301%2012.4625%204.76485%2013.4979C5.4567%2014.5334%206.44005%2015.3404%207.59054%2015.8169C8.74104%2016.2935%2010.007%2016.4182%2011.2284%2016.1752C12.4497%2015.9323%2013.5716%2015.3326%2014.4522%2014.4521C15.3327%2013.5715%2015.9324%2012.4496%2016.1753%2011.2283C16.4183%2010.0069%2016.2936%208.74092%2015.8171%207.59042C15.3405%206.43992%2014.5335%205.45658%2013.4981%204.76473C12.4626%204.07288%2011.2453%203.70361%2010%203.70361L10%209.99991L3.70374%209.99991Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",progress100:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99991%22%20r%3D%226.2963%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A"},signal:{signal0:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A",signal25:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",signal50:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",signal75:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",signal100:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93933%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70447%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A"},feeling:{guffaw:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M16.887%2010C16.887%2013.8037%2013.8036%2016.8871%209.99999%2016.8871C6.19638%2016.8871%203.11295%2013.8037%203.11295%2010C3.11295%206.19644%206.19638%203.11301%209.99999%203.11301C13.8036%203.11301%2016.887%206.19644%2016.887%2010Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M12.5355%2013.5821C13.0482%2013.1841%2013.3951%2012.6107%2013.5405%2012.0327C13.5934%2011.8226%2013.5051%2011.6349%2013.3518%2011.5331C13.2036%2011.4346%2013.0031%2011.4203%2012.8265%2011.5131C11.0615%2012.4407%208.94609%2012.4427%207.1828%2011.513C7.00629%2011.4199%206.80602%2011.4343%206.65798%2011.5329C6.50518%2011.6346%206.41701%2011.8217%206.46844%2012.0312C6.61029%2012.609%206.95079%2013.1833%207.46449%2013.5821C8.14361%2014.1093%209.05608%2014.3999%2010%2014.3999C10.9439%2014.3999%2011.8564%2014.1093%2012.5355%2013.5821Z%22%20fill%3D%22white%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.4%22%2F%3E%0A%3C%2Fsvg%3E%0A",smile:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2011.8518C7.03705%2011.8518%207.77779%2013.7037%2010%2013.7037C12.2222%2013.7037%2012.963%2011.8518%2012.963%2011.8518%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",noninductive:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.9259%22%20width%3D%221.48148%22%20height%3D%221.11111%22%20rx%3D%220.555556%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.9259%22%20width%3D%221.48148%22%20height%3D%221.11111%22%20rx%3D%220.555556%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2012.5927C7.03705%2012.5927%208.14816%2012.5927%2010.3704%2012.5927C12.5926%2012.5927%2012.963%2012.5927%2012.963%2012.5927%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",dissatisfied:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2013.7037C7.03705%2013.7037%207.77779%2011.8519%2010%2011.8519C12.2222%2011.8519%2012.963%2013.7037%2012.963%2013.7037%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",impatient:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.47573%2011.731C6.96306%2012.129%206.61613%2012.7024%206.47071%2013.2804C6.41784%2013.4905%206.50617%2013.6782%206.65942%2013.78C6.80761%2013.8785%207.00813%2013.8928%207.18477%2013.8C8.9498%2012.8724%2011.0652%2012.8704%2012.8285%2013.8002C13.005%2013.8932%2013.2052%2013.8788%2013.3533%2013.7802C13.5061%2013.6785%2013.5942%2013.4914%2013.5428%2013.2819C13.401%2012.7041%2013.0605%2012.1298%2012.5468%2011.731C11.8676%2011.2038%2010.9552%2010.9132%2010.0112%2010.9132C9.06732%2010.9132%208.15485%2011.2038%207.47573%2011.731Z%22%20fill%3D%22white%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.4%22%2F%3E%0A%3C%2Fsvg%3E%0A"},arrow:{"down-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.90467%203.99244C8.84611%204.1338%208.84611%204.31301%208.84611%204.67143V13.716L5.92068%2010.7906C5.66724%2010.5371%205.54052%2010.4104%205.39916%2010.3519C5.21067%2010.2738%204.9989%2010.2738%204.81041%2010.3519C4.66905%2010.4104%204.54233%2010.5371%204.28889%2010.7906C4.03545%2011.044%203.90873%2011.1707%203.85018%2011.3121C3.77211%2011.5006%203.77211%2011.7124%203.85018%2011.9008C3.90873%2012.0422%204.03545%2012.1689%204.28889%2012.4224L9.03476%2017.1682C9.07839%2017.2127%209.12737%2017.2617%209.18231%2017.3166L9.18239%2017.3167L9.18241%2017.3167C9.40545%2017.5398%209.53035%2017.6647%209.65346%2017.7313C9.67085%2017.7408%209.6882%2017.7492%209.70577%2017.7564C9.89425%2017.8345%2010.106%2017.8345%2010.2945%2017.7564C10.4359%2017.6979%2010.5626%2017.5712%2010.816%2017.3177C10.8986%2017.2352%2010.9677%2017.1661%2011.0253%2017.1056L15.7095%2012.4214L15.7095%2012.4213C15.963%2012.1679%2016.0897%2012.0412%2016.1482%2011.8998C16.2263%2011.7114%2016.2263%2011.4996%2016.1482%2011.3111C16.0897%2011.1697%2015.963%2011.043%2015.7095%2010.7896C15.4561%2010.5361%2015.3294%2010.4094%2015.188%2010.3509C14.9995%2010.2728%2014.7878%2010.2728%2014.5993%2010.3509C14.4579%2010.4094%2014.3312%2010.5361%2014.0778%2010.7896L14.0777%2010.7896L11.1538%2013.7135V4.67142C11.1538%204.31301%2011.1538%204.1338%2011.0953%203.99244C11.0172%203.80395%2010.8674%203.6542%2010.6789%203.57613C10.5376%203.51758%2010.3584%203.51758%209.99996%203.51758C9.64154%203.51758%209.46233%203.51758%209.32097%203.57613C9.13249%203.6542%208.98274%203.80395%208.90467%203.99244Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","right-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.32508%2011.7609C3.46644%2011.8194%203.64565%2011.8194%204.00407%2011.8194H13.049L10.1235%2014.745C9.87002%2014.9984%209.7433%2015.1251%209.68475%2015.2665C9.60668%2015.455%209.60668%2015.6668%209.68475%2015.8552C9.7433%2015.9966%209.87002%2016.1233%2010.1235%2016.3768C10.3769%2016.6302%2010.5036%2016.7569%2010.645%2016.8155C10.8335%2016.8935%2011.0452%2016.8935%2011.2337%2016.8155C11.3751%2016.7569%2011.5018%2016.6302%2011.7552%2016.3768L16.5105%2011.6215C16.5524%2011.5803%2016.5983%2011.5344%2016.6493%2011.4834L16.6495%2011.4831C16.8561%2011.2765%2016.9785%2011.1542%2017.0484%2011.0394C17.0648%2011.0128%2017.0782%2010.9866%2017.0893%2010.9599C17.1674%2010.7714%2017.1674%2010.5596%2017.0893%2010.3711C17.0308%2010.2298%2016.904%2010.1031%2016.6506%209.84962C16.5685%209.76752%2016.4997%209.69872%2016.4394%209.64123L11.7542%204.95601C11.5007%204.70257%2011.374%204.57585%2011.2327%204.5173C11.0442%204.43923%2010.8324%204.43923%2010.6439%204.5173C10.5026%204.57585%2010.3758%204.70257%2010.1224%204.95601L10.1224%204.95601C9.86895%205.20945%209.74223%205.33617%209.68368%205.47753C9.60561%205.66601%209.60561%205.87779%209.68368%206.06627C9.74223%206.20764%209.86895%206.33436%2010.1224%206.5878L13.0463%209.51175H4.00407C3.64565%209.51175%203.46644%209.51175%203.32508%209.5703C3.1366%209.64837%202.98685%209.79812%202.90877%209.98661C2.85022%2010.128%202.85022%2010.3072%202.85022%2010.6656C2.85022%2011.024%202.85022%2011.2032%202.90877%2011.3446C2.98685%2011.5331%203.1366%2011.6828%203.32508%2011.7609Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","up-green":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.0936%2017.3406C11.1522%2017.1992%2011.1522%2017.02%2011.1522%2016.6616V7.61701L14.0776%2010.5424C14.3311%2010.7959%2014.4578%2010.9226%2014.5991%2010.9811C14.7876%2011.0592%2014.9994%2011.0592%2015.1879%2010.9811C15.3292%2010.9226%2015.456%2010.7959%2015.7094%2010.5424C15.9628%2010.289%2016.0896%2010.1623%2016.1481%2010.0209C16.2262%209.83243%2016.2262%209.62066%2016.1481%209.43217C16.0896%209.29081%2015.9628%209.16409%2015.7094%208.91065L10.9645%204.16576C10.9207%204.12105%2010.8714%204.07178%2010.8161%204.01648L10.8159%204.0163C10.5916%203.792%2010.4666%203.66696%2010.3428%203.60058C10.3261%203.59154%2010.3094%203.58358%2010.2925%203.57658C10.104%203.49851%209.89226%203.49851%209.70378%203.57658C9.56242%203.63514%209.4357%203.76186%209.18226%204.0153C9.09955%204.09801%209.03034%204.16722%208.97258%204.22785L4.28878%208.91166C4.03534%209.1651%203.90862%209.29182%203.85006%209.43318C3.77199%209.62166%203.77199%209.83344%203.85006%2010.0219C3.90862%2010.1633%204.03534%2010.29%204.28878%2010.5434C4.54221%2010.7969%204.66893%2010.9236%204.8103%2010.9822C4.99878%2011.0602%205.21056%2011.0602%205.39904%2010.9822C5.5404%2010.9236%205.66712%2010.7969%205.92056%2010.5434L5.92056%2010.5434L8.84449%207.61951V16.6616C8.84449%2017.02%208.84449%2017.1992%208.90305%2017.3406C8.98112%2017.5291%209.13087%2017.6788%209.31935%2017.7569C9.46072%2017.8154%209.63992%2017.8154%209.99834%2017.8154C10.3568%2017.8154%2010.536%2017.8154%2010.6773%2017.7569C10.8658%2017.6788%2011.0156%2017.5291%2011.0936%2017.3406Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndDown-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.5062%206.72126C4.56476%206.86262%204.69148%206.98934%204.94492%207.24278L11.3404%2013.6382L7.20313%2013.6382C6.84471%2013.6382%206.66551%2013.6382%206.52414%2013.6968C6.33566%2013.7749%206.18591%2013.9246%206.10784%2014.1131C6.04928%2014.2545%206.04928%2014.4337%206.04928%2014.7921C6.04928%2015.1505%206.04928%2015.3297%206.10784%2015.4711C6.18591%2015.6596%206.33566%2015.8093%206.52414%2015.8874C6.66551%2015.9459%206.84471%2015.9459%207.20313%2015.9459L13.9194%2015.9459C13.9805%2015.9465%2014.0484%2015.9465%2014.1243%2015.9465H14.1243C14.4353%2015.9465%2014.6114%2015.9465%2014.7449%2015.9082C14.7659%2015.9023%2014.7859%2015.8954%2014.8052%2015.8874C14.9937%2015.8093%2015.1434%2015.6596%2015.2215%2015.4711C15.2801%2015.3297%2015.2801%2015.1505%2015.2801%2014.7921C15.2801%2014.6767%2015.2801%2014.5799%2015.2781%2014.497L15.2781%207.86957C15.2781%207.51115%2015.2781%207.33194%2015.2195%207.19058C15.1415%207.0021%2014.9917%206.85235%2014.8032%206.77428C14.6619%206.71572%2014.4827%206.71572%2014.1243%206.71572C13.7658%206.71572%2013.5866%206.71572%2013.4453%206.77428C13.2568%206.85235%2013.107%207.0021%2013.029%207.19058C12.9704%207.33194%2012.9704%207.51115%2012.9704%207.86957L12.9704%2012.0047L6.5767%205.61099C6.32326%205.35755%206.19654%205.23083%206.05518%205.17228C5.8667%205.09421%205.65492%205.09421%205.46644%205.17228C5.32508%205.23083%205.19836%205.35755%204.94492%205.61099C4.69148%205.86443%204.56476%205.99115%204.5062%206.13251C4.42813%206.32099%204.42813%206.53277%204.5062%206.72126Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndUp-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.05431%2016.1597C6.19567%2016.1012%206.32239%2015.9745%206.57583%2015.721L12.9712%209.32568L12.9712%2013.4626C12.9712%2013.821%2012.9712%2014.0002%2013.0297%2014.1416C13.1078%2014.3301%2013.2576%2014.4798%2013.446%2014.5579C13.5874%2014.6164%2013.7666%2014.6164%2014.125%2014.6164C14.4834%2014.6164%2014.6626%2014.6164%2014.804%2014.5579C14.9925%2014.4798%2015.1422%2014.3301%2015.2203%2014.1416C15.2789%2014.0002%2015.2789%2013.821%2015.2789%2013.4626L15.2789%206.75233C15.2795%206.68972%2015.2795%206.62004%2015.2795%206.54182L15.2795%206.54157C15.2795%206.22585%2015.2795%206.04918%2015.2395%205.91495C15.2339%205.89605%2015.2276%205.878%2015.2203%205.86053C15.1422%205.67204%2014.9925%205.52229%2014.804%205.44422C14.6626%205.38567%2014.4834%205.38567%2014.125%205.38567L14.125%205.38567C14.0075%205.38567%2013.9093%205.38567%2013.8254%205.38773L7.20256%205.38773C6.84414%205.38773%206.66493%205.38773%206.52357%205.44628C6.33509%205.52436%206.18534%205.6741%206.10727%205.86259C6.04871%206.00395%206.04871%206.18315%206.04871%206.54156V6.54157L6.04871%206.54159C6.04871%206.9%206.04871%207.0792%206.10727%207.22056C6.18534%207.40905%206.33509%207.55879%206.52357%207.63687C6.66493%207.69542%206.84414%207.69542%207.20256%207.69542H11.3379L4.94405%2014.0892C4.69061%2014.3427%204.56389%2014.4694%204.50533%2014.6108C4.42726%2014.7992%204.42726%2015.011%204.50533%2015.1995C4.56389%2015.3409%204.69061%2015.4676%204.94405%2015.721C5.19749%2015.9745%205.32421%2016.1012%205.46557%2016.1597C5.65405%2016.2378%205.86583%2016.2378%206.05431%2016.1597Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","down-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.90467%203.99244C8.84611%204.1338%208.84611%204.31301%208.84611%204.67143V13.716L5.92068%2010.7906C5.66724%2010.5371%205.54052%2010.4104%205.39916%2010.3519C5.21067%2010.2738%204.9989%2010.2738%204.81041%2010.3519C4.66905%2010.4104%204.54233%2010.5371%204.28889%2010.7906C4.03545%2011.044%203.90873%2011.1707%203.85018%2011.3121C3.77211%2011.5006%203.77211%2011.7124%203.85018%2011.9008C3.90873%2012.0422%204.03545%2012.1689%204.28889%2012.4224L9.03476%2017.1682C9.07839%2017.2127%209.12737%2017.2617%209.18231%2017.3166L9.18239%2017.3167L9.18241%2017.3167C9.40545%2017.5398%209.53035%2017.6647%209.65346%2017.7313C9.67085%2017.7408%209.6882%2017.7492%209.70577%2017.7564C9.89425%2017.8345%2010.106%2017.8345%2010.2945%2017.7564C10.4359%2017.6979%2010.5626%2017.5712%2010.816%2017.3177C10.8986%2017.2352%2010.9677%2017.1661%2011.0253%2017.1056L15.7095%2012.4214L15.7095%2012.4213C15.963%2012.1679%2016.0897%2012.0412%2016.1482%2011.8998C16.2263%2011.7114%2016.2263%2011.4996%2016.1482%2011.3111C16.0897%2011.1697%2015.963%2011.043%2015.7095%2010.7896C15.4561%2010.5361%2015.3294%2010.4094%2015.188%2010.3509C14.9995%2010.2728%2014.7878%2010.2728%2014.5993%2010.3509C14.4579%2010.4094%2014.3312%2010.5361%2014.0778%2010.7896L14.0777%2010.7896L11.1538%2013.7135V4.67142C11.1538%204.31301%2011.1538%204.1338%2011.0953%203.99244C11.0172%203.80395%2010.8674%203.6542%2010.6789%203.57613C10.5376%203.51758%2010.3584%203.51758%209.99996%203.51758C9.64154%203.51758%209.46233%203.51758%209.32097%203.57613C9.13249%203.6542%208.98274%203.80395%208.90467%203.99244Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","right-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.32508%2011.7609C3.46644%2011.8194%203.64565%2011.8194%204.00407%2011.8194H13.049L10.1235%2014.745C9.87002%2014.9984%209.7433%2015.1251%209.68475%2015.2665C9.60668%2015.455%209.60668%2015.6668%209.68475%2015.8552C9.7433%2015.9966%209.87002%2016.1233%2010.1235%2016.3768C10.3769%2016.6302%2010.5036%2016.7569%2010.645%2016.8155C10.8335%2016.8935%2011.0452%2016.8935%2011.2337%2016.8155C11.3751%2016.7569%2011.5018%2016.6302%2011.7552%2016.3768L16.5105%2011.6215C16.5524%2011.5803%2016.5983%2011.5344%2016.6493%2011.4834L16.6495%2011.4831C16.8561%2011.2765%2016.9785%2011.1542%2017.0484%2011.0394C17.0648%2011.0128%2017.0782%2010.9866%2017.0893%2010.9599C17.1674%2010.7714%2017.1674%2010.5596%2017.0893%2010.3711C17.0308%2010.2298%2016.904%2010.1031%2016.6506%209.84962C16.5685%209.76752%2016.4997%209.69872%2016.4394%209.64123L11.7542%204.95601C11.5007%204.70257%2011.374%204.57585%2011.2327%204.5173C11.0442%204.43923%2010.8324%204.43923%2010.6439%204.5173C10.5026%204.57585%2010.3758%204.70257%2010.1224%204.95601L10.1224%204.95601C9.86895%205.20945%209.74223%205.33617%209.68368%205.47753C9.60561%205.66601%209.60561%205.87779%209.68368%206.06627C9.74223%206.20764%209.86895%206.33436%2010.1224%206.5878L13.0463%209.51175H4.00407C3.64565%209.51175%203.46644%209.51175%203.32508%209.5703C3.1366%209.64837%202.98685%209.79812%202.90877%209.98661C2.85022%2010.128%202.85022%2010.3072%202.85022%2010.6656C2.85022%2011.024%202.85022%2011.2032%202.90877%2011.3446C2.98685%2011.5331%203.1366%2011.6828%203.32508%2011.7609Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","up-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.0936%2017.3406C11.1522%2017.1992%2011.1522%2017.02%2011.1522%2016.6616V7.61701L14.0776%2010.5424C14.3311%2010.7959%2014.4578%2010.9226%2014.5991%2010.9811C14.7876%2011.0592%2014.9994%2011.0592%2015.1879%2010.9811C15.3292%2010.9226%2015.456%2010.7959%2015.7094%2010.5424C15.9628%2010.289%2016.0896%2010.1623%2016.1481%2010.0209C16.2262%209.83243%2016.2262%209.62066%2016.1481%209.43217C16.0896%209.29081%2015.9628%209.16409%2015.7094%208.91065L10.9645%204.16576C10.9207%204.12105%2010.8714%204.07178%2010.8161%204.01648L10.8159%204.0163C10.5916%203.792%2010.4666%203.66696%2010.3428%203.60058C10.3261%203.59154%2010.3094%203.58358%2010.2925%203.57658C10.104%203.49851%209.89226%203.49851%209.70378%203.57658C9.56242%203.63514%209.4357%203.76186%209.18226%204.0153C9.09955%204.09801%209.03034%204.16722%208.97258%204.22785L4.28878%208.91166C4.03534%209.1651%203.90862%209.29182%203.85006%209.43318C3.77199%209.62166%203.77199%209.83344%203.85006%2010.0219C3.90862%2010.1633%204.03534%2010.29%204.28878%2010.5434C4.54221%2010.7969%204.66893%2010.9236%204.8103%2010.9822C4.99878%2011.0602%205.21056%2011.0602%205.39904%2010.9822C5.5404%2010.9236%205.66712%2010.7969%205.92056%2010.5434L5.92056%2010.5434L8.84449%207.61951V16.6616C8.84449%2017.02%208.84449%2017.1992%208.90305%2017.3406C8.98112%2017.5291%209.13087%2017.6788%209.31935%2017.7569C9.46072%2017.8154%209.63992%2017.8154%209.99834%2017.8154C10.3568%2017.8154%2010.536%2017.8154%2010.6773%2017.7569C10.8658%2017.6788%2011.0156%2017.5291%2011.0936%2017.3406Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndDown-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.5062%206.72126C4.56476%206.86262%204.69148%206.98934%204.94492%207.24278L11.3404%2013.6382L7.20313%2013.6382C6.84471%2013.6382%206.66551%2013.6382%206.52414%2013.6968C6.33566%2013.7749%206.18591%2013.9246%206.10784%2014.1131C6.04928%2014.2545%206.04928%2014.4337%206.04928%2014.7921C6.04928%2015.1505%206.04928%2015.3297%206.10784%2015.4711C6.18591%2015.6596%206.33566%2015.8093%206.52414%2015.8874C6.66551%2015.9459%206.84471%2015.9459%207.20313%2015.9459L13.9194%2015.9459C13.9805%2015.9465%2014.0484%2015.9465%2014.1243%2015.9465H14.1243C14.4353%2015.9465%2014.6114%2015.9465%2014.7449%2015.9082C14.7659%2015.9023%2014.7859%2015.8954%2014.8052%2015.8874C14.9937%2015.8093%2015.1434%2015.6596%2015.2215%2015.4711C15.2801%2015.3297%2015.2801%2015.1505%2015.2801%2014.7921C15.2801%2014.6767%2015.2801%2014.5799%2015.2781%2014.497L15.2781%207.86957C15.2781%207.51115%2015.2781%207.33194%2015.2195%207.19058C15.1415%207.0021%2014.9917%206.85235%2014.8032%206.77428C14.6619%206.71572%2014.4827%206.71572%2014.1243%206.71572C13.7658%206.71572%2013.5866%206.71572%2013.4453%206.77428C13.2568%206.85235%2013.107%207.0021%2013.029%207.19058C12.9704%207.33194%2012.9704%207.51115%2012.9704%207.86957L12.9704%2012.0047L6.5767%205.61099C6.32326%205.35755%206.19654%205.23083%206.05518%205.17228C5.8667%205.09421%205.65492%205.09421%205.46644%205.17228C5.32508%205.23083%205.19836%205.35755%204.94492%205.61099C4.69148%205.86443%204.56476%205.99115%204.5062%206.13251C4.42813%206.32099%204.42813%206.53277%204.5062%206.72126Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndUp-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.05431%2016.1597C6.19567%2016.1012%206.32239%2015.9745%206.57583%2015.721L12.9712%209.32568L12.9712%2013.4626C12.9712%2013.821%2012.9712%2014.0002%2013.0297%2014.1416C13.1078%2014.3301%2013.2576%2014.4798%2013.446%2014.5579C13.5874%2014.6164%2013.7666%2014.6164%2014.125%2014.6164C14.4834%2014.6164%2014.6626%2014.6164%2014.804%2014.5579C14.9925%2014.4798%2015.1422%2014.3301%2015.2203%2014.1416C15.2789%2014.0002%2015.2789%2013.821%2015.2789%2013.4626L15.2789%206.75233C15.2795%206.68972%2015.2795%206.62004%2015.2795%206.54182L15.2795%206.54157C15.2795%206.22585%2015.2795%206.04918%2015.2395%205.91495C15.2339%205.89605%2015.2276%205.878%2015.2203%205.86053C15.1422%205.67204%2014.9925%205.52229%2014.804%205.44422C14.6626%205.38567%2014.4834%205.38567%2014.125%205.38567L14.125%205.38567C14.0075%205.38567%2013.9093%205.38567%2013.8254%205.38773L7.20256%205.38773C6.84414%205.38773%206.66493%205.38773%206.52357%205.44628C6.33509%205.52436%206.18534%205.6741%206.10727%205.86259C6.04871%206.00395%206.04871%206.18315%206.04871%206.54156V6.54157L6.04871%206.54159C6.04871%206.9%206.04871%207.0792%206.10727%207.22056C6.18534%207.40905%206.33509%207.55879%206.52357%207.63687C6.66493%207.69542%206.84414%207.69542%207.20256%207.69542H11.3379L4.94405%2014.0892C4.69061%2014.3427%204.56389%2014.4694%204.50533%2014.6108C4.42726%2014.7992%204.42726%2015.011%204.50533%2015.1995C4.56389%2015.3409%204.69061%2015.4676%204.94405%2015.721C5.19749%2015.9745%205.32421%2016.1012%205.46557%2016.1597C5.65405%2016.2378%205.86583%2016.2378%206.05431%2016.1597Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A"},shape:{cross:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%223.70374%22%20y%3D%228.14795%22%20width%3D%2212.5926%22%20height%3D%223.7037%22%20rx%3D%220.740741%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",up:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M9.44533%205.81157C9.74012%205.47858%2010.2598%205.47858%2010.5546%205.81157L16.2868%2012.2867C16.71%2012.7647%2016.3706%2013.5184%2015.7322%2013.5184H4.26776C3.62933%2013.5184%203.28995%2012.7647%203.71313%2012.2867L9.44533%205.81157Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A",down:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.5547%2014.1884C10.2599%2014.5214%209.74019%2014.5214%209.4454%2014.1884L3.71321%207.71335C3.29002%207.23532%203.6294%206.48161%204.26784%206.48161L15.7322%206.48161C16.3707%206.48161%2016.7101%207.23532%2016.2869%207.71335L10.5547%2014.1884Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","rhomboid-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M2.1415%2011.1984C1.8412%2010.9074%201.8412%2010.4256%202.1415%2010.1346L9.48467%203.01785C9.77196%202.73942%2010.2284%202.73942%2010.5157%203.01786L17.8586%2010.1346C18.1589%2010.4256%2018.1589%2010.9074%2017.8586%2011.1984L10.5157%2018.3151C10.2284%2018.5936%209.77196%2018.5936%209.48467%2018.3152L2.1415%2011.1984Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","rhomboid-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M2.1415%2011.1984C1.8412%2010.9074%201.8412%2010.4256%202.1415%2010.1346L9.48467%203.01785C9.77196%202.73942%2010.2284%202.73942%2010.5157%203.01786L17.8586%2010.1346C18.1589%2010.4256%2018.1589%2010.9074%2017.8586%2011.1984L10.5157%2018.3151C10.2284%2018.5936%209.77196%2018.5936%209.48467%2018.3152L2.1415%2011.1984Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-greed":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-pink":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FB9D9D%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-black":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22black%22%2F%3E%0A%3C%2Fsvg%3E%0A","triangle-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_237)%22%3E%0A%3Cpath%20d%3D%22M9.32308%204.41301C9.58368%203.82623%2010.4164%203.82623%2010.677%204.413L15.9526%2016.2917C16.1701%2016.7815%2015.8115%2017.3331%2015.2756%2017.3331H4.72454C4.18858%2017.3331%203.83002%2016.7815%204.04756%2016.2917L9.32308%204.41301Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_237%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%20transform%3D%22translate(0%200.666504)%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A","indicate-greed":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","indicate-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","indicate-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A"},feedback2:{mistake2:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.12194%206.33702C4.1805%206.47839%204.30722%206.6051%204.56066%206.85854L8.36822%2010.6661L4.56062%2014.4737C4.30718%2014.7272%204.18046%2014.8539%204.12191%2014.9952C4.04384%2015.1837%204.04384%2015.3955%204.12191%2015.584C4.18046%2015.7253%204.30718%2015.8521%204.56062%2016.1055C4.81406%2016.3589%204.94078%2016.4857%205.08214%2016.5442C5.27062%2016.6223%205.4824%2016.6223%205.67089%2016.5442C5.81225%2016.4857%205.93897%2016.3589%206.19241%2016.1055L10%2012.2979L13.8074%2016.1053C14.0609%2016.3588%2014.1876%2016.4855%2014.329%2016.544C14.5174%2016.6221%2014.7292%2016.6221%2014.9177%2016.544C15.0591%2016.4855%2015.1858%2016.3588%2015.4392%2016.1053L15.4392%2016.1053C15.6927%2015.8519%2015.8194%2015.7252%2015.8779%2015.5838C15.956%2015.3953%2015.956%2015.1835%2015.8779%2014.9951C15.8194%2014.8537%2015.6927%2014.727%2015.4392%2014.4735L15.4392%2014.4735L11.6318%2010.6661L15.4392%206.85872C15.6926%206.60528%2015.8193%206.47856%2015.8779%206.3372C15.956%206.14871%2015.956%205.93694%2015.8779%205.74845C15.8193%205.60709%2015.6926%205.48037%2015.4392%205.22693C15.1857%204.97349%2015.059%204.84677%2014.9177%204.78822C14.7292%204.71015%2014.5174%204.71015%2014.3289%204.78822C14.1876%204.84677%2014.0608%204.97349%2013.8074%205.22693L10%209.03433L6.19244%205.22676C5.939%204.97332%205.81228%204.8466%205.67092%204.78805C5.48244%204.70997%205.27066%204.70997%205.08218%204.78805C4.94082%204.8466%204.8141%204.97332%204.56066%205.22676L4.56066%205.22676C4.30722%205.4802%204.1805%205.60692%204.12194%205.74828C4.04387%205.93676%204.04387%206.14854%204.12194%206.33702Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A",warn2:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M8.49778%205.00963C8.48513%204.56774%208.47881%204.3468%208.56086%204.17746C8.63301%204.02856%208.75124%203.90689%208.89802%203.83052C9.06494%203.74365%209.28597%203.74365%209.72805%203.74365H10.272C10.714%203.74365%2010.9351%203.74365%2011.102%203.83052C11.2488%203.9069%2011.367%204.02856%2011.4392%204.17746C11.5212%204.3468%2011.5149%204.56775%2011.5022%205.00964L11.2644%2013.3173C11.2524%2013.737%2011.2464%2013.9468%2011.1609%2014.1065C11.0857%2014.2471%2010.9687%2014.3609%2010.826%2014.432C10.6639%2014.5129%2010.454%2014.5129%2010.0342%2014.5129H9.96582C9.54601%2014.5129%209.33611%2014.5129%209.17397%2014.432C9.0313%2014.3609%208.91426%2014.2471%208.83904%2014.1065C8.75357%2013.9468%208.74756%2013.737%208.73555%2013.3173L8.49778%205.00963Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3Crect%20x%3D%228.76917%22%20y%3D%2215.2817%22%20width%3D%222.46154%22%20height%3D%222.46154%22%20rx%3D%220.769231%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",correct2:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_248)%22%3E%0A%3Cpath%20d%3D%22M15.689%205.69723C15.5476%205.75578%2015.4209%205.8825%2015.1675%206.13594L7.82436%2013.4791L4.83279%2010.4875C4.57935%2010.2341%204.45263%2010.1073%204.31127%2010.0488C4.12278%209.97071%203.91101%209.97071%203.72252%2010.0488C3.58116%2010.1073%203.45444%2010.2341%203.201%2010.4875C2.94756%2010.7409%202.82084%2010.8676%202.76229%2011.009C2.68422%2011.1975%202.68422%2011.4093%202.76229%2011.5978C2.82084%2011.7391%202.94756%2011.8658%203.201%2012.1193L7.0085%2015.9268C7.26194%2016.1802%207.38866%2016.3069%207.53002%2016.3655C7.7185%2016.4436%207.93028%2016.4436%208.11876%2016.3655C8.26013%2016.3069%208.38685%2016.1802%208.64028%2015.9268C8.66387%2015.9032%208.68636%2015.8807%208.7078%2015.8592L16.7993%207.76772C17.0527%207.51428%2017.1794%207.38756%2017.238%207.2462C17.3161%207.05772%2017.3161%206.84594%2017.238%206.65746C17.1794%206.5161%2017.0527%206.38938%2016.7993%206.13594C16.5458%205.8825%2016.4191%205.75578%2016.2777%205.69723C16.0893%205.61915%2015.8775%205.61915%2015.689%205.69723Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_248%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%20transform%3D%22translate(0%200.666504)%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A"},flag:{"flag-green":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","flag-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","flag-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A"},cell:{"cell-0":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A","cell-25":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A","cell-50":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A","cell-75":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A","cell-100":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A"}},N2=[{title:"sheet.cf.iconSet.direction",group:[{name:"3Arrows",list:[F.arrow["up-green"],F.arrow["right-gold"],F.arrow["down-red"]]},{name:"3ArrowsGray",list:[F.arrow["up-gray"],F.arrow["right-gray"],F.arrow["down-gray"]]},{name:"4Arrows",list:[F.arrow["up-green"],F.arrow["rightAndUp-gold"],F.arrow["rightAndDown-gold"],F.arrow["down-red"]]},{name:"4ArrowsGray",list:[F.arrow["up-gray"],F.arrow["rightAndUp-gray"],F.arrow["rightAndDown-gray"],F.arrow["down-gray"]]},{name:"5Arrows",list:[F.arrow["up-green"],F.arrow["rightAndUp-gold"],F.arrow["right-gold"],F.arrow["rightAndDown-gold"],F.arrow["down-red"]]},{name:"5ArrowsGray",list:[F.arrow["up-gray"],F.arrow["rightAndUp-gray"],F.arrow["right-gray"],F.arrow["rightAndDown-gray"],F.arrow["down-gray"]]},{name:"3Triangles",list:[F.shape.up,F.shape.cross,F.shape.down]}]},{title:"sheet.cf.iconSet.shape",group:[{name:"3TrafficLights1",list:[F.shape["roundness-greed"],F.shape["roundness-gold"],F.shape["roundness-red"]]},{name:"3Signs",list:[F.shape["roundness-greed"],F.shape["triangle-gold"],F.shape["rhomboid-red"]]},{name:"3TrafficLights2",list:[F.shape["indicate-greed"],F.shape["indicate-gold"],F.shape["indicate-red"]]},{name:"4RedToBlack",list:[F.shape["roundness-red"],F.shape["roundness-pink"],F.shape["roundness-gray"],F.shape["roundness-black"]]},{name:"4TrafficLights",list:[F.shape["roundness-greed"],F.shape["roundness-gold"],F.shape["roundness-red"],F.shape["roundness-black"]]}]},{title:"sheet.cf.iconSet.mark",group:[{name:"3Symbols",list:[F.feedback.correct,F.feedback.warn,F.feedback.mistake]},{name:"3Symbols2",list:[F.feedback2.correct2,F.feedback2.warn2,F.feedback2.mistake2]},{name:"3Flags",list:[F.flag["flag-green"],F.flag["flag-gold"],F.flag["flag-red"]]}]},{title:"sheet.cf.iconSet.rank",group:[{name:"4Rating",list:[F.signal.signal25,F.signal.signal50,F.signal.signal75,F.signal.signal100]},{name:"5Rating",list:[F.signal.signal0,F.signal.signal25,F.signal.signal50,F.signal.signal75,F.signal.signal100]},{name:"5Quarters",list:[F.progress.progress100,F.progress.progress75,F.progress.progress50,F.progress.progress25,F.progress.progress0]},{name:"_5Felling",list:[F.feeling.guffaw,F.feeling.smile,F.feeling.noninductive,F.feeling.dissatisfied,F.feeling.impatient]},{name:"5Boxes",list:[F.cell["cell-100"],F.cell["cell-75"],F.cell["cell-50"],F.cell["cell-25"],F.cell["cell-0"]]},{name:"3Stars",list:[F.star.starFull,F.star.starIncomplete,F.star.starEmpty]}]}],m2=N2.reduce((s,r)=>{const{group:t}=r;for(const e of t)s[e.name]=e.list;return s},{});for(const s in m2){const r=m2[s];Object.freeze(r)}const j2="EMPTY_ICON_TYPE",_2={type:g.CommandType.MUTATION,id:"sheet.mutation.move-conditional-rule",handler(s,r){if(!r)return!1;const{unitId:t,subUnitId:e,start:n,end:i}=r;return s.get(f.ConditionalFormattingRuleModel).moveRulePriority(t,e,n,i),!0}},d0=s=>{const{unitId:r,subUnitId:t}=s,e=V2(s.start,s.end);if(!e)return[];const[n,i]=e;return[{id:_2.id,params:{unitId:r,subUnitId:t,start:n,end:i}}]},P2=(s,r)=>{const t=s.get(f.ConditionalFormattingRuleModel),{unitId:e,subUnitId:n,cfId:i}=r,a=[...t.getSubunitRules(e,n)||[]],l=a.findIndex(u=>u.cfId===i),o=a[l-1];if(l>-1){const u=a[l],c=[{id:b2.id,params:{unitId:e,subUnitId:n,rule:g.Tools.deepClone(u)}}];if(a.splice(l,1),l!==0){const d=a[0];if(d){const D=U2({id:d.cfId,type:"before"},{id:o.cfId,type:"after"},a,w=>w.cfId);if(!D)return c;const[h,m]=D,C={unitId:e,subUnitId:n,start:h,end:m};c.push({id:_2.id,params:C})}}return c}return[]},y2={type:g.CommandType.MUTATION,id:"sheet.mutation.delete-conditional-rule",handler(s,r){if(!r)return!1;const{unitId:t,subUnitId:e,cfId:n}=r;return s.get(f.ConditionalFormattingRuleModel).deleteRule(t,e,n),!0}},h0=(s,r)=>({id:y2.id,params:{unitId:r.unitId,subUnitId:r.subUnitId,cfId:r.rule.cfId}}),b2={type:g.CommandType.MUTATION,id:"sheet.mutation.add-conditional-rule",handler(s,r){if(!r)return!1;const{unitId:t,subUnitId:e,rule:n}=r;return s.get(f.ConditionalFormattingRuleModel).addRule(t,e,n),!0}},F2={type:g.CommandType.MUTATION,id:"sheet.mutation.conditional-formatting-formula-mark-dirty",handler(){return!0}},I2={type:g.CommandType.MUTATION,id:"sheet.mutation.set-conditional-rule",handler(s,r){if(!r)return!1;const{unitId:t,subUnitId:e,rule:n}=r,i=r.cfId||r.rule.cfId;return s.get(f.ConditionalFormattingRuleModel).setRule(t,e,n,i),!0}},g0=(s,r)=>{const t=s.get(f.ConditionalFormattingRuleModel),{unitId:e,subUnitId:n}=r,i=r.cfId||r.rule.cfId,a=t.getRule(e,n,i);return a?[{id:I2.id,params:{unitId:e,subUnitId:n,cfId:i,rule:g.Tools.deepClone(a)}}]:[]},f0="ssheets-conditional-formatting.config",C0={};var D0=Object.defineProperty,m0=Object.getOwnPropertyDescriptor,F0=(s,r,t,e)=>{for(var n=e>1?void 0:e?m0(r,t):r,i=s.length-1,a;i>=0;i--)(a=s[i])&&(n=(e?a(r,t,n):a(n))||n);return e&&n&&D0(r,t,n),n},w2=(s,r)=>(t,e)=>r(t,e,s),j=(s=>(s[s.NOT_REGISTER=1]="NOT_REGISTER",s[s.SUCCESS=2]="SUCCESS",s[s.WAIT=3]="WAIT",s[s.ERROR=4]="ERROR",s))(j||{});const w0=s=>{const r=s&&s[0]&&s[0][0];return(r==null?void 0:r.t)===g.CellValueType.BOOLEAN?r.v===g.BooleanNumber.TRUE||r.v===!0:r?r.v:!1};f.ConditionalFormattingFormulaService=class extends g.Disposable{constructor(t,e,n,i,a){super();I(this,"_formulaMap",new Map);I(this,"_cache",new Map);this._commandService=t,this._injector=e,this._activeDirtyManagerService=n,this._conditionalFormattingViewModel=i,this._conditionalFormattingRuleModel=a,this._initFormulaCalculationResultChange(),this._initRuleChange(),this._initCache(),this.disposeWithMe(g.toDisposable(()=>{this._cache.clear(),this._formulaMap.clear()}))}_initCache(){const t=this._injector.get(f.ConditionalFormattingService);this.disposeWithMe(t.ruleComputeStatus$.subscribe(e=>{const{unitId:n,subUnitId:i,status:a,result:l,cfId:o}=e;a==="end"&&l&&this._ensureCacheMap(n,i).set(o,l)})),this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe(e=>{if(e.type==="delete"){const{unitId:n,subUnitId:i,rule:a}=e;this._deleteCache(n,i,a.cfId)}}))}_initRuleChange(){const t=e=>{switch(e.type){case W.colorScale:return e.config.some(n=>n.value.type===z.formula);case W.highlightCell:return e.subType===U.formula;case W.dataBar:return[e.config.max,e.config.min].some(n=>n.type===z.formula);case W.iconSet:return e.config.some(n=>n.value.type===z.formula)}};this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe(e=>{const{unitId:n,subUnitId:i,rule:a,oldRule:l}=e;e.type==="delete"&&this._removeFormulaByCfId(n,i,a.cfId),e.type==="set"&&(t(a.rule)||l&&t(l.rule))&&this._removeFormulaByCfId(n,i,a.cfId)}))}_initFormulaCalculationResultChange(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(t.id===n2.SetFormulaCalculationResultMutation.id){const e=t.params;for(const n in e.unitOtherData)for(const i in e.unitOtherData[n]){const a=new Set;for(const l in e.unitOtherData[n][i]){const o=new g.ObjectMatrix(e.unitOtherData[n][i][l]),u=this._ensureSubunitFormulaMap(n,i).getValue(l,["formulaId"]);if(!u)continue;const c=u.ranges;if(!c)continue;const d=u.result,D=c[0].startRow,h=c[0].startColumn;o.forValue((m,C,w)=>{d.setValue(D+m,h+C,w0(w))}),u.status=2,a.add(u.cfId)}for(const l of a){const o=this._conditionalFormattingRuleModel.getRule(n,i,l);o&&this._conditionalFormattingViewModel.markRuleDirty(n,i,o)}}}})),this._activeDirtyManagerService.register(F2.id,{commandId:F2.id,getDirtyData(t){return{dirtyUnitOtherFormulaMap:t.params}}})}_ensureSubunitFormulaMap(t,e){let n=this._formulaMap.get(t);n||(n=new Map,this._formulaMap.set(t,n));let i=n.get(e);return i||(i=new g.RefAlias([],["formulaId","id"]),n.set(e,i)),i}_ensureCacheMap(t,e){let n=this._cache.get(t);n||(n=new Map,this._cache.set(t,n));let i=n.get(e);return i||(i=new Map,n.set(e,i)),i}_deleteCache(t,e,n){const i=this._cache.get(t);if(i){const a=i.get(e);a&&(n?a.delete(n):a.clear())}}getCache(t,e,n){return this._ensureCacheMap(t,e).get(n)}getSubUnitFormulaMap(t,e){var n;return(n=this._formulaMap.get(t))==null?void 0:n.get(e)}registerFormulaWithRange(t,e,n,i,a=[{startRow:0,endRow:0,startColumn:0,endColumn:0}]){const l=this._ensureSubunitFormulaMap(t,e);if(l.getValue(this.createCFormulaId(n,i),["id"]))return;const o=this._createFormulaId(t,e);l.addValue({formulaText:i,cfId:n,id:this.createCFormulaId(n,i),ranges:a,formulaId:o,status:3,result:new g.ObjectMatrix});const u={unitId:t,subUnitId:e,formulaMap:{[o]:{f:i,ranges:a}}};this._commandService.executeCommand(n2.SetOtherFormulaMutation.id,u).then(()=>{this._commandService.executeCommand(F2.id,{[t]:{[e]:{[o]:!0}}})})}_removeFormulaByCfId(t,e,n){const i=this._ensureSubunitFormulaMap(t,e);i.deleteValue(n);const a=i.getValues().filter(o=>o.cfId===n);a.forEach(o=>{i.deleteValue(o.id,["id"])});const l=a.map(o=>o.formulaId);this._commandService.executeCommand(n2.RemoveOtherFormulaMutation.id,{unitId:t,subUnitId:e,formulaIdList:l})}getFormulaResult(t,e,n,i,a=0,l=0){const o=this.getSubUnitFormulaMap(t,e);if(!o)return{status:1};const u=o.getValue(this.createCFormulaId(n,i),["id"]);return u?u.status===2&&u.result?{result:u.result.getValue(a,l),status:2}:u.status===3?{status:3}:{status:4}:{status:1}}_createFormulaId(t,e){return`sheet.cf_${t}_${e}_${g.Tools.generateRandomId(8)}`}createCFormulaId(t,e){return`${t}_${e}`}},f.ConditionalFormattingFormulaService=F0([w2(0,g.Inject(g.ICommandService)),w2(1,g.Inject(g.Injector)),w2(2,g.Inject(n2.IActiveDirtyManagerService)),w2(3,g.Inject(D2)),w2(4,g.Inject(f.ConditionalFormattingRuleModel))],f.ConditionalFormattingFormulaService);var v0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function E0(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var W2={exports:{}};(function(s,r){(function(t,e){s.exports=e()})(v0,function(){var t=1e3,e=6e4,n=36e5,i="millisecond",a="second",l="minute",o="hour",u="day",c="week",d="month",D="quarter",h="year",m="date",C="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var A=["th","st","nd","rd"],v=_%100;return"["+_+(A[(v-20)%10]||A[v]||A[0])+"]"}},b=function(_,A,v){var M=String(_);return!M||M.length>=A?_:""+Array(A+1-M.length).join(v)+_},k={s:b,z:function(_){var A=-_.utcOffset(),v=Math.abs(A),M=Math.floor(v/60),p=v%60;return(A<=0?"+":"-")+b(M,2,"0")+":"+b(p,2,"0")},m:function _(A,v){if(A.date()<v.date())return-_(v,A);var M=12*(v.year()-A.year())+(v.month()-A.month()),p=A.clone().add(M,d),y=v-p<0,x=A.clone().add(M+(y?-1:1),d);return+(-(M+(v-p)/(y?p-x:x-p))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:d,y:h,w:c,d:u,D:m,h:o,m:l,s:a,ms:i,Q:D}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},q="en",P={};P[q]=S;var f2="$isDayjsObject",s2=function(_){return _ instanceof X||!(!_||!_[f2])},o2=function _(A,v,M){var p;if(!A)return q;if(typeof A=="string"){var y=A.toLowerCase();P[y]&&(p=y),v&&(P[y]=v,p=y);var x=A.split("-");if(!p&&x.length>1)return _(x[0])}else{var L=A.name;P[L]=A,p=L}return!M&&p&&(q=p),p||!M&&q},B=function(_,A){if(s2(_))return _.clone();var v=typeof A=="object"?A:{};return v.date=_,v.args=arguments,new X(v)},R=k;R.l=o2,R.i=s2,R.w=function(_,A){return B(_,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var X=function(){function _(v){this.$L=o2(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[f2]=!0}var A=_.prototype;return A.parse=function(v){this.$d=function(M){var p=M.date,y=M.utc;if(p===null)return new Date(NaN);if(R.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var x=p.match(w);if(x){var L=x[2]-1||0,$=(x[7]||"0").substring(0,3);return y?new Date(Date.UTC(x[1],L,x[3]||1,x[4]||0,x[5]||0,x[6]||0,$)):new Date(x[1],L,x[3]||1,x[4]||0,x[5]||0,x[6]||0,$)}}return new Date(p)}(v),this.init()},A.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},A.$utils=function(){return R},A.isValid=function(){return this.$d.toString()!==C},A.isSame=function(v,M){var p=B(v);return this.startOf(M)<=p&&p<=this.endOf(M)},A.isAfter=function(v,M){return B(v)<this.startOf(M)},A.isBefore=function(v,M){return this.endOf(M)<B(v)},A.$g=function(v,M,p){return R.u(v)?this[M]:this.set(p,v)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(v,M){var p=this,y=!!R.u(M)||M,x=R.p(v),L=function(u2,Z){var a2=R.w(p.$u?Date.UTC(p.$y,Z,u2):new Date(p.$y,Z,u2),p);return y?a2:a2.endOf(u)},$=function(u2,Z){return R.w(p.toDate()[u2].apply(p.toDate("s"),(y?[0,0,0,0]:[23,59,59,999]).slice(Z)),p)},V=this.$W,N=this.$M,K=this.$D,C2="set"+(this.$u?"UTC":"");switch(x){case h:return y?L(1,0):L(31,11);case d:return y?L(1,N):L(0,N+1);case c:var c2=this.$locale().weekStart||0,A2=(V<c2?V+7:V)-c2;return L(y?K-A2:K+(6-A2),N);case u:case m:return $(C2+"Hours",0);case o:return $(C2+"Minutes",1);case l:return $(C2+"Seconds",2);case a:return $(C2+"Milliseconds",3);default:return this.clone()}},A.endOf=function(v){return this.startOf(v,!1)},A.$set=function(v,M){var p,y=R.p(v),x="set"+(this.$u?"UTC":""),L=(p={},p[u]=x+"Date",p[m]=x+"Date",p[d]=x+"Month",p[h]=x+"FullYear",p[o]=x+"Hours",p[l]=x+"Minutes",p[a]=x+"Seconds",p[i]=x+"Milliseconds",p)[y],$=y===u?this.$D+(M-this.$W):M;if(y===d||y===h){var V=this.clone().set(m,1);V.$d[L]($),V.init(),this.$d=V.set(m,Math.min(this.$D,V.daysInMonth())).$d}else L&&this.$d[L]($);return this.init(),this},A.set=function(v,M){return this.clone().$set(v,M)},A.get=function(v){return this[R.p(v)]()},A.add=function(v,M){var p,y=this;v=Number(v);var x=R.p(M),L=function(N){var K=B(y);return R.w(K.date(K.date()+Math.round(N*v)),y)};if(x===d)return this.set(d,this.$M+v);if(x===h)return this.set(h,this.$y+v);if(x===u)return L(1);if(x===c)return L(7);var $=(p={},p[l]=e,p[o]=n,p[a]=t,p)[x]||1,V=this.$d.getTime()+v*$;return R.w(V,this)},A.subtract=function(v,M){return this.add(-1*v,M)},A.format=function(v){var M=this,p=this.$locale();if(!this.isValid())return p.invalidDate||C;var y=v||"YYYY-MM-DDTHH:mm:ssZ",x=R.z(this),L=this.$H,$=this.$m,V=this.$M,N=p.weekdays,K=p.months,C2=p.meridiem,c2=function(Z,a2,M2,R2){return Z&&(Z[a2]||Z(M,y))||M2[a2].slice(0,R2)},A2=function(Z){return R.s(L%12||12,Z,"0")},u2=C2||function(Z,a2,M2){var R2=Z<12?"AM":"PM";return M2?R2.toLowerCase():R2};return y.replace(E,function(Z,a2){return a2||function(M2){switch(M2){case"YY":return String(M.$y).slice(-2);case"YYYY":return R.s(M.$y,4,"0");case"M":return V+1;case"MM":return R.s(V+1,2,"0");case"MMM":return c2(p.monthsShort,V,K,3);case"MMMM":return c2(K,V);case"D":return M.$D;case"DD":return R.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return c2(p.weekdaysMin,M.$W,N,2);case"ddd":return c2(p.weekdaysShort,M.$W,N,3);case"dddd":return N[M.$W];case"H":return String(L);case"HH":return R.s(L,2,"0");case"h":return A2(1);case"hh":return A2(2);case"a":return u2(L,$,!0);case"A":return u2(L,$,!1);case"m":return String($);case"mm":return R.s($,2,"0");case"s":return String(M.$s);case"ss":return R.s(M.$s,2,"0");case"SSS":return R.s(M.$ms,3,"0");case"Z":return x}return null}(Z)||x.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(v,M,p){var y,x=this,L=R.p(M),$=B(v),V=($.utcOffset()-this.utcOffset())*e,N=this-$,K=function(){return R.m(x,$)};switch(L){case h:y=K()/12;break;case d:y=K();break;case D:y=K()/3;break;case c:y=(N-V)/6048e5;break;case u:y=(N-V)/864e5;break;case o:y=N/n;break;case l:y=N/e;break;case a:y=N/t;break;default:y=N}return p?y:R.a(y)},A.daysInMonth=function(){return this.endOf(d).$D},A.$locale=function(){return P[this.$L]},A.locale=function(v,M){if(!v)return this.$L;var p=this.clone(),y=o2(v,M,!0);return y&&(p.$L=y),p},A.clone=function(){return R.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},_}(),t2=X.prototype;return B.prototype=t2,[["$ms",i],["$s",a],["$m",l],["$H",o],["$W",u],["$M",d],["$y",h],["$D",m]].forEach(function(_){t2[_[1]]=function(A){return this.$g(A,_[0],_[1])}}),B.extend=function(_,A){return _.$i||(_(A,X,B),_.$i=!0),B},B.locale=o2,B.isDayjs=s2,B.unix=function(_){return B(1e3*_)},B.en=P[q],B.Ls=P,B.p={},B})})(W2);var p0=W2.exports;const O=E0(p0);function v2(s,r){return Math.abs(s-r)<Number.EPSILON}const G=s=>[void 0,null].includes(s),e2=s=>{var e,n;if(!s)return null;if(s.t===g.CellValueType.BOOLEAN)return s.v===g.BooleanNumber.TRUE?n2.BooleanValue.TRUE:n2.BooleanValue.FALSE;const r=s.v,t=(n=(e=s.p)==null?void 0:e.body)==null?void 0:n.dataStream.replace(/\r\n$/,"");return G(r)?G(t)?null:t:r},L2=86400;function q2(s,r=!0){if(r&&s>=0){if(s===0)return[1900,1,0];if(s===60)return[1900,2,29];if(s<60)return[1900,s<32?1:2,(s-1)%31+1]}let t=s+68569+2415019;const e=Math.floor(4*t/146097);t=t-Math.floor((146097*e+3)/4);const n=Math.floor(4e3*(t+1)/1461001);t=t-Math.floor(1461*n/4)+31;const i=Math.floor(80*t/2447),a=t-Math.floor(2447*i/80);t=Math.floor(i/11);const l=i+2-12*t;return[100*(e-49)+n+t|0,l|0,a|0]}const Z2=s=>{let r=s|0;const t=L2*(s-r);let e=Math.floor(t);t-e>.9999&&(e+=1,e===L2&&(e=0,r+=1));const n=e<0?L2+e:e,[i,a,l]=q2(s,!0),o=Math.floor(n/60/60)%60,u=Math.floor(n/60)%60,c=Math.floor(n)%60;return O(`${i}/${a}/${l} ${o}:${u}:${c}`).valueOf()},E2=(s,r,t)=>{switch(s.type){case z.max:{let e=0;return r.forValue((n,i,a)=>{a>e&&(e=a)}),{status:j.SUCCESS,result:e}}case z.min:{let e;return r.forValue((n,i,a)=>{e===void 0&&(e=a),a<e&&(e=a)}),{status:j.SUCCESS,result:e}}case z.percent:{let e,n;r.forValue((l,o,u)=>{(e===void 0||n===void 0)&&(e=u,n=u),u>e&&(e=u),u<n&&(n=u)});const i=(e||0)-(n||0),a=Math.max(Math.min(Number(s.value)||0,100),0);return{status:j.SUCCESS,result:i*(a/100)+(n||0)}}case z.percentile:{const e=r.toNativeArray().sort((u,c)=>u-c),n=Math.max(Math.min(Number(s.value)||0,100),0),i=(e.length-1)*n/100,a=Math.floor(i),l=i-a,o=e[a]+(e[Math.min(a+1,e.length-1)]-e[a])*l;return{status:j.SUCCESS,result:o}}case z.formula:{const{accessor:e,unitId:n,subUnitId:i,cfId:a}=t,l=String(s.value),o=e.get(f.ConditionalFormattingFormulaService);return o.registerFormulaWithRange(n,i,a,l),o.getFormulaResult(n,i,a,l)}case z.num:{const e=Number(s.value);return{status:j.SUCCESS,result:Number.isNaN(e)?0:e}}}},A0=(s,r,t,e)=>{const{accessor:n}=e,i=n.get(D2),a=new g.ObjectMatrix;return t.ranges.forEach(l=>{g.Range.foreach(l,(o,u)=>{const c=i.getCellCf(s,r,o,u);if(c){const d=c.cfList.find(D=>D.cfId===t.cfId);d!=null&&d.ruleCache&&a.setValue(o,u,d.ruleCache)}})}),a},g2=(s,r)=>{switch(s.operator){case T.between:{if(typeof s.value!="object"||!s.value.length)return;const t=Math.min(...s.value),e=Math.max(...s.value);return r>=t&&r<=e}case T.notBetween:{if(typeof s.value!="object"||!s.value.length)return;const t=Math.min(...s.value),e=Math.max(...s.value);return!(r>=t&&r<=e)}case T.equal:{const t=s.value||0;return v2(t,r)}case T.notEqual:{const t=s.value||0;return!v2(t,r)}case T.greaterThan:{const t=s.value||0;return r>t}case T.greaterThanOrEqual:{const t=s.value||0;return r>=t}case T.lessThan:{const t=s.value||0;return r<t}case T.lessThanOrEqual:{const t=s.value||0;return r<=t}default:return!1}},Y2=s=>{switch(s){case T.greaterThan:return T.lessThanOrEqual;case T.greaterThanOrEqual:return T.lessThan;case T.lessThan:return T.greaterThanOrEqual;case T.lessThanOrEqual:return T.greaterThan}return s},H2=(s,r)=>{const t=i=>i.a!==void 0?i:{...i,a:1},e=s.findIndex(i=>i.value>=r),n=e-1;if(e===0)return s[0].color.toRgbString();if(n>=0){const i=s[n],a=s[e];if(i.color.isValid&&a.color.isValid){const l=t(i.color.toRgb()),o=t(a.color.toRgb()),u=a.value-i.value,c=(r-i.value)/u,d=["r","g","b","a"].reduce((h,m)=>{const C=l[m];return h[m]=(o[m]-C)*c+C,h},{});return new g.ColorKit(d).toRgbString()}}else return s[s.length-1].color.toRgbString()},p2=(s,r,t)=>s.map(e=>{if(e.startColumn>t||e.startRow>r)return null;const n={...e};return n.endRow=Math.min(n.endRow,r),n.endColumn=Math.min(n.endColumn,t),n}).filter(e=>!!e);function M0(s){let r=0;return new g.ObjectMatrix(s).forValue((t,e,n)=>{r=Math.max(Number.isNaN(r)?0:r,Number(n))}),r}const _0="",y0={type:W.colorScale,handle:async(s,r)=>{var d;const t=s.rule,e=r.accessor.get(f.ConditionalFormattingFormulaService),{worksheet:n}=r,i=new g.ObjectMatrix,a=p2(s.ranges,n.getMaxRows()-1,n.getMaxColumns()-1);a.forEach(D=>{g.Range.foreach(D,(h,m)=>{const C=n==null?void 0:n.getCellRaw(h,m),w=C&&C.v;if(!G(w)&&(C==null?void 0:C.t)===g.CellValueType.NUMBER){const E=Number(w);!Number.isNaN(E)&&i.setValue(h,m,E)}})});const l=new g.ObjectMatrix;a.forEach(D=>{g.Range.foreach(D,(h,m)=>{l.setValue(h,m,_0)})});const o=[...t.config].sort((D,h)=>D.index-h.index).map(D=>({value:E2(D.value,i,{...r,cfId:s.cfId}),color:new g.ColorKit(D.color)}));if(o.some(D=>h2.isObject(D.value)?D.value.status!==j.SUCCESS:!1))return(d=e.getCache(r.unitId,r.subUnitId,s.cfId))!=null?d:l;const c=o.map(D=>D.color).reduce((D,h,m)=>(D.result.push({color:h,value:D.sortValue[m]}),D),{result:[],sortValue:o.map(D=>D.value.result).sort((D,h)=>D-h)}).result;return c.length<=1||i.forValue((D,h,m)=>{const C=H2(c,m);C&&l.setValue(D,h,C)}),l}},G2="sheet-conditional-rule-data-bar",B2="#ffbe38",T2="#abd91a",x0=34;class X2 extends h2.SheetExtension{constructor(){super(...arguments);I(this,"_paddingRightAndLeft",2);I(this,"_paddingTopAndBottom",2);I(this,"uKey",G2);I(this,"Z_INDEX",x0);I(this,"_radius",1)}draw(t,e,n,i){const{worksheet:a}=n;if(!a)return!1;t.save(),g.Range.foreach(n.rowColumnSegment,(l,o)=>{if(!a.getRowVisible(l)||!a.getColVisible(o))return;const u=a.getCell(l,o);if(u&&u.dataBar){const{color:c,value:d,startPoint:D,isGradient:h}=u.dataBar,m=n.getCellByIndexWithNoHeader(l,o);let{isMerged:C,isMergedMainCell:w,mergeInfo:E,startY:S,endY:b,startX:k,endX:q}=m;if(C||(w&&(S=E.startY,b=E.endY,k=E.startX,q=E.endX),!this.isRenderDiffRangesByCell(E,i)))return;const P=q-k,f2=b+h2.FIX_ONE_PIXEL_BLUR_OFFSET-S,s2=P-this._paddingRightAndLeft*2,o2=f2-this._paddingTopAndBottom*2;if(d>0){const B=Math.max(s2*(1-D/100)*d/100,1),R=k+this._paddingRightAndLeft+D/100*s2,X=S+this._paddingTopAndBottom;if(h){const t2=t.createLinearGradient(R,X,R+B,X);t2.addColorStop(0,c),t2.addColorStop(1,"rgb(255 255 255)"),t.fillStyle=t2,t.strokeStyle=c,t.lineWidth=1}else t.fillStyle=c;this._drawRectWithRoundedCorner(t,R,X,B,o2,!1,!0,!0,!1),h&&t.stroke()}else{const B=Math.max(s2*D/100*Math.abs(d)/100,1),R=k+this._paddingRightAndLeft+D/100*s2-B,X=S+this._paddingTopAndBottom;if(h){const t2=t.createLinearGradient(R,X,R+B,X);t2.addColorStop(0,"rgb(255 255 255)"),t2.addColorStop(1,c),t.fillStyle=t2,t.strokeStyle=c,t.lineWidth=1}else t.fillStyle=c;this._drawRectWithRoundedCorner(t,R,X,B,o2,!0,!1,!1,!0),h&&t.stroke()}}}),t.restore()}_drawRectWithRoundedCorner(t,e,n,i,a,l,o,u,c){const d=this._radius;!a||!i||(t.beginPath(),t.moveTo(e+d,n),t.lineTo(e+i-d,n),o?t.arcTo(e+i,n,e+i,n+d,d):t.lineTo(e+i,n),t.lineTo(e+i,n+a-d),u?t.arcTo(e+i,n+a,e+i-d,n+a,d):t.lineTo(e+i,n+a),t.lineTo(e+d,n+a),c?t.arcTo(e,n+a,e,n+a-d,d):t.lineTo(e,n+a),t.lineTo(e,n+d),l?t.arcTo(e,n,e+d,n,d):t.lineTo(e,n),t.closePath(),t.fill())}}h2.SpreadsheetExtensionRegistry.add(X2);const r2={};Object.freeze(r2);const R0={type:W.dataBar,handle:async(s,r)=>{const t=s.rule,e=r.accessor.get(f.ConditionalFormattingFormulaService),{worksheet:n}=r,i=new g.ObjectMatrix,a=p2(s.ranges,n.getMaxRows()-1,n.getMaxColumns()-1);a.forEach(C=>{g.Range.foreach(C,(w,E)=>{const S=n==null?void 0:n.getCellRaw(w,E),b=S&&S.v;if(!G(b)&&(S==null?void 0:S.t)===g.CellValueType.NUMBER){const k=Number(b);!Number.isNaN(k)&&i.setValue(w,E,k)}})});const l=new g.ObjectMatrix;a.forEach(C=>{g.Range.foreach(C,(w,E)=>{l.setValue(w,E,r2)})});const o=E2(t.config.min,i,{...r,cfId:s.cfId}),u=E2(t.config.max,i,{...r,cfId:s.cfId});let c=0,d=0;if(o.status===j.WAIT)return e.getCache(r.unitId,r.subUnitId,s.cfId)||l;if(o.status===j.SUCCESS){const C=Number(o.result);c=Number.isNaN(C)?0:C}else return l;if(u.status===j.WAIT)return e.getCache(r.unitId,r.subUnitId,s.cfId)||l;if(u.status===j.SUCCESS){const C=Number(u.result),w=Number.isNaN(C)?0:C;d=Math.max(w,c),c=Math.min(w,c)}else return l;const D=t.config.isGradient,h=t.isShowValue,m=C=>Math.max(Math.min(100,C),0);if(!(c===d||d<c)){if(c<0&&d<=0){const C=d-c,w=100;i.forValue((E,S,b)=>{if(b>d)return;const k=m((d-b)/C*100);l.setValue(E,S,{color:t.config.nativeColor||T2,startPoint:w,value:-k,isGradient:D,isShowValue:h})})}else if(c<0&&d>0){const C=Math.abs(d)+Math.abs(c),w=Math.abs(c)/C*100;i.forValue((E,S,b)=>{if(b)if(b>0){const k=m(Math.min(b/d,1)*100);l.setValue(E,S,{color:t.config.positiveColor||B2,startPoint:w,value:k,isGradient:D,isShowValue:h})}else{const k=m(Math.min(Math.abs(b)/Math.abs(c),1)*100);l.setValue(E,S,{color:t.config.nativeColor||T2,startPoint:w,value:-k,isGradient:D,isShowValue:h})}})}else if(c>=0&&d>0){const C=d-c,w=0;i.forValue((E,S,b)=>{if(b<c)return;const k=m((1-(d-b)/C)*100);l.setValue(E,S,{color:t.config.positiveColor||B2,startPoint:w,value:k,isGradient:D,isShowValue:h})})}}return l}},S0={type:W.highlightCell,handle:async(s,r)=>{const t=s.rule,{worksheet:e,unitId:n,subUnitId:i}=r,a=p2(s.ranges,e.getMaxRows()-1,e.getMaxColumns()-1),o=(()=>{switch(t.subType){case U.average:{let d=0,D=0;return a.forEach(h=>{g.Range.foreach(h,(m,C)=>{const w=e==null?void 0:e.getCellRaw(m,C),E=e2(w||void 0);w&&w.t===g.CellValueType.NUMBER&&E!==void 0&&(d+=Number(E)||0,D++)})}),{average:d/D}}case U.uniqueValues:case U.duplicateValues:{const d=new Map;return a.forEach(D=>{g.Range.foreach(D,(h,m)=>{const C=e==null?void 0:e.getCellRaw(h,m),w=e2(C||void 0);if(w!==void 0){const E=d.get(w);E?d.set(w,E+1):d.set(w,1)}})}),{count:d}}case U.rank:{const d=[];a.forEach(m=>{g.Range.foreach(m,(C,w)=>{const E=e==null?void 0:e.getCellRaw(C,w),S=e2(E||void 0);E&&E.t===g.CellValueType.NUMBER&&S!==void 0&&d.push(Number(S)||0)})}),d.sort((m,C)=>C-m);const D=s.rule,h=D.isPercent?Math.floor(Math.max(Math.min(D.value,100),0)/100*d.length):Math.floor(Math.max(Math.min(D.isBottom?D.value-1:D.value,d.length),0));return D.isBottom?{rank:d[d.length-h-1]}:{rank:d[Math.max(h-1,0)]}}case U.formula:{const d=t;r.accessor.get(f.ConditionalFormattingFormulaService).registerFormulaWithRange(r.unitId,r.subUnitId,s.cfId,d.value,s.ranges);break}case U.timePeriod:switch(t.operator){case H.last7Days:return{timePeriod:{start:O().subtract(7,"day").valueOf(),end:O().valueOf()}};case H.lastMonth:return{timePeriod:{start:O().startOf("month").subtract(1,"month").valueOf(),end:O().endOf("month").subtract(1,"month").valueOf()}};case H.lastWeek:return{timePeriod:{start:O().startOf("week").subtract(1,"week").valueOf(),end:O().endOf("week").subtract(1,"week").valueOf()}};case H.nextMonth:return{timePeriod:{start:O().startOf("month").add(1,"month").valueOf(),end:O().endOf("month").add(1,"month").valueOf()}};case H.nextWeek:return{timePeriod:{start:O().startOf("week").add(1,"week").valueOf(),end:O().endOf("week").add(1,"week").valueOf()}};case H.thisMonth:return{timePeriod:{start:O().startOf("month").valueOf(),end:O().endOf("month").valueOf()}};case H.thisWeek:return{timePeriod:{start:O().startOf("week").valueOf(),end:O().endOf("week").valueOf()}};case H.today:return{timePeriod:{start:O().startOf("day").valueOf(),end:O().endOf("day").valueOf()}};case H.tomorrow:return{timePeriod:{start:O().startOf("day").add(1,"day").valueOf(),end:O().endOf("day").add(1,"day").valueOf()}};case H.yesterday:return{timePeriod:{start:O().startOf("day").subtract(1,"day").valueOf(),end:O().endOf("day").subtract(1,"day").valueOf()}}}}})(),u=(d,D)=>{const h=e==null?void 0:e.getCellRaw(d,D);switch(t.subType){case U.number:{const m=h&&Number(h.v);if(G(m)||Number.isNaN(m)||(h==null?void 0:h.t)!==g.CellValueType.NUMBER)return!1;const C=t;return g2({operator:C.operator,value:C.value||0},m||0)}case U.text:{const m=t,C=e2(h),w=C===null?"":String(C),E=m.value||"";switch(m.operator){case Y.beginsWith:return w.startsWith(E);case Y.containsBlanks:return/^\s*$/.test(w);case Y.notContainsBlanks:return!/^\s*$/.test(w);case Y.containsErrors:return n2.ERROR_TYPE_SET.has(w);case Y.notContainsErrors:return!n2.ERROR_TYPE_SET.has(w);case Y.containsText:return w.indexOf(E)>-1;case Y.notContainsText:return w.indexOf(E)===-1;case Y.endsWith:return w.endsWith(E);case Y.equal:return w===E;case Y.notEqual:return w!==E;default:return!1}}case U.timePeriod:{const m=e2(h);if(G(m)||Number.isNaN(Number(m))||(h==null?void 0:h.t)!==g.CellValueType.NUMBER)return!1;const C=Z2(Number(m)),{start:w,end:E}=o.timePeriod;return C>=w&&C<=E}case U.average:{const m=h&&h.v,C=Number(m);if(G(m)||Number.isNaN(C)||(h==null?void 0:h.t)!==g.CellValueType.NUMBER)return!1;const w=t,E=o==null?void 0:o.average;switch(w.operator){case T.greaterThan:return C>E;case T.greaterThanOrEqual:return C>=E;case T.lessThan:return C<E;case T.lessThanOrEqual:return C<=E;case T.equal:return v2(C,E);case T.notEqual:return!v2(C,E);default:return!1}}case U.rank:{const m=e2(h),C=Number(m);if(G(m)||Number.isNaN(C)||(h==null?void 0:h.t)!==g.CellValueType.NUMBER)return!1;const w=o.rank;return t.isBottom?C<=w:C>=w}case U.uniqueValues:{const m=e2(h);return G(m)?!1:o.count.get(m)===1}case U.duplicateValues:{const m=e2(h);return G(m)?!1:o.count.get(m)!==1}case U.formula:{const m=t,w=r.accessor.get(f.ConditionalFormattingFormulaService).getFormulaResult(n,i,s.cfId,m.value,d,D);return w&&w.status===j.SUCCESS?w.result===!0:!1}}},c=new g.ObjectMatrix;if(t.subType===U.formula){const d=t,D=r.accessor.get(f.ConditionalFormattingFormulaService),h=D.getSubUnitFormulaMap(n,i),m=h==null?void 0:h.getValue(D.createCFormulaId(s.cfId,d.value),["id"]);if(!m||m.status!==j.SUCCESS)return D.getCache(n,i,s.cfId)||c}return a.forEach(d=>{g.Range.foreach(d,(D,h)=>{u(D,h)?c.setValue(D,h,t.style):c.setValue(D,h,r2)})}),c}},b0={type:W.iconSet,handle:async(s,r)=>{var D;const t=s.rule,e=r.accessor.get(f.ConditionalFormattingFormulaService),{worksheet:n}=r,i=new g.ObjectMatrix,a=p2(s.ranges,n.getMaxRows()-1,n.getMaxColumns()-1);a.forEach(h=>{g.Range.foreach(h,(m,C)=>{const w=n==null?void 0:n.getCellRaw(m,C),E=w&&w.v;if(!G(E)&&(w==null?void 0:w.t)===g.CellValueType.NUMBER){const S=Number(E);!Number.isNaN(S)&&i.setValue(m,C,S)}})});const l=new g.ObjectMatrix;a.forEach(h=>{g.Range.foreach(h,(m,C)=>{l.setValue(m,C,r2)})});const o=t.config.map(h=>E2(h.value,i,{...r,cfId:s.cfId}));if(o.some(h=>h.status!==j.SUCCESS))return(D=e.getCache(r.unitId,r.subUnitId,s.cfId))!=null?D:l;const c=o.map((h,m)=>({operator:t.config[m].operator,value:Number(h.result)||0})).reduce((h,m,C,w)=>{const E=t.config[C];if(!C||C===w.length-1)h.push({...m,iconId:E.iconId,iconType:E.iconType});else{const S=w[C-1];g2(S,m.value)||h.push({...m,iconId:E.iconId,iconType:E.iconType})}return h},[]),d=t.isShowValue===void 0?!0:!!t.isShowValue;return i.forValue((h,m,C)=>{for(let w=0;w<c.length;w++){const E=c[w],S={...E},b={...E},{iconId:k,iconType:q}=E;if(w===0){if(g2(E,C)){l.setValue(h,m,{iconId:k,iconType:q,isShowValue:d});return}}else if(w===c.length-1){l.setValue(h,m,{iconId:k,iconType:q,isShowValue:d});return}else{const P=c[w-1];if(b.operator=Y2(P.operator),b.value=P.value,g2(S,C)&&g2(b,C)){l.setValue(h,m,{iconId:k,iconType:q,isShowValue:d});return}}}}),l}};var I0=Object.defineProperty,L0=Object.getOwnPropertyDescriptor,B0=(s,r,t,e)=>{for(var n=e>1?void 0:e?L0(r,t):r,i=s.length-1,a;i>=0;i--)(a=s[i])&&(n=(e?a(r,t,n):a(n))||n);return e&&n&&I0(r,t,n),n},l2=(s,r)=>(t,e)=>r(t,e,s);const T0=g.createInterceptorKey("conditional-formatting-before-update-rule-result");f.ConditionalFormattingService=class extends g.Disposable{constructor(t,e,n,i,a,l,o){super();I(this,"_ruleCacheMap",new Map);I(this,"_calculateUnit$",new Q.Subject);I(this,"_ruleComputeStatus$",new Q.Subject);I(this,"ruleComputeStatus$",this._ruleComputeStatus$.asObservable());I(this,"interceptorManager",new g.InterceptorManager({beforeUpdateRuleResult:T0}));I(this,"_calculationUnitMap",new Map);this._conditionalFormattingRuleModel=t,this._injector=e,this._conditionalFormattingViewModel=n,this._univerInstanceService=i,this._resourceManagerService=a,this._sheetInterceptorService=l,this._commandService=o,this._initCellChange(),this._initCacheManager(),this._initRemoteCalculate(),this._initSnapshot(),this._initSheetChange(),this._registerCalculationUnit(R0),this._registerCalculationUnit(y0),this._registerCalculationUnit(S0),this._registerCalculationUnit(b0),this._calculateUnit$.pipe(d2.bufferTime(100),d2.filter(u=>!!u.length),d2.map(u=>{const c=D=>`${D.unitId}_${D.subUnitId}_${D.rule.cfId}`;return u.reduce((D,h)=>{const m=c(h);return D.map[m]||(D.map[m]=h,D.list.push(h)),D},{map:{},list:[]}).list})).subscribe(u=>{u.forEach(c=>{this._handleCalculateUnit(c.unitId,c.subUnitId,c.rule)})}),this.disposeWithMe(()=>{this.interceptorManager.dispose()})}composeStyle(t,e,n,i){const a=this._conditionalFormattingViewModel.getCellCf(t,e,n,i);if(a){const l=a.cfList.map(c=>this._conditionalFormattingRuleModel.getRule(t,e,c.cfId)).filter(c=>!!c).reverse(),o=l.findIndex(c=>c==null?void 0:c.stopIfTrue);return o>-1&&l.splice(o+1),l.reduce((c,d)=>{var m;const D=d.rule.type,h=a.cfList.find(C=>C.cfId===d.cfId);if(h!=null&&h.isDirty&&this._calculateUnit$.next({unitId:t,subUnitId:e,rule:d}),D===W.highlightCell)h.ruleCache&&g.Tools.deepMerge(c,{style:h.ruleCache});else if(D===W.colorScale){const C=h==null?void 0:h.ruleCache;C&&typeof C=="string"&&(c.style={...(m=c.style)!=null?m:{},bg:{rgb:C}})}else if(D===W.dataBar){const C=h==null?void 0:h.ruleCache;C&&C!==r2&&(c.dataBar=C,c.isShowValue=C.isShowValue)}else if(D===W.iconSet){const C=h==null?void 0:h.ruleCache;C&&C!==r2&&(c.iconSet=C,c.isShowValue=C.isShowValue)}return c},{})}return null}_initSnapshot(){const t=n=>{const i=this._conditionalFormattingRuleModel.getUnitRules(n),a={};return i?(i.forEach((l,o)=>{a[o]=l}),JSON.stringify(a)):""},e=n=>{if(!n)return{};try{return JSON.parse(n)}catch{return{}}};this.disposeWithMe(this._resourceManagerService.registerPluginResource({pluginName:S2,businesses:[g.UniverInstanceType.UNIVER_SHEET],toJson:n=>t(n),parseJson:n=>e(n),onUnLoad:n=>{this._conditionalFormattingRuleModel.deleteUnitId(n)},onLoad:(n,i)=>{Object.keys(i).forEach(a=>{[...i[a]].reverse().forEach(o=>{this._conditionalFormattingRuleModel.addRule(n,a,o)})})}}))}_initSheetChange(){this.disposeWithMe(this._sheetInterceptorService.interceptCommand({getMutations:t=>{if(t.id===J.RemoveSheetCommand.id){const e=t.params,n=e.unitId||k0(this._univerInstanceService),i=e.subUnitId||O0(this._univerInstanceService);if(!i)return{redos:[],undos:[]};const a=this._conditionalFormattingRuleModel.getSubunitRules(n,i);if(!a)return{redos:[],undos:[]};const l=[],o=[];return a.forEach(u=>{const c={unitId:n,subUnitId:i,cfId:u.cfId};l.push({id:y2.id,params:c}),o.push(...P2(this._injector,c))}),{redos:l,undos:o}}return{redos:[],undos:[]}}}))}_registerCalculationUnit(t){this._calculationUnitMap.set(t.type,t)}_getComputedCache(t,e,n){var i,a;return(a=(i=this._ruleCacheMap.get(t))==null?void 0:i.get(e))==null?void 0:a.get(n)}_setComputedCache(t,e,n,i){let a=this._ruleCacheMap.get(t);a||(a=new Map,this._ruleCacheMap.set(t,a));let l=a.get(e);l||(l=new Map,a.set(e,l)),l.set(n,i)}_deleteComputeCache(t,e,n){const i=this._ruleCacheMap.get(t),a=i==null?void 0:i.get(e);a&&(a.delete(n),a.size||i==null||i.delete(e))}_initCacheManager(){this.disposeWithMe(this._conditionalFormattingViewModel.markDirty$.subscribe(t=>{this._deleteComputeCache(t.unitId,t.subUnitId,t.rule.cfId)})),this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.pipe(d2.filter(t=>t.type!=="sort")).subscribe(t=>{const{unitId:e,subUnitId:n,rule:i}=t;this._deleteComputeCache(e,n,i.cfId)}))}_initCellChange(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{const e=(n,i,a)=>{const l=new Set;return a.forEach(([o,u])=>{const c=this._conditionalFormattingViewModel.getCellCf(n,i,o,u);c==null||c.cfList.forEach(d=>l.add(d.cfId))}),[...l].map(o=>this._conditionalFormattingRuleModel.getRule(n,i,o)).filter(o=>!!o)};switch(t.id){case J.SetRangeValuesMutation.id:{const n=t.params,{subUnitId:i,unitId:a,cellValue:l}=n,o=[];new g.ObjectMatrix(l).forValue((c,d,D)=>{D&&Object.keys(D).some(m=>["p","v"].includes(m))&&o.push([c,d])}),e(a,i,o).forEach(c=>{this._conditionalFormattingViewModel.markRuleDirty(a,i,c),this._deleteComputeCache(a,i,c.cfId)});break}case J.InsertColMutation.id:case J.RemoveColMutation.id:{const{range:n,unitId:i,subUnitId:a}=t.params,l=this._conditionalFormattingRuleModel.getSubunitRules(i,a),o={...n,endColumn:Number.MAX_SAFE_INTEGER};l&&l.filter(c=>c.ranges.some(d=>g.Rectangle.intersects(d,o))).forEach(c=>{this._conditionalFormattingViewModel.markRuleDirty(i,a,c),this._deleteComputeCache(i,a,c.cfId)});break}case J.RemoveRowMutation.id:case J.InsertRowMutation.id:{const{range:n,unitId:i,subUnitId:a}=t.params,l=this._conditionalFormattingRuleModel.getSubunitRules(i,a),o={...n,endRow:Number.MAX_SAFE_INTEGER};l&&l.filter(c=>c.ranges.some(d=>g.Rectangle.intersects(d,o))).forEach(c=>{this._conditionalFormattingViewModel.markRuleDirty(i,a,c),this._deleteComputeCache(i,a,c.cfId)});break}case J.MoveRowsMutation.id:{const{sourceRange:n,targetRange:i,unitId:a,subUnitId:l}=t.params,o=this._conditionalFormattingRuleModel.getSubunitRules(a,l),u={startRow:Math.min(n.startRow,i.startRow),endRow:Number.MAX_SAFE_INTEGER,startColumn:0,endColumn:Number.MAX_SAFE_INTEGER};o&&o.filter(d=>d.ranges.some(D=>g.Rectangle.intersects(D,u))).forEach(d=>{this._conditionalFormattingViewModel.markRuleDirty(a,l,d),this._deleteComputeCache(a,l,d.cfId)});break}case J.MoveColsMutation.id:{const{sourceRange:n,targetRange:i,unitId:a,subUnitId:l}=t.params,o=this._conditionalFormattingRuleModel.getSubunitRules(a,l),u={startRow:0,endRow:Number.MAX_SAFE_INTEGER,startColumn:Math.min(n.startColumn,i.startColumn),endColumn:Number.MAX_SAFE_INTEGER};o&&o.filter(d=>d.ranges.some(D=>g.Rectangle.intersects(D,u))).forEach(d=>{this._conditionalFormattingViewModel.markRuleDirty(a,l,d),this._deleteComputeCache(a,l,d.cfId)});break}case J.MoveRangeMutation.id:{const{unitId:n,to:i,from:a}=t.params,l=o=>{const u=[];new g.ObjectMatrix(o.value).forValue((d,D)=>{u.push([d,D])}),e(n,o.subUnitId,u).forEach(d=>{this._conditionalFormattingViewModel.markRuleDirty(n,o.subUnitId,d),this._deleteComputeCache(n,o.subUnitId,d.cfId)})};l(i),l(a);break}case J.ReorderRangeMutation.id:{const{range:n,unitId:i,subUnitId:a}=t.params,l=this._conditionalFormattingRuleModel.getSubunitRules(i,a);l&&l.filter(u=>u.ranges.some(c=>g.Rectangle.intersects(c,n))).forEach(u=>{this._conditionalFormattingViewModel.markRuleDirty(i,a,u),this._deleteComputeCache(i,a,u.cfId)});break}}}))}_initRemoteCalculate(){this.disposeWithMe(this._ruleComputeStatus$.subscribe(({status:t,subUnitId:e,unitId:n,cfId:i,result:a})=>{const l=this._getComputedCache(n,e,i)||{};l.status=t,this._setComputedCache(n,e,i,l),t==="end"&&a&&(this.interceptorManager.fetchThroughInterceptors(this.interceptorManager.getInterceptPoints().beforeUpdateRuleResult)({subUnitId:e,unitId:n,cfId:i},void 0),a.forValue((o,u,c)=>{this._conditionalFormattingViewModel.setCellCfRuleCache(n,e,o,u,i,c)}))}))}async _handleCalculateUnit(t,e,n){if(!this._conditionalFormattingRuleModel.getRule(t,e,n.cfId))return;const i=this._univerInstanceService.getUnit(t),a=i==null?void 0:i.getSheetBySheetId(e);let l=this._getComputedCache(t,e,n.cfId);if(l&&["computing","end"].includes(l.status))return;l||(l={status:"computing"},this._setComputedCache(t,e,n.cfId,l));const o=this._calculationUnitMap.get(n.rule.type);if(!o||!a)return;const u={unitId:t,subUnitId:e,accessor:this._injector,workbook:i,worksheet:a},c=await o.handle(n,u);this._ruleComputeStatus$.next({status:"end",unitId:t,subUnitId:e,cfId:n.cfId,result:c})}},f.ConditionalFormattingService=B0([l2(0,g.Inject(f.ConditionalFormattingRuleModel)),l2(1,g.Inject(g.Injector)),l2(2,g.Inject(D2)),l2(3,g.Inject(g.IUniverInstanceService)),l2(4,g.Inject(g.IResourceManagerService)),l2(5,g.Inject(J.SheetInterceptorService)),l2(6,g.Inject(g.ICommandService))],f.ConditionalFormattingService);const k0=s=>s.getCurrentUnitForType(g.UniverInstanceType.UNIVER_SHEET).getUnitId(),O0=s=>{var r;return(r=s.getCurrentUnitForType(g.UniverInstanceType.UNIVER_SHEET).getActiveSheet())==null?void 0:r.getSheetId()};var $0=Object.defineProperty,U0=Object.getOwnPropertyDescriptor,V0=(s,r,t,e)=>{for(var n=e>1?void 0:e?U0(r,t):r,i=s.length-1,a;i>=0;i--)(a=s[i])&&(n=(e?a(r,t,n):a(n))||n);return e&&n&&$0(r,t,n),n},k2=(s,r)=>(t,e)=>r(t,e,s);f.UniverSheetsConditionalFormattingPlugin=(x2=class extends g.Plugin{constructor(r=C0,t,e,n){super(),this._config=r,this._injector=t,this._commandService=e,this._configService=n;const{...i}=this._config;this._configService.setConfig(f0,i),[[f.ConditionalFormattingService],[f.ConditionalFormattingFormulaService],[f.ConditionalFormattingRuleModel],[D2]].forEach(a=>{this._injector.add(a)}),[b2,y2,I2,_2,F2].forEach(a=>{this._commandService.registerCommand(a)})}onStarting(){this._injector.get(f.ConditionalFormattingService)}},I(x2,"pluginName",S2),I(x2,"type",g.UniverInstanceType.UNIVER_SHEET),x2),f.UniverSheetsConditionalFormattingPlugin=V0([k2(1,g.Inject(g.Injector)),k2(2,g.Inject(g.ICommandService)),k2(3,g.IConfigService)],f.UniverSheetsConditionalFormattingPlugin);const K2="sheet-conditional-rule-icon",N0=35,J2=15,z2=2;class Q2 extends h2.SheetExtension{constructor(){super();I(this,"_paddingRightAndLeft",z2);I(this,"_width",J2);I(this,"_imageMap",new Map);I(this,"uKey",K2);I(this,"Z_INDEX",N0);I(this,"_radius",1);this._init()}draw(t,e,n,i){const{worksheet:a}=n;if(!a)return!1;t.save(),g.Range.foreach(n.rowColumnSegment,(l,o)=>{if(!a.getRowVisible(l)||!a.getColVisible(o))return;const u=a.getCell(l,o);if(u!=null&&u.iconSet){const{iconType:c,iconId:d}=u.iconSet;if(c===j2)return;const D=this._imageMap.get(this._createKey(c,d));if(!D)return;const h=n.getCellByIndexWithNoHeader(l,o);let{isMerged:m,isMergedMainCell:C,mergeInfo:w,startY:E,endY:S,startX:b,endX:k}=h;if(m||(C&&(E=w.startY,S=w.endY,b=w.startX,k=w.endX),!this.isRenderDiffRangesByCell(w,i)))return;const q=k-b,P=S-E;if(this._width>P||this._width>q+this._paddingRightAndLeft*2)return;const f2=(P-this._width)/2+E;t.drawImage(D,b+this._paddingRightAndLeft,f2,this._width,this._width)}}),t.restore()}_init(){for(const t in m2)m2[t].forEach((n,i)=>{const a=this._createKey(t,String(i)),l=new Image;l.onload=()=>{this._imageMap.set(a,l)},l.src=n})}_createKey(t,e){return`${t}_${e}`}}h2.SpreadsheetExtensionRegistry.add(Q2);const j0=(s,r)=>r.length===s.length&&!s.some(t=>r.some(e=>!g.Rectangle.equals(e,t)));function t0(s){if(typeof s!="object"||s===null)return s;const r={};for(const t in s)if(s.hasOwnProperty(t)){const e=t0(s[t]);e!==void 0&&(r[t]=e)}return r}f.AddConditionalRuleMutation=b2,f.AddConditionalRuleMutationUndoFactory=h0,f.CFNumberOperator=T,f.CFRuleType=W,f.CFSubRuleType=U,f.CFTextOperator=Y,f.CFTimePeriodOperator=H,f.CFValueType=z,f.ConditionalFormattingFormulaMarkDirty=F2,f.ConditionalFormattingIcon=Q2,f.ConditionalFormattingViewModel=D2,f.DEFAULT_BG_COLOR=e0,f.DEFAULT_FONT_COLOR=n0,f.DEFAULT_PADDING=z2,f.DEFAULT_WIDTH=J2,f.DataBar=X2,f.DeleteConditionalRuleMutation=y2,f.DeleteConditionalRuleMutationUndoFactory=P2,f.EMPTY_ICON_TYPE=j2,f.EMPTY_STYLE=r2,f.FormulaResultStatus=j,f.IconUKey=K2,f.MoveConditionalRuleMutation=_2,f.MoveConditionalRuleMutationUndoFactory=d0,f.SHEET_CONDITIONAL_FORMATTING_PLUGIN=S2,f.SetConditionalRuleMutation=I2,f.anchorUndoFactory=V2,f.compareWithNumber=g2,f.createCfId=O2,f.createDefaultRule=i0,f.createDefaultValue=s0,f.createDefaultValueByValueType=a0,f.dataBarUKey=G2,f.defaultDataBarNativeColor=T2,f.defaultDataBarPositiveColor=B2,f.filterRange=p2,f.findIndexByAnchor=i2,f.getCacheStyleMatrix=A0,f.getCellValue=e2,f.getColorScaleFromValue=H2,f.getMaxInFormulaResult=M0,f.getOppositeOperator=Y2,f.getValueByType=E2,f.iconGroup=N2,f.iconMap=m2,f.isAnchorEqual=r0,f.isFloatsEqual=v2,f.isNullable=G,f.isRangesEqual=j0,f.moveByAnchor=$2,f.removeUndefinedAttr=t0,f.serialTimeToTimestamp=Z2,f.setConditionalRuleMutationUndoFactory=g0,f.toYMD_1900=q2,f.transformSupportSymmetryAnchor=U2,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
1
+ (function(C,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("@univerjs/core"),require("rxjs"),require("rxjs/operators"),require("@univerjs/sheets"),require("@univerjs/engine-render"),require("@univerjs/engine-formula")):typeof define=="function"&&define.amd?define(["exports","@univerjs/core","rxjs","rxjs/operators","@univerjs/sheets","@univerjs/engine-render","@univerjs/engine-formula"],u):(C=typeof globalThis<"u"?globalThis:C||self,u(C.UniverSheetsConditionalFormatting={},C.UniverCore,C.rxjs,C.rxjs.operators,C.UniverSheets,C.UniverEngineRender,C.UniverEngineFormula))})(this,function(C,u,T,Z,L,G,U){"use strict";var m0=Object.defineProperty;var F0=(C,u,T)=>u in C?m0(C,u,{enumerable:!0,configurable:!0,writable:!0,value:T}):C[u]=T;var p=(C,u,T)=>F0(C,typeof u!="symbol"?u+"":u,T);var a2;const r2="SHEET_CONDITIONAL_FORMATTING_PLUGIN";var I=(a=>(a.beginsWith="beginsWith",a.endsWith="endsWith",a.containsText="containsText",a.notContainsText="notContainsText",a.equal="equal",a.notEqual="notEqual",a.containsBlanks="containsBlanks",a.notContainsBlanks="notContainsBlanks",a.containsErrors="containsErrors",a.notContainsErrors="notContainsErrors",a))(I||{}),S=(a=>(a.today="today",a.yesterday="yesterday",a.tomorrow="tomorrow",a.last7Days="last7Days",a.thisMonth="thisMonth",a.lastMonth="lastMonth",a.nextMonth="nextMonth",a.thisWeek="thisWeek",a.lastWeek="lastWeek",a.nextWeek="nextWeek",a))(S||{}),A=(a=>(a.greaterThan="greaterThan",a.greaterThanOrEqual="greaterThanOrEqual",a.lessThan="lessThan",a.lessThanOrEqual="lessThanOrEqual",a.notBetween="notBetween",a.between="between",a.equal="equal",a.notEqual="notEqual",a))(A||{}),R=(a=>(a.highlightCell="highlightCell",a.dataBar="dataBar",a.colorScale="colorScale",a.iconSet="iconSet",a))(R||{}),y=(a=>(a.uniqueValues="uniqueValues",a.duplicateValues="duplicateValues",a.rank="rank",a.text="text",a.timePeriod="timePeriod",a.number="number",a.average="average",a.formula="formula",a))(y||{}),B=(a=>(a.num="num",a.min="min",a.max="max",a.percent="percent",a.percentile="percentile",a.formula="formula",a))(B||{});const B2="#fff",T2="#000000",k2=()=>({cfId:void 0,ranges:[],stopIfTrue:!1,rule:{type:"highlightCell",subType:"text",operator:"containsText"}}),U2=(a,r)=>{switch(a){case"text":{if(["beginsWith","containsText","endsWith","equal","notContainsText","notEqual"].includes(r))return"";break}case"number":return["between","notBetween"].includes(r)?[10,100]:10}return""},V2=(a,r)=>{switch(a){case"formula":return"=";case"max":case"min":return"";case"percent":case"percentile":case"num":return r!==void 0?r:10}return""},C2=()=>`${u.Tools.generateRandomId(8)}`,V=(a,r,t)=>{if(!r)return null;const i=r.findIndex(e=>t(e)===a.id);if(i<0)return null;switch(a.type){case"after":return i+1;case"before":return i-1;case"self":return i}},D2=(a,r,t,i)=>{if(!t)return null;const e=V(a,t,i);let n=V(r,t,i);if(e===null||n===null||e===n)return;const s=t.splice(e,1)[0];switch(e<n&&(n=V(r,t,i)),r.type){case"before":{t.splice(n+1,0,s);break}case"self":case"after":{t.splice(n,0,s);break}}},f2=(a,r,t,i)=>{if(a.type==="after"&&["after","before"].includes(r.type))return[a,r];const e={...a},n={...r};if(e.type!=="after"){const s=V(e,t,i);if(s===null)return null;if(s-1<0){const l=t[s+1];if(l)e.id=i(l),e.type="before";else return null}else{const l=i(t[s-1]);e.id=l,e.type="after"}}if(!["after","before"].includes(n.type)){const s=V(n,t,i);if(s===null)return null;if(s===0)n.type="before";else if(s-1>=0){const l=i(t[s-1]);n.id=l,n.type="after"}else if(s+1<=t.length-1){const l=i(t[s+1]);n.id=l,n.type="before"}else return null}return e.id===n.id&&e.type===n.type?null:[e,n]},m2=(a,r)=>{if(["after","before"].includes(r.type)){if(a.type==="after")return[r,a];if(a.type==="before")return[r,{...a,type:"self"}]}return null},O2=(a,r)=>a.id===r.id&&a.type===r.type;var N2=Object.defineProperty,j2=Object.getOwnPropertyDescriptor,P2=(a,r,t,i)=>{for(var e=i>1?void 0:i?j2(r,t):r,n=a.length-1,s;n>=0;n--)(s=a[n])&&(e=(i?s(r,t,e):s(e))||e);return i&&e&&N2(r,t,e),e},$2=(a,r)=>(t,i)=>r(t,i,a);C.ConditionalFormattingRuleModel=class{constructor(r){p(this,"_model",new Map);p(this,"_ruleChange$",new T.Subject);p(this,"$ruleChange",this._ruleChange$.asObservable().pipe(Z.bufferTime(16),Z.filter(r=>!!r.length),r=>new T.Observable(t=>{r.subscribe({next:i=>{const e=o=>`${o.unitId}_${o.subUnitId}_${o.rule.cfId}`,n=o=>{const d=o.findIndex(h=>h.type==="add"),c=o.findIndex(h=>h.type==="delete");d!==-1&&c!==-1&&c>d&&o.splice(d,c-d+1)},s=i.reduce((o,d,c)=>{const h=e(d);return o[h]||(o[h]=[]),o[h].push({...d,_index:c}),o},{});for(const o in s){const d=s[o];d.length>=2&&n(d)}Object.keys(s).reduce((o,d)=>{const c=s[d];return o.push(...c),o},[]).sort((o,d)=>o._index-d._index).map(o=>o).forEach(o=>{t.next(o)})},error:i=>t.error(i),complete:()=>t.complete()})})));this._injector=r}_ensureList(r,t){let i=this.getSubunitRules(r,t);if(!i){i=[];let e=this._model.get(r);e||(e=new Map,this._model.set(r,e)),e.set(t,i)}return i}getRule(r,t,i){const e=this.getSubunitRules(r,t);return e?e.find(n=>n.cfId===i):null}getUnitRules(r){return this._model.get(r)||null}getSubunitRules(r,t){var e;return((e=this._model.get(r))==null?void 0:e.get(t))||null}deleteRule(r,t,i){const e=this.getSubunitRules(r,t);if(e){const n=e.findIndex(l=>l.cfId===i),s=e[n];s&&(e.splice(n,1),this._ruleChange$.next({rule:s,subUnitId:t,unitId:r,type:"delete"}))}}setRule(r,t,i,e){const s=this._ensureList(r,t).find(l=>l.cfId===e);if(s){const l=u.Tools.deepClone(s);Object.assign(s,i),this._ruleChange$.next({rule:s,subUnitId:t,unitId:r,type:"set",oldRule:l})}}addRule(r,t,i){const e=this._ensureList(r,t);e.find(s=>s.cfId===i.cfId)||e.unshift(i),this._ruleChange$.next({rule:i,subUnitId:t,unitId:r,type:"add"})}moveRulePriority(r,t,i,e){const n=this._ensureList(r,t),s=V(i,n,d=>d.cfId),l=V(e,n,d=>d.cfId);if(l===null||s===null||l===s)return;const o=n[s];o&&(D2(i,e,n,d=>d.cfId),this._ruleChange$.next({rule:o,subUnitId:t,unitId:r,type:"sort"}))}createCfId(r,t){return C2()}deleteUnitId(r){this._model.delete(r)}},C.ConditionalFormattingRuleModel=P2([$2(0,u.Inject(u.Injector))],C.ConditionalFormattingRuleModel);class X{constructor(){p(this,"_model",new Map);p(this,"_markDirty$",new T.Subject);p(this,"markDirty$",this._markDirty$.asObservable())}_ensureMatrix(r,t){let i=this.getMatrix(r,t);if(!i){i=new u.ObjectMatrix;let e=this._model.get(r);e||(e=new Map,this._model.set(r,e)),e.set(t,i)}return i}getMatrix(r,t){var i;return(i=this._model.get(r))==null?void 0:i.get(t)}getCellCf(r,t,i,e,n){const s=n!=null?n:this.getMatrix(r,t);return s?s.getValue(i,e):null}setCellCfRuleCache(r,t,i,e,n,s){const o=this._ensureMatrix(r,t).getValue(i,e),d=o==null?void 0:o.cfList.find(c=>c.cfId===n);d&&(d.ruleCache=s,d.isDirty=!1)}deleteCellCf(r,t,i,e,n,s){const l=s!=null?s:this.getMatrix(r,t);if(l){const o=l.getValue(i,e);if(o){const d=o.cfList,c=d.findIndex(h=>h.cfId===n);c>-1&&d.splice(c,1),d.length||l.realDeleteValue(i,e)}}}pushCellCf(r,t,i,e,n){const s=this._ensureMatrix(r,t);let l=s.getValue(i,e);if(!l)l={cfList:[{cfId:n,isDirty:!0}]};else{const o=l.cfList;if(o.findIndex(c=>c.cfId===n)>-1)return;o.push({cfId:n,isDirty:!0})}s.setValue(i,e,l)}sortCellCf(r,t,i,e,n){const s=this.getCellCf(r,t,i,e);if(s){const l=s.cfList.map(o=>{const d=n.get(o.cfId);return d===void 0?null:{...o,priority:d}}).filter(o=>!!o).sort((o,d)=>o.priority-d.priority);s.cfList=l}}markRuleDirty(r,t,i,e,n){const s=(l,o)=>{const d=this.getCellCf(r,t,l,o);if(d){const c=d.cfList.find(h=>h.cfId===i.cfId);c&&(c.isDirty=!0)}};e!==void 0&&n!==void 0?(s(e,n),this._markDirty$.next({rule:i,unitId:r,subUnitId:t})):(i.ranges.forEach(l=>{u.Range.foreach(l,(o,d)=>{s(o,d)})}),this._markDirty$.next({rule:i,unitId:r,subUnitId:t}))}}const F={feedback:{mistake:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%227.03704%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.87359%206.87332C6.6146%207.13231%206.6146%207.55221%206.87359%207.8112L9.062%209.99961L6.87356%2012.188C6.61457%2012.447%206.61457%2012.8669%206.87356%2013.1259C7.13255%2013.3849%207.55245%2013.3849%207.81144%2013.1259L9.99987%2010.9375L12.1882%2013.1258C12.4472%2013.3848%2012.8671%2013.3848%2013.1261%2013.1258C13.3851%2012.8669%2013.3851%2012.447%2013.1261%2012.188L10.9378%209.99961L13.1261%207.81127C13.3851%207.55228%2013.3851%207.13238%2013.1261%206.87339C12.8671%206.61441%2012.4472%206.61441%2012.1882%206.87339L9.99987%209.06173L7.81147%206.87332C7.55248%206.61433%207.13257%206.61433%206.87359%206.87332Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A",warn:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%227.03704%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3Cpath%20d%3D%22M9.16817%206.67735C9.16646%206.61745%209.1656%206.5875%209.16653%206.56236C9.18103%206.16817%209.49136%205.84883%209.88497%205.82306C9.91008%205.82141%209.94004%205.82141%209.99996%205.82141V5.82141C10.0599%205.82141%2010.0899%205.82141%2010.115%205.82306C10.5086%205.84883%2010.8189%206.16817%2010.8334%206.56236C10.8343%206.5875%2010.8335%206.61745%2010.8318%206.67735L10.7043%2011.131C10.6934%2011.5121%2010.3812%2011.8154%209.99995%2011.8154V11.8154C9.61866%2011.8154%209.30655%2011.5121%209.29564%2011.131L9.16817%206.67735Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3Crect%20x%3D%229.31488%22%20y%3D%2212.8086%22%20width%3D%221.37006%22%20height%3D%221.37006%22%20rx%3D%220.685032%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A",correct:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M17.037%2010C17.037%2013.8865%2013.8864%2017.0371%209.99999%2017.0371C6.11354%2017.0371%202.96295%2013.8865%202.96295%2010C2.96295%206.1136%206.11354%202.96301%209.99999%202.96301C13.8864%202.96301%2017.037%206.1136%2017.037%2010Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3Cpath%20d%3D%22M13.9239%207.17477C13.6638%206.91472%2013.2422%206.91472%2012.9821%207.17477L8.74433%2011.4126L7.01786%209.6861C6.75781%209.42606%206.33619%209.42606%206.07614%209.6861C5.81609%209.94615%205.81609%2010.3678%206.07614%2010.6278L8.27349%2012.8252C8.53354%2013.0852%208.95516%2013.0852%209.21521%2012.8252L9.2195%2012.8209L13.9239%208.1165C14.1839%207.85645%2014.1839%207.43482%2013.9239%207.17477Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A"},star:{starEmpty:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.8451%207.0699%2012.2165%207.33978%2012.6421%207.36863L16.2362%207.61233C16.5693%207.63492%2016.7048%208.05202%2016.4486%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.215%2011.2859%2013.319%2011.6996L14.1979%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6418%2015.5971L10.5908%2013.6817C10.2296%2013.4549%209.77045%2013.4549%209.40924%2013.6817L6.35828%2015.5971C6.07553%2015.7746%205.72072%2015.5168%205.80217%2015.1931L6.68105%2011.6996C6.7851%2011.2859%206.64322%2010.8493%206.31592%2010.5758L3.55145%208.26607C3.29525%208.05202%203.43078%207.63492%203.76386%207.61233L7.358%207.36863C7.78352%207.33978%208.15498%207.0699%208.31391%206.67412L9.65633%203.3312C9.78074%203.0214%2010.2193%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A",starIncomplete:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_177)%22%3E%0A%3Cmask%20id%3D%22mask0_613_177%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2210%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2220%22%3E%0A%3Crect%20x%3D%2210.3704%22%20y%3D%220.37037%22%20width%3D%229.25926%22%20height%3D%2219.2593%22%20fill%3D%22%23C4C4C4%22%20stroke%3D%22%23F7D564%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fmask%3E%0A%3Cg%20mask%3D%22url(%23mask0_613_177)%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.845%207.0699%2012.2165%207.33978%2012.642%207.36863L16.2361%207.61233C16.5692%207.63492%2016.7047%208.05202%2016.4485%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.2149%2011.2859%2013.3189%2011.6996L14.1978%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6417%2015.5971L10.5908%2013.6817C10.2295%2013.4549%209.77039%2013.4549%209.40918%2013.6817L6.35822%2015.5971C6.07547%2015.7746%205.72066%2015.5168%205.80211%2015.1931L6.68098%2011.6996C6.78504%2011.2859%206.64316%2010.8493%206.31586%2010.5758L3.55139%208.26607C3.29519%208.05202%203.43072%207.63492%203.7638%207.61233L7.35793%207.36863C7.78346%207.33978%208.15491%207.0699%208.31385%206.67412L9.65627%203.3312C9.78068%203.0214%2010.2192%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fg%3E%0A%3Cmask%20id%3D%22mask1_613_177%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2220%22%3E%0A%3Crect%20width%3D%2210%22%20height%3D%2220%22%20fill%3D%22%23C4C4C4%22%2F%3E%0A%3C%2Fmask%3E%0A%3Cg%20mask%3D%22url(%23mask1_613_177)%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.845%207.0699%2012.2165%207.33978%2012.642%207.36863L16.2361%207.61233C16.5692%207.63492%2016.7047%208.05202%2016.4485%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.2149%2011.2859%2013.3189%2011.6996L14.1978%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6417%2015.5971L10.5908%2013.6817C10.2295%2013.4549%209.77039%2013.4549%209.40918%2013.6817L6.35822%2015.5971C6.07547%2015.7746%205.72066%2015.5168%205.80211%2015.1931L6.68098%2011.6996C6.78504%2011.2859%206.64316%2010.8493%206.31586%2010.5758L3.55139%208.26607C3.29519%208.05202%203.43072%207.63492%203.7638%207.61233L7.35793%207.36863C7.78346%207.33978%208.15491%207.0699%208.31385%206.67412L9.65627%203.3312C9.78068%203.0214%2010.2192%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_177%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A",starFull:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.8451%207.0699%2012.2165%207.33978%2012.6421%207.36863L16.2362%207.61233C16.5693%207.63492%2016.7048%208.05202%2016.4486%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.215%2011.2859%2013.319%2011.6996L14.1979%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6418%2015.5971L10.5908%2013.6817C10.2296%2013.4549%209.77045%2013.4549%209.40924%2013.6817L6.35828%2015.5971C6.07553%2015.7746%205.72072%2015.5168%205.80217%2015.1931L6.68105%2011.6996C6.7851%2011.2859%206.64322%2010.8493%206.31592%2010.5758L3.55145%208.26607C3.29525%208.05202%203.43078%207.63492%203.76386%207.61233L7.358%207.36863C7.78352%207.33978%208.15498%207.0699%208.31391%206.67412L9.65633%203.3312C9.78074%203.0214%2010.2193%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A"},progress:{progress0:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A",progress25:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M16.2963%209.99991C16.2963%209.17307%2016.1335%208.35432%2015.8171%207.59042C15.5006%206.82652%2015.0369%206.13242%2014.4522%205.54776C13.8675%204.96309%2013.1734%204.49931%2012.4095%204.18289C11.6456%203.86647%2010.8269%203.70361%2010%203.70361L10%209.99991H16.2963Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",progress50:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M10%2016.2962C11.6699%2016.2962%2013.2714%2015.6328%2014.4522%2014.4521C15.633%2013.2713%2016.2963%2011.6698%2016.2963%209.99991C16.2963%208.33003%2015.633%206.72854%2014.4522%205.54776C13.2714%204.36697%2011.6699%203.70361%2010%203.70361L10%209.99991L10%2016.2962Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",progress75:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M3.70374%209.99991C3.70374%2011.2452%204.07301%2012.4625%204.76485%2013.4979C5.4567%2014.5334%206.44005%2015.3404%207.59054%2015.8169C8.74104%2016.2935%2010.007%2016.4182%2011.2284%2016.1752C12.4497%2015.9323%2013.5716%2015.3326%2014.4522%2014.4521C15.3327%2013.5715%2015.9324%2012.4496%2016.1753%2011.2283C16.4183%2010.0069%2016.2936%208.74092%2015.8171%207.59042C15.3405%206.43992%2014.5335%205.45658%2013.4981%204.76473C12.4626%204.07288%2011.2453%203.70361%2010%203.70361L10%209.99991L3.70374%209.99991Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",progress100:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99991%22%20r%3D%226.2963%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A"},signal:{signal0:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A",signal25:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",signal50:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",signal75:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",signal100:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93933%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70447%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A"},feeling:{guffaw:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M16.887%2010C16.887%2013.8037%2013.8036%2016.8871%209.99999%2016.8871C6.19638%2016.8871%203.11295%2013.8037%203.11295%2010C3.11295%206.19644%206.19638%203.11301%209.99999%203.11301C13.8036%203.11301%2016.887%206.19644%2016.887%2010Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M12.5355%2013.5821C13.0482%2013.1841%2013.3951%2012.6107%2013.5405%2012.0327C13.5934%2011.8226%2013.5051%2011.6349%2013.3518%2011.5331C13.2036%2011.4346%2013.0031%2011.4203%2012.8265%2011.5131C11.0615%2012.4407%208.94609%2012.4427%207.1828%2011.513C7.00629%2011.4199%206.80602%2011.4343%206.65798%2011.5329C6.50518%2011.6346%206.41701%2011.8217%206.46844%2012.0312C6.61029%2012.609%206.95079%2013.1833%207.46449%2013.5821C8.14361%2014.1093%209.05608%2014.3999%2010%2014.3999C10.9439%2014.3999%2011.8564%2014.1093%2012.5355%2013.5821Z%22%20fill%3D%22white%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.4%22%2F%3E%0A%3C%2Fsvg%3E%0A",smile:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2011.8518C7.03705%2011.8518%207.77779%2013.7037%2010%2013.7037C12.2222%2013.7037%2012.963%2011.8518%2012.963%2011.8518%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",noninductive:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.9259%22%20width%3D%221.48148%22%20height%3D%221.11111%22%20rx%3D%220.555556%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.9259%22%20width%3D%221.48148%22%20height%3D%221.11111%22%20rx%3D%220.555556%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2012.5927C7.03705%2012.5927%208.14816%2012.5927%2010.3704%2012.5927C12.5926%2012.5927%2012.963%2012.5927%2012.963%2012.5927%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",dissatisfied:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2013.7037C7.03705%2013.7037%207.77779%2011.8519%2010%2011.8519C12.2222%2011.8519%2012.963%2013.7037%2012.963%2013.7037%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",impatient:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.47573%2011.731C6.96306%2012.129%206.61613%2012.7024%206.47071%2013.2804C6.41784%2013.4905%206.50617%2013.6782%206.65942%2013.78C6.80761%2013.8785%207.00813%2013.8928%207.18477%2013.8C8.9498%2012.8724%2011.0652%2012.8704%2012.8285%2013.8002C13.005%2013.8932%2013.2052%2013.8788%2013.3533%2013.7802C13.5061%2013.6785%2013.5942%2013.4914%2013.5428%2013.2819C13.401%2012.7041%2013.0605%2012.1298%2012.5468%2011.731C11.8676%2011.2038%2010.9552%2010.9132%2010.0112%2010.9132C9.06732%2010.9132%208.15485%2011.2038%207.47573%2011.731Z%22%20fill%3D%22white%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.4%22%2F%3E%0A%3C%2Fsvg%3E%0A"},arrow:{"down-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.90467%203.99244C8.84611%204.1338%208.84611%204.31301%208.84611%204.67143V13.716L5.92068%2010.7906C5.66724%2010.5371%205.54052%2010.4104%205.39916%2010.3519C5.21067%2010.2738%204.9989%2010.2738%204.81041%2010.3519C4.66905%2010.4104%204.54233%2010.5371%204.28889%2010.7906C4.03545%2011.044%203.90873%2011.1707%203.85018%2011.3121C3.77211%2011.5006%203.77211%2011.7124%203.85018%2011.9008C3.90873%2012.0422%204.03545%2012.1689%204.28889%2012.4224L9.03476%2017.1682C9.07839%2017.2127%209.12737%2017.2617%209.18231%2017.3166L9.18239%2017.3167L9.18241%2017.3167C9.40545%2017.5398%209.53035%2017.6647%209.65346%2017.7313C9.67085%2017.7408%209.6882%2017.7492%209.70577%2017.7564C9.89425%2017.8345%2010.106%2017.8345%2010.2945%2017.7564C10.4359%2017.6979%2010.5626%2017.5712%2010.816%2017.3177C10.8986%2017.2352%2010.9677%2017.1661%2011.0253%2017.1056L15.7095%2012.4214L15.7095%2012.4213C15.963%2012.1679%2016.0897%2012.0412%2016.1482%2011.8998C16.2263%2011.7114%2016.2263%2011.4996%2016.1482%2011.3111C16.0897%2011.1697%2015.963%2011.043%2015.7095%2010.7896C15.4561%2010.5361%2015.3294%2010.4094%2015.188%2010.3509C14.9995%2010.2728%2014.7878%2010.2728%2014.5993%2010.3509C14.4579%2010.4094%2014.3312%2010.5361%2014.0778%2010.7896L14.0777%2010.7896L11.1538%2013.7135V4.67142C11.1538%204.31301%2011.1538%204.1338%2011.0953%203.99244C11.0172%203.80395%2010.8674%203.6542%2010.6789%203.57613C10.5376%203.51758%2010.3584%203.51758%209.99996%203.51758C9.64154%203.51758%209.46233%203.51758%209.32097%203.57613C9.13249%203.6542%208.98274%203.80395%208.90467%203.99244Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","right-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.32508%2011.7609C3.46644%2011.8194%203.64565%2011.8194%204.00407%2011.8194H13.049L10.1235%2014.745C9.87002%2014.9984%209.7433%2015.1251%209.68475%2015.2665C9.60668%2015.455%209.60668%2015.6668%209.68475%2015.8552C9.7433%2015.9966%209.87002%2016.1233%2010.1235%2016.3768C10.3769%2016.6302%2010.5036%2016.7569%2010.645%2016.8155C10.8335%2016.8935%2011.0452%2016.8935%2011.2337%2016.8155C11.3751%2016.7569%2011.5018%2016.6302%2011.7552%2016.3768L16.5105%2011.6215C16.5524%2011.5803%2016.5983%2011.5344%2016.6493%2011.4834L16.6495%2011.4831C16.8561%2011.2765%2016.9785%2011.1542%2017.0484%2011.0394C17.0648%2011.0128%2017.0782%2010.9866%2017.0893%2010.9599C17.1674%2010.7714%2017.1674%2010.5596%2017.0893%2010.3711C17.0308%2010.2298%2016.904%2010.1031%2016.6506%209.84962C16.5685%209.76752%2016.4997%209.69872%2016.4394%209.64123L11.7542%204.95601C11.5007%204.70257%2011.374%204.57585%2011.2327%204.5173C11.0442%204.43923%2010.8324%204.43923%2010.6439%204.5173C10.5026%204.57585%2010.3758%204.70257%2010.1224%204.95601L10.1224%204.95601C9.86895%205.20945%209.74223%205.33617%209.68368%205.47753C9.60561%205.66601%209.60561%205.87779%209.68368%206.06627C9.74223%206.20764%209.86895%206.33436%2010.1224%206.5878L13.0463%209.51175H4.00407C3.64565%209.51175%203.46644%209.51175%203.32508%209.5703C3.1366%209.64837%202.98685%209.79812%202.90877%209.98661C2.85022%2010.128%202.85022%2010.3072%202.85022%2010.6656C2.85022%2011.024%202.85022%2011.2032%202.90877%2011.3446C2.98685%2011.5331%203.1366%2011.6828%203.32508%2011.7609Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","up-green":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.0936%2017.3406C11.1522%2017.1992%2011.1522%2017.02%2011.1522%2016.6616V7.61701L14.0776%2010.5424C14.3311%2010.7959%2014.4578%2010.9226%2014.5991%2010.9811C14.7876%2011.0592%2014.9994%2011.0592%2015.1879%2010.9811C15.3292%2010.9226%2015.456%2010.7959%2015.7094%2010.5424C15.9628%2010.289%2016.0896%2010.1623%2016.1481%2010.0209C16.2262%209.83243%2016.2262%209.62066%2016.1481%209.43217C16.0896%209.29081%2015.9628%209.16409%2015.7094%208.91065L10.9645%204.16576C10.9207%204.12105%2010.8714%204.07178%2010.8161%204.01648L10.8159%204.0163C10.5916%203.792%2010.4666%203.66696%2010.3428%203.60058C10.3261%203.59154%2010.3094%203.58358%2010.2925%203.57658C10.104%203.49851%209.89226%203.49851%209.70378%203.57658C9.56242%203.63514%209.4357%203.76186%209.18226%204.0153C9.09955%204.09801%209.03034%204.16722%208.97258%204.22785L4.28878%208.91166C4.03534%209.1651%203.90862%209.29182%203.85006%209.43318C3.77199%209.62166%203.77199%209.83344%203.85006%2010.0219C3.90862%2010.1633%204.03534%2010.29%204.28878%2010.5434C4.54221%2010.7969%204.66893%2010.9236%204.8103%2010.9822C4.99878%2011.0602%205.21056%2011.0602%205.39904%2010.9822C5.5404%2010.9236%205.66712%2010.7969%205.92056%2010.5434L5.92056%2010.5434L8.84449%207.61951V16.6616C8.84449%2017.02%208.84449%2017.1992%208.90305%2017.3406C8.98112%2017.5291%209.13087%2017.6788%209.31935%2017.7569C9.46072%2017.8154%209.63992%2017.8154%209.99834%2017.8154C10.3568%2017.8154%2010.536%2017.8154%2010.6773%2017.7569C10.8658%2017.6788%2011.0156%2017.5291%2011.0936%2017.3406Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndDown-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.5062%206.72126C4.56476%206.86262%204.69148%206.98934%204.94492%207.24278L11.3404%2013.6382L7.20313%2013.6382C6.84471%2013.6382%206.66551%2013.6382%206.52414%2013.6968C6.33566%2013.7749%206.18591%2013.9246%206.10784%2014.1131C6.04928%2014.2545%206.04928%2014.4337%206.04928%2014.7921C6.04928%2015.1505%206.04928%2015.3297%206.10784%2015.4711C6.18591%2015.6596%206.33566%2015.8093%206.52414%2015.8874C6.66551%2015.9459%206.84471%2015.9459%207.20313%2015.9459L13.9194%2015.9459C13.9805%2015.9465%2014.0484%2015.9465%2014.1243%2015.9465H14.1243C14.4353%2015.9465%2014.6114%2015.9465%2014.7449%2015.9082C14.7659%2015.9023%2014.7859%2015.8954%2014.8052%2015.8874C14.9937%2015.8093%2015.1434%2015.6596%2015.2215%2015.4711C15.2801%2015.3297%2015.2801%2015.1505%2015.2801%2014.7921C15.2801%2014.6767%2015.2801%2014.5799%2015.2781%2014.497L15.2781%207.86957C15.2781%207.51115%2015.2781%207.33194%2015.2195%207.19058C15.1415%207.0021%2014.9917%206.85235%2014.8032%206.77428C14.6619%206.71572%2014.4827%206.71572%2014.1243%206.71572C13.7658%206.71572%2013.5866%206.71572%2013.4453%206.77428C13.2568%206.85235%2013.107%207.0021%2013.029%207.19058C12.9704%207.33194%2012.9704%207.51115%2012.9704%207.86957L12.9704%2012.0047L6.5767%205.61099C6.32326%205.35755%206.19654%205.23083%206.05518%205.17228C5.8667%205.09421%205.65492%205.09421%205.46644%205.17228C5.32508%205.23083%205.19836%205.35755%204.94492%205.61099C4.69148%205.86443%204.56476%205.99115%204.5062%206.13251C4.42813%206.32099%204.42813%206.53277%204.5062%206.72126Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndUp-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.05431%2016.1597C6.19567%2016.1012%206.32239%2015.9745%206.57583%2015.721L12.9712%209.32568L12.9712%2013.4626C12.9712%2013.821%2012.9712%2014.0002%2013.0297%2014.1416C13.1078%2014.3301%2013.2576%2014.4798%2013.446%2014.5579C13.5874%2014.6164%2013.7666%2014.6164%2014.125%2014.6164C14.4834%2014.6164%2014.6626%2014.6164%2014.804%2014.5579C14.9925%2014.4798%2015.1422%2014.3301%2015.2203%2014.1416C15.2789%2014.0002%2015.2789%2013.821%2015.2789%2013.4626L15.2789%206.75233C15.2795%206.68972%2015.2795%206.62004%2015.2795%206.54182L15.2795%206.54157C15.2795%206.22585%2015.2795%206.04918%2015.2395%205.91495C15.2339%205.89605%2015.2276%205.878%2015.2203%205.86053C15.1422%205.67204%2014.9925%205.52229%2014.804%205.44422C14.6626%205.38567%2014.4834%205.38567%2014.125%205.38567L14.125%205.38567C14.0075%205.38567%2013.9093%205.38567%2013.8254%205.38773L7.20256%205.38773C6.84414%205.38773%206.66493%205.38773%206.52357%205.44628C6.33509%205.52436%206.18534%205.6741%206.10727%205.86259C6.04871%206.00395%206.04871%206.18315%206.04871%206.54156V6.54157L6.04871%206.54159C6.04871%206.9%206.04871%207.0792%206.10727%207.22056C6.18534%207.40905%206.33509%207.55879%206.52357%207.63687C6.66493%207.69542%206.84414%207.69542%207.20256%207.69542H11.3379L4.94405%2014.0892C4.69061%2014.3427%204.56389%2014.4694%204.50533%2014.6108C4.42726%2014.7992%204.42726%2015.011%204.50533%2015.1995C4.56389%2015.3409%204.69061%2015.4676%204.94405%2015.721C5.19749%2015.9745%205.32421%2016.1012%205.46557%2016.1597C5.65405%2016.2378%205.86583%2016.2378%206.05431%2016.1597Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","down-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.90467%203.99244C8.84611%204.1338%208.84611%204.31301%208.84611%204.67143V13.716L5.92068%2010.7906C5.66724%2010.5371%205.54052%2010.4104%205.39916%2010.3519C5.21067%2010.2738%204.9989%2010.2738%204.81041%2010.3519C4.66905%2010.4104%204.54233%2010.5371%204.28889%2010.7906C4.03545%2011.044%203.90873%2011.1707%203.85018%2011.3121C3.77211%2011.5006%203.77211%2011.7124%203.85018%2011.9008C3.90873%2012.0422%204.03545%2012.1689%204.28889%2012.4224L9.03476%2017.1682C9.07839%2017.2127%209.12737%2017.2617%209.18231%2017.3166L9.18239%2017.3167L9.18241%2017.3167C9.40545%2017.5398%209.53035%2017.6647%209.65346%2017.7313C9.67085%2017.7408%209.6882%2017.7492%209.70577%2017.7564C9.89425%2017.8345%2010.106%2017.8345%2010.2945%2017.7564C10.4359%2017.6979%2010.5626%2017.5712%2010.816%2017.3177C10.8986%2017.2352%2010.9677%2017.1661%2011.0253%2017.1056L15.7095%2012.4214L15.7095%2012.4213C15.963%2012.1679%2016.0897%2012.0412%2016.1482%2011.8998C16.2263%2011.7114%2016.2263%2011.4996%2016.1482%2011.3111C16.0897%2011.1697%2015.963%2011.043%2015.7095%2010.7896C15.4561%2010.5361%2015.3294%2010.4094%2015.188%2010.3509C14.9995%2010.2728%2014.7878%2010.2728%2014.5993%2010.3509C14.4579%2010.4094%2014.3312%2010.5361%2014.0778%2010.7896L14.0777%2010.7896L11.1538%2013.7135V4.67142C11.1538%204.31301%2011.1538%204.1338%2011.0953%203.99244C11.0172%203.80395%2010.8674%203.6542%2010.6789%203.57613C10.5376%203.51758%2010.3584%203.51758%209.99996%203.51758C9.64154%203.51758%209.46233%203.51758%209.32097%203.57613C9.13249%203.6542%208.98274%203.80395%208.90467%203.99244Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","right-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.32508%2011.7609C3.46644%2011.8194%203.64565%2011.8194%204.00407%2011.8194H13.049L10.1235%2014.745C9.87002%2014.9984%209.7433%2015.1251%209.68475%2015.2665C9.60668%2015.455%209.60668%2015.6668%209.68475%2015.8552C9.7433%2015.9966%209.87002%2016.1233%2010.1235%2016.3768C10.3769%2016.6302%2010.5036%2016.7569%2010.645%2016.8155C10.8335%2016.8935%2011.0452%2016.8935%2011.2337%2016.8155C11.3751%2016.7569%2011.5018%2016.6302%2011.7552%2016.3768L16.5105%2011.6215C16.5524%2011.5803%2016.5983%2011.5344%2016.6493%2011.4834L16.6495%2011.4831C16.8561%2011.2765%2016.9785%2011.1542%2017.0484%2011.0394C17.0648%2011.0128%2017.0782%2010.9866%2017.0893%2010.9599C17.1674%2010.7714%2017.1674%2010.5596%2017.0893%2010.3711C17.0308%2010.2298%2016.904%2010.1031%2016.6506%209.84962C16.5685%209.76752%2016.4997%209.69872%2016.4394%209.64123L11.7542%204.95601C11.5007%204.70257%2011.374%204.57585%2011.2327%204.5173C11.0442%204.43923%2010.8324%204.43923%2010.6439%204.5173C10.5026%204.57585%2010.3758%204.70257%2010.1224%204.95601L10.1224%204.95601C9.86895%205.20945%209.74223%205.33617%209.68368%205.47753C9.60561%205.66601%209.60561%205.87779%209.68368%206.06627C9.74223%206.20764%209.86895%206.33436%2010.1224%206.5878L13.0463%209.51175H4.00407C3.64565%209.51175%203.46644%209.51175%203.32508%209.5703C3.1366%209.64837%202.98685%209.79812%202.90877%209.98661C2.85022%2010.128%202.85022%2010.3072%202.85022%2010.6656C2.85022%2011.024%202.85022%2011.2032%202.90877%2011.3446C2.98685%2011.5331%203.1366%2011.6828%203.32508%2011.7609Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","up-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.0936%2017.3406C11.1522%2017.1992%2011.1522%2017.02%2011.1522%2016.6616V7.61701L14.0776%2010.5424C14.3311%2010.7959%2014.4578%2010.9226%2014.5991%2010.9811C14.7876%2011.0592%2014.9994%2011.0592%2015.1879%2010.9811C15.3292%2010.9226%2015.456%2010.7959%2015.7094%2010.5424C15.9628%2010.289%2016.0896%2010.1623%2016.1481%2010.0209C16.2262%209.83243%2016.2262%209.62066%2016.1481%209.43217C16.0896%209.29081%2015.9628%209.16409%2015.7094%208.91065L10.9645%204.16576C10.9207%204.12105%2010.8714%204.07178%2010.8161%204.01648L10.8159%204.0163C10.5916%203.792%2010.4666%203.66696%2010.3428%203.60058C10.3261%203.59154%2010.3094%203.58358%2010.2925%203.57658C10.104%203.49851%209.89226%203.49851%209.70378%203.57658C9.56242%203.63514%209.4357%203.76186%209.18226%204.0153C9.09955%204.09801%209.03034%204.16722%208.97258%204.22785L4.28878%208.91166C4.03534%209.1651%203.90862%209.29182%203.85006%209.43318C3.77199%209.62166%203.77199%209.83344%203.85006%2010.0219C3.90862%2010.1633%204.03534%2010.29%204.28878%2010.5434C4.54221%2010.7969%204.66893%2010.9236%204.8103%2010.9822C4.99878%2011.0602%205.21056%2011.0602%205.39904%2010.9822C5.5404%2010.9236%205.66712%2010.7969%205.92056%2010.5434L5.92056%2010.5434L8.84449%207.61951V16.6616C8.84449%2017.02%208.84449%2017.1992%208.90305%2017.3406C8.98112%2017.5291%209.13087%2017.6788%209.31935%2017.7569C9.46072%2017.8154%209.63992%2017.8154%209.99834%2017.8154C10.3568%2017.8154%2010.536%2017.8154%2010.6773%2017.7569C10.8658%2017.6788%2011.0156%2017.5291%2011.0936%2017.3406Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndDown-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.5062%206.72126C4.56476%206.86262%204.69148%206.98934%204.94492%207.24278L11.3404%2013.6382L7.20313%2013.6382C6.84471%2013.6382%206.66551%2013.6382%206.52414%2013.6968C6.33566%2013.7749%206.18591%2013.9246%206.10784%2014.1131C6.04928%2014.2545%206.04928%2014.4337%206.04928%2014.7921C6.04928%2015.1505%206.04928%2015.3297%206.10784%2015.4711C6.18591%2015.6596%206.33566%2015.8093%206.52414%2015.8874C6.66551%2015.9459%206.84471%2015.9459%207.20313%2015.9459L13.9194%2015.9459C13.9805%2015.9465%2014.0484%2015.9465%2014.1243%2015.9465H14.1243C14.4353%2015.9465%2014.6114%2015.9465%2014.7449%2015.9082C14.7659%2015.9023%2014.7859%2015.8954%2014.8052%2015.8874C14.9937%2015.8093%2015.1434%2015.6596%2015.2215%2015.4711C15.2801%2015.3297%2015.2801%2015.1505%2015.2801%2014.7921C15.2801%2014.6767%2015.2801%2014.5799%2015.2781%2014.497L15.2781%207.86957C15.2781%207.51115%2015.2781%207.33194%2015.2195%207.19058C15.1415%207.0021%2014.9917%206.85235%2014.8032%206.77428C14.6619%206.71572%2014.4827%206.71572%2014.1243%206.71572C13.7658%206.71572%2013.5866%206.71572%2013.4453%206.77428C13.2568%206.85235%2013.107%207.0021%2013.029%207.19058C12.9704%207.33194%2012.9704%207.51115%2012.9704%207.86957L12.9704%2012.0047L6.5767%205.61099C6.32326%205.35755%206.19654%205.23083%206.05518%205.17228C5.8667%205.09421%205.65492%205.09421%205.46644%205.17228C5.32508%205.23083%205.19836%205.35755%204.94492%205.61099C4.69148%205.86443%204.56476%205.99115%204.5062%206.13251C4.42813%206.32099%204.42813%206.53277%204.5062%206.72126Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndUp-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.05431%2016.1597C6.19567%2016.1012%206.32239%2015.9745%206.57583%2015.721L12.9712%209.32568L12.9712%2013.4626C12.9712%2013.821%2012.9712%2014.0002%2013.0297%2014.1416C13.1078%2014.3301%2013.2576%2014.4798%2013.446%2014.5579C13.5874%2014.6164%2013.7666%2014.6164%2014.125%2014.6164C14.4834%2014.6164%2014.6626%2014.6164%2014.804%2014.5579C14.9925%2014.4798%2015.1422%2014.3301%2015.2203%2014.1416C15.2789%2014.0002%2015.2789%2013.821%2015.2789%2013.4626L15.2789%206.75233C15.2795%206.68972%2015.2795%206.62004%2015.2795%206.54182L15.2795%206.54157C15.2795%206.22585%2015.2795%206.04918%2015.2395%205.91495C15.2339%205.89605%2015.2276%205.878%2015.2203%205.86053C15.1422%205.67204%2014.9925%205.52229%2014.804%205.44422C14.6626%205.38567%2014.4834%205.38567%2014.125%205.38567L14.125%205.38567C14.0075%205.38567%2013.9093%205.38567%2013.8254%205.38773L7.20256%205.38773C6.84414%205.38773%206.66493%205.38773%206.52357%205.44628C6.33509%205.52436%206.18534%205.6741%206.10727%205.86259C6.04871%206.00395%206.04871%206.18315%206.04871%206.54156V6.54157L6.04871%206.54159C6.04871%206.9%206.04871%207.0792%206.10727%207.22056C6.18534%207.40905%206.33509%207.55879%206.52357%207.63687C6.66493%207.69542%206.84414%207.69542%207.20256%207.69542H11.3379L4.94405%2014.0892C4.69061%2014.3427%204.56389%2014.4694%204.50533%2014.6108C4.42726%2014.7992%204.42726%2015.011%204.50533%2015.1995C4.56389%2015.3409%204.69061%2015.4676%204.94405%2015.721C5.19749%2015.9745%205.32421%2016.1012%205.46557%2016.1597C5.65405%2016.2378%205.86583%2016.2378%206.05431%2016.1597Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A"},shape:{cross:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%223.70374%22%20y%3D%228.14795%22%20width%3D%2212.5926%22%20height%3D%223.7037%22%20rx%3D%220.740741%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",up:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M9.44533%205.81157C9.74012%205.47858%2010.2598%205.47858%2010.5546%205.81157L16.2868%2012.2867C16.71%2012.7647%2016.3706%2013.5184%2015.7322%2013.5184H4.26776C3.62933%2013.5184%203.28995%2012.7647%203.71313%2012.2867L9.44533%205.81157Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A",down:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.5547%2014.1884C10.2599%2014.5214%209.74019%2014.5214%209.4454%2014.1884L3.71321%207.71335C3.29002%207.23532%203.6294%206.48161%204.26784%206.48161L15.7322%206.48161C16.3707%206.48161%2016.7101%207.23532%2016.2869%207.71335L10.5547%2014.1884Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","rhomboid-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M2.1415%2011.1984C1.8412%2010.9074%201.8412%2010.4256%202.1415%2010.1346L9.48467%203.01785C9.77196%202.73942%2010.2284%202.73942%2010.5157%203.01786L17.8586%2010.1346C18.1589%2010.4256%2018.1589%2010.9074%2017.8586%2011.1984L10.5157%2018.3151C10.2284%2018.5936%209.77196%2018.5936%209.48467%2018.3152L2.1415%2011.1984Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","rhomboid-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M2.1415%2011.1984C1.8412%2010.9074%201.8412%2010.4256%202.1415%2010.1346L9.48467%203.01785C9.77196%202.73942%2010.2284%202.73942%2010.5157%203.01786L17.8586%2010.1346C18.1589%2010.4256%2018.1589%2010.9074%2017.8586%2011.1984L10.5157%2018.3151C10.2284%2018.5936%209.77196%2018.5936%209.48467%2018.3152L2.1415%2011.1984Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-greed":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-pink":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FB9D9D%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-black":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22black%22%2F%3E%0A%3C%2Fsvg%3E%0A","triangle-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_237)%22%3E%0A%3Cpath%20d%3D%22M9.32308%204.41301C9.58368%203.82623%2010.4164%203.82623%2010.677%204.413L15.9526%2016.2917C16.1701%2016.7815%2015.8115%2017.3331%2015.2756%2017.3331H4.72454C4.18858%2017.3331%203.83002%2016.7815%204.04756%2016.2917L9.32308%204.41301Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_237%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%20transform%3D%22translate(0%200.666504)%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A","indicate-greed":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","indicate-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","indicate-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A"},feedback2:{mistake2:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.12194%206.33702C4.1805%206.47839%204.30722%206.6051%204.56066%206.85854L8.36822%2010.6661L4.56062%2014.4737C4.30718%2014.7272%204.18046%2014.8539%204.12191%2014.9952C4.04384%2015.1837%204.04384%2015.3955%204.12191%2015.584C4.18046%2015.7253%204.30718%2015.8521%204.56062%2016.1055C4.81406%2016.3589%204.94078%2016.4857%205.08214%2016.5442C5.27062%2016.6223%205.4824%2016.6223%205.67089%2016.5442C5.81225%2016.4857%205.93897%2016.3589%206.19241%2016.1055L10%2012.2979L13.8074%2016.1053C14.0609%2016.3588%2014.1876%2016.4855%2014.329%2016.544C14.5174%2016.6221%2014.7292%2016.6221%2014.9177%2016.544C15.0591%2016.4855%2015.1858%2016.3588%2015.4392%2016.1053L15.4392%2016.1053C15.6927%2015.8519%2015.8194%2015.7252%2015.8779%2015.5838C15.956%2015.3953%2015.956%2015.1835%2015.8779%2014.9951C15.8194%2014.8537%2015.6927%2014.727%2015.4392%2014.4735L15.4392%2014.4735L11.6318%2010.6661L15.4392%206.85872C15.6926%206.60528%2015.8193%206.47856%2015.8779%206.3372C15.956%206.14871%2015.956%205.93694%2015.8779%205.74845C15.8193%205.60709%2015.6926%205.48037%2015.4392%205.22693C15.1857%204.97349%2015.059%204.84677%2014.9177%204.78822C14.7292%204.71015%2014.5174%204.71015%2014.3289%204.78822C14.1876%204.84677%2014.0608%204.97349%2013.8074%205.22693L10%209.03433L6.19244%205.22676C5.939%204.97332%205.81228%204.8466%205.67092%204.78805C5.48244%204.70997%205.27066%204.70997%205.08218%204.78805C4.94082%204.8466%204.8141%204.97332%204.56066%205.22676L4.56066%205.22676C4.30722%205.4802%204.1805%205.60692%204.12194%205.74828C4.04387%205.93676%204.04387%206.14854%204.12194%206.33702Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A",warn2:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M8.49778%205.00963C8.48513%204.56774%208.47881%204.3468%208.56086%204.17746C8.63301%204.02856%208.75124%203.90689%208.89802%203.83052C9.06494%203.74365%209.28597%203.74365%209.72805%203.74365H10.272C10.714%203.74365%2010.9351%203.74365%2011.102%203.83052C11.2488%203.9069%2011.367%204.02856%2011.4392%204.17746C11.5212%204.3468%2011.5149%204.56775%2011.5022%205.00964L11.2644%2013.3173C11.2524%2013.737%2011.2464%2013.9468%2011.1609%2014.1065C11.0857%2014.2471%2010.9687%2014.3609%2010.826%2014.432C10.6639%2014.5129%2010.454%2014.5129%2010.0342%2014.5129H9.96582C9.54601%2014.5129%209.33611%2014.5129%209.17397%2014.432C9.0313%2014.3609%208.91426%2014.2471%208.83904%2014.1065C8.75357%2013.9468%208.74756%2013.737%208.73555%2013.3173L8.49778%205.00963Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3Crect%20x%3D%228.76917%22%20y%3D%2215.2817%22%20width%3D%222.46154%22%20height%3D%222.46154%22%20rx%3D%220.769231%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",correct2:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_248)%22%3E%0A%3Cpath%20d%3D%22M15.689%205.69723C15.5476%205.75578%2015.4209%205.8825%2015.1675%206.13594L7.82436%2013.4791L4.83279%2010.4875C4.57935%2010.2341%204.45263%2010.1073%204.31127%2010.0488C4.12278%209.97071%203.91101%209.97071%203.72252%2010.0488C3.58116%2010.1073%203.45444%2010.2341%203.201%2010.4875C2.94756%2010.7409%202.82084%2010.8676%202.76229%2011.009C2.68422%2011.1975%202.68422%2011.4093%202.76229%2011.5978C2.82084%2011.7391%202.94756%2011.8658%203.201%2012.1193L7.0085%2015.9268C7.26194%2016.1802%207.38866%2016.3069%207.53002%2016.3655C7.7185%2016.4436%207.93028%2016.4436%208.11876%2016.3655C8.26013%2016.3069%208.38685%2016.1802%208.64028%2015.9268C8.66387%2015.9032%208.68636%2015.8807%208.7078%2015.8592L16.7993%207.76772C17.0527%207.51428%2017.1794%207.38756%2017.238%207.2462C17.3161%207.05772%2017.3161%206.84594%2017.238%206.65746C17.1794%206.5161%2017.0527%206.38938%2016.7993%206.13594C16.5458%205.8825%2016.4191%205.75578%2016.2777%205.69723C16.0893%205.61915%2015.8775%205.61915%2015.689%205.69723Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_248%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%20transform%3D%22translate(0%200.666504)%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A"},flag:{"flag-green":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","flag-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","flag-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A"},cell:{"cell-0":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A","cell-25":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A","cell-50":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A","cell-75":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A","cell-100":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A"}},F2=[{title:"sheet.cf.iconSet.direction",group:[{name:"3Arrows",list:[F.arrow["up-green"],F.arrow["right-gold"],F.arrow["down-red"]]},{name:"3ArrowsGray",list:[F.arrow["up-gray"],F.arrow["right-gray"],F.arrow["down-gray"]]},{name:"4Arrows",list:[F.arrow["up-green"],F.arrow["rightAndUp-gold"],F.arrow["rightAndDown-gold"],F.arrow["down-red"]]},{name:"4ArrowsGray",list:[F.arrow["up-gray"],F.arrow["rightAndUp-gray"],F.arrow["rightAndDown-gray"],F.arrow["down-gray"]]},{name:"5Arrows",list:[F.arrow["up-green"],F.arrow["rightAndUp-gold"],F.arrow["right-gold"],F.arrow["rightAndDown-gold"],F.arrow["down-red"]]},{name:"5ArrowsGray",list:[F.arrow["up-gray"],F.arrow["rightAndUp-gray"],F.arrow["right-gray"],F.arrow["rightAndDown-gray"],F.arrow["down-gray"]]},{name:"3Triangles",list:[F.shape.up,F.shape.cross,F.shape.down]}]},{title:"sheet.cf.iconSet.shape",group:[{name:"3TrafficLights1",list:[F.shape["roundness-greed"],F.shape["roundness-gold"],F.shape["roundness-red"]]},{name:"3Signs",list:[F.shape["roundness-greed"],F.shape["triangle-gold"],F.shape["rhomboid-red"]]},{name:"3TrafficLights2",list:[F.shape["indicate-greed"],F.shape["indicate-gold"],F.shape["indicate-red"]]},{name:"4RedToBlack",list:[F.shape["roundness-red"],F.shape["roundness-pink"],F.shape["roundness-gray"],F.shape["roundness-black"]]},{name:"4TrafficLights",list:[F.shape["roundness-greed"],F.shape["roundness-gold"],F.shape["roundness-red"],F.shape["roundness-black"]]}]},{title:"sheet.cf.iconSet.mark",group:[{name:"3Symbols",list:[F.feedback.correct,F.feedback.warn,F.feedback.mistake]},{name:"3Symbols2",list:[F.feedback2.correct2,F.feedback2.warn2,F.feedback2.mistake2]},{name:"3Flags",list:[F.flag["flag-green"],F.flag["flag-gold"],F.flag["flag-red"]]}]},{title:"sheet.cf.iconSet.rank",group:[{name:"4Rating",list:[F.signal.signal25,F.signal.signal50,F.signal.signal75,F.signal.signal100]},{name:"5Rating",list:[F.signal.signal0,F.signal.signal25,F.signal.signal50,F.signal.signal75,F.signal.signal100]},{name:"5Quarters",list:[F.progress.progress100,F.progress.progress75,F.progress.progress50,F.progress.progress25,F.progress.progress0]},{name:"_5Felling",list:[F.feeling.guffaw,F.feeling.smile,F.feeling.noninductive,F.feeling.dissatisfied,F.feeling.impatient]},{name:"5Boxes",list:[F.cell["cell-100"],F.cell["cell-75"],F.cell["cell-50"],F.cell["cell-25"],F.cell["cell-0"]]},{name:"3Stars",list:[F.star.starFull,F.star.starIncomplete,F.star.starEmpty]}]}],K=F2.reduce((a,r)=>{const{group:t}=r;for(const i of t)a[i.name]=i.list;return a},{});for(const a in K){const r=K[a];Object.freeze(r)}const w2="EMPTY_ICON_TYPE",i2={type:u.CommandType.MUTATION,id:"sheet.mutation.move-conditional-rule",handler(a,r){if(!r)return!1;const{unitId:t,subUnitId:i,start:e,end:n}=r;return a.get(C.ConditionalFormattingRuleModel).moveRulePriority(t,i,e,n),!0}},W2=a=>{const{unitId:r,subUnitId:t}=a,i=m2(a.start,a.end);if(!i)return[];const[e,n]=i;return[{id:i2.id,params:{unitId:r,subUnitId:t,start:e,end:n}}]},v2=(a,r)=>{const t=a.get(C.ConditionalFormattingRuleModel),{unitId:i,subUnitId:e,cfId:n}=r,s=[...t.getSubunitRules(i,e)||[]],l=s.findIndex(d=>d.cfId===n),o=s[l-1];if(l>-1){const d=s[l],c=[{id:l2.id,params:{unitId:i,subUnitId:e,rule:u.Tools.deepClone(d)}}];if(s.splice(l,1),l!==0){const h=s[0];if(h){const f=f2({id:h.cfId,type:"before"},{id:o.cfId,type:"after"},s,w=>w.cfId);if(!f)return c;const[g,m]=f,D={unitId:i,subUnitId:e,start:g,end:m};c.push({id:i2.id,params:D})}}return c}return[]},n2={type:u.CommandType.MUTATION,id:"sheet.mutation.delete-conditional-rule",handler(a,r){if(!r)return!1;const{unitId:t,subUnitId:i,cfId:e}=r;return a.get(C.ConditionalFormattingRuleModel).deleteRule(t,i,e),!0}},q2=(a,r)=>({id:n2.id,params:{unitId:r.unitId,subUnitId:r.subUnitId,cfId:r.rule.cfId}}),l2={type:u.CommandType.MUTATION,id:"sheet.mutation.add-conditional-rule",handler(a,r){if(!r)return!1;const{unitId:t,subUnitId:i,rule:e}=r;return a.get(C.ConditionalFormattingRuleModel).addRule(t,i,e),!0}},J={type:u.CommandType.MUTATION,id:"sheet.mutation.conditional-formatting-formula-mark-dirty",handler(){return!0}},o2={type:u.CommandType.MUTATION,id:"sheet.mutation.set-conditional-rule",handler(a,r){if(!r)return!1;const{unitId:t,subUnitId:i,rule:e}=r,n=r.cfId||r.rule.cfId;return a.get(C.ConditionalFormattingRuleModel).setRule(t,i,e,n),!0}},Z2=(a,r)=>{const t=a.get(C.ConditionalFormattingRuleModel),{unitId:i,subUnitId:e}=r,n=r.cfId||r.rule.cfId,s=t.getRule(i,e,n);return s?[{id:o2.id,params:{unitId:i,subUnitId:e,cfId:n,rule:u.Tools.deepClone(s)}}]:[]},G2="ssheets-conditional-formatting.config",Y2={};var H2=Object.defineProperty,X2=Object.getOwnPropertyDescriptor,K2=(a,r,t,i)=>{for(var e=i>1?void 0:i?X2(r,t):r,n=a.length-1,s;n>=0;n--)(s=a[n])&&(e=(i?s(r,t,e):s(e))||e);return i&&e&&H2(r,t,e),e},z=(a,r)=>(t,i)=>r(t,i,a),x=(a=>(a[a.NOT_REGISTER=1]="NOT_REGISTER",a[a.SUCCESS=2]="SUCCESS",a[a.WAIT=3]="WAIT",a[a.ERROR=4]="ERROR",a))(x||{});const J2=a=>{const r=a&&a[0]&&a[0][0];return(r==null?void 0:r.t)===u.CellValueType.BOOLEAN?r.v===u.BooleanNumber.TRUE||r.v===!0:r?r.v:!1};C.ConditionalFormattingFormulaService=class extends u.Disposable{constructor(t,i,e,n,s){super();p(this,"_formulaMap",new Map);p(this,"_cache",new Map);this._commandService=t,this._injector=i,this._activeDirtyManagerService=e,this._conditionalFormattingViewModel=n,this._conditionalFormattingRuleModel=s,this._initFormulaCalculationResultChange(),this._initRuleChange(),this._initCache(),this.disposeWithMe(u.toDisposable(()=>{this._cache.clear(),this._formulaMap.clear()}))}_initCache(){const t=this._injector.get(C.ConditionalFormattingService);this.disposeWithMe(t.ruleComputeStatus$.subscribe(i=>{const{unitId:e,subUnitId:n,status:s,result:l,cfId:o}=i;s==="end"&&l&&this._ensureCacheMap(e,n).set(o,l)})),this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe(i=>{if(i.type==="delete"){const{unitId:e,subUnitId:n,rule:s}=i;this._deleteCache(e,n,s.cfId)}}))}_initRuleChange(){const t=i=>{switch(i.type){case R.colorScale:return i.config.some(e=>e.value.type===B.formula);case R.highlightCell:return i.subType===y.formula;case R.dataBar:return[i.config.max,i.config.min].some(e=>e.type===B.formula);case R.iconSet:return i.config.some(e=>e.value.type===B.formula)}};this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe(i=>{const{unitId:e,subUnitId:n,rule:s,oldRule:l}=i;i.type==="delete"&&this._removeFormulaByCfId(e,n,s.cfId),i.type==="set"&&(t(s.rule)||l&&t(l.rule))&&this._removeFormulaByCfId(e,n,s.cfId)}))}_initFormulaCalculationResultChange(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(t.id===U.SetFormulaCalculationResultMutation.id){const i=t.params;for(const e in i.unitOtherData)for(const n in i.unitOtherData[e]){const s=new Set;for(const l in i.unitOtherData[e][n]){const o=new u.ObjectMatrix(i.unitOtherData[e][n][l]),d=this._ensureSubunitFormulaMap(e,n).getValue(l,["formulaId"]);if(!d)continue;const c=d.ranges;if(!c)continue;const h=d.result,f=c[0].startRow,g=c[0].startColumn;o.forValue((m,D,w)=>{h.setValue(f+m,g+D,J2(w))}),d.status=2,s.add(d.cfId)}for(const l of s){const o=this._conditionalFormattingRuleModel.getRule(e,n,l);o&&this._conditionalFormattingViewModel.markRuleDirty(e,n,o)}}}})),this._activeDirtyManagerService.register(J.id,{commandId:J.id,getDirtyData(t){return{dirtyUnitOtherFormulaMap:t.params}}})}_ensureSubunitFormulaMap(t,i){let e=this._formulaMap.get(t);e||(e=new Map,this._formulaMap.set(t,e));let n=e.get(i);return n||(n=new u.RefAlias([],["formulaId","id"]),e.set(i,n)),n}_ensureCacheMap(t,i){let e=this._cache.get(t);e||(e=new Map,this._cache.set(t,e));let n=e.get(i);return n||(n=new Map,e.set(i,n)),n}_deleteCache(t,i,e){const n=this._cache.get(t);if(n){const s=n.get(i);s&&(e?s.delete(e):s.clear())}}getCache(t,i,e){return this._ensureCacheMap(t,i).get(e)}getSubUnitFormulaMap(t,i){var e;return(e=this._formulaMap.get(t))==null?void 0:e.get(i)}registerFormulaWithRange(t,i,e,n,s=[{startRow:0,endRow:0,startColumn:0,endColumn:0}]){const l=this._ensureSubunitFormulaMap(t,i);if(l.getValue(this.createCFormulaId(e,n),["id"]))return;const o=this._createFormulaId(t,i);l.addValue({formulaText:n,cfId:e,id:this.createCFormulaId(e,n),ranges:s,formulaId:o,status:3,result:new u.ObjectMatrix});const d={unitId:t,subUnitId:i,formulaMap:{[o]:{f:n,ranges:s}}};this._commandService.executeCommand(U.SetOtherFormulaMutation.id,d).then(()=>{this._commandService.executeCommand(J.id,{[t]:{[i]:{[o]:!0}}})})}_removeFormulaByCfId(t,i,e){const n=this._ensureSubunitFormulaMap(t,i);n.deleteValue(e);const s=n.getValues().filter(o=>o.cfId===e);s.forEach(o=>{n.deleteValue(o.id,["id"])});const l=s.map(o=>o.formulaId);this._commandService.executeCommand(U.RemoveOtherFormulaMutation.id,{unitId:t,subUnitId:i,formulaIdList:l})}getFormulaResult(t,i,e,n,s=0,l=0){const o=this.getSubUnitFormulaMap(t,i);if(!o)return{status:1};const d=o.getValue(this.createCFormulaId(e,n),["id"]);return d?d.status===2&&d.result?{result:d.result.getValue(s,l),status:2}:d.status===3?{status:3}:{status:4}:{status:1}}_createFormulaId(t,i){return`sheet.cf_${t}_${i}_${u.Tools.generateRandomId(8)}`}createCFormulaId(t,i){return`${t}_${i}`}},C.ConditionalFormattingFormulaService=K2([z(0,u.Inject(u.ICommandService)),z(1,u.Inject(u.Injector)),z(2,u.Inject(U.IActiveDirtyManagerService)),z(3,u.Inject(X)),z(4,u.Inject(C.ConditionalFormattingRuleModel))],C.ConditionalFormattingFormulaService);function Q(a,r){return Math.abs(a-r)<Number.EPSILON}const b=a=>[void 0,null].includes(a),k=a=>{var i,e;if(!a)return null;if(a.t===u.CellValueType.BOOLEAN)return a.v===u.BooleanNumber.TRUE?U.BooleanValue.TRUE:U.BooleanValue.FALSE;const r=a.v,t=(e=(i=a.p)==null?void 0:i.body)==null?void 0:e.dataStream.replace(/\r\n$/,"");return b(r)?b(t)?null:t:r},c2=86400;function E2(a,r=!0){if(r&&a>=0){if(a===0)return[1900,1,0];if(a===60)return[1900,2,29];if(a<60)return[1900,a<32?1:2,(a-1)%31+1]}let t=a+68569+2415019;const i=Math.floor(4*t/146097);t=t-Math.floor((146097*i+3)/4);const e=Math.floor(4e3*(t+1)/1461001);t=t-Math.floor(1461*e/4)+31;const n=Math.floor(80*t/2447),s=t-Math.floor(2447*n/80);t=Math.floor(n/11);const l=n+2-12*t;return[100*(i-49)+e+t|0,l|0,s|0]}const p2=a=>{let r=a|0;const t=c2*(a-r);let i=Math.floor(t);t-i>.9999&&(i+=1,i===c2&&(i=0,r+=1));const e=i<0?c2+i:i,[n,s,l]=E2(a,!0),o=Math.floor(e/60/60)%60,d=Math.floor(e/60)%60,c=Math.floor(e)%60;return u.dayjs(`${n}/${s}/${l} ${o}:${d}:${c}`).valueOf()},t2=(a,r,t)=>{switch(a.type){case B.max:{let i=0;return r.forValue((e,n,s)=>{s>i&&(i=s)}),{status:x.SUCCESS,result:i}}case B.min:{let i;return r.forValue((e,n,s)=>{i===void 0&&(i=s),s<i&&(i=s)}),{status:x.SUCCESS,result:i}}case B.percent:{let i,e;r.forValue((l,o,d)=>{(i===void 0||e===void 0)&&(i=d,e=d),d>i&&(i=d),d<e&&(e=d)});const n=(i||0)-(e||0),s=Math.max(Math.min(Number(a.value)||0,100),0);return{status:x.SUCCESS,result:n*(s/100)+(e||0)}}case B.percentile:{const i=r.toNativeArray().sort((d,c)=>d-c),e=Math.max(Math.min(Number(a.value)||0,100),0),n=(i.length-1)*e/100,s=Math.floor(n),l=n-s,o=i[s]+(i[Math.min(s+1,i.length-1)]-i[s])*l;return{status:x.SUCCESS,result:o}}case B.formula:{const{accessor:i,unitId:e,subUnitId:n,cfId:s}=t,l=String(a.value),o=i.get(C.ConditionalFormattingFormulaService);return o.registerFormulaWithRange(e,n,s,l),o.getFormulaResult(e,n,s,l)}case B.num:{const i=Number(a.value);return{status:x.SUCCESS,result:Number.isNaN(i)?0:i}}}},z2=(a,r,t,i)=>{const{accessor:e}=i,n=e.get(X),s=new u.ObjectMatrix;return t.ranges.forEach(l=>{u.Range.foreach(l,(o,d)=>{const c=n.getCellCf(a,r,o,d);if(c){const h=c.cfList.find(f=>f.cfId===t.cfId);h!=null&&h.ruleCache&&s.setValue(o,d,h.ruleCache)}})}),s},Y=(a,r)=>{switch(a.operator){case A.between:{if(typeof a.value!="object"||!a.value.length)return;const t=Math.min(...a.value),i=Math.max(...a.value);return r>=t&&r<=i}case A.notBetween:{if(typeof a.value!="object"||!a.value.length)return;const t=Math.min(...a.value),i=Math.max(...a.value);return!(r>=t&&r<=i)}case A.equal:{const t=a.value||0;return Q(t,r)}case A.notEqual:{const t=a.value||0;return!Q(t,r)}case A.greaterThan:{const t=a.value||0;return r>t}case A.greaterThanOrEqual:{const t=a.value||0;return r>=t}case A.lessThan:{const t=a.value||0;return r<t}case A.lessThanOrEqual:{const t=a.value||0;return r<=t}default:return!1}},A2=a=>{switch(a){case A.greaterThan:return A.lessThanOrEqual;case A.greaterThanOrEqual:return A.lessThan;case A.lessThan:return A.greaterThanOrEqual;case A.lessThanOrEqual:return A.greaterThan}return a},_2=(a,r)=>{const t=n=>n.a!==void 0?n:{...n,a:1},i=a.findIndex(n=>n.value>=r),e=i-1;if(i===0)return a[0].color.toRgbString();if(e>=0){const n=a[e],s=a[i];if(n.color.isValid&&s.color.isValid){const l=t(n.color.toRgb()),o=t(s.color.toRgb()),d=s.value-n.value,c=(r-n.value)/d,h=["r","g","b","a"].reduce((g,m)=>{const D=l[m];return g[m]=(o[m]-D)*c+D,g},{});return new u.ColorKit(h).toRgbString()}}else return a[a.length-1].color.toRgbString()},e2=(a,r,t)=>a.map(i=>{if(i.startColumn>t||i.startRow>r)return null;const e={...i};return e.endRow=Math.min(e.endRow,r),e.endColumn=Math.min(e.endColumn,t),e}).filter(i=>!!i);function Q2(a){let r=0;return new u.ObjectMatrix(a).forValue((t,i,e)=>{r=Math.max(Number.isNaN(r)?0:r,Number(e))}),r}const t0="",e0={type:R.colorScale,handle:async(a,r)=>{var h;const t=a.rule,i=r.accessor.get(C.ConditionalFormattingFormulaService),{worksheet:e}=r,n=new u.ObjectMatrix,s=e2(a.ranges,e.getMaxRows()-1,e.getMaxColumns()-1);s.forEach(f=>{u.Range.foreach(f,(g,m)=>{const D=e==null?void 0:e.getCellRaw(g,m),w=D&&D.v;if(!b(w)&&(D==null?void 0:D.t)===u.CellValueType.NUMBER){const v=Number(w);!Number.isNaN(v)&&n.setValue(g,m,v)}})});const l=new u.ObjectMatrix;s.forEach(f=>{u.Range.foreach(f,(g,m)=>{l.setValue(g,m,t0)})});const o=[...t.config].sort((f,g)=>f.index-g.index).map(f=>({value:t2(f.value,n,{...r,cfId:a.cfId}),color:new u.ColorKit(f.color)}));if(o.some(f=>G.isObject(f.value)?f.value.status!==x.SUCCESS:!1))return(h=i.getCache(r.unitId,r.subUnitId,a.cfId))!=null?h:l;const c=o.map(f=>f.color).reduce((f,g,m)=>(f.result.push({color:g,value:f.sortValue[m]}),f),{result:[],sortValue:o.map(f=>f.value.result).sort((f,g)=>f-g)}).result;return c.length<=1||n.forValue((f,g,m)=>{const D=_2(c,m);D&&l.setValue(f,g,D)}),l}},M2="sheet-conditional-rule-data-bar",u2="#ffbe38",d2="#abd91a",i0=34;class y2 extends G.SheetExtension{constructor(){super(...arguments);p(this,"_paddingRightAndLeft",2);p(this,"_paddingTopAndBottom",2);p(this,"uKey",M2);p(this,"Z_INDEX",i0);p(this,"_radius",1)}draw(t,i,e,n){const{worksheet:s}=e;if(!s)return!1;t.save(),u.Range.foreach(e.rowColumnSegment,(l,o)=>{if(!s.getRowVisible(l)||!s.getColVisible(o))return;const d=s.getCell(l,o);if(d&&d.dataBar){const{color:c,value:h,startPoint:f,isGradient:g}=d.dataBar,m=e.getCellWithCoordByIndex(l,o,!1);let{isMerged:D,isMergedMainCell:w,mergeInfo:v,startY:E,endY:_,startX:M,endX:O}=m;if(D||(w&&(E=v.startY,_=v.endY,M=v.startX,O=v.endX),!this.isRenderDiffRangesByCell(v,n)))return;const P=O-M,g2=_+G.FIX_ONE_PIXEL_BLUR_OFFSET-E,s2=P-this._paddingRightAndLeft*2,L2=g2-this._paddingTopAndBottom*2;if(h>0){const H=Math.max(s2*(1-f/100)*h/100,1),$=M+this._paddingRightAndLeft+f/100*s2,W=E+this._paddingTopAndBottom;if(g){const q=t.createLinearGradient($,W,$+H,W);q.addColorStop(0,c),q.addColorStop(1,"rgb(255 255 255)"),t.fillStyle=q,t.strokeStyle=c,t.lineWidth=1}else t.fillStyle=c;this._drawRectWithRoundedCorner(t,$,W,H,L2,!1,!0,!0,!1),g&&t.stroke()}else{const H=Math.max(s2*f/100*Math.abs(h)/100,1),$=M+this._paddingRightAndLeft+f/100*s2-H,W=E+this._paddingTopAndBottom;if(g){const q=t.createLinearGradient($,W,$+H,W);q.addColorStop(0,"rgb(255 255 255)"),q.addColorStop(1,c),t.fillStyle=q,t.strokeStyle=c,t.lineWidth=1}else t.fillStyle=c;this._drawRectWithRoundedCorner(t,$,W,H,L2,!0,!1,!1,!0),g&&t.stroke()}}}),t.restore()}_drawRectWithRoundedCorner(t,i,e,n,s,l,o,d,c){const h=this._radius;!s||!n||(t.beginPath(),t.moveTo(i+h,e),t.lineTo(i+n-h,e),o?t.arcTo(i+n,e,i+n,e+h,h):t.lineTo(i+n,e),t.lineTo(i+n,e+s-h),d?t.arcTo(i+n,e+s,i+n-h,e+s,h):t.lineTo(i+n,e+s),t.lineTo(i+h,e+s),c?t.arcTo(i,e+s,i,e+s-h,h):t.lineTo(i,e+s),t.lineTo(i,e+h),l?t.arcTo(i,e,i+h,e,h):t.lineTo(i,e),t.closePath(),t.fill())}}G.SpreadsheetExtensionRegistry.add(y2);const N={};Object.freeze(N);const n0={type:R.dataBar,handle:async(a,r)=>{const t=a.rule,i=r.accessor.get(C.ConditionalFormattingFormulaService),{worksheet:e}=r,n=new u.ObjectMatrix,s=e2(a.ranges,e.getMaxRows()-1,e.getMaxColumns()-1);s.forEach(D=>{u.Range.foreach(D,(w,v)=>{const E=e==null?void 0:e.getCellRaw(w,v),_=E&&E.v;if(!b(_)&&(E==null?void 0:E.t)===u.CellValueType.NUMBER){const M=Number(_);!Number.isNaN(M)&&n.setValue(w,v,M)}})});const l=new u.ObjectMatrix;s.forEach(D=>{u.Range.foreach(D,(w,v)=>{l.setValue(w,v,N)})});const o=t2(t.config.min,n,{...r,cfId:a.cfId}),d=t2(t.config.max,n,{...r,cfId:a.cfId});let c=0,h=0;if(o.status===x.WAIT)return i.getCache(r.unitId,r.subUnitId,a.cfId)||l;if(o.status===x.SUCCESS){const D=Number(o.result);c=Number.isNaN(D)?0:D}else return l;if(d.status===x.WAIT)return i.getCache(r.unitId,r.subUnitId,a.cfId)||l;if(d.status===x.SUCCESS){const D=Number(d.result),w=Number.isNaN(D)?0:D;h=Math.max(w,c),c=Math.min(w,c)}else return l;const f=t.config.isGradient,g=t.isShowValue,m=D=>Math.max(Math.min(100,D),0);if(!(c===h||h<c)){if(c<0&&h<=0){const D=h-c,w=100;n.forValue((v,E,_)=>{if(_>h)return;const M=m((h-_)/D*100);l.setValue(v,E,{color:t.config.nativeColor||d2,startPoint:w,value:-M,isGradient:f,isShowValue:g})})}else if(c<0&&h>0){const D=Math.abs(h)+Math.abs(c),w=Math.abs(c)/D*100;n.forValue((v,E,_)=>{if(_)if(_>0){const M=m(Math.min(_/h,1)*100);l.setValue(v,E,{color:t.config.positiveColor||u2,startPoint:w,value:M,isGradient:f,isShowValue:g})}else{const M=m(Math.min(Math.abs(_)/Math.abs(c),1)*100);l.setValue(v,E,{color:t.config.nativeColor||d2,startPoint:w,value:-M,isGradient:f,isShowValue:g})}})}else if(c>=0&&h>0){const D=h-c,w=0;n.forValue((v,E,_)=>{if(_<c)return;const M=m((1-(h-_)/D)*100);l.setValue(v,E,{color:t.config.positiveColor||u2,startPoint:w,value:M,isGradient:f,isShowValue:g})})}}return l}},a0={type:R.highlightCell,handle:async(a,r)=>{const t=a.rule,{worksheet:i,unitId:e,subUnitId:n}=r,s=e2(a.ranges,i.getMaxRows()-1,i.getMaxColumns()-1),o=(()=>{switch(t.subType){case y.average:{let h=0,f=0;return s.forEach(g=>{u.Range.foreach(g,(m,D)=>{const w=i==null?void 0:i.getCellRaw(m,D),v=k(w||void 0);w&&w.t===u.CellValueType.NUMBER&&v!==void 0&&(h+=Number(v)||0,f++)})}),{average:h/f}}case y.uniqueValues:case y.duplicateValues:{const h=new Map;return s.forEach(f=>{u.Range.foreach(f,(g,m)=>{const D=i==null?void 0:i.getCellRaw(g,m),w=k(D||void 0);if(w!==void 0){const v=h.get(w);v?h.set(w,v+1):h.set(w,1)}})}),{count:h}}case y.rank:{const h=[];s.forEach(m=>{u.Range.foreach(m,(D,w)=>{const v=i==null?void 0:i.getCellRaw(D,w),E=k(v||void 0);v&&v.t===u.CellValueType.NUMBER&&E!==void 0&&h.push(Number(E)||0)})}),h.sort((m,D)=>D-m);const f=a.rule,g=f.isPercent?Math.floor(Math.max(Math.min(f.value,100),0)/100*h.length):Math.floor(Math.max(Math.min(f.isBottom?f.value-1:f.value,h.length),0));return f.isBottom?{rank:h[h.length-g-1]}:{rank:h[Math.max(g-1,0)]}}case y.formula:{const h=t;r.accessor.get(C.ConditionalFormattingFormulaService).registerFormulaWithRange(r.unitId,r.subUnitId,a.cfId,h.value,a.ranges);break}case y.timePeriod:switch(t.operator){case S.last7Days:return{timePeriod:{start:u.dayjs().subtract(7,"day").valueOf(),end:u.dayjs().valueOf()}};case S.lastMonth:return{timePeriod:{start:u.dayjs().startOf("month").subtract(1,"month").valueOf(),end:u.dayjs().endOf("month").subtract(1,"month").valueOf()}};case S.lastWeek:return{timePeriod:{start:u.dayjs().startOf("week").subtract(1,"week").valueOf(),end:u.dayjs().endOf("week").subtract(1,"week").valueOf()}};case S.nextMonth:return{timePeriod:{start:u.dayjs().startOf("month").add(1,"month").valueOf(),end:u.dayjs().endOf("month").add(1,"month").valueOf()}};case S.nextWeek:return{timePeriod:{start:u.dayjs().startOf("week").add(1,"week").valueOf(),end:u.dayjs().endOf("week").add(1,"week").valueOf()}};case S.thisMonth:return{timePeriod:{start:u.dayjs().startOf("month").valueOf(),end:u.dayjs().endOf("month").valueOf()}};case S.thisWeek:return{timePeriod:{start:u.dayjs().startOf("week").valueOf(),end:u.dayjs().endOf("week").valueOf()}};case S.today:return{timePeriod:{start:u.dayjs().startOf("day").valueOf(),end:u.dayjs().endOf("day").valueOf()}};case S.tomorrow:return{timePeriod:{start:u.dayjs().startOf("day").add(1,"day").valueOf(),end:u.dayjs().endOf("day").add(1,"day").valueOf()}};case S.yesterday:return{timePeriod:{start:u.dayjs().startOf("day").subtract(1,"day").valueOf(),end:u.dayjs().endOf("day").subtract(1,"day").valueOf()}}}}})(),d=(h,f)=>{const g=i==null?void 0:i.getCellRaw(h,f);switch(t.subType){case y.number:{const m=g&&Number(g.v);if(b(m)||Number.isNaN(m)||(g==null?void 0:g.t)!==u.CellValueType.NUMBER)return!1;const D=t;return Y({operator:D.operator,value:D.value||0},m||0)}case y.text:{const m=t,D=k(g),w=D===null?"":String(D),v=m.value||"";switch(m.operator){case I.beginsWith:return w.startsWith(v);case I.containsBlanks:return/^\s*$/.test(w);case I.notContainsBlanks:return!/^\s*$/.test(w);case I.containsErrors:return U.ERROR_TYPE_SET.has(w);case I.notContainsErrors:return!U.ERROR_TYPE_SET.has(w);case I.containsText:return w.indexOf(v)>-1;case I.notContainsText:return w.indexOf(v)===-1;case I.endsWith:return w.endsWith(v);case I.equal:return w===v;case I.notEqual:return w!==v;default:return!1}}case y.timePeriod:{const m=k(g);if(b(m)||Number.isNaN(Number(m))||(g==null?void 0:g.t)!==u.CellValueType.NUMBER)return!1;const D=p2(Number(m)),{start:w,end:v}=o.timePeriod;return D>=w&&D<=v}case y.average:{const m=g&&g.v,D=Number(m);if(b(m)||Number.isNaN(D)||(g==null?void 0:g.t)!==u.CellValueType.NUMBER)return!1;const w=t,v=o==null?void 0:o.average;switch(w.operator){case A.greaterThan:return D>v;case A.greaterThanOrEqual:return D>=v;case A.lessThan:return D<v;case A.lessThanOrEqual:return D<=v;case A.equal:return Q(D,v);case A.notEqual:return!Q(D,v);default:return!1}}case y.rank:{const m=k(g),D=Number(m);if(b(m)||Number.isNaN(D)||(g==null?void 0:g.t)!==u.CellValueType.NUMBER)return!1;const w=o.rank;return t.isBottom?D<=w:D>=w}case y.uniqueValues:{const m=k(g);return b(m)?!1:o.count.get(m)===1}case y.duplicateValues:{const m=k(g);return b(m)?!1:o.count.get(m)!==1}case y.formula:{const m=t,w=r.accessor.get(C.ConditionalFormattingFormulaService).getFormulaResult(e,n,a.cfId,m.value,h,f);return w&&w.status===x.SUCCESS?w.result===!0:!1}}},c=new u.ObjectMatrix;if(t.subType===y.formula){const h=t,f=r.accessor.get(C.ConditionalFormattingFormulaService),g=f.getSubUnitFormulaMap(e,n),m=g==null?void 0:g.getValue(f.createCFormulaId(a.cfId,h.value),["id"]);if(!m||m.status!==x.SUCCESS)return f.getCache(e,n,a.cfId)||c}return s.forEach(h=>{u.Range.foreach(h,(f,g)=>{d(f,g)?c.setValue(f,g,t.style):c.setValue(f,g,N)})}),c}},s0={type:R.iconSet,handle:async(a,r)=>{var f;const t=a.rule,i=r.accessor.get(C.ConditionalFormattingFormulaService),{worksheet:e}=r,n=new u.ObjectMatrix,s=e2(a.ranges,e.getMaxRows()-1,e.getMaxColumns()-1);s.forEach(g=>{u.Range.foreach(g,(m,D)=>{const w=e==null?void 0:e.getCellRaw(m,D),v=w&&w.v;if(!b(v)&&(w==null?void 0:w.t)===u.CellValueType.NUMBER){const E=Number(v);!Number.isNaN(E)&&n.setValue(m,D,E)}})});const l=new u.ObjectMatrix;s.forEach(g=>{u.Range.foreach(g,(m,D)=>{l.setValue(m,D,N)})});const o=t.config.map(g=>t2(g.value,n,{...r,cfId:a.cfId}));if(o.some(g=>g.status!==x.SUCCESS))return(f=i.getCache(r.unitId,r.subUnitId,a.cfId))!=null?f:l;const c=o.map((g,m)=>({operator:t.config[m].operator,value:Number(g.result)||0})).reduce((g,m,D,w)=>{const v=t.config[D];if(!D||D===w.length-1)g.push({...m,iconId:v.iconId,iconType:v.iconType});else{const E=w[D-1];Y(E,m.value)||g.push({...m,iconId:v.iconId,iconType:v.iconType})}return g},[]),h=t.isShowValue===void 0?!0:!!t.isShowValue;return n.forValue((g,m,D)=>{for(let w=0;w<c.length;w++){const v=c[w],E={...v},_={...v},{iconId:M,iconType:O}=v;if(w===0){if(Y(v,D)){l.setValue(g,m,{iconId:M,iconType:O,isShowValue:h});return}}else if(w===c.length-1){l.setValue(g,m,{iconId:M,iconType:O,isShowValue:h});return}else{const P=c[w-1];if(_.operator=A2(P.operator),_.value=P.value,Y(E,D)&&Y(_,D)){l.setValue(g,m,{iconId:M,iconType:O,isShowValue:h});return}}}}),l}};var r0=Object.defineProperty,l0=Object.getOwnPropertyDescriptor,o0=(a,r,t,i)=>{for(var e=i>1?void 0:i?l0(r,t):r,n=a.length-1,s;n>=0;n--)(s=a[n])&&(e=(i?s(r,t,e):s(e))||e);return i&&e&&r0(r,t,e),e},j=(a,r)=>(t,i)=>r(t,i,a);const c0=u.createInterceptorKey("conditional-formatting-before-update-rule-result");C.ConditionalFormattingService=class extends u.Disposable{constructor(t,i,e,n,s,l,o){super();p(this,"_ruleCacheMap",new Map);p(this,"_calculateUnit$",new T.Subject);p(this,"_ruleComputeStatus$",new T.Subject);p(this,"ruleComputeStatus$",this._ruleComputeStatus$.asObservable());p(this,"interceptorManager",new u.InterceptorManager({beforeUpdateRuleResult:c0}));p(this,"_calculationUnitMap",new Map);this._conditionalFormattingRuleModel=t,this._injector=i,this._conditionalFormattingViewModel=e,this._univerInstanceService=n,this._resourceManagerService=s,this._sheetInterceptorService=l,this._commandService=o,this._initCellChange(),this._initCacheManager(),this._initRemoteCalculate(),this._initSnapshot(),this._initSheetChange(),this._registerCalculationUnit(n0),this._registerCalculationUnit(e0),this._registerCalculationUnit(a0),this._registerCalculationUnit(s0),this._calculateUnit$.pipe(Z.bufferTime(100),Z.filter(d=>!!d.length),Z.map(d=>{const c=f=>`${f.unitId}_${f.subUnitId}_${f.rule.cfId}`;return d.reduce((f,g)=>{const m=c(g);return f.map[m]||(f.map[m]=g,f.list.push(g)),f},{map:{},list:[]}).list})).subscribe(d=>{d.forEach(c=>{this._handleCalculateUnit(c.unitId,c.subUnitId,c.rule)})}),this.disposeWithMe(()=>{this.interceptorManager.dispose()})}composeStyle(t,i,e,n){const s=this._conditionalFormattingViewModel.getCellCf(t,i,e,n);if(s){const l=s.cfList.map(c=>this._conditionalFormattingRuleModel.getRule(t,i,c.cfId)).filter(c=>!!c).reverse(),o=l.findIndex(c=>c==null?void 0:c.stopIfTrue);return o>-1&&l.splice(o+1),l.reduce((c,h)=>{var m;const f=h.rule.type,g=s.cfList.find(D=>D.cfId===h.cfId);if(g!=null&&g.isDirty&&this._calculateUnit$.next({unitId:t,subUnitId:i,rule:h}),f===R.highlightCell)g.ruleCache&&u.Tools.deepMerge(c,{style:g.ruleCache});else if(f===R.colorScale){const D=g==null?void 0:g.ruleCache;D&&typeof D=="string"&&(c.style={...(m=c.style)!=null?m:{},bg:{rgb:D}})}else if(f===R.dataBar){const D=g==null?void 0:g.ruleCache;D&&D!==N&&(c.dataBar=D,c.isShowValue=D.isShowValue)}else if(f===R.iconSet){const D=g==null?void 0:g.ruleCache;D&&D!==N&&(c.iconSet=D,c.isShowValue=D.isShowValue)}return c},{})}return null}_initSnapshot(){const t=e=>{const n=this._conditionalFormattingRuleModel.getUnitRules(e),s={};return n?(n.forEach((l,o)=>{s[o]=l}),JSON.stringify(s)):""},i=e=>{if(!e)return{};try{return JSON.parse(e)}catch{return{}}};this.disposeWithMe(this._resourceManagerService.registerPluginResource({pluginName:r2,businesses:[u.UniverInstanceType.UNIVER_SHEET],toJson:e=>t(e),parseJson:e=>i(e),onUnLoad:e=>{this._conditionalFormattingRuleModel.deleteUnitId(e)},onLoad:(e,n)=>{Object.keys(n).forEach(s=>{[...n[s]].reverse().forEach(o=>{this._conditionalFormattingRuleModel.addRule(e,s,o)})})}}))}_initSheetChange(){this.disposeWithMe(this._sheetInterceptorService.interceptCommand({getMutations:t=>{if(t.id===L.RemoveSheetCommand.id){const i=t.params,e=i.unitId||u0(this._univerInstanceService),n=i.subUnitId||d0(this._univerInstanceService);if(!n)return{redos:[],undos:[]};const s=this._conditionalFormattingRuleModel.getSubunitRules(e,n);if(!s)return{redos:[],undos:[]};const l=[],o=[];return s.forEach(d=>{const c={unitId:e,subUnitId:n,cfId:d.cfId};l.push({id:n2.id,params:c}),o.push(...v2(this._injector,c))}),{redos:l,undos:o}}return{redos:[],undos:[]}}}))}_registerCalculationUnit(t){this._calculationUnitMap.set(t.type,t)}_getComputedCache(t,i,e){var n,s;return(s=(n=this._ruleCacheMap.get(t))==null?void 0:n.get(i))==null?void 0:s.get(e)}_setComputedCache(t,i,e,n){let s=this._ruleCacheMap.get(t);s||(s=new Map,this._ruleCacheMap.set(t,s));let l=s.get(i);l||(l=new Map,s.set(i,l)),l.set(e,n)}_deleteComputeCache(t,i,e){const n=this._ruleCacheMap.get(t),s=n==null?void 0:n.get(i);s&&(s.delete(e),s.size||n==null||n.delete(i))}_initCacheManager(){this.disposeWithMe(this._conditionalFormattingViewModel.markDirty$.subscribe(t=>{this._deleteComputeCache(t.unitId,t.subUnitId,t.rule.cfId)})),this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.pipe(Z.filter(t=>t.type!=="sort")).subscribe(t=>{const{unitId:i,subUnitId:e,rule:n}=t;this._deleteComputeCache(i,e,n.cfId)}))}_initCellChange(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{const i=(e,n,s)=>{const l=new Set;return s.forEach(([o,d])=>{const c=this._conditionalFormattingViewModel.getCellCf(e,n,o,d);c==null||c.cfList.forEach(h=>l.add(h.cfId))}),[...l].map(o=>this._conditionalFormattingRuleModel.getRule(e,n,o)).filter(o=>!!o)};switch(t.id){case L.SetRangeValuesMutation.id:{const e=t.params,{subUnitId:n,unitId:s,cellValue:l}=e,o=[];new u.ObjectMatrix(l).forValue((c,h,f)=>{f&&Object.keys(f).some(m=>["p","v"].includes(m))&&o.push([c,h])}),i(s,n,o).forEach(c=>{this._conditionalFormattingViewModel.markRuleDirty(s,n,c),this._deleteComputeCache(s,n,c.cfId)});break}case L.InsertColMutation.id:case L.RemoveColMutation.id:{const{range:e,unitId:n,subUnitId:s}=t.params,l=this._conditionalFormattingRuleModel.getSubunitRules(n,s),o={...e,endColumn:Number.MAX_SAFE_INTEGER};l&&l.filter(c=>c.ranges.some(h=>u.Rectangle.intersects(h,o))).forEach(c=>{this._conditionalFormattingViewModel.markRuleDirty(n,s,c),this._deleteComputeCache(n,s,c.cfId)});break}case L.RemoveRowMutation.id:case L.InsertRowMutation.id:{const{range:e,unitId:n,subUnitId:s}=t.params,l=this._conditionalFormattingRuleModel.getSubunitRules(n,s),o={...e,endRow:Number.MAX_SAFE_INTEGER};l&&l.filter(c=>c.ranges.some(h=>u.Rectangle.intersects(h,o))).forEach(c=>{this._conditionalFormattingViewModel.markRuleDirty(n,s,c),this._deleteComputeCache(n,s,c.cfId)});break}case L.MoveRowsMutation.id:{const{sourceRange:e,targetRange:n,unitId:s,subUnitId:l}=t.params,o=this._conditionalFormattingRuleModel.getSubunitRules(s,l),d={startRow:Math.min(e.startRow,n.startRow),endRow:Number.MAX_SAFE_INTEGER,startColumn:0,endColumn:Number.MAX_SAFE_INTEGER};o&&o.filter(h=>h.ranges.some(f=>u.Rectangle.intersects(f,d))).forEach(h=>{this._conditionalFormattingViewModel.markRuleDirty(s,l,h),this._deleteComputeCache(s,l,h.cfId)});break}case L.MoveColsMutation.id:{const{sourceRange:e,targetRange:n,unitId:s,subUnitId:l}=t.params,o=this._conditionalFormattingRuleModel.getSubunitRules(s,l),d={startRow:0,endRow:Number.MAX_SAFE_INTEGER,startColumn:Math.min(e.startColumn,n.startColumn),endColumn:Number.MAX_SAFE_INTEGER};o&&o.filter(h=>h.ranges.some(f=>u.Rectangle.intersects(f,d))).forEach(h=>{this._conditionalFormattingViewModel.markRuleDirty(s,l,h),this._deleteComputeCache(s,l,h.cfId)});break}case L.MoveRangeMutation.id:{const{unitId:e,to:n,from:s}=t.params,l=o=>{const d=[];new u.ObjectMatrix(o.value).forValue((h,f)=>{d.push([h,f])}),i(e,o.subUnitId,d).forEach(h=>{this._conditionalFormattingViewModel.markRuleDirty(e,o.subUnitId,h),this._deleteComputeCache(e,o.subUnitId,h.cfId)})};l(n),l(s);break}case L.ReorderRangeMutation.id:{const{range:e,unitId:n,subUnitId:s}=t.params,l=this._conditionalFormattingRuleModel.getSubunitRules(n,s);l&&l.filter(d=>d.ranges.some(c=>u.Rectangle.intersects(c,e))).forEach(d=>{this._conditionalFormattingViewModel.markRuleDirty(n,s,d),this._deleteComputeCache(n,s,d.cfId)});break}}}))}_initRemoteCalculate(){this.disposeWithMe(this._ruleComputeStatus$.subscribe(({status:t,subUnitId:i,unitId:e,cfId:n,result:s})=>{const l=this._getComputedCache(e,i,n)||{};l.status=t,this._setComputedCache(e,i,n,l),t==="end"&&s&&(this.interceptorManager.fetchThroughInterceptors(this.interceptorManager.getInterceptPoints().beforeUpdateRuleResult)({subUnitId:i,unitId:e,cfId:n},void 0),s.forValue((o,d,c)=>{this._conditionalFormattingViewModel.setCellCfRuleCache(e,i,o,d,n,c)}))}))}async _handleCalculateUnit(t,i,e){if(!this._conditionalFormattingRuleModel.getRule(t,i,e.cfId))return;const n=this._univerInstanceService.getUnit(t),s=n==null?void 0:n.getSheetBySheetId(i);let l=this._getComputedCache(t,i,e.cfId);if(l&&["computing","end"].includes(l.status))return;l||(l={status:"computing"},this._setComputedCache(t,i,e.cfId,l));const o=this._calculationUnitMap.get(e.rule.type);if(!o||!s)return;const d={unitId:t,subUnitId:i,accessor:this._injector,workbook:n,worksheet:s},c=await o.handle(e,d);this._ruleComputeStatus$.next({status:"end",unitId:t,subUnitId:i,cfId:e.cfId,result:c})}},C.ConditionalFormattingService=o0([j(0,u.Inject(C.ConditionalFormattingRuleModel)),j(1,u.Inject(u.Injector)),j(2,u.Inject(X)),j(3,u.Inject(u.IUniverInstanceService)),j(4,u.Inject(u.IResourceManagerService)),j(5,u.Inject(L.SheetInterceptorService)),j(6,u.Inject(u.ICommandService))],C.ConditionalFormattingService);const u0=a=>a.getCurrentUnitForType(u.UniverInstanceType.UNIVER_SHEET).getUnitId(),d0=a=>{var r;return(r=a.getCurrentUnitForType(u.UniverInstanceType.UNIVER_SHEET).getActiveSheet())==null?void 0:r.getSheetId()};var h0=Object.defineProperty,g0=Object.getOwnPropertyDescriptor,C0=(a,r,t,i)=>{for(var e=i>1?void 0:i?g0(r,t):r,n=a.length-1,s;n>=0;n--)(s=a[n])&&(e=(i?s(r,t,e):s(e))||e);return i&&e&&h0(r,t,e),e},h2=(a,r)=>(t,i)=>r(t,i,a);C.UniverSheetsConditionalFormattingPlugin=(a2=class extends u.Plugin{constructor(r=Y2,t,i,e){super(),this._config=r,this._injector=t,this._commandService=i,this._configService=e;const{...n}=this._config;this._configService.setConfig(G2,n),[[C.ConditionalFormattingService],[C.ConditionalFormattingFormulaService],[C.ConditionalFormattingRuleModel],[X]].forEach(s=>{this._injector.add(s)}),[l2,n2,o2,i2,J].forEach(s=>{this._commandService.registerCommand(s)})}onStarting(){this._injector.get(C.ConditionalFormattingService)}},p(a2,"pluginName",r2),p(a2,"type",u.UniverInstanceType.UNIVER_SHEET),a2),C.UniverSheetsConditionalFormattingPlugin=C0([h2(1,u.Inject(u.Injector)),h2(2,u.Inject(u.ICommandService)),h2(3,u.IConfigService)],C.UniverSheetsConditionalFormattingPlugin);const x2="sheet-conditional-rule-icon",D0=35,R2=15,I2=2;class S2 extends G.SheetExtension{constructor(){super();p(this,"_paddingRightAndLeft",I2);p(this,"_width",R2);p(this,"_imageMap",new Map);p(this,"uKey",x2);p(this,"Z_INDEX",D0);p(this,"_radius",1);this._init()}draw(t,i,e,n){const{worksheet:s}=e;if(!s)return!1;t.save(),u.Range.foreach(e.rowColumnSegment,(l,o)=>{if(!s.getRowVisible(l)||!s.getColVisible(o))return;const d=s.getCell(l,o);if(d!=null&&d.iconSet){const{iconType:c,iconId:h}=d.iconSet;if(c===w2)return;const f=this._imageMap.get(this._createKey(c,h));if(!f)return;const g=e.getCellWithCoordByIndex(l,o,!1);let{isMerged:m,isMergedMainCell:D,mergeInfo:w,startY:v,endY:E,startX:_,endX:M}=g;if(m||(D&&(v=w.startY,E=w.endY,_=w.startX,M=w.endX),!this.isRenderDiffRangesByCell(w,n)))return;const O=M-_,P=E-v;if(this._width>P||this._width>O+this._paddingRightAndLeft*2)return;const g2=(P-this._width)/2+v;t.drawImage(f,_+this._paddingRightAndLeft,g2,this._width,this._width)}}),t.restore()}_init(){for(const t in K)K[t].forEach((e,n)=>{const s=this._createKey(t,String(n)),l=new Image;l.onload=()=>{this._imageMap.set(s,l)},l.src=e})}_createKey(t,i){return`${t}_${i}`}}G.SpreadsheetExtensionRegistry.add(S2);const f0=(a,r)=>r.length===a.length&&!a.some(t=>r.some(i=>!u.Rectangle.equals(i,t)));function b2(a){if(typeof a!="object"||a===null)return a;const r={};for(const t in a)if(a.hasOwnProperty(t)){const i=b2(a[t]);i!==void 0&&(r[t]=i)}return r}C.AddConditionalRuleMutation=l2,C.AddConditionalRuleMutationUndoFactory=q2,C.CFNumberOperator=A,C.CFRuleType=R,C.CFSubRuleType=y,C.CFTextOperator=I,C.CFTimePeriodOperator=S,C.CFValueType=B,C.ConditionalFormattingFormulaMarkDirty=J,C.ConditionalFormattingIcon=S2,C.ConditionalFormattingViewModel=X,C.DEFAULT_BG_COLOR=B2,C.DEFAULT_FONT_COLOR=T2,C.DEFAULT_PADDING=I2,C.DEFAULT_WIDTH=R2,C.DataBar=y2,C.DeleteConditionalRuleMutation=n2,C.DeleteConditionalRuleMutationUndoFactory=v2,C.EMPTY_ICON_TYPE=w2,C.EMPTY_STYLE=N,C.FormulaResultStatus=x,C.IconUKey=x2,C.MoveConditionalRuleMutation=i2,C.MoveConditionalRuleMutationUndoFactory=W2,C.SHEET_CONDITIONAL_FORMATTING_PLUGIN=r2,C.SetConditionalRuleMutation=o2,C.anchorUndoFactory=m2,C.compareWithNumber=Y,C.createCfId=C2,C.createDefaultRule=k2,C.createDefaultValue=U2,C.createDefaultValueByValueType=V2,C.dataBarUKey=M2,C.defaultDataBarNativeColor=d2,C.defaultDataBarPositiveColor=u2,C.filterRange=e2,C.findIndexByAnchor=V,C.getCacheStyleMatrix=z2,C.getCellValue=k,C.getColorScaleFromValue=_2,C.getMaxInFormulaResult=Q2,C.getOppositeOperator=A2,C.getValueByType=t2,C.iconGroup=F2,C.iconMap=K,C.isAnchorEqual=O2,C.isFloatsEqual=Q,C.isNullable=b,C.isRangesEqual=f0,C.moveByAnchor=D2,C.removeUndefinedAttr=b2,C.serialTimeToTimestamp=p2,C.setConditionalRuleMutationUndoFactory=Z2,C.toYMD_1900=E2,C.transformSupportSymmetryAnchor=f2,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-conditional-formatting",
3
- "version": "0.5.0-alpha.0",
3
+ "version": "0.5.0-beta.0",
4
4
  "private": false,
5
5
  "description": "Conditional formatting plugin for Univer Sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -48,20 +48,19 @@
48
48
  "rxjs": ">=7.0.0"
49
49
  },
50
50
  "dependencies": {
51
- "@univerjs/protocol": "0.1.39-alpha.38",
52
- "dayjs": "^1.11.13",
53
- "@univerjs/core": "0.5.0-alpha.0",
54
- "@univerjs/engine-formula": "0.5.0-alpha.0",
55
- "@univerjs/sheets": "0.5.0-alpha.0",
56
- "@univerjs/engine-render": "0.5.0-alpha.0"
51
+ "@univerjs/protocol": "0.1.39-alpha.45",
52
+ "@univerjs/core": "0.5.0-beta.0",
53
+ "@univerjs/engine-formula": "0.5.0-beta.0",
54
+ "@univerjs/sheets": "0.5.0-beta.0",
55
+ "@univerjs/engine-render": "0.5.0-beta.0"
57
56
  },
58
57
  "devDependencies": {
59
- "@univerjs/icons-svg": "^0.1.78",
58
+ "@univerjs/icons-svg": "^0.2.5",
60
59
  "rxjs": "^7.8.1",
61
60
  "typescript": "^5.6.3",
62
- "vite": "^5.4.10",
63
- "vitest": "^2.1.4",
64
- "@univerjs-infra/shared": "0.5.0-alpha.0"
61
+ "vite": "^5.4.11",
62
+ "vitest": "^2.1.5",
63
+ "@univerjs-infra/shared": "0.5.0-beta.0"
65
64
  },
66
65
  "space": {
67
66
  ".": {
@@ -81,7 +80,7 @@
81
80
  "test:watch": "vitest",
82
81
  "coverage": "vitest run --coverage",
83
82
  "lint:types": "tsc --noEmit",
84
- "build": "tsx build.ts"
83
+ "build": "univer-cli build"
85
84
  },
86
85
  "module": "./lib/es/index.js"
87
86
  }