rapid-spreadjs 1.0.121 → 1.0.122
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.
- package/dist/index.cjs.js +12 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +12 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/utils/business.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.cjs.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var rapidUtils=require("rapid-utils"),echarts=require("echarts"),math=require("mathjs"),fileSaver=require("file-saver");function _interopNamespaceDefault(e){var l=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(l,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}}),l.default=e,Object.freeze(l)}var echarts__namespace=_interopNamespaceDefault(echarts),math__namespace=_interopNamespaceDefault(math);function __awaiter(e,l,t,a){return new(t||(t=Promise))(function(n,y){function o(e){try{r(a.next(e))}catch(e){y(e)}}function x(e){try{r(a.throw(e))}catch(e){y(e)}}function r(e){var l;e.done?n(e.value):(l=e.value,l instanceof t?l:new t(function(e){e(l)})).then(o,x)}r((a=a.apply(e,l||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const CommonUtils={getFileBlob:e=>__awaiter(void 0,void 0,void 0,function*(){const l=yield fetch(e,{method:"GET"});if(l.ok){return yield l.blob()}return null}),getColLetterName:e=>{e+=1;let l="";for(;e>0;){const t=(e-1)%26;l=String.fromCharCode(t+65)+l,e=Math.floor((e-1)/26)}return l.toUpperCase()}},SheetUtils={getActiveSheetSelectCells:e=>e.getActiveSheet().getSelections(),setActiveSheetSelectCells:(e,l)=>{e.getActiveSheet().setSelection(l.row,l.col,l.rowCount,l.colCount)},getAllCellObjsByRange:(e,l,t=!1)=>SheetUtils.getAllCellObjsByRanges(e,[l],t),getAllCellObjsByRanges:(e,l,t=!1,a=!1)=>{let n=[];return l.forEach((l,a)=>{let y=e.getSpans(l);if(y=rapidUtils.orderByJson(y,t?["col","row"]:["row","col"],["asc","asc"]),y.forEach(e=>{n.push({row:e.row,col:e.col,rowCount:e.rowCount,colCount:e.colCount})}),void 0===l.row||void 0===l.col||void 0===l.rowCount||void 0===l.colCount)throw new Error("row、col、rowCount、colCount is required.");for(let t=l.row;t<+l.row+l.rowCount;t++)for(let a=l.col;a<l.col+l.colCount;a++){null==e.getSpan(t,a)&&n.push({row:t,col:a,rowCount:1,colCount:1})}}),a||(n=rapidUtils.orderByJson(n,t?["col","row"]:["row","col"],["asc","asc"])),n},getAllCellObjsByRangeStr:(e,l)=>{let t=[];if(l.indexOf(",")>-1){l.split(",").forEach((l,a)=>{const n=l.substring(l.lastIndexOf("!")+1);t.push(e.getRange(n))})}else t.push(e.getRange(l));return t},getSheetAllCellObjs:e=>{const l=[{row:0,col:0,rowCount:e.getRowCount(),colCount:e.getColumnCount()}];return SheetUtils.getAllCellObjsByRanges(e,l)},getSheetSelectCellObjs:(e,l=!1)=>{const t=e.getSelections();return SheetUtils.getAllCellObjsByRanges(e,t,l)},getActiveSheetSelectCellObjs:(e,l=!1)=>{const t=e.getActiveSheet();return SheetUtils.getSheetSelectCellObjs(t,l)},getSheetCellObjsByGroup:(e,l,t="row")=>{e.suspendPaint();const a=SheetUtils.getAllCellObjsByRange(e,l),n=rapidUtils.groupByJson(a,t),y=[];return rapidUtils.forEachJson(n,(e,l,t)=>{y.push(e)}),e.resumePaint(),y},getSheetSelectVals:(e,l=!1,t)=>{const a=SheetUtils.getSheetSelectCellObjs(e,l);let n=[];return a.forEach(l=>{let a=e.getValue(l.row,l.col);null!=t&&null!=t&&null==a&&(a=t),n.push(a)}),n},getActiveSheetSelectVals:(e,l=!1,t)=>{const a=e.getActiveSheet();return SheetUtils.getSheetSelectVals(a,l,t)},getSheetRangeValsByGroup:(e,l,t="row",a)=>{e.suspendPaint();const n=SheetUtils.getAllCellObjsByRange(e,l),y=rapidUtils.groupByJson(n,t),o=[];return rapidUtils.forEachJson(y,(l,t,n)=>{const y=[];rapidUtils.forEachJson(l,(l,t,n)=>{let o=e.getValue(l.row,l.col);null!=a&&null!=a&&null==o&&(o=a),y.push(o)}),o.push(y)}),e.resumePaint(),o},getCellType:(e,l,t,a)=>{let n;const y=l.getCellType(t,a);if(y instanceof e.Spread.Sheets.CellTypes.Button?n="button":y instanceof e.Spread.Sheets.CellTypes.RadioButtonList?n="radio":y instanceof e.Spread.Sheets.CellTypes.CheckBox?n="checkbox":y instanceof e.Spread.Sheets.CellTypes.CheckBoxList?n="checkboxList":y instanceof e.Spread.Sheets.CellTypes.HyperLink?n="hyperLink":y instanceof e.Spread.Sheets.CellTypes.ComboBox&&(n="comboBox"),null==n||null==n){const e=l.getStyle(t,a);e&&e.cellButtons&&e.cellButtons.length>0&&("openDateTimePicker"==e.cellButtons[0].command?e.dropDowns&&e.dropDowns.length>0&&(n=e.dropDowns[0].option.showDateRange?"dateRange":"date"):"openCalculator"==e.cellButtons[0].command&&(n="calc"))}return n},setSheetZoom:(e,l)=>{e.suspendPaint();const t=e.getSheetCount();for(let a=0;a<t;a++){e.getSheet(a).zoom(l)}e.resumePaint()},setActiveSheetSelectBgColor:(e,l)=>{const t=e.getActiveSheet();t.suspendPaint();SheetUtils.getActiveSheetSelectCells(e).forEach(e=>{t.getRange(e.row,e.col,e.rowCount,e.colCount).backColor(l)}),t.resumePaint()},setSheetBgColor:(e,l,t)=>{e.suspendPaint(),l.forEach(l=>{e.getRange(l.row,l.col,l.rowCount,l.colCount).backColor(t)}),e.resumePaint()},setSheetShowPrintPageLine:(e,l)=>{e.suspendPaint();const t=e.getSheetCount();for(let a=0;a<t;a++){e.getSheet(a).isPrintLineVisible(l)}e.resumePaint()},ignoreSheetShowStrs:e=>{const l=["#DIV/0!","#VALUE!","#NAME?","#N/A","#NULL!","#NUM!","#REF!"],t=e.Spread.Sheets.CellTypes.Text.prototype.paint;e.Spread.Sheets.CellTypes.Text.prototype.paint=function(e,a,n,y,o,x,r,s){l.some(e=>e==a)?t.call(this,e,"/",n,y,o,x,r,s):t.apply(this,arguments)}},setSheetAuxiliaryLine:(e,l,t,a,n=1,y="#409eff",o=!1)=>{let x=new e.Spread.Sheets.FloatingObjects.FloatingObject("floatLineBottom"+(o?"Hb":""),0,a,t,n),r=new e.Spread.Sheets.FloatingObjects.FloatingObject("floatLineRight"+(o?"Hb":""),t,0,n,a),s=document.createElement("div"),i=document.createElement("div");s.style.width=`${t}px`,s.style.height="1px",s.style.borderBottom=`${n}px dashed ${y}`,i.style.width="1px",i.style.height=`${a}px`,i.style.borderLeft=`${n}px dashed ${y}`,x.allowResize(!1),x.allowMove(!1),x.content(s),r.allowResize(!1),r.allowMove(!1),r.content(i),l.floatingObjects.add(x),l.floatingObjects.add(r)},setActiveSheetWatermark:(e,l,t,a=!0)=>{if(null==l||null==l)return;const n=e.getActiveSheet();n.suspendPaint(),l.forEach(e=>{n.getCell(e.row,e.col).watermark(t?`{${e.title}}`:void 0),n.setBindingPath(e.row,e.col,a?`${e.pathPrev}.${e.pathField}`:void 0)}),n.resumePaint()},setSheetCellDate:(e,l,t,a=!0)=>{t.forEach((t,n)=>{let y=l.getStyle(t.row,t.col);y||(y=new e.Spread.Sheets.Style),y.cellButtons=[{imageType:e.Spread.Sheets.ButtonImageType.dropdown,command:"openDateTimePicker",visibility:e.Spread.Sheets.ButtonVisibility.onSelected}],y.dropDowns=[{type:e.Spread.Sheets.DropDownType.dateTimePicker,option:{showTime:!1,showDateRange:!1}}],y.formatter=t.dateFormat,y.shrinkToFit=a,l.setStyle(t.row,t.col,y)})},getRangeStr:e=>`${CommonUtils.getColLetterName(e.col)}${e.row+1}:${CommonUtils.getColLetterName(e.col+e.colCount-1)}${e.row+e.rowCount}`,getCellsRangeStr:(e,l,t)=>{const a=SheetUtils.getAllCellObjsByRanges(e,[t]);let n=[];a.forEach(t=>{const a=e.getValue(t.row,t.col),y=e.getFormula(t.row,t.col);(1==l&&!y&&null!=a&&""!==a||2==l&&(null==a||null==a||""==a)||3==l&&y)&&(n.push(t),2!=l||null!=a&&null!=a&&""!=a||e.setFormatter(t.row,t.col,"@"))});const y=e.name();return"="+n.map(e=>{const l=(e=>{let l="";for(;e>=0&&(l=String.fromCharCode(65+e%26)+l,!((e=Math.floor(e/26)-1)<0)););return l})(e.col),t=e.row+1;e.rowCount>1||e.colCount;return`${y}!${l}${t}`}).join(",")},pasteCellValues:(e,l)=>__awaiter(void 0,void 0,void 0,function*(){if(!navigator.clipboard||!navigator.clipboard.readText)return void(null!=l&&null!=l&&"function"==typeof l&&l(!1,"您的浏览器不支持剪贴板读取功能!"));if("denied"===(yield navigator.permissions.query({name:"clipboard-read"})).state)return void(null!=l&&null!=l&&"function"==typeof l&&l(!1,"剪贴板读取权限被拒绝!"));function t(e){const l=[];let t=0;for(let a=0;a<e.length;a++){const n=e[a].trim();""===n?t++:(t>0&&l.length,l.push(n),t=0)}return l}const a=SheetUtils.getSheetSelectCellObjs(e),n=rapidUtils.groupByJson(a,"row"),y=[];rapidUtils.forEachJson(n,(e,l,t)=>{y.push(e)});const o=function(e){const l=[];let a=[],n="",y=!1;for(let o=0;o<e.length;o++){const x=e[o];if('"'===x)y&&'"'===e[o+1]?(n+='"',o++):y=!y;else if("\t"!==x||y)if("\n"!==x&&"\r"!==x||y)n+=x;else{"\r"===x&&"\n"===e[o+1]&&o++,a.push(n);const y=t(a);y.length>0&&l.push(y),a=[],n=""}else a.push(n),n=""}if(""!==n||a.length>0){a.push(n);const e=t(a);e.length>0&&l.push(e)}return l.filter(e=>e.some(e=>""!==e.trim()))}(yield navigator.clipboard.readText());e.suspendPaint();for(let l=0;l<y.length;l++){const t=y[l];for(let a=0;a<t.length;a++){const n=t[a],y=o[l][a];e.setValue(n.row,n.col,y),y&&y.includes("\n")&&e.getCell(n.row,n.col).wordWrap(!0)}}e.resumePaint(),null!=l&&null!=l&&"function"==typeof l&&l(!0,"粘贴成功!")})},BusinessUtils={createTestObjectAttrsCells:(e,l,t,a=0,n=!0,y=1,o=77,x=24)=>{if(!t||0===t.length)return;const r=n?12:10,s=n?26:15,i=n?2:3,u=rapidUtils.chunkJson(t,i);l.suspendPaint();const m=l.getRowCount();a>0&&a<m&&l.deleteRows(a,m-a);const c=(e,t)=>{l.getCell(e,t).fontFamily("宋体"),l.getCell(e,t).fontSize("9pt")};for(let t=0;t<u.length;t++){const a=u[t],i=l.getRowCount();l.addRows(i,1),l.setRowHeight(i,x,e.Spread.Sheets.SheetArea.viewport);const m=l.getRange(i,1,y,o,e.Spread.Sheets.SheetArea.viewport);if(m.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.thin),{all:!0}),m.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.medium),{left:!0,right:!0,top:0==t,bottom:t==u.length-1}),m.hAlign(e.Spread.Sheets.HorizontalAlign.center),m.vAlign(e.Spread.Sheets.HorizontalAlign.center),l.addSpan(i,y,1,r,e.Spread.Sheets.SheetArea.viewport),l.addSpan(i,y+r,1,a.length>1?s:o-r,e.Spread.Sheets.SheetArea.viewport),l.setValue(i,y,a[0].title),l.setValue(i,y+r,a[0].value),c(i,y),c(i,y+r),a.length>1){const t=y+r+s,o=t+r;l.addSpan(i,t,1,r,e.Spread.Sheets.SheetArea.viewport),l.addSpan(i,o,1,s+1+(n||2!=a.length?0:r+s+1),e.Spread.Sheets.SheetArea.viewport),l.setValue(i,t,a[1].title),l.setValue(i,o,a[1].value),c(i,t),c(i,o)}if(a.length>2){const t=y+r+s+r+s+1,n=t+r;l.addSpan(i,t,1,r,e.Spread.Sheets.SheetArea.viewport),l.addSpan(i,n,1,s+1,e.Spread.Sheets.SheetArea.viewport),l.setValue(i,t,a[2].title),l.setValue(i,n,a[2].value),c(i,t),c(i,n)}}l.resumePaint()},getTestObjectAttrsVals:(e,l,t=0,a=!0,n=1,y=77)=>{const o=a?2:3,x=rapidUtils.chunkJson(l,o);e.suspendPaint();const r=SheetUtils.getAllCellObjsByRange(e,{row:t,col:n,rowCount:e.getRowCount(),colCount:y}),s=rapidUtils.chunkJson(r,2*o),i=[];for(let e=0;e<s.length;e++)i.push(rapidUtils.chunkJson(s[e],2));let u=[];for(let l=0;l<x.length;l++){const t=x[l];for(let a=0;a<t.length;a++){const n=t[a];u.push({title:e.getValue(i[l][a][0].row,i[l][a][0].col),fieldName:n.fieldName,value:e.getValue(i[l][a][1].row,i[l][a][1].col)})}}return e.resumePaint(),u},dynamicCreateCyclicRows:(e,l,t,a,n=0,y=!1,o=null,x)=>{if(a<=1&&0==n||a==n&&n>0)return;const r=l.getActiveSheet(),s=t.row+t.rowCount==r.getRowCount();let i=[];for(let e=t.row;e<=t.row+t.rowCount-1;e++)i.push(r.getRowHeight(e));const u=(l,a,n,y=0)=>{r.addRows(l,a);let o=0;for(let t=l;t<=l+a;t++)r.setRowHeight(t,null!=x&&null!=x?x:i[o],e.Spread.Sheets.SheetArea.viewport),o<i.length-1?o++:o=0;for(let l=1;l<=n;l++){const a=t.row+y+l*t.rowCount;r.copyTo(t.row,t.col,a,t.col,t.rowCount,t.colCount,e.Spread.Sheets.CopyToOptions.all)}};r.suspendPaint(),r.suspendCalcService(),r.suspendDirty(),r.suspendEvent(),a<=1&&n>0?r.deleteRows(t.row+t.rowCount,(a-1)*t.rowCount):a>1&&n>1?a>n?u(t.row+t.rowCount+(a-n-1)*t.rowCount,(a-n)*t.rowCount,a-n,(a-n-1)*t.rowCount):a<n&&r.deleteRows(t.row+t.rowCount+(a-1)*t.rowCount,(n-a)*t.rowCount):a>1&&0==n&&u(t.row+t.rowCount,(a-1)*t.rowCount,a-1);const m=r.getRange(t.row,t.col,a*t.rowCount,t.colCount>77?77:t.colCount);s&&m.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.thin),{inside:!0});const c={row:m.row,col:m.col,rowCount:m.rowCount,colCount:m.colCount},h=SheetUtils.getAllCellObjsByRanges(r,[c]),p=rapidUtils.groupByJson(h,"row");let f=[];if(y){rapidUtils.forEachJson(p,(e,l,t)=>{f.push(e)});let e=0;f.forEach((l,t)=>{l.forEach((l,t)=>{0==t&&(e++,r.setValue(l.row,l.col,e))})})}r.resumeDirty(),r.resumeEvent(),r.resumeCalcService(),r.resumePaint(),null!=o&&null!=o&&"function"==typeof o&&o(c,f)},overRemindComments:(spread,cctxConfigs,cellRowIndex,cellColIndex,isValueChgedUse=!0,commentOptions={color:"#E11010",size:10,defaultTextIsSet:!0,defaultText:"无效"})=>{if(!cctxConfigs||0==cctxConfigs.length)return;const sheet=spread.getActiveSheet();spread.suspendPaint(),spread.suspendCalcService(),spread.suspendEvent();let commentColor=commentOptions.color?commentOptions.color:"#E11010",commentSize=commentOptions.size?commentOptions.size:10,commentDefaultTextIsSet=!commentOptions.defaultTextIsSet||commentOptions.defaultTextIsSet,commentDefaultText=commentOptions.defaultText?commentOptions.defaultText:"无效";const replaceVar=(e,l)=>(["a","b","c","d","e","f"].forEach(t=>{e.indexOf(t)>-1&&(e=e.replaceAll(t,l.find(e=>e.var==t).value))}),e),replaceNum=(e,l)=>{const t=[];for(let e=1;e<=20;e++)t.push(e);return t.forEach(t=>{e.indexOf(t)>-1&&t<=l.length&&(e=e.replaceAll(t,`#${t}#`))}),t.forEach(t=>{e.indexOf(t)>-1&&t<=l.length&&(e=e.replaceAll(`#${t}#`,`(${l[t-1]})`))}),e},getConJsonArrNew=(e,l)=>{let t=[];return e.forEach(e=>{let a=e;a=a.replaceAll("jd(","精度开始").replaceAll(")jd","精度结束").replaceAll("abs","[###]"),a=replaceVar(a,l),a=a.replaceAll("[###]","Math.abs").replaceAll("精度开始","Number(").replaceAll("精度结束",").toFixed(8)"),t.push(a)}),t};for(let i=0;i<cctxConfigs.length;i++){const item=cctxConfigs[i];if(item.isQz){let varJsonArr=JSON.parse(item.varJson),qzCellJsonArr=JSON.parse(item.qzCellJson);const doEvent=()=>{varJsonArr.forEach(e=>{e.value=sheet.getValue(e.row,e.col)});let conJsonArr=JSON.parse(item.conJson),conJsonArrNew=getConJsonArrNew(conJsonArr,varJsonArr);qzCellJsonArr.forEach(e=>{e.value=sheet.getValue(e.row,e.col)});let qzGsJsonArr=JSON.parse(item.qzGsJson);qzGsJsonArr.forEach(e=>{e.value=sheet.getValue(e.row,e.col)});let isAllNotCc=!0;for(let j=0;j<qzGsJsonArr.length;j++){const itemQzgs=qzGsJsonArr[j];let curGsQz=itemQzgs.qzFor.replaceAll("jd(","精度开始").replaceAll(")jd","精度结束").replaceAll("abs","[###]");curGsQz=replaceVar(curGsQz,qzCellJsonArr),curGsQz=curGsQz.replaceAll("[###]","Math.abs").replaceAll("精度开始","Number(").replaceAll("精度结束",").toFixed(8)");try{if(eval(curGsQz)){const lastFor=replaceNum(itemQzgs.conFor,conJsonArrNew);try{if(eval(lastFor))isAllNotCc=!1,sheet.comments.add(item.row,item.col,itemQzgs.tipMsg).indicatorColor(commentColor).indicatorSize(commentSize).fontSize("10pt").width(200),commentDefaultTextIsSet&&sheet.setValue(item.row,item.col,commentDefaultText);else if(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}}catch(e){if(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}}break}}catch(e){}}if(isAllNotCc&&(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet)){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}};isValueChgedUse?(varJsonArr.some(e=>e.row==cellRowIndex&&e.col==cellColIndex)||qzCellJsonArr.some(e=>e.row==cellRowIndex&&e.col==cellColIndex))&&doEvent():doEvent()}else{let varJsonArr=JSON.parse(item.varJson);const doEvent=()=>{varJsonArr.forEach(e=>{e.value=sheet.getValue(e.row,e.col)});let conJsonArr=JSON.parse(item.conJson),conJsonArrNew=getConJsonArrNew(conJsonArr,varJsonArr);const lastFor=replaceNum(item.conFor,conJsonArrNew);try{if(eval(lastFor))sheet.comments.add(item.row,item.col,item.tipMsg).indicatorColor(commentColor).indicatorSize(commentSize).fontSize("10pt").width(200),commentDefaultTextIsSet&&sheet.setValue(item.row,item.col,commentDefaultText);else if(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}}catch(e){if(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}}};isValueChgedUse?varJsonArr.some(e=>e.row==cellRowIndex&&e.col==cellColIndex)&&doEvent():doEvent()}}spread.resumeEvent(),spread.resumeCalcService(),spread.resumePaint()}},EChartsUtilsComm={getRound:(e,l)=>{const t=e<0;if(t&&(e=Math.abs(e)),0==l){let l=e.toString();if(-1==l.indexOf("."))return t?-e:e;let a=parseInt(l.split(".")[0]),n=l.split(".")[1];return parseFloat(`0.${n}`)>=.5?t?-(a+1):a+1:t?-a:a}let a=1/l;const n=(e=>{let l=e.toString();if(-1==l.indexOf("."))return e;let t=parseInt(l.split(".")[0]),a=l.split(".")[1],n=parseInt(a.substring(0,1));return n>=6?t+1:n<=4?t:5==n&&1==a.length?t%2!=0?t+1:t:5==n&&a.length>1?t+1:e})(Number((e*a).toFixed(8)))/a;let y=l+"";if(-1==y.indexOf("."))return t?-n:n;{const e=n+"";let l="";if(-1==e.indexOf(".")){let e="";for(let l=0;l<y.split(".")[1].length;l++)e+="0";return(t?"-":"")+`${n}.${e}`}{const a=e.split(".")[1];if(y.split(".")[1].length>a.length)for(let e=0;e<y.split(".")[1].length-a.length;e++)l+="0";return(t?"-":"")+`${n}${l}`}}},calcTrend:(e,l,t)=>{let a=e.length,n=0,y=0,o=0,x=0;for(let t=0;t<a;t++)n+=e[t],y+=l[t],o+=e[t]*l[t],x+=e[t]*e[t];let r=(a*o-n*y)/(a*x-n*n),s=(y-r*n)/a;return r+""=="NaN"?{y:"",gs:"",xl:"",jj:""}:{y:r*t+s,gs:`${r}*x+${s}`,xl:r,jj:s}},filterNullEmptyErrArray:e=>e.filter(e=>null!=e&&null!=e&&(null==e._error||null==e._error)&&"/"!=e)},EChartsUtilsAll={chart10:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=l[0],x=t[0],r=null!=y?y.dxsJs:5,s=[],i=[];if(o.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),x.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),r>=i.length&&(r=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Number(EChartsUtilsComm.getRound(h+.05,.01)),g=Number(EChartsUtilsComm.getRound(c-.05,.01)),b=[],C=[];s.forEach((e,l)=>{C.push([e,i[l]])});const S=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math__namespace.pow(e[a],t));t.push(n)}return math__namespace.matrix(t)}(s,r),w=math__namespace.transpose(S),F=math__namespace.multiply(w,S),V=math__namespace.multiply(w,math__namespace.matrix(i));let E=null,N=[];try{E=math__namespace.lusolve(F,V),N=E.valueOf()}catch(e){for(let e=0;e<s.length;e++)N.push([0])}function v(e){let l=0;return N.forEach((t,a)=>{l+=t*Math.pow(e,a)}),l}let A=[],D=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));D.push(v(l)),A.push(l)}let U=Math.max(...D),J=D.findIndex(e=>e===U),k=e.chartXName,O=e.chartYName;A.forEach((e,l)=>{s.includes(e)?b.push({value:[e,D[l]]}):b.push({value:[e,D[l]],symbol:"none"})});const M=[A[J],Number(EChartsUtilsComm.getRound(U,.001))],L=[M[0],g];null!=y&&(null!=y.lqhhlKs&&null!=y.lqhhlKs&&(a.setValue(y.lqhhlKs.row,y.lqhhlKs.col,u),a.setValue(y.lqhhlJs.row,y.lqhhlJs.col,m)),null!=y.lqhhlSc1&&null!=y.lqhhlSc1&&a.setValue(y.lqhhlSc1.row,y.lqhhlSc1.col,A[J]));let j=[],I=[];j=[[{coord:L,lineStyle:{color:"#333",type:"dashed"}},{coord:M}]],I=[{xAxis:M[0],yAxis:M[1],symbolOffset:[0,15],label:{show:!0,color:"#000",formatter:function(e){return 0==Number(e.data.xAxis)&&0==Number(e.data.yAxis)?"":"( "+e.data.xAxis+","+e.data.yAxis+")"}},itemStyle:{color:"transparent"}},{xAxis:M[0],yAxis:g,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"a1"}},itemStyle:{color:"transparent"}}];let z=!1;return b.forEach(e=>{z=e.value.every(e=>0==e)}),z&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:z?25:30,right:10,bottom:z?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:z?5:40,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:I},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:j}}]}},chart11:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=l[0],x=t[0],r=null!=y?y.dxsJs:5,s=[],i=[];if(o.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),x.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),r>=i.length&&(r=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+2),g=Math.floor(c-2),b=[],C=null,S=7.5;if(null!=y){if(null!=y.lqhhlSx&&null!=y.lqhhlSx){const e=a.getValue(y.lqhhlSx.row,y.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=y.lqhhlXx&&null!=y.lqhhlXx){const e=a.getValue(y.lqhhlXx.row,y.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+2),null!=S&&S>d&&(g=S-2);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const F=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math__namespace.pow(e[a],t));t.push(n)}return math__namespace.matrix(t)}(s,r),V=math__namespace.transpose(F),E=math__namespace.multiply(V,F),N=math__namespace.multiply(V,math__namespace.matrix(i));let v=null,A=[];try{v=math__namespace.lusolve(E,N),A=v.valueOf()}catch(e){for(let e=0;e<s.length;e++)A.push([0])}function D(e){let l=0;return A.forEach((t,a)=>{l+=t*Math.pow(e,a)}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=Math.max(...J),O=J.findIndex(e=>e===k),M=e.chartXName,L=e.chartYName;function j(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function I(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}U.forEach((e,l)=>{s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"})});let z=[],R=[],_=[],q=[];U.forEach((e,l)=>{if(l>0){if(null!=C&&j(J[l-1],J[l],C,C)){let e=I(J[l-1],J[l],C);z.push([U[l+e],J[l+e]]),J[l-1]>J[l]?_.push(0):_.push(1)}if(null!=S&&j(J[l-1],J[l],S,S)){let e=I(J[l-1],J[l],S);R.push([U[l+e],J[l+e]]),J[l-1]>J[l]?q.push(0):q.push(1)}}});let T=u,Y=m;0==z.length&&R.length>0?0==q[0]?(T=u,Y=R[0][0]):(T=R[0][0],Y=1==R.length?m:R[1][0]):z.length>0&&0==R.length?0==_[0]?(T=z[0][0],Y=1==z.length?m:z[1][0]):(T=u,Y=z[0][0]):z.length>0&&R.length>0&&(0==_[0]?(T=z[0][0],Y=R[0][0]):(T=R[0][0],Y=z[0][0])),null!=y&&(null!=y.lqhhlKs&&null!=y.lqhhlKs&&(a.setValue(y.lqhhlKs.row,y.lqhhlKs.col,T),a.setValue(y.lqhhlJs.row,y.lqhhlJs.col,Y)),null!=y.lqhhlSc1&&null!=y.lqhhlSc1&&a.setValue(y.lqhhlSc1.row,y.lqhhlSc1.col,U[O]));const G=[U[O],Number(EChartsUtilsComm.getRound(k,.001))];let P=[],B=[];P=[[{coord:[G[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:G}]],B=[{xAxis:G[0],yAxis:G[1],symbolOffset:[0,15],label:{show:!0,color:"#000",formatter:function(e){return 0==Number(e.data.xAxis)&&0==Number(e.data.yAxis)?"":"( "+e.data.xAxis+","+e.data.yAxis+")"}},itemStyle:{color:"transparent"}},{xAxis:G[0],yAxis:g,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"a2"}},itemStyle:{color:"transparent"}}],null!=C&&P.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&P.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let H=!1;return b.forEach(e=>{H=e.value.every(e=>0==e)}),H&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:H?25:30,right:10,bottom:H?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:M,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:L,nameGap:H?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:B},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:P}}]}},chart12:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=l[0],x=t[0],r=null!=y?y.dxsJs:5,s=[],i=[];if(o.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),x.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),r>=i.length&&(r=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+2),g=Math.floor(c-2),b=[],C=5,S=3;if(null!=y){if(null!=y.lqhhlSx&&null!=y.lqhhlSx){const e=a.getValue(y.lqhhlSx.row,y.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=y.lqhhlXx&&null!=y.lqhhlXx){const e=a.getValue(y.lqhhlXx.row,y.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+2),null!=S&&S>d&&(g=S-2);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const F=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math__namespace.pow(e[a],t));t.push(n)}return math__namespace.matrix(t)}(s,r),V=math__namespace.transpose(F),E=math__namespace.multiply(V,F),N=math__namespace.multiply(V,math__namespace.matrix(i));let v=null,A=[];try{v=math__namespace.lusolve(E,N),A=v.valueOf()}catch(e){for(let e=0;e<s.length;e++)A.push([0])}function D(e){let l=0;return A.forEach((t,a)=>{l+=t*Math.pow(e,a)}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=e.chartXName,O=e.chartYName;function M(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function L(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}let j=[],I=[],z=[],R=[];U.forEach((e,l)=>{if(s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"}),l>0){if(null!=C&&M(J[l-1],J[l],C,C)){let e=L(J[l-1],J[l],C);j.push([U[l+e],J[l+e]]),J[l-1]>J[l]?z.push(0):z.push(1)}if(null!=S&&M(J[l-1],J[l],S,S)){let e=L(J[l-1],J[l],S);I.push([U[l+e],J[l+e]]),J[l-1]>J[l]?R.push(0):R.push(1)}}});let _=u,q=m;0==j.length&&I.length>0?0==R[0]?(_=u,q=I[0][0]):(_=I[0][0],q=1==I.length?m:I[1][0]):j.length>0&&0==I.length?0==z[0]?(_=j[0][0],q=1==j.length?m:j[1][0]):(_=u,q=j[0][0]):j.length>0&&I.length>0&&(0==z[0]?(_=j[0][0],q=I[0][0]):(_=I[0][0],q=j[0][0])),null!=y&&null!=y.lqhhlKs&&null!=y.lqhhlKs&&(a.setValue(y.lqhhlKs.row,y.lqhhlKs.col,_),a.setValue(y.lqhhlJs.row,y.lqhhlJs.col,q));let T=[],Y=[];if(j.length>0&&j.forEach((e,l)=>{T.push([{coord:[e[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e[0],C]}])}),I.length>0&&I.forEach((e,l)=>{T.push([{coord:[e[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e[0],S]}])}),1==j.length&&1==I.length){const e=((j[0][0]+I[0][0])/2).toFixed(2),l=U.findIndex(l=>l==e);null!=y&&null!=y.lqhhlSc1&&null!=y.lqhhlSc1&&a.setValue(y.lqhhlSc1.row,y.lqhhlSc1.col,e),T.push([{coord:[e,g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e,J[l]]}]),Y.push({xAxis:e,yAxis:g,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"a3"}},itemStyle:{color:"transparent"}})}null!=C&&T.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&T.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let G=!1;return b.forEach(e=>{G=e.value.every(e=>0==e)}),G&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:G?25:30,right:10,bottom:G?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:G?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:Y},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:T}}]}},chart13:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=l[0],x=t[0],r=null!=y?y.dxsJs:5,s=[],i=[];if(o.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),x.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),r>=i.length&&(r=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+1),g=Math.floor(c-1),b=[],C=null,S=2;if(null!=y){if(null!=y.lqhhlSx&&null!=y.lqhhlSx){const e=a.getValue(y.lqhhlSx.row,y.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=y.lqhhlXx&&null!=y.lqhhlXx){const e=a.getValue(y.lqhhlXx.row,y.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+1),null!=S&&S>d&&(g=S-1);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const F=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math__namespace.pow(e[a],t));t.push(n)}return math__namespace.matrix(t)}(s,r),V=math__namespace.transpose(F),E=math__namespace.multiply(V,F),N=math__namespace.multiply(V,math__namespace.matrix(i));let v=null,A=[];try{v=math__namespace.lusolve(E,N),A=v.valueOf()}catch(e){for(let e=0;e<s.length;e++)A.push([0])}function D(e){let l=0;return A.forEach((t,a)=>{l+=t*Math.pow(e,a)}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=e.chartXName,O=e.chartYName;function M(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function L(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}U.forEach((e,l)=>{s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"})});let j=[],I=[],z=[],R=[];U.forEach((e,l)=>{if(l>0){if(null!=C&&M(J[l-1],J[l],C,C)){let e=L(J[l-1],J[l],C);j.push([U[l+e],J[l+e]]),J[l-1]>J[l]?z.push(0):z.push(1)}if(null!=S&&M(J[l-1],J[l],S,S)){let e=L(J[l-1],J[l],S);I.push([U[l+e],J[l+e]]),J[l-1]>J[l]?R.push(0):R.push(1)}}});let _=u,q=m;0==j.length&&I.length>0?0==R[0]?(_=u,q=I[0][0]):(_=I[0][0],q=1==I.length?m:I[1][0]):j.length>0&&0==I.length?0==z[0]?(_=j[0][0],q=1==j.length?m:j[1][0]):(_=u,q=j[0][0]):j.length>0&&I.length>0&&(0==z[0]?(_=j[0][0],q=I[0][0]):(_=I[0][0],q=j[0][0])),null!=y&&null!=y.lqhhlKs&&null!=y.lqhhlKs&&(a.setValue(y.lqhhlKs.row,y.lqhhlKs.col,_),a.setValue(y.lqhhlJs.row,y.lqhhlJs.col,q));let T=[],Y=[];T=[],Y=[],null!=C&&T.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&T.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let G=!1;return b.forEach(e=>{G=e.value.every(e=>0==e)}),G&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:G?25:30,right:10,bottom:G?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:G?5:25,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:Y},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:T}}]}},chart14:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=l[0],x=t[0],r=null!=y?y.dxsJs:5,s=[],i=[];if(o.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),x.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),r>=i.length&&(r=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+1),g=Math.floor(c-1),b=[],C=null,S=13.5;if(null!=y){if(null!=y.lqhhlSx&&null!=y.lqhhlSx){const e=a.getValue(y.lqhhlSx.row,y.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=y.lqhhlXx&&null!=y.lqhhlXx){const e=a.getValue(y.lqhhlXx.row,y.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+1),null!=S&&S>d&&(g=S-1);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const F=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math__namespace.pow(e[a],t));t.push(n)}return math__namespace.matrix(t)}(s,r),V=math__namespace.transpose(F),E=math__namespace.multiply(V,F),N=math__namespace.multiply(V,math__namespace.matrix(i));let v=null,A=[];try{v=math__namespace.lusolve(E,N),A=v.valueOf()}catch(e){for(let e=0;e<s.length;e++)A.push([0])}function D(e){let l=0;return A.forEach((t,a)=>{l+=t*Math.pow(e,a)}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=e.chartXName,O=e.chartYName;function M(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function L(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}U.forEach((e,l)=>{s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"})});let j=[],I=[],z=[],R=[];U.forEach((e,l)=>{if(l>0){if(null!=C&&M(J[l-1],J[l],C,C)){let e=L(J[l-1],J[l],C);j.push([U[l+e],J[l+e]]),J[l-1]>J[l]?z.push(0):z.push(1)}if(null!=S&&M(J[l-1],J[l],S,S)){let e=L(J[l-1],J[l],S);I.push([U[l+e],J[l+e]]),J[l-1]>J[l]?R.push(0):R.push(1)}}});let _=u,q=m;0==j.length&&I.length>0?0==R[0]?(_=u,q=I[0][0]):(_=I[0][0],q=1==I.length?m:I[1][0]):j.length>0&&0==I.length?0==z[0]?(_=j[0][0],q=1==j.length?m:j[1][0]):(_=u,q=j[0][0]):j.length>0&&I.length>0&&(0==z[0]?(_=j[0][0],q=I[0][0]):(_=I[0][0],q=j[0][0])),null!=y&&null!=y.lqhhlKs&&null!=y.lqhhlKs&&(a.setValue(y.lqhhlKs.row,y.lqhhlKs.col,_),a.setValue(y.lqhhlJs.row,y.lqhhlJs.col,q));let T=[],Y=[];T=[],Y=[],null!=C&&T.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&T.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let G=!1;return b.forEach(e=>{G=e.value.every(e=>0==e)}),G&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:G?25:30,right:10,bottom:G?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:G?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:Y},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:T}}]}},chart15:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=l[0],x=t[0],r=null!=y?y.dxsJs:5,s=[],i=[];if(o.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),x.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),r>=i.length&&(r=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+10),g=Math.floor(c-10),b=[],C=75,S=60;if(null!=y){if(null!=y.lqhhlSx&&null!=y.lqhhlSx){const e=a.getValue(y.lqhhlSx.row,y.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=y.lqhhlXx&&null!=y.lqhhlXx){const e=a.getValue(y.lqhhlXx.row,y.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+10),null!=S&&S>d&&(g=S-10);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const F=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math__namespace.pow(e[a],t));t.push(n)}return math__namespace.matrix(t)}(s,r),V=math__namespace.transpose(F),E=math__namespace.multiply(V,F),N=math__namespace.multiply(V,math__namespace.matrix(i));let v=null,A=[];try{v=math__namespace.lusolve(E,N),A=v.valueOf()}catch(e){for(let e=0;e<s.length;e++)A.push([0])}function D(e){let l=0;return A.forEach((t,a)=>{l+=t*Math.pow(e,a)}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=e.chartXName,O=e.chartYName;function M(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function L(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}let j=[],I=[],z=[],R=[];U.forEach((e,l)=>{if(s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"}),l>0){if(null!=C&&M(J[l-1],J[l],C,C)){let e=L(J[l-1],J[l],C);j.push([U[l+e],J[l+e]]),J[l-1]>J[l]?z.push(0):z.push(1)}if(null!=C&&M(J[l-1],J[l],S,S)){let e=L(J[l-1],J[l],S);I.push([U[l+e],J[l+e]]),J[l-1]>J[l]?R.push(0):R.push(1)}}});let _=u,q=m;0==j.length&&I.length>0?0==R[0]?(_=u,q=I[0][0]):(_=I[0][0],q=1==I.length?m:I[1][0]):j.length>0&&0==I.length?0==z[0]?(_=j[0][0],q=1==j.length?m:j[1][0]):(_=u,q=j[0][0]):j.length>0&&I.length>0&&(0==z[0]?(_=j[0][0],q=I[0][0]):(_=I[0][0],q=j[0][0])),null!=y&&null!=y.lqhhlKs&&null!=y.lqhhlKs&&(a.setValue(y.lqhhlKs.row,y.lqhhlKs.col,_),a.setValue(y.lqhhlJs.row,y.lqhhlJs.col,q));let T=[],Y=[];if(j.length>0&&j.forEach((e,l)=>{T.push([{coord:[e[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e[0],C]}])}),I.length>0&&I.forEach((e,l)=>{T.push([{coord:[e[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e[0],S]}])}),1==j.length&&1==I.length){const e=((j[0][0]+I[0][0])/2).toFixed(2),l=U.findIndex(l=>l==e);null!=y&&null!=y.lqhhlSc1&&null!=y.lqhhlSc1&&a.setValue(y.lqhhlSc1.row,y.lqhhlSc1.col,e),T.push([{coord:[e,g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e,J[l]]}]),Y.push({xAxis:e,yAxis:g,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"a4"}},itemStyle:{color:"transparent"}})}null!=C&&T.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&T.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let G=!1;return b.forEach(e=>{G=e.value.every(e=>0==e)}),G&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:G?25:30,right:10,bottom:G?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:G?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:Y},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:T}}]}},chart16:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=[[a.getValue(y.lqhhlHz[0].row,y.lqhhlHz[0].col),a.getValue(y.lqhhlHz[1].row,y.lqhhlHz[1].col)],[a.getValue(y.lqhhlHz[2].row,y.lqhhlHz[2].col),a.getValue(y.lqhhlHz[3].row,y.lqhhlHz[3].col)],[a.getValue(y.lqhhlHz[4].row,y.lqhhlHz[4].col),a.getValue(y.lqhhlHz[5].row,y.lqhhlHz[5].col)],[a.getValue(y.lqhhlHz[6].row,y.lqhhlHz[6].col),a.getValue(y.lqhhlHz[7].row,y.lqhhlHz[7].col)],[a.getValue(y.lqhhlHz[8].row,y.lqhhlHz[8].col),a.getValue(y.lqhhlHz[9].row,y.lqhhlHz[9].col)],[a.getValue(y.lqhhlHz[10].row,y.lqhhlHz[10].col),a.getValue(y.lqhhlHz[11].row,y.lqhhlHz[11].col)]],x=l[0],r=5.5,s=3.5,i=0,u=6,m=["VFA","VMA","流值","稳定度","空隙率","密度"];let c=[],h=[],p=Math.max(...o.map(e=>e[0])),f=Math.min(...o.map(e=>e[1]));if(o.forEach((e,l)=>{c.push([{coord:[e[0],o.length-l],lineStyle:{color:n[0].lineColor,type:"solid",width:2}},{coord:[e[1],o.length-l]}])}),p<=f&&(c.push([{coord:[p,0],lineStyle:{color:"#333",type:"dashed",width:2}},{coord:[p,6]}]),c.push([{coord:[f,0],lineStyle:{color:"#333",type:"dashed",width:2}},{coord:[f,6]}]),h=[{xAxis:p,yAxis:0,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"OACmin"}},itemStyle:{color:"transparent"}},{xAxis:f,yAxis:0,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"OACmax"}},itemStyle:{color:"transparent"}}]),p<=f){const e=(p+f)/2;c.push([{coord:[e,0],lineStyle:{color:"#333",type:"dashed",width:2}},{coord:[e,6]}]),h.push({xAxis:e,yAxis:0,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"OAC2"}},itemStyle:{color:"transparent"}})}isNaN(p)&&(p=0),isNaN(f)&&(f=0),null!=y&&(null!=y.lqhhlSc1&&null!=y.lqhhlSc1&&a.setValue(y.lqhhlSc1.row,y.lqhhlSc1.col,p),null!=y.lqhhlSc2&&null!=y.lqhhlSc2&&a.setValue(y.lqhhlSc2.row,y.lqhhlSc2.col,f));let d=!1;return o.forEach(e=>{d=e.every(e=>"/"==e)}),d&&(s=null,r=null,i=null,u=null),{grid:{top:25,left:10,right:10,bottom:d?20:16,containLabel:!0},title:[{show:!0,text:"OAC",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:"油石比(%)",left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:r,min:s,data:x,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:u,min:i,axisLabel:{formatter:function(e){return 0==e?"":m[e-1]}}}],series:[{name:"图例1",type:"line",markPoint:{data:h},markLine:{symbol:["none","none"],data:c}}]}},chart30:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);null==y||null!=y.jsIsJz&&null!=y.jsIsJz||(y.jsIsJz=!0);let o=2==l.length,x=l[0],r=o?l[1]:[],s=t[0],i=o?t[1]:[],u=[],m=[];if(x.forEach((e,l)=>{"/"!=e&&0!=e&&null!=e&&null!=e&&"/"!=s[l]&&0!=s[l]&&null!=s[l]&&null!=s[l]&&(u.push(e),m.push(s[l]))}),x=u,s=m,o){let e=[],l=[];r.forEach((t,a)=>{"/"!=t&&0!=t&&null!=t&&null!=t&&"/"!=i[a]&&0!=i[a]&&null!=i[a]&&null!=i[a]&&(e.push(t),l.push(i[a]))}),r=e,i=l}let c=e.chartTitle,h=e.chartXName,p=e.chartYName;const f=(e,l,t,o,x)=>{let r=null!=y?y.dxsJs:5,s=[],i=[],u=[];if(e.forEach((e,t)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&0!=e&&/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(l[t])&&0!=l[t]&&(s.push(e),i.push(l[t]))}),0==i.length)return;r>=i.length&&(r=i.length-1);let m,c,h=Math.min(...s),p=Math.max(...s),f=Math.min(...i),d=Math.max(...i),g=Math.ceil(p+.1),b=Math.trunc(h-.1),C=Number(EChartsUtilsComm.getRound(d+.02,.01)),S=Number(EChartsUtilsComm.getRound(f-.02,.01));null!=y&&y.jsIsJz&&(null!=y.jsZjhslJz&&null!=y.jsZjhslJz&&(m=a.getValue(y.jsZjhslJz.row,y.jsZjhslJz.col)),null!=y.jsZdgmdJz&&null!=y.jsZdgmdJz&&(c=a.getValue(y.jsZdgmdJz.row,y.jsZdgmdJz.col)),/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(c)&&c>C&&(C=Number(EChartsUtilsComm.getRound(c+.02,.01))));let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const F=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math__namespace.pow(e[a],t));t.push(n)}return math__namespace.matrix(t)}(s,r),V=math__namespace.transpose(F),E=math__namespace.multiply(V,F),N=math__namespace.multiply(V,math__namespace.matrix(i));let v=null,A=[];try{v=math__namespace.lusolve(E,N),A=v.valueOf()}catch(e){for(let e=0;e<s.length;e++)A.push([0])}function D(e){let l=0;return A.forEach((t,a)=>{l+=t*Math.pow(e,a)}),l}let U=[],J=[];for(let e=h;e<=p;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));e=Number(l),J.push(D(l)),U.push(l)}let k=Math.max(...J),O=J.findIndex(e=>e===k),M=.01,L=.001,j=0,I=0;null!=y&&(null!=y.jsZjhslJd&&null!=y.jsZjhslJd&&(M=y.jsZjhslJd),null!=y.jsZdgmdJd&&null!=y.jsZdgmdJd&&(L=y.jsZdgmdJd),0==U[O]&&0==k?(a.setValue(y.jsZjhsl.row,y.jsZjhsl.col,"/"),a.setValue(y.jsZdgmd.row,y.jsZdgmd.col,"/")):(j=EChartsUtilsComm.getRound(U[O],M),I=EChartsUtilsComm.getRound(k,L),a.setValue(y.jsZjhsl.row,y.jsZjhsl.col,j),a.setValue(y.jsZdgmd.row,y.jsZdgmd.col,I))),U.forEach((e,l)=>{s.includes(e)?u.push({value:[e,J[l]]}):u.push({value:[e,J[l]],symbol:"none"})});const z=[U[O],Number(EChartsUtilsComm.getRound(k,L))],R=[z[0],S],_=[b,z[1]];let q={data:[{xAxis:EChartsUtilsComm.getRound(z[0],M),yAxis:EChartsUtilsComm.getRound(z[1],L),symbolOffset:[0,15],symbol:"circle",symbolSize:6,label:{show:!0,color:"#000",formatter:function(e){return 0==Number(e.data.xAxis)&&0==Number(e.data.yAxis)?"":"( "+e.data.xAxis+","+e.data.yAxis+")"}},itemStyle:{color:"transparent"}}]},T={symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:[[{coord:R,lineStyle:{color:"#333",type:"dashed"}},{coord:z}],[{coord:_,lineStyle:{color:"#333",type:"dashed"}},{coord:z}]]};y.jsIsJz&&/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(m)&&/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(c)&&(T=null,q.data[0].label=null,q.data[0].symbolOffset=null,q.data[0].itemStyle.color="#F56C6C",q.data[0].xAxis=m,q.data[0].yAxis=c,T=null);let Y={name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[x?1:0].lineColor,type:x?"dotted":"solid"},itemStyle:{color:n[x?1:0].lineColor},data:u,markPoint:t?q:null,markLine:o?T:null};return{xAxisMin:b,xAxisMax:g,yAxisMin:S,yAxisMax:C,xData:s,seriesDataObj:Y,maxPointData:[U[O],k]}};let d,g=0,b=0,C=0,S=0,w=[],F=[],V=0,E=0,N=f(x,s,!o,!o,!1);o&&(d=f(r,i,!1,!1,!0));let v=!1;if(null!=N&&null!=N||(v=!0),!v)if(o){if(null==d||null==d)return;b=N.xAxisMax,d.xAxisMax>b&&(b=d.xAxisMax),g=N.xAxisMin,d.xAxisMin<g&&(g=d.xAxisMin),S=N.yAxisMax,d.yAxisMax>S&&(S=d.yAxisMax),C=N.yAxisMin,d.yAxisMin<C&&(C=d.yAxisMin),N.xData.forEach(e=>{w.push(e)}),d.xData.forEach(e=>{w.push(e)}),F.push(N.seriesDataObj),F.push(d.seriesDataObj),V=(N.maxPointData[0]+d.maxPointData[0])/2,E=(N.maxPointData[1]+d.maxPointData[1])/2;let e=.01,l=.001,t=0,n=0;null!=y&&(null!=y.jsZjhslJd&&null!=y.jsZjhslJd&&(e=y.jsZjhslJd),null!=y.jsZdgmdJd&&null!=y.jsZdgmdJd&&(l=y.jsZdgmdJd),0==V&&0==E?(a.setValue(y.jsZjhsl.row,y.jsZjhsl.col,"/"),a.setValue(y.jsZdgmd.row,y.jsZdgmd.col,"/")):(t=EChartsUtilsComm.getRound(V,e),n=EChartsUtilsComm.getRound(E,l),a.setValue(y.jsZjhsl.row,y.jsZjhsl.col,t),a.setValue(y.jsZdgmd.row,y.jsZdgmd.col,n)))}else g=N.xAxisMin,b=N.xAxisMax,C=N.yAxisMin,S=N.yAxisMax,w=N.xData,F.push(N.seriesDataObj);return F.forEach(e=>{v=e.data[0].value.every(e=>0==e)}),v&&(g=null,b=null,C=null,S=null,F=[]),{grid:{top:25,left:v?25:30,right:10,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:c,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:h,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:v?0:b,min:v?0:g,data:w,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:v?0:S,min:v?0:C,name:p,nameGap:v?25:40,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:v?[]:F}},chart50:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartXName,y=e.chartYName;const o=l[0],x=t[0],r=t[1],s=t[2],i=[];o.forEach((e,l)=>{i.push({x:e,y:x[l],ySx:r[l],yXx:s[l]})}),i.sort(function(e,l){return e.x-l.x});const u=[],m=[],c=[],h=[];let p=0;r.forEach((e,l)=>{null!=e&&"/"!=e||p++}),p==r.length?i.forEach((e,l)=>{u.push(e.x),m.push(e.y),c.push(e.ySx),h.push(e.yXx)}):i.forEach((e,l)=>{null!=e.ySx&&"/"!=e.ySx&&null!=e.yXx&&"/"!=e.yXx&&(u.push(e.x),m.push(e.y),c.push(e.ySx),h.push(e.yXx))});let f=[],d=[],g=[],b=[];u.forEach((e,l)=>{const t=Number(EChartsUtilsComm.getRound(Math.pow(e,.45),.001));f.push([t,m[l]]),b.push({name:e+"",xAxis:t,label:{show:!(u.length>=6&&l%2!=0&&l<6),fontSize:10}}),d.push([t,c[l]]),g.push([t,h[l]])});const C=(e,l)=>{const t=1==e?"筛分曲线":2==e?"上限":"下限",n=1==e?"rect":2==e?"triangle":"circle",y=1==e?"solid":2==e?"dotted":[10,5],o=1==e?a[0].lineColor:2==e?a[1].lineColor:a[2].lineColor;let x={name:t,type:"line",smooth:!0,symbol:n,symbolSize:5,z:10,lineStyle:{color:o,type:y},itemStyle:{color:o},data:l,connectNulls:!0,markLine:{symbol:"",silent:!0,label:{position:"start",formatter:e=>e.name},lineStyle:{color:"#e0e6f1",type:"solid"},data:b}};return x};let S=!1;0==f.length&&(S=!0);let w=0;return f.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||w++}),w==f.length&&(S=!0),(r.some(e=>null!=e&&null!=e&&"/"!=e)||s.some(e=>null!=e&&null!=e&&"/"!=e))&&(S=!1),f.filter(e=>0==e[1]).length==f.length&&d.filter(e=>0==e[1]).length==d.length&&g.filter(e=>0==e[1]).length==g.length&&(S=!0),t[0].some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||t[1].some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||t[2].some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||(S=!0),{grid:{top:20,left:30,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){if(e&&e[0].data.length>1){let l=b.filter(l=>l.xAxis==e[0].data[0]);return e[0].seriesName+"("+l[0].name+"):"+e[0].data[1]}return e[0].data}},title:[{show:!0,text:"",left:"center",top:5,textStyle:{fontSize:18,fontWeight:"normal"}},{show:!0,text:n,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{left:"center",data:["筛分曲线","上限","下限"],selected:{"筛分曲线":!0,"上限":!0,"下限":!0},selectedMode:"multiple"},xAxis:{type:"value",axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},min:f.length>0?f[0][0]>.2?f[0][0]-.2:0:null,max:f.length>0?f[f.length-1][0]+.1:null},yAxis:[{type:"value",name:y,nameGap:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},min:0,max:100,splitNumber:10,axisLabel:{fontSize:10}}],series:[C(1,S?[]:f),C(2,S?[]:d),C(3,S?[]:g)]}},chart70:(e,l,t,a)=>{JSON.parse(e.chartLinesJson);const n=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);if(l[0].some(e=>null==e||""==e||null==e)||t[0].some(e=>null==e||""==e||null==e))return{};let y=e.chartTitle,o=e.chartXName,x=e.chartYName,r=l[0],s=t[0],i=100,u="砂类土",m=[],c=[];if(null!=n){let e=a.getValue(n.jxhslZtzl.row,n.jxhslZtzl.col),l=a.getValue(n.jxhslCllx.row,n.jxhslCllx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(e=Number(e),100!=e&&76!=e||(i=e)),"砂类土"!=l&&"细粒土"!=l||(u=l)}for(const e of r)m.push(Math.log(e));for(const e of s)c.push(Math.log(e));let h=(c[2]-c[1])/(m[2]-m[1]),p=(c[2]-c[0])/(m[2]-m[0]);const f=Math.max.apply(Math,r)+1,d=Math.min.apply(Math,r)-.3,g=Math.max.apply(Math,s)+1,b=Math.min.apply(Math,s)-2,C=["C","B","A"],S=[];function w(e,l,t){const a=Math.log(e[0]),n=Math.log(e[1]),y=Math.log(l[0]),o=n+(Math.log(l[1])-n)/(y-a)*(Math.log(t)-a);return Math.exp(o)}r.forEach((e,l)=>{S.push([e,s[l],C[l]])});let F=[20,w([r[2],s[2]],[r[1],s[1]],20)],V=[20,w([r[2],s[2]],[r[0],s[0]],20)];function E(e){let l;return l="砂类土"==u?29.6-1.22*e+.017*e*e-744e-7*e*e*e:e/(.524*e-7.606),l}let N,v,A,D=[],U=[],J=[],k=E(r[2]),O=Math.log(k),M=(h*m[2]-(c[2]-O))/h,L=(p*m[2]-(c[2]-O))/p,j=Math.exp((M+L)/2),I=Math.log(j),z=(c[2]-O)/(m[2]-I);if(76==i){let e=Math.log(17),l=(z*m[2]-(c[2]-e))/z,t=Math.exp(l),a=Math.log(2),n=(z*m[2]-(c[2]-a))/z,y=Math.exp(n);J=[j,k],D=[j,b],U=[d,k],S.push([j,k,"Hp"]),N=k,v=t,A=y}else if(100==i){let e=Math.log(20),l=(z*m[2]-(c[2]-e))/z,t=Math.exp(l),a=E(t),n=Math.log(a),y=(h*m[2]-(c[2]-n))/h,o=(p*m[2]-(c[2]-n))/p,x=Math.exp((y+o)/2),r=x;J=[x,a],D=[x,b],U=[d,a],S.push([x,a,"Hp"]),N=a,v=t,A=r}if((isNaN(N)||isNaN(v)||isNaN(A))&&(N=0,v=0,A=0),null!=n){let e=.01,l=.01,t=.01;null!=n.jxhslScHpJd&&null!=n.jxhslScHpJd&&(e=n.jxhslScHpJd),null!=n.jxhslScWlJd&&null!=n.jxhslScWlJd&&(l=n.jxhslScWlJd),null!=n.jxhslScWpJd&&null!=n.jxhslScWpJd&&(t=n.jxhslScWpJd),null!=n.jxhslScHp&&null!=n.jxhslScHp&&(0==N?a.setValue(n.jxhslScHp.row,n.jxhslScHp.col,"/"):a.setValue(n.jxhslScHp.row,n.jxhslScHp.col,EChartsUtilsComm.getRound(N,e))),null!=n.jxhslScWl&&null!=n.jxhslScWl&&(0==v?a.setValue(n.jxhslScWl.row,n.jxhslScWl.col,"/"):a.setValue(n.jxhslScWl.row,n.jxhslScWl.col,EChartsUtilsComm.getRound(v,l))),null!=n.jxhslScWp&&null!=n.jxhslScWp&&(0==A?a.setValue(n.jxhslScWp.row,n.jxhslScWp.col,"/"):a.setValue(n.jxhslScWp.row,n.jxhslScWp.col,EChartsUtilsComm.getRound(A,t)))}let R=!1;0==r.length&&(R=!0);let _=0;return r.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||_++}),_==r.length&&(R=!0),(s.some(e=>null!=e&&null!=e&&"/"!=e)||s.some(e=>null!=e&&null!=e&&"/"!=e))&&(R=!1),{grid:{top:20,left:R?25:50,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+e[0].value[1]:e[0].data}},title:[{show:!0,text:y,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"log",min:d,max:f,interval:0,axisTick:{show:!1,alignWithLabel:!0},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:{type:"log",name:x,nameGap:R?5:30,nameRotate:90,nameLocation:"middle",min:b,max:g,interval:0,axisTick:{show:!1,alignWithLabel:!0},splitLine:{show:!1},axisLabel:{show:!1}},series:[{name:"图例1",data:S,type:"scatter",symbol:"circle",smooth:!1,symbolSize:6,label:{show:!0,formatter:function(e){return e.data[2]},position:"right",minMargin:2},markLine:{symbol:["none","none"],silent:!0,label:{show:!0,position:"start",color:"#000000"},lineStyle:{type:"solid",color:"#333"},data:[{xAxis:S[0][0]},{xAxis:S[1][0]},{xAxis:S[2][0]},{yAxis:S[0][1]},{yAxis:S[1][1]},{yAxis:S[2][1]},[{coord:D,lineStyle:{color:"#333",type:"dashed"}},{coord:J}],[{coord:U,lineStyle:{color:"#333",type:"dashed"}},{coord:J}]]}},{type:"line",data:[[r[2],s[2]],[r[1],s[1]]],lineStyle:{color:"#0000FF",type:"solid",width:1},symbol:"none"},{type:"line",data:[[r[1],s[1]],[F[0],F[1]]],lineStyle:{color:"#000000",type:"dashed",width:1},symbol:"none"},{type:"line",data:[[r[2],s[2]],[r[0],s[0]]],lineStyle:{color:"#0000FF",type:"solid",width:1},symbol:"none"},{type:"line",data:[[r[0],s[0]],[V[0],V[1]]],lineStyle:{color:"#000000",type:"dashed",width:1},symbol:"none"},{type:"line",data:[[r[2],s[2]],J],lineStyle:{color:"#0000FF",type:"solid",width:1},symbol:"none"}]}},chart90:(config,xDataArr,yDataArr,sheet)=>{let lineData=JSON.parse(config.chartLinesJson);const chartExtJson=null==config.chartExtJson||null==config.chartExtJson?null:JSON.parse(config.chartExtJson);let yDataSource=yDataArr[0],title=config.chartTitle,xName=config.chartXName,yName=config.chartYName,legendName="图例1",xData=xDataArr[0],xDataCl=[],yDataSourceCl=[];for(let e=0;e<xData.length;e++)if("/"!=xData[e]&&(0==e||e>0&&0!=xData[e]))xDataCl.push(xData[e]),yDataSourceCl.push(yDataSource[e]);else if(e>0&&0==xData[e])break;xData=xDataCl,yDataSource=yDataSourceCl;let seriesData=[],markPointData=[],markLineData=[...xData];const gsS=EChartsUtilsComm.calcTrend(xData,yDataSource,xData[0]);if(null!=chartExtJson&&null!=chartExtJson.jxhslSnShScfc&&null!=chartExtJson.jxhslSnShScfc)if(""==gsS.xl||""==gsS.jj)sheet.setValue(chartExtJson.jxhslSnShScfc.row,chartExtJson.jxhslSnShScfc.col,"/");else{const e=EChartsUtilsComm.getRound(gsS.jj,1e-4);sheet.setValue(chartExtJson.jxhslSnShScfc.row,chartExtJson.jxhslSnShScfc.col,`Y=${EChartsUtilsComm.getRound(gsS.xl,1e-4)}X${e>=0?"+":""}${e}`)}let yDataCopy=[];xData.forEach((item,index)=>{let curYData=Number(EChartsUtilsComm.getRound(eval(gsS.gs.replace("x",item+"")),.01));isNaN(curYData)&&(curYData=0),seriesData.push([item,curYData]),yDataCopy.push(curYData),markPointData.push({xAxis:item,yAxis:yDataSource[index],symbol:"circle",symbolSize:6})});let yValIsAllNull=!1;0==xData.length&&(yValIsAllNull=!0);let nullCount=0;xData.forEach(e=>{0!=e[1]&&null!=e[1]&&null!=e[1]||nullCount++}),nullCount==xData.length&&(yValIsAllNull=!0),yDataCopy.some(e=>0!=e||null==e[1]||null==e[1])&&(yValIsAllNull=!1),yDataArr[0].some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||(yValIsAllNull=!0);let option={grid:{top:22,left:yValIsAllNull?25:30,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].value[0]+":"+e[0].value[1]:e[0].data}},title:[{show:!0,text:title,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:xName,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:[legendName],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"value",name:yName,nameGap:yValIsAllNull?5:30,nameRotate:90,nameLocation:"middle"}],series:[{name:legendName,type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:lineData[0].lineColor,type:"dotted"},itemStyle:{color:lineData[0].lineColor,opacity:0},data:seriesData,markPoint:{data:markPointData},markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value},lineStyle:{color:"#ddd",type:"solid"},data:markLineData.map(e=>({xAxis:e}))}}]};return option},chart110:(e,l,t,a,n)=>{let y=JSON.parse(e.chartLinesJson),o=e.chartTitle,x=e.chartXName,r=e.chartYName;const s=a[0];let i=[];s.forEach((e,l)=>{"/"==e?i.push(e):i.push(Number(e))});let u=t[0],m=[];i.forEach((e,l)=>{"/"!=e&&null!=e&&null!=e&&m.push([e,u[l]])});let c=!1;return 0==m.length&&(c=!0),{grid:{top:25,left:25,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:o,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:x,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{formatter:function(e){let l="";for(let t=0;t<i.length;t++)if(i[t]==e){l=s[t],"/"==l&&(l="");break}return l}}},yAxis:[{type:"value",name:r,nameGap:c?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:y[0].lineColor},itemStyle:{color:y[0].lineColor},data:m}]}},chart130:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName;const x=l[0],r=t[0];let s=.01,i=200,u=[];x.forEach((e,l)=>{u.push(["筛底"==e?0:e,r[l]])});let m=!1;0==x.length&&(m=!0);let c=0;return x.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||c++}),c==x.length&&(m=!0),r.some(e=>null!=e&&null!=e&&"/"!=e)&&(m=!1),m&&(s=null,i=null),{grid:{top:25,left:20,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"log",logBase:10,inverse:!0,min:s,max:i},yAxis:[{type:"value",name:o,nameGap:m?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:u}]}},chart150:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName;const x=l[0],r=t[0];let s=[];x.forEach((e,l)=>{s.push([e,r[l]])});let i=!1;0==x.length&&(i=!0);let u=0;return x.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||u++}),u==x.length&&(i=!0),r.some(e=>null!=e&&null!=e&&"/"!=e)&&(i=!1),{grid:{top:55,left:i?25:30,right:10,bottom:10,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",top:18,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1},position:"top"},yAxis:[{type:"value",name:o,nameGap:i?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:s,markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value},lineStyle:{color:"#ddd",type:"solid"},data:x.map(e=>({xAxis:e}))}}]}},chart170:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName;const x=l[0],r=t[0];let s=[];x.forEach((e,l)=>{s.push([e,r[l]])});let i=!1;0==x.length&&(i=!0);let u=0;return x.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||u++}),u==x.length&&(i=!0),r.some(e=>null!=e&&null!=e&&"/"!=e)&&(i=!1),{grid:{top:55,left:i?25:30,right:10,bottom:10,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",top:18,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1},position:"top"},yAxis:[{type:"value",name:o,nameGap:i?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:s,markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value},lineStyle:{color:"#ddd",type:"solid"},data:x.map(e=>({xAxis:e}))}}]}},chart190:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartXName,y=e.chartYName,o=l[0],x=t[0];o=o.filter(e=>null!=e&&null!=e&&"/"!=e&&(null==e._code||null==e._code)),x=x.filter(e=>null!=e&&null!=e&&"/"!=e&&(null==e._code||null==e._code));let r=!1;0==o.length&&(r=!0);let s=0;return o.forEach(e=>{null!=e&&null!=e&&"/"!=e||s++}),s==o.length&&(r=!0,o=[]),x.some(e=>null!=e&&null!=e&&"/"!=e)&&(r=!1),{grid:{top:10,left:r?25:30,right:10,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:18,fontWeight:"normal"}},{show:!0,text:n,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",data:o,axisTick:{alignWithLabel:!0},axisLabel:{formatter:function(e){return"/"==e?"":e}}},yAxis:[{type:"value",name:y,nameGap:r?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:x}]}},chart210:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=l[0],y=t[0],o=e.chartTitle,x=e.chartXName,r=e.chartYName;const s=[];for(let e=n.length-1;e>=0;e--){const l=n[e];null==l||null==l||"/"==l||null!=l._error&&null!=l._error||s.push([l,y[e]])}let i=!1;0==n.length&&(i=!0);let u=0;n.forEach(e=>{(null==e||null==e||"/"==e||null!=e._error&&null!=e._error)&&u++}),u==n.length&&(i=!0),y.some(e=>null!=e&&null!=e&&"/"!=e)&&(i=!1);return{grid:{top:25,left:!i&&s.length>0?30:25,right:10,bottom:40,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].value[0]+":"+e[0].value[1]:e[0].data}},title:[{show:!0,text:o,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:x,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"value",name:r,nameGap:!i&&s.length>0?30:5,nameRotate:90,nameLocation:"middle",axisLabel:{fontSize:10}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:s,markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value,fontSize:10},lineStyle:{color:"#ddd",type:"solid"},data:(()=>{let e=[];[0,.02,.04,.06,.08,.1].forEach(l=>{n.forEach(t=>{let a={xAxis:""};"/"==t?(a.xAxis="",e.push(a)):(a.xAxis=l,e.push(a))})});let l=e.filter((e,l,t)=>l===t.findIndex(l=>l.xAxis==e.xAxis));return u==n.length?[]:l})()}}]}},chart230:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=l.length,y=[],o=[],x=[],r=[],s=[],i=[];y=EChartsUtilsComm.filterNullEmptyErrArray(l[0]),r=EChartsUtilsComm.filterNullEmptyErrArray(t[0]),2==n&&(o=EChartsUtilsComm.filterNullEmptyErrArray(l[1]),s=EChartsUtilsComm.filterNullEmptyErrArray(t[1])),3==n&&(o=EChartsUtilsComm.filterNullEmptyErrArray(l[1]),s=EChartsUtilsComm.filterNullEmptyErrArray(t[1]),x=EChartsUtilsComm.filterNullEmptyErrArray(l[2]),i=EChartsUtilsComm.filterNullEmptyErrArray(t[2]));let u=[],m=[],c=[];y.forEach((e,l)=>{if("object"==typeof e)u.push(60*e.getHours()+e.getMinutes());else if("number"==typeof e)u.push(e);else{const l=e.split(":"),t=60*Number(l[0])+Number(l[1]);u.push(t)}}),o.forEach((e,l)=>{if("object"==typeof e)m.push(60*e.getHours()+e.getMinutes());else if("number"==typeof e)m.push(e);else{const l=e.split(":"),t=60*Number(l[0])+Number(l[1]);m.push(t)}}),x.forEach((e,l)=>{if("object"==typeof e)c.push(60*e.getHours()+e.getMinutes());else if("number"==typeof e)c.push(e);else{const l=e.split(":"),t=60*Number(l[0])+Number(l[1]);c.push(t)}}),y.length>0&&(u.push(u[u.length-1]+20),u.unshift(u[0]-20),r.push(null),r.unshift(null)),2==n&&o.length>0&&(m.push(m[m.length-1]+20),m.unshift(m[0]-20),s.push(null),s.unshift(null)),3==n&&0==x.length&&(m.push(m[m.length-1]+20),m.unshift(m[0]-20),s.push(null),s.unshift(null),c.push(c[c.length-1]+20),c.unshift(c[0]-20),i.push(null),i.unshift(null));let h=e.chartTitle,p=e.chartXName,f=e.chartYName;const d=(e,l)=>({type:"category",data:l,axisTick:{alignWithLabel:!0},show:1==e,splitLine:{show:!0}});let g=[d(1,u)];2==n&&g.push(d(2,m)),3==n&&(g.push(d(2,m)),g.push(d(3,c)));const b=(e,l)=>{const t=1==e?"第一组":2==e?"第二组":"第三组",n=1==e?"rect":2==e?"triangle":"circle",y=1==e?"solid":2==e?"dotted":[10,5],o=1==e&&a.length>=1?a[0].lineColor:2==e&&a.length>=2?a[1].lineColor:3==e&&a.length>=3?a[2].lineColor:"#000";return{name:t,type:"line",smooth:!0,symbol:n,symbolSize:6,lineStyle:{color:o,type:y},itemStyle:{color:o},data:l}};let C=[b(1,r)];2==n&&s.length>0&&C.push(b(2,s)),3==n&&(s.length>0&&C.push(b(2,s)),i.length>0&&C.push(b(3,i)));let S=1==n?["第一组"]:2==n?["第一组","第二组"]:["第一组","第二组","第三组"],w=1==n?{"第一组":!0}:2==n?{"第一组":!0,"第二组":!0}:{"第一组":!0,"第二组":!0,"第三组":!0},F=!1,V=!1,E=0;return 0==y.length?(V=!0,E=15,S=["第二组","第三组"],w={"第一组":!1,"第二组":!0,"第三组":!0},g=[],C=[],g.push(d(1,m)),g.push(d(3,c)),C.push(b(2,s)),C.push(b(3,i)),0==o.length&&(E=35,S=["第三组"],w={"第一组":!1,"第二组":!1,"第三组":!0},g=[],C=[],g.push(d(1,c)),C.push(b(3,i)),0==x.length&&(E=0,F=!0,S=[],w={"第一组":!1,"第二组":!1,"第三组":!1},g=[],C=[],g.push(d(1,[])),C.push(b(3,[]))))):0==o.length?(E=15,V=!0,S=["第一组","第三组"],w={"第一组":!0,"第二组":!1,"第三组":!0},g=[],C=[],g.push(d(1,u)),g.push(d(3,c)),C.push(b(1,r)),C.push(b(3,i)),0==y.length&&(E=35,S=["第三组"],w={"第一组":!1,"第二组":!1,"第三组":!0},g=[],C=[],g.push(d(1,u)),C.push(b(3,r)),0==x.length&&(E=0,F=!0,S=[],w={"第一组":!1,"第二组":!1,"第三组":!1},g=[],C=[],g.push(d(1,[])),C.push(b(3,[]))))):0==x.length&&(E=15,V=!0,S=["第一组","第二组"],w={"第一组":!0,"第二组":!0,"第三组":!1},g=[],C=[],g.push(d(1,u)),g.push(d(2,m)),C.push(b(1,r)),C.push(b(2,s)),0==y.length&&(E=35,S=["第二组"],w={"第一组":!1,"第二组":!0,"第三组":!1},g=[],C=[],g.push(d(1,m)),C.push(b(2,s)),0==o.length&&(E=0,F=!0,S=[],w={"第一组":!1,"第二组":!1,"第三组":!1},g=[],C=[],g.push(d(1,[])),C.push(b(2,[]))))),{grid:{top:V?E:-5,left:30,right:10,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:h,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:p,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{left:"center",top:16,data:S,selected:w,selectedMode:"multiple"},xAxis:g,yAxis:[{type:"value",name:f,nameGap:F?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:C}},chart250:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName;const x=l[0],r=t[0];let s=[];x.forEach((e,l)=>{s.push([e,r[l]])});let i=.001,u=100,m=!1;0==x.length&&(m=!0);let c=0;return x.forEach(e=>{null!=e&&null!=e&&"/"!=e||c++}),c==x.length&&(m=!0,i=null,u=null),r.some(e=>null!=e&&null!=e&&"/"!=e)&&(m=!1),{grid:{top:25,left:20,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"log",logBase:10,inverse:!0,min:i,max:u},yAxis:[{type:"value",name:o,nameGap:m?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:s}]}},chart270:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName,x=[],r=[],s=[],i=[],u=[],m=[];l[0].forEach((e,l)=>{0!=e&&0!=t[0][l]&&(x.push(e),i.push(t[0][l]))}),l[1].forEach((e,l)=>{0!=e&&0!=t[1][l]&&(r.push(e),u.push(t[1][l]))}),l[2].forEach((e,l)=>{0!=e&&0!=t[2][l]&&(s.push(e),m.push(t[2][l]))});const c=(e,l,t)=>{const n=`曲线${e}`,y=1==e?"rect":2==e?"triangle":"circle",o=1==e?"solid":2==e?"dotted":[10,5],x=1==e?a[0].lineColor:2==e?a[1].lineColor:a[2].lineColor,r=[];return l.forEach((e,l)=>{r.push([e,t[l]])}),{name:n,type:"line",smooth:!0,symbol:y,symbolSize:5,lineStyle:{color:x,type:o},itemStyle:{color:x},data:r}};let h=!1;return x.every(e=>"/"==e)&&r.every(e=>"/"==e)&&s.every(e=>"/"==e)&&i.every(e=>"/"==e)&&u.every(e=>"/"==e)&&m.every(e=>"/"==e)&&(h=!0),{grid:{top:35,left:h?25:30,right:20,bottom:5,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+e[0].value[1]:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",top:16,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",axisTick:{alignWithLabel:!0},splitLine:{show:!0},position:"top",nameGap:5,nameLocation:"end"},yAxis:[{type:"value",name:o,nameGap:h?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[c(1,x,i),c(2,r,u),c(3,s,m)]}},chart279_280_281:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName,x=279==e.chartType?5:280==e.chartType?.1:.15,r=l[0],s=t[0],i=Math.min(...r),u=Number(EChartsUtilsComm.getRound(Math.min(...s)-x,.001)),m=Number(EChartsUtilsComm.getRound(Math.max(...s)+x,.001));i=Number(EChartsUtilsComm.getRound(i-.01*i,.001));let c=[];r.forEach((e,l)=>{c.push([e,s[l]])});let h=!1;return s.every(e=>"/"==e)&&(h=!0),{grid:{top:25,left:20,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",min:i,max:100},yAxis:[{type:"value",name:o,nameGap:h?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0},min:u,max:m}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:c}]}},chart290:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName,x=l[0],r=l[0],s=l[0],i=t[0],u=t[1],m=t[2];const c=(e,l)=>{const t=`曲线${e}`,n=1==e?"rect":2==e?"triangle":"circle",y=1==e?"solid":2==e?"dotted":[10,5],o=1==e?a[0].lineColor:2==e?a[1].lineColor:a[2].lineColor;return{name:t,type:"line",smooth:!0,symbol:n,symbolSize:5,lineStyle:{color:o,type:y},itemStyle:{color:o},data:l}};let h=!1;return x.every(e=>"/"==e)&&r.every(e=>"/"==e)&&s.every(e=>"/"==e)&&i.every(e=>"/"==e)&&u.every(e=>"/"==e)&&m.every(e=>"/"==e)&&(h=!0,x=[]),{grid:{top:35,left:h?25:30,right:10,bottom:5,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",top:16,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",data:x,axisTick:{alignWithLabel:!0},splitLine:{show:!0},position:"top",nameGap:5,nameLocation:"end",axisLabel:{formatter:function(e){return"/"==e?"":e}}},yAxis:[{type:"value",name:o,nameGap:h?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[c(1,i),c(2,u),c(3,m)]}},chart310:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName,x=l[0],r=t[0],s=[],i=[];x.forEach((e,l)=>{null==e||null==e||"/"==e||null!=e._code&&null!=e._code||(s.push(e),i.push(r[l]))}),x=s,r=i;let u=!1;return x.every(e=>"/"==e||null!=e._code&&null!=e._code)&&r.every(e=>"/"==e||null!=e._code&&null!=e._code)&&(u=!0,x=[]),{grid:{top:35,left:u?25:30,right:20,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",top:16,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",data:x,axisLabel:{formatter:function(e){return"/"==e?"":e}},axisTick:{alignWithLabel:!0},axisLine:{symbol:["none","arrow"],symbolSize:10},splitLine:{show:!0},position:"top",name:"p",nameGap:5,nameLocation:"end"},yAxis:[{type:"value",name:o,nameGap:u?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0,symbol:["arrow","none"],symbolSize:10}},{name:"L",nameRotate:0,nameLocation:"end",nameGap:5,position:"left",inverse:!0}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:r}]}},chart330:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=e.chartXName,x=e.chartYName,r=l[0],s=t[0];const i=EChartsUtilsComm.calcTrend(r,s,r[0]);let u=EChartsUtilsComm.getRound((.15-i.jj)/i.xl,0),m=EChartsUtilsComm.getRound((.19-i.jj)/i.xl,0),c=EChartsUtilsComm.getRound((.25-i.jj)/i.xl,0),h=EChartsUtilsComm.getRound((.31-i.jj)/i.xl,0);u==1/0&&(u=0),m==1/0&&(m=0),c==1/0&&(c=0),h==1/0&&(h=0);let p=`${u}~${m}`,f=`${c}~${h}`;null!=y&&(0==u&&0==m?a.setValue(y.bszdjBh.row,y.bszdjBh.col,"/"):a.setValue(y.bszdjBh.row,y.bszdjBh.col,p),0==c&&0==h?a.setValue(y.bszdjYs.row,y.bszdjYs.col,"/"):a.setValue(y.bszdjYs.row,y.bszdjYs.col,f));let d=!1;return r.every(e=>"/"==e)&&s.every(e=>"/"==e)&&(d=!0,r=[]),{grid:{top:10,left:d?25:30,right:10,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:18,fontWeight:"normal"}},{show:!0,text:o,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",data:r,axisTick:{alignWithLabel:!0},axisLabel:{formatter:function(e){return"/"==e?"":e}}},yAxis:[{type:"value",name:x,nameGap:d?5:25,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:s}]}},chart350:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson)[0].lineColor;const n=[l[0][0],l[0][1]],y=[t[0][0],t[0][1]],o=Number(EChartsUtilsComm.getRound(EChartsUtilsComm.calcTrend(n,y,n[0]).y,.1)),x=Number(EChartsUtilsComm.getRound(EChartsUtilsComm.calcTrend(n,y,n[1]).y,.1)),r=Number(EChartsUtilsComm.getRound(EChartsUtilsComm.calcTrend(n,y,25).y,.1)),s=Math.floor(Number(x))-2,i=Math.floor(Number(o))+2;let u=e.chartTitle,m=e.chartXName,c=e.chartYName,h=!0;h=0==l[0].filter(e=>null!=e&&null!=e&&"/"!=e).length,h&&(h=0==t[0].filter(e=>null!=e&&null!=e&&"/"!=e).length);let p=[{name:"图例1",type:"line",symbol:"circle",z:10,lineStyle:{color:a},itemStyle:{color:a},connectNulls:!0,data:[[0,null],[2,null],[3.5,null],[4.9,null],[5.9,null],[6.9,null],{value:[10.4,r-2.7*(r-o)/2.1],symbol:"none"},[11,o],[11.8,null],[13.1,r],[14.6,x],{value:[15.2,2.1/1.5*(x-r)+r],symbol:"none"},[16.4,null],[17.4,null],[18.9,null],[19.8,null],[20.7,null],[21.6,null],[22.6,null]],markPoint:{data:[{xAxis:13.1,yAxis:r,symbolOffset:[40,25],label:{show:!0,color:"#000",formatter:function(e){return h?"":"( 25 , "+e.data.yAxis+")"}},itemStyle:{color:"transparent"}}]},markLine:{symbol:"",silent:!0,label:{position:"start",formatter:e=>e.name},lineStyle:{color:"#e0e6f1",type:"solid"},data:[{name:"5",xAxis:0,label:{fontSize:8}},{name:"6",xAxis:2,label:{fontSize:8}},{name:"7",xAxis:3.5,label:{fontSize:8}},{name:"8",xAxis:4.9,label:{fontSize:8}},{name:"9",xAxis:5.9,label:{fontSize:8}},{name:"10",xAxis:6.9,label:{fontSize:8}},{name:"",xAxis:10.4,lineStyle:{opacity:0}},{name:"",xAxis:11},{name:"20",xAxis:11.8,label:{fontSize:8}},{name:"25",xAxis:13.1,label:{fontSize:8}},{name:"30",xAxis:14.6,label:{fontSize:8}},{name:"",xAxis:15.2,lineStyle:{opacity:0}},{name:"40",xAxis:16.4,label:{fontSize:8}},{name:"50",xAxis:17.4,label:{fontSize:8}},{name:"",xAxis:18.9},{name:"",xAxis:19.8},{name:"",xAxis:20.7},{name:"",xAxis:21.6},{name:"100",xAxis:22.6,label:{fontSize:8}},[{coord:[0,r],lineStyle:{color:"#529b2e",type:"solid"}},{coord:[13.1,r]}],[{coord:[13.1,s],lineStyle:{color:"#000",type:"silid"}},{coord:[13.1,r]}]]}}];return h&&(p=[]),{grid:{top:25,left:30,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e[0].data.length>1?null==e[0].data[1]?"":e[0].seriesName+"("+e[0].data[0]+"):"+e[0].data[1]:e[0].data}},title:[{show:!0,text:u,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:m,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},min:0,max:23.5},yAxis:[{type:"value",name:c,nameGap:h?10:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},splitNumber:4,min:h?null:s,max:i,axisLabel:{show:!h,fontSize:8},axisTick:{show:!h}}],series:p}},chart370:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=null!=y?y.dxsJs:5;const x=n[0].lineColor;for(var r=l[0],s=t[0],i=0,u=0,m=0,c=0,h=0,p=0;p<r.length;p++){var f=r[p],d=s[p],g=f*f,b=g*f;i+=b*f,u+=b,m+=g,c+=g*d,h+=f*d}var C=i*m-u*u,S=(c*m-h*u)/C,w=(i*h-u*c)/C,F=w*w+4*S*50,V=(-w+Math.sqrt(F))/(o*S);(V<0||V>Math.max(...r)+Math.min(...r))&&(V=(-w-Math.sqrt(F))/(o*S));var E=[],N=[],v=Math.max(...r)+Math.min(...r);for(f=0;f<=v;f+=.01)E.push(f),N.push(S*f*f+w*f);let A=!1;if(0==N.length)A=!0;else{let e=0;N.forEach(l=>{null!=l&&null!=l&&"/"!=l&&""!=l||e++}),e==N.length&&(A=!0)}const D=E.map((e,l)=>[e,N[l]]);let U=.01,J=0;return null!=y&&(null!=y.jsDzviJd&&null!=y.jsDzviJd&&(U=y.jsDzviJd),J=EChartsUtilsComm.getRound(V,U),a.setValue(y.jsDzvi.row,y.jsDzvi.col,J)),{title:[{show:!0,text:"V₂₀(mm/s)",left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],grid:{top:10,left:25,right:10,bottom:20,containLabel:!0},xAxis:{type:"value",name:"X轴",min:0,max:v,axisLine:{show:!0}},yAxis:{type:"value",name:"Δh (mm)",nameGap:A?5:30,nameRotate:90,nameLocation:"middle",min:0,max:Math.max(...s)+10,interval:10,axisLine:{show:!0}},series:[{name:"趋势线",type:"line",data:D,symbol:"none",lineStyle:{color:x,type:"solid"},smooth:!0},{name:"y=50 标注点",type:"scatter",data:[[V,50]],symbolSize:10,itemStyle:{color:x},label:{show:!0,position:"right",formatter:"("+V.toFixed(2)+", 50)",color:"#333",fontSize:12},markLine:{symbol:"none",lineStyle:{color:"#333",type:"dashed",width:1},data:[[{coord:[0,50]},{coord:[V,50]}],[{coord:[V,50]},{coord:[V,0]}]]}}]}},chart390:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName,x=[],r=[];a.forEach((e,a)=>{l[a].some(e=>0!=e&&null!=e&&null!=e&&"/"!=e)&&t[a].some(e=>0!=e&&null!=e&&null!=e&&"/"!=e)&&(x.push(e.legend),r.push({name:e.legend,type:"line",data:l[0].filter(e=>0!=e&&null!=e&&null!=e&&"/"!=e).map((e,l)=>[e,t[a][l]]),symbol:0==a?"triangle":1==a?"circle":"rect",lineStyle:{color:e.lineColor,type:2==a?"solid":"dotted"},smooth:!0}))});return{title:[{show:!0,text:n,left:"100px",top:5,textStyle:{fontSize:12,fontWeight:"normal"}},{show:!0,text:y,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{top:"2px",right:"5px",data:x,selectedMode:"multiple"},grid:{top:25,left:25,right:10,bottom:20,containLabel:!0},xAxis:{type:"value",name:"X轴",min:0,axisLine:{show:!0}},yAxis:{type:"value",name:o,nameGap:30,nameRotate:90,nameLocation:"middle",min:0,interval:10,axisLine:{show:!0}},series:r}},chart410:(config,xDataArr,yDataArr,sheet)=>{let lineData=JSON.parse(config.chartLinesJson);const chartExtJson=null==config.chartExtJson||null==config.chartExtJson?null:JSON.parse(config.chartExtJson);let yDataSource=yDataArr[0],title=config.chartTitle,xName=config.chartXName,yName=config.chartYName,legendName="图例1",xData=xDataArr[0],xDataCl=[],yDataSourceCl=[];for(let e=0;e<xData.length;e++)if("/"!=xData[e]&&(0==e||e>0&&0!=xData[e]))xDataCl.push(xData[e]),yDataSourceCl.push(yDataSource[e]);else if(e>0&&0==xData[e])break;xData=xDataCl,yDataSource=yDataSourceCl;let seriesData=[],markPointData=[],markLineData=[...xData];const gsS=EChartsUtilsComm.calcTrend(xData,yDataSource,xData[0]);if(null!=chartExtJson&&null!=chartExtJson.yhmhlBzHgx&&null!=chartExtJson.yhmhlBzHgx)if(""==gsS.xl||""==gsS.jj)sheet.setValue(chartExtJson.yhmhlBzHgx.row,chartExtJson.yhmhlBzHgx.col,"/");else{const e=EChartsUtilsComm.getRound(gsS.jj,1e-4);sheet.setValue(chartExtJson.yhmhlBzHgx.row,chartExtJson.yhmhlBzHgx.col,`Y=${EChartsUtilsComm.getRound(gsS.xl,1e-4)}X${e>=0?"+":""}${e}`)}let yDataCopy=[];xData.forEach((item,index)=>{let curYData=Number(EChartsUtilsComm.getRound(eval(gsS.gs.replace("x",item+"")),.01));isNaN(curYData)&&(curYData=0),seriesData.push([item,yDataSource[index]]),yDataCopy.push(curYData),markPointData.push({xAxis:item,yAxis:yDataSource[index],symbol:"circle",symbolSize:6})});let yValIsAllNull=!1;0==xData.length&&(yValIsAllNull=!0);let nullCount=0;xData.forEach(e=>{0!=e[1]&&null!=e[1]&&null!=e[1]||nullCount++}),nullCount==xData.length&&(yValIsAllNull=!0),yDataCopy.some(e=>0!=e||null==e[1]||null==e[1])&&(yValIsAllNull=!1);let option={grid:{top:22,left:yValIsAllNull?25:30,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].value[0]+":"+e[0].value[1]:e[0].data}},title:[{show:!0,text:title,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:xName,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:[legendName],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"value",name:yName,nameGap:yValIsAllNull?5:30,nameRotate:90,nameLocation:"middle"}],series:[{name:legendName,type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:lineData[0].lineColor,type:"solid"},itemStyle:{color:lineData[0].lineColor,opacity:0},data:seriesData,markPoint:{data:markPointData},markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value},lineStyle:{color:"#ddd",type:"solid"},data:markLineData.map(e=>({xAxis:e}))}}]};return option},chart430:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=e.chartTitle,x=e.chartXName,r=e.chartYName,s=n[0].lineColor;const i=l[0],u=t[0];let m=!1;0!=i.length&&0!=u.length&&(i.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||u.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(m=!0),i.filter(e=>0==e).length!=i.length&&u.filter(e=>0==e).length!=u.length||(m=!0);let c="/",h="/",p="/",f=[];const d=Math.max(...i);if(!m){const e=function(e,l,t){const a=e.length;let n=[];for(let y=0;y<a;y++){let a=[];for(let l=0;l<=t;l++)a.push(Math.pow(e[y],l));n.push([l[y]])}let y=[];for(let l=0;l<=t;l++){y[l]=[];for(let n=0;n<=t;n++){let t=0;for(let y=0;y<a;y++)t+=Math.pow(e[y],l+n);y[l][n]=t}}let o=[];for(let n=0;n<=t;n++){let t=0;for(let y=0;y<a;y++)t+=Math.pow(e[y],n)*l[y];o[n]=t}let x=[];for(let e=0;e<=t;e++){x[e]=[];for(let l=0;l<=t;l++)x[e][l]=y[e][l];x[e][t+1]=o[e]}for(let e=0;e<=t;e++){let l=e;for(let a=e+1;a<=t;a++)Math.abs(x[a][e])>Math.abs(x[l][e])&&(l=a);[x[e],x[l]]=[x[l],x[e]];const a=x[e][e];for(let l=e;l<=t+1;l++)x[e][l]/=a;for(let l=e+1;l<=t;l++){const a=x[l][e];for(let n=e;n<=t+1;n++)x[l][n]-=a*x[e][n]}}const r=new Array(t+1);for(let e=t;e>=0;e--){r[e]=x[e][t+1];for(let l=e+1;l<=t;l++)r[e]-=x[e][l]*r[l]}return r}(i,u,2);c=e[2].toFixed(4),h=e[1].toFixed(4),p=e[0].toFixed(4);const l=Math.min(...i),t=(d-l)/100;for(let e=l;e<=d;e+=t){const l=parseFloat(c)*e*e+parseFloat(h)*e+parseFloat(p);f.push([e,l])}}return null!=y&&(null!=y.dwylHtbxGs&&null!=y.dwylHtbxGs&&a.setValue(y.dwylHtbxGs.row,y.dwylHtbxGs.col,"NaN"!=c&&"NaN"!=h&&"NaN"!=p?`Y=${c}X²+${h}X+${p}`:"/"),null!=y.dwylHtbxA&&null!=y.dwylHtbxA&&a.setValue(y.dwylHtbxA.row,y.dwylHtbxA.col,"NaN"!=c?c:"/"),null!=y.dwylHtbxB&&null!=y.dwylHtbxB&&a.setValue(y.dwylHtbxB.row,y.dwylHtbxB.col,"NaN"!=h?h:"/"),null!=y.dwylHtbxC&&null!=y.dwylHtbxC&&a.setValue(y.dwylHtbxC.row,y.dwylHtbxC.col,"NaN"!=p?p:"/")),{title:[{show:!0,text:o,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:x,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],grid:{top:25,left:25,right:15,bottom:20,containLabel:!0},xAxis:{type:"value",nameLocation:"end",nameTextStyle:{fontSize:14,padding:[10,0,0,0]},min:0,max:d+.05},yAxis:{type:"value",name:r,nameGap:m?5:30,nameRotate:90,nameLocation:"middle",interval:20,min:0,max:Math.max(...u)+10,axisLine:{lineStyle:{color:"#333"}}},tooltip:{trigger:"axis",formatter:function(e){return e.length>1?`单位压力: ${e[0].value[0]} MPa<br/>回弹变形: ${e[0].value[1]} (1/1000mm)`:`趋势线<br/>单位压力: ${e[0].value[0]} MPa<br/>预测回弹变形: ${e[0].value[1].toFixed(2)} (1/1000mm)`}},series:[{name:"原始数据",type:"scatter",data:i.map((e,l)=>[e,u[l]]),symbolSize:5,itemStyle:{color:s}},{name:"多项式趋势线",type:"line",data:f,symbol:"none",lineStyle:{color:s,width:1,type:"dashed"},smooth:.3,tooltip:{trigger:"item"}}]}},chart450:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName,x=a[0].lineColor;const r=l[0],s=t[0];const i=function(e,l){const t=e.length;let a=0,n=0,y=0,o=0;for(let x=0;x<t;x++)a+=e[x],n+=l[x],y+=e[x]*l[x],o+=e[x]*e[x];const x=(t*y-a*n)/(t*o-a*a);return{slope:x,intercept:(n-x*a)/t}}(r,s);Math.min(...r);const u=Math.max(...r)+50,m=[];for(let e=0;e<=u;e+=10){const l=i.slope*e+i.intercept;m.push([e,l])}let c=!1;0!=r.length&&0!=s.length&&(r.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||s.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(c=!0),r.filter(e=>0==e).length!=r.length&&s.filter(e=>0==e).length!=s.length||(c=!0);return{title:[{show:!0,text:n,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],grid:{top:25,left:25,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e){let l="";return e.forEach(e=>{"实际数据"===e.seriesName?l+=`法向应力: ${e.value[0]} kPA<br/>剪应力: ${e.value[1]} kPA`:"趋势线"===e.seriesName&&(l+=`趋势线<br/>法向应力: ${e.value[0]} kPA<br/>预测剪应力: ${e.value[1].toFixed(2)} kPA`)}),l}},xAxis:{name:y,nameLocation:"end",nameGap:20,nameTextStyle:{fontSize:12,fontWeight:"bold"},type:"value",min:0,max:450,interval:50,axisLine:{lineStyle:{color:"#333"}}},yAxis:{name:o,nameGap:c?5:35,nameRotate:90,nameLocation:"middle",type:"value",min:0,interval:50,axisLine:{lineStyle:{color:"#333"}}},series:[{name:"实际数据",type:"scatter",data:c?[]:r.map((e,l)=>[e,s[l]]),symbolSize:5,itemStyle:{color:x}},{name:"趋势线",type:"line",data:c?[]:m,symbol:"none",lineStyle:{color:x,width:1,type:"solid"}}]}},chart470:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=e.chartTitle,x=e.chartXName,r=e.chartYName,s=n[0].lineColor;const i=l[0],u=t[0];function m(e,l,t){for(let a=0;a<t.length-1;a++)if(t[a]>=e&&t[a+1]<=e||t[a]<=e&&t[a+1]>=e){const n=l[a],y=l[a+1],o=t[a];return n+(y-n)*(e-o)/(t[a+1]-o)}return null}const c=m(5,i,u),h=m(10,i,u);let p=!1;0!=i.length&&0!=u.length&&(i.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||u.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(p=!0),i.filter(e=>0==e).length!=i.length&&u.filter(e=>0==e).length!=u.length||(p=!0),null!=y&&(null!=y.tghcclYxkj5&&null!=y.tghcclYxkj5&&a.setValue(y.tghcclYxkj5.row,y.tghcclYxkj5.col,c?EChartsUtilsComm.getRound(c,.001):"/"),null!=y.tghcclYxkj10&&null!=y.tghcclYxkj10&&a.setValue(y.tghcclYxkj10.row,y.tghcclYxkj10.col,h?EChartsUtilsComm.getRound(h,.001):"/"));return{title:[{show:!0,text:o,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:x,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],tooltip:{trigger:"axis",formatter:function(e){return`标准颗粒直径: ${e[0].value[0].toFixed(3)} mm<br>过筛率: ${e[0].value[1].toFixed(2)} %`}},grid:{top:25,left:25,right:15,bottom:20,containLabel:!0},xAxis:{name:x,nameLocation:"end",nameGap:20,nameTextStyle:{fontSize:12},type:"log",axisLine:{lineStyle:{color:"#333"}},min:.01,max:1,axisLabel:{formatter:function(e){return e.toFixed(2)}},splitLine:{show:!0,lineStyle:{color:"#f0f0f0",width:1,type:"solid"}},minorTick:{show:!0},minorSplitLine:{show:!0,lineStyle:{color:"#f0f0f0",width:1,type:"solid"}}},yAxis:{type:"value",name:r,nameLocation:"middle",nameGap:25,nameTextStyle:{fontSize:12},axisLine:{lineStyle:{color:"#333"}},min:0,max:25,splitLine:{show:!0,lineStyle:{color:"#f0f0f0",width:1}}},series:p?[]:[{name:"孔径分布",type:"line",data:i.map((e,l)=>[e,u[l]]),smooth:!0,lineStyle:{width:2,type:"solid"},showSymbol:!0,symbol:"circle",symbolSize:8,itemStyle:{color:s,borderColor:"#fff",borderWidth:1},markPoint:{symbol:"circle",symbolSize:1,data:[{name:"y=5",coord:[c,5],value:5,itemStyle:{color:"red"},label:{show:!0,formatter:`(${c.toFixed(3)},5)`,position:"right",fontSize:12}},{name:"y=10",coord:[h,10],value:10,itemStyle:{color:"red"},label:{show:!0,formatter:`(${h.toFixed(3)},10)`,position:"right",fontSize:12}}]},markLine:{symbol:"none",data:[[{coord:[.01,5],lineStyle:{type:"dashed",color:"red",width:1}},{coord:[c,5],lineStyle:{type:"dashed",color:"red",width:1}}],[{coord:[c,0],lineStyle:{type:"dashed",color:"red",width:1}},{coord:[c,5],lineStyle:{type:"dashed",color:"red",width:1}}],[{coord:[.01,10],lineStyle:{type:"dashed",color:"red",width:1}},{coord:[h,10],lineStyle:{type:"dashed",color:"red",width:1}}],[{coord:[h,0],lineStyle:{type:"dashed",color:"red",width:1}},{coord:[h,10],lineStyle:{type:"dashed",color:"red",width:1}}]]}}]}},chart490:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=e.chartTitle,x=e.chartXName,r=e.chartYName,s=n[0].lineColor;const i=l[0],u=t[0];const m=u.map(e=>Math.log10(e)),c=function(e,l){const t=e.length,a=e.reduce((e,l)=>e+l,0)/t,n=l.reduce((e,l)=>e+l,0)/t;let y=0,o=0;for(let x=0;x<t;x++)y+=(e[x]-a)*(l[x]-n),o+=(e[x]-a)*(e[x]-a);const x=y/o;return{slope:x,intercept:n-x*a}}(i,m),h=function(e,l,t,a){const n=e.length,y=l.reduce((e,l)=>e+l,0)/n;let o=0,x=0;for(let r=0;r<n;r++){o+=Math.pow(l[r]-y,2);const n=t*e[r]+a;x+=Math.pow(l[r]-n,2)}return 1-x/o}(i,m,c.slope,c.intercept);let p=!1;0!=i.length&&0!=u.length&&(i.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||u.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(p=!0),i.filter(e=>0==e).length!=i.length&&u.filter(e=>0==e).length!=u.length||(p=!0);const f=(p?[]:[30,70,100,150,200]).map(e=>({yAxis:e,label:{show:!0,formatter:"{c}"},lineStyle:{color:"#e0e0e0",width:1,type:"solid"}}));null!=y&&(null!=y.wdzrdXlA&&null!=y.wdzrdXlA&&a.setValue(y.wdzrdXlA.row,y.wdzrdXlA.col,c.slope?EChartsUtilsComm.getRound(c.slope,1e-4):"/"),null!=y.wdzrdCsB&&null!=y.wdzrdCsB&&a.setValue(y.wdzrdCsB.row,y.wdzrdCsB.col,c.intercept?EChartsUtilsComm.getRound(c.intercept,1e-4):"/"),null!=y.wdzrdXsR&&null!=y.wdzrdXsR&&a.setValue(y.wdzrdXsR.row,y.wdzrdXsR.col,h?EChartsUtilsComm.getRound(h,1e-4):"/"));return{title:[{show:!0,text:o,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:x,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],grid:{top:25,left:p?20:40,right:15,bottom:20,containLabel:!0},xAxis:{type:"value",name:x,min:Math.min(...i)},yAxis:{type:"log",name:r,nameLocation:"middle",nameGap:p?5:25,logBase:10,min:function(e){return Math.max(1,Math.pow(10,Math.floor(Math.log10(e.min))))},max:function(e){const l=e.max;if(l<=0)return 100;const t=Math.log10(l),a=Math.floor(t),n=t-a;let y;return y=n<.3?a+.3:n<.7?a+1:a+1.5,Math.pow(10,y)},splitLine:{show:!1},axisLabel:{show:!1},zlevel:1,minorSplitLine:{show:!1}},series:[{name:"原始数据",type:"scatter",data:i.map((e,l)=>[e,u[l]]),symbolSize:6,zlevel:4,itemStyle:{color:s}},{name:"趋势线",type:"line",data:(()=>{const e=Math.min(...i),l=Math.max(...i),t=[];for(let a=e;a<=l;a+=.5){const e=c.slope*a+c.intercept,l=Math.pow(10,e);t.push([a,l])}return t})(),showSymbol:!1,lineStyle:{color:s,width:1},zlevel:5},{name:"自定义网格线",type:"line",data:[],markLine:{symbol:"none",lineStyle:{color:"#e0e0e0",width:1,type:"solid"},label:{show:!0,position:"start",formatter:"{c}"},data:f},silent:!0}]}}},EChartsUtils={create:(e,l,t,a,...n)=>__awaiter(void 0,[e,l,t,a,...n],void 0,function*(e,l,t,a,n=!1,y=!1){a.chartIdStr&&a.chartIdStr.length>0&&(a.chartId=a.chartIdStr);const o=null==a.chartExtJson||null==a.chartExtJson?null:JSON.parse(a.chartExtJson);if(null!=o&&null!=o.isShowCon&&null!=o.isShowCon){if(t.getValue(o.isShowCon.row,o.isShowCon.col)!=o.isShowVal)return void t.floatingObjects.remove(a.chartId)}let x=0,r=0,s=0,i=0;for(let e=0;e<a.row;e++)x+=t.getRowHeight(e);x+=t.getRowHeight(0,e.Spread.Sheets.SheetArea.colHeader);for(let e=a.col;e<a.col+a.colCount;e++)r+=t.getColumnWidth(e);for(let e=0;e<a.col;e++)s+=t.getColumnWidth(e);s+=t.getColumnWidth(0,e.Spread.Sheets.SheetArea.rowHeader);for(let e=a.row;e<a.row+a.rowCount;e++)i+=t.getRowHeight(e);const u={x:s-40+2,y:x-20+2,w:r-6,h:i-6};let m=t.floatingObjects.get(a.chartId);if(null==m||null==m?(m=new e.Spread.Sheets.FloatingObjects.FloatingObject(a.chartId,u.x,u.y,u.w,u.h),m.allowResize(!1),m.allowMove(!1),t.floatingObjects.add(m)):(m.x(u.x),m.y(u.y),m.width(u.w),m.height(u.h)),null==document.getElementById(a.chartId+"_ec")){const e=document.createElement("div");e.setAttribute("style","background-color:#fff;width:100%;height:100%;"),e.innerHTML=`<div id="${a.chartId}_ec" style="width:100%;height:100%;"></div>`,m.content(e)}let c=null;return c=(yield new Promise((e,o)=>{setTimeout(()=>{e({ecObj:EChartsUtils.initChart(l,t,a,n,y)})},10)})).ecObj,{fObj:m,fObjPosition:u,ecObj:c}}),initChart:(e,l,t,a=!1,n=!1)=>{if(null==document.getElementById(t.chartId+"_ec"))return null;let y=[],o=[],x=[],r=[];const s=(e,l,t,a)=>{let n={dataOneArr:[],dataOneSourceArr:[]},y=null;return null!=t&&null!=t&&t.length>0&&(y=e.getSheetFromName(t)),null==a||a.forEach((e,t)=>{const a=null!=y?y.getValue(e.row,e.col):l.getValue(e.row,e.col);n.dataOneSourceArr.push(a),/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(a)?n.dataOneArr.push(Number(a)):n.dataOneArr.push(null==a||null!=a&&null!=a&&null!=a._error&&null!=a._error?0:a)}),n};JSON.parse(t.chartLinesJson).forEach((t,a)=>{let n=[],i=[],u=[],m=[];const c=s(e,l,t.sheetNameX,t.xCells);n=c.dataOneArr,u=c.dataOneSourceArr;const h=s(e,l,t.sheetNameY,t.yCells);i=h.dataOneArr,m=h.dataOneSourceArr,y.push(n),o.push(i),x.push(u),r.push(m)});const i=document.getElementById(t.chartId+"_ec");let u,m=echarts__namespace.getInstanceByDom(i);return null!=m&&null!=m||(m=echarts__namespace.init(i,null,{renderer:"canvas",useDirtyRect:!1})),10==t.chartType?u=EChartsUtilsAll.chart10(t,y,o,l):11==t.chartType?u=EChartsUtilsAll.chart11(t,y,o,l):12==t.chartType?u=EChartsUtilsAll.chart12(t,y,o,l):13==t.chartType?u=EChartsUtilsAll.chart13(t,y,o,l):14==t.chartType?u=EChartsUtilsAll.chart14(t,y,o,l):15==t.chartType?u=EChartsUtilsAll.chart15(t,y,o,l):16==t.chartType?u=EChartsUtilsAll.chart16(t,y,o,l):30==t.chartType?u=EChartsUtilsAll.chart30(t,y,o,l):50==t.chartType?u=EChartsUtilsAll.chart50(t,y,o):70==t.chartType?u=EChartsUtilsAll.chart70(t,y,o,l):90==t.chartType?u=EChartsUtilsAll.chart90(t,y,o,l):110==t.chartType?u=EChartsUtilsAll.chart110(t,y,o,x,r):130==t.chartType?u=EChartsUtilsAll.chart130(t,y,o):150==t.chartType?u=EChartsUtilsAll.chart150(t,y,o):170==t.chartType?u=EChartsUtilsAll.chart170(t,y,o):190==t.chartType?u=EChartsUtilsAll.chart190(t,y,o):210==t.chartType?u=EChartsUtilsAll.chart210(t,y,o):230==t.chartType?u=EChartsUtilsAll.chart230(t,y,o):250==t.chartType?u=EChartsUtilsAll.chart250(t,y,o):270==t.chartType?u=EChartsUtilsAll.chart270(t,y,o):279==t.chartType||280==t.chartType||281==t.chartType?u=EChartsUtilsAll.chart279_280_281(t,y,o):290==t.chartType?u=EChartsUtilsAll.chart290(t,y,o):310==t.chartType?u=EChartsUtilsAll.chart310(t,y,o):330==t.chartType?u=EChartsUtilsAll.chart330(t,y,o,l):350==t.chartType?u=EChartsUtilsAll.chart350(t,y,o):370==t.chartType?u=EChartsUtilsAll.chart370(t,y,o,l):390==t.chartType?u=EChartsUtilsAll.chart390(t,y,o):410==t.chartType?u=EChartsUtilsAll.chart410(t,y,o,l):430==t.chartType?u=EChartsUtilsAll.chart430(t,y,o,l):450==t.chartType?u=EChartsUtilsAll.chart450(t,y,o):470==t.chartType?u=EChartsUtilsAll.chart470(t,y,o,l):490==t.chartType&&(u=EChartsUtilsAll.chart490(t,y,o,l)),u&&"object"==typeof u&&(a&&(u.animation=!1),m.setOption(u)),m.setOption(u),m},getEChartsObj:e=>{const l=document.getElementById(e+"_ec");let t=echarts__namespace.getInstanceByDom(l);return null==t||null==t?null:t}},FormulaUtilsOther={YJHTQD:(e,l,t,a)=>{var n;if("非泵送混凝土"==l){for(var y="",o=a,x=t,r=new Array("0.0","0.5","1.0","1.5","2.0","2.5","3.0","3.5","4.0","4.5","5.0","5.5","6.0"),s=0;s<r.length;s++){if(o==r[s]){y=s;break}if(1*o>"6"){y=r.length-1;break}}var i=[{x:20,y:10.3},{x:20.2,y:10.5},{x:20.4,y:10.7},{x:20.6,y:11},{x:20.8,y:11.2},{x:21,y:11.4},{x:21.2,y:11.6},{x:21.4,y:11.8},{x:21.6,y:12},{x:21.8,y:12.3},{x:22,y:12.5},{x:22.2,y:12.7},{x:22.4,y:13},{x:22.6,y:13.2},{x:22.8,y:13.4},{x:23,y:13.7},{x:23.2,y:13.9},{x:23.4,y:14.1},{x:23.6,y:14.4},{x:23.8,y:14.6},{x:24,y:14.9},{x:24.2,y:15.1},{x:24.4,y:15.4},{x:24.6,y:15.6},{x:24.8,y:15.9},{x:25,y:16.2},{x:25.2,y:16.4},{x:25.4,y:16.7},{x:25.6,y:16.9},{x:25.8,y:17.2},{x:26,y:17.5},{x:26.2,y:17.8},{x:26.4,y:18},{x:26.6,y:18.3},{x:26.8,y:18.6},{x:27,y:18.9},{x:27.2,y:19.1},{x:27.4,y:19.4},{x:27.6,y:19.7},{x:27.8,y:20},{x:28,y:20.3},{x:28.2,y:20.6},{x:28.4,y:20.9},{x:28.6,y:21.2},{x:28.8,y:21.5},{x:29,y:21.8},{x:29.2,y:22.1},{x:29.4,y:22.4},{x:29.6,y:22.7},{x:29.8,y:23},{x:30,y:23.3},{x:30.2,y:23.6},{x:30.4,y:23.9},{x:30.6,y:24.3},{x:30.8,y:24.6},{x:31,y:24.9},{x:31.2,y:25.2},{x:31.4,y:25.6},{x:31.6,y:25.9},{x:31.8,y:26.2},{x:32,y:26.5},{x:32.2,y:26.9},{x:32.4,y:27.2},{x:32.6,y:27.6},{x:32.8,y:27.9},{x:33,y:28.2},{x:33.2,y:28.6},{x:33.4,y:28.9},{x:33.6,y:29.3},{x:33.8,y:29.6},{x:34,y:30},{x:34.2,y:30.3},{x:34.4,y:30.7},{x:34.6,y:31.1},{x:34.8,y:31.4},{x:35,y:31.8},{x:35.2,y:32.1},{x:35.4,y:32.5},{x:35.6,y:32.9},{x:35.8,y:33.3},{x:36,y:33.6},{x:36.2,y:34},{x:36.4,y:34.4},{x:36.6,y:34.8},{x:36.8,y:35.2},{x:37,y:35.5},{x:37.2,y:35.9},{x:37.4,y:36.3},{x:37.6,y:36.7},{x:37.8,y:37.1},{x:38,y:37.5},{x:38.2,y:37.9},{x:38.4,y:38.3},{x:38.6,y:38.7},{x:38.8,y:39.1},{x:39,y:39.5},{x:39.2,y:39.9},{x:39.4,y:40.3},{x:39.6,y:40.7},{x:39.8,y:41.2},{x:40,y:41.6},{x:40.2,y:42},{x:40.4,y:42.4},{x:40.6,y:42.8},{x:40.8,y:43.3},{x:41,y:43.7},{x:41.2,y:44.1},{x:41.4,y:44.5},{x:41.6,y:45},{x:41.8,y:45.4},{x:42,y:45.9},{x:42.2,y:46.3},{x:42.4,y:46.7},{x:42.6,y:47.2},{x:42.8,y:47.6},{x:43,y:48.1},{x:43.2,y:48.5},{x:43.4,y:49},{x:43.6,y:49.4},{x:43.8,y:49.9},{x:44,y:50.4},{x:44.2,y:50.8},{x:44.4,y:51.3},{x:44.6,y:51.7},{x:44.8,y:52.2},{x:45,y:52.7},{x:45.2,y:53.2},{x:45.4,y:53.6},{x:45.6,y:54.1},{x:45.8,y:54.6},{x:46,y:55},{x:46.2,y:55.5},{x:46.4,y:56},{x:46.6,y:56.5},{x:46.8,y:57},{x:47,y:57.5},{x:47.2,y:58},{x:47.4,y:58.5},{x:47.6,y:59},{x:47.8,y:59.5},{x:48,y:60}],u=[{x:20,y:10.1},{x:20.2,y:10.3},{x:20.4,y:10.5},{x:20.6,y:10.8},{x:20.8,y:11},{x:21,y:11.2},{x:21.2,y:11.4},{x:21.4,y:11.6},{x:21.6,y:11.8},{x:21.8,y:12.1},{x:22,y:12.2},{x:22.2,y:12.4},{x:22.4,y:12.7},{x:22.6,y:12.9},{x:22.8,y:13.1},{x:23,y:13.4},{x:23.2,y:13.6},{x:23.4,y:13.8},{x:23.6,y:14.1},{x:23.8,y:14.3},{x:24,y:14.6},{x:24.2,y:14.8},{x:24.4,y:15.1},{x:24.6,y:15.3},{x:24.8,y:15.6},{x:25,y:15.9},{x:25.2,y:16.1},{x:25.4,y:16.4},{x:25.6,y:16.6},{x:25.8,y:16.9},{x:26,y:17.2},{x:26.2,y:17.4},{x:26.4,y:17.6},{x:26.6,y:17.9},{x:26.8,y:18.2},{x:27,y:18.5},{x:27.2,y:18.7},{x:27.4,y:19},{x:27.6,y:19.3},{x:27.8,y:19.6},{x:28,y:19.7},{x:28.2,y:20},{x:28.4,y:20.3},{x:28.6,y:20.6},{x:28.8,y:20.9},{x:29,y:21.1},{x:29.2,y:21.4},{x:29.4,y:21.7},{x:29.6,y:22},{x:29.8,y:22.3},{x:30,y:22.6},{x:30.2,y:22.9},{x:30.4,y:23.2},{x:30.6,y:23.6},{x:30.8,y:23.9},{x:31,y:24.2},{x:31.2,y:24.4},{x:31.4,y:24.8},{x:31.6,y:25.1},{x:31.8,y:25.4},{x:32,y:25.7},{x:32.2,y:26.1},{x:32.4,y:26.4},{x:32.6,y:26.8},{x:32.8,y:27.1},{x:33,y:27.4},{x:33.2,y:27.7},{x:33.4,y:28},{x:33.6,y:28.4},{x:33.8,y:28.7},{x:34,y:29.1},{x:34.2,y:29.4},{x:34.4,y:29.8},{x:34.6,y:30.2},{x:34.8,y:30.5},{x:35,y:30.8},{x:35.2,y:31.1},{x:35.4,y:31.5},{x:35.6,y:31.9},{x:35.8,y:32.3},{x:36,y:32.6},{x:36.2,y:33},{x:36.4,y:33.4},{x:36.6,y:33.8},{x:36.8,y:34.1},{x:37,y:34.4},{x:37.2,y:34.8},{x:37.4,y:35.2},{x:37.6,y:35.6},{x:37.8,y:36},{x:38,y:36.4},{x:38.2,y:36.8},{x:38.4,y:37.2},{x:38.6,y:37.5},{x:38.8,y:37.9},{x:39,y:38.2},{x:39.2,y:38.5},{x:39.4,y:38.8},{x:39.6,y:39.1},{x:39.8,y:39.6},{x:40,y:39.9},{x:40.2,y:40.3},{x:40.4,y:40.7},{x:40.6,y:41.1},{x:40.8,y:41.6},{x:41,y:42},{x:41.2,y:42.3},{x:41.4,y:42.7},{x:41.6,y:43.2},{x:41.8,y:43.6},{x:42,y:44.1},{x:42.2,y:44.4},{x:42.4,y:44.8},{x:42.6,y:45.3},{x:42.8,y:45.7},{x:43,y:46.2},{x:43.2,y:46.6},{x:43.4,y:47},{x:43.6,y:47.4},{x:43.8,y:47.9},{x:44,y:48.4},{x:44.2,y:48.8},{x:44.4,y:49.2},{x:44.6,y:49.6},{x:44.8,y:50.1},{x:45,y:50.6},{x:45.2,y:51.1},{x:45.4,y:51.5},{x:45.6,y:51.9},{x:45.8,y:52.4},{x:46,y:52.8},{x:46.2,y:53.3},{x:46.4,y:53.8},{x:46.6,y:54.2},{x:46.8,y:54.7},{x:47,y:55.2},{x:47.2,y:55.7},{x:47.4,y:56.2},{x:47.6,y:56.6},{x:47.8,y:57.1},{x:48,y:57.6},{x:48.2,y:58},{x:48.4,y:58.6},{x:48.6,y:59},{x:48.8,y:59.5},{x:49,y:60}],m=[{x:20.2,y:10},{x:20.4,y:10.2},{x:20.6,y:10.4},{x:20.8,y:10.6},{x:21,y:10.8},{x:21.2,y:11},{x:21.4,y:11.2},{x:21.6,y:11.4},{x:21.8,y:11.7},{x:22,y:11.9},{x:22.2,y:12.1},{x:22.4,y:12.4},{x:22.6,y:12.5},{x:22.8,y:12.7},{x:23,y:13},{x:23.2,y:13.2},{x:23.4,y:13.4},{x:23.6,y:13.7},{x:23.8,y:13.9},{x:24,y:14.2},{x:24.2,y:14.3},{x:24.4,y:14.6},{x:24.6,y:14.8},{x:24.8,y:15.1},{x:25,y:15.4},{x:25.2,y:15.6},{x:25.4,y:15.9},{x:25.6,y:16.1},{x:25.8,y:16.3},{x:26,y:16.6},{x:26.2,y:16.9},{x:26.4,y:17.1},{x:26.6,y:17.4},{x:26.8,y:17.7},{x:27,y:18},{x:27.2,y:18.1},{x:27.4,y:18.4},{x:27.6,y:18.7},{x:27.8,y:19},{x:28,y:19.2},{x:28.2,y:19.5},{x:28.4,y:19.7},{x:28.6,y:20},{x:28.8,y:20},{x:29,y:20.5},{x:29.2,y:20.8},{x:29.4,y:21.1},{x:29.6,y:21.3},{x:29.8,y:21.6},{x:30,y:21.9},{x:30.2,y:22.2},{x:30.4,y:22.5},{x:30.6,y:22.8},{x:30.8,y:23.1},{x:31,y:23.4},{x:31.2,y:23.7},{x:31.4,y:24.1},{x:31.6,y:24.3},{x:31.8,y:24.6},{x:32,y:24.9},{x:32.2,y:25.3},{x:32.4,y:25.6},{x:32.6,y:25.9},{x:32.8,y:26.2},{x:33,y:26.5},{x:33.2,y:26.8},{x:33.4,y:27.1},{x:33.6,y:27.4},{x:33.8,y:27.7},{x:34,y:28},{x:34.2,y:28.3},{x:34.4,y:28.6},{x:34.6,y:28.9},{x:34.8,y:29.2},{x:35,y:29.6},{x:35.2,y:29.9},{x:35.4,y:30.2},{x:35.6,y:30.6},{x:35.8,y:31},{x:36,y:31.2},{x:36.2,y:31.6},{x:36.4,y:32},{x:36.6,y:32.4},{x:36.8,y:32.7},{x:37,y:33},{x:37.2,y:33.4},{x:37.4,y:33.8},{x:37.6,y:34.1},{x:37.8,y:34.5},{x:38,y:34.9},{x:38.2,y:35.2},{x:38.4,y:35.6},{x:38.6,y:36},{x:38.8,y:36.4},{x:39,y:36.7},{x:39.2,y:37},{x:39.4,y:37.3},{x:39.6,y:37.6},{x:39.8,y:38},{x:40,y:38.3},{x:40.2,y:38.6},{x:40.4,y:39},{x:40.6,y:39.4},{x:40.8,y:39.8},{x:41,y:40.2},{x:41.2,y:40.6},{x:41.4,y:40.9},{x:41.6,y:41.4},{x:41.8,y:41.8},{x:42,y:42.2},{x:42.2,y:42.6},{x:42.4,y:43},{x:42.6,y:43.4},{x:42.8,y:43.8},{x:43,y:44.2},{x:43.2,y:44.6},{x:43.4,y:45.1},{x:43.6,y:45.4},{x:43.8,y:45.9},{x:44,y:46.4},{x:44.2,y:46.7},{x:44.4,y:47.2},{x:44.6,y:47.6},{x:44.8,y:48},{x:45,y:48.5},{x:45.2,y:48.9},{x:45.4,y:49.4},{x:45.6,y:49.8},{x:45.8,y:50.2},{x:46,y:50.6},{x:46.2,y:51.1},{x:46.4,y:51.5},{x:46.6,y:52},{x:46.8,y:52.4},{x:47,y:52.9},{x:47.2,y:53.4},{x:47.4,y:53.8},{x:47.6,y:54.3},{x:47.8,y:54.7},{x:48,y:55.2},{x:48.2,y:55.7},{x:48.4,y:56.1},{x:48.6,y:56.6},{x:48.8,y:57.1},{x:49,y:57.5},{x:49.2,y:58},{x:49.4,y:58.5},{x:49.6,y:58.9},{x:49.8,y:59.4},{x:50,y:59.9},{x:50.2,y:60}],c=[{x:20.6,y:10.1},{x:20.8,y:10.3},{x:21,y:10.5},{x:21.2,y:10.7},{x:21.4,y:10.9},{x:21.6,y:11},{x:21.8,y:11.3},{x:22,y:11.5},{x:22.2,y:11.7},{x:22.4,y:12},{x:22.6,y:12.1},{x:22.8,y:12.3},{x:23,y:12.6},{x:23.2,y:12.8},{x:23.4,y:13},{x:23.6,y:13.2},{x:23.8,y:13.4},{x:24,y:13.7},{x:24.2,y:13.9},{x:24.4,y:14.2},{x:24.6,y:14.4},{x:24.8,y:14.6},{x:25,y:14.9},{x:25.2,y:15.1},{x:25.4,y:15.4},{x:25.6,y:15.7},{x:25.8,y:15.8},{x:26,y:16.1},{x:26.2,y:16.4},{x:26.4,y:16.6},{x:26.6,y:16.8},{x:26.8,y:17.1},{x:27,y:17.4},{x:27.2,y:17.6},{x:27.4,y:17.8},{x:27.6,y:18},{x:27.8,y:18.2},{x:28,y:18.4},{x:28.2,y:18.6},{x:28.4,y:18.8},{x:28.6,y:19.1},{x:28.8,y:19.4},{x:29,y:19.6},{x:29.2,y:19.9},{x:29.4,y:20.2},{x:29.6,y:20.4},{x:29.8,y:20.7},{x:30,y:21},{x:30.2,y:21.2},{x:30.4,y:21.5},{x:30.6,y:21.9},{x:30.8,y:22.1},{x:31,y:22.4},{x:31.2,y:22.7},{x:31.4,y:23},{x:31.6,y:23.3},{x:31.8,y:23.6},{x:32,y:23.9},{x:32.2,y:24.2},{x:32.4,y:24.5},{x:32.6,y:24.8},{x:32.8,y:25.1},{x:33,y:25.4},{x:33.2,y:25.7},{x:33.4,y:26},{x:33.6,y:26.4},{x:33.8,y:26.6},{x:34,y:26.8},{x:34.2,y:27},{x:34.4,y:27.2},{x:34.6,y:27.4},{x:34.8,y:27.6},{x:35,y:28},{x:35.2,y:28.2},{x:35.4,y:28.6},{x:35.6,y:29},{x:35.8,y:29.3},{x:36,y:29.6},{x:36.2,y:29.9},{x:36.4,y:30.3},{x:36.6,y:30.6},{x:36.8,y:31},{x:37,y:31.2},{x:37.2,y:31.6},{x:37.4,y:31.9},{x:37.6,y:32.3},{x:37.8,y:32.6},{x:38,y:33},{x:38.2,y:33.4},{x:38.4,y:33.7},{x:38.6,y:34.1},{x:38.8,y:34.4},{x:39,y:34.7},{x:39.2,y:35},{x:39.4,y:35.3},{x:39.6,y:35.6},{x:39.8,y:35.9},{x:40,y:36.2},{x:40.2,y:36.5},{x:40.4,y:36.9},{x:40.6,y:37.2},{x:40.8,y:37.7},{x:41,y:38},{x:41.2,y:38.4},{x:41.4,y:38.7},{x:41.6,y:39.2},{x:41.8,y:39.5},{x:42,y:39.9},{x:42.2,y:40.3},{x:42.4,y:40.6},{x:42.6,y:41.1},{x:42.8,y:41.4},{x:43,y:41.8},{x:43.2,y:42.2},{x:43.4,y:42.6},{x:43.6,y:43},{x:43.8,y:43.4},{x:44,y:43.8},{x:44.2,y:44.2},{x:44.4,y:44.6},{x:44.6,y:45},{x:44.8,y:45.4},{x:45,y:45.8},{x:45.2,y:46.3},{x:45.4,y:46.6},{x:45.6,y:47.1},{x:45.8,y:47.5},{x:46,y:47.9},{x:46.2,y:48.3},{x:46.4,y:48.7},{x:46.6,y:49.2},{x:46.8,y:49.6},{x:47,y:50},{x:47.2,y:50.5},{x:47.4,y:50.9},{x:47.6,y:51.3},{x:47.8,y:51.8},{x:48,y:52.2},{x:48.2,y:52.6},{x:48.4,y:53.1},{x:48.6,y:53.5},{x:48.8,y:54},{x:49,y:54.4},{x:49.2,y:54.8},{x:49.4,y:55.3},{x:49.6,y:55.7},{x:49.8,y:56.2},{x:50,y:56.7},{x:50.2,y:57.1},{x:50.4,y:57.6},{x:50.6,y:58},{x:50.8,y:58.5},{x:51,y:59},{x:51.2,y:59.4},{x:51.4,y:59.9},{x:51.6,y:60}],h=[{x:21,y:10},{x:21.2,y:10.2},{x:21.4,y:10.4},{x:21.6,y:10.6},{x:21.8,y:10.8},{x:22,y:11},{x:22.2,y:11.2},{x:22.4,y:11.4},{x:22.6,y:11.6},{x:22.8,y:11.8},{x:23,y:12.1},{x:23.2,y:12.2},{x:23.4,y:12.4},{x:23.6,y:12.7},{x:23.8,y:12.8},{x:24,y:13.1},{x:24.2,y:13.3},{x:24.4,y:13.6},{x:24.6,y:13.7},{x:24.8,y:14},{x:25,y:14.3},{x:25.2,y:14.4},{x:25.4,y:14.7},{x:25.6,y:14.9},{x:25.8,y:15.1},{x:26,y:15.4},{x:26.2,y:15.7},{x:26.4,y:15.8},{x:26.6,y:16.1},{x:26.8,y:16.4},{x:27,y:16.6},{x:27.2,y:16.8},{x:27.4,y:17},{x:27.6,y:17.2},{x:27.8,y:17.4},{x:28,y:17.6},{x:28.2,y:17.8},{x:28.4,y:18},{x:28.6,y:18.2},{x:28.8,y:18.5},{x:29,y:18.7},{x:29.2,y:19},{x:29.4,y:19.3},{x:29.6,y:19.5},{x:29.8,y:19.8},{x:30,y:20},{x:30.2,y:20.3},{x:30.4,y:20.6},{x:30.6,y:20.9},{x:30.8,y:21.2},{x:31,y:21.4},{x:31.2,y:21.7},{x:31.4,y:22},{x:31.6,y:22.3},{x:31.8,y:22.5},{x:32,y:22.8},{x:32.2,y:23.1},{x:32.4,y:23.4},{x:32.6,y:23.7},{x:32.8,y:24},{x:33,y:24.3},{x:33.2,y:24.6},{x:33.4,y:24.9},{x:33.6,y:25.2},{x:33.8,y:25.4},{x:34,y:25.6},{x:34.2,y:25.8},{x:34.4,y:26},{x:34.6,y:26.2},{x:34.8,y:26.4},{x:35,y:26.7},{x:35.2,y:27},{x:35.4,y:27.3},{x:35.6,y:27.6},{x:35.8,y:28},{x:36,y:28.2},{x:36.2,y:28.6},{x:36.4,y:28.9},{x:36.6,y:29.2},{x:36.8,y:29.6},{x:37,y:29.8},{x:37.2,y:30.2},{x:37.4,y:30.5},{x:37.6,y:30.8},{x:37.8,y:31.2},{x:38,y:31.5},{x:38.2,y:31.8},{x:38.4,y:32.1},{x:38.6,y:32.4},{x:38.8,y:32.7},{x:39,y:33},{x:39.2,y:33.3},{x:39.4,y:33.6},{x:39.6,y:33.9},{x:39.8,y:34.2},{x:40,y:34.5},{x:40.2,y:34.8},{x:40.4,y:35.1},{x:40.6,y:35.4},{x:40.8,y:35.7},{x:41,y:36},{x:41.2,y:36.3},{x:41.4,y:36.6},{x:41.6,y:36.9},{x:41.8,y:37.2},{x:42,y:37.6},{x:42.2,y:38},{x:42.4,y:38.3},{x:42.6,y:38.7},{x:42.8,y:39},{x:43,y:39.4},{x:43.2,y:39.8},{x:43.4,y:40.2},{x:43.6,y:40.5},{x:43.8,y:40.9},{x:44,y:41.3},{x:44.2,y:41.7},{x:44.4,y:42.1},{x:44.6,y:42.4},{x:44.8,y:42.8},{x:45,y:43.2},{x:45.2,y:43.6},{x:45.4,y:44},{x:45.6,y:44.4},{x:45.8,y:44.8},{x:46,y:45.2},{x:46.2,y:45.5},{x:46.4,y:45.9},{x:46.6,y:46.3},{x:46.8,y:46.7},{x:47,y:47.2},{x:47.2,y:47.6},{x:47.4,y:48},{x:47.6,y:48.4},{x:47.8,y:48.8},{x:48,y:49.2},{x:48.2,y:49.6},{x:48.4,y:50},{x:48.6,y:50.4},{x:48.8,y:50.9},{x:49,y:51.3},{x:49.2,y:51.7},{x:49.4,y:52.1},{x:49.6,y:52.5},{x:49.8,y:53},{x:50,y:53.4},{x:50.2,y:53.8},{x:50.4,y:54.3},{x:50.6,y:54.7},{x:50.8,y:55.1},{x:51,y:55.6},{x:51.2,y:56},{x:51.4,y:56.4},{x:51.6,y:56.9},{x:51.8,y:57.3},{x:52,y:57.8},{x:52.2,y:58.2},{x:52.4,y:58.7},{x:52.8,y:59.6},{x:53,y:60}],p=[{x:21.4,y:10},{x:21.6,y:10.2},{x:21.8,y:10.5},{x:22,y:10.6},{x:22.2,y:10.8},{x:22.4,y:11},{x:22.6,y:11.2},{x:22.8,y:11.4},{x:23,y:11.6},{x:23.2,y:11.8},{x:23.4,y:12},{x:23.6,y:12.2},{x:23.8,y:12.4},{x:24,y:12.7},{x:24.2,y:12.8},{x:24.4,y:13.1},{x:24.6,y:13.3},{x:24.8,y:13.5},{x:25,y:13.8},{x:25.2,y:13.9},{x:25.4,y:14.2},{x:25.6,y:14.4},{x:25.8,y:14.6},{x:26,y:14.9},{x:26.2,y:15.1},{x:26.4,y:15.3},{x:26.6,y:15.6},{x:26.8,y:15.8},{x:27,y:16.1},{x:27.2,y:16.2},{x:27.4,y:16.4},{x:27.6,y:16.6},{x:27.8,y:16.8},{x:28,y:17},{x:28.2,y:17.2},{x:28.4,y:17.4},{x:28.6,y:17.6},{x:28.8,y:17.8},{x:29,y:18.1},{x:29.2,y:18.3},{x:29.4,y:18.6},{x:29.6,y:18.8},{x:29.8,y:19.1},{x:30,y:19.3},{x:30.2,y:19.6},{x:30.4,y:19.8},{x:30.6,y:20.2},{x:30.8,y:20.4},{x:31,y:20.7},{x:31.2,y:20.9},{x:31.4,y:21.2},{x:31.6,y:21.5},{x:31.8,y:21.7},{x:32,y:22},{x:32.2,y:22.3},{x:32.4,y:22.6},{x:32.6,y:22.9},{x:32.8,y:23.2},{x:33,y:23.4},{x:33.2,y:23.7},{x:33.4,y:24},{x:33.6,y:24.2},{x:33.8,y:24.4},{x:34,y:24.6},{x:34.2,y:24.8},{x:34.4,y:25},{x:34.6,y:25.2},{x:34.8,y:25.4},{x:35,y:25.8},{x:35.2,y:26},{x:35.4,y:26.3},{x:35.6,y:26.6},{x:35.8,y:27},{x:36,y:27.2},{x:36.2,y:27.5},{x:36.4,y:27.9},{x:36.6,y:28.2},{x:36.8,y:28.5},{x:37,y:28.8},{x:37.2,y:29.1},{x:37.4,y:29.4},{x:37.6,y:29.7},{x:37.8,y:30},{x:38,y:30.3},{x:38.2,y:30.6},{x:38.4,y:30.9},{x:38.6,y:31.2},{x:38.8,y:31.5},{x:39,y:31.8},{x:39.2,y:32.1},{x:39.4,y:32.4},{x:39.6,y:32.7},{x:39.8,y:33},{x:40,y:33.3},{x:40.2,y:33.6},{x:40.4,y:33.9},{x:40.6,y:34.2},{x:40.8,y:34.5},{x:41,y:34.8},{x:41.2,y:35.1},{x:41.4,y:35.4},{x:41.6,y:35.7},{x:41.8,y:36},{x:42,y:36.3},{x:42.2,y:36.6},{x:42.4,y:36.9},{x:42.6,y:37.3},{x:42.8,y:37.6},{x:43,y:38},{x:43.2,y:38.3},{x:43.4,y:38.7},{x:43.6,y:39},{x:43.8,y:39.4},{x:44,y:39.8},{x:44.2,y:40.1},{x:44.4,y:40.5},{x:44.6,y:40.8},{x:44.8,y:41.2},{x:45,y:41.6},{x:45.2,y:42},{x:45.4,y:42.3},{x:45.6,y:42.7},{x:45.8,y:43.1},{x:46,y:43.5},{x:46.2,y:43.8},{x:46.4,y:44.2},{x:46.6,y:44.6},{x:46.8,y:45},{x:47,y:45.2},{x:47.2,y:45.8},{x:47.4,y:46.2},{x:47.6,y:46.6},{x:47.8,y:47},{x:48,y:47.4},{x:48.2,y:47.8},{x:48.4,y:48.2},{x:48.6,y:48.6},{x:48.8,y:49},{x:49,y:49.4},{x:49.2,y:49.8},{x:49.4,y:50.2},{x:49.6,y:50.6},{x:49.8,y:51},{x:50,y:51.4},{x:50.2,y:51.9},{x:50.4,y:52.3},{x:50.6,y:52.7},{x:50.8,y:53.1},{x:51,y:53.5},{x:51.2,y:54},{x:51.4,y:54.4},{x:51.6,y:54.8},{x:51.8,y:55.2},{x:52,y:55.7},{x:52.2,y:56.1},{x:52.4,y:56.5},{x:52.8,y:57.4},{x:53,y:57.8},{x:53.2,y:58.3},{x:53.4,y:58.7},{x:53.6,y:59.2},{x:53.8,y:59.6},{x:54,y:60}],f=[{x:21.8,y:10.1},{x:22,y:10.2},{x:22.2,y:10.4},{x:22.4,y:10.7},{x:22.6,y:10.8},{x:22.8,y:11},{x:23,y:11.2},{x:23.2,y:11.4},{x:23.4,y:11.6},{x:23.6,y:11.8},{x:23.8,y:12},{x:24,y:12.2},{x:24.2,y:12.4},{x:24.4,y:12.6},{x:24.6,y:12.8},{x:24.8,y:13},{x:25,y:13.3},{x:25.2,y:13.4},{x:25.4,y:13.7},{x:25.6,y:13.9},{x:25.8,y:14.1},{x:26,y:14.4},{x:26.2,y:14.6},{x:26.4,y:14.8},{x:26.6,y:15},{x:26.8,y:15.3},{x:27,y:15.5},{x:27.2,y:15.7},{x:27.4,y:15.9},{x:27.6,y:16.1},{x:27.8,y:16.3},{x:28,y:16.5},{x:28.2,y:16.7},{x:28.4,y:16.9},{x:28.6,y:17.1},{x:28.8,y:17.3},{x:29,y:17.5},{x:29.2,y:17.7},{x:29.4,y:17.9},{x:29.6,y:18.2},{x:29.8,y:18.4},{x:30,y:18.6},{x:30.2,y:18.9},{x:30.4,y:19.1},{x:30.6,y:19.4},{x:30.8,y:19.7},{x:31,y:19.9},{x:31.2,y:20.2},{x:31.4,y:20.5},{x:31.6,y:20.7},{x:31.8,y:21},{x:32,y:21.2},{x:32.2,y:21.5},{x:32.4,y:21.8},{x:32.6,y:22.1},{x:32.8,y:22.3},{x:33,y:22.6},{x:33.2,y:22.9},{x:33.4,y:23.1},{x:33.6,y:23.3},{x:33.8,y:23.5},{x:34,y:23.7},{x:34.2,y:23.9},{x:34.4,y:24.1},{x:34.6,y:24.3},{x:34.8,y:24.5},{x:35,y:24.8},{x:35.2,y:25},{x:35.4,y:25.4},{x:35.6,y:25.7},{x:35.8,y:26},{x:36,y:26.2},{x:36.2,y:26.5},{x:36.4,y:26.8},{x:36.6,y:27.1},{x:36.8,y:27.5},{x:37,y:27.7},{x:37.2,y:28},{x:37.4,y:28.3},{x:37.6,y:28.6},{x:37.8,y:28.9},{x:38,y:29.2},{x:38.2,y:29.5},{x:38.4,y:29.8},{x:38.6,y:30.1},{x:38.8,y:30.4},{x:39,y:30.6},{x:39.2,y:30.8},{x:39.4,y:31},{x:39.6,y:31.2},{x:39.8,y:31.4},{x:40,y:31.7},{x:40.2,y:32},{x:40.4,y:32.3},{x:40.6,y:32.6},{x:40.8,y:32.9},{x:41,y:33.2},{x:41.2,y:33.5},{x:41.4,y:33.8},{x:41.6,y:34.2},{x:41.8,y:34.5},{x:42,y:34.9},{x:42.2,y:35.2},{x:42.4,y:35.5},{x:42.6,y:35.9},{x:42.8,y:36.2},{x:43,y:36.6},{x:43.2,y:36.9},{x:43.4,y:37.2},{x:43.6,y:37.5},{x:43.8,y:37.9},{x:44,y:38.3},{x:44.2,y:38.6},{x:44.4,y:39},{x:44.6,y:39.3},{x:44.8,y:39.7},{x:45,y:40.1},{x:45.2,y:40.4},{x:45.4,y:40.7},{x:45.6,y:41.1},{x:45.8,y:41.5},{x:46,y:41.9},{x:46.2,y:42.2},{x:46.4,y:42.6},{x:46.6,y:42.9},{x:46.8,y:43.3},{x:47,y:43.7},{x:47.2,y:44.1},{x:47.4,y:44.5},{x:47.6,y:44.8},{x:47.8,y:45.2},{x:48,y:45.6},{x:48.2,y:46},{x:48.4,y:46.4},{x:48.6,y:46.7},{x:48.8,y:47.1},{x:49,y:47.5},{x:49.2,y:47.9},{x:49.4,y:48.3},{x:49.6,y:48.7},{x:49.8,y:49.1},{x:50,y:49.5},{x:50.2,y:49.9},{x:50.4,y:50.3},{x:50.6,y:50.7},{x:50.8,y:51.1},{x:51,y:51.5},{x:51.2,y:51.9},{x:51.4,y:52.3},{x:51.6,y:52.7},{x:51.8,y:53.1},{x:52,y:53.6},{x:52.2,y:54},{x:52.4,y:54.4},{x:52.8,y:55.2},{x:53,y:55.6},{x:53.2,y:56.1},{x:53.4,y:56.5},{x:53.6,y:56.9},{x:53.8,y:57.3},{x:54,y:57.8},{x:54.2,y:58.2},{x:54.4,y:58.6},{x:54.6,y:59.1},{x:54.8,y:59.5},{x:55,y:59.9},{x:55.2,y:60}],d=[{x:22.2,y:10},{x:22.4,y:10.3},{x:22.6,y:10.4},{x:22.8,y:10.6},{x:23,y:10.8},{x:23.2,y:11},{x:23.4,y:11.2},{x:23.6,y:11.4},{x:23.8,y:11.5},{x:24,y:11.8},{x:24.2,y:11.9},{x:24.4,y:12.2},{x:24.6,y:12.3},{x:24.8,y:12.6},{x:25,y:12.8},{x:25.2,y:13},{x:25.4,y:13.2},{x:25.6,y:13.4},{x:25.8,y:13.6},{x:26,y:13.8},{x:26.2,y:14},{x:26.4,y:14.2},{x:26.6,y:14.4},{x:26.8,y:14.6},{x:27,y:14.8},{x:27.2,y:15},{x:27.4,y:15.2},{x:27.6,y:15.4},{x:27.8,y:15.6},{x:28,y:15.8},{x:28.2,y:16},{x:28.4,y:16.2},{x:28.6,y:16.4},{x:28.8,y:16.6},{x:29,y:16.8},{x:29.2,y:17},{x:29.4,y:17.2},{x:29.6,y:17.5},{x:29.8,y:17.7},{x:30,y:17.9},{x:30.2,y:18.2},{x:30.4,y:18.4},{x:30.6,y:18.7},{x:30.8,y:18.9},{x:31,y:19.2},{x:31.2,y:19.4},{x:31.4,y:19.7},{x:31.6,y:19.9},{x:31.8,y:20.2},{x:32,y:20.4},{x:32.2,y:20.7},{x:32.4,y:20.9},{x:32.6,y:21.3},{x:32.8,y:21.5},{x:33,y:21.7},{x:33.2,y:22},{x:33.4,y:22.3},{x:33.6,y:22.6},{x:33.8,y:22.8},{x:34,y:23},{x:34.2,y:23.2},{x:34.4,y:23.4},{x:34.6,y:23.6},{x:34.8,y:23.8},{x:35,y:24},{x:35.2,y:24.2},{x:35.4,y:24.4},{x:35.6,y:24.7},{x:35.8,y:25},{x:36,y:25.2},{x:36.2,y:25.5},{x:36.4,y:25.8},{x:36.6,y:26.1},{x:36.8,y:26.4},{x:37,y:26.6},{x:37.2,y:26.9},{x:37.4,y:27.2},{x:37.6,y:27.5},{x:37.8,y:27.8},{x:38,y:28.1},{x:38.2,y:28.4},{x:38.4,y:28.7},{x:38.6,y:29},{x:38.8,y:29.3},{x:39,y:29.6},{x:39.2,y:29.8},{x:39.4,y:30},{x:39.6,y:30.2},{x:39.8,y:30.5},{x:40,y:30.8},{x:40.2,y:31.1},{x:40.4,y:31.4},{x:40.6,y:31.7},{x:40.8,y:32},{x:41,y:32.3},{x:41.2,y:32.6},{x:41.4,y:32.9},{x:41.6,y:33.3},{x:41.8,y:33.6},{x:42,y:34},{x:42.2,y:34.3},{x:42.4,y:34.6},{x:42.6,y:34.9},{x:42.8,y:35.2},{x:43,y:35.6},{x:43.2,y:35.9},{x:43.4,y:36.3},{x:43.6,y:36.6},{x:43.8,y:36.9},{x:44,y:37.3},{x:44.2,y:37.6},{x:44.4,y:38},{x:44.6,y:38.3},{x:44.8,y:38.6},{x:45,y:39},{x:45.2,y:39.4},{x:45.4,y:39.7},{x:45.6,y:40},{x:45.8,y:40.4},{x:46,y:40.8},{x:46.2,y:41.1},{x:46.4,y:41.4},{x:46.6,y:41.8},{x:46.8,y:42.2},{x:47,y:42.6},{x:47.2,y:42.9},{x:47.4,y:43.3},{x:47.6,y:43.7},{x:47.8,y:44},{x:48,y:44.4},{x:48.2,y:44.8},{x:48.4,y:45.1},{x:48.6,y:45.5},{x:48.8,y:45.9},{x:49,y:46.2},{x:49.2,y:46.6},{x:49.4,y:47},{x:49.6,y:47.4},{x:49.8,y:47.8},{x:50,y:48.2},{x:50.2,y:48.5},{x:50.4,y:49},{x:50.6,y:49.4},{x:50.8,y:49.8},{x:51,y:50.1},{x:51.2,y:50.5},{x:51.4,y:50.9},{x:51.6,y:51.3},{x:51.8,y:51.7},{x:52,y:52.1},{x:52.2,y:52.5},{x:52.4,y:53},{x:52.8,y:53.8},{x:53,y:54.2},{x:53.2,y:54.6},{x:53.4,y:55},{x:53.6,y:55.4},{x:53.8,y:55.8},{x:54,y:56.3},{x:54.2,y:56.7},{x:54.4,y:57.1},{x:54.6,y:57.5},{x:54.8,y:57.9},{x:55,y:58.4},{x:55.2,y:58.8},{x:55.4,y:59.2},{x:55.6,y:59.7},{x:55.8,y:60}],g=[{x:22.4,y:10},{x:22.6,y:10.2},{x:22.8,y:10.3},{x:23,y:10.5},{x:23.2,y:10.7},{x:23.4,y:10.9},{x:23.6,y:11.1},{x:23.8,y:11.2},{x:24,y:11.5},{x:24.2,y:11.6},{x:24.4,y:11.9},{x:24.6,y:12},{x:24.8,y:12.2},{x:25,y:12.5},{x:25.2,y:12.6},{x:25.4,y:12.9},{x:25.6,y:13},{x:25.8,y:13.2},{x:26,y:13.5},{x:26.2,y:13.7},{x:26.4,y:13.9},{x:26.6,y:14.1},{x:26.8,y:14.3},{x:27,y:14.6},{x:27.2,y:14.7},{x:27.4,y:14.9},{x:27.6,y:15.1},{x:27.8,y:15.3},{x:28,y:15.4},{x:28.2,y:15.6},{x:28.4,y:15.8},{x:28.6,y:16},{x:28.8,y:16.2},{x:29,y:16.4},{x:29.2,y:16.6},{x:29.4,y:16.8},{x:29.6,y:17},{x:29.8,y:17.2},{x:30,y:17.4},{x:30.2,y:17.6},{x:30.4,y:17.8},{x:30.6,y:18},{x:30.8,y:18.2},{x:31,y:18.4},{x:31.2,y:18.6},{x:31.4,y:18.9},{x:31.6,y:19.2},{x:31.8,y:19.4},{x:32,y:19.6},{x:32.2,y:19.9},{x:32.4,y:20.1},{x:32.6,y:20.4},{x:32.8,y:20.6},{x:33,y:20.9},{x:33.2,y:21.2},{x:33.4,y:21.4},{x:33.6,y:21.7},{x:33.8,y:21.9},{x:34,y:22.1},{x:34.2,y:22.3},{x:34.4,y:22.5},{x:34.6,y:22.7},{x:34.8,y:22.9},{x:35,y:23.2},{x:35.2,y:23.4},{x:35.4,y:23.7},{x:35.6,y:24},{x:35.8,y:24.3},{x:36,y:24.5},{x:36.2,y:24.8},{x:36.4,y:25.1},{x:36.6,y:25.4},{x:36.8,y:25.7},{x:37,y:25.9},{x:37.2,y:26.2},{x:37.4,y:26.6},{x:37.6,y:26.8},{x:37.8,y:27.1},{x:38,y:27.4},{x:38.2,y:27.7},{x:38.4,y:28},{x:38.6,y:28.3},{x:38.8,y:28.5},{x:39,y:28.8},{x:39.2,y:29},{x:39.4,y:29.2},{x:39.6,y:29.4},{x:39.8,y:29.7},{x:40,y:30},{x:40.2,y:30.2},{x:40.4,y:30.5},{x:40.6,y:30.8},{x:40.8,y:31.2},{x:41,y:31.5},{x:41.2,y:31.8},{x:41.4,y:32},{x:41.6,y:32.4},{x:41.8,y:32.7},{x:42,y:33},{x:42.2,y:33.3},{x:42.4,y:33.6},{x:42.6,y:34},{x:42.8,y:34.3},{x:43,y:34.6},{x:43.2,y:34.9},{x:43.4,y:35.3},{x:43.6,y:35.6},{x:43.8,y:35.9},{x:44,y:36.3},{x:44.2,y:36.6},{x:44.4,y:36.9},{x:44.6,y:37.2},{x:44.8,y:37.6},{x:45,y:37.9},{x:45.2,y:38.3},{x:45.4,y:38.6},{x:45.6,y:39},{x:45.8,y:39.3},{x:46,y:39.7},{x:46.2,y:40},{x:46.4,y:40.3},{x:46.6,y:40.7},{x:46.8,y:41},{x:47,y:41.4},{x:47.2,y:41.8},{x:47.4,y:42.1},{x:47.6,y:42.5},{x:47.8,y:42.8},{x:48,y:43.2},{x:48.2,y:43.6},{x:48.4,y:43.9},{x:48.6,y:44.3},{x:48.8,y:44.6},{x:49,y:45},{x:49.2,y:45.4},{x:49.4,y:45.8},{x:49.6,y:46.2},{x:49.8,y:46.5},{x:50,y:46.9},{x:50.2,y:47.2},{x:50.4,y:47.7},{x:50.6,y:48},{x:50.8,y:48.4},{x:51,y:48.8},{x:51.2,y:49.2},{x:51.4,y:49.6},{x:51.6,y:50},{x:51.8,y:50.3},{x:52,y:50.7},{x:52.2,y:51.1},{x:52.4,y:51.5},{x:52.8,y:52.3},{x:53,y:52.7},{x:53.2,y:53.1},{x:53.4,y:53.5},{x:53.6,y:53.9},{x:53.8,y:54.3},{x:54,y:54.7},{x:54.2,y:55.1},{x:54.4,y:55.6},{x:54.6,y:56},{x:54.8,y:56.4},{x:55,y:56.8},{x:55.2,y:57.2},{x:55.4,y:57.6},{x:55.6,y:58},{x:55.8,y:58.5},{x:56,y:58.9},{x:56.2,y:59.3},{x:56.4,y:59.7},{x:56.6,y:60}],b=[{x:23,y:10.1},{x:23.2,y:10.3},{x:23.4,y:10.4},{x:23.6,y:10.7},{x:23.8,y:10.8},{x:24,y:11},{x:24.2,y:11.2},{x:24.4,y:11.4},{x:24.6,y:11.5},{x:24.8,y:11.8},{x:25,y:12},{x:25.2,y:12.1},{x:25.4,y:12.4},{x:25.6,y:12.5},{x:25.8,y:12.7},{x:26,y:13},{x:26.2,y:13.2},{x:26.4,y:13.3},{x:26.6,y:13.5},{x:26.8,y:13.8},{x:27,y:14},{x:27.2,y:14.1},{x:27.4,y:14.3},{x:27.6,y:14.5},{x:27.8,y:14.7},{x:28,y:14.8},{x:28.2,y:15},{x:28.4,y:15.2},{x:28.6,y:15.4},{x:28.8,y:15.6},{x:29,y:15.8},{x:29.2,y:16},{x:29.4,y:16.2},{x:29.6,y:16.4},{x:29.8,y:16.6},{x:30,y:16.8},{x:30.2,y:17},{x:30.4,y:17.2},{x:30.6,y:17.5},{x:30.8,y:17.7},{x:31,y:17.9},{x:31.2,y:16.1},{x:31.4,y:18.4},{x:31.6,y:18.6},{x:31.8,y:18.9},{x:32,y:19.1},{x:32.2,y:19.4},{x:32.4,y:19.6},{x:32.6,y:19.9},{x:32.8,y:20.1},{x:33,y:20.3},{x:33.2,y:20.5},{x:33.4,y:20.7},{x:33.6,y:20.9},{x:33.8,y:21.1},{x:34,y:21.3},{x:34.2,y:21.5},{x:34.4,y:21.7},{x:34.6,y:21.9},{x:34.8,y:22.1},{x:35,y:22.3},{x:35.2,y:22.5},{x:35.4,y:22.8},{x:35.6,y:23},{x:35.8,y:23.3},{x:36,y:23.5},{x:36.2,y:23.8},{x:36.4,y:24.1},{x:36.6,y:24.4},{x:36.8,y:24.6},{x:37,y:24.8},{x:37.2,y:25.1},{x:37.4,y:25.4},{x:37.6,y:25.7},{x:37.8,y:26},{x:38,y:26.2},{x:38.2,y:26.5},{x:38.4,y:29.8},{x:38.6,y:27},{x:38.8,y:27.2},{x:39,y:27.4},{x:39.2,y:27.6},{x:39.4,y:27.8},{x:39.6,y:28},{x:39.8,y:28.2},{x:40,y:28.4},{x:40.2,y:28.6},{x:40.4,y:28.8},{x:40.6,y:29.1},{x:40.8,y:29.4},{x:41,y:29.7},{x:41.2,y:30},{x:41.4,y:30.3},{x:41.6,y:30.6},{x:41.8,y:30.9},{x:42,y:31.2},{x:42.2,y:31.5},{x:42.4,y:31.8},{x:42.6,y:32.1},{x:42.8,y:32.4},{x:43,y:32.7},{x:43.2,y:33},{x:43.4,y:33.3},{x:43.6,y:33.6},{x:43.8,y:33.9},{x:44,y:34.3},{x:44.2,y:34.5},{x:44.4,y:34.9},{x:44.6,y:35.2},{x:44.8,y:35.5},{x:45,y:35.8},{x:45.2,y:36.2},{x:45.4,y:36.4},{x:45.6,y:36.8},{x:45.8,y:37.1},{x:46,y:37.5},{x:46.2,y:37.7},{x:46.4,y:38.1},{x:46.6,y:38.4},{x:46.8,y:38.8},{x:47,y:39.1},{x:47.2,y:39.4},{x:47.4,y:39.8},{x:47.6,y:40.1},{x:47.8,y:40.5},{x:48,y:40.8},{x:48.2,y:41.1},{x:48.4,y:41.5},{x:48.6,y:41.8},{x:48.8,y:42.2},{x:49,y:42.5},{x:49.2,y:42.8},{x:49.4,y:43.2},{x:49.6,y:43.6},{x:49.8,y:43.9},{x:50,y:44.3},{x:50.2,y:44.6},{x:50.4,y:45},{x:50.6,y:45.4},{x:50.8,y:45.7},{x:51,y:46.1},{x:51.2,y:46.4},{x:51.4,y:46.8},{x:51.6,y:47.2},{x:51.8,y:47.5},{x:52,y:47.9},{x:52.2,y:48.3},{x:52.4,y:48.7},{x:52.8,y:49.4},{x:53,y:49.8},{x:53.2,y:50.2},{x:53.4,y:50.5},{x:53.6,y:50.9},{x:53.8,y:51.3},{x:54,y:51.7},{x:54.2,y:52.1},{x:54.4,y:52.5},{x:54.6,y:52.9},{x:54.8,y:53.2},{x:55,y:53.6},{x:55.2,y:54},{x:55.4,y:54.4},{x:55.6,y:54.8},{x:55.8,y:55.2},{x:56,y:55.6},{x:56.2,y:56},{x:56.4,y:56.4},{x:56.6,y:56.8},{x:56.8,y:57.2},{x:57,y:57.6},{x:57.2,y:58},{x:57.4,y:58.4},{x:57.6,y:58.9},{x:57.8,y:59.3},{x:58,y:59.7},{x:58.2,y:60}],C=[{x:23.2,y:10},{x:23.4,y:10.2},{x:23.6,y:10.4},{x:23.8,y:10.5},{x:24,y:10.7},{x:24.2,y:10.9},{x:24.4,y:11.1},{x:24.6,y:11.2},{x:24.8,y:11.4},{x:25,y:11.7},{x:25.2,y:11.8},{x:25.4,y:12},{x:25.6,y:12.2},{x:25.8,y:12.4},{x:26,y:12.6},{x:26.2,y:12.8},{x:26.4,y:13},{x:26.6,y:13.2},{x:26.8,y:13.4},{x:27,y:13.6},{x:27.2,y:13.8},{x:27.4,y:14},{x:27.6,y:14.1},{x:27.8,y:14.2},{x:28,y:14.4},{x:28.2,y:14.6},{x:28.4,y:14.8},{x:28.6,y:15},{x:28.8,y:15.2},{x:29,y:15.4},{x:29.2,y:15.6},{x:29.4,y:15.8},{x:29.6,y:16},{x:29.8,y:16.2},{x:30,y:16.4},{x:30.2,y:16.6},{x:30.4,y:16.8},{x:30.6,y:17},{x:30.8,y:17.2},{x:31,y:17.4},{x:31.2,y:17.6},{x:31.4,y:17.8},{x:31.6,y:18},{x:31.8,y:18.2},{x:32,y:18.4},{x:32.2,y:18.6},{x:32.4,y:18.8},{x:32.6,y:19},{x:32.8,y:19.2},{x:33,y:19.4},{x:33.2,y:19.6},{x:33.4,y:19.8},{x:33.6,y:20},{x:33.8,y:20.2},{x:34,y:20.4},{x:34.2,y:20.6},{x:34.4,y:20.8},{x:34.6,y:21},{x:34.8,y:21.2},{x:35,y:21.4},{x:35.2,y:21.6},{x:35.4,y:21.8},{x:35.6,y:22},{x:35.8,y:22.2},{x:36,y:22.4},{x:36.2,y:22.6},{x:36.4,y:22.8},{x:36.6,y:23},{x:36.8,y:23.2},{x:37,y:23.4},{x:37.2,y:23.7},{x:37.4,y:24},{x:37.6,y:24.2},{x:37.8,y:24.5},{x:38,y:24.8},{x:38.2,y:25},{x:38.4,y:25.2},{x:38.6,y:25.5},{x:38.8,y:25.8},{x:39,y:26},{x:39.2,y:26.2},{x:39.4,y:26.4},{x:39.6,y:26.6},{x:39.8,y:26.8},{x:40,y:27},{x:40.2,y:27.3},{x:40.4,y:27.6},{x:40.6,y:27.8},{x:40.8,y:28.1},{x:41,y:28.4},{x:41.2,y:28.7},{x:41.4,y:28.9},{x:41.6,y:29.2},{x:41.8,y:29.5},{x:42,y:29.8},{x:42.2,y:30.1},{x:42.4,y:30.4},{x:42.6,y:30.7},{x:42.8,y:30.9},{x:43,y:31.3},{x:43.2,y:31.5},{x:43.4,y:31.8},{x:43.6,y:32.1},{x:43.8,y:32.4},{x:44,y:32.8},{x:44.2,y:33},{x:44.4,y:33.3},{x:44.6,y:33.6},{x:44.8,y:33.9},{x:45,y:34.3},{x:45.2,y:34.6},{x:45.4,y:34.8},{x:45.6,y:35.2},{x:45.8,y:35.5},{x:46,y:35.8},{x:46.2,y:36.1},{x:46.4,y:36.4},{x:46.6,y:36.7},{x:46.8,y:37},{x:47,y:37.4},{x:47.2,y:37.7},{x:47.4,y:38},{x:47.6,y:40},{x:47.8,y:38.7},{x:48,y:39},{x:48.2,y:39.3},{x:48.4,y:39.6},{x:48.6,y:40},{x:48.8,y:40.3},{x:49,y:40.6},{x:49.2,y:41},{x:49.4,y:41.3},{x:49.6,y:41.7},{x:49.8,y:42},{x:50,y:42.3},{x:50.2,y:42.6},{x:50.4,y:43},{x:50.6,y:43.4},{x:50.8,y:43.7},{x:51,y:44.1},{x:51.2,y:44.4},{x:51.4,y:44.7},{x:51.6,y:45.1},{x:51.8,y:45.4},{x:52,y:45.8},{x:52.2,y:46.2},{x:52.4,y:46.5},{x:52.8,y:47.3},{x:53,y:47.6},{x:53.2,y:48},{x:53.4,y:48.3},{x:53.6,y:48.7},{x:53.8,y:49},{x:54,y:49.4},{x:54.2,y:49.8},{x:54.4,y:50.2},{x:54.6,y:50.5},{x:54.8,y:50.9},{x:55,y:51.3},{x:55.2,y:51.6},{x:55.4,y:52},{x:55.6,y:52.4},{x:55.8,y:52.8},{x:56,y:53.2},{x:56.2,y:53.5},{x:56.4,y:53.9},{x:56.6,y:54.3},{x:56.8,y:54.7},{x:57,y:55.1},{x:57.2,y:55.5},{x:57.4,y:55.9}],S=[{x:23.6,y:10.1},{x:23.8,y:10.2},{x:24,y:10.4},{x:24.2,y:10.6},{x:24.4,y:10.8},{x:24.6,y:10.9},{x:24.8,y:11.1},{x:25,y:11.3},{x:25.2,y:11.5},{x:25.4,y:11.7},{x:25.6,y:11.8},{x:25.8,y:12},{x:26,y:12.2},{x:26.2,y:12.4},{x:26.4,y:12.6},{x:26.6,y:12.8},{x:26.8,y:12.9},{x:27,y:13.1},{x:27.2,y:13.3},{x:27.4,y:13.4},{x:27.6,y:13.6},{x:27.8,y:13.7},{x:28,y:13.9},{x:28.2,y:14},{x:28.4,y:14.2},{x:28.6,y:14.3},{x:28.8,y:14.5},{x:29,y:14.6},{x:29.2,y:14.8},{x:29.4,y:15},{x:29.6,y:15.1},{x:29.8,y:15.3},{x:30,y:15.4},{x:30.2,y:15.6},{x:30.4,y:15.8},{x:30.6,y:16},{x:30.8,y:16.2},{x:31,y:16.4},{x:31.2,y:16.6},{x:31.4,y:16.9},{x:31.6,y:17.1},{x:31.8,y:17.3},{x:32,y:17.5},{x:32.2,y:17.7},{x:32.4,y:17.9},{x:32.6,y:18.1},{x:32.8,y:18.3},{x:33,y:18.5},{x:33.2,y:18.7},{x:33.4,y:18.9},{x:33.6,y:19.1},{x:33.8,y:19.3},{x:34,y:19.5},{x:34.2,y:19.7},{x:34.4,y:19.8},{x:34.6,y:20},{x:34.8,y:20.2},{x:35,y:20.4},{x:35.2,y:20.6},{x:35.4,y:20.8},{x:35.6,y:21},{x:35.8,y:21.2},{x:36,y:21.4},{x:36.2,y:21.6},{x:36.4,y:21.8},{x:36.6,y:22},{x:36.8,y:22.2},{x:37,y:22.4},{x:37.2,y:22.6},{x:37.4,y:22.9},{x:37.6,y:23.1},{x:37.8,y:23.4},{x:38,y:23.6},{x:38.2,y:23.9},{x:38.4,y:24.1},{x:38.6,y:24.4},{x:38.8,y:24.6},{x:39,y:24.8},{x:39.2,y:25},{x:39.4,y:25.2},{x:39.6,y:25.4},{x:39.8,y:25.6},{x:40,y:25.8},{x:40.2,y:26},{x:40.4,y:26.2},{x:40.6,y:26.5},{x:40.8,y:26.8},{x:41,y:27.1},{x:41.2,y:27.3},{x:41.4,y:27.6},{x:41.6,y:27.9},{x:41.8,y:28.1},{x:42,y:28.5},{x:42.2,y:28.7},{x:42.4,y:29},{x:42.6,y:29.3},{x:42.8,y:29.5},{x:43,y:29.8},{x:43.2,y:30.1},{x:43.4,y:30.4},{x:43.6,y:30.6},{x:43.8,y:30.9},{x:44,y:31.2},{x:44.2,y:31.5},{x:44.4,y:31.8},{x:44.6,y:32.1},{x:44.8,y:32.4},{x:45,y:32.7},{x:45.2,y:33},{x:45.4,y:33.2},{x:45.6,y:33.5},{x:45.8,y:33.9},{x:46,y:34.2},{x:46.2,y:34.4},{x:46.4,y:34.7},{x:46.6,y:35},{x:46.8,y:35.3},{x:47,y:35.6},{x:47.2,y:36},{x:47.4,y:36.3},{x:47.6,y:36.6},{x:47.8,y:36.9},{x:48,y:37.2},{x:48.2,y:37.5},{x:48.4,y:37.8},{x:48.6,y:38.1},{x:48.8,y:38.4},{x:49,y:38.8},{x:49.2,y:39.1},{x:49.4,y:39.4},{x:49.6,y:39.7},{x:49.8,y:40.1},{x:50,y:40.4},{x:50.2,y:40.7},{x:50.4,y:41},{x:50.6,y:41.4},{x:50.8,y:41.7},{x:51,y:42},{x:51.2,y:42.3},{x:51.4,y:42.7},{x:51.6,y:43},{x:51.8,y:43.3},{x:52,y:43.7},{x:52.2,y:44},{x:52.4,y:44.4},{x:52.8,y:45.1},{x:53,y:45.4},{x:53.2,y:45.8},{x:53.4,y:46.1},{x:53.6,y:46.4},{x:53.8,y:46.8},{x:54,y:47.1},{x:54.2,y:47.5},{x:54.4,y:47.9},{x:54.6,y:48.2},{x:54.8,y:48.5},{x:55,y:48.9},{x:55.2,y:49.3},{x:55.4,y:49.6},{x:55.6,y:50},{x:55.8,y:50.3},{x:56,y:50.7},{x:56.2,y:51.1},{x:56.4,y:51.4},{x:56.6,y:51.8},{x:56.8,y:52.2},{x:57,y:52.5},{x:57.2,y:52.9},{x:57.4,y:53.3},{x:57.6,y:56.3},{x:57.8,y:56.7},{x:58,y:57},{x:58.2,y:57.4},{x:58.4,y:57.8},{x:58.6,y:58.2},{x:58.8,y:58.6},{x:59,y:59},{x:59.2,y:59.4},{x:59.4,y:59.8},{x:59.6,y:60}],w=[{x:23.6,y:10.1},{x:23.8,y:10.2},{x:24,y:10.4},{x:24.2,y:10.6},{x:24.4,y:10.8},{x:24.6,y:10.9},{x:24.8,y:11.1},{x:25,y:11.3},{x:25.2,y:11.5},{x:25.4,y:11.7},{x:25.6,y:11.8},{x:25.8,y:12},{x:26,y:12.2},{x:26.2,y:12.4},{x:26.4,y:12.6},{x:26.6,y:12.8},{x:26.8,y:12.9},{x:27,y:13.1},{x:27.2,y:13.3},{x:27.4,y:13.4},{x:27.6,y:13.6},{x:27.8,y:13.7},{x:28,y:13.9},{x:28.2,y:14},{x:28.4,y:14.2},{x:28.6,y:14.3},{x:28.8,y:14.5},{x:29,y:14.6},{x:29.2,y:14.8},{x:29.4,y:15},{x:29.6,y:15.1},{x:29.8,y:15.3},{x:30,y:15.4},{x:30.2,y:15.6},{x:30.4,y:15.8},{x:30.6,y:16},{x:30.8,y:16.2},{x:31,y:16.4},{x:31.2,y:16.6},{x:31.4,y:16.9},{x:31.6,y:17.1},{x:31.8,y:17.3},{x:32,y:17.5},{x:32.2,y:17.7},{x:32.4,y:17.9},{x:32.6,y:18.1},{x:32.8,y:18.3},{x:33,y:18.5},{x:33.2,y:18.7},{x:33.4,y:18.9},{x:33.6,y:19.1},{x:33.8,y:19.3},{x:34,y:19.5},{x:34.2,y:19.7},{x:34.4,y:19.8},{x:34.6,y:20},{x:34.8,y:20.2},{x:35,y:20.4},{x:35.2,y:20.6},{x:35.4,y:20.8},{x:35.6,y:21},{x:35.8,y:21.2},{x:36,y:21.4},{x:36.2,y:21.6},{x:36.4,y:21.8},{x:36.6,y:22},{x:36.8,y:22.2},{x:37,y:22.4},{x:37.2,y:22.6},{x:37.4,y:22.9},{x:37.6,y:23.1},{x:37.8,y:23.4},{x:38,y:23.6},{x:38.2,y:23.9},{x:38.4,y:24.1},{x:38.6,y:24.4},{x:38.8,y:24.6},{x:39,y:24.8},{x:39.2,y:25},{x:39.4,y:25.2},{x:39.6,y:25.4},{x:39.8,y:25.6},{x:40,y:25.8},{x:40.2,y:26},{x:40.4,y:26.2},{x:40.6,y:26.5},{x:40.8,y:26.8},{x:41,y:27.1},{x:41.2,y:27.3},{x:41.4,y:27.6},{x:41.6,y:27.9},{x:41.8,y:28.1},{x:42,y:28.5},{x:42.2,y:28.7},{x:42.4,y:29},{x:42.6,y:29.3},{x:42.8,y:29.5},{x:43,y:29.8},{x:43.2,y:30.1},{x:43.4,y:30.4},{x:43.6,y:30.6},{x:43.8,y:30.9},{x:44,y:31.2},{x:44.2,y:31.5},{x:44.4,y:31.8},{x:44.6,y:32.1},{x:44.8,y:32.4},{x:45,y:32.7},{x:45.2,y:33},{x:45.4,y:33.2},{x:45.6,y:33.5},{x:45.8,y:33.9},{x:46,y:34.2},{x:46.2,y:34.4},{x:46.4,y:34.7},{x:46.6,y:35},{x:46.8,y:35.3},{x:47,y:35.6},{x:47.2,y:36},{x:47.4,y:36.3},{x:47.6,y:36.6},{x:47.8,y:36.9},{x:48,y:37.2},{x:48.2,y:37.5},{x:48.4,y:37.8},{x:48.6,y:38.1},{x:48.8,y:38.4},{x:49,y:38.8},{x:49.2,y:39.1},{x:49.4,y:39.4},{x:49.6,y:39.7},{x:49.8,y:40.1},{x:50,y:40.4},{x:50.2,y:40.7},{x:50.4,y:41},{x:50.6,y:41.4},{x:50.8,y:41.7},{x:51,y:42},{x:51.2,y:42.3},{x:51.4,y:42.7},{x:51.6,y:43},{x:51.8,y:43.3},{x:52,y:43.7},{x:52.2,y:44},{x:52.4,y:44.4},{x:52.8,y:45.1},{x:53,y:45.4},{x:53.2,y:45.8},{x:53.4,y:46.1},{x:53.6,y:46.4},{x:53.8,y:46.8},{x:54,y:47.1},{x:54.2,y:47.5},{x:54.4,y:47.9},{x:54.6,y:48.2},{x:54.8,y:48.5},{x:55,y:48.9},{x:55.2,y:49.3},{x:55.4,y:49.6},{x:55.6,y:50},{x:55.8,y:50.3},{x:56,y:50.7},{x:56.2,y:51.1},{x:56.4,y:51.4},{x:56.6,y:51.8},{x:56.8,y:52.2},{x:57,y:52.5},{x:57.2,y:52.9},{x:57.4,y:53.3},{x:57.6,y:53.7},{x:57.8,y:54},{x:58,y:54.4},{x:58.2,y:54.8},{x:58.4,y:55.2},{x:58.6,y:55.6},{x:58.8,y:55.9},{x:59,y:56.3},{x:59.2,y:56.7},{x:59.4,y:57.1},{x:59.6,y:57.5},{x:59.8,y:57.9},{x:60,y:58.3}],F=new Array;if(y>=0){"0"==(D=1*o)?F=i:"0.5"==D?F=u:"1"==D?F=m:"1.5"==D?F=c:"2"==D?F=h:"2.5"==D?F=p:"3"==D?F=f:"3.5"==D?F=d:"4"==D?F=g:"4.5"==D?F=b:"5"==D?F=C:"5.5"==D?F=S:D>="6"&&(F=w);var V=-1;for(s=0;s<F.length;s++){if(1*F[0].x>x){V=1;break}if(1*F[s].x>x){V=s;break}if(1*F[F.length-1].x<x){V=F.length-1;break}if(x==F[s].x){n=e.GetDataOddIncreaseEvenDecrease(F[s].y,-1);break}}if(-1!=V){var E=F[V-1].x,N=F[V-1].y,v=F[V].x,A=F[V].y;x>=53&&2==D||x>=48&&0==D||x>=49&&.5==D||x>=50.2&&1==D||x>=51.6&&1.5==D||x>=54&&2.5==D||x>=55.2&&3==D||x>=55.8&&3.5==D||x>=56.6&&4==D||x>=58.2&&4.5==D||x>=59.6&&5==D?n=">60.0":((n=e.GetDataOddIncreaseEvenDecrease(e.InterpolationMethod_y(E,v,N,A,x),-1))>60&&(n=">60.0"),n<10&&(n="<10.0"))}}}else if("泵送混凝土"==l){for(o=a,x=t,y="",r=new Array("0.0","0.5","1.0","1.5","2.0","2.5","3.0","3.5","4.0","4.5","5.0","5.5","6.0"),s=0;s<r.length;s++){if(o==r[s]){y=s;break}if(1*o>"6.0"){y=r.length-1;break}}i=[{x:18.6,y:10},{x:18.8,y:10.2},{x:19,y:10.4},{x:19.2,y:10.6},{x:19.4,y:10.9},{x:19.6,y:11.1},{x:19.8,y:11.3},{x:20,y:11.5},{x:20.2,y:11.8},{x:20.4,y:12},{x:20.6,y:12.2},{x:20.8,y:12.4},{x:21,y:12.7},{x:21.2,y:12.9},{x:21.4,y:13.1},{x:21.6,y:13.4},{x:21.8,y:13.6},{x:22,y:13.9},{x:22.2,y:14.1},{x:22.4,y:14.4},{x:22.6,y:14.6},{x:22.8,y:14.9},{x:23,y:15.1},{x:23.2,y:15.4},{x:23.4,y:15.6},{x:23.6,y:15.9},{x:23.8,y:16.2},{x:24,y:16.4},{x:24.2,y:16.7},{x:24.4,y:17},{x:24.6,y:17.2},{x:24.8,y:17.5},{x:25,y:17.8},{x:25.2,y:18},{x:25.4,y:18.3},{x:25.6,y:18.6},{x:25.8,y:18.9},{x:26,y:19.2},{x:26.2,y:19.5},{x:26.4,y:19.8},{x:26.6,y:20},{x:26.8,y:20.3},{x:27,y:20.6},{x:27.2,y:20.9},{x:27.4,y:21.2},{x:27.6,y:21.5},{x:27.8,y:21.8},{x:28,y:22.1},{x:28.2,y:22.4},{x:28.4,y:22.8},{x:28.6,y:23.1},{x:28.8,y:23.4},{x:29,y:23.7},{x:29.2,y:24},{x:29.4,y:24.3},{x:29.6,y:24.7},{x:29.8,y:25},{x:30,y:25.3},{x:30.2,y:25.6},{x:30.4,y:26},{x:30.6,y:26.3},{x:30.8,y:26.6},{x:31,y:27},{x:31.2,y:27.3},{x:31.4,y:27.7},{x:31.6,y:28},{x:31.8,y:28.3},{x:32,y:28.7},{x:32.2,y:29},{x:32.4,y:29.4},{x:32.6,y:29.7},{x:32.8,y:30.1},{x:33,y:30.4},{x:33.2,y:30.8},{x:33.4,y:31.2},{x:33.6,y:31.5},{x:33.8,y:31.9},{x:34,y:32.3},{x:34.2,y:32.6},{x:34.4,y:33},{x:34.6,y:33.4},{x:34.8,y:33.8},{x:35,y:34.1},{x:35.2,y:34.5},{x:35.4,y:34.9},{x:35.6,y:35.3},{x:35.8,y:35.7},{x:36,y:36},{x:36.2,y:36.4},{x:36.4,y:36.8},{x:36.6,y:37.2},{x:36.8,y:37.6},{x:37,y:38},{x:37.2,y:38.4},{x:37.4,y:38.8},{x:37.6,y:39.2},{x:37.8,y:39.6},{x:38,y:40},{x:38.2,y:40.4},{x:38.4,y:40.9},{x:38.6,y:41.3},{x:38.8,y:41.7},{x:39,y:42.1},{x:39.2,y:42.5},{x:39.4,y:42.9},{x:39.6,y:43.4},{x:39.8,y:43.8},{x:40,y:44.2},{x:40.2,y:44.7},{x:40.4,y:45.1},{x:40.6,y:45.5},{x:40.8,y:46},{x:41,y:46.4},{x:41.2,y:46.8},{x:41.4,y:47.3},{x:41.6,y:47.7},{x:41.8,y:48.2},{x:42,y:48.6},{x:42.2,y:49.1},{x:42.4,y:49.5},{x:42.6,y:50},{x:42.8,y:50.4},{x:43,y:50.9},{x:43.2,y:51.3},{x:43.4,y:51.8},{x:43.6,y:52.3},{x:43.8,y:52.7},{x:44,y:53.2},{x:44.2,y:53.7},{x:44.4,y:54.1},{x:44.6,y:54.6},{x:44.8,y:55.1},{x:45,y:55.6},{x:45.2,y:56.1},{x:45.4,y:56.5},{x:45.6,y:57},{x:45.8,y:57.5},{x:46,y:58},{x:46.2,y:58.5},{x:46.4,y:59},{x:46.6,y:59.5},{x:46.8,y:60}],u=[{x:18.8,y:10},{x:19,y:10.2},{x:19.2,y:10.4},{x:19.4,y:10.7},{x:19.6,y:10.9},{x:19.8,y:11.1},{x:20,y:11.3},{x:20.2,y:11.5},{x:20.4,y:11.7},{x:20.6,y:12},{x:20.8,y:12.2},{x:21,y:12.4},{x:21.2,y:12.6},{x:21.4,y:12.9},{x:21.6,y:13.1},{x:21.8,y:13.3},{x:22,y:13.6},{x:22.2,y:13.8},{x:22.4,y:14.1},{x:22.6,y:14.3},{x:22.8,y:14.6},{x:23,y:14.8},{x:23.2,y:15.1},{x:23.4,y:15.3},{x:23.6,y:15.6},{x:23.8,y:15.8},{x:24,y:16.1},{x:24.2,y:16.4},{x:24.4,y:16.6},{x:24.6,y:16.9},{x:24.8,y:17.1},{x:25,y:17.4},{x:25.2,y:17.7},{x:25.4,y:18},{x:25.6,y:18.2},{x:25.8,y:18.5},{x:26,y:18.8},{x:26.2,y:19.1},{x:26.4,y:19.4},{x:26.6,y:19.6},{x:26.8,y:19.9},{x:27,y:20.2},{x:27.2,y:20.5},{x:27.4,y:20.8},{x:27.6,y:21.1},{x:27.8,y:21.4},{x:28,y:21.7},{x:28.2,y:22},{x:28.4,y:22.3},{x:28.6,y:22.6},{x:28.8,y:22.9},{x:29,y:23.2},{x:29.2,y:23.5},{x:29.4,y:23.9},{x:29.6,y:24.2},{x:29.8,y:24.5},{x:30,y:24.8},{x:30.2,y:25.1},{x:30.4,y:25.5},{x:30.6,y:25.8},{x:30.8,y:26.1},{x:31,y:26.4},{x:31.2,y:26.8},{x:31.4,y:27.1},{x:31.6,y:27.4},{x:31.8,y:27.8},{x:32,y:28.1},{x:32.2,y:28.5},{x:32.4,y:28.8},{x:32.6,y:29.2},{x:32.8,y:29.5},{x:33,y:29.8},{x:33.2,y:30.2},{x:33.4,y:30.6},{x:33.6,y:30.9},{x:33.8,y:31.3},{x:34,y:31.6},{x:34.2,y:32},{x:34.4,y:32.4},{x:34.6,y:32.7},{x:34.8,y:33.1},{x:35,y:33.5},{x:35.2,y:33.8},{x:35.4,y:34.2},{x:35.6,y:34.6},{x:35.8,y:35},{x:36,y:35.3},{x:36.2,y:35.7},{x:36.4,y:36.1},{x:36.6,y:36.5},{x:36.8,y:36.9},{x:37,y:37.3},{x:37.2,y:37.7},{x:37.4,y:38.1},{x:37.6,y:38.4},{x:37.8,y:38.8},{x:38,y:39.2},{x:38.2,y:39.6},{x:38.4,y:40.1},{x:38.6,y:40.5},{x:38.8,y:40.9},{x:39,y:41.3},{x:39.2,y:41.7},{x:39.4,y:42.1},{x:39.6,y:42.5},{x:39.8,y:42.9},{x:40,y:43.4},{x:40.2,y:43.8},{x:40.4,y:44.2},{x:40.6,y:44.6},{x:40.8,y:45.1},{x:41,y:45.5},{x:41.2,y:45.9},{x:41.4,y:46.3},{x:41.6,y:46.8},{x:41.8,y:47.2},{x:42,y:47.7},{x:42.2,y:48.1},{x:42.4,y:48.5},{x:42.6,y:49},{x:42.8,y:49.4},{x:43,y:49.9},{x:43.2,y:50.3},{x:43.4,y:50.8},{x:43.6,y:51.2},{x:43.8,y:51.7},{x:44,y:52.2},{x:44.2,y:52.6},{x:44.4,y:53.1},{x:44.6,y:53.5},{x:44.8,y:54},{x:45,y:54.5},{x:45.2,y:55},{x:45.4,y:55.4},{x:45.6,y:55.9},{x:45.8,y:56.4},{x:46,y:56.9},{x:46.2,y:57.3},{x:46.4,y:57.8},{x:46.6,y:58.3},{x:46.8,y:58.8},{x:47,y:59.3},{x:47.2,y:59.8},{x:47.4,y:60}],m=[{x:19,y:10},{x:19.2,y:10.2},{x:19.4,y:10.4},{x:19.6,y:10.6},{x:19.8,y:10.9},{x:20,y:11.1},{x:20.2,y:11.3},{x:20.4,y:11.5},{x:20.6,y:11.7},{x:20.8,y:12},{x:21,y:12.2},{x:21.2,y:12.4},{x:21.4,y:12.6},{x:21.6,y:12.9},{x:21.8,y:13.1},{x:22,y:13.3},{x:22.2,y:13.6},{x:22.4,y:13.8},{x:22.6,y:14},{x:22.8,y:14.3},{x:23,y:14.5},{x:23.2,y:14.8},{x:23.4,y:15},{x:23.6,y:15.3},{x:23.8,y:15.5},{x:24,y:15.8},{x:24.2,y:16},{x:24.4,y:16.3},{x:24.6,y:16.5},{x:24.8,y:16.8},{x:25,y:17.1},{x:25.2,y:17.3},{x:25.4,y:17.6},{x:25.6,y:17.9},{x:25.8,y:18.2},{x:26,y:18.4},{x:26.2,y:18.7},{x:26.4,y:19},{x:26.6,y:19.3},{x:26.8,y:19.5},{x:27,y:19.8},{x:27.2,y:20.1},{x:27.4,y:20.4},{x:27.6,y:20.7},{x:27.8,y:21},{x:28,y:21.3},{x:28.2,y:21.6},{x:28.4,y:21.9},{x:28.6,y:22.2},{x:28.8,y:22.5},{x:29,y:22.8},{x:29.2,y:23.1},{x:29.4,y:23.4},{x:29.6,y:23.7},{x:29.8,y:24},{x:30,y:24.3},{x:30.2,y:24.6},{x:30.4,y:25},{x:30.6,y:25.3},{x:30.8,y:25.6},{x:31,y:25.9},{x:31.2,y:26.2},{x:31.4,y:26.6},{x:31.6,y:26.9},{x:31.8,y:27.2},{x:32,y:27.6},{x:32.2,y:27.9},{x:32.4,y:28.2},{x:32.6,y:28.6},{x:32.8,y:28.9},{x:33,y:29.3},{x:33.2,y:29.6},{x:33.4,y:30},{x:33.6,y:30.3},{x:33.8,y:30.7},{x:34,y:31},{x:34.2,y:31.4},{x:34.4,y:31.7},{x:34.6,y:32.1},{x:34.8,y:32.4},{x:35,y:32.8},{x:35.2,y:33.2},{x:35.4,y:33.5},{x:35.6,y:33.9},{x:35.8,y:34.3},{x:36,y:34.6},{x:36.2,y:35},{x:36.4,y:35.4},{x:36.6,y:35.8},{x:36.8,y:36.2},{x:37,y:36.5},{x:37.2,y:36.9},{x:37.4,y:37.3},{x:37.6,y:37.7},{x:37.8,y:38.1},{x:38,y:38.5},{x:38.2,y:38.9},{x:38.4,y:39.3},{x:38.6,y:39.7},{x:38.8,y:40.1},{x:39,y:40.5},{x:39.2,y:40.9},{x:39.4,y:41.3},{x:39.6,y:41.7},{x:39.8,y:42.1},{x:40,y:42.5},{x:40.2,y:42.9},{x:40.4,y:43.3},{x:40.6,y:43.7},{x:40.8,y:44.2},{x:41,y:44.6},{x:41.2,y:45},{x:41.4,y:45.4},{x:41.6,y:45.9},{x:41.8,y:46.3},{x:42,y:46.7},{x:42.2,y:47.1},{x:42.4,y:47.6},{x:42.6,y:48},{x:42.8,y:48.5},{x:43,y:48.9},{x:43.2,y:49.3},{x:43.4,y:49.8},{x:43.6,y:50.2},{x:43.8,y:50.7},{x:44,y:51.1},{x:44.2,y:51.6},{x:44.4,y:52},{x:44.6,y:52.5},{x:44.8,y:52.9},{x:45,y:53.4},{x:45.2,y:53.9},{x:45.4,y:54.3},{x:45.6,y:54.8},{x:45.8,y:55.3},{x:46,y:55.7},{x:46.2,y:56.2},{x:46.4,y:56.7},{x:46.6,y:57.2},{x:46.8,y:57.6},{x:47,y:58.1},{x:47.2,y:58.6},{x:47.4,y:59.1},{x:47.6,y:59.6},{x:47.8,y:60}],c=[{x:19.2,y:10},{x:19.4,y:10.2},{x:19.6,y:10.4},{x:19.8,y:10.6},{x:20,y:10.9},{x:20.2,y:11.1},{x:20.4,y:11.3},{x:20.6,y:11.5},{x:20.8,y:11.7},{x:21,y:11.9},{x:21.2,y:12.2},{x:21.4,y:12.4},{x:21.6,y:12.6},{x:21.8,y:12.8},{x:22,y:13.1},{x:22.2,y:13.3},{x:22.4,y:13.5},{x:22.6,y:13.8},{x:22.8,y:14},{x:23,y:14.2},{x:23.2,y:14.5},{x:23.4,y:14.7},{x:23.6,y:15},{x:23.8,y:15.2},{x:24,y:15.5},{x:24.2,y:15.7},{x:24.4,y:16},{x:24.6,y:16.1},{x:24.8,y:16.5},{x:25,y:16.7},{x:25.2,y:17},{x:25.4,y:17.3},{x:25.6,y:17.5},{x:25.8,y:17.8},{x:26,y:18.1},{x:26.2,y:18.3},{x:26.4,y:18.6},{x:26.6,y:18.9},{x:26.8,y:19.2},{x:27,y:19.4},{x:27.2,y:19.7},{x:27.4,y:20},{x:27.6,y:20.3},{x:27.8,y:20.6},{x:28,y:20.9},{x:28.2,y:21.1},{x:28.4,y:21.4},{x:28.6,y:21.7},{x:28.8,y:22},{x:29,y:22.3},{x:29.2,y:22.6},{x:29.4,y:22.9},{x:29.6,y:23.1},{x:29.8,y:23.5},{x:30,y:23.8},{x:30.2,y:24.2},{x:30.4,y:24.5},{x:30.6,y:24.8},{x:30.8,y:25.1},{x:31,y:25.4},{x:31.2,y:25.7},{x:31.4,y:26},{x:31.6,y:26.4},{x:31.8,y:26.7},{x:32,y:27},{x:32.2,y:27.4},{x:32.4,y:27.7},{x:32.6,y:28},{x:32.8,y:28.3},{x:33,y:28.7},{x:33.2,y:29},{x:33.4,y:29.4},{x:33.6,y:29.7},{x:33.8,y:30},{x:34,y:30.4},{x:34.2,y:30.7},{x:34.4,y:31.1},{x:34.6,y:31.4},{x:34.8,y:31.8},{x:35,y:32.2},{x:35.2,y:32.5},{x:35.4,y:32.9},{x:35.6,y:33.2},{x:35.8,y:33.6},{x:36,y:34},{x:36.2,y:34.3},{x:36.4,y:34.7},{x:36.6,y:35.1},{x:36.8,y:35.4},{x:37,y:35.8},{x:37.2,y:36.2},{x:37.4,y:36.6},{x:37.6,y:36.9},{x:37.8,y:37.3},{x:38,y:37.7},{x:38.2,y:38.1},{x:38.4,y:38.5},{x:38.6,y:38.9},{x:38.8,y:39.3},{x:39,y:39.7},{x:39.2,y:40.1},{x:39.4,y:40.5},{x:39.6,y:40.9},{x:39.8,y:41.3},{x:40,y:41.7},{x:40.2,y:42.1},{x:40.4,y:42.5},{x:40.6,y:42.9},{x:40.8,y:43.3},{x:41,y:43.7},{x:41.2,y:44.1},{x:41.4,y:44.5},{x:41.6,y:45},{x:41.8,y:45.4},{x:42,y:45.8},{x:42.2,y:46.2},{x:42.4,y:46.6},{x:42.6,y:47.1},{x:42.8,y:47.5},{x:43,y:47.9},{x:43.2,y:48.4},{x:43.4,y:48.8},{x:43.6,y:49.2},{x:43.8,y:49.7},{x:44,y:50.1},{x:44.2,y:50.6},{x:44.4,y:51},{x:44.6,y:51.5},{x:44.8,y:51.9},{x:45,y:52.4},{x:45.2,y:52.8},{x:45.4,y:53.3},{x:45.6,y:53.7},{x:45.8,y:54.2},{x:46,y:54.6},{x:46.2,y:55.1},{x:46.4,y:55.6},{x:46.6,y:56},{x:46.8,y:56.5},{x:47,y:57},{x:47.2,y:57.4},{x:47.4,y:57.9},{x:47.6,y:58.4},{x:47.8,y:58.9},{x:48,y:59.3},{x:48.2,y:59.8},{x:48.4,y:60}],h=[{x:19.4,y:10},{x:19.6,y:10.2},{x:19.8,y:10.4},{x:20,y:10.6},{x:20.2,y:10.9},{x:20.4,y:11.1},{x:20.6,y:11.3},{x:20.8,y:11.5},{x:21,y:11.7},{x:21.2,y:11.9},{x:21.4,y:12.2},{x:21.6,y:12.4},{x:21.8,y:12.6},{x:22,y:12.8},{x:22.2,y:13.1},{x:22.4,y:13.3},{x:22.6,y:13.5},{x:22.8,y:13.7},{x:23,y:14},{x:23.2,y:14.2},{x:23.4,y:14.4},{x:23.6,y:14.7},{x:23.8,y:14.9},{x:24,y:15.2},{x:24.2,y:15.4},{x:24.4,y:15.7},{x:24.6,y:15.9},{x:24.8,y:16.2},{x:25,y:16.4},{x:25.2,y:16.7},{x:25.4,y:16.9},{x:25.6,y:17.2},{x:25.8,y:17.4},{x:26,y:17.7},{x:26.2,y:18},{x:26.4,y:18.2},{x:26.6,y:18.5},{x:26.8,y:18.8},{x:27,y:19.1},{x:27.2,y:19.3},{x:27.4,y:19.6},{x:27.6,y:19.9},{x:27.8,y:20.2},{x:28,y:20.4},{x:28.2,y:20.7},{x:28.4,y:21},{x:28.6,y:21.3},{x:28.8,y:21.6},{x:29,y:21.9},{x:29.2,y:22},{x:29.4,y:22.5},{x:29.6,y:22.8},{x:29.8,y:23.1},{x:30,y:23.4},{x:30.2,y:23.7},{x:30.4,y:24},{x:30.6,y:24.3},{x:30.8,y:24.6},{x:31,y:24.9},{x:31.2,y:25.2},{x:31.4,y:25.5},{x:31.6,y:25.9},{x:31.8,y:26.2},{x:32,y:26.5},{x:32.2,y:26.8},{x:32.4,y:27.1},{x:32.6,y:27.5},{x:32.8,y:27.8},{x:33,y:28.1},{x:33.2,y:28.4},{x:33.4,y:28.8},{x:33.6,y:29},{x:33.8,y:29.5},{x:34,y:29.8},{x:34.2,y:30.1},{x:34.4,y:30.5},{x:34.6,y:30.8},{x:34.8,y:31.2},{x:35,y:31.5},{x:35.2,y:31.9},{x:35.4,y:32.2},{x:35.6,y:32.5},{x:35.8,y:32.9},{x:36,y:33.2},{x:36.2,y:33.6},{x:36.4,y:34},{x:36.6,y:34.3},{x:36.8,y:34.7},{x:37,y:35.1},{x:37.2,y:35.5},{x:37.4,y:35.8},{x:37.6,y:36.2},{x:37.8,y:36.6},{x:38,y:37},{x:38.2,y:37.3},{x:38.4,y:37.7},{x:38.6,y:38.1},{x:38.8,y:38.5},{x:39,y:38.9},{x:39.2,y:39.3},{x:39.4,y:39.7},{x:39.6,y:40},{x:39.8,y:40.4},{x:40,y:40.8},{x:40.2,y:41.2},{x:40.4,y:41.6},{x:40.6,y:42},{x:40.8,y:42.4},{x:41,y:42.8},{x:41.2,y:43.2},{x:41.4,y:43.7},{x:41.6,y:44.1},{x:41.8,y:44.5},{x:42,y:44.9},{x:42.2,y:45.3},{x:42.4,y:45.7},{x:42.6,y:46.1},{x:42.8,y:46.6},{x:43,y:47},{x:43.2,y:47.4},{x:43.4,y:47.8},{x:43.6,y:48.3},{x:43.8,y:48.7},{x:44,y:49.1},{x:44.2,y:49.6},{x:44.4,y:50},{x:44.6,y:50.4},{x:44.8,y:50.9},{x:45,y:51.3},{x:45.2,y:51.8},{x:45.4,y:52.2},{x:45.6,y:52.7},{x:45.8,y:53.1},{x:46,y:53.6},{x:46.2,y:54},{x:46.4,y:54.5},{x:46.6,y:54.9},{x:46.8,y:55.4},{x:47,y:55.8},{x:47.2,y:56.3},{x:47.4,y:56.8},{x:47.6,y:57.2},{x:47.8,y:57.7},{x:48,y:58.2},{x:48.2,y:58.6},{x:48.4,y:59.1},{x:48.6,y:59.6},{x:48.8,y:60}],p=[{x:19.6,y:10},{x:19.8,y:10.2},{x:20,y:10.4},{x:20.2,y:10.6},{x:20.4,y:10.8},{x:20.6,y:11},{x:20.8,y:11.3},{x:21,y:11.5},{x:21.2,y:11.7},{x:21.4,y:11.9},{x:21.6,y:12.1},{x:21.8,y:12.3},{x:22,y:12.6},{x:22.2,y:12.8},{x:22.4,y:13},{x:22.6,y:13.2},{x:22.8,y:13.5},{x:23,y:13.7},{x:23.2,y:13.9},{x:23.4,y:14.1},{x:23.6,y:14.4},{x:23.8,y:14.6},{x:24,y:14.9},{x:24.2,y:15.1},{x:24.4,y:15.3},{x:24.6,y:15.6},{x:24.8,y:15.8},{x:25,y:16.1},{x:25.2,y:16.3},{x:25.4,y:16.6},{x:25.6,y:16.8},{x:25.8,y:17.1},{x:26,y:17.4},{x:26.2,y:17.6},{x:26.4,y:17.9},{x:26.6,y:18.1},{x:26.8,y:18.4},{x:27,y:18.7},{x:27.2,y:18.9},{x:27.4,y:19.2},{x:27.6,y:19.5},{x:27.8,y:19.8},{x:28,y:20},{x:28.2,y:20.3},{x:28.4,y:20.6},{x:28.6,y:20.9},{x:28.8,y:21.2},{x:29,y:21.5},{x:29.2,y:21.7},{x:29.4,y:22},{x:29.6,y:22.3},{x:29.8,y:22.6},{x:30,y:22.9},{x:30.2,y:23.2},{x:30.4,y:23.5},{x:30.6,y:23.8},{x:30.8,y:24.1},{x:31,y:24.4},{x:31.2,y:24.7},{x:31.4,y:25},{x:31.6,y:25.3},{x:31.8,y:25.7},{x:32,y:26},{x:32.2,y:26.3},{x:32.4,y:26.6},{x:32.6,y:26.9},{x:32.8,y:27.2},{x:33,y:27.6},{x:33.2,y:27.9},{x:33.4,y:28.2},{x:33.6,y:28.5},{x:33.8,y:28.9},{x:34,y:29.2},{x:34.2,y:29.5},{x:34.4,y:29.9},{x:34.6,y:30.2},{x:34.8,y:30.6},{x:35,y:30.9},{x:35.2,y:31.2},{x:35.4,y:31.6},{x:35.6,y:31.9},{x:35.8,y:32.3},{x:36,y:32.6},{x:36.2,y:33},{x:36.4,y:33.3},{x:36.6,y:33.7},{x:36.8,y:34.1},{x:37,y:34.4},{x:37.2,y:34.8},{x:37.4,y:35.1},{x:37.6,y:35.5},{x:37.8,y:35.9},{x:38,y:36.2},{x:38.2,y:36.6},{x:38.4,y:37},{x:38.6,y:37.3},{x:38.8,y:37.7},{x:39,y:38.1},{x:39.2,y:38.5},{x:39.4,y:38.9},{x:39.6,y:39.3},{x:39.8,y:39.7},{x:40,y:40},{x:40.2,y:40.4},{x:40.4,y:40.8},{x:40.6,y:41.2},{x:40.8,y:41.6},{x:41,y:42},{x:41.2,y:42.4},{x:41.4,y:42.8},{x:41.6,y:43.2},{x:41.8,y:43.6},{x:42,y:44},{x:42.2,y:44.4},{x:42.4,y:44.8},{x:42.6,y:45.2},{x:42.8,y:45.6},{x:43,y:46.1},{x:43.2,y:46.5},{x:43.4,y:46.9},{x:43.6,y:47.3},{x:43.8,y:47.7},{x:44,y:48.2},{x:44.2,y:48.6},{x:44.4,y:49},{x:44.6,y:49.4},{x:44.8,y:49.9},{x:45,y:50.3},{x:45.2,y:50.7},{x:45.4,y:51.2},{x:45.6,y:51.6},{x:45.8,y:52.1},{x:46,y:52.5},{x:46.2,y:52.9},{x:46.4,y:53.4},{x:46.6,y:53.8},{x:46.8,y:54.3},{x:47,y:54.7},{x:47.2,y:55.2},{x:47.4,y:55.6},{x:47.6,y:56.1},{x:47.8,y:56.6},{x:48,y:57},{x:48.2,y:57.5},{x:48.4,y:57.9},{x:48.6,y:58.4},{x:48.8,y:58.9},{x:49,y:59.3},{x:49.2,y:59.8},{x:49.4,y:60}],f=[{x:19.8,y:10},{x:20,y:10.2},{x:20.2,y:10.4},{x:20.4,y:10.6},{x:20.6,y:10.8},{x:20.8,y:11},{x:21,y:11.2},{x:21.2,y:11.5},{x:21.4,y:11.7},{x:21.6,y:11.9},{x:21.8,y:12.1},{x:22,y:12.3},{x:22.2,y:12.5},{x:22.4,y:12.7},{x:22.6,y:13},{x:22.8,y:13.2},{x:23,y:13.4},{x:23.2,y:13.6},{x:23.4,y:13.9},{x:23.6,y:14.1},{x:23.8,y:14.3},{x:24,y:14.6},{x:24.2,y:14.8},{x:24.4,y:15},{x:24.6,y:15.3},{x:24.8,y:15.5},{x:25,y:15.8},{x:25.2,y:16},{x:25.4,y:16.3},{x:25.6,y:16.5},{x:25.8,y:16.8},{x:26,y:17},{x:26.2,y:17.3},{x:26.4,y:17.5},{x:26.6,y:17.8},{x:26.8,y:18},{x:27,y:18.3},{x:27.2,y:18.6},{x:27.4,y:18.8},{x:27.6,y:19.1},{x:27.8,y:19.4},{x:28,y:19.6},{x:28.2,y:19.9},{x:28.4,y:20.2},{x:28.6,y:20.5},{x:28.8,y:20.7},{x:29,y:21},{x:29.2,y:21.3},{x:29.4,y:21.6},{x:29.6,y:21.9},{x:29.8,y:22.2},{x:30,y:22.5},{x:30.2,y:22.8},{x:30.4,y:23},{x:30.6,y:23.3},{x:30.8,y:23.6},{x:31,y:23.9},{x:31.2,y:24.2},{x:31.4,y:24.5},{x:31.6,y:24.8},{x:31.8,y:25.1},{x:32,y:25.5},{x:32.2,y:25.8},{x:32.4,y:26.1},{x:32.6,y:26.4},{x:32.8,y:26.7},{x:33,y:27},{x:33.2,y:27.3},{x:33.4,y:27.7},{x:33.6,y:28},{x:33.8,y:28.3},{x:34,y:28.6},{x:34.2,y:29},{x:34.4,y:29.3},{x:34.6,y:29.6},{x:34.8,y:30},{x:35,y:30.3},{x:35.2,y:30.6},{x:35.4,y:31},{x:35.6,y:31.3},{x:35.8,y:31.6},{x:36,y:32},{x:36.2,y:32.3},{x:36.4,y:32.7},{x:36.6,y:33},{x:36.8,y:33.4},{x:37,y:33.7},{x:37.2,y:34.1},{x:37.4,y:34.4},{x:37.6,y:38.4},{x:37.8,y:35.2},{x:38,y:35.5},{x:38.2,y:35.9},{x:38.4,y:36.3},{x:38.6,y:36.6},{x:38.8,y:37},{x:39,y:37.4},{x:39.2,y:37.7},{x:39.4,y:38.1},{x:39.6,y:38.5},{x:39.8,y:38.9},{x:40,y:39.2},{x:40.2,y:39.6},{x:40.4,y:40},{x:40.6,y:40.4},{x:40.8,y:40.8},{x:41,y:41.2},{x:41.2,y:41.6},{x:41.4,y:42},{x:41.6,y:42.3},{x:41.8,y:42.7},{x:42,y:43.1},{x:42.2,y:43.5},{x:42.4,y:43.9},{x:42.6,y:44.3},{x:42.8,y:44.7},{x:43,y:45.2},{x:43.2,y:45.6},{x:43.4,y:46},{x:43.6,y:46.4},{x:43.8,y:46.8},{x:44,y:47.2},{x:44.2,y:47.6},{x:44.4,y:48},{x:44.6,y:48.5},{x:44.8,y:48.9},{x:45,y:49.3},{x:45.2,y:49.7},{x:45.4,y:50.2},{x:45.6,y:50.6},{x:45.8,y:51},{x:46,y:51.5},{x:46.2,y:51.9},{x:46.4,y:52.3},{x:46.6,y:52.8},{x:46.8,y:53.2},{x:47,y:53.7},{x:47.2,y:54.1},{x:47.4,y:54.5},{x:47.6,y:55},{x:47.8,y:55.4},{x:48,y:55.9},{x:48.2,y:56.3},{x:48.4,y:56.8},{x:48.6,y:57.3},{x:48.8,y:57.7},{x:49,y:58.2},{x:49.2,y:58.6},{x:49.4,y:59.1},{x:49.6,y:59.6},{x:49.8,y:60}],d=[{x:20,y:10},{x:20.2,y:10.2},{x:20.4,y:10.4},{x:20.6,y:10.6},{x:20.8,y:10.8},{x:21,y:11},{x:21.2,y:11.2},{x:21.4,y:11.4},{x:21.6,y:11.6},{x:21.8,y:11.9},{x:22,y:12.1},{x:22.2,y:12.3},{x:22.4,y:12.5},{x:22.6,y:12.7},{x:22.8,y:12.9},{x:23,y:13.1},{x:23.2,y:13.4},{x:23.4,y:13.6},{x:23.6,y:13.8},{x:23.8,y:14.1},{x:24,y:14.3},{x:24.2,y:14.5},{x:24.4,y:14.7},{x:24.6,y:15},{x:24.8,y:15.2},{x:25,y:15.5},{x:25.2,y:15.7},{x:25.4,y:15.9},{x:25.6,y:16.2},{x:25.8,y:16.4},{x:26,y:16.7},{x:26.2,y:16.9},{x:26.4,y:17.2},{x:26.6,y:17.4},{x:26.8,y:17.7},{x:27,y:17.9},{x:27.2,y:18.2},{x:27.4,y:18.5},{x:27.6,y:18.7},{x:27.8,y:19},{x:28,y:19.3},{x:28.2,y:19.5},{x:28.4,y:19.8},{x:28.6,y:20.1},{x:28.8,y:20.3},{x:29,y:20.6},{x:29.2,y:20.9},{x:29.4,y:21.2},{x:29.6,y:21.4},{x:29.8,y:21.7},{x:30,y:22},{x:30.2,y:22.3},{x:30.4,y:22.6},{x:30.6,y:22.9},{x:30.8,y:23.2},{x:31,y:23.5},{x:31.2,y:23.8},{x:31.4,y:24.1},{x:31.6,y:24.4},{x:31.8,y:24.7},{x:32,y:25},{x:32.2,y:25.3},{x:32.4,y:25.6},{x:32.6,y:25.9},{x:32.8,y:26.2},{x:33,y:26.5},{x:33.2,y:26.8},{x:33.4,y:27.1},{x:33.6,y:27.4},{x:33.8,y:27.7},{x:34,y:28.1},{x:34.2,y:28.4},{x:34.4,y:28.7},{x:34.6,y:29},{x:34.8,y:29.4},{x:35,y:29.7},{x:35.2,y:30},{x:35.4,y:30.4},{x:35.6,y:30.7},{x:35.8,y:31},{x:36,y:31.4},{x:36.2,y:31.7},{x:36.4,y:32},{x:36.6,y:32.4},{x:36.8,y:32.7},{x:37,y:33.1},{x:37.2,y:33.4},{x:37.4,y:33.8},{x:37.6,y:34.1},{x:37.8,y:34.5},{x:38,y:34.8},{x:38.2,y:35.2},{x:38.4,y:35.5},{x:38.6,y:35.9},{x:38.8,y:36.3},{x:39,y:36.6},{x:39.2,y:37},{x:39.4,y:37.4},{x:39.6,y:37.7},{x:39.8,y:38.1},{x:40,y:38.5},{x:40.2,y:38.8},{x:40.4,y:39.2},{x:40.6,y:39.6},{x:40.8,y:40},{x:41,y:40.4},{x:41.2,y:40.7},{x:41.4,y:41.1},{x:41.6,y:41.5},{x:41.8,y:41.9},{x:42,y:42.3},{x:42.2,y:42.7},{x:42.4,y:43.1},{x:42.6,y:43.5},{x:42.8,y:43.9},{x:43,y:44.3},{x:43.2,y:44.7},{x:43.4,y:45.1},{x:43.6,y:45.5},{x:43.8,y:45.9},{x:44,y:46.3},{x:44.2,y:46.7},{x:44.4,y:47.1},{x:44.6,y:47.5},{x:44.8,y:47.9},{x:45,y:48.3},{x:45.2,y:48.8},{x:45.4,y:49.2},{x:45.6,y:49.6},{x:45.8,y:50},{x:46,y:50.5},{x:46.2,y:50.9},{x:46.4,y:51.3},{x:46.6,y:51.7},{x:46.8,y:52.2},{x:47,y:52.6},{x:47.2,y:53},{x:47.4,y:53.5},{x:47.6,y:53.9},{x:47.8,y:54.4},{x:48,y:54.8},{x:48.2,y:55.2},{x:48.4,y:55.7},{x:48.6,y:56.1},{x:48.8,y:56.6},{x:49,y:57},{x:49.2,y:57.5},{x:49.4,y:57.9},{x:49.6,y:58.4},{x:49.8,y:58.8},{x:50,y:59.3},{x:50.2,y:59.8},{x:50.4,y:60}],g=[{x:20.2,y:10},{x:20.4,y:10.2},{x:20.6,y:10.4},{x:20.8,y:10.6},{x:21,y:10.8},{x:21.2,y:11},{x:21.4,y:11.2},{x:21.6,y:11.4},{x:21.8,y:11.6},{x:22,y:11.8},{x:22.2,y:12},{x:22.4,y:12.2},{x:22.6,y:12.5},{x:22.8,y:12.7},{x:23,y:12.9},{x:23.2,y:13.1},{x:23.4,y:13.3},{x:23.6,y:13.5},{x:23.8,y:13.8},{x:24,y:14},{x:24.2,y:14.2},{x:24.4,y:14.5},{x:24.6,y:14.7},{x:24.8,y:14.9},{x:25,y:15.2},{x:25.2,y:15.4},{x:25.4,y:15.6},{x:25.6,y:15.9},{x:25.8,y:16.1},{x:26,y:16.3},{x:26.2,y:16.6},{x:26.4,y:16.8},{x:26.6,y:17.1},{x:26.8,y:17.3},{x:27,y:17.6},{x:27.2,y:17.8},{x:27.4,y:18.1},{x:27.6,y:18.4},{x:27.8,y:18.6},{x:28,y:18.9},{x:28.2,y:19.1},{x:28.4,y:19.4},{x:28.6,y:19.7},{x:28.8,y:19.9},{x:29,y:20.2},{x:29.2,y:20.5},{x:29.4,y:20.8},{x:29.6,y:21},{x:29.8,y:21.3},{x:30,y:21.6},{x:30.2,y:21.9},{x:30.4,y:22.1},{x:30.6,y:22.4},{x:30.8,y:22.7},{x:31,y:23},{x:31.2,y:23.6},{x:31.4,y:23.6},{x:31.6,y:23.9},{x:31.8,y:24.2},{x:32,y:24.5},{x:32.2,y:24.8},{x:32.4,y:25.1},{x:32.6,y:25.4},{x:32.8,y:25.7},{x:33,y:26},{x:33.2,y:26.3},{x:33.4,y:26.6},{x:33.6,y:26.9},{x:33.8,y:27.2},{x:34,y:27.5},{x:34.2,y:27.8},{x:34.4,y:28.1},{x:34.6,y:28.5},{x:34.8,y:28.8},{x:35,y:29.1},{x:35.2,y:29.4},{x:35.4,y:29.8},{x:35.6,y:30.1},{x:35.8,y:30.4},{x:36,y:30.7},{x:36.2,y:31.1},{x:36.4,y:31.4},{x:36.6,y:31.7},{x:36.8,y:32.1},{x:37,y:32.4},{x:37.2,y:32.8},{x:37.4,y:33.1},{x:37.6,y:33.4},{x:37.8,y:33.8},{x:38,y:34.1},{x:38.2,y:34.5},{x:38.4,y:34.8},{x:38.6,y:35.2},{x:38.8,y:35.5},{x:39,y:35.9},{x:39.2,y:36.3},{x:39.4,y:36.6},{x:39.6,y:37},{x:39.8,y:37.3},{x:40,y:37.7},{x:40.2,y:38.1},{x:40.4,y:38.4},{x:40.6,y:38.8},{x:40.8,y:39.2},{x:41,y:39.6},{x:41.2,y:39.9},{x:41.4,y:40.3},{x:41.6,y:40.7},{x:41.8,y:41.1},{x:42,y:41.5},{x:42.2,y:41.8},{x:42.4,y:42.2},{x:42.6,y:42.6},{x:42.8,y:43},{x:43,y:43.4},{x:43.2,y:43.8},{x:43.4,y:44.2},{x:43.6,y:44.6},{x:43.8,y:45},{x:44,y:45.4},{x:44.2,y:45.8},{x:44.4,y:46.2},{x:44.6,y:46.6},{x:44.8,y:47},{x:45,y:47.4},{x:45.2,y:47.8},{x:45.4,y:48.2},{x:45.6,y:48.6},{x:45.8,y:49},{x:46,y:49.5},{x:46.2,y:49.9},{x:46.4,y:50.3},{x:46.6,y:50.7},{x:46.8,y:51.1},{x:47,y:51.6},{x:47.2,y:52},{x:47.4,y:52.4},{x:47.6,y:52.8},{x:47.8,y:53.3},{x:48,y:53.7},{x:48.2,y:54.1},{x:48.4,y:54.6},{x:48.6,y:55},{x:48.8,y:55.5},{x:49,y:55.9},{x:49.2,y:56.3},{x:49.4,y:56.8},{x:49.6,y:57.2},{x:49.8,y:57.7},{x:50,y:58.1},{x:50.2,y:58.6},{x:50.4,y:59},{x:50.6,y:59.5},{x:50.8,y:60}],b=[{x:20.4,y:10},{x:20.6,y:10.2},{x:20.8,y:10.4},{x:21,y:10.6},{x:21.2,y:10.8},{x:21.4,y:11},{x:21.6,y:11.2},{x:21.8,y:11.4},{x:22,y:11.6},{x:22.2,y:11.8},{x:22.4,y:12},{x:22.6,y:12.2},{x:22.8,y:12.4},{x:23,y:12.6},{x:23.2,y:12.8},{x:23.4,y:13.1},{x:23.6,y:13.1},{x:23.8,y:13.5},{x:24,y:13.7},{x:24.2,y:13.9},{x:24.4,y:14.2},{x:24.6,y:14.4},{x:24.8,y:14.6},{x:25,y:14.9},{x:25.2,y:15.1},{x:25.4,y:15.3},{x:25.6,y:15.6},{x:25.8,y:15.8},{x:26,y:16},{x:26.2,y:16.3},{x:26.4,y:16.5},{x:26.6,y:16.8},{x:26.8,y:17},{x:27,y:17.2},{x:27.2,y:17.5},{x:27.4,y:17.7},{x:27.6,y:18},{x:27.8,y:18.3},{x:28,y:18.5},{x:28.2,y:18.8},{x:28.4,y:19},{x:28.6,y:19.3},{x:28.8,y:19.5},{x:29,y:19.8},{x:29.2,y:20.1},{x:29.4,y:20.3},{x:29.6,y:20.6},{x:29.8,y:20.9},{x:30,y:21.2},{x:30.2,y:21.4},{x:30.4,y:21.7},{x:30.6,y:22},{x:30.8,y:22.3},{x:31,y:22.5},{x:31.2,y:22.8},{x:31.4,y:23.1},{x:31.6,y:23.4},{x:31.8,y:23.7},{x:32,y:24},{x:32.2,y:24.3},{x:32.4,y:24.6},{x:32.6,y:24.9},{x:32.8,y:25.2},{x:33,y:25.5},{x:33.2,y:25.8},{x:33.4,y:26.1},{x:33.6,y:26.4},{x:33.8,y:26.7},{x:34,y:27},{x:34.2,y:27.3},{x:34.4,y:27.6},{x:34.6,y:27.9},{x:34.8,y:28.2},{x:35,y:28.5},{x:35.2,y:28.8},{x:35.4,y:29.2},{x:35.6,y:29.5},{x:35.8,y:29.8},{x:36,y:30.1},{x:36.2,y:30.5},{x:36.4,y:30.8},{x:36.6,y:31.1},{x:36.8,y:31.4},{x:37,y:31.8},{x:37.2,y:32.1},{x:37.4,y:32.4},{x:37.6,y:32.8},{x:37.8,y:33.1},{x:38,y:33.5},{x:38.2,y:33.8},{x:38.4,y:34.2},{x:38.6,y:34.5},{x:38.8,y:34.8},{x:39,y:35.2},{x:39.2,y:35.5},{x:39.4,y:35.9},{x:39.6,y:36.3},{x:39.8,y:36.6},{x:40,y:37},{x:40.2,y:37.3},{x:40.4,y:37.7},{x:40.6,y:38.1},{x:40.8,y:38.4},{x:41,y:38.8},{x:41.2,y:39.1},{x:41.4,y:39.5},{x:41.6,y:39.9},{x:41.8,y:40.3},{x:42,y:40.6},{x:42.2,y:41},{x:42.4,y:41.4},{x:42.6,y:41.8},{x:42.8,y:42.2},{x:43,y:42.5},{x:43.2,y:42.9},{x:43.4,y:43.3},{x:43.6,y:43.7},{x:43.8,y:44.1},{x:44,y:44.5},{x:44.2,y:44.9},{x:44.4,y:45.3},{x:44.6,y:45.7},{x:44.8,y:46.1},{x:45,y:46.5},{x:45.2,y:46.9},{x:45.4,y:47.3},{x:45.6,y:47.7},{x:45.8,y:48.1},{x:46,y:48.5},{x:46.2,y:48.9},{x:46.4,y:49.3},{x:46.6,y:49.7},{x:46.8,y:50.1},{x:47,y:50.5},{x:47.2,y:51},{x:47.4,y:51.4},{x:47.6,y:51.8},{x:47.8,y:52.2},{x:48,y:52.7},{x:48.2,y:53.1},{x:48.4,y:53.5},{x:48.6,y:53.9},{x:48.8,y:54.4},{x:49,y:54.8},{x:49.2,y:55.2},{x:49.4,y:55.7},{x:49.6,y:56.1},{x:49.8,y:56.6},{x:50,y:57},{x:50.2,y:57.4},{x:50.4,y:57.9},{x:50.6,y:58.3},{x:50.8,y:58.8},{x:51,y:59.2},{x:51.2,y:59.7},{x:51.4,y:60}],C=[{x:20.6,y:10},{x:20.8,y:10.2},{x:21,y:10.4},{x:21.2,y:10.6},{x:21.4,y:10.8},{x:21.6,y:11},{x:21.8,y:11.2},{x:22,y:11.4},{x:22.2,y:11.6},{x:22.4,y:11.8},{x:22.6,y:12},{x:22.8,y:12.2},{x:23,y:12.4},{x:23.2,y:12.6},{x:23.4,y:12.8},{x:23.6,y:13},{x:23.8,y:13.2},{x:24,y:13.5},{x:24.2,y:13.7},{x:24.4,y:13.9},{x:24.6,y:14.1},{x:24.8,y:14.3},{x:25,y:14.6},{x:25.2,y:14.8},{x:25.4,y:15},{x:25.6,y:15.2},{x:25.8,y:15.5},{x:26,y:15.7},{x:26.2,y:15.9},{x:26.4,y:16.2},{x:26.6,y:16.4},{x:26.8,y:16.7},{x:27,y:16.9},{x:27.2,y:17.1},{x:27.4,y:17.4},{x:27.6,y:17.6},{x:27.8,y:17.9},{x:28,y:18.1},{x:28.2,y:18.4},{x:28.4,y:18.6},{x:28.6,y:18.9},{x:28.8,y:19.2},{x:29,y:19.4},{x:29.2,y:19.7},{x:29.4,y:19.9},{x:29.6,y:20.2},{x:29.8,y:20.5},{x:30,y:20.7},{x:30.2,y:21},{x:30.4,y:21.3},{x:30.6,y:21.6},{x:30.8,y:21.8},{x:31,y:22.1},{x:31.2,y:22.4},{x:31.4,y:22.7},{x:31.6,y:22.9},{x:31.8,y:23.2},{x:32,y:23.5},{x:32.2,y:23.8},{x:32.4,y:24.1},{x:32.6,y:24.4},{x:32.8,y:24.7},{x:33,y:25},{x:33.2,y:25.2},{x:33.4,y:25.5},{x:33.6,y:25.8},{x:33.8,y:26.1},{x:34,y:26.4},{x:34.2,y:26.4},{x:34.4,y:27},{x:34.6,y:27.4},{x:34.8,y:27.7},{x:35,y:28},{x:35.2,y:28.3},{x:35.4,y:28.6},{x:35.6,y:28.9},{x:35.8,y:29.2},{x:36,y:29.5},{x:36.2,y:29.9},{x:36.4,y:30.2},{x:36.6,y:30.5},{x:36.8,y:30.8},{x:37,y:31.2},{x:37.2,y:31.5},{x:37.4,y:31.8},{x:37.6,y:32.1},{x:37.8,y:32.5},{x:38,y:32.8},{x:38.2,y:33.1},{x:38.4,y:33.5},{x:38.6,y:33.8},{x:38.8,y:34.2},{x:39,y:34.5},{x:39.2,y:34.8},{x:39.4,y:35.2},{x:39.6,y:35.5},{x:39.8,y:35.9},{x:40,y:36.2},{x:40.2,y:36.6},{x:40.4,y:36.9},{x:40.6,y:37.3},{x:40.8,y:37.7},{x:41,y:38},{x:41.2,y:38.4},{x:41.4,y:38.7},{x:41.6,y:39.1},{x:41.8,y:39.5},{x:42,y:39.8},{x:42.2,y:40.2},{x:42.4,y:40.6},{x:42.6,y:40.9},{x:42.8,y:41.3},{x:43,y:41.7},{x:43.2,y:42.1},{x:43.4,y:42.5},{x:43.6,y:42.8},{x:43.8,y:43.2},{x:44,y:43.6},{x:44.2,y:44},{x:44.4,y:44.4},{x:44.6,y:44.8},{x:44.8,y:45.1},{x:45,y:45.5},{x:45.2,y:45.9},{x:45.4,y:46.3},{x:45.6,y:46.7},{x:45.8,y:47.1},{x:46,y:47.5},{x:46.2,y:47.9},{x:46.4,y:48.3},{x:46.6,y:48.7},{x:46.8,y:49.1},{x:47,y:49.5},{x:47.2,y:50.5},{x:47.4,y:50.4},{x:47.6,y:50.8},{x:47.8,y:51.2},{x:48,y:51.6},{x:48.2,y:52},{x:48.4,y:52.5},{x:48.6,y:52.9},{x:48.8,y:53.3},{x:49,y:53.7},{x:49.2,y:54.1},{x:49.4,y:54.6},{x:49.6,y:55},{x:49.8,y:55.4},{x:50,y:55.9},{x:50.2,y:56.3},{x:50.4,y:56.7},{x:50.6,y:57.2},{x:50.8,y:57.6},{x:51,y:58.1},{x:51.2,y:58.5},{x:51.4,y:58.9},{x:51.6,y:59.4},{x:51.8,y:59.8},{x:52,y:60}],S=[{x:20.8,y:10},{x:21,y:10.2},{x:21.2,y:10.4},{x:21.4,y:10.6},{x:21.6,y:10.7},{x:21.8,y:10.9},{x:22,y:11.1},{x:22.2,y:11.3},{x:22.4,y:11.5},{x:22.6,y:11.7},{x:22.8,y:11.9},{x:23,y:12.1},{x:23.2,y:12.3},{x:23.4,y:12.6},{x:23.6,y:12.8},{x:23.8,y:13},{x:24,y:13.2},{x:24.2,y:13.4},{x:24.4,y:13.6},{x:24.6,y:13.8},{x:24.8,y:14.1},{x:25,y:14.3},{x:25.2,y:14.5},{x:25.4,y:14.7},{x:25.6,y:14.9},{x:25.8,y:15.2},{x:26,y:15.4},{x:26.2,y:15.6},{x:26.4,y:15.9},{x:26.6,y:16.1},{x:26.8,y:16.3},{x:27,y:16.6},{x:27.2,y:16.8},{x:27.4,y:17.1},{x:27.6,y:17.3},{x:27.8,y:17.5},{x:28,y:17.8},{x:28.2,y:18},{x:28.4,y:18.3},{x:28.6,y:18.5},{x:28.8,y:18.8},{x:29,y:19},{x:29.2,y:19.3},{x:29.4,y:19.5},{x:29.6,y:19.8},{x:29.8,y:20.1},{x:30,y:20.3},{x:30.2,y:20.6},{x:30.4,y:20.9},{x:30.6,y:21.1},{x:30.8,y:21.4},{x:31,y:21.7},{x:31.2,y:21.9},{x:31.4,y:22.2},{x:31.6,y:22.5},{x:31.8,y:22.8},{x:32,y:23},{x:32.2,y:23.3},{x:32.4,y:23.6},{x:32.6,y:23.9},{x:32.8,y:24.2},{x:33,y:24.5},{x:33.2,y:24.7},{x:33.4,y:25},{x:33.6,y:25.3},{x:33.8,y:25.6},{x:34,y:25.9},{x:34.2,y:26.2},{x:34.4,y:26.5},{x:34.6,y:26.8},{x:34.8,y:27.1},{x:35,y:27.4},{x:35.2,y:27.7},{x:35.4,y:28},{x:35.6,y:28.3},{x:35.8,y:28.6},{x:36,y:29},{x:36.2,y:29.3},{x:36.4,y:29.6},{x:36.6,y:29.9},{x:36.8,y:30.2},{x:37,y:30.5},{x:37.2,y:30.9},{x:37.4,y:31.2},{x:37.6,y:31.5},{x:37.8,y:31.8},{x:38,y:32.2},{x:38.2,y:32.5},{x:38.4,y:32.8},{x:38.6,y:33.2},{x:38.8,y:33.5},{x:39,y:33.8},{x:39.2,y:34.2},{x:39.4,y:34.5},{x:39.6,y:34.8},{x:39.8,y:35.2},{x:40,y:35.5},{x:40.2,y:35.9},{x:40.4,y:36.2},{x:40.6,y:36.6},{x:40.8,y:36.9},{x:41,y:37.3},{x:41.2,y:37.6},{x:41.4,y:38},{x:41.6,y:38.3},{x:41.8,y:38.7},{x:42,y:39.1},{x:42.2,y:39.4},{x:42.4,y:39.8},{x:42.6,y:40.1},{x:42.8,y:40.5},{x:43,y:40.9},{x:43.2,y:41.2},{x:43.4,y:41.6},{x:43.6,y:42},{x:43.8,y:42.4},{x:44,y:42.7},{x:44.2,y:43.1},{x:44.4,y:43.5},{x:44.6,y:43.9},{x:44.8,y:44.3},{x:45,y:44.6},{x:45.2,y:45},{x:45.4,y:45.4},{x:45.6,y:45.8},{x:45.8,y:46.2},{x:46,y:46.6},{x:46.2,y:47},{x:46.4,y:47.4},{x:46.6,y:47.8},{x:46.8,y:48.2},{x:47,y:48.6},{x:47.2,y:49},{x:47.4,y:49.4},{x:47.6,y:49.8},{x:47.8,y:50.2},{x:48,y:50.6},{x:48.2,y:51},{x:48.4,y:51.4},{x:48.6,y:51.8},{x:48.8,y:52.2},{x:49,y:52.7},{x:49.2,y:53.1},{x:49.4,y:53.5},{x:49.6,y:53.9},{x:49.8,y:54.3},{x:50,y:54.8},{x:50.2,y:55.2},{x:50.4,y:55.6},{x:50.6,y:56},{x:50.8,y:56.5},{x:51,y:56.9},{x:51.2,y:57.3},{x:51.4,y:57.8},{x:51.6,y:58.2},{x:51.8,y:58.7},{x:52,y:59.1},{x:52.2,y:59.5},{x:52.4,y:60}],w=[{x:21,y:10},{x:21.2,y:10.2},{x:21.4,y:10.3},{x:21.6,y:10.5},{x:21.8,y:10.7},{x:22,y:10.9},{x:22.2,y:11.1},{x:22.4,y:11.3},{x:22.6,y:11.5},{x:22.8,y:11.7},{x:23,y:11.9},{x:23.2,y:12.1},{x:23.4,y:12.3},{x:23.6,y:12.5},{x:23.8,y:12.7},{x:24,y:12.9},{x:24.2,y:13.1},{x:24.4,y:13.3},{x:24.6,y:13.6},{x:24.8,y:13.8},{x:25,y:14},{x:25.2,y:14.2},{x:25.4,y:14.4},{x:25.6,y:14.7},{x:25.8,y:14.9},{x:26,y:15.1},{x:26.2,y:15.3},{x:26.4,y:15.6},{x:26.6,y:15.8},{x:26.8,y:16},{x:27,y:16.2},{x:27.2,y:16.5},{x:27.4,y:16.7},{x:27.6,y:17},{x:27.8,y:17.2},{x:28,y:17.4},{x:28.2,y:17.7},{x:28.4,y:17.9},{x:28.6,y:18.2},{x:28.8,y:18.4},{x:29,y:18.7},{x:29.2,y:18.9},{x:29.4,y:19.2},{x:29.6,y:19.4},{x:29.8,y:19.7},{x:30,y:19.9},{x:30.2,y:20.2},{x:30.4,y:20.4},{x:30.6,y:20.7},{x:30.8,y:21},{x:31,y:21.2},{x:31.2,y:21.5},{x:31.4,y:21.8},{x:31.6,y:22},{x:31.8,y:22.3},{x:32,y:22.6},{x:32.2,y:22.9},{x:32.4,y:23.1},{x:32.6,y:23.4},{x:32.8,y:23.7},{x:33,y:24},{x:33.2,y:24.3},{x:33.4,y:24.5},{x:33.6,y:24.8},{x:33.8,y:25.1},{x:34,y:25.4},{x:34.2,y:25.7},{x:34.4,y:26},{x:34.6,y:26.3},{x:34.8,y:26.6},{x:35,y:26.9},{x:35.2,y:27.2},{x:35.4,y:27.5},{x:35.6,y:27.8},{x:35.8,y:28.1},{x:36,y:28.4},{x:36.2,y:28.7},{x:36.4,y:29},{x:36.6,y:29.3},{x:36.8,y:29.6},{x:37,y:29.9},{x:37.2,y:30.2},{x:37.4,y:30.6},{x:37.6,y:30.9},{x:37.8,y:31.2},{x:38,y:31.5},{x:38.2,y:31.8},{x:38.4,y:32.2},{x:38.6,y:32.5},{x:38.8,y:32.8},{x:39,y:33.2},{x:39.2,y:33.5},{x:39.4,y:33.8},{x:39.6,y:34.2},{x:39.8,y:34.5},{x:40,y:34.8},{x:40.2,y:35.2},{x:40.4,y:35.5},{x:40.6,y:35.8},{x:40.8,y:36.2},{x:41,y:36.5},{x:41.2,y:36.9},{x:41.4,y:37.2},{x:41.6,y:37.6},{x:41.8,y:37.9},{x:42,y:38.3},{x:42.2,y:38.6},{x:42.4,y:39},{x:42.6,y:39.3},{x:42.8,y:39.7},{x:43,y:40.1},{x:43.2,y:40.4},{x:43.4,y:40.8},{x:43.6,y:41.2},{x:43.8,y:41.5},{x:44,y:41.9},{x:44.2,y:42.3},{x:44.4,y:42.6},{x:44.6,y:43},{x:44.8,y:43.4},{x:45,y:43.8},{x:45.2,y:44.1},{x:45.4,y:44.5},{x:45.6,y:44.9},{x:45.8,y:45.3},{x:46,y:45.7},{x:46.2,y:46.1},{x:46.4,y:46.4},{x:46.6,y:46.8},{x:46.8,y:47.2},{x:47,y:47.6},{x:47.2,y:48},{x:47.4,y:48.4},{x:47.6,y:48.8},{x:47.8,y:49.2},{x:48,y:49.6},{x:48.2,y:50},{x:48.4,y:50.4},{x:48.6,y:50.8},{x:48.8,y:51.2},{x:49,y:51.6},{x:49.2,y:52},{x:49.4,y:52.4},{x:49.6,y:52.9},{x:49.8,y:53.3},{x:50,y:53.7},{x:50.2,y:54.1},{x:50.4,y:54.5},{x:50.6,y:54.9},{x:50.8,y:55.4},{x:51,y:55.8},{x:51.2,y:56.2},{x:51.4,y:56.6},{x:51.6,y:57.1},{x:51.8,y:57.5},{x:52,y:57.9},{x:52.2,y:58.4},{x:52.4,y:58.8},{x:52.6,y:59.2},{x:52.8,y:59.7}];if(y>=0){var D;"0"==(D=1*o)?F=i:"0.5"==D?F=u:"1"==D?F=m:"1.5"==D?F=c:"2"==D?F=h:"2.5"==D?F=p:"3"==D?F=f:"3.5"==D?F=d:"4"==D?F=g:"4.5"==D?F=b:"5"==D?F=C:"5.5"==D?F=S:D>="6"&&(F=w);V=-1;for(s=0;s<F.length;s++){if(1*F[0].x>x){V=1;break}if(1*F[s].x>x){V=s;break}if(1*F[F.length-1].x<x){V=F.length-1;break}if(x==F[s].x){n=e.GetDataOddIncreaseEvenDecrease(F[s].y,-1);break}}if(-1!=V){E=F[V-1].x,N=F[V-1].y,v=F[V].x,A=F[V].y;x>=46.8&&0==D||x>=47.4&&.5==D||x>=47.8&&1==D||x>=48.4&&1.5==D||x>=48.8&&2==D||x>=49.4&&2.5==D||x>=49.8&&3==D||x>=50.4&&3.5==D||x>=50.8&&4==D||x>=51.4&&4.5==D||x>=52&&5==D||x>=52.4&&5.5==D?n=">60.0":((n=e.GetDataOddIncreaseEvenDecrease(e.InterpolationMethod_y(E,v,N,A,x),-1))>60&&(n=">60.0"),n<10&&(n="<10.0"))}}}return n}},FormulaUtils={initFormulas:(e,l)=>{FormulaUtils.allCusFormulas.forEach(t=>{const a=FormulaUtils.initForFun(e,l,t.funName,t.funDesc,t.funCallback,t.funDefaultVal,t.funMinArgs,t.funMaxArgs,t.funParams,t.isContext,t.isAcceptArea,t.isContainNullUndefinedVal);e.Spread.CalcEngine.Functions.defineGlobalCustomFunction(t.funName,new a)})},initForFun:(e,l,t,a,n,y=0,o=1,x=1e3,r=[],s=!0,i=!0,u=!1)=>{const m=function(){this.name=t,this.minArgs=o,this.maxArgs=x};return(m.prototype=new e.Spread.CalcEngine.Functions.Function(t,o,x)).description=function(){return{description:a,parameters:r}},m.prototype.isContextSensitive=function(){return s},m.prototype.acceptsReference=function(){return i},m.prototype.evaluate=function(){let e,t;s&&(e=arguments[0].source.getSheet(),t=e.getSpan(arguments[0].row,arguments[0].column),null!=t&&null!=t||(t={row:arguments[0].row,col:arguments[0].column,rowCount:1,colCount:1}));let a=[],o=[];if(i&&arguments.length>1){const e=arguments[0].source.getSheet();for(let l=1;l<arguments.length;l++){const t=arguments[l];if(null!=t.$gt&&null!=t.$gt&&t.$gt.length>0){let l=[],a=e.getSpans(t.$gt[0]);if(a.length>0)a.forEach(t=>{l.push(e.getValue(t.row,t.col))});else{e.getArray(t.$gt[0].row,t.$gt[0].col,t.$gt[0].rowCount,t.$gt[0].colCount).forEach(e=>{e.forEach(e=>{l.push(e)})})}o.push(l)}else o.push(t)}}let x=arguments.length;for(let l=1;l<x;l++){const t=arguments[l];if("string"==typeof t||"number"==typeof t)a.push(t);else{e=t.getSource().getSheet();const l=t.getRow(),n=t.getColumn(),y=t.getRowCount(),o=t.getColumnCount();e.getArray(l,n,y,o).forEach(e=>{e.forEach(e=>{(u||null!=e&&null!=e)&&a.push(e)})})}}function r(e){if(null===e||"object"!=typeof e)return!1;const l=Object.getPrototypeOf(e);return(null===l||l===Object.prototype)&&e.constructor===Object}if(0==a.length&&null!=y&&null!=a&&(a=[y]),null!=a&&null!=a&&a.length>0)for(var m=0;m<a.length;m++){let e=a[m];null!=e&&null!=e&&r(e)&&e.hasOwnProperty("con")&&e.hasOwnProperty("val")&&(a[m]=e.val)}if(null!=o&&null!=o&&o.length>0)for(m=0;m<o.length;m++){let e=o[m];if(null!=e&&null!=e&&e.length>0)for(var c=0;c<e.length;c++){let l=e[c];null!=l&&null!=l&&r(l)&&l.hasOwnProperty("con")&&l.hasOwnProperty("val")&&(o[m][c]=l.val)}}return n(l,e,{arguments:arguments,cellObj:t,allCellVals:a,allCellValsEw:o})},m},commFun:{getForRangeCellsValArr:e=>{let l=[];if(e.length>1){const t=e[0].source.getSheet();for(let a=1;a<e.length;a++){const n=e[a];let y=t.getArray(n.$gt[0].row,n.$gt[0].col,n.$gt[0].rowCount,n.$gt[0].colCount);l.push(y)}}return l},isNumber:e=>/^(-?\d+)(\.\d+)?$/.test(e),convertToInt:e=>{let l=[];return e.forEach((e,t)=>{l.push(Number(e))}),l},getMax:e=>0==e.length?"":Math.max(...e),getMin:e=>0==e.length?"":Math.min(...e),getAverage:e=>{if(0==e.length)return"";let l=[];e.forEach(e=>{l.push(math__namespace.bignumber(e))});return math__namespace.mean(l).toNumber()},getNum:e=>{let l,t;const a=/[×φ*]/g;try{let n;t=e.split(a),"φ"==e.substring(0,1)?(n=t[1]-0,l=Math.PI*n*n/4):(l=t[0]-0,n=t[1]-0,l*=n)}catch(e){return 0}return l},getRound:(e,l)=>{const t=e<0;if(t&&(e=Math.abs(e)),0==l){let l=e.toString();if(-1==l.indexOf("."))return t?-e:e;let a=parseInt(l.split(".")[0]),n=l.split(".")[1];return parseFloat(`0.${n}`)>=.5?t?-(a+1):a+1:t?-a:a}let a=rapidUtils.preciseCalc(1,l,"div"),n=rapidUtils.preciseCalc(e,a,"mul");const y=rapidUtils.preciseCalc((e=>{let l=e.toString();if(-1==l.indexOf("."))return e;let t=parseInt(l.split(".")[0]),a=l.split(".")[1],n=parseInt(a.substring(0,1));return n>=6?t+1:n<=4?t:5==n&&1==a.length?t%2!=0?t+1:t:5==n&&a.length>1?t+1:e})(n),a,"div");let o=l+"";if(-1==o.indexOf("."))return t?-y:y;{const e=y+"";let l="";if(-1==e.indexOf(".")){let e="";for(let l=0;l<o.split(".")[1].length;l++)e+="0";return(t?"-":"")+`${y}.${e}`}{const a=e.split(".")[1];if(o.split(".")[1].length>a.length)for(let e=0;e<o.split(".")[1].length-a.length;e++)l+="0";return(t?"-":"")+`${y}${l}`}}},InterpolationMethod_y:(e,l,t,a,n)=>{let y=(n-e)*(t-a)/(e-l)+1*t;return isNaN(y)?"/":y},GetDataOddIncreaseEvenDecrease:(e,l)=>{let t,a,n,y;if(-1!=e.toString().indexOf("00000000")&&(e=e.toString().substring(0,e.toString().indexOf("00000000")+2)),-1!=e.toString().indexOf("999999")){let t=l;t<0&&(t=Math.abs(t-1)),e=parseFloat(e).toFixed(t)}if(l*=1,t=1,n=e*=1,1*Math.floor(e)==1*e)switch(l){case-7:y=e+".000000000";break;case-6:y=e+".00000000";break;case-5:y=e+".0000000";break;case-4:y=e+".000000";break;case-3:y=e+".00000";break;case-2:y=e+".0000";break;case-1:y=e+".000";break;case 1:y=e+".00";break;case 2:y=e+".0";break;case 3:y=e}else switch(l){case-7:y=(1*e).toFixed(9);break;case-6:y=(1*e).toFixed(8);break;case-5:y=(1*e).toFixed(7);break;case-4:y=(1*e).toFixed(6);break;case-3:y=(1*e).toFixed(5);break;case-2:y=(1*e).toFixed(4);break;case-1:y=(1*e).toFixed(3);break;case 1:y=(1*e).toFixed(2);break;case 2:y=(1*e).toFixed(1);break;case 3:y=1*e}if(1*y>1*n)switch(l){case-7:y=(y-1e-8).toFixed(9);break;case-6:y=(y-1e-8).toFixed(8);break;case-5:y=(y-1e-7).toFixed(7);break;case-4:y=(y-1e-6).toFixed(6);break;case-3:y=(y-1e-5).toFixed(5);break;case-2:y=(y-1e-4).toFixed(4);break;case-1:y=(y-.001).toFixed(3);break;case 1:y=(y-.01).toFixed(2);break;case 2:y=(y-.1).toFixed(1);break;case 3:y=(y-1).toFixed(0)}if(n=y+"1",y=n.substr(0,n.length-1),3==l||-1==l||-2==l||-3==l||-4==l||-5==l||-6==l||-7==l)if(50==y.substr(y.length-2,2))if(y.substr(y.length-3,1)%2==0)a=y.substr(0,y.length-2),-1!=e.toString().indexOf(y)&&1*e-1*y>0&&(a=e);else switch(a=y.substr(0,y.length-2),(a<0||"-"==a.replace("0",""))&&(t=-1),l){case-7:a=1*a+1e-7*t;break;case-6:a=1*a+1e-6*t;break;case-5:a=1*a+1e-5*t;break;case-4:a=1*a+1e-4*t;break;case-3:a=1*a+.001*t;break;case-2:a=1*a+.01*t;break;case-1:a=1*a+.1*t;break;default:a=1*a*100+100*t}else if(y.substr(y.length-2,2)<50){if(a=y.substr(0,y.length-2),3===l)a=1*a*100}else if(y.substr(y.length-2,2)>50||y<e)switch(a=y.substr(0,y.length-2),(a<0||"-"==a.replace("0",""))&&(t=-1),l){case-7:a=1*a+1e-7*t;break;case-6:a=1*a+1e-6*t;break;case-5:a=1*a+1e-5*t;break;case-4:a=1*a+1e-4*t;break;case-3:a=1*a+.001*t;break;case-2:a=1*a+.01*t;break;case-1:a=1*a+.1*t;break;default:a=1*a*100+100*t}switch(1==l&&(50==y.substr(y.length-2,2)?y.substr(y.length-4,1)%2==0?a=y.substr(0,y.length-3):(a=y.substr(0,y.length-3),(a<0||"-"==a.replace("0",""))&&(t=-1),a=1*a+1*t):y.substr(y.length-2,2)<50?a=y.substr(0,y.length-3):(y.substr(y.length-2,2)>50||1*y<e)&&(a=y.substr(0,y.length-3),(a<0||"-"==a.replace("0",""))&&(t=-1),a=1*a+1*t)),2==l&&(5==y.substr(y.length-3,3)&&1*y==e?y.substr(y.length-4,1)%2==0?a=10*y.substr(0,y.length-3):(a=y.substr(0,y.length-3),(a<0||"-"==a.replace("0",""))&&(t=-1),a=10*a+10*t):y.substr(y.length-3,3)<5?a=10*y.substr(0,y.length-3):(y.substr(y.length-3,3)>5||1*y<e)&&(a=y.substr(0,y.length-3),(a<0||"-"==a.replace("0",""))&&(t=-1),a=10*a+10*t)),l){case-7:n=(1*a).toFixed(7);break;case-6:n=(1*a).toFixed(6);break;case-5:n=(1*a).toFixed(5);break;case-4:n=(1*a).toFixed(4);break;case-3:n=(1*a).toFixed(3);break;case-2:n=(1*a).toFixed(2);break;case-1:n=(1*a).toFixed(1);break;default:n=(1*a).toFixed(0)}return isNaN(n)&&(n="/"),n},GetS:e=>{let l,t=0,a=e.length,n=0,y=0;for(let l=0;l<a;l++)t+=1*e[l];n=t/a;for(let l=0;l<a;l++)y+=(e[l]-n)*(e[l]-n);return l=Math.sqrt(y/(a-1)),isNaN(1*l)&&(l=""),l}},allCusFormulas:[{funName:"ZERO",funDesc:"将单元格值为空或/返回默认值0",funDefaultVal:null,funCallback:(e,l,t)=>{let a;return t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&(a=t.allCellValsEw[0][0]),t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&("/"==t.allCellValsEw[0][0]||null==t.allCellValsEw[0][0]||null!=t.allCellValsEw[0][0]._error&&null!=t.allCellValsEw[0][0]._error||"string"==typeof t.allCellValsEw[0][0]&&0==t.allCellValsEw[0][0].trim().length)?0:a}},{funName:"ONE",funDesc:"将单元格值为空或/返回默认值1",funDefaultVal:null,funCallback:(e,l,t)=>{let a;return t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&(a=t.allCellValsEw[0][0]),t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&("/"==t.allCellValsEw[0][0]||null==t.allCellValsEw[0][0]||"string"==typeof t.allCellValsEw[0][0]&&0==t.allCellValsEw[0][0].trim().length)?1:1==t.allCellVals.length&&0!=t.allCellVals[0]&&1==t.allCellValsEw.length&&0!=t.allCellValsEw[0]?t.allCellVals[0]:a}},{funName:"SLASH",funDesc:"将单元格值为空或0(包括0.0、0.00等)返回默认值/",funDefaultVal:null,funCallback:(e,l,t)=>{let a;return t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&(a=t.allCellValsEw[0][0]),1==t.allCellVals.length&&0==t.allCellVals[0]&&1==t.allCellValsEw.length&&0==t.allCellValsEw[0]?"/":1==t.allCellVals.length&&0!=t.allCellVals[0]&&1==t.allCellValsEw.length&&0!=t.allCellValsEw[0]?t.allCellVals[0]:t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&(0==t.allCellValsEw[0][0]||"0.0"==t.allCellValsEw[0][0]||"0.00"==t.allCellValsEw[0][0]||"0.000"==t.allCellValsEw[0][0]||"0.0000"==t.allCellValsEw[0][0]||null==t.allCellValsEw[0][0]||"string"==typeof t.allCellValsEw[0][0]&&0==t.allCellValsEw[0][0].trim().length)?"/":a}},{funName:"YJMAX",funDesc:"返回一组数值中的最大值",funDefaultVal:null,funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e));let n=FormulaUtils.commFun.convertToInt(t.allCellVals);return 0==n.length?"/":Math.max(...n)}},{funName:"YJMIN",funDesc:"返回一组数值中的最小值",funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e));let n=FormulaUtils.commFun.convertToInt(t.allCellVals);return 0==n.length?"/":Math.min(...n)}},{funName:"YJSUM",funDesc:"计算单元格区域中所有数值的和",funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e));let n=FormulaUtils.commFun.convertToInt(t.allCellVals);return 0==n.length?"/":n.reduce((e,l)=>e+l,0)}},{funName:"YJCOUNT",funDesc:"计算区域中包含数字的单元格的个数",funDefaultVal:null,funCallback:(e,l,t)=>{let a=!1;return t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),a?(t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e)),t.allCellVals.length):"/"}},{funName:"YjMid",funDesc:"获取所有选择的单元格中的中间值",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e)),t.allCellVals.length<3)return 0;let a=FormulaUtils.commFun.convertToInt(t.allCellVals);const n=Math.max(...a),y=Math.min(...a);return 1*a[0]+1*a[1]+1*a[2]-1*n-1*y}},{funName:"YJAVERAGE",funDesc:"计算平均值",funDefaultVal:null,funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e));let n=FormulaUtils.commFun.convertToInt(t.allCellVals);return 0==n.length?"/":FormulaUtils.commFun.getAverage(n)}},{funName:"YJRESULTPD",funDesc:"报告上根据技术要求判定",funDefaultVal:null,funParams:[{name:"技术要求",repeatable:!1,optional:!1},{name:"试验结果",repeatable:!1,optional:!1}],funCallback:(spread,sheet,retData)=>{let symbol="/";if(retData.allCellVals.length<2)return symbol;if(null!=retData.allCellVals[0]._error&&null!=retData.allCellVals[0]._error)return symbol;let jsyq=retData.allCellVals[0]+"",syjglist=[];retData.allCellVals.forEach((e,l)=>{l>0&&("/"==e||null==e||null!=e._error&&null!=e._error||syjglist.push(e))});let kk="合格";if(jsyq==symbol||"/"==jsyq||""==jsyq||syjglist.some(e=>"无效"==e)||0==syjglist.length)return symbol;for(let i=0;i<syjglist.length;i++){let k1=syjglist[i];if(-1!=jsyq.indexOf("<")||-1!=jsyq.indexOf(">")||-1!=jsyq.indexOf("<")||-1!=jsyq.indexOf(">"))if(jsyq=jsyq.replace("<","<"),jsyq=jsyq.replace(">",">"),-1!=jsyq.indexOf(",")){let e,l;-1!=jsyq.indexOf(",")&&(e=jsyq.split(",")[0],l=jsyq.split(",")[1],-1==e.indexOf(">")&&-1==e.indexOf("<")||(e=jsyq.split(",")[0].replace(">",""),l=jsyq.split(",")[1].replace("<","")),kk=1*k1>1*e&&k1<1*l?"合格":"不合格")}else kk=eval(k1+jsyq)?"合格":"不合格";else if(-1!=jsyq.indexOf("≥")||-1!=jsyq.indexOf("不小于")||-1!=jsyq.indexOf("≮"))if(-1!=jsyq.indexOf(",")){let e,l;-1!=jsyq.indexOf(",")&&(e=jsyq.split(",")[0],l=jsyq.split(",")[1],-1==e.indexOf("≥")&&-1==e.indexOf("≤")||(e=jsyq.split(",")[0].replace("≥",""),l=jsyq.split(",")[1].replace("≤","")),kk=1*k1>=1*e&&k1<=1*l?"合格":"不合格")}else{let e=1*jsyq.replace("≥","").replace("不小于","").replace("≮","");FormulaUtils.commFun.isNumber(k1)?kk=k1>e||k1==e?"合格":"不合格":-1!=k1.indexOf("大于")?kk=k1.replace("大于","")==jsyq.replace("≮","")?"合格":"不合格":-1!=k1.indexOf("不足")?kk="不合格":-1!=k1.indexOf("+")&&(kk=k1.replace("+","")>=e?"合格":"不合格")}else if(-1!=jsyq.indexOf("≤")||-1!=jsyq.indexOf("不大于")||-1!=jsyq.indexOf("≯")){let e=1*jsyq.replace("≤","").replace("不大于","").replace("≯","");kk=k1<e||k1==e?"合格":"不合格"}else if(-1!=jsyq.indexOf("≠")){let e=1*jsyq.replace("≠","");kk=k1!=e?"合格":"不合格"}else if(-1!=jsyq.indexOf("~")||-1!=jsyq.indexOf(",")||-1!=jsyq.indexOf("~")){let e,l;-1!=jsyq.indexOf("~")?(e=jsyq.split("~")[0],l=jsyq.split("~")[1]):-1!=jsyq.indexOf("~")?-1!=jsyq.split("~")[0].indexOf("+")?(e=jsyq.split("~")[1],l=jsyq.split("~")[0],-1!=k1.toString().indexOf("+")?kk=1*k1<=l?"合格":"不合格":-1!=k1.indexOf("-")&&(kk=1*k1>=e?"合格":"不合格")):(e=jsyq.split("~")[0],l=jsyq.split("~")[1]):-1!=jsyq.indexOf(",")&&(-1!=jsyq.split(",")[0].indexOf("+")?(e=jsyq.split(",")[1],l=jsyq.split(",")[0],-1!=k1.toString().indexOf("+")?kk=1*k1<=l?"合格":"不合格":-1!=k1.toString().indexOf("-")&&(kk=1*k1>=e?"合格":"不合格")):(e=jsyq.split(",")[0],l=jsyq.split(",")[1])),kk=1*k1>=1*e&&k1<=1*l?"合格":"不合格"}else if(-1!=jsyq.indexOf("±")){let e=jsyq.split("±")[0],l=jsyq.split("±")[1],t=1*e-1*l,a=1*e+1*l;kk=k1>=t&&k1<=a?"合格":"不合格"}else FormulaUtils.commFun.isNumber(jsyq)&&(jsyq*=1),kk=k1>=jsyq?"合格":"不合格";if("不合格"==kk)return"不合格"}return kk}},{funName:"YJROUND",funDesc:"计算常规修约",funDefaultVal:null,funParams:[{name:"数值",repeatable:!1,optional:!1},{name:"修约精度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"/";if("string"==typeof t.allCellVals[0]&&(0==t.allCellVals[0].trim().length||"/"==t.allCellVals[0].trim()))return"/";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1]))return t.allCellVals[0];let a=t.allCellVals[1],n=Number(t.allCellVals[0]);return n=Number(n.toFixed(8)),FormulaUtils.commFun.getRound(n,a)}},{funName:"YjGetNum",funDesc:"根据试件尺寸计算面积",funDefaultVal:null,funParams:[{name:"cellContent",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>t.allCellVals.length<1?"/":"string"!=typeof t.allCellVals[0]||0!=t.allCellVals[0].trim().length&&"/"!=t.allCellVals[0].trim()?FormulaUtils.commFun.getNum(t.allCellVals[0]):"/"},{funName:"YjGetS",funDesc:"计算标准差",funDefaultVal:null,funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";if(t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e)),t.allCellVals.length<1)return"/";let n=FormulaUtils.commFun.convertToInt(t.allCellVals),y=0,o=n.length,x=0,r=0;for(let e=0;e<o;e++)y+=1*n[e];x=y/o;for(let e=0;e<o;e++)r+=(n[e]-x)*(n[e]-x);const s=Math.sqrt(r/(o-1));return isNaN(1*s)?"":s}},{funName:"YjGetCv",funDesc:"计算变异系数Cv",funDefaultVal:null,funCallback:(e,l,t)=>{if(t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e)),t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=0,y=a.length,o=0,x=0;for(let e=0;e<y;e++)n+=1*a[e];o=n/y;for(let e=0;e<y;e++)x+=(a[e]-o)*(a[e]-o);const r=100*Math.sqrt(x/(y-1))/o;return r||""}},{funName:"YjInterpolationMethod",funDesc:"直线内插法(已知y求x)",funDefaultVal:null,funParams:[{name:"cellContentX1",repeatable:!1,optional:!1},{name:"cellContentX2",repeatable:!1,optional:!1},{name:"cellContentY1",repeatable:!1,optional:!1},{name:"cellContentY2",repeatable:!1,optional:!1},{name:"cellContentY",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<5)return"/";const a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3],x=(t.allCellVals[4]-y)*(n-a)/(o-y)+1*a;return FormulaUtils.commFun.isNumber(x)?x:"/"}},{funName:"YjInterpolationMethod_Y",funDesc:"直线内插法(已知x求y)",funDefaultVal:null,funParams:[{name:"cellContentX1",repeatable:!1,optional:!1},{name:"cellContentX2",repeatable:!1,optional:!1},{name:"cellContentY1",repeatable:!1,optional:!1},{name:"cellContentY2",repeatable:!1,optional:!1},{name:"cellContentX",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<5)return"/";const a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3],x=(t.allCellVals[4]-a)*(y-o)/(a-n)+1*y;return FormulaUtils.commFun.isNumber(x)?x:"/"}},{funName:"YJROUNDYX",funDesc:"计算有效数字修约",funDefaultVal:null,funParams:[{name:"数值",repeatable:!1,optional:!1},{name:"修约位数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"/";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1]))return"/";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=Math.floor(a[1]);if(n<=0||0==a[0])return a[0];const y=a[0].toPrecision(n);if(y.indexOf("e")>-1){const e=Number(y);return String(e).length>n?String(e).substring(0,n):e}return y}},{funName:"YJDZ",funDesc:"按照单元格点选顺序,优先提取最后一个有数据的单元格值",funDefaultVal:null,funCallback:(e,l,t)=>{let a=[];return t.allCellVals.forEach(e=>{null!=e&&null!=e&&"/"!=e&&(null==e._error||null==e._error)&&(e+"").trim().length>0&&a.push(e)}),0==a.length?"/":a[a.length-1]}},{funName:"YJTKY",funDesc:"混凝土抗压强度",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1},{name:"超差值,如:0.15",repeatable:!1,optional:!1},{name:"试验名称,如:混凝土抗压",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<5)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1])||!FormulaUtils.commFun.isNumber(t.allCellVals[2]))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[0],t.allCellVals[1],t.allCellVals[2]]),n=Number(a[0]),y=Number(a[1]),o=Number(a[2]),x=Number(t.allCellVals[3]);t.allCellVals[4],x*=1;let r=FormulaUtils.commFun.getAverage(a),s=1*FormulaUtils.commFun.getMax(a),i=1*FormulaUtils.commFun.getMin(a),u=1*n+1*y+1*o-1*s-1*i;return Math.abs(s-u)>u*x&&Math.abs(i-u)>u*x?(r="无效",r):((Math.abs(s-u)>u*x||Math.abs(i-u)>u*x)&&(r=u),r)}},{funName:"YJJSKZ",funDesc:"水泥胶砂抗折",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1},{name:"超差值,如:0.1",repeatable:!1,optional:!1},{name:"试验名称,如:水泥胶砂抗折",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<5)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1])||!FormulaUtils.commFun.isNumber(t.allCellVals[2]))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[0],t.allCellVals[1],t.allCellVals[2]]),n=Number(a[0]),y=Number(a[1]),o=Number(a[2]),x=Number(t.allCellVals[3]);t.allCellVals[4],x*=1;let r=[n,y,o],s=new Array;r.sort(function(e,l){return e-l});let i=FormulaUtils.commFun.getAverage(r);for(let e=0;e<r.length;e++)s[e]=Math.abs(r[e]-i),s.sort(function(e,l){return e-l});if(r.length>2){let e=FormulaUtils.commFun.getMax(s)/i,l=FormulaUtils.commFun.getMin(s)/i,t=s[1]/i;if(e<=x);else{if(Math.abs(e)>x&&Math.abs(l)>x&&Math.abs(t)>x)return i="作废",i;if(r[2]>i+x*i&&r[0]<i-x*i)i=r[1];else{let e=FormulaUtils.commFun.getMin(r),l=FormulaUtils.commFun.getAverage(r);i=e<l-.1*l?FormulaUtils.commFun.getAverage([r[1],r[2]]):FormulaUtils.commFun.getAverage([r[0],r[1]])}}}return i}},{funName:"YJJSKY",funDesc:"水泥胶砂抗压",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1},{name:"数值4",repeatable:!1,optional:!1},{name:"数值5",repeatable:!1,optional:!1},{name:"数值6",repeatable:!1,optional:!1},{name:"超差值,如:0.1",repeatable:!1,optional:!1},{name:"试验名称,如:水泥胶砂抗压",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<8)return"";if(!(FormulaUtils.commFun.isNumber(t.allCellVals[0])&&FormulaUtils.commFun.isNumber(t.allCellVals[1])&&FormulaUtils.commFun.isNumber(t.allCellVals[2])&&FormulaUtils.commFun.isNumber(t.allCellVals[3])&&FormulaUtils.commFun.isNumber(t.allCellVals[4])&&FormulaUtils.commFun.isNumber(t.allCellVals[5])))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[0],t.allCellVals[1],t.allCellVals[2],t.allCellVals[3],t.allCellVals[4],t.allCellVals[5]]),n=Number(a[0]),y=Number(a[1]),o=Number(a[2]),x=Number(a[3]),r=Number(a[4]),s=Number(a[5]),i=Number(t.allCellVals[6]);t.allCellVals[7],i*=1;let u=[n,y,o,x,r,s],m=new Array,c=new Array,h=new Array,p=new Array,f=0;u.sort(function(e,l){return e-l});let d,g=FormulaUtils.commFun.getAverage(u),b=0;m[0]=Math.abs(u[0]-g),m[1]=Math.abs(u[1]-g),m[2]=Math.abs(u[2]-g),m[3]=Math.abs(u[3]-g),m[4]=Math.abs(u[4]-g),m[5]=Math.abs(u[5]-g),p[0]=Math.abs(u[0]-g)/g,p[1]=Math.abs(u[1]-g)/g,p[2]=Math.abs(u[2]-g)/g,p[3]=Math.abs(u[3]-g)/g,p[4]=Math.abs(u[4]-g)/g,p[5]=Math.abs(u[5]-g)/g;for(let e=0;e<6;e++)p[e]>i&&f++;if(u.length>5){let e=FormulaUtils.commFun.getMax(m),l=FormulaUtils.commFun.getMin(m);if(e/g<=i&&l/g<=i)d=g;else if(f>=2)d="作废";else{for(let l=0;l<6;l++)e!=m[l]&&(c[b]=u[l],b++);g=FormulaUtils.commFun.getAverage(c),h[0]=Math.abs(c[0]-g),h[1]=Math.abs(c[1]-g),h[2]=Math.abs(c[2]-g),h[3]=Math.abs(c[3]-g),h[4]=Math.abs(c[4]-g);let l=FormulaUtils.commFun.getMax(h)/g,t=FormulaUtils.commFun.getMin(c),a=FormulaUtils.commFun.getMax(c),n=FormulaUtils.commFun.getAverage(c);if(a>n+n*i||t<n-n*i)return d="作废",d;l<=i&&(d=g)}}return d}},{funName:"YJTN",funDesc:"ta/√n()查表",funDefaultVal:null,funParams:[{name:"保证率",repeatable:!1,optional:!1},{name:"检测点数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1]))return"";let a=100*t.allCellVals[0]+"",n=Number(t.allCellVals[1]),y=new Array,o=0;if(n>100)"99"==a?o=2.3265/Math.sqrt(n):"95"==a?o=1.6449/Math.sqrt(n):"90"==a&&(o=1.2815/Math.sqrt(n));else{"99"==a?y=new Array("2-22.501","3-4.021","4-2.270","5-1.676","6-1.374","7-1.188","8-1.060","9-0.966","10-0.892","11-0.833","12-0.785","13-0.744","14-0.708","15-0.678","16-0.651","17-0.626","18-0.605","19-0.586","20-0.568","21-0.552","22-0.537","23-0.523","24-0.510","25-0.498","26-0.487","27-0.477","28-0.467","29-0.458","30-0.449","40-0.383","50-0.340","60-0.308","70-0.285","80-0.266","90-0.249","100-0.236"):"95"==a?y=new Array("2-4.465","3-1.686","4-1.177","5-0.953","6-0.823","7-0.734","8-0.670","9-0.620","10-0.580","11-0.546","12-0.518","13-0.494","14-0.473","15-0.455","16-0.438","17-0.423","18-0.410","19-0.398","20-0.387","21-0.376","22-0.367","23-0.358","24-0.350","25-0.342","26-0.335","27-0.328","28-0.322","29-0.316","30-0.310","40-0.266","50-0.237","60-0.216","70-0.199","80-0.186","90-0.175","100-0.166"):"90"==a&&(y=new Array("2-2.176","3-1.089","4-0.819","5-0.686","6-0.603","7-0.544","8-0.500","9-0.466","10-0.437","11-0.414","12-0.393","13-0.376","14-0.361","15-0.347","16-0.335","17-0.324","18-0.314","19-0.305","20-0.297","21-0.289","22-0.282","23-0.275","24-0.269","25-0.264","26-0.258","27-0.253","28-0.248","29-0.244","30-0.239","40-0.206","50-0.184","60-0.167","70-0.155","80-0.145","90-0.136","100-0.129"));for(let e=0;e<y.length;e++){let l=y[e].split("-");l[0]==n&&(o=l[1])}}return o}},{funName:"YJSMD",funDesc:"水密度查表",funDefaultVal:null,funParams:[{name:"水的温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"/";if("string"==typeof t.allCellVals[0]&&(0==t.allCellVals[0].trim().length||"/"==t.allCellVals[0].trim()))return"/";let a,n=t.allCellVals[0]+"",y=new Array("15-0.99913","16-0.99897","17-0.99880","18-0.99862","19-0.99843","20-0.99822","21-0.99802","22-0.99779","23-0.99756","24-0.99733","25-0.99702");for(let e=0;e<y.length;e++){let l=y[e].split("-");n==l[0]&&(a=l[1])}if(n.length>2){let e=n;e=e.substring(0,e.indexOf("."));let l=0;for(let t=0;t<y.length;t++){e==y[t].split("-")[0]&&(l=t)}if(l==y.length-1){let e=y[l].split("-"),t=y[l-1].split("-");a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],n),-5)}else{let e=y[l].split("-"),t=y[l+1].split("-");a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],n),-5)}}return a}},{funName:"YJSYMD",funDesc:"水银密度查表",funDefaultVal:null,funParams:[{name:"试验温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=t.allCellVals[0]+"";return a="8"==n||"8.0"==n?"13.58":"10"==n||"10.0"==n||"12"==n||"12.0"==n?"13.57":"14"==n||"14.0"==n||"16"==n||"16.0"==n?"13.56":"18"==n||"18.0"==n||"20"==n||"20.0"==n?"13.55":"22"==n||"22.0"==n||"24"==n||"24.0"==n?"13.54":"26"==n||"26.0"==n||"28"==n||"28.0"==n?"13.53":"30"==n||"30.0"==n||"32"==n||"32.0"==n?"13.52":"34"==n||"34.0"==n?"13.51":FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y("8","30","13.58","13.52",n),-2),a}},{funName:"YJKQND",funDesc:"空气黏度查表",funDefaultVal:null,funParams:[{name:"试验温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1||"/"==t.allCellVals[0])return"/";let a,n=new Array("8-17.49","9-17.54","10-17.59","11-17.64","12-17.68","13-17.73","14-17.78","15-17.83","16-17.88","17-17.93","18-17.98","19-18.03","20-18.08","21-18.13","22-18.18","23-18.23","24-18.28","25-18.32","26-18.37","27-18.42","28-18.47","29-18.52","30-18.57","31-18.62","32-18.67","33-18.72","34-18.76"),y=t.allCellVals[0]+"";for(let e=0;e<n.length;e++){let l=n[e].split("-");y==l[0]&&(a=l[1])}if(y.length>2){let e=y.substring(0,y.indexOf(".")),l=0;for(let t=0;t<n.length;t++){e==n[t].split("-")[0]&&(l=t)}if(l==n.length-1){let e=n[l].split("-"),t=n[l-1].split("-");a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],y),-2)}else{let e=n[l].split("-"),t=n[l+1].split("-");a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],y),-2)}}return a}},{funName:"YJSBBZCA",funDesc:"3倍标准差方法剔除特异值:平均值(YJSBBZCA)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=new Array;for(let e=0;e<a.length;e++)isNaN(a[e])||"/"==a[e]||(n[e]=a[e]);let y=FormulaUtils.commFun.getAverage(n),o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(n),-2);{let e=1*y+3*o*1,l=1*y-3*o*1,t=new Array;for(let a=0;a<n.length;a++)n[a]>l&&n[a]<e&&t.push(n[a]);y=FormulaUtils.commFun.getAverage(t)}return y}},{funName:"YJSBBZCS",funDesc:"3倍标准差方法剔除特异值:标准差(YJSBBZCS)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=new Array;for(let e=0;e<a.length;e++)isNaN(a[e])||"/"==a[e]||(n[e]=a[e]);let y=FormulaUtils.commFun.getAverage(n),o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(n),-2);{let e=1*y+3*o*1,l=1*y-3*o*1,t=new Array;for(let a=0;a<n.length;a++)n[a]>l&&n[a]<e&&t.push(n[a]);y=FormulaUtils.commFun.getAverage(t),o=FormulaUtils.commFun.GetS(t)}return o}},{funName:"YJTWL",funDesc:"计算混凝土抗弯拉强度",funDefaultVal:null,funParams:[{name:"断裂面1",repeatable:!1,optional:!1},{name:"断裂面2",repeatable:!1,optional:!1},{name:"断裂面3",repeatable:!1,optional:!1},{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<6)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[3])||!FormulaUtils.commFun.isNumber(t.allCellVals[4])||!FormulaUtils.commFun.isNumber(t.allCellVals[5]))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[3],t.allCellVals[4],t.allCellVals[5]]),n=t.allCellVals[0],y=t.allCellVals[1],o=t.allCellVals[2],x=a[0],r=a[1],s=a[2],i="/",u=a;if(u.sort(function(e,l){return e-l}),"加荷点外"==n||"加荷点外"==y||"加荷点外"==o){if("加荷点外"==n&&"加荷点内"==y&&"加荷点内"==o){let e=FormulaUtils.commFun.getMin([r,s]);i=Math.abs(r-s)<=.15*e?FormulaUtils.commFun.getAverage([r,s]):"无效"}if("加荷点内"==n&&"加荷点外"==y&&"加荷点内"==o){let e=FormulaUtils.commFun.getMin([x,s]);i=Math.abs(x-s)<=.15*e?FormulaUtils.commFun.getAverage([x,s]):"无效"}if("加荷点内"==n&&"加荷点内"==y&&"加荷点外"==o){let e=FormulaUtils.commFun.getMin([r,x]);i=Math.abs(r-x)<=.15*e?FormulaUtils.commFun.getAverage([r,x]):"无效"}("加荷点外"==n&&"加荷点外"==y&&"加荷点内"==o||"加荷点内"==n&&"加荷点外"==y&&"加荷点外"==o||"加荷点外"==n&&"加荷点内"==y&&"加荷点外"==o)&&(i="无效")}else if("加荷点内"==n||"加荷点内"==y||"加荷点内"==o){let e=FormulaUtils.commFun.getMax([x,r,s]),l=FormulaUtils.commFun.getMin([x,r,s]);i=Math.abs(e-u[1])>.15*u[1]&&Math.abs(l-u[1])>.15*u[1]?"无效":Math.abs(e-u[1])>.15*u[1]||Math.abs(l-u[1])>.15*u[1]?u[1]:FormulaUtils.commFun.getAverage([x,r,s])}return i}},{funName:"YJHJGJPD",funDesc:"焊接钢筋结构判定(YJHJGJPD)",funDefaultVal:null,funParams:[{name:"牌号",repeatable:!1,optional:!1},{name:"接头极限强度1",repeatable:!1,optional:!1},{name:"接头极限强度2",repeatable:!1,optional:!1},{name:"接头极限强度3",repeatable:!1,optional:!1},{name:"断裂形状1",repeatable:!1,optional:!1},{name:"断裂形状2",repeatable:!1,optional:!1},{name:"断裂形状3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<7)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[1])||!FormulaUtils.commFun.isNumber(t.allCellVals[2])||!FormulaUtils.commFun.isNumber(t.allCellVals[3]))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[1],t.allCellVals[2],t.allCellVals[3]]),n=t.allCellVals[0],y=a[0],o=a[1],x=a[2],r=t.allCellVals[4],s=t.allCellVals[5],i=t.allCellVals[6],u="",m="";m="HRB335"==n||"HRB335E"==n?"≥455":"R235"==n?"≥370":"Q235"==n?"≥410":"HRB400"==n||"HRB400E"==n?"≥540":"HPB300"==n?"≥420":"HRB500"==n||"HRBF500"==n||"HRB500E"==n||"HRBF500E"==n?"≥630":"HRB600"==n?"≥730":"/",m=1*m.replace("≥","");let c=1*y,h=1*o,p=1*x;return u="/"!=r&&"/"!=s&&"/"!=i?c>=m&&h>=m&&p>=m?"断于钢筋母材,呈延性断裂"==r&&"断于钢筋母材,呈延性断裂"==s&&"断于钢筋母材,呈脆性断裂"!=i||"断于钢筋母材,呈延性断裂"==r&&"断于钢筋母材,呈延性断裂"==i&&"断于钢筋母材,呈脆性断裂"!=s||"断于钢筋母材,呈延性断裂"==s&&"断于钢筋母材,呈延性断裂"==i&&"断于钢筋母材,呈脆性断裂"!=r?"合格":("断于焊缝,呈脆性断裂"!=r&&"断于热影响区,呈脆性断裂"!=r||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈脆性断裂"==i||"断于焊缝,呈延性断裂"==i||"断于热影响区,呈延性断裂"==i)&&("断于焊缝,呈脆性断裂"!=r&&"断于热影响区,呈脆性断裂"!=r||"断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i||"断于钢筋母材,呈脆性断裂"==s||"断于焊缝,呈延性断裂"==s||"断于热影响区,呈延性断裂"==s)&&("断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈脆性断裂"==r||"断于焊缝,呈延性断裂"==r||"断于热影响区,呈延性断裂"==r)?"无效":"合格":c>=m&&h>=m&&p<m?"断于热影响区,呈延性断裂"==i?"无效":"断于钢筋母材,呈延性断裂"==r&&"断于钢筋母材,呈延性断裂"==s&&"断于钢筋母材,呈延性断裂"!=i?"复检":("断于焊缝,呈脆性断裂"!=r&&"断于热影响区,呈脆性断裂"!=r||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈延性断裂"!=i)&&("断于焊缝,呈脆性断裂"!=r&&"断于热影响区,呈脆性断裂"!=r||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i)?"无效":"不合格":c>=m&&p>=m&&h<m?"断于热影响区,呈延性断裂"==s?"无效":"断于钢筋母材,呈延性断裂"==r&&"断于钢筋母材,呈延性断裂"==i&&"断于钢筋母材,呈延性断裂"!=s?"复检":("断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈延性断裂"!=s)&&("断于焊缝,呈脆性断裂"!=r&&"断于热影响区,呈脆性断裂"!=r||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i)?"无效":"不合格":h>=m&&p>=m&&c<m?"断于热影响区,呈延性断裂"==r?"无效":"断于钢筋母材,呈延性断裂"==s&&"断于钢筋母材,呈延性断裂"==i&&"断于钢筋母材,呈延性断裂"!=r?"复检":("断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈延性断裂"!=r)&&("断于焊缝,呈脆性断裂"!=r&&"断于热影响区,呈脆性断裂"!=r||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i)?"无效":"不合格":c>=m&&h<m&&p<m||h>=m&&c<m&&p<m||p>=m&&h<m&&c<m||c<m&&h<m&&p<m?"不合格":"无效":"/",u}},{funName:"YJYSXHP",funDesc:"液塑限:HP值",funDefaultVal:null,funParams:[{name:"锥体质量",repeatable:!1,optional:!1},{name:"材料类型",repeatable:!1,optional:!1},{name:"锥入深度平均值1",repeatable:!1,optional:!1},{name:"锥入深度平均值2",repeatable:!1,optional:!1},{name:"锥入深度平均值3",repeatable:!1,optional:!1},{name:"含水率测定平均值1",repeatable:!1,optional:!1},{name:"含水率测定平均值2",repeatable:!1,optional:!1},{name:"含水率测定平均值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<8)return"";if(!(FormulaUtils.commFun.isNumber(t.allCellVals[2])&&FormulaUtils.commFun.isNumber(t.allCellVals[3])&&FormulaUtils.commFun.isNumber(t.allCellVals[4])&&FormulaUtils.commFun.isNumber(t.allCellVals[5])&&FormulaUtils.commFun.isNumber(t.allCellVals[6])&&FormulaUtils.commFun.isNumber(t.allCellVals[7])))return"";let a,n,y=FormulaUtils.commFun.convertToInt([t.allCellVals[2],t.allCellVals[3],t.allCellVals[4],t.allCellVals[5],t.allCellVals[6],t.allCellVals[7]]),o=t.allCellVals[0],x=t.allCellVals[1],r=y[0],s=y[1],i=y[2],u=y[3],m=y[4],c=y[5],h="/",p=20;"76"!=o&&76!=o||(p=17);let f,d,g=new Array,b=new Array,C=[r,s,i],S=[u,m,c];for(let e=0;e<C.length;e++)a=1*S[e],n=1*C[e],""!=a&&"/"!=a&&""!=n&&"/"!=n&&(g[e]=a,b[e]=n);function w(e,l,t,a,n){let y;return y=e-(l-n)*(e-t)/(l-a),y}function F(e,l){let t;return e*=1,t=0==l?29.6-1.22*e+.017*e*e-744e-7*e*e*e:e/(.524*e-7.606),t}if(g.sort(function(e,l){return e-l}),b.sort(function(e,l){return e-l}),"细粒土"==x)if(Math.abs((b[2]-b[1])/(g[2]-g[1])-(b[2]-b[0])/(g[2]-g[0]))<=1e-5)f=w(g[2],b[2],g[1],b[1],p),f=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(f,-1),d=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(F(f,1),-1);else{a=g[2],n=F(a,1);let e=(1*w(g[2],b[2],g[0],b[0],n)+1*w(g[2],b[2],g[1],b[1],n))/2;f=w(g[2],b[2],e,n,p),f=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(f,-1),d=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(F(f,1),-1)}else if(Math.abs((b[2]-b[1])/(g[2]-g[1])-(b[2]-b[0])/(g[2]-g[0]))<=1e-5)f=w(g[2],b[2],g[1],b[1],p),f=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(f,-1),d=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(F(f,0),-1);else{a=g[2],n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(F(a,0),-1);let e=(w(g[2],b[2],g[0],b[0],n)+w(g[2],b[2],g[1],b[1],n))/2;f=w(g[2],b[2],e,n,p),f=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(f,-1),d=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(F(f,0),-1)}return h=d,isNaN(h)&&(h="/"),h}},{funName:"YJYSXWP",funDesc:"液塑限:WP值",funDefaultVal:null,funParams:[{name:"锥体质量",repeatable:!1,optional:!1},{name:"材料类型",repeatable:!1,optional:!1},{name:"锥入深度平均值1",repeatable:!1,optional:!1},{name:"锥入深度平均值2",repeatable:!1,optional:!1},{name:"锥入深度平均值3",repeatable:!1,optional:!1},{name:"含水率测定平均值1",repeatable:!1,optional:!1},{name:"含水率测定平均值2",repeatable:!1,optional:!1},{name:"含水率测定平均值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<8)return"";if(!(FormulaUtils.commFun.isNumber(t.allCellVals[2])&&FormulaUtils.commFun.isNumber(t.allCellVals[3])&&FormulaUtils.commFun.isNumber(t.allCellVals[4])&&FormulaUtils.commFun.isNumber(t.allCellVals[5])&&FormulaUtils.commFun.isNumber(t.allCellVals[6])&&FormulaUtils.commFun.isNumber(t.allCellVals[7])))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[2],t.allCellVals[3],t.allCellVals[4],t.allCellVals[5],t.allCellVals[6],t.allCellVals[7]]),n=t.allCellVals[0],y=t.allCellVals[1],o=a[0],x=a[1],r=a[2],s=a[3],i=a[4],u=a[5];function m(e){return Math.LOG10E*Math.log(e)}let c,h,p,f="/",d=20;"76"!=n&&76!=n||(d=17);let g,b,C=new Array,S=new Array,w=[o,x,r],F=[s,i,u];for(let e=0;e<w.length;e++)c=1*F[e],h=1*w[e],""!=c&&"/"!=c&&""!=h&&"/"!=h&&(C[e]=c,S[e]=h);function V(e,l,t,a,n){let y;return y=e-(l-n)*(e-t)/(l-a),y}function E(e,l){let t;return e*=1,t=0==l?29.6-1.22*e+.017*e*e-744e-7*e*e*e:e/(.524*e-7.606),t}if(C.sort(function(e,l){return e-l}),S.sort(function(e,l){return e-l}),"细粒土"==y)if(Math.abs((S[2]-S[1])/(C[2]-C[1])-(S[2]-S[0])/(C[2]-C[0]))<=1e-5)g=V(C[2],S[2],C[1],S[1],d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,1),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1);else{c=C[2],h=E(c,1);let e=(1*V(C[2],S[2],C[0],S[0],h)+1*V(C[2],S[2],C[1],S[1],h))/2;g=V(C[2],S[2],e,h,d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,1),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1)}else if(Math.abs((S[2]-S[1])/(C[2]-C[1])-(S[2]-S[0])/(C[2]-C[0]))<=1e-5)g=V(C[2],S[2],C[1],S[1],20),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,0),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1);else{c=C[2],h=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(c,0),-1);let e=(V(C[2],S[2],C[0],S[0],h)+V(C[2],S[2],C[1],S[1],h))/2;g=V(C[2],S[2],e,h,20),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,0),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1)}return f=p,isNaN(f)&&(f="/"),f}},{funName:"YSXWL",funDesc:"液塑限:WL值",funDefaultVal:null,funParams:[{name:"锥体质量",repeatable:!1,optional:!1},{name:"材料类型",repeatable:!1,optional:!1},{name:"锥入深度平均值1",repeatable:!1,optional:!1},{name:"锥入深度平均值2",repeatable:!1,optional:!1},{name:"锥入深度平均值3",repeatable:!1,optional:!1},{name:"含水率测定平均值1",repeatable:!1,optional:!1},{name:"含水率测定平均值2",repeatable:!1,optional:!1},{name:"含水率测定平均值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<8)return"";if(!(FormulaUtils.commFun.isNumber(t.allCellVals[2])&&FormulaUtils.commFun.isNumber(t.allCellVals[3])&&FormulaUtils.commFun.isNumber(t.allCellVals[4])&&FormulaUtils.commFun.isNumber(t.allCellVals[5])&&FormulaUtils.commFun.isNumber(t.allCellVals[6])&&FormulaUtils.commFun.isNumber(t.allCellVals[7])))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[2],t.allCellVals[3],t.allCellVals[4],t.allCellVals[5],t.allCellVals[6],t.allCellVals[7]]),n=t.allCellVals[0],y=t.allCellVals[1],o=a[0],x=a[1],r=a[2],s=a[3],i=a[4],u=a[5];function m(e){return Math.LOG10E*Math.log(e)}let c,h,p,f="/",d=20;"76"!=n&&76!=n||(d=17);let g,b,C=new Array,S=new Array,w=[o,x,r],F=[s,i,u];for(let e=0;e<w.length;e++)c=1*F[e],h=1*w[e],""!=c&&"/"!=c&&""!=h&&"/"!=h&&(C[e]=c,S[e]=h);function V(e,l,t,a,n){let y;return y=e-(l-n)*(e-t)/(l-a),y}function E(e,l){let t;return e*=1,t=0==l?29.6-1.22*e+.017*e*e-744e-7*e*e*e:e/(.524*e-7.606),t}if(C.sort(function(e,l){return e-l}),S.sort(function(e,l){return e-l}),"细粒土"==y)if(Math.abs((S[2]-S[1])/(C[2]-C[1])-(S[2]-S[0])/(C[2]-C[0]))<=1e-5)g=V(C[2],S[2],C[1],S[1],d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,1),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1);else{c=C[2],h=E(c,1);let e=(1*V(C[2],S[2],C[0],S[0],h)+1*V(C[2],S[2],C[1],S[1],h))/2;g=V(C[2],S[2],e,h,d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1)}else if(Math.abs((S[2]-S[1])/(C[2]-C[1])-(S[2]-S[0])/(C[2]-C[0]))<=1e-5)g=V(C[2],S[2],C[1],S[1],d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1);else{c=C[2],h=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(c,0),-1);let e=(V(C[2],S[2],C[0],S[0],h)+V(C[2],S[2],C[1],S[1],h))/2;g=V(C[2],S[2],e,h,d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1)}return f=g,isNaN(f)&&(f="/"),f}},{funName:"YJLBBZCA",funDesc:"2倍标准差方法剔除特异值:平均值(YJLBBZCA)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=new Array;for(let e=0;e<a.length;e++)isNaN(a[e])||"/"==a[e]||(n[e]=a[e]);let y=FormulaUtils.commFun.getAverage(n),o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(n),-2);{let e=1*y+2*o*1,l=1*y-2*o*1,t=new Array;for(let a=0;a<n.length;a++)n[a]>l&&n[a]<e&&t.push(n[a]);y=FormulaUtils.commFun.getAverage(t)}return y}},{funName:"YJLBBZCS",funDesc:"2倍标准差方法剔除特异值:标准差(YJLBBZCS)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=new Array;for(let e=0;e<a.length;e++)isNaN(a[e])||"/"==a[e]||(n[e]=a[e]);let y=FormulaUtils.commFun.getAverage(n),o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(n),-2);{let e=1*y+2*o*1,l=1*y-2*o*1,t=new Array;for(let a=0;a<n.length;a++)n[a]>l&&n[a]<e&&t.push(n[a]);y=FormulaUtils.commFun.getAverage(t),o=FormulaUtils.commFun.GetS(t)}return o}},{funName:"YJKBBZCA",funDesc:"k倍标准差方法剔除特异值:平均值(YJKBBZCA)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=FormulaUtils.commFun.convertToInt(t.allCellVals);switch(n.length){case 3:a=1.15;break;case 4:a=1.46;break;case 5:a=1.67;break;case 6:a=1.82;break;case 7:a=1.94;break;case 8:a=2.03;break;case 9:a=2.11;break;case 10:a=2.18;break;case 11:a=2.23;break;case 12:a=2.28;break;case 13:a=2.33;break;case 14:a=2.37}let y=new Array;for(let e=0;e<n.length;e++)isNaN(n[e])||"/"==n[e]||""==n[e]||(y[e]=n[e]);let o=FormulaUtils.commFun.getAverage(y);if(0===y.length||y.every(e=>e===y[0]))return o;let x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(y),-2);if(""==a||"/"==a)y.length,o*=1,x*=1;else{let e=1*o+1*a*x*1,l=1*o-1*a*x*1,t=new Array;for(let a=0;a<y.length;a++)y[a]>l&&y[a]<e&&t.push(y[a]);o=FormulaUtils.commFun.getAverage(t)}return o}},{funName:"YJKBBZCS",funDesc:"k倍标准差方法剔除特异值:标准差(YJKBBZCS)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=FormulaUtils.commFun.convertToInt(t.allCellVals);switch(n.length){case 3:a=1.15;break;case 4:a=1.46;break;case 5:a=1.67;break;case 6:a=1.82;break;case 7:a=1.94;break;case 8:a=2.03;break;case 9:a=2.11;break;case 10:a=2.18;break;case 11:a=2.23;break;case 12:a=2.28;break;case 13:a=2.33;break;case 14:a=2.37}let y=new Array;for(let e=0;e<n.length;e++)isNaN(n[e])||"/"==n[e]||(y[e]=n[e]);let o=FormulaUtils.commFun.getAverage(y),x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(y),-2);if(""==a||"/"==a)y.length,o*=1,x*=1;else{let e=1*o+1*a*x*1,l=1*o-1*a*x*1,t=new Array;for(let a=0;a<y.length;a++)y[a]>l&&y[a]<e&&t.push(y[a]);o=FormulaUtils.commFun.getAverage(t),x=FormulaUtils.commFun.GetS(t)}return x}},{funName:"YJKBBZCC",funDesc:"被剔除的特异值点数:YJKBBZCC",funDefaultVal:null,funParams:[{name:"弯沉左侧和右侧的数值范围",repeatable:!1,optional:!1},{name:"舍弃值的倍数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";let a=[];for(let e=0;e<t.allCellVals.length-1;e++)a.push(t.allCellVals[e]);let n,y=FormulaUtils.commFun.convertToInt(a),o=t.allCellVals[t.allCellVals.length-1],x=new Array;for(let e=0;e<y.length;e++)isNaN(y[e])||"/"==y[e]||(x[e]=y[e]);let r=FormulaUtils.commFun.getAverage(x),s=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(x),-2);if(""==o||"/"==o)n=x.length;else{let e=1*r+1*o*s*1,l=1*r-1*o*s*1,t=new Array;for(let a=0;a<x.length;a++)x[a]>l&&x[a]<e&&t.push(x[a]);n=t.length}return n}},{funName:"YJHTJD",funDesc:"回弹角度修正查表",funDefaultVal:null,funParams:[{name:"测试方向",repeatable:!1,optional:!1},{name:"角度",repeatable:!1,optional:!1},{name:"实测平均回弹值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[2]))return"";let a,n,y=t.allCellVals[0],o=t.allCellVals[1],x=t.allCellVals[2];function r(e,l){let t=0;return l>=50?90==e?t=-3.5:60==e?t=-3:45==e?t=-2.5:30==e?t=-1.5:-30==e?t=1:-45==e?t=1.5:-60==e?t=2:-90==e&&(t=2.5):l<=20&&(90==e?t=-6:60==e?t=-5:45==e?t=-4:30==e?t=-3:-30==e?t=2.5:-45==e?t=3:-60==e?t=3.5:-90==e&&(t=4)),t}if("非水平方向"==y){let e=new Array("90","60","45","30","-30","-45","-60","-90");for(let l=0;l<e.length;l++)if(o==e[l]){a=l;break}let l=[{x:20,y:-6},{x:21,y:-5.9},{x:22,y:-5.8},{x:23,y:-5.7},{x:24,y:-5.6},{x:25,y:-5.5},{x:26,y:-5.4},{x:27,y:-5.3},{x:28,y:-5.2},{x:29,y:-5.1},{x:30,y:-5},{x:31,y:-4.9},{x:32,y:-4.8},{x:33,y:-4.7},{x:34,y:-4.6},{x:35,y:-4.5},{x:36,y:-4.4},{x:37,y:-4.3},{x:38,y:-4.2},{x:39,y:-4.1},{x:40,y:-4},{x:41,y:-4},{x:42,y:-3.9},{x:43,y:-3.9},{x:44,y:-3.8},{x:45,y:-3.8},{x:46,y:-3.7},{x:47,y:-3.7},{x:48,y:-3.6},{x:49,y:-3.6},{x:50,y:-3.5}],t=[{x:20,y:-5},{x:21,y:-4.9},{x:22,y:-4.8},{x:23,y:-4.7},{x:24,y:-4.6},{x:25,y:-4.5},{x:26,y:-4.4},{x:27,y:-4.3},{x:28,y:-4.2},{x:29,y:-4.1},{x:30,y:-4},{x:31,y:-4},{x:32,y:-3.9},{x:33,y:-3.9},{x:34,y:-3.8},{x:35,y:-3.8},{x:36,y:-3.7},{x:37,y:-3.7},{x:38,y:-3.6},{x:39,y:-3.6},{x:40,y:-3.5},{x:41,y:-3.5},{x:42,y:-3.4},{x:43,y:-3.4},{x:44,y:-3.3},{x:45,y:-3.3},{x:46,y:-3.2},{x:47,y:-3.2},{x:48,y:-3.1},{x:49,y:-3.1},{x:50,y:-3}],y=[{x:20,y:-4},{x:21,y:-4},{x:22,y:-3.9},{x:23,y:-3.9},{x:24,y:-3.8},{x:25,y:-3.8},{x:26,y:-3.7},{x:27,y:-3.7},{x:28,y:-3.6},{x:29,y:-3.6},{x:30,y:-3.5},{x:31,y:-3.5},{x:32,y:-3.4},{x:33,y:-3.4},{x:34,y:-3.3},{x:35,y:-3.3},{x:36,y:-3.2},{x:37,y:-3.2},{x:38,y:-3.1},{x:39,y:-3.1},{x:40,y:-3},{x:41,y:-3},{x:42,y:-2.9},{x:43,y:-2.9},{x:44,y:-2.8},{x:45,y:-2.8},{x:46,y:-2.7},{x:47,y:-2.7},{x:48,y:-2.6},{x:49,y:-2.6},{x:50,y:-2.5}],s=[{x:20,y:-3},{x:21,y:-3},{x:22,y:-2.9},{x:23,y:-2.9},{x:24,y:-2.8},{x:25,y:-2.8},{x:26,y:-2.7},{x:27,y:-2.7},{x:28,y:-2.6},{x:29,y:-2.6},{x:30,y:-2.5},{x:31,y:-2.5},{x:32,y:-2.4},{x:33,y:-2.4},{x:34,y:-2.3},{x:35,y:-2.3},{x:36,y:-2.2},{x:37,y:-2.2},{x:38,y:-2.1},{x:39,y:-2.1},{x:40,y:-2},{x:41,y:-2},{x:42,y:-1.9},{x:43,y:-1.9},{x:44,y:-1.8},{x:45,y:-1.8},{x:46,y:-1.7},{x:47,y:-1.7},{x:48,y:-1.6},{x:49,y:-1.6},{x:50,y:-1.5}],i=[{x:20,y:2.5},{x:21,y:2.5},{x:22,y:2.4},{x:23,y:2.4},{x:24,y:2.3},{x:25,y:2.3},{x:26,y:2.2},{x:27,y:2.2},{x:28,y:2.1},{x:29,y:2.1},{x:30,y:2},{x:31,y:2},{x:32,y:1.9},{x:33,y:1.9},{x:34,y:1.8},{x:35,y:1.8},{x:36,y:1.7},{x:37,y:1.7},{x:38,y:1.6},{x:39,y:1.6},{x:40,y:1.5},{x:41,y:1.5},{x:42,y:1.4},{x:43,y:1.4},{x:44,y:1.3},{x:45,y:1.3},{x:46,y:1.2},{x:47,y:1.2},{x:48,y:1.1},{x:49,y:1.1},{x:50,y:1}],u=[{x:20,y:3},{x:21,y:3},{x:22,y:2.9},{x:23,y:2.9},{x:24,y:2.8},{x:25,y:2.8},{x:26,y:2.7},{x:27,y:2.7},{x:28,y:2.6},{x:29,y:2.6},{x:30,y:2.5},{x:31,y:2.5},{x:32,y:2.4},{x:33,y:2.4},{x:34,y:2.3},{x:35,y:2.3},{x:36,y:2.2},{x:37,y:2.2},{x:38,y:2.1},{x:39,y:2.1},{x:40,y:2},{x:41,y:2},{x:42,y:1.9},{x:43,y:1.9},{x:44,y:1.8},{x:45,y:1.8},{x:46,y:1.7},{x:47,y:1.7},{x:48,y:1.6},{x:49,y:1.6},{x:50,y:1.5}],m=[{x:20,y:3.5},{x:21,y:3.5},{x:22,y:3.4},{x:23,y:3.4},{x:24,y:3.3},{x:25,y:3.3},{x:26,y:3.2},{x:27,y:3.2},{x:28,y:3.1},{x:29,y:3.1},{x:30,y:3},{x:31,y:3},{x:32,y:2.9},{x:33,y:2.9},{x:34,y:2.8},{x:35,y:2.8},{x:36,y:2.7},{x:37,y:2.7},{x:38,y:2.6},{x:39,y:2.6},{x:40,y:2.5},{x:41,y:2.5},{x:42,y:2.4},{x:43,y:2.4},{x:44,y:2.3},{x:45,y:2.3},{x:46,y:2.2},{x:47,y:2.2},{x:48,y:2.1},{x:49,y:2.1},{x:50,y:2}],c=[{x:20,y:4},{x:21,y:4},{x:22,y:3.9},{x:23,y:3.9},{x:24,y:3.8},{x:25,y:3.8},{x:26,y:3.7},{x:27,y:3.7},{x:28,y:3.6},{x:29,y:3.6},{x:30,y:3.5},{x:31,y:3.5},{x:32,y:3.4},{x:33,y:3.4},{x:34,y:3.3},{x:35,y:3.3},{x:36,y:3.2},{x:37,y:3.2},{x:38,y:3.1},{x:39,y:3.1},{x:40,y:3},{x:41,y:3},{x:42,y:2.9},{x:43,y:2.9},{x:44,y:2.8},{x:45,y:2.8},{x:46,y:2.7},{x:47,y:2.7},{x:48,y:2.6},{x:49,y:2.6},{x:50,y:2.5}],h=new Array;if(""==a&&0!=a||"0"==o){let e,l,t=40,a=50;1*o>0?(e=FormulaUtils.commFun.InterpolationMethod_y(0,30,0,-2,o),l=FormulaUtils.commFun.InterpolationMethod_y(0,30,0,-1.5,o),n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(t,a,e,l,x),-1)):n="0.0",(x>=50||x<=20)&&(n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(r(o,x),-1))}else{"90"==o?h=l:"60"==o?h=t:"45"==o?h=y:"30"==o?h=s:"-30"==o?h=i:"-45"==o?h=u:"-60"==o?h=m:"-90"==o&&(h=c);let e=-1;for(let l=0;l<h.length;l++){if(1*h[0].x>x){e=1;break}if(1*h[l].x>x){e=l;break}if(1*h[h.length-1].x<x){e=h.length-1;break}if(x==h[l].x){n=h[l].y;break}}if(-1!=e){let l=h[e-1].x,t=h[e-1].y,a=h[e].x,y=h[e].y;n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(l,a,t,y,x),-1)}(x>=50||x<=20)&&(n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(r(o,x),-1))}}else n="/";return n}},{funName:"YJHTJZM",funDesc:"回弹浇筑面修正查表",funDefaultVal:null,funParams:[{name:"浇筑面",repeatable:!1,optional:!1},{name:"实测平均回弹值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[1]))return"";let a,n=t.allCellVals[0],y=Number(t.allCellVals[1]);if("表面"==n){let e=new Array;e=["20-2.5","21-2.4","22-2.3","23-2.2","24-2.1","25-2.0","26-1.9","27-1.8","28-1.7","29-1.6","30-1.5","31-1.4","32-1.3","33-1.2","34-1.1","35-1.0","36-0.9","37-0.8","38-0.7","39-0.6","40-0.5","41-0.4","42-0.3","43-0.2","44-0.1","45-0","46-0","47-0","48-0","49-0","50-0"];for(let l=1;l<11;l++)if(1*y>50)a="0";else if(1*y<20)a="2.5";else{y=Math.round(y);for(let l=0;l<e.length;l++){let t=e[l].split("-");y==t[0]&&(a=t[1])}}}else if("底面"==n){let e=new Array;e=["20-3.0","21-2.9","22-2.8","23-2.7","24-2.6","25-2.5","26-2.4","27-2.3","28-2.2","29-2.1","30-2.0","31-1.9","32-1.8","33-1.7","34-1.6","35-1.5","36-1.4","37-1.3","38-1.2","39-1.1","40-1.0","41-0.9","42-0.8","43-0.7","44-0.6","45-0.5","46-0.4","47-0.3","48-0.2","49-0.1","50-0"];for(let l=1;l<11;l++)if(1*y>50)a="0";else if(1*y<20)a="3.0";else{y=Math.round(y);for(let l=0;l<e.length;l++){let t=e[l].split("-");y==t[0]&&(a=-1*t[1])}}}return a}},{funName:"YJTKLZC",funDesc:"土的d60、d30、d10 计算)",funDefaultVal:null,funParams:[{name:"粗筛孔径60",repeatable:!1,optional:!1},{name:"粗筛孔径40",repeatable:!1,optional:!1},{name:"粗筛孔径20",repeatable:!1,optional:!1},{name:"粗筛孔径10",repeatable:!1,optional:!1},{name:"粗筛孔径5",repeatable:!1,optional:!1},{name:"粗筛孔径2",repeatable:!1,optional:!1},{name:"细筛孔径2",repeatable:!1,optional:!1},{name:"细筛孔径1",repeatable:!1,optional:!1},{name:"细筛孔径0.5",repeatable:!1,optional:!1},{name:"细筛孔径0.25",repeatable:!1,optional:!1},{name:"细筛孔径0.075",repeatable:!1,optional:!1},{name:"细筛孔径筛底",repeatable:!1,optional:!1},{name:"粗筛60小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛40小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛20小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛10小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛5小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛2小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"细筛2占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛1占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛0.5占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛0.25占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛0.075占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛筛底占总土质量百分比",repeatable:!1,optional:!1},{name:"d的数据值,如:60、30、10(其中之一)",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<25)return"";let a,n,y=t.allCellVals[0],o=t.allCellVals[1],x=t.allCellVals[2],r=t.allCellVals[3],s=t.allCellVals[4],u=t.allCellVals[5],m=t.allCellVals[6],c=t.allCellVals[7],h=t.allCellVals[8],p=t.allCellVals[9],f=t.allCellVals[10],d=t.allCellVals[11],g=t.allCellVals[12],b=t.allCellVals[13],C=t.allCellVals[14],S=t.allCellVals[15],w=t.allCellVals[16],F=t.allCellVals[17],V=t.allCellVals[18],E=t.allCellVals[19],N=t.allCellVals[20],v=t.allCellVals[21],A=t.allCellVals[22],D=t.allCellVals[23],U=t.allCellVals[24],J=[y,o,x,r,s,u,m,c,h,p,f,d],k=[g,b,C,S,w,F,V,E,N,v,A,D],O=new Array,M=new Array,L=0;for(let e=0;e<=11;e++)n=k[e],"/"==n||""==n||isNaN(n)||(0==n||1*n>0)&&(O[L]=n,-1!=J[e].indexOf("底")?M[L]="0.001":M[L]=J[e],L++);if(L<3)return;let j=0;for(i=0;i<O.length&&O[i]>=U;i++)j++;if(0==j)return;let I=new function(){this.x1=1,this.x2=1,this.y1=1,this.y2=1,this.k=1,this.b=0,this.x=0,this.$get=function(){return this.x1-this.x2==0&&(this.k=1,this.b=0),this.k=(this.y1-this.y2)/(this.x1-this.x2),this.b=this.y1-this.x1*this.k,this.k*this.x+this.b}};var z;return I.x1=O[j-1],I.x2=O[j],I.y1=M[j-1],I.y2=M[j],I.x=U,a=1*(z=I).y1-(1*z.x1-1*z.x)*(1*z.y1-1*z.y2)/(1*z.x1-1*z.x2),a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(a,-1),a}},{funName:"YJJGX",funDesc:"集料坚固性公式",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"质量百分率数据区域",repeatable:!1,optional:!1},{name:"试验前烘干质量数据区域",repeatable:!1,optional:!1},{name:"试验后烘干质量数据区域",repeatable:!1,optional:!1},{name:"质量损失百分率数据区域",repeatable:!1,optional:!1},{name:"序号(从1开始)",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellValsEw.length<5)return"";let a=t.allCellValsEw[0],n=t.allCellValsEw[1],y=t.allCellValsEw[2],o=t.allCellValsEw[3],x=Number(t.allCellValsEw[4])-1,r="";for(let e=0;e<n.length;e++){if(!(parseFloat(a[x])<5)){r=isNaN(n[x])||isNaN(y[x])?"/":FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease((parseFloat(n[x])-parseFloat(y[x]))/parseFloat(n[x])*100,-1);break}{let e=x-1,l=0,t=x+1,n=0;for(;e>=0&&parseFloat(a[e])<5;)e--;for(;t<=a.length&&parseFloat(a[t])<5;)t++;if(e>=0&&(l=parseFloat(o[e])),t<a.length&&(n=parseFloat(o[t])),l&&n){r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease((l+n)/2,-1);break}if(l){r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(l,-1);break}if(n){r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(n,-1);break}}}return r}},{funName:"YJNC",funDesc:"内插值",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"数据区域Xn",repeatable:!1,optional:!1},{name:"数据区域Yn",repeatable:!1,optional:!1},{name:"d的数据值,如:60、30、10(其中之一)可以为固定值 也可以为填入值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellValsEw.length<3)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellValsEw[0].filter(e=>FormulaUtils.commFun.isNumber(e))),n=FormulaUtils.commFun.convertToInt(t.allCellValsEw[1].filter(e=>FormulaUtils.commFun.isNumber(e))),y=t.allCellValsEw[2];y=Array.isArray(y)&&y.length>0?Number(y[0]):Number(y);let o=a,x=n,r=y;var s,i,u=new Array,m=new Array,c=0;r*=1;for(var h=0;h<=x.length;h++)i=x[h],isNaN(i)||(0==i||1*i>0)&&(m[c]=i,u[c]=o[h],c++);if(c<3)return"/";var p=0;if(u[0]>r){for(h=0;h<u.length&&u[h]>=r;h++)p++;if(0==p)return"/"}else if(u[0]<r){for(h=0;h<u.length&&u[h]<=r;h++)p++;if(0==p)return"/"}var f,d=new function(){this.x1=1,this.x2=1,this.y1=1,this.y2=1,this.k=1,this.b=0,this.x=0,this.$get=function(){return this.x1-this.x2==0&&(this.k=1,this.b=0),this.k=(this.y1-this.y2)/(this.x1-this.x2),this.b=this.y1-this.x1*this.k,this.k*this.x+this.b}};return d.x1=u[p-1],d.x2=u[p],d.y1=m[p-1],d.y2=m[p],d.x=r,s=d.y1==r?d.x1:1*(f=d).y1-(1*f.x1-1*f.x)*(1*f.y1-1*f.y2)/(1*f.x1-1*f.x2),isNaN(s)?"/":s}},{funName:"YJMDJWDJZ",funDesc:"土密度计温度校正查表",funDefaultVal:null,funParams:[{name:"密度计种类",repeatable:!1,optional:!1},{name:"悬液温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2||"string"==typeof t.allCellVals[1]&&(0==t.allCellVals[1].trim().length||"/"==t.allCellVals[1]))return"/";let a,n=t.allCellVals[0],y=t.allCellVals[1],o=new Array;if(o[0]=["10.0","-2.0","-0.0012"],o[1]=["10.5","-1.9","-0.0012"],o[2]=["11.0","-1.9","-0.0012"],o[3]=["11.5","-1.8","-0.0011"],o[4]=["12.0","-1.8","-0.0011"],o[5]=["12.5","-1.7","-0.0010"],o[6]=["13.0","-1.6","-0.0010"],o[7]=["13.5","-1.5","-0.0009"],o[8]=["14.0","-1.4","-0.0009"],o[9]=["14.5","-1.3","-0.0008"],o[10]=["15.0","-1.2","-0.0008"],o[11]=["15.5","-1.1","-0.0007"],o[12]=["16.0","-1.0","-0.0006"],o[13]=["16.5","-0.9","-0.0006"],o[14]=["17.0","-0.8","-0.0005"],o[15]=["17.5","-0.7","-0.0004"],o[16]=["18.0","-0.5","-0.0003"],o[17]=["18.5","-0.4","-0.0003"],o[18]=["19.0","-0.3","-0.0002"],o[19]=["19.5","-0.1","-0.0001"],o[20]=["20.0","-0.0","-0.0000"],o[21]=["20.2","0.0","+0.0000"],o[22]=["20.5","+0.1","+0.0001"],o[23]=["21.0","+0.3","+0.0002"],o[24]=["21.5","+0.5","+0.0003"],o[25]=["22.0","+0.6","+0.0004"],o[26]=["22.5","+0.8","+0.0005"],o[27]=["23.0","+0.9","+0.0006"],o[28]=["23.5","+1.1","+0.0007"],o[29]=["24.0","+1.3","+0.0008"],o[30]=["24.5","+1.5","+0.0009"],o[31]=["25.0","+1.7","+0.0010"],o[32]=["25.5","+1.7","+0.0011"],o[33]=["26.0","+2.1","+0.0013"],o[34]=["26.5","+2.2","+0.0014"],o[35]=["27.0","+2.5","+0.0015"],o[36]=["27.5","+2.6","+0.0016"],o[37]=["28.0","+2.9","+0.0018"],o[38]=["28.5","+3.1","+0.0019"],o[39]=["29.0","+3.3","+0.0021"],o[40]=["29.5","+3.5","+0.0022"],o[41]=["30.0","+3.7","+0.0023"],""!=y&&"/"!=y&&"甲种"==n){for(let e=0;e<o.length;e++)if(1*o[e][0]==y)return a=o[e][1],a;if(y.length>2){let e=y.substring(0,y.indexOf(".")),l=0;for(let t=0;t<o.length;t++)e==o[t][0].substring(0,y.indexOf("."))&&(l=t);if(l==o.length-1){let e=o[l],t=o[l-1];-1!=e[1].indexOf("-")?e[1]=e[1].replace("-",""):-1!=e[1].indexOf("+")&&(e[1]=e[1].replace("+","")),-1!=t[1].indexOf("-")?t[1]=t[1].replace("-",""):-1!=t[1].indexOf("+")&&(t[1]=t[1].replace("+","")),a=y<=20?"-"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],y),-1):"+"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],y),-1)}else{let e=o[l],t=o[l+1];-1!=e[1].indexOf("-")?e[1]=e[1].replace("-",""):-1!=e[1].indexOf("+")&&(e[1]=e[1].replace("+","")),-1!=t[1].indexOf("-")?t[1]=t[1].replace("-",""):-1!=t[1].indexOf("+")&&(t[1]=t[1].replace("+","")),a=y<=20?"-"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],y),-1):"+"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],y),-1)}}}if(""!=y&&"/"!=y&&"乙种"==n){for(let e=0;e<o.length;e++)if(1*o[e][0]==y)return a=o[e][2],a;if(y.length>2){let e=y.substring(0,y.indexOf(".")),l=0;for(let t=0;t<o.length;t++)e==o[t][0].substring(0,y.indexOf("."))&&(l=t);if(l==o.length-1){let e=o[l],t=o[l-1];-1!=e[2].indexOf("-")?e[2]=e[2].replace("-",""):-1!=e[2].indexOf("+")&&(e[2]=e[2].replace("+","")),-1!=t[2].indexOf("-")?t[2]=t[2].replace("-",""):-1!=t[2].indexOf("+")&&(t[2]=t[2].replace("+","")),a=y<=20?"-"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[2],t[2],y),-4):"+"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[2],t[2],y),-4)}else{let e=o[l],t=o[l+1];-1!=e[2].indexOf("-")?e[2]=e[2].replace("-",""):-1!=e[2].indexOf("+")&&(e[2]=e[2].replace("+","")),-1!=t[2].indexOf("-")?t[2]=t[2].replace("-",""):-1!=t[2].indexOf("+")&&(t[2]=t[2].replace("+","")),a=y<=20?"-"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[2],t[2],y),-4):"+"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[2],t[2],y),-4)}}}return a}},{funName:"YJSDLNZXS",funDesc:"水的动力粘滞系数查表",funDefaultVal:null,funParams:[{name:"悬液温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1||"string"==typeof t.allCellVals[0]&&(0==t.allCellVals[0].trim().length||"/"==t.allCellVals[0]))return"/";let a,n=t.allCellVals[0],y=new Array;y[0]=["10.0","1.310"],y[1]=["10.5","1.292"],y[2]=["11.0","1.274"],y[3]=["11.5","1.256"],y[4]=["12.0","1.239"],y[5]=["12.5","1.223"],y[6]=["13.0","1.206"],y[7]=["13.5","1.190"],y[8]=["14.0","1.175"],y[9]=["14.5","1.160"],y[10]=["15.0","1.144"],y[11]=["15.5","1.130"],y[12]=["16.0","1.115"],y[13]=["16.5","1.101"],y[14]=["17.0","1.088"],y[15]=["17.5","1.074"],y[16]=["18.0","1.061"],y[17]=["18.5","1.048"],y[18]=["19.0","1.035"],y[19]=["19.5","1.022"],y[20]=["20.0","1.010"],y[21]=["20.5","0.998"],y[22]=["21.0","0.986"],y[23]=["21.5","0.974"],y[24]=["22.0","0.963"],y[25]=["22.5","0.952"],y[26]=["23.0","0.941"],y[27]=["23.5","0.930"],y[28]=["24.0","0.920"],y[29]=["24.5","0.909"],y[30]=["25.0","0.899"],y[31]=["25.5","0.889"],y[32]=["26.0","0.879"],y[33]=["26.5","0.869"],y[34]=["27.0","0.860"],y[35]=["27.5","0.850"],y[36]=["28.0","0.841"],y[37]=["28.5","0.832"],y[38]=["29.0","0.823"],y[39]=["29.5","0.814"];for(let e=1;e<=11;e++)if(""!=n&&"/"!=n)for(let e=0;e<y.length;e++)1*y[e][0]==n&&(a=y[e][1]);return a}},{funName:"YJK1",funDesc:"混凝土芯样强度K1查表",funDefaultVal:null,funParams:[{name:"试件数量",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=t.allCellVals[0],y=new Array;if(y[0]=["10","1.01730"],y[1]=["11","1.04127"],y[2]=["12","1.06247"],y[3]=["13","1.08141"],y[4]=["14","1.09848"],y[5]=["15","1.11394"],y[6]=["16","1.12812"],y[7]=["17","1.14112"],y[8]=["18","1.15311"],y[9]=["19","1.16423"],y[10]=["20","1.17458"],y[11]=["21","1.18425"],y[12]=["22","1.9330"],y[13]=["23","1.20181"],y[14]=["24","1.20982"],y[15]=["25","1.21739"],y[16]=["26","1.22455"],y[17]=["27","1.23135"],y[18]=["28","1.23780"],y[19]=["29","1.24395"],y[20]=["30","1.24981"],y[21]=["31","1.25540"],y[22]=["32","1.26075"],y[23]=["33","1.26588"],y[24]=["34","1.27079"],y[25]=["35","1.27079"],y[26]=["36","1.28004"],y[27]=["37","1.28441"],y[28]=["38","1.28861"],y[29]=["39","1.29266"],y[30]=["40","1.29657"],y[31]=["41","1.30035"],y[32]=["42","1.30399"],y[33]=["43","1.30752"],y[34]=["44","1.31094"],y[35]=["45","1.31425"],y[36]=["46","1.31746"],y[37]=["47","1.32058"],y[38]=["48","1.32360"],y[39]=["49","1.32653"],y[40]=["50","1.32939"],y[41]=["60","1.35412"],y[42]=["70","1.37364"],y[43]=["80","1.38959"],y[44]=["90","1.40294"],y[45]=["100","1.41433"],y[46]=["110","1.42421"],y[47]=["120","1.43289"],y[48]=["130","1.44060"],y[49]=["140","1.44750"],y[50]=["150","1.45372"],y[51]=["160","1.45938"],y[52]=["170","1.46456"],y[53]=["180","1.46931"],y[54]=["190","1.47370"],y[55]=["200","1.47777"],y[56]=["250","1.49443"],y[57]=["300","1.50687"],y[58]=["400","1.52453"],y[59]=["500","1.53671"],""!=n&&"/"!=n)for(let e=0;e<y.length;e++)1*y[e][0]==n&&(a=y[e][1]);return a}},{funName:"YJK2",funDesc:"混凝土芯样强度K2查表",funDefaultVal:null,funParams:[{name:"试件数量",repeatable:!1,optional:!1},{name:"直径",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=t.allCellVals[0],y=t.allCellVals[1],o=new Array;if(o[0]=["10","2.91096","2.56837"],o[1]=["11","2.81499","2.50262"],o[2]=["12","2.73634","2.44825"],o[3]=["13","2.67050","2.40240"],o[4]=["14","2.61443","2.36311"],o[5]=["15","2.56600","2.32898"],o[6]=["16","2.52366","2.29900"],o[7]=["17","2.48626","2.27240"],o[8]=["18","2.45295","2.24862"],o[9]=["19","2.42304","2.22720"],o[10]=["20","2.39600","2.20778"],o[11]=["21","2.37142","2.19007"],o[12]=["22","2.34896","2.17385"],o[13]=["23","2.32832","2.15891"],o[14]=["24","2.30929","2.14510"],o[15]=["25","2.29167","2.13229"],o[16]=["26","2.27530","2.12037"],o[17]=["27","2.26005","2.10924"],o[18]=["28","2.24578","2.09881"],o[19]=["29","2.23241","2.08903"],o[20]=["30","2.21984","2.07982"],o[21]=["31","2.20800","2.07113"],o[22]=["32","2.19682","2.06292"],o[23]=["33","2.18625","2.05514"],o[24]=["34","2.17623","2.04776"],o[25]=["35","2.16672","2.04075"],o[26]=["36","2.15768","2.03407"],o[27]=["37","2.14906","2.02771"],o[28]=["38","2.14085","2.02164"],o[29]=["39","2.13300","2.01583"],o[30]=["40","2.12549","2.01027"],o[31]=["41","2.11831","2.00494"],o[32]=["42","2.11142","1.99983"],o[33]=["43","2.10481","1.99493"],o[34]=["44","2.09846","1.99021"],o[35]=["45","2.09235","1.98567"],o[36]=["46","2.08648","1.98130"],o[37]=["47","2.08081","1.97708"],o[38]=["48","2.07535","1.97302"],o[39]=["49","2.07008","1.96909"],o[40]=["50","2.06499","1.96529"],o[41]=["60","2.02216","1.93327"],o[42]=["70","1.98987","1.90903"],o[43]=["80","1.96444","1.87428"],o[44]=["90","1.94376","1.87428"],o[45]=["100","1.92654","1.86125"],o[46]=["110","1.91191","1.85017"],o[47]=["120","1.89929","1.84059"],o[48]=["130","1.88827","1.83222"],o[49]=["140","1.87852","1.82481"],o[50]=["150","1.86984","1.81820"],o[51]=["160","1.86203","1.81225"],o[52]=["170","1.85497","1.80686"],o[53]=["180","1.84854","1.80196"],o[54]=["190","1.84265","1.79746"],o[55]=["200","1.83724","1.79332"],o[56]=["250","1.81547","1.77667"],o[57]=["300","1.79964","1.76454"],o[58]=["400","1.77776","1.74773"],o[59]=["500","1.76305","1.73641"],"70"==y){if(""!=n&&"/"!=n)for(let e=0;e<o.length;e++)1*o[e][0]==n&&(a=o[e][1])}else if("100"==y&&""!=n&&"/"!=n)for(let e=0;e<o.length;e++)1*o[e][0]==n&&(a=o[e][2]);return a}},{funName:"YJCSHTJZM",funDesc:"超声回弹浇筑面修正查表",funDefaultVal:null,funParams:[{name:"浇筑面",repeatable:!1,optional:!1},{name:"回弹值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=new Array("20.0","25.0","30.0","35.0","40.0","45.0","50.0"),o=new Array("2.5","2.0","1.5","1.0","0.5","0","0"),x=new Array("3.0","2.5","2.0","1.5","1.0","0.5","0");1*n>50?n="50.0":1*n<20&&(n="20.0");let r="";if("/"!=n){if("侧面"==a)r="0.0";else if("顶面"==a){let e,l;l=!1;for(let t=0;t<y.length;t++)n!=y[t]||(e=o[t],l=!0);if(0==l)for(let l=0;l<o.length;l++)n>y[l]&&(e=FormulaUtils.commFun.InterpolationMethod_y(y[l],y[l+1],o[l],o[l+1],n));r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(e,-1)}else if("底面"==a){let e,l;l=!1;for(let t=0;t<x.length;t++)n!=y[t]||(e=x[t],l=!0);if(0==l)for(let l=0;l<x.length;l++)n>y[l]&&(e=FormulaUtils.commFun.InterpolationMethod_y(y[l],y[l+1],-x[l],-x[l+1],n));r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(e,-1)}return r}}},{funName:"YJCSHTQD",funDesc:"超声回弹强度换算计算",funDefaultVal:null,funParams:[{name:"fccu,i",repeatable:!1,optional:!1},{name:"υai^",repeatable:!1,optional:!1},{name:"Rai^",repeatable:!1,optional:!1},{name:"声速值平均值(km/s)",repeatable:!1,optional:!1},{name:"超声测试面修正系数β",repeatable:!1,optional:!1},{name:"回弹平均值",repeatable:!1,optional:!1},{name:"浇筑面修正值",repeatable:!1,optional:!1},{name:"角度修正值",repeatable:!1,optional:!1},{name:"平测声速修正系数λ",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<9)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3],x=t.allCellVals[4],r=t.allCellVals[5],s=t.allCellVals[6],i=t.allCellVals[7],u=t.allCellVals[8],m="";if("/"!=r&&""!=r&&"/"!=o&&""!=o){let e=1*o*x*u;(""==u||"/"==u||isNaN(u))&&(e=1*o*x);let l=1*r+1*i+1*s,t=1*a*Math.pow(e,n)*Math.pow(l,y);m=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(t,-1)}return m}},{funName:"YJCSHTJD",funDesc:"超声回弹角度修正查表",funDefaultVal:null,funParams:[{name:"测试角度",repeatable:!1,optional:!1},{name:"回弹值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y="";n>50?n="50.0":n<20&&(n="20.0");let o=new Array,x=new Array;if(a>0&&n.length>=2){o=new Array("30","45","60","90");let e=0;x[0]=new Array("20.0-3.0","25.0-2.8","30.0-2.5","35-2.3","40.0-2.0","45.0-1.8","50.0-1.5"),x[1]=new Array("20.0-4.0","25.0-3.8","30.0-3.5","35-3.3","40.0-3.0","45.0-2.8","50.0-2.5"),x[2]=new Array("20.0-5.0","25.0-4.5","30.0-4.0","35-3.8","40.0-3.5","45.0-3.3","50.0-3.0"),x[3]=new Array("20.0-6.0","25.0-5.5","30.0-5.0","35-4.5","40.0-4.0","45.0-3.8","50.0-3.5");for(let l=0;l<o.length;l++)o[l]==a&&(e=l);for(let l=0;l<x[e].length;l++){let t=new String;if(t=x[e][l],t=t.split("-"),t[0]==n)y=-t[1];else{let a;if(n>t[0]){let t,o;a=l,t=x[e][a],o=x[e][a+1],t=t.split("-"),o=o.split("-"),y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(t[0],o[0],-t[1],-o[1],n),-1)}}}}else if(a<0&&n.length>=2){o=new Array("-30","-45","-60","-90");let e=0;x[0]=new Array("20.0-2.5","25.0-2.3","30.0-2.0","35.0-1.8","40.0-1.5","45.0-1.3","50.0-1.0"),x[1]=new Array("20.0-3.0","25.0-2.8","30.0-2.5","35.0-2.3","40.0-2.0","45.0-1.8","50.0-1.5"),x[2]=new Array("20.0-3.5","25.0-3.3","30.0-3.0","35.0-2.8","40.0-2.5","45.0-2.3","50.0-2.0"),x[3]=new Array("20.0-4.0","25.0-3.8","30.0-3.5","35.0-3.3","40.0-3.0","45.0-2.8","50.0-2.5");for(let l=0;l<o.length;l++)o[l]==a&&(e=l);for(let l=0;l<x[e].length;l++){let t=new String;if(t=x[e][l],t=t.split("-"),t[0]==n)y=t[1];else{let a;if(Math.abs(n)>Math.abs(t[0])){let t,o;a=l,t=x[e][a],o=x[e][a+1],t=t.split("-"),o=o.split("-"),y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(t[0],o[0],t[1],o[1],n),-1)}}}}return"0"==a&&(y="0"),isNaN(y)||""==y?"/":FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(y,-1)}},{funName:"YJTDM",funDesc:"土样定名及代号",funDefaultVal:null,funParams:[{name:"粗筛孔径60",repeatable:!1,optional:!1},{name:"粗筛60小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径40",repeatable:!1,optional:!1},{name:"粗筛40小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径20",repeatable:!1,optional:!1},{name:"粗筛20小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径10",repeatable:!1,optional:!1},{name:"粗筛10小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径5",repeatable:!1,optional:!1},{name:"粗筛5小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径2",repeatable:!1,optional:!1},{name:"粗筛2小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径2",repeatable:!1,optional:!1},{name:"细筛2占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径1",repeatable:!1,optional:!1},{name:"细筛1占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径0.5",repeatable:!1,optional:!1},{name:"细筛0.5占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径0.25",repeatable:!1,optional:!1},{name:"细筛0.25占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径0.075",repeatable:!1,optional:!1},{name:"细筛0.075占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径筛底",repeatable:!1,optional:!1},{name:"细筛筛底占总土质量百分比",repeatable:!1,optional:!1},{name:"液限",repeatable:!1,optional:!1},{name:"塑限",repeatable:!1,optional:!1},{name:"不均匀系数",repeatable:!1,optional:!1},{name:"曲率系数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<28)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3],x=t.allCellVals[4],r=t.allCellVals[5],s=t.allCellVals[6],i=t.allCellVals[7],u=t.allCellVals[8],m=t.allCellVals[9],c=t.allCellVals[10],h=t.allCellVals[11],p=t.allCellVals[12],f=t.allCellVals[13],d=t.allCellVals[14],g=t.allCellVals[15],b=t.allCellVals[16],C=t.allCellVals[17],S=t.allCellVals[18],w=t.allCellVals[19],F=t.allCellVals[20],V=t.allCellVals[21],E=t.allCellVals[22],N=t.allCellVals[23],v=t.allCellVals[24],A=t.allCellVals[25],D=t.allCellVals[26],U=t.allCellVals[27],J=[a+"-"+n,y+"-"+o,x+"-"+r,s+"-"+i,u+"-"+m,c+"-"+h,p+"-"+f,d+"-"+g,b+"-"+C,S+"-"+w,F+"-"+V,E+"-"+N];function k(e,l){let t="0";for(let a=0;a<J.length;a++){let n=J[a].split("-");1*n[0]==1*e&&("Y"==l?t=100-n[1]:"Z"==l&&(t=n[1]))}return t}let O="/";return 1*k("60","Y")>15?1*k("60","Y")>75?1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))>0?O="漂石B":1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))<=0&&(O="卵石Cb"):1*k("60","Y")>50&&1*k("60","Y")<=75?1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))>0?O="漂石夹土BSl":1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))<=0&&(O="卵石夹土CbSl"):1*k("60","Y")>15&&1*k("60","Y")<=50&&(1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))>0?O="漂石质土SlB":1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))<=0&&(O="卵石质土SlCb")):1*k("60","Y")<=15&&(1*k("0.075","Y")>50?1*k("2","Y")-k("60","Y")-(1*k("0.075","Y")-k("2","Y"))>0?k("0.075","Z")<=5?O=D>=5&&U>=1&&U<=3?"级配良好砾GW":"级配不良砾GP":k("0.075","Z")>5&&k("0.075","Z")<=15?O="含细粒土砾GF":k("0.075","Z")>15&&k("0.075","Z")<=50&&(O=A<.73*(1*v-20)?"粉土质砾GM":"黏土质砾GC"):1*k("2","Y")-k("60","Y")-(1*k("0.075","Y")-k("2","Y"))<=0&&(k("0.075","Z")<=5?O=D>=5&&U>=1&&U<=3?"级配良好砂SW":"级配不良砂SP":k("0.075","Z")>5&&k("0.075","Z")<=15?O="含细粒土砂SF":k("0.075","Z")>15&&k("0.075","Z")<=50&&(O=A<.73*(1*v-20)?"粉土质砂SM":"黏土质砂SC")):1*k("0.075","Y")<=50&&(1*k("0.075","Y")-1*k("60","Y")<=25?A>=.73*(1*v-20)?1*v>=50?O="高液限黏土CH":1*v<50&&A>7&&(O="低液限黏土CL"):1*v>=50?O="高液限粉土MH":1*v<50&&A<4&&(O="低液限粉土ML"):1*(1*k("0.075","Y")-1*k("60","Y"))>25&&1*(1*k("0.075","Y")-1*k("60","Y"))<=50&&(1*k("2","Y")-1*k("60","Y")-(1*k("0.075","Y")-1*k("2","Y"))>=0?A>=.73*(1*v-20)?v>=50?O="含砾高液限黏土CHG":v<50&&A>7&&(O="含砾低液限黏土CLG"):v>=50?O="含砾高液限粉土MHG":v<50&&A<4&&(O="含砾低液限粉土MLG"):A>=.73*(1*v-20)?v>=50?O="含砂高液限黏土CHS":v<50&&A>7&&(O="含砂低液限黏土CLS"):v>=50?O="含砂高液限粉土MHS":v<50&&A<4&&(O="含砂低液限粉土MLS")))),O}},{funName:"YJHTQD",funDesc:"回弹强度换算查表",funDefaultVal:null,funParams:[{name:"浇筑方式",repeatable:!1,optional:!1},{name:"修正后回弹值",repeatable:!1,optional:!1},{name:"碳化深度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2];return FormulaUtilsOther.YJHTQD(FormulaUtils.commFun,a,n,y)}},{funName:"DJCZL",funDesc:"地基承载力计算",funDefaultVal:null,funParams:[{name:"地基土类型",repeatable:!1,optional:!1},{name:"N63.5",repeatable:!1,optional:!1},{name:"修正系数",repeatable:!1,optional:!1},{name:"机械修正/水位修正",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<4)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3];var x,r=0;return"/"!=n&&""!=n||(n="1"),r="水位修正"==o?FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(n*y*1.1+1,1):"机械修正"==o?FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(n*y,1):n,"中砂-砂砾土"==a?r<3?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(40*r,1):r>=3&&r<=5?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(30*r+30,1):r>5&&(x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(40*r-20,1)):r<3?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(140/3*r,1):r>=3&&r<=5?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(30*r+50,1):r>5&&r<=12?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(40*r,1):r>12&&r<=22?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(30*r+120,1):r>22&&r<=24?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(25*r+230,1):r>24&&r<=26?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(20*r+350,1):r>26&&r<=30?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(15*r+480,1):r>30&&r<=35?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(8*r+690,1):r>35&&(x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(6*r+760,1)),x}},{funName:"YJLJJSYQ",funDesc:"钢筋机械连接技术要求",funDefaultVal:null,funParams:[{name:"牌号",repeatable:!1,optional:!1},{name:"接头等级",repeatable:!1,optional:!1},{name:"拉断性状",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2];var o;if("I级"==n){"HRB400"==a||"HRB400E"==a||"HRBF400"==a||"HRBF400E"==a?o="断于套筒"==y||"套筒纵向开裂"==y||"钢筋从套筒中拔出"==y||"其它链接组件破坏"==y?"≥594":"≥540":"HRB500"==a||"HRB500E"==a||"HRBF500"==a||"HRBF500E"==a?o="断于套筒"==y||"套筒纵向开裂"==y||"钢筋从套筒中拔出"==y||"其它链接组件破坏"==y?"≥693":"≥630":"HRB600"==a&&(o="断于套筒"==y||"套筒纵向开裂"==y||"钢筋从套筒中拔出"==y||"其它链接组件破坏"==y?"≥803":"≥730")}else"II级"==n?"HRB400"==a||"HRB400E"==a||"HRBF400"==a||"HRBF400E"==a?o="≥540":"HRB335"==a||"HRBF335"==a?o="≥455":"HRB500"==a||"HRB500E"==a||"HRBF500"==a||"HRBF500E"==a?o="≥630":"HRB600"==a&&(o="≥730"):"III级"==n&&("HRB400"==a||"HRB400E"==a||"HRBF400"==a||"HRBF400E"==a?o="≥500":"HRB500"==a||"HRB500E"==a||"HRBF500"==a||"HRBF500E"==a?o="≥625":"HRB600"==a&&(o="≥750"));return o}},{funName:"YJLJGJPD",funDesc:"机械连接钢筋结构判定",funDefaultVal:null,funParams:[{name:"技术要求1",repeatable:!1,optional:!1},{name:"技术要求2",repeatable:!1,optional:!1},{name:"技术要求3",repeatable:!1,optional:!1},{name:"抗压强度1",repeatable:!1,optional:!1},{name:"抗压强度2",repeatable:!1,optional:!1},{name:"抗压强度3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<6)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3],x=t.allCellVals[4],r=t.allCellVals[5];return a=1*a.replace("≥",""),n=1*n.replace("≥",""),y=1*y.replace("≥",""),"/"!=o&&"/"!=x&&"/"!=r?o>=a&&x>=n&&r>=y?"合格":o>=a&&x>=n&&r<y||o>=a&&x<n&&r>=y||o<a&&x>=n&&r>=y?"复检":"不合格":"/"}},{funName:"YJLJFJPD",funDesc:"机械连接钢筋结构复检判定",funDefaultVal:null,funParams:[{name:"技术要求1",repeatable:!1,optional:!1},{name:"技术要求2",repeatable:!1,optional:!1},{name:"技术要求3",repeatable:!1,optional:!1},{name:"技术要求4",repeatable:!1,optional:!1},{name:"技术要求5",repeatable:!1,optional:!1},{name:"技术要求6",repeatable:!1,optional:!1},{name:"抗压强度1",repeatable:!1,optional:!1},{name:"抗压强度2",repeatable:!1,optional:!1},{name:"抗压强度3",repeatable:!1,optional:!1},{name:"抗压强度4",repeatable:!1,optional:!1},{name:"抗压强度5",repeatable:!1,optional:!1},{name:"抗压强度6",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<12)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3],x=t.allCellVals[4],r=t.allCellVals[5],s=t.allCellVals[6],i=t.allCellVals[7],u=t.allCellVals[8],m=t.allCellVals[9],c=t.allCellVals[10],h=t.allCellVals[11];return a=1*a.replace("≥",""),n=1*n.replace("≥",""),y=1*y.replace("≥",""),o=1*o.replace("≥",""),x=1*x.replace("≥",""),r=1*r.replace("≥",""),isNaN(s)||isNaN(i)||isNaN(u)||isNaN(m)||isNaN(c)||isNaN(h)?"/":s>=a&&i>=n&&u>=y&&m>=o&&c>=x&&h>=r?"合格":"不合格"}},{funName:"YJHJFJPD",funDesc:"焊接钢筋结构复检判定",funDefaultVal:null,funParams:[{name:"牌号",repeatable:!1,optional:!1},{name:"接头极限强度1",repeatable:!1,optional:!1},{name:"接头极限强度2",repeatable:!1,optional:!1},{name:"接头极限强度3",repeatable:!1,optional:!1},{name:"接头极限强度4",repeatable:!1,optional:!1},{name:"接头极限强度5",repeatable:!1,optional:!1},{name:"接头极限强度6",repeatable:!1,optional:!1},{name:"断裂形状1",repeatable:!1,optional:!1},{name:"断裂形状2",repeatable:!1,optional:!1},{name:"断裂形状3",repeatable:!1,optional:!1},{name:"断裂形状4",repeatable:!1,optional:!1},{name:"断裂形状5",repeatable:!1,optional:!1},{name:"断裂形状6",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<13)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3],x=t.allCellVals[4],r=t.allCellVals[5],s=t.allCellVals[6],i=t.allCellVals[7],u=t.allCellVals[8],m=t.allCellVals[9],c=t.allCellVals[10],h=t.allCellVals[11],p=t.allCellVals[12];var f,d=new Array,g=new Array,b=0,C=0,S="/";if("/"!=(f=1*(f="HRB335"==a?"≥455":"R235"==a?"≥370":"Q235"==a?"≥410":"HRB400"==a||"HRB400E"==a?"≥540":"HPB300"==a?"≥420":"HRB500"==a||"HRBF500"==a||"HRB500E"==a||"HRBF500E"==a?"≥630":"/").replace("≥",""))&&"/"!=n&&"/"!=y&&"/"!=o&&"/"!=x&&"/"!=r&&"/"!=s&&"/"!=i&&"/"!=u&&"/"!=m&&"/"!=c&&"/"!=h&&"/"!=p){d.push(n,y,o,x,r,s),g.push(i,u,m,c,h,p);for(var w=0;w<d.length;w++)1*d[w]<f&&b++;for(var F=0;F<g.length;F++)"断于焊缝,呈脆性断裂"!=g[F]&&"断于热影响区,呈脆性断裂"!=g[F]||C++;S=b>0||C>=3?"不合格":"合格"}return S}},{funName:"YJWJLKQND",funDesc:"无机结合料空气黏度查表",funDefaultVal:null,funParams:[{name:"试验温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0];for(var n,y=new Array("8-17.49","10-17.59","12-17.68","14-17.78","16-17.88","18-17.98","20-18.09","22-18.19","24-18.28","26-18.37","28-18.47","30-18.57","32-18.67","34-18.76"),o=0;o<y.length;o++){a==(s=y[o].split("-"))[0]&&(n=s[1])}if(a.length>0){var x=a.substring(0,a.indexOf(".")),r=0;for(o=0;o<y.length;o++){var s;x==(s=y[o].split("-"))[0]&&(r=o)}if(r==y.length-1){var i=y[r].split("-"),u=y[r-1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(i[0],u[0],i[1],u[1],a),-2)}else{i=y[r].split("-"),u=y[r+1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(i[0],u[0],i[1],u[1],a),-2)}}return n}},{funName:"YJYSSMD",funDesc:"岩石-水密度公式",funDefaultVal:null,funParams:[{name:"试验温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0];for(var n,y=new Array("5-0.9999919","6-0.9999681","7-0.9999295","8-0.9998762","9-0.9998088","10-0.9997277","11-0.9996328","12-0.9995247","13-0.9994040","14-0.9992712","15-0.9991265","16-0.9989701","17-0.9988022","18-0.9986232","19-0.9984331","20-0.9982323","21-0.9980210","22-0.9977993","23-0.9975674","24-0.9973256","25-0.9970739","26-0.9968128","27-0.9965241","28-0.9962623","29-0.9959735","30-0.9956756","31-0.9953692","32-0.9950542","33-0.9947308","34-0.9943991","35-0.9940594"),o=0;o<y.length;o++){if(a==(s=y[o].split("-"))[0]){n=s[1];break}}if(String(a).length>2){var x=parseInt(a),r=0;for(o=0;o<y.length;o++){var s=y[o].split("-");x==Number(s[0])&&(r=o)}if(r==y.length-1){var i=y[r].split("-"),u=y[r-1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(i[0],u[0],i[1],u[1],a),-7)}else{i=y[r].split("-"),u=y[r+1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(i[0],u[0],i[1],u[1],a),-7)}}return n}},{funName:"YJHTTDZ",funDesc:"混凝土强度推定値公式",funDefaultVal:null,funParams:[{name:"强度换算值数组",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{let a=[];t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{a.push(e)}):a.push(e)});let n=a;var y,o=0,x=new Array,r=new Array,s=new Array;for(let e=0;e<10;e++)""!=n[e]&&"/"!=n[e]&&(x[o]=n[e],1*n[e],o++),(n[e].indexOf("<")>-1||n[e].indexOf(">")>-1)&&r.push(n[e]),-1==n[e].indexOf("<")&&-1==n[e].indexOf(">")&&-1==n[e].indexOf("/")&&s.push(n[e]);return y=1*(y=FormulaUtils.commFun.getAverage(a.filter(e=>FormulaUtils.commFun.isNumber(e))))-1.645*FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(s),-3),y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(y,-1),10==x.length?10==r.length?">60.0":r.length>0?FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.getMin(s),-1):y:s.length<1?">60.0":FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.getMin(s),-1)}},{funName:"YJSXS",funDesc:"水温查表",funDefaultVal:null,funParams:[{name:"温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0]+"";for(var n=new Array("15-0.002","16-0.003","17-0.003","18-0.004","19-0.004","20-0.005","21-0.005","22-0.006","23-0.006","24-0.007","25-0.008"),y=0;y<n.length;y++){a==(r=n[y].split("-"))[0]&&(o=r[1])}if(a.length>2){var o;o=(o=a).substring(0,o.indexOf("."));var x=0;for(y=0;y<n.length;y++){var r;o==(r=n[y].split("-"))[0]&&(x=y)}if(x==n.length-1){var s=n[x].split("-"),i=n[x-1].split("-");o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(s[0],i[0],s[1],i[1],a),-3)}else{s=n[x].split("-"),i=n[x+1].split("-");o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(s[0],i[0],s[1],i[1],a),-3)}}return o}},{funName:"YJFN635",funDesc:"重型动力触探承载力查表",funDefaultVal:null,funParams:[{name:"地基土类型",repeatable:!1,optional:!1},{name:"修正后击数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";let a=t.allCellVals[0],n=t.allCellVals[1];var y;if("中砂、粗砂、砾砂"==a)var o=new Array("15-0.002","16-0.003","17-0.003","18-0.004","19-0.004","20-0.005","21-0.005","22-0.006","23-0.006","24-0.007","25-0.008");else o=new Array("3-140","4-170","5-200","6-240","7-280","8-320","9-360","10-400","12-480","14-540","16-600","18-660","20-720","22-780","24-830","26-870","28-900","30-930","35-970","40-1000");for(var x=0;x<o.length;x++){var r=o[x].split("-");n==r[0]&&(y=r[1])}return y}},{funName:"YJLHL",funDesc:"沥青蜡含量",funDefaultVal:null,funParams:[{name:"析出蜡质量1",repeatable:!1,optional:!1},{name:"析出蜡质量2",repeatable:!1,optional:!1},{name:"析出蜡质量3",repeatable:!1,optional:!1},{name:"蜡含量1",repeatable:!1,optional:!1},{name:"蜡含量2",repeatable:!1,optional:!1},{name:"蜡含量3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<6)return"";var a=[t.allCellVals[0],t.allCellVals[1],t.allCellVals[2]],n=[t.allCellVals[3],t.allCellVals[4],t.allCellVals[5]],y=a.map(e=>+e>=.065&&+e<=.085).map((e,l)=>e?l:-1).filter(e=>e>=0);if(0===y.length)return"重新试验";var o=y.map(e=>+n[e]),x=o.reduce((e,l)=>e+l)/o.length;return FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(x,-1)}},{funName:"YJNFX",funDesc:"沥青黏附性",funDefaultVal:null,funParams:[{name:"沥青膜剥落情况",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0];return"沥青膜裹覆率接近100%"==a?"5":"沥青膜少部剥落,厚度不均,沥青膜裹覆率不小于90%"==a?"4":"沥青膜局部明显剥落,沥青膜裹覆率为75%~90%"==a?"3":"沥青膜大部分剥落,沥青膜裹覆率为25%~75%"==a?"2":"沥青膜几乎完全剥落,沥青膜裹覆率小于25%"==a?"1":"/"}},{funName:"YJNDCS",funDesc:"沥青黏度常数",funDefaultVal:null,funParams:[{name:"毛细管型号",repeatable:!1,optional:!1},{name:"标管编号",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";let a=t.allCellVals[0],n=t.allCellVals[1];var y;if("管B"==n)var o=new Array("25-0.2","50-0.8","100-3.2","200-12.8","400-50.0");else if("管C"==n)o=new Array("25-0.1","50-0.4","100-1.6","200-6.4","400-25.0");else if("管D"==n)o=new Array("25-0.07","50-0.3","100-1.0","200-4.0","400-16.0");else if("球B"==n)o=new Array("4-0.0002","5-0.0006","6-0.002","7-0.006","8-0.02","9-0.06");else if("球C"==n)o=new Array("4-0.00006","5-0.0002","6-0.0006","7-0.002","8-0.006","9-0.02");for(var x=0;x<o.length;x++){var r=o[x].split("-");a==r[0]&&(y=r[1])}return y}},{funName:"YJTXHF",funDesc:"沥青弹性恢复率",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2];var o=[a,n,y],x=(1*a+1*n+1*y)/3;if(Math.max(...o)-Math.min(...o)<=.05*x)return x;var r=o.slice().sort((e,l)=>e-l);return 1*r[2]-1*r[1]<=.05*x?(1*r[1]+1*r[2])/2:"/"}},{funName:"YJSZF",funDesc:"沥青四组分FID法",funDefaultVal:null,funParams:[{name:"数值数组",repeatable:!1,optional:!1},{name:"标准差",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";let a=[];for(let e=0;e<t.allCellVals.length-1;e++)a.push(t.allCellVals[e]);let n=t.allCellVals[t.allCellVals.length-1];var y;if(y=FormulaUtils.commFun.getAverage(a),n<=5)return y;a.sort((e,l)=>e-l),a.shift(),a.pop();var o=FormulaUtils.commFun.GetS(a),x=FormulaUtils.commFun.getAverage(a);return y=o<=5?x:"无效"}},{funName:"YJSZFBZC",funDesc:"四组分标准差",funDefaultVal:null,funParams:[{name:"数值数组",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals;var n;return(n=FormulaUtils.commFun.GetS(a))<=5?n:(a.sort((e,l)=>e-l),a.shift(),a.pop(),n=FormulaUtils.commFun.GetS(a))}},{funName:"YJFRAC",funDesc:"根据小数返回分数(1/x)形式的文本(如:1/300、1/478)",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"被除数",repeatable:!1,optional:!1},{name:"除数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";const a=t.allCellVals[0],n=t.allCellVals[1],y=rapidUtils.preciseCalc(a,n,"div"),o=Math.abs(rapidUtils.preciseCalc(n,a,"div"));let x=Math.round(o);x<1&&(x=1);const r=y<0?"-":"";return l.getCell(t.cellObj.row,t.cellObj.col).formatter(`${r}1/${x}`),y}},{funName:"YJDXPD",funDesc:"单项判定",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"判定范围,格式如:-2,2、-2~2或±2",repeatable:!1,optional:!1},{name:"判定值,如:1",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"/";try{const e=t.allCellVals[0],l=t.allCellVals[1];if(null==e||null==e||"string"!=typeof e||"number"!=typeof l||isNaN(l))return"/";const a=e.replace(/\s/g,"");let n,y;if(a.includes(",")){const e=a.split(",");if(2!==e.length)return"/";n=parseFloat(e[0]),y=parseFloat(e[1])}else if(a.includes("~")){const e=a.split("~");if(2!==e.length)return"/";n=parseFloat(e[0]),y=parseFloat(e[1])}else{if(!a.includes("±"))return"/";{const e=a.replace("±",""),l=parseFloat(e);if(isNaN(l))return"/";n=-l,y=l}}return isNaN(n)||isNaN(y)?"/":l>=n&&l<=y?"合格":"不合格"}catch(e){return"/"}}},{funName:"YJTEXTJOIN",funDesc:"此函数将多个区域和/或字符串的文本组合起来,并包括你在要组合的各文本值之间指定的分隔符。",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"需要用作判断的数字数组、字符串数组或单值",repeatable:!1,optional:!1},{name:"返回值的数组",repeatable:!1,optional:!1},{name:"比较大小或比较相等的字符串,格式为:“>”、“<”、“>=”、“<=”、“=”、“±”",repeatable:!1,optional:!1},{name:"比较的值,类型为数字类型或字符串类型,如:3或“合格”",repeatable:!1,optional:!1},{name:"返回值的分隔符,默认为:,",repeatable:!1,optional:!1},{name:"是否返回相反的结果(传数字的1或0,0:满足条件的结果、1:相反的结果),默认为:0",repeatable:!1,optional:!1},{name:"是否返回符合或不符合结果的数量(传数字的1或0,0:不返回数量、1:返回数量),默认为:0",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellValsEw.length<5)return"/";let a=t.allCellValsEw[0],n=t.allCellValsEw[1],y=t.allCellValsEw[2],o=t.allCellValsEw[3],x=t.allCellValsEw[4],r=t.allCellValsEw.length<6?0:t.allCellValsEw[5],s=t.allCellValsEw.length<7?0:t.allCellValsEw[6];try{(null==a||null==a||"string"==typeof a&&0==a.trim().length)&&(a=[]),(null==n||null==n||"string"==typeof n&&0==n.trim().length)&&(n=[]),("number"==typeof a||"string"==typeof a&&a.trim().length>0)&&(a=[a]),"string"==typeof n&&n.trim().length>0&&(n=[n]),Array.isArray(y)&&y.length>0&&(y=y[0]),Array.isArray(o)&&o.length>0&&(o=o[0]),Array.isArray(x)&&x.length>0&&(x=x[0]),Array.isArray(r)&&r.length>0&&(r=r[0]),Array.isArray(s)&&s.length>0&&(s=s[0]),"1"!=r&&"0"!=r||(r=parseInt(r)),0!=r&&1!=r&&(r=0),"1"!=s&&"0"!=s||(s=parseInt(s)),0!=s&&1!=s&&(s=0);const e=n.length>a.length&&1==a.length;if(!Array.isArray(a)||!Array.isArray(n)||"string"!=typeof y||"string"!=typeof x)return"/";if(![">",">","<","<",">=","≥","≧","<=","≤","≦","=","=","±"].includes(y))return"/";const l=a.length>0&&("number"==typeof a[0]||!isNaN(parseFloat(a[0]))),t=[],i=[];for(let x=0;x<n.length;x++){let r=!1;if(l){const l=e?parseFloat(a[0]):parseFloat(a[x]),t=parseFloat(n[x]),s=parseFloat(o);if(isNaN(l)||isNaN(s)&&!e)continue;switch(y){case">":case">":r=e?t>l:l>s;break;case"<":case"<":r=e?t<l:l<s;break;case">=":case"≥":case"≧":r=e?t>=l:l>=s;break;case"<=":case"≤":case"≦":r=e?t<=l:l<=s;break;case"=":case"=":r=e?t===l:l===s;break;case"±":r=t>=l-s&&t<=l+s}}else r=String(a[x])===String(o);r?t.push(x):i.push(x)}const u=(0==r?t:i).map(e=>e>=0&&e<n.length?String(n[e]):"").filter(e=>""!==e&&"/"!=e&&"null"!=e&&null!=e&&null!=e);return 1==s?u.length:u.join(x)}catch(e){return"/"}}},{funName:"YJDLNZXSB",funDesc:"水温修正系数查表",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"/";const a=t.allCellVals[0];for(var n="/",y=new Array("18-1.050","18.5-1.038","19-1.025","19.5-1.012","20-1.000","20.5-0.988","21-0.976","21.5-0.965","22-0.953"),o=0;o<y.length;o++){a==(r=y[o].split("-"))[0]&&(n=r[1])}if(a.length>2){n=a;var x=0;for(o=0;o<y.length;o++){var r;n==(r=y[o].split("-"))[0]&&(x=o)}if(x==y.length-1){var s=y[x].split("-"),i=y[x-1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(s[0],i[0],s[1],i[1],a),-3)}else{s=y[x].split("-"),i=y[x+1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(s[0],i[0],s[1],i[1],a),-3)}}return n}},{funName:"YJWDDLZ",funDesc:"马歇尔稳定度/流值",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1},{name:"数值4",repeatable:!1,optional:!1},{name:"数值5",repeatable:!1,optional:!1},{name:"数值6",repeatable:!1,optional:!1},{name:"超过比例,如:0.15、0.2",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<7)return"/";const a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3],x=t.allCellVals[4],r=t.allCellVals[5],s=t.allCellVals[6];if("number"!=typeof s||isNaN(s))return"/";const i=[parseFloat(a),parseFloat(n),parseFloat(y),parseFloat(o),parseFloat(x),parseFloat(r)];let u=0,m=[];for(let e=0;e<i.length;e++)"number"!=typeof i[e]||isNaN(i[e])?u++:m.push(i[e]);if(u==i.length)return"/";const c=m.reduce((e,l)=>rapidUtils.preciseCalc(e,l,"add"),0),h=rapidUtils.preciseCalc(c,m.length,"div");if(0===m.filter(e=>rapidUtils.preciseCalc(e,h,"sub")>rapidUtils.preciseCalc(s,e,"mul")).length)return h;const p=m.filter(e=>rapidUtils.preciseCalc(e,h,"sub")<=rapidUtils.preciseCalc(s,e,"mul"));if(0===p.length)return"/";const f=p.reduce((e,l)=>rapidUtils.preciseCalc(e,l,"add"),0);return rapidUtils.preciseCalc(f,p.length,"div")}},{funName:"YJTREND",funDesc:"返回线性回归拟合线的一组纵坐标值(y值)",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"已知的因变量值(y值)数组",repeatable:!1,optional:!1},{name:"已知的自变量值(x值)数组",repeatable:!1,optional:!1},{name:"希望预测y值的新x值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>"OK"}]},WorkbookUtils={loadSjsFile:(e,l,t,a)=>__awaiter(void 0,void 0,void 0,function*(){const n=yield fetch(l,{method:"GET"});if(n.ok){const l=yield n.blob(),y=new Blob([l],{type:"application/zip"});e.open(y,()=>__awaiter(void 0,void 0,void 0,function*(){"function"==typeof t&&(yield t(e))}),e=>__awaiter(void 0,void 0,void 0,function*(){"function"==typeof a&&(yield a(e))}))}}),getWookbookBlob:e=>__awaiter(void 0,void 0,void 0,function*(){return new Promise((l,t)=>{e.save(e=>l(e),e=>t(e))})}),print:(e,l)=>{const t=l.getSheetCount();for(let a=0;a<t;a++){const t=l.getSheet(a);let n=t.printInfo();n.showRowHeader(e.Spread.Sheets.Print.PrintVisibilityType.hide),n.showColumnHeader(e.Spread.Sheets.Print.PrintVisibilityType.hide),n.rowStart(0),n.rowEnd(t.getRowCount()),n.columnStart(1),n.columnEnd(77),n.margin({top:59.055119999999995,bottom:59.055119999999995,left:98.42520000000002,right:59.055119999999995,header:0,footer:0}),n.paperSize(new e.Spread.Sheets.Print.PaperSize(e.Spread.Sheets.Print.PaperKind.a4)),t.printInfo(n)}l.print()},exportToExcel:(e,l,t="")=>{const a=l.toJSON({includeBindingSource:!0}),n=["YJMAX","YJMIN","YJMID","YJGETNUM","YJGETS","YJGETCV","YJINTERPOLATIONMETHOD","YJINTERPOLATIONMETHOD_Y"],y=new e.Spread.Sheets.Workbook;y.fromJSON(a),y.suspendPaint();const o=y.getSheetCount();for(let e=0;e<o;e++){const l=y.getSheet(e);l.suspendCalcService();for(var x=0;x<l.getRowCount();x++)for(var r=0;r<l.getColumnCount();r++){const e=l.getFormula(x,r);if(null!=e&&null!=e&&n.some(l=>e.indexOf(l)>-1)){const e=l.getValue(x,r);l.getCell(x,r).formula(void 0),l.setValue(x,r,e)}}l.resumeCalcService(!1)}y.resumePaint(),""==t&&(t=y.getSheet(0).name());let s={fileType:e.Spread.Sheets.FileType.excel,includeBindingSource:!0,includeStyles:!0,includeFormulas:!0,saveAsView:!1,rowHeadersAsFrozenColumns:!1,columnHeadersAsFrozenRows:!1,includeAutoMergedCells:!1,includeCalcModelCache:!1,includeUnusedNames:!0,includeEmptyRegionCells:!0};y.export(e=>{fileSaver.saveAs(e,`${t}.xlsx`)},()=>{},s),y.destroy()},mergeWorkbooksToExcelOrPdf:(e,l,...t)=>__awaiter(void 0,[e,l,...t],void 0,function*(e,l,t=!0,a,n=[{name:"宋体",type:"normal",url:"/spreadJsFonts/simsun.ttf"},{name:"Arial",type:"normal",url:"/spreadJsFonts/arial.ttf"}],y=77,o=!1){if(!l||0==l.length)return;t||(yield WorkbookUtils.registerFont(e,n));const x=new e.Spread.Sheets.Workbook;x.suspendPaint(),x.fromJSON(l[0].toJSON());for(let t=1;t<l.length;t++){const a=new e.Spread.Sheets.Workbook;a.suspendPaint(),a.fromJSON(l[t].toJSON());const n=t+"";a.getNamedStyles().forEach(function(e){e.name=`new_${n}_${e.name}`,x.addNamedStyle(e)});let y=a.getSheet(0),o=JSON.stringify(y.toJSON());o=o.replace(/"style":"/g,'"style":"new_'+n+"_"),o=o.replace(/"parentName":"/g,'"parentName":"new_'+n+"_");let r=new e.Spread.Sheets.Worksheet(`newSheet${n}_`);x.addSheet(x.getSheetCount(),r),r.fromJSON(JSON.parse(o));const s=r.getRowCount(),i=x.getSheet(0);i.addRows(i.getRowCount(),s);let u=i.getRowCount()-s;const m=[new e.Spread.Sheets.Range(-1,-1,-1,-1)],c=[new e.Spread.Sheets.Range(u,0,s,r.getColumnCount())];x.commandManager().execute({cmd:"clipboardPaste",sheetName:i.name(),fromSheet:r,fromRanges:m,pastedRanges:c,isCutting:!1,clipboardText:"",pasteOption:e.Spread.Sheets.ClipboardPasteOptions.all}),x.removeSheet(x.getSheetCount()-1),i.clearSelection(),a.resumePaint(),a.destroy()}const r=x.getActiveSheet();if(r.zoom(1),r.options.rowHeaderVisible=!0,r.options.colHeaderVisible=!0,x.options.tabStripVisible=!0,x.options.showHorizontalScrollbar=!0,x.options.showVerticalScrollbar=!0,x.options.scrollbarMaxAlign=!1,!t){let l=x.getSheet(x.getSheetCount()-1).printInfo();l.margin({top:0,bottom:0,left:0,right:0,header:0,footer:0}),l.columnEnd(y),l.showBorder(!1),l.showGridLine(!1),l.blackAndWhite(!1),l.showRowHeader(e.Spread.Sheets.Print.PrintVisibilityType.hide),l.showColumnHeader(e.Spread.Sheets.Print.PrintVisibilityType.hide),l.zoomFactor(o?1:1.06)}return x.resumePaint(),t?WorkbookUtils.exportToExcel(e,x,a):x.savePDF(function(e){fileSaver.saveAs(e,`${a&&a.length>0?a:"文件"}.pdf`)},console.log),x}),registerFont:(e,l)=>__awaiter(void 0,void 0,void 0,function*(){return new Promise((t,a)=>__awaiter(void 0,void 0,void 0,function*(){try{l&&0!=l.length||t(null);for(let a=0;a<l.length;a++){const y=l[a],o=yield fetch(y.url,{method:"GET"});if(o.ok){const l=yield o.blob();var n=new FileReader;n.readAsArrayBuffer(l),n.onload=function(a){var o=n.result,x={};x[y.type]=o,e.Spread.Sheets.PDF.PDFFontsManager.registerFont(y.name,x),t(l)}}}}catch(e){a(e)}}))})};exports.BusinessUtils=BusinessUtils,exports.CommonUtils=CommonUtils,exports.EChartsUtils=EChartsUtils,exports.FormulaUtils=FormulaUtils,exports.SheetUtils=SheetUtils,exports.WorkbookUtils=WorkbookUtils;
|
|
1
|
+
"use strict";var rapidUtils=require("rapid-utils"),echarts=require("echarts"),math=require("mathjs"),fileSaver=require("file-saver");function _interopNamespaceDefault(e){var l=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(l,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}}),l.default=e,Object.freeze(l)}var echarts__namespace=_interopNamespaceDefault(echarts),math__namespace=_interopNamespaceDefault(math);function __awaiter(e,l,t,a){return new(t||(t=Promise))(function(n,y){function o(e){try{r(a.next(e))}catch(e){y(e)}}function x(e){try{r(a.throw(e))}catch(e){y(e)}}function r(e){var l;e.done?n(e.value):(l=e.value,l instanceof t?l:new t(function(e){e(l)})).then(o,x)}r((a=a.apply(e,l||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const CommonUtils={getFileBlob:e=>__awaiter(void 0,void 0,void 0,function*(){const l=yield fetch(e,{method:"GET"});if(l.ok){return yield l.blob()}return null}),getColLetterName:e=>{e+=1;let l="";for(;e>0;){const t=(e-1)%26;l=String.fromCharCode(t+65)+l,e=Math.floor((e-1)/26)}return l.toUpperCase()}},SheetUtils={getActiveSheetSelectCells:e=>e.getActiveSheet().getSelections(),setActiveSheetSelectCells:(e,l)=>{e.getActiveSheet().setSelection(l.row,l.col,l.rowCount,l.colCount)},getAllCellObjsByRange:(e,l,t=!1)=>SheetUtils.getAllCellObjsByRanges(e,[l],t),getAllCellObjsByRanges:(e,l,t=!1,a=!1)=>{let n=[];return l.forEach((l,a)=>{let y=e.getSpans(l);if(y=rapidUtils.orderByJson(y,t?["col","row"]:["row","col"],["asc","asc"]),y.forEach(e=>{n.push({row:e.row,col:e.col,rowCount:e.rowCount,colCount:e.colCount})}),void 0===l.row||void 0===l.col||void 0===l.rowCount||void 0===l.colCount)throw new Error("row、col、rowCount、colCount is required.");for(let t=l.row;t<+l.row+l.rowCount;t++)for(let a=l.col;a<l.col+l.colCount;a++){null==e.getSpan(t,a)&&n.push({row:t,col:a,rowCount:1,colCount:1})}}),a||(n=rapidUtils.orderByJson(n,t?["col","row"]:["row","col"],["asc","asc"])),n},getAllCellObjsByRangeStr:(e,l)=>{let t=[];if(l.indexOf(",")>-1){l.split(",").forEach((l,a)=>{const n=l.substring(l.lastIndexOf("!")+1);t.push(e.getRange(n))})}else t.push(e.getRange(l));return t},getSheetAllCellObjs:e=>{const l=[{row:0,col:0,rowCount:e.getRowCount(),colCount:e.getColumnCount()}];return SheetUtils.getAllCellObjsByRanges(e,l)},getSheetSelectCellObjs:(e,l=!1)=>{const t=e.getSelections();return SheetUtils.getAllCellObjsByRanges(e,t,l)},getActiveSheetSelectCellObjs:(e,l=!1)=>{const t=e.getActiveSheet();return SheetUtils.getSheetSelectCellObjs(t,l)},getSheetCellObjsByGroup:(e,l,t="row")=>{e.suspendPaint();const a=SheetUtils.getAllCellObjsByRange(e,l),n=rapidUtils.groupByJson(a,t),y=[];return rapidUtils.forEachJson(n,(e,l,t)=>{y.push(e)}),e.resumePaint(),y},getSheetSelectVals:(e,l=!1,t)=>{const a=SheetUtils.getSheetSelectCellObjs(e,l);let n=[];return a.forEach(l=>{let a=e.getValue(l.row,l.col);null!=t&&null!=t&&null==a&&(a=t),n.push(a)}),n},getActiveSheetSelectVals:(e,l=!1,t)=>{const a=e.getActiveSheet();return SheetUtils.getSheetSelectVals(a,l,t)},getSheetRangeValsByGroup:(e,l,t="row",a)=>{e.suspendPaint();const n=SheetUtils.getAllCellObjsByRange(e,l),y=rapidUtils.groupByJson(n,t),o=[];return rapidUtils.forEachJson(y,(l,t,n)=>{const y=[];rapidUtils.forEachJson(l,(l,t,n)=>{let o=e.getValue(l.row,l.col);null!=a&&null!=a&&null==o&&(o=a),y.push(o)}),o.push(y)}),e.resumePaint(),o},getCellType:(e,l,t,a)=>{let n;const y=l.getCellType(t,a);if(y instanceof e.Spread.Sheets.CellTypes.Button?n="button":y instanceof e.Spread.Sheets.CellTypes.RadioButtonList?n="radio":y instanceof e.Spread.Sheets.CellTypes.CheckBox?n="checkbox":y instanceof e.Spread.Sheets.CellTypes.CheckBoxList?n="checkboxList":y instanceof e.Spread.Sheets.CellTypes.HyperLink?n="hyperLink":y instanceof e.Spread.Sheets.CellTypes.ComboBox&&(n="comboBox"),null==n||null==n){const e=l.getStyle(t,a);e&&e.cellButtons&&e.cellButtons.length>0&&("openDateTimePicker"==e.cellButtons[0].command?e.dropDowns&&e.dropDowns.length>0&&(n=e.dropDowns[0].option.showDateRange?"dateRange":"date"):"openCalculator"==e.cellButtons[0].command&&(n="calc"))}return n},setSheetZoom:(e,l)=>{e.suspendPaint();const t=e.getSheetCount();for(let a=0;a<t;a++){e.getSheet(a).zoom(l)}e.resumePaint()},setActiveSheetSelectBgColor:(e,l)=>{const t=e.getActiveSheet();t.suspendPaint();SheetUtils.getActiveSheetSelectCells(e).forEach(e=>{t.getRange(e.row,e.col,e.rowCount,e.colCount).backColor(l)}),t.resumePaint()},setSheetBgColor:(e,l,t)=>{e.suspendPaint(),l.forEach(l=>{e.getRange(l.row,l.col,l.rowCount,l.colCount).backColor(t)}),e.resumePaint()},setSheetShowPrintPageLine:(e,l)=>{e.suspendPaint();const t=e.getSheetCount();for(let a=0;a<t;a++){e.getSheet(a).isPrintLineVisible(l)}e.resumePaint()},ignoreSheetShowStrs:e=>{const l=["#DIV/0!","#VALUE!","#NAME?","#N/A","#NULL!","#NUM!","#REF!"],t=e.Spread.Sheets.CellTypes.Text.prototype.paint;e.Spread.Sheets.CellTypes.Text.prototype.paint=function(e,a,n,y,o,x,r,s){l.some(e=>e==a)?t.call(this,e,"/",n,y,o,x,r,s):t.apply(this,arguments)}},setSheetAuxiliaryLine:(e,l,t,a,n=1,y="#409eff",o=!1)=>{let x=new e.Spread.Sheets.FloatingObjects.FloatingObject("floatLineBottom"+(o?"Hb":""),0,a,t,n),r=new e.Spread.Sheets.FloatingObjects.FloatingObject("floatLineRight"+(o?"Hb":""),t,0,n,a),s=document.createElement("div"),i=document.createElement("div");s.style.width=`${t}px`,s.style.height="1px",s.style.borderBottom=`${n}px dashed ${y}`,i.style.width="1px",i.style.height=`${a}px`,i.style.borderLeft=`${n}px dashed ${y}`,x.allowResize(!1),x.allowMove(!1),x.content(s),r.allowResize(!1),r.allowMove(!1),r.content(i),l.floatingObjects.add(x),l.floatingObjects.add(r)},setActiveSheetWatermark:(e,l,t,a=!0)=>{if(null==l||null==l)return;const n=e.getActiveSheet();n.suspendPaint(),l.forEach(e=>{n.getCell(e.row,e.col).watermark(t?`{${e.title}}`:void 0),n.setBindingPath(e.row,e.col,a?`${e.pathPrev}.${e.pathField}`:void 0)}),n.resumePaint()},setSheetCellDate:(e,l,t,a=!0)=>{t.forEach((t,n)=>{let y=l.getStyle(t.row,t.col);y||(y=new e.Spread.Sheets.Style),y.cellButtons=[{imageType:e.Spread.Sheets.ButtonImageType.dropdown,command:"openDateTimePicker",visibility:e.Spread.Sheets.ButtonVisibility.onSelected}],y.dropDowns=[{type:e.Spread.Sheets.DropDownType.dateTimePicker,option:{showTime:!1,showDateRange:!1}}],y.formatter=t.dateFormat,y.shrinkToFit=a,l.setStyle(t.row,t.col,y)})},getRangeStr:e=>`${CommonUtils.getColLetterName(e.col)}${e.row+1}:${CommonUtils.getColLetterName(e.col+e.colCount-1)}${e.row+e.rowCount}`,getCellsRangeStr:(e,l,t)=>{const a=SheetUtils.getAllCellObjsByRanges(e,[t]);let n=[];a.forEach(t=>{const a=e.getValue(t.row,t.col),y=e.getFormula(t.row,t.col);(1==l&&!y&&null!=a&&""!==a||2==l&&(null==a||null==a||""==a)||3==l&&y)&&(n.push(t),2!=l||null!=a&&null!=a&&""!=a||e.setFormatter(t.row,t.col,"@"))});const y=e.name();return"="+n.map(e=>{const l=(e=>{let l="";for(;e>=0&&(l=String.fromCharCode(65+e%26)+l,!((e=Math.floor(e/26)-1)<0)););return l})(e.col),t=e.row+1;e.rowCount>1||e.colCount;return`${y}!${l}${t}`}).join(",")},pasteCellValues:(e,l)=>__awaiter(void 0,void 0,void 0,function*(){if(!navigator.clipboard||!navigator.clipboard.readText)return void(null!=l&&null!=l&&"function"==typeof l&&l(!1,"您的浏览器不支持剪贴板读取功能!"));if("denied"===(yield navigator.permissions.query({name:"clipboard-read"})).state)return void(null!=l&&null!=l&&"function"==typeof l&&l(!1,"剪贴板读取权限被拒绝!"));function t(e){const l=[];let t=0;for(let a=0;a<e.length;a++){const n=e[a].trim();""===n?t++:(t>0&&l.length,l.push(n),t=0)}return l}const a=SheetUtils.getSheetSelectCellObjs(e),n=rapidUtils.groupByJson(a,"row"),y=[];rapidUtils.forEachJson(n,(e,l,t)=>{y.push(e)});const o=function(e){const l=[];let a=[],n="",y=!1;for(let o=0;o<e.length;o++){const x=e[o];if('"'===x)y&&'"'===e[o+1]?(n+='"',o++):y=!y;else if("\t"!==x||y)if("\n"!==x&&"\r"!==x||y)n+=x;else{"\r"===x&&"\n"===e[o+1]&&o++,a.push(n);const y=t(a);y.length>0&&l.push(y),a=[],n=""}else a.push(n),n=""}if(""!==n||a.length>0){a.push(n);const e=t(a);e.length>0&&l.push(e)}return l.filter(e=>e.some(e=>""!==e.trim()))}(yield navigator.clipboard.readText());e.suspendPaint();for(let l=0;l<y.length;l++){const t=y[l];for(let a=0;a<t.length;a++){const n=t[a],y=o[l][a];e.setValue(n.row,n.col,y),y&&y.includes("\n")&&e.getCell(n.row,n.col).wordWrap(!0)}}e.resumePaint(),null!=l&&null!=l&&"function"==typeof l&&l(!0,"粘贴成功!")})},BusinessUtils={createTestObjectAttrsCells:(e,l,t,a=0,n=0,y=!0,o=1,x=77,r=24)=>{if(!t||0===t.length)return;const s=y?12:10,i=y?26:15,u=y?2:3,m=rapidUtils.chunkJson(t,u);l.suspendPaint();const c=l.getRowCount();a>c-1&&(a=c),n>0&&l.deleteRows(a,n);const h=(e,t)=>{l.getCell(e,t).fontFamily("宋体"),l.getCell(e,t).fontSize("9pt")};for(let t=0;t<m.length;t++){const n=m[t],u=a+t;l.addRows(u,1),l.setRowHeight(u,r,e.Spread.Sheets.SheetArea.viewport);const c=l.getRange(u,1,o,x,e.Spread.Sheets.SheetArea.viewport);if(c.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.thin),{all:!0}),c.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.medium),{left:!0,right:!0,top:0==t,bottom:t==m.length-1}),c.hAlign(e.Spread.Sheets.HorizontalAlign.center),c.vAlign(e.Spread.Sheets.HorizontalAlign.center),l.addSpan(u,o,1,s,e.Spread.Sheets.SheetArea.viewport),l.addSpan(u,o+s,1,n.length>1?i:x-s,e.Spread.Sheets.SheetArea.viewport),l.setValue(u,o,n[0].title),l.setValue(u,o+s,n[0].value),h(u,o),h(u,o+s),n.length>1){const t=o+s+i,a=t+s;l.addSpan(u,t,1,s,e.Spread.Sheets.SheetArea.viewport),l.addSpan(u,a,1,i+1+(y||2!=n.length?0:s+i+1),e.Spread.Sheets.SheetArea.viewport),l.setValue(u,t,n[1].title),l.setValue(u,a,n[1].value),h(u,t),h(u,a)}if(n.length>2){const t=o+s+i+s+i+1,a=t+s;l.addSpan(u,t,1,s,e.Spread.Sheets.SheetArea.viewport),l.addSpan(u,a,1,i+1,e.Spread.Sheets.SheetArea.viewport),l.setValue(u,t,n[2].title),l.setValue(u,a,n[2].value),h(u,t),h(u,a)}}return l.resumePaint(),m.length},getTestObjectAttrsVals:(e,l,t=0,a=!0,n=1,y=77)=>{const o=a?2:3,x=rapidUtils.chunkJson(l,o);e.suspendPaint();const r=SheetUtils.getAllCellObjsByRange(e,{row:t,col:n,rowCount:e.getRowCount(),colCount:y}),s=rapidUtils.chunkJson(r,2*o),i=[];for(let e=0;e<s.length;e++)i.push(rapidUtils.chunkJson(s[e],2));let u=[];for(let l=0;l<x.length;l++){const t=x[l];for(let a=0;a<t.length;a++){const n=t[a];u.push({title:e.getValue(i[l][a][0].row,i[l][a][0].col),fieldName:n.fieldName,value:e.getValue(i[l][a][1].row,i[l][a][1].col)})}}return e.resumePaint(),u},dynamicCreateCyclicRows:(e,l,t,a,n=0,y=!1,o=null,x)=>{if(a<=1&&0==n||a==n&&n>0)return;const r=l.getActiveSheet(),s=t.row+t.rowCount==r.getRowCount();let i=[];for(let e=t.row;e<=t.row+t.rowCount-1;e++)i.push(r.getRowHeight(e));const u=(l,a,n,y=0)=>{r.addRows(l,a);let o=0;for(let t=l;t<=l+a;t++)r.setRowHeight(t,null!=x&&null!=x?x:i[o],e.Spread.Sheets.SheetArea.viewport),o<i.length-1?o++:o=0;for(let l=1;l<=n;l++){const a=t.row+y+l*t.rowCount;r.copyTo(t.row,t.col,a,t.col,t.rowCount,t.colCount,e.Spread.Sheets.CopyToOptions.all)}};r.suspendPaint(),r.suspendCalcService(),r.suspendDirty(),r.suspendEvent(),a<=1&&n>0?r.deleteRows(t.row+t.rowCount,(a-1)*t.rowCount):a>1&&n>1?a>n?u(t.row+t.rowCount+(a-n-1)*t.rowCount,(a-n)*t.rowCount,a-n,(a-n-1)*t.rowCount):a<n&&r.deleteRows(t.row+t.rowCount+(a-1)*t.rowCount,(n-a)*t.rowCount):a>1&&0==n&&u(t.row+t.rowCount,(a-1)*t.rowCount,a-1);const m=r.getRange(t.row,t.col,a*t.rowCount,t.colCount>77?77:t.colCount);s&&m.setBorder(new e.Spread.Sheets.LineBorder("#000",e.Spread.Sheets.LineStyle.thin),{inside:!0});const c={row:m.row,col:m.col,rowCount:m.rowCount,colCount:m.colCount},h=SheetUtils.getAllCellObjsByRanges(r,[c]),p=rapidUtils.groupByJson(h,"row");let f=[];if(y){rapidUtils.forEachJson(p,(e,l,t)=>{f.push(e)});let e=0;f.forEach((l,t)=>{l.forEach((l,t)=>{0==t&&(e++,r.setValue(l.row,l.col,e))})})}r.resumeDirty(),r.resumeEvent(),r.resumeCalcService(),r.resumePaint(),null!=o&&null!=o&&"function"==typeof o&&o(c,f)},overRemindComments:(spread,cctxConfigs,cellRowIndex,cellColIndex,isValueChgedUse=!0,commentOptions={color:"#E11010",size:10,defaultTextIsSet:!0,defaultText:"无效"})=>{if(!cctxConfigs||0==cctxConfigs.length)return;const sheet=spread.getActiveSheet();spread.suspendPaint(),spread.suspendCalcService(),spread.suspendEvent();let commentColor=commentOptions.color?commentOptions.color:"#E11010",commentSize=commentOptions.size?commentOptions.size:10,commentDefaultTextIsSet=!commentOptions.defaultTextIsSet||commentOptions.defaultTextIsSet,commentDefaultText=commentOptions.defaultText?commentOptions.defaultText:"无效";const replaceVar=(e,l)=>(["a","b","c","d","e","f"].forEach(t=>{e.indexOf(t)>-1&&(e=e.replaceAll(t,l.find(e=>e.var==t).value))}),e),replaceNum=(e,l)=>{const t=[];for(let e=1;e<=20;e++)t.push(e);return t.forEach(t=>{e.indexOf(t)>-1&&t<=l.length&&(e=e.replaceAll(t,`#${t}#`))}),t.forEach(t=>{e.indexOf(t)>-1&&t<=l.length&&(e=e.replaceAll(`#${t}#`,`(${l[t-1]})`))}),e},getConJsonArrNew=(e,l)=>{let t=[];return e.forEach(e=>{let a=e;a=a.replaceAll("jd(","精度开始").replaceAll(")jd","精度结束").replaceAll("abs","[###]"),a=replaceVar(a,l),a=a.replaceAll("[###]","Math.abs").replaceAll("精度开始","Number(").replaceAll("精度结束",").toFixed(8)"),t.push(a)}),t};for(let i=0;i<cctxConfigs.length;i++){const item=cctxConfigs[i];if(item.isQz){let varJsonArr=JSON.parse(item.varJson),qzCellJsonArr=JSON.parse(item.qzCellJson);const doEvent=()=>{varJsonArr.forEach(e=>{e.value=sheet.getValue(e.row,e.col)});let conJsonArr=JSON.parse(item.conJson),conJsonArrNew=getConJsonArrNew(conJsonArr,varJsonArr);qzCellJsonArr.forEach(e=>{e.value=sheet.getValue(e.row,e.col)});let qzGsJsonArr=JSON.parse(item.qzGsJson);qzGsJsonArr.forEach(e=>{e.value=sheet.getValue(e.row,e.col)});let isAllNotCc=!0;for(let j=0;j<qzGsJsonArr.length;j++){const itemQzgs=qzGsJsonArr[j];let curGsQz=itemQzgs.qzFor.replaceAll("jd(","精度开始").replaceAll(")jd","精度结束").replaceAll("abs","[###]");curGsQz=replaceVar(curGsQz,qzCellJsonArr),curGsQz=curGsQz.replaceAll("[###]","Math.abs").replaceAll("精度开始","Number(").replaceAll("精度结束",").toFixed(8)");try{if(eval(curGsQz)){const lastFor=replaceNum(itemQzgs.conFor,conJsonArrNew);try{if(eval(lastFor))isAllNotCc=!1,sheet.comments.add(item.row,item.col,itemQzgs.tipMsg).indicatorColor(commentColor).indicatorSize(commentSize).fontSize("10pt").width(200),commentDefaultTextIsSet&&sheet.setValue(item.row,item.col,commentDefaultText);else if(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}}catch(e){if(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}}break}}catch(e){}}if(isAllNotCc&&(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet)){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}};isValueChgedUse?(varJsonArr.some(e=>e.row==cellRowIndex&&e.col==cellColIndex)||qzCellJsonArr.some(e=>e.row==cellRowIndex&&e.col==cellColIndex))&&doEvent():doEvent()}else{let varJsonArr=JSON.parse(item.varJson);const doEvent=()=>{varJsonArr.forEach(e=>{e.value=sheet.getValue(e.row,e.col)});let conJsonArr=JSON.parse(item.conJson),conJsonArrNew=getConJsonArrNew(conJsonArr,varJsonArr);const lastFor=replaceNum(item.conFor,conJsonArrNew);try{if(eval(lastFor))sheet.comments.add(item.row,item.col,item.tipMsg).indicatorColor(commentColor).indicatorSize(commentSize).fontSize("10pt").width(200),commentDefaultTextIsSet&&sheet.setValue(item.row,item.col,commentDefaultText);else if(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}}catch(e){if(sheet.comments.remove(item.row,item.col),commentDefaultTextIsSet){const e=sheet.getValue(item.row,item.col);e==commentDefaultText&&sheet.setValue(item.row,item.col,"")}}};isValueChgedUse?varJsonArr.some(e=>e.row==cellRowIndex&&e.col==cellColIndex)&&doEvent():doEvent()}}spread.resumeEvent(),spread.resumeCalcService(),spread.resumePaint()}},EChartsUtilsComm={getRound:(e,l)=>{const t=e<0;if(t&&(e=Math.abs(e)),0==l){let l=e.toString();if(-1==l.indexOf("."))return t?-e:e;let a=parseInt(l.split(".")[0]),n=l.split(".")[1];return parseFloat(`0.${n}`)>=.5?t?-(a+1):a+1:t?-a:a}let a=1/l;const n=(e=>{let l=e.toString();if(-1==l.indexOf("."))return e;let t=parseInt(l.split(".")[0]),a=l.split(".")[1],n=parseInt(a.substring(0,1));return n>=6?t+1:n<=4?t:5==n&&1==a.length?t%2!=0?t+1:t:5==n&&a.length>1?t+1:e})(Number((e*a).toFixed(8)))/a;let y=l+"";if(-1==y.indexOf("."))return t?-n:n;{const e=n+"";let l="";if(-1==e.indexOf(".")){let e="";for(let l=0;l<y.split(".")[1].length;l++)e+="0";return(t?"-":"")+`${n}.${e}`}{const a=e.split(".")[1];if(y.split(".")[1].length>a.length)for(let e=0;e<y.split(".")[1].length-a.length;e++)l+="0";return(t?"-":"")+`${n}${l}`}}},calcTrend:(e,l,t)=>{let a=e.length,n=0,y=0,o=0,x=0;for(let t=0;t<a;t++)n+=e[t],y+=l[t],o+=e[t]*l[t],x+=e[t]*e[t];let r=(a*o-n*y)/(a*x-n*n),s=(y-r*n)/a;return r+""=="NaN"?{y:"",gs:"",xl:"",jj:""}:{y:r*t+s,gs:`${r}*x+${s}`,xl:r,jj:s}},filterNullEmptyErrArray:e=>e.filter(e=>null!=e&&null!=e&&(null==e._error||null==e._error)&&"/"!=e)},EChartsUtilsAll={chart10:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=l[0],x=t[0],r=null!=y?y.dxsJs:5,s=[],i=[];if(o.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),x.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),r>=i.length&&(r=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Number(EChartsUtilsComm.getRound(h+.05,.01)),g=Number(EChartsUtilsComm.getRound(c-.05,.01)),b=[],C=[];s.forEach((e,l)=>{C.push([e,i[l]])});const S=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math__namespace.pow(e[a],t));t.push(n)}return math__namespace.matrix(t)}(s,r),w=math__namespace.transpose(S),F=math__namespace.multiply(w,S),V=math__namespace.multiply(w,math__namespace.matrix(i));let E=null,N=[];try{E=math__namespace.lusolve(F,V),N=E.valueOf()}catch(e){for(let e=0;e<s.length;e++)N.push([0])}function v(e){let l=0;return N.forEach((t,a)=>{l+=t*Math.pow(e,a)}),l}let A=[],D=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));D.push(v(l)),A.push(l)}let U=Math.max(...D),J=D.findIndex(e=>e===U),k=e.chartXName,O=e.chartYName;A.forEach((e,l)=>{s.includes(e)?b.push({value:[e,D[l]]}):b.push({value:[e,D[l]],symbol:"none"})});const M=[A[J],Number(EChartsUtilsComm.getRound(U,.001))],L=[M[0],g];null!=y&&(null!=y.lqhhlKs&&null!=y.lqhhlKs&&(a.setValue(y.lqhhlKs.row,y.lqhhlKs.col,u),a.setValue(y.lqhhlJs.row,y.lqhhlJs.col,m)),null!=y.lqhhlSc1&&null!=y.lqhhlSc1&&a.setValue(y.lqhhlSc1.row,y.lqhhlSc1.col,A[J]));let j=[],I=[];j=[[{coord:L,lineStyle:{color:"#333",type:"dashed"}},{coord:M}]],I=[{xAxis:M[0],yAxis:M[1],symbolOffset:[0,15],label:{show:!0,color:"#000",formatter:function(e){return 0==Number(e.data.xAxis)&&0==Number(e.data.yAxis)?"":"( "+e.data.xAxis+","+e.data.yAxis+")"}},itemStyle:{color:"transparent"}},{xAxis:M[0],yAxis:g,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"a1"}},itemStyle:{color:"transparent"}}];let z=!1;return b.forEach(e=>{z=e.value.every(e=>0==e)}),z&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:z?25:30,right:10,bottom:z?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:z?5:40,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:I},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:j}}]}},chart11:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=l[0],x=t[0],r=null!=y?y.dxsJs:5,s=[],i=[];if(o.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),x.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),r>=i.length&&(r=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+2),g=Math.floor(c-2),b=[],C=null,S=7.5;if(null!=y){if(null!=y.lqhhlSx&&null!=y.lqhhlSx){const e=a.getValue(y.lqhhlSx.row,y.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=y.lqhhlXx&&null!=y.lqhhlXx){const e=a.getValue(y.lqhhlXx.row,y.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+2),null!=S&&S>d&&(g=S-2);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const F=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math__namespace.pow(e[a],t));t.push(n)}return math__namespace.matrix(t)}(s,r),V=math__namespace.transpose(F),E=math__namespace.multiply(V,F),N=math__namespace.multiply(V,math__namespace.matrix(i));let v=null,A=[];try{v=math__namespace.lusolve(E,N),A=v.valueOf()}catch(e){for(let e=0;e<s.length;e++)A.push([0])}function D(e){let l=0;return A.forEach((t,a)=>{l+=t*Math.pow(e,a)}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=Math.max(...J),O=J.findIndex(e=>e===k),M=e.chartXName,L=e.chartYName;function j(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function I(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}U.forEach((e,l)=>{s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"})});let z=[],R=[],_=[],q=[];U.forEach((e,l)=>{if(l>0){if(null!=C&&j(J[l-1],J[l],C,C)){let e=I(J[l-1],J[l],C);z.push([U[l+e],J[l+e]]),J[l-1]>J[l]?_.push(0):_.push(1)}if(null!=S&&j(J[l-1],J[l],S,S)){let e=I(J[l-1],J[l],S);R.push([U[l+e],J[l+e]]),J[l-1]>J[l]?q.push(0):q.push(1)}}});let T=u,Y=m;0==z.length&&R.length>0?0==q[0]?(T=u,Y=R[0][0]):(T=R[0][0],Y=1==R.length?m:R[1][0]):z.length>0&&0==R.length?0==_[0]?(T=z[0][0],Y=1==z.length?m:z[1][0]):(T=u,Y=z[0][0]):z.length>0&&R.length>0&&(0==_[0]?(T=z[0][0],Y=R[0][0]):(T=R[0][0],Y=z[0][0])),null!=y&&(null!=y.lqhhlKs&&null!=y.lqhhlKs&&(a.setValue(y.lqhhlKs.row,y.lqhhlKs.col,T),a.setValue(y.lqhhlJs.row,y.lqhhlJs.col,Y)),null!=y.lqhhlSc1&&null!=y.lqhhlSc1&&a.setValue(y.lqhhlSc1.row,y.lqhhlSc1.col,U[O]));const G=[U[O],Number(EChartsUtilsComm.getRound(k,.001))];let P=[],B=[];P=[[{coord:[G[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:G}]],B=[{xAxis:G[0],yAxis:G[1],symbolOffset:[0,15],label:{show:!0,color:"#000",formatter:function(e){return 0==Number(e.data.xAxis)&&0==Number(e.data.yAxis)?"":"( "+e.data.xAxis+","+e.data.yAxis+")"}},itemStyle:{color:"transparent"}},{xAxis:G[0],yAxis:g,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"a2"}},itemStyle:{color:"transparent"}}],null!=C&&P.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&P.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let H=!1;return b.forEach(e=>{H=e.value.every(e=>0==e)}),H&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:H?25:30,right:10,bottom:H?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:M,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:L,nameGap:H?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:B},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:P}}]}},chart12:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=l[0],x=t[0],r=null!=y?y.dxsJs:5,s=[],i=[];if(o.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),x.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),r>=i.length&&(r=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+2),g=Math.floor(c-2),b=[],C=5,S=3;if(null!=y){if(null!=y.lqhhlSx&&null!=y.lqhhlSx){const e=a.getValue(y.lqhhlSx.row,y.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=y.lqhhlXx&&null!=y.lqhhlXx){const e=a.getValue(y.lqhhlXx.row,y.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+2),null!=S&&S>d&&(g=S-2);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const F=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math__namespace.pow(e[a],t));t.push(n)}return math__namespace.matrix(t)}(s,r),V=math__namespace.transpose(F),E=math__namespace.multiply(V,F),N=math__namespace.multiply(V,math__namespace.matrix(i));let v=null,A=[];try{v=math__namespace.lusolve(E,N),A=v.valueOf()}catch(e){for(let e=0;e<s.length;e++)A.push([0])}function D(e){let l=0;return A.forEach((t,a)=>{l+=t*Math.pow(e,a)}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=e.chartXName,O=e.chartYName;function M(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function L(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}let j=[],I=[],z=[],R=[];U.forEach((e,l)=>{if(s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"}),l>0){if(null!=C&&M(J[l-1],J[l],C,C)){let e=L(J[l-1],J[l],C);j.push([U[l+e],J[l+e]]),J[l-1]>J[l]?z.push(0):z.push(1)}if(null!=S&&M(J[l-1],J[l],S,S)){let e=L(J[l-1],J[l],S);I.push([U[l+e],J[l+e]]),J[l-1]>J[l]?R.push(0):R.push(1)}}});let _=u,q=m;0==j.length&&I.length>0?0==R[0]?(_=u,q=I[0][0]):(_=I[0][0],q=1==I.length?m:I[1][0]):j.length>0&&0==I.length?0==z[0]?(_=j[0][0],q=1==j.length?m:j[1][0]):(_=u,q=j[0][0]):j.length>0&&I.length>0&&(0==z[0]?(_=j[0][0],q=I[0][0]):(_=I[0][0],q=j[0][0])),null!=y&&null!=y.lqhhlKs&&null!=y.lqhhlKs&&(a.setValue(y.lqhhlKs.row,y.lqhhlKs.col,_),a.setValue(y.lqhhlJs.row,y.lqhhlJs.col,q));let T=[],Y=[];if(j.length>0&&j.forEach((e,l)=>{T.push([{coord:[e[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e[0],C]}])}),I.length>0&&I.forEach((e,l)=>{T.push([{coord:[e[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e[0],S]}])}),1==j.length&&1==I.length){const e=((j[0][0]+I[0][0])/2).toFixed(2),l=U.findIndex(l=>l==e);null!=y&&null!=y.lqhhlSc1&&null!=y.lqhhlSc1&&a.setValue(y.lqhhlSc1.row,y.lqhhlSc1.col,e),T.push([{coord:[e,g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e,J[l]]}]),Y.push({xAxis:e,yAxis:g,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"a3"}},itemStyle:{color:"transparent"}})}null!=C&&T.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&T.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let G=!1;return b.forEach(e=>{G=e.value.every(e=>0==e)}),G&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:G?25:30,right:10,bottom:G?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:G?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:Y},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:T}}]}},chart13:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=l[0],x=t[0],r=null!=y?y.dxsJs:5,s=[],i=[];if(o.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),x.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),r>=i.length&&(r=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+1),g=Math.floor(c-1),b=[],C=null,S=2;if(null!=y){if(null!=y.lqhhlSx&&null!=y.lqhhlSx){const e=a.getValue(y.lqhhlSx.row,y.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=y.lqhhlXx&&null!=y.lqhhlXx){const e=a.getValue(y.lqhhlXx.row,y.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+1),null!=S&&S>d&&(g=S-1);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const F=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math__namespace.pow(e[a],t));t.push(n)}return math__namespace.matrix(t)}(s,r),V=math__namespace.transpose(F),E=math__namespace.multiply(V,F),N=math__namespace.multiply(V,math__namespace.matrix(i));let v=null,A=[];try{v=math__namespace.lusolve(E,N),A=v.valueOf()}catch(e){for(let e=0;e<s.length;e++)A.push([0])}function D(e){let l=0;return A.forEach((t,a)=>{l+=t*Math.pow(e,a)}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=e.chartXName,O=e.chartYName;function M(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function L(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}U.forEach((e,l)=>{s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"})});let j=[],I=[],z=[],R=[];U.forEach((e,l)=>{if(l>0){if(null!=C&&M(J[l-1],J[l],C,C)){let e=L(J[l-1],J[l],C);j.push([U[l+e],J[l+e]]),J[l-1]>J[l]?z.push(0):z.push(1)}if(null!=S&&M(J[l-1],J[l],S,S)){let e=L(J[l-1],J[l],S);I.push([U[l+e],J[l+e]]),J[l-1]>J[l]?R.push(0):R.push(1)}}});let _=u,q=m;0==j.length&&I.length>0?0==R[0]?(_=u,q=I[0][0]):(_=I[0][0],q=1==I.length?m:I[1][0]):j.length>0&&0==I.length?0==z[0]?(_=j[0][0],q=1==j.length?m:j[1][0]):(_=u,q=j[0][0]):j.length>0&&I.length>0&&(0==z[0]?(_=j[0][0],q=I[0][0]):(_=I[0][0],q=j[0][0])),null!=y&&null!=y.lqhhlKs&&null!=y.lqhhlKs&&(a.setValue(y.lqhhlKs.row,y.lqhhlKs.col,_),a.setValue(y.lqhhlJs.row,y.lqhhlJs.col,q));let T=[],Y=[];T=[],Y=[],null!=C&&T.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&T.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let G=!1;return b.forEach(e=>{G=e.value.every(e=>0==e)}),G&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:G?25:30,right:10,bottom:G?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:G?5:25,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:Y},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:T}}]}},chart14:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=l[0],x=t[0],r=null!=y?y.dxsJs:5,s=[],i=[];if(o.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),x.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),r>=i.length&&(r=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+1),g=Math.floor(c-1),b=[],C=null,S=13.5;if(null!=y){if(null!=y.lqhhlSx&&null!=y.lqhhlSx){const e=a.getValue(y.lqhhlSx.row,y.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=y.lqhhlXx&&null!=y.lqhhlXx){const e=a.getValue(y.lqhhlXx.row,y.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+1),null!=S&&S>d&&(g=S-1);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const F=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math__namespace.pow(e[a],t));t.push(n)}return math__namespace.matrix(t)}(s,r),V=math__namespace.transpose(F),E=math__namespace.multiply(V,F),N=math__namespace.multiply(V,math__namespace.matrix(i));let v=null,A=[];try{v=math__namespace.lusolve(E,N),A=v.valueOf()}catch(e){for(let e=0;e<s.length;e++)A.push([0])}function D(e){let l=0;return A.forEach((t,a)=>{l+=t*Math.pow(e,a)}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=e.chartXName,O=e.chartYName;function M(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function L(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}U.forEach((e,l)=>{s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"})});let j=[],I=[],z=[],R=[];U.forEach((e,l)=>{if(l>0){if(null!=C&&M(J[l-1],J[l],C,C)){let e=L(J[l-1],J[l],C);j.push([U[l+e],J[l+e]]),J[l-1]>J[l]?z.push(0):z.push(1)}if(null!=S&&M(J[l-1],J[l],S,S)){let e=L(J[l-1],J[l],S);I.push([U[l+e],J[l+e]]),J[l-1]>J[l]?R.push(0):R.push(1)}}});let _=u,q=m;0==j.length&&I.length>0?0==R[0]?(_=u,q=I[0][0]):(_=I[0][0],q=1==I.length?m:I[1][0]):j.length>0&&0==I.length?0==z[0]?(_=j[0][0],q=1==j.length?m:j[1][0]):(_=u,q=j[0][0]):j.length>0&&I.length>0&&(0==z[0]?(_=j[0][0],q=I[0][0]):(_=I[0][0],q=j[0][0])),null!=y&&null!=y.lqhhlKs&&null!=y.lqhhlKs&&(a.setValue(y.lqhhlKs.row,y.lqhhlKs.col,_),a.setValue(y.lqhhlJs.row,y.lqhhlJs.col,q));let T=[],Y=[];T=[],Y=[],null!=C&&T.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&T.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let G=!1;return b.forEach(e=>{G=e.value.every(e=>0==e)}),G&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:G?25:30,right:10,bottom:G?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:G?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:Y},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:T}}]}},chart15:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=l[0],x=t[0],r=null!=y?y.dxsJs:5,s=[],i=[];if(o.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?s.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,s.push(e))}),x.forEach((e,l)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)?i.push(e):"/"!=e&&null!=e&&null!=e&&""!=e||(e=0,i.push(e))}),0==i.length)return;s.forEach(e=>{}),r>=i.length&&(r=i.length-1);let u=Math.min(...s),m=Math.max(...s),c=Math.min(...i),h=Math.max(...i),p=m,f=u,d=Math.ceil(h+10),g=Math.floor(c-10),b=[],C=75,S=60;if(null!=y){if(null!=y.lqhhlSx&&null!=y.lqhhlSx){const e=a.getValue(y.lqhhlSx.row,y.lqhhlSx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(C=e)}if(null!=y.lqhhlXx&&null!=y.lqhhlXx){const e=a.getValue(y.lqhhlXx.row,y.lqhhlXx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(S=e)}}null!=C&&C>d&&(d=C+10),null!=S&&S>d&&(g=S-10);let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const F=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math__namespace.pow(e[a],t));t.push(n)}return math__namespace.matrix(t)}(s,r),V=math__namespace.transpose(F),E=math__namespace.multiply(V,F),N=math__namespace.multiply(V,math__namespace.matrix(i));let v=null,A=[];try{v=math__namespace.lusolve(E,N),A=v.valueOf()}catch(e){for(let e=0;e<s.length;e++)A.push([0])}function D(e){let l=0;return A.forEach((t,a)=>{l+=t*Math.pow(e,a)}),l}let U=[],J=[];for(let e=u;e<=m;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));J.push(D(l)),U.push(l)}let k=e.chartXName,O=e.chartYName;function M(e,l,t,a){return e>=t&&l<=a||e<=t&&l>=a}function L(e,l,t){return Math.abs(e-t)>Math.abs(l-t)?0:-1}let j=[],I=[],z=[],R=[];U.forEach((e,l)=>{if(s.includes(e)?b.push({value:[e,J[l]]}):b.push({value:[e,J[l]],symbol:"none"}),l>0){if(null!=C&&M(J[l-1],J[l],C,C)){let e=L(J[l-1],J[l],C);j.push([U[l+e],J[l+e]]),J[l-1]>J[l]?z.push(0):z.push(1)}if(null!=C&&M(J[l-1],J[l],S,S)){let e=L(J[l-1],J[l],S);I.push([U[l+e],J[l+e]]),J[l-1]>J[l]?R.push(0):R.push(1)}}});let _=u,q=m;0==j.length&&I.length>0?0==R[0]?(_=u,q=I[0][0]):(_=I[0][0],q=1==I.length?m:I[1][0]):j.length>0&&0==I.length?0==z[0]?(_=j[0][0],q=1==j.length?m:j[1][0]):(_=u,q=j[0][0]):j.length>0&&I.length>0&&(0==z[0]?(_=j[0][0],q=I[0][0]):(_=I[0][0],q=j[0][0])),null!=y&&null!=y.lqhhlKs&&null!=y.lqhhlKs&&(a.setValue(y.lqhhlKs.row,y.lqhhlKs.col,_),a.setValue(y.lqhhlJs.row,y.lqhhlJs.col,q));let T=[],Y=[];if(j.length>0&&j.forEach((e,l)=>{T.push([{coord:[e[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e[0],C]}])}),I.length>0&&I.forEach((e,l)=>{T.push([{coord:[e[0],g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e[0],S]}])}),1==j.length&&1==I.length){const e=((j[0][0]+I[0][0])/2).toFixed(2),l=U.findIndex(l=>l==e);null!=y&&null!=y.lqhhlSc1&&null!=y.lqhhlSc1&&a.setValue(y.lqhhlSc1.row,y.lqhhlSc1.col,e),T.push([{coord:[e,g],lineStyle:{color:"#333",type:"dashed"}},{coord:[e,J[l]]}]),Y.push({xAxis:e,yAxis:g,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"a4"}},itemStyle:{color:"transparent"}})}null!=C&&T.push([{coord:[f,C],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,C]}]),null!=S&&T.push([{coord:[f,S],lineStyle:{color:"#333",type:"dashed"}},{coord:[p,S]}]);let G=!1;return b.forEach(e=>{G=e.value.every(e=>0==e)}),G&&(f=null,p=null,g=null,d=null,b=[]),{grid:{top:10,left:G?25:30,right:10,bottom:G?20:16,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:k,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:p,min:f,data:s,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:d,min:g,name:O,nameGap:G?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:b,markPoint:{data:Y},markLine:{symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:T}}]}},chart16:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=[[a.getValue(y.lqhhlHz[0].row,y.lqhhlHz[0].col),a.getValue(y.lqhhlHz[1].row,y.lqhhlHz[1].col)],[a.getValue(y.lqhhlHz[2].row,y.lqhhlHz[2].col),a.getValue(y.lqhhlHz[3].row,y.lqhhlHz[3].col)],[a.getValue(y.lqhhlHz[4].row,y.lqhhlHz[4].col),a.getValue(y.lqhhlHz[5].row,y.lqhhlHz[5].col)],[a.getValue(y.lqhhlHz[6].row,y.lqhhlHz[6].col),a.getValue(y.lqhhlHz[7].row,y.lqhhlHz[7].col)],[a.getValue(y.lqhhlHz[8].row,y.lqhhlHz[8].col),a.getValue(y.lqhhlHz[9].row,y.lqhhlHz[9].col)],[a.getValue(y.lqhhlHz[10].row,y.lqhhlHz[10].col),a.getValue(y.lqhhlHz[11].row,y.lqhhlHz[11].col)]],x=l[0],r=5.5,s=3.5,i=0,u=6,m=["VFA","VMA","流值","稳定度","空隙率","密度"];let c=[],h=[],p=Math.max(...o.map(e=>e[0])),f=Math.min(...o.map(e=>e[1]));if(o.forEach((e,l)=>{c.push([{coord:[e[0],o.length-l],lineStyle:{color:n[0].lineColor,type:"solid",width:2}},{coord:[e[1],o.length-l]}])}),p<=f&&(c.push([{coord:[p,0],lineStyle:{color:"#333",type:"dashed",width:2}},{coord:[p,6]}]),c.push([{coord:[f,0],lineStyle:{color:"#333",type:"dashed",width:2}},{coord:[f,6]}]),h=[{xAxis:p,yAxis:0,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"OACmin"}},itemStyle:{color:"transparent"}},{xAxis:f,yAxis:0,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"OACmax"}},itemStyle:{color:"transparent"}}]),p<=f){const e=(p+f)/2;c.push([{coord:[e,0],lineStyle:{color:"#333",type:"dashed",width:2}},{coord:[e,6]}]),h.push({xAxis:e,yAxis:0,symbolOffset:[0,40],label:{show:!0,color:"#000",formatter:function(e){return"OAC2"}},itemStyle:{color:"transparent"}})}isNaN(p)&&(p=0),isNaN(f)&&(f=0),null!=y&&(null!=y.lqhhlSc1&&null!=y.lqhhlSc1&&a.setValue(y.lqhhlSc1.row,y.lqhhlSc1.col,p),null!=y.lqhhlSc2&&null!=y.lqhhlSc2&&a.setValue(y.lqhhlSc2.row,y.lqhhlSc2.col,f));let d=!1;return o.forEach(e=>{d=e.every(e=>"/"==e)}),d&&(s=null,r=null,i=null,u=null),{grid:{top:25,left:10,right:10,bottom:d?20:16,containLabel:!0},title:[{show:!0,text:"OAC",left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:"油石比(%)",left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:r,min:s,data:x,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:u,min:i,axisLabel:{formatter:function(e){return 0==e?"":m[e-1]}}}],series:[{name:"图例1",type:"line",markPoint:{data:h},markLine:{symbol:["none","none"],data:c}}]}},chart30:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);null==y||null!=y.jsIsJz&&null!=y.jsIsJz||(y.jsIsJz=!0);let o=2==l.length,x=l[0],r=o?l[1]:[],s=t[0],i=o?t[1]:[],u=[],m=[];if(x.forEach((e,l)=>{"/"!=e&&0!=e&&null!=e&&null!=e&&"/"!=s[l]&&0!=s[l]&&null!=s[l]&&null!=s[l]&&(u.push(e),m.push(s[l]))}),x=u,s=m,o){let e=[],l=[];r.forEach((t,a)=>{"/"!=t&&0!=t&&null!=t&&null!=t&&"/"!=i[a]&&0!=i[a]&&null!=i[a]&&null!=i[a]&&(e.push(t),l.push(i[a]))}),r=e,i=l}let c=e.chartTitle,h=e.chartXName,p=e.chartYName;const f=(e,l,t,o,x)=>{let r=null!=y?y.dxsJs:5,s=[],i=[],u=[];if(e.forEach((e,t)=>{/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&0!=e&&/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(l[t])&&0!=l[t]&&(s.push(e),i.push(l[t]))}),0==i.length)return;r>=i.length&&(r=i.length-1);let m,c,h=Math.min(...s),p=Math.max(...s),f=Math.min(...i),d=Math.max(...i),g=Math.ceil(p+.1),b=Math.trunc(h-.1),C=Number(EChartsUtilsComm.getRound(d+.02,.01)),S=Number(EChartsUtilsComm.getRound(f-.02,.01));null!=y&&y.jsIsJz&&(null!=y.jsZjhslJz&&null!=y.jsZjhslJz&&(m=a.getValue(y.jsZjhslJz.row,y.jsZjhslJz.col)),null!=y.jsZdgmdJz&&null!=y.jsZdgmdJz&&(c=a.getValue(y.jsZdgmdJz.row,y.jsZdgmdJz.col)),/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(c)&&c>C&&(C=Number(EChartsUtilsComm.getRound(c+.02,.01))));let w=[];s.forEach((e,l)=>{w.push([e,i[l]])});const F=function(e,l){const t=[];for(let a=0;a<e.length;a++){const n=[];for(let t=0;t<=l;t++)n.push(math__namespace.pow(e[a],t));t.push(n)}return math__namespace.matrix(t)}(s,r),V=math__namespace.transpose(F),E=math__namespace.multiply(V,F),N=math__namespace.multiply(V,math__namespace.matrix(i));let v=null,A=[];try{v=math__namespace.lusolve(E,N),A=v.valueOf()}catch(e){for(let e=0;e<s.length;e++)A.push([0])}function D(e){let l=0;return A.forEach((t,a)=>{l+=t*Math.pow(e,a)}),l}let U=[],J=[];for(let e=h;e<=p;e+=.01){let l=Number(EChartsUtilsComm.getRound(e,.01));e=Number(l),J.push(D(l)),U.push(l)}let k=Math.max(...J),O=J.findIndex(e=>e===k),M=.01,L=.001,j=0,I=0;null!=y&&(null!=y.jsZjhslJd&&null!=y.jsZjhslJd&&(M=y.jsZjhslJd),null!=y.jsZdgmdJd&&null!=y.jsZdgmdJd&&(L=y.jsZdgmdJd),0==U[O]&&0==k?(a.setValue(y.jsZjhsl.row,y.jsZjhsl.col,"/"),a.setValue(y.jsZdgmd.row,y.jsZdgmd.col,"/")):(j=EChartsUtilsComm.getRound(U[O],M),I=EChartsUtilsComm.getRound(k,L),a.setValue(y.jsZjhsl.row,y.jsZjhsl.col,j),a.setValue(y.jsZdgmd.row,y.jsZdgmd.col,I))),U.forEach((e,l)=>{s.includes(e)?u.push({value:[e,J[l]]}):u.push({value:[e,J[l]],symbol:"none"})});const z=[U[O],Number(EChartsUtilsComm.getRound(k,L))],R=[z[0],S],_=[b,z[1]];let q={data:[{xAxis:EChartsUtilsComm.getRound(z[0],M),yAxis:EChartsUtilsComm.getRound(z[1],L),symbolOffset:[0,15],symbol:"circle",symbolSize:6,label:{show:!0,color:"#000",formatter:function(e){return 0==Number(e.data.xAxis)&&0==Number(e.data.yAxis)?"":"( "+e.data.xAxis+","+e.data.yAxis+")"}},itemStyle:{color:"transparent"}}]},T={symbol:["none","none"],itemStyle:{lineStyle:{type:"solid",color:"#333",width:2}},data:[[{coord:R,lineStyle:{color:"#333",type:"dashed"}},{coord:z}],[{coord:_,lineStyle:{color:"#333",type:"dashed"}},{coord:z}]]};y.jsIsJz&&/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(m)&&/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(c)&&(T=null,q.data[0].label=null,q.data[0].symbolOffset=null,q.data[0].itemStyle.color="#F56C6C",q.data[0].xAxis=m,q.data[0].yAxis=c,T=null);let Y={name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[x?1:0].lineColor,type:x?"dotted":"solid"},itemStyle:{color:n[x?1:0].lineColor},data:u,markPoint:t?q:null,markLine:o?T:null};return{xAxisMin:b,xAxisMax:g,yAxisMin:S,yAxisMax:C,xData:s,seriesDataObj:Y,maxPointData:[U[O],k]}};let d,g=0,b=0,C=0,S=0,w=[],F=[],V=0,E=0,N=f(x,s,!o,!o,!1);o&&(d=f(r,i,!1,!1,!0));let v=!1;if(null!=N&&null!=N||(v=!0),!v)if(o){if(null==d||null==d)return;b=N.xAxisMax,d.xAxisMax>b&&(b=d.xAxisMax),g=N.xAxisMin,d.xAxisMin<g&&(g=d.xAxisMin),S=N.yAxisMax,d.yAxisMax>S&&(S=d.yAxisMax),C=N.yAxisMin,d.yAxisMin<C&&(C=d.yAxisMin),N.xData.forEach(e=>{w.push(e)}),d.xData.forEach(e=>{w.push(e)}),F.push(N.seriesDataObj),F.push(d.seriesDataObj),V=(N.maxPointData[0]+d.maxPointData[0])/2,E=(N.maxPointData[1]+d.maxPointData[1])/2;let e=.01,l=.001,t=0,n=0;null!=y&&(null!=y.jsZjhslJd&&null!=y.jsZjhslJd&&(e=y.jsZjhslJd),null!=y.jsZdgmdJd&&null!=y.jsZdgmdJd&&(l=y.jsZdgmdJd),0==V&&0==E?(a.setValue(y.jsZjhsl.row,y.jsZjhsl.col,"/"),a.setValue(y.jsZdgmd.row,y.jsZdgmd.col,"/")):(t=EChartsUtilsComm.getRound(V,e),n=EChartsUtilsComm.getRound(E,l),a.setValue(y.jsZjhsl.row,y.jsZjhsl.col,t),a.setValue(y.jsZdgmd.row,y.jsZdgmd.col,n)))}else g=N.xAxisMin,b=N.xAxisMax,C=N.yAxisMin,S=N.yAxisMax,w=N.xData,F.push(N.seriesDataObj);return F.forEach(e=>{v=e.data[0].value.every(e=>0==e)}),v&&(g=null,b=null,C=null,S=null,F=[]),{grid:{top:25,left:v?25:30,right:10,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+Number(EChartsUtilsComm.getRound(e[0].value[1],.001)):e[0].data}},title:[{show:!0,text:c,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:h,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",max:v?0:b,min:v?0:g,data:w,axisTick:{alignWithLabel:!0},splitLine:{show:!0}},yAxis:[{type:"value",max:v?0:S,min:v?0:C,name:p,nameGap:v?25:40,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:v?[]:F}},chart50:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartXName,y=e.chartYName;const o=l[0],x=t[0],r=t[1],s=t[2],i=[];o.forEach((e,l)=>{i.push({x:e,y:x[l],ySx:r[l],yXx:s[l]})}),i.sort(function(e,l){return e.x-l.x});const u=[],m=[],c=[],h=[];let p=0;r.forEach((e,l)=>{null!=e&&"/"!=e||p++}),p==r.length?i.forEach((e,l)=>{u.push(e.x),m.push(e.y),c.push(e.ySx),h.push(e.yXx)}):i.forEach((e,l)=>{null!=e.ySx&&"/"!=e.ySx&&null!=e.yXx&&"/"!=e.yXx&&(u.push(e.x),m.push(e.y),c.push(e.ySx),h.push(e.yXx))});let f=[],d=[],g=[],b=[];u.forEach((e,l)=>{const t=Number(EChartsUtilsComm.getRound(Math.pow(e,.45),.001));f.push([t,m[l]]),b.push({name:e+"",xAxis:t,label:{show:!(u.length>=6&&l%2!=0&&l<6),fontSize:10}}),d.push([t,c[l]]),g.push([t,h[l]])});const C=(e,l)=>{const t=1==e?"筛分曲线":2==e?"上限":"下限",n=1==e?"rect":2==e?"triangle":"circle",y=1==e?"solid":2==e?"dotted":[10,5],o=1==e?a[0].lineColor:2==e?a[1].lineColor:a[2].lineColor;let x={name:t,type:"line",smooth:!0,symbol:n,symbolSize:5,z:10,lineStyle:{color:o,type:y},itemStyle:{color:o},data:l,connectNulls:!0,markLine:{symbol:"",silent:!0,label:{position:"start",formatter:e=>e.name},lineStyle:{color:"#e0e6f1",type:"solid"},data:b}};return x};let S=!1;0==f.length&&(S=!0);let w=0;return f.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||w++}),w==f.length&&(S=!0),(r.some(e=>null!=e&&null!=e&&"/"!=e)||s.some(e=>null!=e&&null!=e&&"/"!=e))&&(S=!1),f.filter(e=>0==e[1]).length==f.length&&d.filter(e=>0==e[1]).length==d.length&&g.filter(e=>0==e[1]).length==g.length&&(S=!0),t[0].some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||t[1].some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||t[2].some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||(S=!0),{grid:{top:20,left:30,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){if(e&&e[0].data.length>1){let l=b.filter(l=>l.xAxis==e[0].data[0]);return e[0].seriesName+"("+l[0].name+"):"+e[0].data[1]}return e[0].data}},title:[{show:!0,text:"",left:"center",top:5,textStyle:{fontSize:18,fontWeight:"normal"}},{show:!0,text:n,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{left:"center",data:["筛分曲线","上限","下限"],selected:{"筛分曲线":!0,"上限":!0,"下限":!0},selectedMode:"multiple"},xAxis:{type:"value",axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},min:f.length>0?f[0][0]>.2?f[0][0]-.2:0:null,max:f.length>0?f[f.length-1][0]+.1:null},yAxis:[{type:"value",name:y,nameGap:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},min:0,max:100,splitNumber:10,axisLabel:{fontSize:10}}],series:[C(1,S?[]:f),C(2,S?[]:d),C(3,S?[]:g)]}},chart70:(e,l,t,a)=>{JSON.parse(e.chartLinesJson);const n=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);if(l[0].some(e=>null==e||""==e||null==e)||t[0].some(e=>null==e||""==e||null==e))return{};let y=e.chartTitle,o=e.chartXName,x=e.chartYName,r=l[0],s=t[0],i=100,u="砂类土",m=[],c=[];if(null!=n){let e=a.getValue(n.jxhslZtzl.row,n.jxhslZtzl.col),l=a.getValue(n.jxhslCllx.row,n.jxhslCllx.col);/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(e)&&(e=Number(e),100!=e&&76!=e||(i=e)),"砂类土"!=l&&"细粒土"!=l||(u=l)}for(const e of r)m.push(Math.log(e));for(const e of s)c.push(Math.log(e));let h=(c[2]-c[1])/(m[2]-m[1]),p=(c[2]-c[0])/(m[2]-m[0]);const f=Math.max.apply(Math,r)+1,d=Math.min.apply(Math,r)-.3,g=Math.max.apply(Math,s)+1,b=Math.min.apply(Math,s)-2,C=["C","B","A"],S=[];function w(e,l,t){const a=Math.log(e[0]),n=Math.log(e[1]),y=Math.log(l[0]),o=n+(Math.log(l[1])-n)/(y-a)*(Math.log(t)-a);return Math.exp(o)}r.forEach((e,l)=>{S.push([e,s[l],C[l]])});let F=[20,w([r[2],s[2]],[r[1],s[1]],20)],V=[20,w([r[2],s[2]],[r[0],s[0]],20)];function E(e){let l;return l="砂类土"==u?29.6-1.22*e+.017*e*e-744e-7*e*e*e:e/(.524*e-7.606),l}let N,v,A,D=[],U=[],J=[],k=E(r[2]),O=Math.log(k),M=(h*m[2]-(c[2]-O))/h,L=(p*m[2]-(c[2]-O))/p,j=Math.exp((M+L)/2),I=Math.log(j),z=(c[2]-O)/(m[2]-I);if(76==i){let e=Math.log(17),l=(z*m[2]-(c[2]-e))/z,t=Math.exp(l),a=Math.log(2),n=(z*m[2]-(c[2]-a))/z,y=Math.exp(n);J=[j,k],D=[j,b],U=[d,k],S.push([j,k,"Hp"]),N=k,v=t,A=y}else if(100==i){let e=Math.log(20),l=(z*m[2]-(c[2]-e))/z,t=Math.exp(l),a=E(t),n=Math.log(a),y=(h*m[2]-(c[2]-n))/h,o=(p*m[2]-(c[2]-n))/p,x=Math.exp((y+o)/2),r=x;J=[x,a],D=[x,b],U=[d,a],S.push([x,a,"Hp"]),N=a,v=t,A=r}if((isNaN(N)||isNaN(v)||isNaN(A))&&(N=0,v=0,A=0),null!=n){let e=.01,l=.01,t=.01;null!=n.jxhslScHpJd&&null!=n.jxhslScHpJd&&(e=n.jxhslScHpJd),null!=n.jxhslScWlJd&&null!=n.jxhslScWlJd&&(l=n.jxhslScWlJd),null!=n.jxhslScWpJd&&null!=n.jxhslScWpJd&&(t=n.jxhslScWpJd),null!=n.jxhslScHp&&null!=n.jxhslScHp&&(0==N?a.setValue(n.jxhslScHp.row,n.jxhslScHp.col,"/"):a.setValue(n.jxhslScHp.row,n.jxhslScHp.col,EChartsUtilsComm.getRound(N,e))),null!=n.jxhslScWl&&null!=n.jxhslScWl&&(0==v?a.setValue(n.jxhslScWl.row,n.jxhslScWl.col,"/"):a.setValue(n.jxhslScWl.row,n.jxhslScWl.col,EChartsUtilsComm.getRound(v,l))),null!=n.jxhslScWp&&null!=n.jxhslScWp&&(0==A?a.setValue(n.jxhslScWp.row,n.jxhslScWp.col,"/"):a.setValue(n.jxhslScWp.row,n.jxhslScWp.col,EChartsUtilsComm.getRound(A,t)))}let R=!1;0==r.length&&(R=!0);let _=0;return r.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||_++}),_==r.length&&(R=!0),(s.some(e=>null!=e&&null!=e&&"/"!=e)||s.some(e=>null!=e&&null!=e&&"/"!=e))&&(R=!1),{grid:{top:20,left:R?25:50,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+e[0].value[1]:e[0].data}},title:[{show:!0,text:y,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:o,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"log",min:d,max:f,interval:0,axisTick:{show:!1,alignWithLabel:!0},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:{type:"log",name:x,nameGap:R?5:30,nameRotate:90,nameLocation:"middle",min:b,max:g,interval:0,axisTick:{show:!1,alignWithLabel:!0},splitLine:{show:!1},axisLabel:{show:!1}},series:[{name:"图例1",data:S,type:"scatter",symbol:"circle",smooth:!1,symbolSize:6,label:{show:!0,formatter:function(e){return e.data[2]},position:"right",minMargin:2},markLine:{symbol:["none","none"],silent:!0,label:{show:!0,position:"start",color:"#000000"},lineStyle:{type:"solid",color:"#333"},data:[{xAxis:S[0][0]},{xAxis:S[1][0]},{xAxis:S[2][0]},{yAxis:S[0][1]},{yAxis:S[1][1]},{yAxis:S[2][1]},[{coord:D,lineStyle:{color:"#333",type:"dashed"}},{coord:J}],[{coord:U,lineStyle:{color:"#333",type:"dashed"}},{coord:J}]]}},{type:"line",data:[[r[2],s[2]],[r[1],s[1]]],lineStyle:{color:"#0000FF",type:"solid",width:1},symbol:"none"},{type:"line",data:[[r[1],s[1]],[F[0],F[1]]],lineStyle:{color:"#000000",type:"dashed",width:1},symbol:"none"},{type:"line",data:[[r[2],s[2]],[r[0],s[0]]],lineStyle:{color:"#0000FF",type:"solid",width:1},symbol:"none"},{type:"line",data:[[r[0],s[0]],[V[0],V[1]]],lineStyle:{color:"#000000",type:"dashed",width:1},symbol:"none"},{type:"line",data:[[r[2],s[2]],J],lineStyle:{color:"#0000FF",type:"solid",width:1},symbol:"none"}]}},chart90:(config,xDataArr,yDataArr,sheet)=>{let lineData=JSON.parse(config.chartLinesJson);const chartExtJson=null==config.chartExtJson||null==config.chartExtJson?null:JSON.parse(config.chartExtJson);let yDataSource=yDataArr[0],title=config.chartTitle,xName=config.chartXName,yName=config.chartYName,legendName="图例1",xData=xDataArr[0],xDataCl=[],yDataSourceCl=[];for(let e=0;e<xData.length;e++)if("/"!=xData[e]&&(0==e||e>0&&0!=xData[e]))xDataCl.push(xData[e]),yDataSourceCl.push(yDataSource[e]);else if(e>0&&0==xData[e])break;xData=xDataCl,yDataSource=yDataSourceCl;let seriesData=[],markPointData=[],markLineData=[...xData];const gsS=EChartsUtilsComm.calcTrend(xData,yDataSource,xData[0]);if(null!=chartExtJson&&null!=chartExtJson.jxhslSnShScfc&&null!=chartExtJson.jxhslSnShScfc)if(""==gsS.xl||""==gsS.jj)sheet.setValue(chartExtJson.jxhslSnShScfc.row,chartExtJson.jxhslSnShScfc.col,"/");else{const e=EChartsUtilsComm.getRound(gsS.jj,1e-4);sheet.setValue(chartExtJson.jxhslSnShScfc.row,chartExtJson.jxhslSnShScfc.col,`Y=${EChartsUtilsComm.getRound(gsS.xl,1e-4)}X${e>=0?"+":""}${e}`)}let yDataCopy=[];xData.forEach((item,index)=>{let curYData=Number(EChartsUtilsComm.getRound(eval(gsS.gs.replace("x",item+"")),.01));isNaN(curYData)&&(curYData=0),seriesData.push([item,curYData]),yDataCopy.push(curYData),markPointData.push({xAxis:item,yAxis:yDataSource[index],symbol:"circle",symbolSize:6})});let yValIsAllNull=!1;0==xData.length&&(yValIsAllNull=!0);let nullCount=0;xData.forEach(e=>{0!=e[1]&&null!=e[1]&&null!=e[1]||nullCount++}),nullCount==xData.length&&(yValIsAllNull=!0),yDataCopy.some(e=>0!=e||null==e[1]||null==e[1])&&(yValIsAllNull=!1),yDataArr[0].some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||(yValIsAllNull=!0);let option={grid:{top:22,left:yValIsAllNull?25:30,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].value[0]+":"+e[0].value[1]:e[0].data}},title:[{show:!0,text:title,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:xName,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:[legendName],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"value",name:yName,nameGap:yValIsAllNull?5:30,nameRotate:90,nameLocation:"middle"}],series:[{name:legendName,type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:lineData[0].lineColor,type:"dotted"},itemStyle:{color:lineData[0].lineColor,opacity:0},data:seriesData,markPoint:{data:markPointData},markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value},lineStyle:{color:"#ddd",type:"solid"},data:markLineData.map(e=>({xAxis:e}))}}]};return option},chart110:(e,l,t,a,n)=>{let y=JSON.parse(e.chartLinesJson),o=e.chartTitle,x=e.chartXName,r=e.chartYName;const s=a[0];let i=[];s.forEach((e,l)=>{"/"==e?i.push(e):i.push(Number(e))});let u=t[0],m=[];i.forEach((e,l)=>{"/"!=e&&null!=e&&null!=e&&m.push([e,u[l]])});let c=!1;return 0==m.length&&(c=!0),{grid:{top:25,left:25,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:o,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:x,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{formatter:function(e){let l="";for(let t=0;t<i.length;t++)if(i[t]==e){l=s[t],"/"==l&&(l="");break}return l}}},yAxis:[{type:"value",name:r,nameGap:c?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:y[0].lineColor},itemStyle:{color:y[0].lineColor},data:m}]}},chart130:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName;const x=l[0],r=t[0];let s=.01,i=200,u=[];x.forEach((e,l)=>{u.push(["筛底"==e?0:e,r[l]])});let m=!1;0==x.length&&(m=!0);let c=0;return x.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||c++}),c==x.length&&(m=!0),r.some(e=>null!=e&&null!=e&&"/"!=e)&&(m=!1),m&&(s=null,i=null),{grid:{top:25,left:20,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"log",logBase:10,inverse:!0,min:s,max:i},yAxis:[{type:"value",name:o,nameGap:m?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:u}]}},chart150:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName;const x=l[0],r=t[0];let s=[];x.forEach((e,l)=>{s.push([e,r[l]])});let i=!1;0==x.length&&(i=!0);let u=0;return x.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||u++}),u==x.length&&(i=!0),r.some(e=>null!=e&&null!=e&&"/"!=e)&&(i=!1),{grid:{top:55,left:i?25:30,right:10,bottom:10,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",top:18,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1},position:"top"},yAxis:[{type:"value",name:o,nameGap:i?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:s,markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value},lineStyle:{color:"#ddd",type:"solid"},data:x.map(e=>({xAxis:e}))}}]}},chart170:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName;const x=l[0],r=t[0];let s=[];x.forEach((e,l)=>{s.push([e,r[l]])});let i=!1;0==x.length&&(i=!0);let u=0;return x.forEach(e=>{null!=e[1]&&null!=e[1]&&"/"!=e[1]||u++}),u==x.length&&(i=!0),r.some(e=>null!=e&&null!=e&&"/"!=e)&&(i=!1),{grid:{top:55,left:i?25:30,right:10,bottom:10,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",top:18,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1},position:"top"},yAxis:[{type:"value",name:o,nameGap:i?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:s,markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value},lineStyle:{color:"#ddd",type:"solid"},data:x.map(e=>({xAxis:e}))}}]}},chart190:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartXName,y=e.chartYName,o=l[0],x=t[0];o=o.filter(e=>null!=e&&null!=e&&"/"!=e&&(null==e._code||null==e._code)),x=x.filter(e=>null!=e&&null!=e&&"/"!=e&&(null==e._code||null==e._code));let r=!1;0==o.length&&(r=!0);let s=0;return o.forEach(e=>{null!=e&&null!=e&&"/"!=e||s++}),s==o.length&&(r=!0,o=[]),x.some(e=>null!=e&&null!=e&&"/"!=e)&&(r=!1),{grid:{top:10,left:r?25:30,right:10,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:18,fontWeight:"normal"}},{show:!0,text:n,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",data:o,axisTick:{alignWithLabel:!0},axisLabel:{formatter:function(e){return"/"==e?"":e}}},yAxis:[{type:"value",name:y,nameGap:r?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:x}]}},chart210:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=l[0],y=t[0],o=e.chartTitle,x=e.chartXName,r=e.chartYName;const s=[];for(let e=n.length-1;e>=0;e--){const l=n[e];null==l||null==l||"/"==l||null!=l._error&&null!=l._error||s.push([l,y[e]])}let i=!1;0==n.length&&(i=!0);let u=0;n.forEach(e=>{(null==e||null==e||"/"==e||null!=e._error&&null!=e._error)&&u++}),u==n.length&&(i=!0),y.some(e=>null!=e&&null!=e&&"/"!=e)&&(i=!1);return{grid:{top:25,left:!i&&s.length>0?30:25,right:10,bottom:40,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].value[0]+":"+e[0].value[1]:e[0].data}},title:[{show:!0,text:o,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:x,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"value",name:r,nameGap:!i&&s.length>0?30:5,nameRotate:90,nameLocation:"middle",axisLabel:{fontSize:10}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:s,markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value,fontSize:10},lineStyle:{color:"#ddd",type:"solid"},data:(()=>{let e=[];[0,.02,.04,.06,.08,.1].forEach(l=>{n.forEach(t=>{let a={xAxis:""};"/"==t?(a.xAxis="",e.push(a)):(a.xAxis=l,e.push(a))})});let l=e.filter((e,l,t)=>l===t.findIndex(l=>l.xAxis==e.xAxis));return u==n.length?[]:l})()}}]}},chart230:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=l.length,y=[],o=[],x=[],r=[],s=[],i=[];y=EChartsUtilsComm.filterNullEmptyErrArray(l[0]),r=EChartsUtilsComm.filterNullEmptyErrArray(t[0]),2==n&&(o=EChartsUtilsComm.filterNullEmptyErrArray(l[1]),s=EChartsUtilsComm.filterNullEmptyErrArray(t[1])),3==n&&(o=EChartsUtilsComm.filterNullEmptyErrArray(l[1]),s=EChartsUtilsComm.filterNullEmptyErrArray(t[1]),x=EChartsUtilsComm.filterNullEmptyErrArray(l[2]),i=EChartsUtilsComm.filterNullEmptyErrArray(t[2]));let u=[],m=[],c=[];y.forEach((e,l)=>{if("object"==typeof e)u.push(60*e.getHours()+e.getMinutes());else if("number"==typeof e)u.push(e);else{const l=e.split(":"),t=60*Number(l[0])+Number(l[1]);u.push(t)}}),o.forEach((e,l)=>{if("object"==typeof e)m.push(60*e.getHours()+e.getMinutes());else if("number"==typeof e)m.push(e);else{const l=e.split(":"),t=60*Number(l[0])+Number(l[1]);m.push(t)}}),x.forEach((e,l)=>{if("object"==typeof e)c.push(60*e.getHours()+e.getMinutes());else if("number"==typeof e)c.push(e);else{const l=e.split(":"),t=60*Number(l[0])+Number(l[1]);c.push(t)}}),y.length>0&&(u.push(u[u.length-1]+20),u.unshift(u[0]-20),r.push(null),r.unshift(null)),2==n&&o.length>0&&(m.push(m[m.length-1]+20),m.unshift(m[0]-20),s.push(null),s.unshift(null)),3==n&&0==x.length&&(m.push(m[m.length-1]+20),m.unshift(m[0]-20),s.push(null),s.unshift(null),c.push(c[c.length-1]+20),c.unshift(c[0]-20),i.push(null),i.unshift(null));let h=e.chartTitle,p=e.chartXName,f=e.chartYName;const d=(e,l)=>({type:"category",data:l,axisTick:{alignWithLabel:!0},show:1==e,splitLine:{show:!0}});let g=[d(1,u)];2==n&&g.push(d(2,m)),3==n&&(g.push(d(2,m)),g.push(d(3,c)));const b=(e,l)=>{const t=1==e?"第一组":2==e?"第二组":"第三组",n=1==e?"rect":2==e?"triangle":"circle",y=1==e?"solid":2==e?"dotted":[10,5],o=1==e&&a.length>=1?a[0].lineColor:2==e&&a.length>=2?a[1].lineColor:3==e&&a.length>=3?a[2].lineColor:"#000";return{name:t,type:"line",smooth:!0,symbol:n,symbolSize:6,lineStyle:{color:o,type:y},itemStyle:{color:o},data:l}};let C=[b(1,r)];2==n&&s.length>0&&C.push(b(2,s)),3==n&&(s.length>0&&C.push(b(2,s)),i.length>0&&C.push(b(3,i)));let S=1==n?["第一组"]:2==n?["第一组","第二组"]:["第一组","第二组","第三组"],w=1==n?{"第一组":!0}:2==n?{"第一组":!0,"第二组":!0}:{"第一组":!0,"第二组":!0,"第三组":!0},F=!1,V=!1,E=0;return 0==y.length?(V=!0,E=15,S=["第二组","第三组"],w={"第一组":!1,"第二组":!0,"第三组":!0},g=[],C=[],g.push(d(1,m)),g.push(d(3,c)),C.push(b(2,s)),C.push(b(3,i)),0==o.length&&(E=35,S=["第三组"],w={"第一组":!1,"第二组":!1,"第三组":!0},g=[],C=[],g.push(d(1,c)),C.push(b(3,i)),0==x.length&&(E=0,F=!0,S=[],w={"第一组":!1,"第二组":!1,"第三组":!1},g=[],C=[],g.push(d(1,[])),C.push(b(3,[]))))):0==o.length?(E=15,V=!0,S=["第一组","第三组"],w={"第一组":!0,"第二组":!1,"第三组":!0},g=[],C=[],g.push(d(1,u)),g.push(d(3,c)),C.push(b(1,r)),C.push(b(3,i)),0==y.length&&(E=35,S=["第三组"],w={"第一组":!1,"第二组":!1,"第三组":!0},g=[],C=[],g.push(d(1,u)),C.push(b(3,r)),0==x.length&&(E=0,F=!0,S=[],w={"第一组":!1,"第二组":!1,"第三组":!1},g=[],C=[],g.push(d(1,[])),C.push(b(3,[]))))):0==x.length&&(E=15,V=!0,S=["第一组","第二组"],w={"第一组":!0,"第二组":!0,"第三组":!1},g=[],C=[],g.push(d(1,u)),g.push(d(2,m)),C.push(b(1,r)),C.push(b(2,s)),0==y.length&&(E=35,S=["第二组"],w={"第一组":!1,"第二组":!0,"第三组":!1},g=[],C=[],g.push(d(1,m)),C.push(b(2,s)),0==o.length&&(E=0,F=!0,S=[],w={"第一组":!1,"第二组":!1,"第三组":!1},g=[],C=[],g.push(d(1,[])),C.push(b(2,[]))))),{grid:{top:V?E:-5,left:30,right:10,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:h,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:p,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{left:"center",top:16,data:S,selected:w,selectedMode:"multiple"},xAxis:g,yAxis:[{type:"value",name:f,nameGap:F?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:C}},chart250:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName;const x=l[0],r=t[0];let s=[];x.forEach((e,l)=>{s.push([e,r[l]])});let i=.001,u=100,m=!1;0==x.length&&(m=!0);let c=0;return x.forEach(e=>{null!=e&&null!=e&&"/"!=e||c++}),c==x.length&&(m=!0,i=null,u=null),r.some(e=>null!=e&&null!=e&&"/"!=e)&&(m=!1),{grid:{top:25,left:20,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"log",logBase:10,inverse:!0,min:i,max:u},yAxis:[{type:"value",name:o,nameGap:m?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:s}]}},chart270:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName,x=[],r=[],s=[],i=[],u=[],m=[];l[0].forEach((e,l)=>{0!=e&&0!=t[0][l]&&(x.push(e),i.push(t[0][l]))}),l[1].forEach((e,l)=>{0!=e&&0!=t[1][l]&&(r.push(e),u.push(t[1][l]))}),l[2].forEach((e,l)=>{0!=e&&0!=t[2][l]&&(s.push(e),m.push(t[2][l]))});const c=(e,l,t)=>{const n=`曲线${e}`,y=1==e?"rect":2==e?"triangle":"circle",o=1==e?"solid":2==e?"dotted":[10,5],x=1==e?a[0].lineColor:2==e?a[1].lineColor:a[2].lineColor,r=[];return l.forEach((e,l)=>{r.push([e,t[l]])}),{name:n,type:"line",smooth:!0,symbol:y,symbolSize:5,lineStyle:{color:x,type:o},itemStyle:{color:x},data:r}};let h=!1;return x.every(e=>"/"==e)&&r.every(e=>"/"==e)&&s.every(e=>"/"==e)&&i.every(e=>"/"==e)&&u.every(e=>"/"==e)&&m.every(e=>"/"==e)&&(h=!0),{grid:{top:35,left:h?25:30,right:20,bottom:5,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].value[0]+"):"+e[0].value[1]:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",top:16,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",axisTick:{alignWithLabel:!0},splitLine:{show:!0},position:"top",nameGap:5,nameLocation:"end"},yAxis:[{type:"value",name:o,nameGap:h?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[c(1,x,i),c(2,r,u),c(3,s,m)]}},chart279_280_281:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName,x=279==e.chartType?5:280==e.chartType?.1:.15,r=l[0],s=t[0],i=Math.min(...r),u=Number(EChartsUtilsComm.getRound(Math.min(...s)-x,.001)),m=Number(EChartsUtilsComm.getRound(Math.max(...s)+x,.001));i=Number(EChartsUtilsComm.getRound(i-.01*i,.001));let c=[];r.forEach((e,l)=>{c.push([e,s[l]])});let h=!1;return s.every(e=>"/"==e)&&(h=!0),{grid:{top:25,left:20,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",min:i,max:100},yAxis:[{type:"value",name:o,nameGap:h?5:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0},min:u,max:m}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:c}]}},chart290:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName,x=l[0],r=l[0],s=l[0],i=t[0],u=t[1],m=t[2];const c=(e,l)=>{const t=`曲线${e}`,n=1==e?"rect":2==e?"triangle":"circle",y=1==e?"solid":2==e?"dotted":[10,5],o=1==e?a[0].lineColor:2==e?a[1].lineColor:a[2].lineColor;return{name:t,type:"line",smooth:!0,symbol:n,symbolSize:5,lineStyle:{color:o,type:y},itemStyle:{color:o},data:l}};let h=!1;return x.every(e=>"/"==e)&&r.every(e=>"/"==e)&&s.every(e=>"/"==e)&&i.every(e=>"/"==e)&&u.every(e=>"/"==e)&&m.every(e=>"/"==e)&&(h=!0,x=[]),{grid:{top:35,left:h?25:30,right:10,bottom:5,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",top:16,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",data:x,axisTick:{alignWithLabel:!0},splitLine:{show:!0},position:"top",nameGap:5,nameLocation:"end",axisLabel:{formatter:function(e){return"/"==e?"":e}}},yAxis:[{type:"value",name:o,nameGap:h?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[c(1,i),c(2,u),c(3,m)]}},chart310:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName,x=l[0],r=t[0],s=[],i=[];x.forEach((e,l)=>{null==e||null==e||"/"==e||null!=e._code&&null!=e._code||(s.push(e),i.push(r[l]))}),x=s,r=i;let u=!1;return x.every(e=>"/"==e||null!=e._code&&null!=e._code)&&r.every(e=>"/"==e||null!=e._code&&null!=e._code)&&(u=!0,x=[]),{grid:{top:35,left:u?25:30,right:20,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:n,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",top:16,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",data:x,axisLabel:{formatter:function(e){return"/"==e?"":e}},axisTick:{alignWithLabel:!0},axisLine:{symbol:["none","arrow"],symbolSize:10},splitLine:{show:!0},position:"top",name:"p",nameGap:5,nameLocation:"end"},yAxis:[{type:"value",name:o,nameGap:u?5:30,nameRotate:90,nameLocation:"middle",inverse:!0,splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0,symbol:["arrow","none"],symbolSize:10}},{name:"L",nameRotate:0,nameLocation:"end",nameGap:5,position:"left",inverse:!0}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:a[0].lineColor},itemStyle:{color:a[0].lineColor},data:r}]}},chart330:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=e.chartXName,x=e.chartYName,r=l[0],s=t[0];const i=EChartsUtilsComm.calcTrend(r,s,r[0]);let u=EChartsUtilsComm.getRound((.15-i.jj)/i.xl,0),m=EChartsUtilsComm.getRound((.19-i.jj)/i.xl,0),c=EChartsUtilsComm.getRound((.25-i.jj)/i.xl,0),h=EChartsUtilsComm.getRound((.31-i.jj)/i.xl,0);u==1/0&&(u=0),m==1/0&&(m=0),c==1/0&&(c=0),h==1/0&&(h=0);let p=`${u}~${m}`,f=`${c}~${h}`;null!=y&&(0==u&&0==m?a.setValue(y.bszdjBh.row,y.bszdjBh.col,"/"):a.setValue(y.bszdjBh.row,y.bszdjBh.col,p),0==c&&0==h?a.setValue(y.bszdjYs.row,y.bszdjYs.col,"/"):a.setValue(y.bszdjYs.row,y.bszdjYs.col,f));let d=!1;return r.every(e=>"/"==e)&&s.every(e=>"/"==e)&&(d=!0,r=[]),{grid:{top:10,left:d?25:30,right:10,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].seriesName+"("+e[0].name+"):"+e[0].value:e[0].data}},title:[{show:!0,text:"",left:"center",top:0,textStyle:{fontSize:18,fontWeight:"normal"}},{show:!0,text:o,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"category",data:r,axisTick:{alignWithLabel:!0},axisLabel:{formatter:function(e){return"/"==e?"":e}}},yAxis:[{type:"value",name:x,nameGap:d?5:25,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},axisLine:{show:!0}}],series:[{name:"图例1",type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:n[0].lineColor},itemStyle:{color:n[0].lineColor},data:s}]}},chart350:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson)[0].lineColor;const n=[l[0][0],l[0][1]],y=[t[0][0],t[0][1]],o=Number(EChartsUtilsComm.getRound(EChartsUtilsComm.calcTrend(n,y,n[0]).y,.1)),x=Number(EChartsUtilsComm.getRound(EChartsUtilsComm.calcTrend(n,y,n[1]).y,.1)),r=Number(EChartsUtilsComm.getRound(EChartsUtilsComm.calcTrend(n,y,25).y,.1)),s=Math.floor(Number(x))-2,i=Math.floor(Number(o))+2;let u=e.chartTitle,m=e.chartXName,c=e.chartYName,h=!0;h=0==l[0].filter(e=>null!=e&&null!=e&&"/"!=e).length,h&&(h=0==t[0].filter(e=>null!=e&&null!=e&&"/"!=e).length);let p=[{name:"图例1",type:"line",symbol:"circle",z:10,lineStyle:{color:a},itemStyle:{color:a},connectNulls:!0,data:[[0,null],[2,null],[3.5,null],[4.9,null],[5.9,null],[6.9,null],{value:[10.4,r-2.7*(r-o)/2.1],symbol:"none"},[11,o],[11.8,null],[13.1,r],[14.6,x],{value:[15.2,2.1/1.5*(x-r)+r],symbol:"none"},[16.4,null],[17.4,null],[18.9,null],[19.8,null],[20.7,null],[21.6,null],[22.6,null]],markPoint:{data:[{xAxis:13.1,yAxis:r,symbolOffset:[40,25],label:{show:!0,color:"#000",formatter:function(e){return h?"":"( 25 , "+e.data.yAxis+")"}},itemStyle:{color:"transparent"}}]},markLine:{symbol:"",silent:!0,label:{position:"start",formatter:e=>e.name},lineStyle:{color:"#e0e6f1",type:"solid"},data:[{name:"5",xAxis:0,label:{fontSize:8}},{name:"6",xAxis:2,label:{fontSize:8}},{name:"7",xAxis:3.5,label:{fontSize:8}},{name:"8",xAxis:4.9,label:{fontSize:8}},{name:"9",xAxis:5.9,label:{fontSize:8}},{name:"10",xAxis:6.9,label:{fontSize:8}},{name:"",xAxis:10.4,lineStyle:{opacity:0}},{name:"",xAxis:11},{name:"20",xAxis:11.8,label:{fontSize:8}},{name:"25",xAxis:13.1,label:{fontSize:8}},{name:"30",xAxis:14.6,label:{fontSize:8}},{name:"",xAxis:15.2,lineStyle:{opacity:0}},{name:"40",xAxis:16.4,label:{fontSize:8}},{name:"50",xAxis:17.4,label:{fontSize:8}},{name:"",xAxis:18.9},{name:"",xAxis:19.8},{name:"",xAxis:20.7},{name:"",xAxis:21.6},{name:"100",xAxis:22.6,label:{fontSize:8}},[{coord:[0,r],lineStyle:{color:"#529b2e",type:"solid"}},{coord:[13.1,r]}],[{coord:[13.1,s],lineStyle:{color:"#000",type:"silid"}},{coord:[13.1,r]}]]}}];return h&&(p=[]),{grid:{top:25,left:30,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e[0].data.length>1?null==e[0].data[1]?"":e[0].seriesName+"("+e[0].data[0]+"):"+e[0].data[1]:e[0].data}},title:[{show:!0,text:u,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:m,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:["图例1"],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},min:0,max:23.5},yAxis:[{type:"value",name:c,nameGap:h?10:30,nameRotate:90,nameLocation:"middle",splitLine:{show:!0,lineStyle:{color:"#e0e6f1",type:"solid"}},splitNumber:4,min:h?null:s,max:i,axisLabel:{show:!h,fontSize:8},axisTick:{show:!h}}],series:p}},chart370:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=null!=y?y.dxsJs:5;const x=n[0].lineColor;for(var r=l[0],s=t[0],i=0,u=0,m=0,c=0,h=0,p=0;p<r.length;p++){var f=r[p],d=s[p],g=f*f,b=g*f;i+=b*f,u+=b,m+=g,c+=g*d,h+=f*d}var C=i*m-u*u,S=(c*m-h*u)/C,w=(i*h-u*c)/C,F=w*w+4*S*50,V=(-w+Math.sqrt(F))/(o*S);(V<0||V>Math.max(...r)+Math.min(...r))&&(V=(-w-Math.sqrt(F))/(o*S));var E=[],N=[],v=Math.max(...r)+Math.min(...r);for(f=0;f<=v;f+=.01)E.push(f),N.push(S*f*f+w*f);let A=!1;if(0==N.length)A=!0;else{let e=0;N.forEach(l=>{null!=l&&null!=l&&"/"!=l&&""!=l||e++}),e==N.length&&(A=!0)}const D=E.map((e,l)=>[e,N[l]]);let U=.01,J=0;return null!=y&&(null!=y.jsDzviJd&&null!=y.jsDzviJd&&(U=y.jsDzviJd),J=EChartsUtilsComm.getRound(V,U),a.setValue(y.jsDzvi.row,y.jsDzvi.col,J)),{title:[{show:!0,text:"V₂₀(mm/s)",left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],grid:{top:10,left:25,right:10,bottom:20,containLabel:!0},xAxis:{type:"value",name:"X轴",min:0,max:v,axisLine:{show:!0}},yAxis:{type:"value",name:"Δh (mm)",nameGap:A?5:30,nameRotate:90,nameLocation:"middle",min:0,max:Math.max(...s)+10,interval:10,axisLine:{show:!0}},series:[{name:"趋势线",type:"line",data:D,symbol:"none",lineStyle:{color:x,type:"solid"},smooth:!0},{name:"y=50 标注点",type:"scatter",data:[[V,50]],symbolSize:10,itemStyle:{color:x},label:{show:!0,position:"right",formatter:"("+V.toFixed(2)+", 50)",color:"#333",fontSize:12},markLine:{symbol:"none",lineStyle:{color:"#333",type:"dashed",width:1},data:[[{coord:[0,50]},{coord:[V,50]}],[{coord:[V,50]},{coord:[V,0]}]]}}]}},chart390:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName,x=[],r=[];a.forEach((e,a)=>{l[a].some(e=>0!=e&&null!=e&&null!=e&&"/"!=e)&&t[a].some(e=>0!=e&&null!=e&&null!=e&&"/"!=e)&&(x.push(e.legend),r.push({name:e.legend,type:"line",data:l[0].filter(e=>0!=e&&null!=e&&null!=e&&"/"!=e).map((e,l)=>[e,t[a][l]]),symbol:0==a?"triangle":1==a?"circle":"rect",lineStyle:{color:e.lineColor,type:2==a?"solid":"dotted"},smooth:!0}))});return{title:[{show:!0,text:n,left:"100px",top:5,textStyle:{fontSize:12,fontWeight:"normal"}},{show:!0,text:y,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{top:"2px",right:"5px",data:x,selectedMode:"multiple"},grid:{top:25,left:25,right:10,bottom:20,containLabel:!0},xAxis:{type:"value",name:"X轴",min:0,axisLine:{show:!0}},yAxis:{type:"value",name:o,nameGap:30,nameRotate:90,nameLocation:"middle",min:0,interval:10,axisLine:{show:!0}},series:r}},chart410:(config,xDataArr,yDataArr,sheet)=>{let lineData=JSON.parse(config.chartLinesJson);const chartExtJson=null==config.chartExtJson||null==config.chartExtJson?null:JSON.parse(config.chartExtJson);let yDataSource=yDataArr[0],title=config.chartTitle,xName=config.chartXName,yName=config.chartYName,legendName="图例1",xData=xDataArr[0],xDataCl=[],yDataSourceCl=[];for(let e=0;e<xData.length;e++)if("/"!=xData[e]&&(0==e||e>0&&0!=xData[e]))xDataCl.push(xData[e]),yDataSourceCl.push(yDataSource[e]);else if(e>0&&0==xData[e])break;xData=xDataCl,yDataSource=yDataSourceCl;let seriesData=[],markPointData=[],markLineData=[...xData];const gsS=EChartsUtilsComm.calcTrend(xData,yDataSource,xData[0]);if(null!=chartExtJson&&null!=chartExtJson.yhmhlBzHgx&&null!=chartExtJson.yhmhlBzHgx)if(""==gsS.xl||""==gsS.jj)sheet.setValue(chartExtJson.yhmhlBzHgx.row,chartExtJson.yhmhlBzHgx.col,"/");else{const e=EChartsUtilsComm.getRound(gsS.jj,1e-4);sheet.setValue(chartExtJson.yhmhlBzHgx.row,chartExtJson.yhmhlBzHgx.col,`Y=${EChartsUtilsComm.getRound(gsS.xl,1e-4)}X${e>=0?"+":""}${e}`)}let yDataCopy=[];xData.forEach((item,index)=>{let curYData=Number(EChartsUtilsComm.getRound(eval(gsS.gs.replace("x",item+"")),.01));isNaN(curYData)&&(curYData=0),seriesData.push([item,yDataSource[index]]),yDataCopy.push(curYData),markPointData.push({xAxis:item,yAxis:yDataSource[index],symbol:"circle",symbolSize:6})});let yValIsAllNull=!1;0==xData.length&&(yValIsAllNull=!0);let nullCount=0;xData.forEach(e=>{0!=e[1]&&null!=e[1]&&null!=e[1]||nullCount++}),nullCount==xData.length&&(yValIsAllNull=!0),yDataCopy.some(e=>0!=e||null==e[1]||null==e[1])&&(yValIsAllNull=!1);let option={grid:{top:22,left:yValIsAllNull?25:30,right:10,bottom:35,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e,l){return e&&e.length>0?e[0].value[0]+":"+e[0].value[1]:e[0].data}},title:[{show:!0,text:title,left:"center",top:0,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:xName,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],legend:{show:!1,left:"right",data:[legendName],selected:{legendName:!0},selectedMode:"multiple"},xAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"value",name:yName,nameGap:yValIsAllNull?5:30,nameRotate:90,nameLocation:"middle"}],series:[{name:legendName,type:"line",smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:lineData[0].lineColor,type:"solid"},itemStyle:{color:lineData[0].lineColor,opacity:0},data:seriesData,markPoint:{data:markPointData},markLine:{symbol:!1,silent:!0,label:{position:"start",formatter:e=>e.value},lineStyle:{color:"#ddd",type:"solid"},data:markLineData.map(e=>({xAxis:e}))}}]};return option},chart430:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=e.chartTitle,x=e.chartXName,r=e.chartYName,s=n[0].lineColor;const i=l[0],u=t[0];let m=!1;0!=i.length&&0!=u.length&&(i.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||u.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(m=!0),i.filter(e=>0==e).length!=i.length&&u.filter(e=>0==e).length!=u.length||(m=!0);let c="/",h="/",p="/",f=[];const d=Math.max(...i);if(!m){const e=function(e,l,t){const a=e.length;let n=[];for(let y=0;y<a;y++){let a=[];for(let l=0;l<=t;l++)a.push(Math.pow(e[y],l));n.push([l[y]])}let y=[];for(let l=0;l<=t;l++){y[l]=[];for(let n=0;n<=t;n++){let t=0;for(let y=0;y<a;y++)t+=Math.pow(e[y],l+n);y[l][n]=t}}let o=[];for(let n=0;n<=t;n++){let t=0;for(let y=0;y<a;y++)t+=Math.pow(e[y],n)*l[y];o[n]=t}let x=[];for(let e=0;e<=t;e++){x[e]=[];for(let l=0;l<=t;l++)x[e][l]=y[e][l];x[e][t+1]=o[e]}for(let e=0;e<=t;e++){let l=e;for(let a=e+1;a<=t;a++)Math.abs(x[a][e])>Math.abs(x[l][e])&&(l=a);[x[e],x[l]]=[x[l],x[e]];const a=x[e][e];for(let l=e;l<=t+1;l++)x[e][l]/=a;for(let l=e+1;l<=t;l++){const a=x[l][e];for(let n=e;n<=t+1;n++)x[l][n]-=a*x[e][n]}}const r=new Array(t+1);for(let e=t;e>=0;e--){r[e]=x[e][t+1];for(let l=e+1;l<=t;l++)r[e]-=x[e][l]*r[l]}return r}(i,u,2);c=e[2].toFixed(4),h=e[1].toFixed(4),p=e[0].toFixed(4);const l=Math.min(...i),t=(d-l)/100;for(let e=l;e<=d;e+=t){const l=parseFloat(c)*e*e+parseFloat(h)*e+parseFloat(p);f.push([e,l])}}return null!=y&&(null!=y.dwylHtbxGs&&null!=y.dwylHtbxGs&&a.setValue(y.dwylHtbxGs.row,y.dwylHtbxGs.col,"NaN"!=c&&"NaN"!=h&&"NaN"!=p?`Y=${c}X²+${h}X+${p}`:"/"),null!=y.dwylHtbxA&&null!=y.dwylHtbxA&&a.setValue(y.dwylHtbxA.row,y.dwylHtbxA.col,"NaN"!=c?c:"/"),null!=y.dwylHtbxB&&null!=y.dwylHtbxB&&a.setValue(y.dwylHtbxB.row,y.dwylHtbxB.col,"NaN"!=h?h:"/"),null!=y.dwylHtbxC&&null!=y.dwylHtbxC&&a.setValue(y.dwylHtbxC.row,y.dwylHtbxC.col,"NaN"!=p?p:"/")),{title:[{show:!0,text:o,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:x,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],grid:{top:25,left:25,right:15,bottom:20,containLabel:!0},xAxis:{type:"value",nameLocation:"end",nameTextStyle:{fontSize:14,padding:[10,0,0,0]},min:0,max:d+.05},yAxis:{type:"value",name:r,nameGap:m?5:30,nameRotate:90,nameLocation:"middle",interval:20,min:0,max:Math.max(...u)+10,axisLine:{lineStyle:{color:"#333"}}},tooltip:{trigger:"axis",formatter:function(e){return e.length>1?`单位压力: ${e[0].value[0]} MPa<br/>回弹变形: ${e[0].value[1]} (1/1000mm)`:`趋势线<br/>单位压力: ${e[0].value[0]} MPa<br/>预测回弹变形: ${e[0].value[1].toFixed(2)} (1/1000mm)`}},series:[{name:"原始数据",type:"scatter",data:i.map((e,l)=>[e,u[l]]),symbolSize:5,itemStyle:{color:s}},{name:"多项式趋势线",type:"line",data:f,symbol:"none",lineStyle:{color:s,width:1,type:"dashed"},smooth:.3,tooltip:{trigger:"item"}}]}},chart450:(e,l,t)=>{let a=JSON.parse(e.chartLinesJson),n=e.chartTitle,y=e.chartXName,o=e.chartYName,x=a[0].lineColor;const r=l[0],s=t[0];const i=function(e,l){const t=e.length;let a=0,n=0,y=0,o=0;for(let x=0;x<t;x++)a+=e[x],n+=l[x],y+=e[x]*l[x],o+=e[x]*e[x];const x=(t*y-a*n)/(t*o-a*a);return{slope:x,intercept:(n-x*a)/t}}(r,s);Math.min(...r);const u=Math.max(...r)+50,m=[];for(let e=0;e<=u;e+=10){const l=i.slope*e+i.intercept;m.push([e,l])}let c=!1;0!=r.length&&0!=s.length&&(r.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||s.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(c=!0),r.filter(e=>0==e).length!=r.length&&s.filter(e=>0==e).length!=s.length||(c=!0);return{title:[{show:!0,text:n,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:y,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],grid:{top:25,left:25,right:15,bottom:20,containLabel:!0},tooltip:{trigger:"axis",formatter:function(e){let l="";return e.forEach(e=>{"实际数据"===e.seriesName?l+=`法向应力: ${e.value[0]} kPA<br/>剪应力: ${e.value[1]} kPA`:"趋势线"===e.seriesName&&(l+=`趋势线<br/>法向应力: ${e.value[0]} kPA<br/>预测剪应力: ${e.value[1].toFixed(2)} kPA`)}),l}},xAxis:{name:y,nameLocation:"end",nameGap:20,nameTextStyle:{fontSize:12,fontWeight:"bold"},type:"value",min:0,max:450,interval:50,axisLine:{lineStyle:{color:"#333"}}},yAxis:{name:o,nameGap:c?5:35,nameRotate:90,nameLocation:"middle",type:"value",min:0,interval:50,axisLine:{lineStyle:{color:"#333"}}},series:[{name:"实际数据",type:"scatter",data:c?[]:r.map((e,l)=>[e,s[l]]),symbolSize:5,itemStyle:{color:x}},{name:"趋势线",type:"line",data:c?[]:m,symbol:"none",lineStyle:{color:x,width:1,type:"solid"}}]}},chart470:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=e.chartTitle,x=e.chartXName,r=e.chartYName,s=n[0].lineColor;const i=l[0],u=t[0];function m(e,l,t){for(let a=0;a<t.length-1;a++)if(t[a]>=e&&t[a+1]<=e||t[a]<=e&&t[a+1]>=e){const n=l[a],y=l[a+1],o=t[a];return n+(y-n)*(e-o)/(t[a+1]-o)}return null}const c=m(5,i,u),h=m(10,i,u);let p=!1;0!=i.length&&0!=u.length&&(i.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||u.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(p=!0),i.filter(e=>0==e).length!=i.length&&u.filter(e=>0==e).length!=u.length||(p=!0),null!=y&&(null!=y.tghcclYxkj5&&null!=y.tghcclYxkj5&&a.setValue(y.tghcclYxkj5.row,y.tghcclYxkj5.col,c?EChartsUtilsComm.getRound(c,.001):"/"),null!=y.tghcclYxkj10&&null!=y.tghcclYxkj10&&a.setValue(y.tghcclYxkj10.row,y.tghcclYxkj10.col,h?EChartsUtilsComm.getRound(h,.001):"/"));return{title:[{show:!0,text:o,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:x,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],tooltip:{trigger:"axis",formatter:function(e){return`标准颗粒直径: ${e[0].value[0].toFixed(3)} mm<br>过筛率: ${e[0].value[1].toFixed(2)} %`}},grid:{top:25,left:25,right:15,bottom:20,containLabel:!0},xAxis:{name:x,nameLocation:"end",nameGap:20,nameTextStyle:{fontSize:12},type:"log",axisLine:{lineStyle:{color:"#333"}},min:.01,max:1,axisLabel:{formatter:function(e){return e.toFixed(2)}},splitLine:{show:!0,lineStyle:{color:"#f0f0f0",width:1,type:"solid"}},minorTick:{show:!0},minorSplitLine:{show:!0,lineStyle:{color:"#f0f0f0",width:1,type:"solid"}}},yAxis:{type:"value",name:r,nameLocation:"middle",nameGap:25,nameTextStyle:{fontSize:12},axisLine:{lineStyle:{color:"#333"}},min:0,max:25,splitLine:{show:!0,lineStyle:{color:"#f0f0f0",width:1}}},series:p?[]:[{name:"孔径分布",type:"line",data:i.map((e,l)=>[e,u[l]]),smooth:!0,lineStyle:{width:2,type:"solid"},showSymbol:!0,symbol:"circle",symbolSize:8,itemStyle:{color:s,borderColor:"#fff",borderWidth:1},markPoint:{symbol:"circle",symbolSize:1,data:[{name:"y=5",coord:[c,5],value:5,itemStyle:{color:"red"},label:{show:!0,formatter:`(${c.toFixed(3)},5)`,position:"right",fontSize:12}},{name:"y=10",coord:[h,10],value:10,itemStyle:{color:"red"},label:{show:!0,formatter:`(${h.toFixed(3)},10)`,position:"right",fontSize:12}}]},markLine:{symbol:"none",data:[[{coord:[.01,5],lineStyle:{type:"dashed",color:"red",width:1}},{coord:[c,5],lineStyle:{type:"dashed",color:"red",width:1}}],[{coord:[c,0],lineStyle:{type:"dashed",color:"red",width:1}},{coord:[c,5],lineStyle:{type:"dashed",color:"red",width:1}}],[{coord:[.01,10],lineStyle:{type:"dashed",color:"red",width:1}},{coord:[h,10],lineStyle:{type:"dashed",color:"red",width:1}}],[{coord:[h,0],lineStyle:{type:"dashed",color:"red",width:1}},{coord:[h,10],lineStyle:{type:"dashed",color:"red",width:1}}]]}}]}},chart490:(e,l,t,a)=>{let n=JSON.parse(e.chartLinesJson);const y=null==e.chartExtJson||null==e.chartExtJson?null:JSON.parse(e.chartExtJson);let o=e.chartTitle,x=e.chartXName,r=e.chartYName,s=n[0].lineColor;const i=l[0],u=t[0];const m=u.map(e=>Math.log10(e)),c=function(e,l){const t=e.length,a=e.reduce((e,l)=>e+l,0)/t,n=l.reduce((e,l)=>e+l,0)/t;let y=0,o=0;for(let x=0;x<t;x++)y+=(e[x]-a)*(l[x]-n),o+=(e[x]-a)*(e[x]-a);const x=y/o;return{slope:x,intercept:n-x*a}}(i,m),h=function(e,l,t,a){const n=e.length,y=l.reduce((e,l)=>e+l,0)/n;let o=0,x=0;for(let r=0;r<n;r++){o+=Math.pow(l[r]-y,2);const n=t*e[r]+a;x+=Math.pow(l[r]-n,2)}return 1-x/o}(i,m,c.slope,c.intercept);let p=!1;0!=i.length&&0!=u.length&&(i.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e)||u.some(e=>""!=e&&"/"!=e&&null!=e&&null!=e))||(p=!0),i.filter(e=>0==e).length!=i.length&&u.filter(e=>0==e).length!=u.length||(p=!0);const f=(p?[]:[30,70,100,150,200]).map(e=>({yAxis:e,label:{show:!0,formatter:"{c}"},lineStyle:{color:"#e0e0e0",width:1,type:"solid"}}));null!=y&&(null!=y.wdzrdXlA&&null!=y.wdzrdXlA&&a.setValue(y.wdzrdXlA.row,y.wdzrdXlA.col,c.slope?EChartsUtilsComm.getRound(c.slope,1e-4):"/"),null!=y.wdzrdCsB&&null!=y.wdzrdCsB&&a.setValue(y.wdzrdCsB.row,y.wdzrdCsB.col,c.intercept?EChartsUtilsComm.getRound(c.intercept,1e-4):"/"),null!=y.wdzrdXsR&&null!=y.wdzrdXsR&&a.setValue(y.wdzrdXsR.row,y.wdzrdXsR.col,h?EChartsUtilsComm.getRound(h,1e-4):"/"));return{title:[{show:!0,text:o,left:"center",top:2,textStyle:{fontSize:14,fontWeight:"normal"}},{show:!0,text:x,left:"center",bottom:0,textStyle:{fontSize:12,fontWeight:"normal"}}],grid:{top:25,left:p?20:40,right:15,bottom:20,containLabel:!0},xAxis:{type:"value",name:x,min:Math.min(...i)},yAxis:{type:"log",name:r,nameLocation:"middle",nameGap:p?5:25,logBase:10,min:function(e){return Math.max(1,Math.pow(10,Math.floor(Math.log10(e.min))))},max:function(e){const l=e.max;if(l<=0)return 100;const t=Math.log10(l),a=Math.floor(t),n=t-a;let y;return y=n<.3?a+.3:n<.7?a+1:a+1.5,Math.pow(10,y)},splitLine:{show:!1},axisLabel:{show:!1},zlevel:1,minorSplitLine:{show:!1}},series:[{name:"原始数据",type:"scatter",data:i.map((e,l)=>[e,u[l]]),symbolSize:6,zlevel:4,itemStyle:{color:s}},{name:"趋势线",type:"line",data:(()=>{const e=Math.min(...i),l=Math.max(...i),t=[];for(let a=e;a<=l;a+=.5){const e=c.slope*a+c.intercept,l=Math.pow(10,e);t.push([a,l])}return t})(),showSymbol:!1,lineStyle:{color:s,width:1},zlevel:5},{name:"自定义网格线",type:"line",data:[],markLine:{symbol:"none",lineStyle:{color:"#e0e0e0",width:1,type:"solid"},label:{show:!0,position:"start",formatter:"{c}"},data:f},silent:!0}]}}},EChartsUtils={create:(e,l,t,a,...n)=>__awaiter(void 0,[e,l,t,a,...n],void 0,function*(e,l,t,a,n=!1,y=!1){a.chartIdStr&&a.chartIdStr.length>0&&(a.chartId=a.chartIdStr);const o=null==a.chartExtJson||null==a.chartExtJson?null:JSON.parse(a.chartExtJson);if(null!=o&&null!=o.isShowCon&&null!=o.isShowCon){if(t.getValue(o.isShowCon.row,o.isShowCon.col)!=o.isShowVal)return void t.floatingObjects.remove(a.chartId)}let x=0,r=0,s=0,i=0;for(let e=0;e<a.row;e++)x+=t.getRowHeight(e);x+=t.getRowHeight(0,e.Spread.Sheets.SheetArea.colHeader);for(let e=a.col;e<a.col+a.colCount;e++)r+=t.getColumnWidth(e);for(let e=0;e<a.col;e++)s+=t.getColumnWidth(e);s+=t.getColumnWidth(0,e.Spread.Sheets.SheetArea.rowHeader);for(let e=a.row;e<a.row+a.rowCount;e++)i+=t.getRowHeight(e);const u={x:s-40+2,y:x-20+2,w:r-6,h:i-6};let m=t.floatingObjects.get(a.chartId);if(null==m||null==m?(m=new e.Spread.Sheets.FloatingObjects.FloatingObject(a.chartId,u.x,u.y,u.w,u.h),m.allowResize(!1),m.allowMove(!1),t.floatingObjects.add(m)):(m.x(u.x),m.y(u.y),m.width(u.w),m.height(u.h)),null==document.getElementById(a.chartId+"_ec")){const e=document.createElement("div");e.setAttribute("style","background-color:#fff;width:100%;height:100%;"),e.innerHTML=`<div id="${a.chartId}_ec" style="width:100%;height:100%;"></div>`,m.content(e)}let c=null;return c=(yield new Promise((e,o)=>{setTimeout(()=>{e({ecObj:EChartsUtils.initChart(l,t,a,n,y)})},10)})).ecObj,{fObj:m,fObjPosition:u,ecObj:c}}),initChart:(e,l,t,a=!1,n=!1)=>{if(null==document.getElementById(t.chartId+"_ec"))return null;let y=[],o=[],x=[],r=[];const s=(e,l,t,a)=>{let n={dataOneArr:[],dataOneSourceArr:[]},y=null;return null!=t&&null!=t&&t.length>0&&(y=e.getSheetFromName(t)),null==a||a.forEach((e,t)=>{const a=null!=y?y.getValue(e.row,e.col):l.getValue(e.row,e.col);n.dataOneSourceArr.push(a),/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(a)?n.dataOneArr.push(Number(a)):n.dataOneArr.push(null==a||null!=a&&null!=a&&null!=a._error&&null!=a._error?0:a)}),n};JSON.parse(t.chartLinesJson).forEach((t,a)=>{let n=[],i=[],u=[],m=[];const c=s(e,l,t.sheetNameX,t.xCells);n=c.dataOneArr,u=c.dataOneSourceArr;const h=s(e,l,t.sheetNameY,t.yCells);i=h.dataOneArr,m=h.dataOneSourceArr,y.push(n),o.push(i),x.push(u),r.push(m)});const i=document.getElementById(t.chartId+"_ec");let u,m=echarts__namespace.getInstanceByDom(i);return null!=m&&null!=m||(m=echarts__namespace.init(i,null,{renderer:"canvas",useDirtyRect:!1})),10==t.chartType?u=EChartsUtilsAll.chart10(t,y,o,l):11==t.chartType?u=EChartsUtilsAll.chart11(t,y,o,l):12==t.chartType?u=EChartsUtilsAll.chart12(t,y,o,l):13==t.chartType?u=EChartsUtilsAll.chart13(t,y,o,l):14==t.chartType?u=EChartsUtilsAll.chart14(t,y,o,l):15==t.chartType?u=EChartsUtilsAll.chart15(t,y,o,l):16==t.chartType?u=EChartsUtilsAll.chart16(t,y,o,l):30==t.chartType?u=EChartsUtilsAll.chart30(t,y,o,l):50==t.chartType?u=EChartsUtilsAll.chart50(t,y,o):70==t.chartType?u=EChartsUtilsAll.chart70(t,y,o,l):90==t.chartType?u=EChartsUtilsAll.chart90(t,y,o,l):110==t.chartType?u=EChartsUtilsAll.chart110(t,y,o,x,r):130==t.chartType?u=EChartsUtilsAll.chart130(t,y,o):150==t.chartType?u=EChartsUtilsAll.chart150(t,y,o):170==t.chartType?u=EChartsUtilsAll.chart170(t,y,o):190==t.chartType?u=EChartsUtilsAll.chart190(t,y,o):210==t.chartType?u=EChartsUtilsAll.chart210(t,y,o):230==t.chartType?u=EChartsUtilsAll.chart230(t,y,o):250==t.chartType?u=EChartsUtilsAll.chart250(t,y,o):270==t.chartType?u=EChartsUtilsAll.chart270(t,y,o):279==t.chartType||280==t.chartType||281==t.chartType?u=EChartsUtilsAll.chart279_280_281(t,y,o):290==t.chartType?u=EChartsUtilsAll.chart290(t,y,o):310==t.chartType?u=EChartsUtilsAll.chart310(t,y,o):330==t.chartType?u=EChartsUtilsAll.chart330(t,y,o,l):350==t.chartType?u=EChartsUtilsAll.chart350(t,y,o):370==t.chartType?u=EChartsUtilsAll.chart370(t,y,o,l):390==t.chartType?u=EChartsUtilsAll.chart390(t,y,o):410==t.chartType?u=EChartsUtilsAll.chart410(t,y,o,l):430==t.chartType?u=EChartsUtilsAll.chart430(t,y,o,l):450==t.chartType?u=EChartsUtilsAll.chart450(t,y,o):470==t.chartType?u=EChartsUtilsAll.chart470(t,y,o,l):490==t.chartType&&(u=EChartsUtilsAll.chart490(t,y,o,l)),u&&"object"==typeof u&&(a&&(u.animation=!1),m.setOption(u)),m.setOption(u),m},getEChartsObj:e=>{const l=document.getElementById(e+"_ec");let t=echarts__namespace.getInstanceByDom(l);return null==t||null==t?null:t}},FormulaUtilsOther={YJHTQD:(e,l,t,a)=>{var n;if("非泵送混凝土"==l){for(var y="",o=a,x=t,r=new Array("0.0","0.5","1.0","1.5","2.0","2.5","3.0","3.5","4.0","4.5","5.0","5.5","6.0"),s=0;s<r.length;s++){if(o==r[s]){y=s;break}if(1*o>"6"){y=r.length-1;break}}var i=[{x:20,y:10.3},{x:20.2,y:10.5},{x:20.4,y:10.7},{x:20.6,y:11},{x:20.8,y:11.2},{x:21,y:11.4},{x:21.2,y:11.6},{x:21.4,y:11.8},{x:21.6,y:12},{x:21.8,y:12.3},{x:22,y:12.5},{x:22.2,y:12.7},{x:22.4,y:13},{x:22.6,y:13.2},{x:22.8,y:13.4},{x:23,y:13.7},{x:23.2,y:13.9},{x:23.4,y:14.1},{x:23.6,y:14.4},{x:23.8,y:14.6},{x:24,y:14.9},{x:24.2,y:15.1},{x:24.4,y:15.4},{x:24.6,y:15.6},{x:24.8,y:15.9},{x:25,y:16.2},{x:25.2,y:16.4},{x:25.4,y:16.7},{x:25.6,y:16.9},{x:25.8,y:17.2},{x:26,y:17.5},{x:26.2,y:17.8},{x:26.4,y:18},{x:26.6,y:18.3},{x:26.8,y:18.6},{x:27,y:18.9},{x:27.2,y:19.1},{x:27.4,y:19.4},{x:27.6,y:19.7},{x:27.8,y:20},{x:28,y:20.3},{x:28.2,y:20.6},{x:28.4,y:20.9},{x:28.6,y:21.2},{x:28.8,y:21.5},{x:29,y:21.8},{x:29.2,y:22.1},{x:29.4,y:22.4},{x:29.6,y:22.7},{x:29.8,y:23},{x:30,y:23.3},{x:30.2,y:23.6},{x:30.4,y:23.9},{x:30.6,y:24.3},{x:30.8,y:24.6},{x:31,y:24.9},{x:31.2,y:25.2},{x:31.4,y:25.6},{x:31.6,y:25.9},{x:31.8,y:26.2},{x:32,y:26.5},{x:32.2,y:26.9},{x:32.4,y:27.2},{x:32.6,y:27.6},{x:32.8,y:27.9},{x:33,y:28.2},{x:33.2,y:28.6},{x:33.4,y:28.9},{x:33.6,y:29.3},{x:33.8,y:29.6},{x:34,y:30},{x:34.2,y:30.3},{x:34.4,y:30.7},{x:34.6,y:31.1},{x:34.8,y:31.4},{x:35,y:31.8},{x:35.2,y:32.1},{x:35.4,y:32.5},{x:35.6,y:32.9},{x:35.8,y:33.3},{x:36,y:33.6},{x:36.2,y:34},{x:36.4,y:34.4},{x:36.6,y:34.8},{x:36.8,y:35.2},{x:37,y:35.5},{x:37.2,y:35.9},{x:37.4,y:36.3},{x:37.6,y:36.7},{x:37.8,y:37.1},{x:38,y:37.5},{x:38.2,y:37.9},{x:38.4,y:38.3},{x:38.6,y:38.7},{x:38.8,y:39.1},{x:39,y:39.5},{x:39.2,y:39.9},{x:39.4,y:40.3},{x:39.6,y:40.7},{x:39.8,y:41.2},{x:40,y:41.6},{x:40.2,y:42},{x:40.4,y:42.4},{x:40.6,y:42.8},{x:40.8,y:43.3},{x:41,y:43.7},{x:41.2,y:44.1},{x:41.4,y:44.5},{x:41.6,y:45},{x:41.8,y:45.4},{x:42,y:45.9},{x:42.2,y:46.3},{x:42.4,y:46.7},{x:42.6,y:47.2},{x:42.8,y:47.6},{x:43,y:48.1},{x:43.2,y:48.5},{x:43.4,y:49},{x:43.6,y:49.4},{x:43.8,y:49.9},{x:44,y:50.4},{x:44.2,y:50.8},{x:44.4,y:51.3},{x:44.6,y:51.7},{x:44.8,y:52.2},{x:45,y:52.7},{x:45.2,y:53.2},{x:45.4,y:53.6},{x:45.6,y:54.1},{x:45.8,y:54.6},{x:46,y:55},{x:46.2,y:55.5},{x:46.4,y:56},{x:46.6,y:56.5},{x:46.8,y:57},{x:47,y:57.5},{x:47.2,y:58},{x:47.4,y:58.5},{x:47.6,y:59},{x:47.8,y:59.5},{x:48,y:60}],u=[{x:20,y:10.1},{x:20.2,y:10.3},{x:20.4,y:10.5},{x:20.6,y:10.8},{x:20.8,y:11},{x:21,y:11.2},{x:21.2,y:11.4},{x:21.4,y:11.6},{x:21.6,y:11.8},{x:21.8,y:12.1},{x:22,y:12.2},{x:22.2,y:12.4},{x:22.4,y:12.7},{x:22.6,y:12.9},{x:22.8,y:13.1},{x:23,y:13.4},{x:23.2,y:13.6},{x:23.4,y:13.8},{x:23.6,y:14.1},{x:23.8,y:14.3},{x:24,y:14.6},{x:24.2,y:14.8},{x:24.4,y:15.1},{x:24.6,y:15.3},{x:24.8,y:15.6},{x:25,y:15.9},{x:25.2,y:16.1},{x:25.4,y:16.4},{x:25.6,y:16.6},{x:25.8,y:16.9},{x:26,y:17.2},{x:26.2,y:17.4},{x:26.4,y:17.6},{x:26.6,y:17.9},{x:26.8,y:18.2},{x:27,y:18.5},{x:27.2,y:18.7},{x:27.4,y:19},{x:27.6,y:19.3},{x:27.8,y:19.6},{x:28,y:19.7},{x:28.2,y:20},{x:28.4,y:20.3},{x:28.6,y:20.6},{x:28.8,y:20.9},{x:29,y:21.1},{x:29.2,y:21.4},{x:29.4,y:21.7},{x:29.6,y:22},{x:29.8,y:22.3},{x:30,y:22.6},{x:30.2,y:22.9},{x:30.4,y:23.2},{x:30.6,y:23.6},{x:30.8,y:23.9},{x:31,y:24.2},{x:31.2,y:24.4},{x:31.4,y:24.8},{x:31.6,y:25.1},{x:31.8,y:25.4},{x:32,y:25.7},{x:32.2,y:26.1},{x:32.4,y:26.4},{x:32.6,y:26.8},{x:32.8,y:27.1},{x:33,y:27.4},{x:33.2,y:27.7},{x:33.4,y:28},{x:33.6,y:28.4},{x:33.8,y:28.7},{x:34,y:29.1},{x:34.2,y:29.4},{x:34.4,y:29.8},{x:34.6,y:30.2},{x:34.8,y:30.5},{x:35,y:30.8},{x:35.2,y:31.1},{x:35.4,y:31.5},{x:35.6,y:31.9},{x:35.8,y:32.3},{x:36,y:32.6},{x:36.2,y:33},{x:36.4,y:33.4},{x:36.6,y:33.8},{x:36.8,y:34.1},{x:37,y:34.4},{x:37.2,y:34.8},{x:37.4,y:35.2},{x:37.6,y:35.6},{x:37.8,y:36},{x:38,y:36.4},{x:38.2,y:36.8},{x:38.4,y:37.2},{x:38.6,y:37.5},{x:38.8,y:37.9},{x:39,y:38.2},{x:39.2,y:38.5},{x:39.4,y:38.8},{x:39.6,y:39.1},{x:39.8,y:39.6},{x:40,y:39.9},{x:40.2,y:40.3},{x:40.4,y:40.7},{x:40.6,y:41.1},{x:40.8,y:41.6},{x:41,y:42},{x:41.2,y:42.3},{x:41.4,y:42.7},{x:41.6,y:43.2},{x:41.8,y:43.6},{x:42,y:44.1},{x:42.2,y:44.4},{x:42.4,y:44.8},{x:42.6,y:45.3},{x:42.8,y:45.7},{x:43,y:46.2},{x:43.2,y:46.6},{x:43.4,y:47},{x:43.6,y:47.4},{x:43.8,y:47.9},{x:44,y:48.4},{x:44.2,y:48.8},{x:44.4,y:49.2},{x:44.6,y:49.6},{x:44.8,y:50.1},{x:45,y:50.6},{x:45.2,y:51.1},{x:45.4,y:51.5},{x:45.6,y:51.9},{x:45.8,y:52.4},{x:46,y:52.8},{x:46.2,y:53.3},{x:46.4,y:53.8},{x:46.6,y:54.2},{x:46.8,y:54.7},{x:47,y:55.2},{x:47.2,y:55.7},{x:47.4,y:56.2},{x:47.6,y:56.6},{x:47.8,y:57.1},{x:48,y:57.6},{x:48.2,y:58},{x:48.4,y:58.6},{x:48.6,y:59},{x:48.8,y:59.5},{x:49,y:60}],m=[{x:20.2,y:10},{x:20.4,y:10.2},{x:20.6,y:10.4},{x:20.8,y:10.6},{x:21,y:10.8},{x:21.2,y:11},{x:21.4,y:11.2},{x:21.6,y:11.4},{x:21.8,y:11.7},{x:22,y:11.9},{x:22.2,y:12.1},{x:22.4,y:12.4},{x:22.6,y:12.5},{x:22.8,y:12.7},{x:23,y:13},{x:23.2,y:13.2},{x:23.4,y:13.4},{x:23.6,y:13.7},{x:23.8,y:13.9},{x:24,y:14.2},{x:24.2,y:14.3},{x:24.4,y:14.6},{x:24.6,y:14.8},{x:24.8,y:15.1},{x:25,y:15.4},{x:25.2,y:15.6},{x:25.4,y:15.9},{x:25.6,y:16.1},{x:25.8,y:16.3},{x:26,y:16.6},{x:26.2,y:16.9},{x:26.4,y:17.1},{x:26.6,y:17.4},{x:26.8,y:17.7},{x:27,y:18},{x:27.2,y:18.1},{x:27.4,y:18.4},{x:27.6,y:18.7},{x:27.8,y:19},{x:28,y:19.2},{x:28.2,y:19.5},{x:28.4,y:19.7},{x:28.6,y:20},{x:28.8,y:20},{x:29,y:20.5},{x:29.2,y:20.8},{x:29.4,y:21.1},{x:29.6,y:21.3},{x:29.8,y:21.6},{x:30,y:21.9},{x:30.2,y:22.2},{x:30.4,y:22.5},{x:30.6,y:22.8},{x:30.8,y:23.1},{x:31,y:23.4},{x:31.2,y:23.7},{x:31.4,y:24.1},{x:31.6,y:24.3},{x:31.8,y:24.6},{x:32,y:24.9},{x:32.2,y:25.3},{x:32.4,y:25.6},{x:32.6,y:25.9},{x:32.8,y:26.2},{x:33,y:26.5},{x:33.2,y:26.8},{x:33.4,y:27.1},{x:33.6,y:27.4},{x:33.8,y:27.7},{x:34,y:28},{x:34.2,y:28.3},{x:34.4,y:28.6},{x:34.6,y:28.9},{x:34.8,y:29.2},{x:35,y:29.6},{x:35.2,y:29.9},{x:35.4,y:30.2},{x:35.6,y:30.6},{x:35.8,y:31},{x:36,y:31.2},{x:36.2,y:31.6},{x:36.4,y:32},{x:36.6,y:32.4},{x:36.8,y:32.7},{x:37,y:33},{x:37.2,y:33.4},{x:37.4,y:33.8},{x:37.6,y:34.1},{x:37.8,y:34.5},{x:38,y:34.9},{x:38.2,y:35.2},{x:38.4,y:35.6},{x:38.6,y:36},{x:38.8,y:36.4},{x:39,y:36.7},{x:39.2,y:37},{x:39.4,y:37.3},{x:39.6,y:37.6},{x:39.8,y:38},{x:40,y:38.3},{x:40.2,y:38.6},{x:40.4,y:39},{x:40.6,y:39.4},{x:40.8,y:39.8},{x:41,y:40.2},{x:41.2,y:40.6},{x:41.4,y:40.9},{x:41.6,y:41.4},{x:41.8,y:41.8},{x:42,y:42.2},{x:42.2,y:42.6},{x:42.4,y:43},{x:42.6,y:43.4},{x:42.8,y:43.8},{x:43,y:44.2},{x:43.2,y:44.6},{x:43.4,y:45.1},{x:43.6,y:45.4},{x:43.8,y:45.9},{x:44,y:46.4},{x:44.2,y:46.7},{x:44.4,y:47.2},{x:44.6,y:47.6},{x:44.8,y:48},{x:45,y:48.5},{x:45.2,y:48.9},{x:45.4,y:49.4},{x:45.6,y:49.8},{x:45.8,y:50.2},{x:46,y:50.6},{x:46.2,y:51.1},{x:46.4,y:51.5},{x:46.6,y:52},{x:46.8,y:52.4},{x:47,y:52.9},{x:47.2,y:53.4},{x:47.4,y:53.8},{x:47.6,y:54.3},{x:47.8,y:54.7},{x:48,y:55.2},{x:48.2,y:55.7},{x:48.4,y:56.1},{x:48.6,y:56.6},{x:48.8,y:57.1},{x:49,y:57.5},{x:49.2,y:58},{x:49.4,y:58.5},{x:49.6,y:58.9},{x:49.8,y:59.4},{x:50,y:59.9},{x:50.2,y:60}],c=[{x:20.6,y:10.1},{x:20.8,y:10.3},{x:21,y:10.5},{x:21.2,y:10.7},{x:21.4,y:10.9},{x:21.6,y:11},{x:21.8,y:11.3},{x:22,y:11.5},{x:22.2,y:11.7},{x:22.4,y:12},{x:22.6,y:12.1},{x:22.8,y:12.3},{x:23,y:12.6},{x:23.2,y:12.8},{x:23.4,y:13},{x:23.6,y:13.2},{x:23.8,y:13.4},{x:24,y:13.7},{x:24.2,y:13.9},{x:24.4,y:14.2},{x:24.6,y:14.4},{x:24.8,y:14.6},{x:25,y:14.9},{x:25.2,y:15.1},{x:25.4,y:15.4},{x:25.6,y:15.7},{x:25.8,y:15.8},{x:26,y:16.1},{x:26.2,y:16.4},{x:26.4,y:16.6},{x:26.6,y:16.8},{x:26.8,y:17.1},{x:27,y:17.4},{x:27.2,y:17.6},{x:27.4,y:17.8},{x:27.6,y:18},{x:27.8,y:18.2},{x:28,y:18.4},{x:28.2,y:18.6},{x:28.4,y:18.8},{x:28.6,y:19.1},{x:28.8,y:19.4},{x:29,y:19.6},{x:29.2,y:19.9},{x:29.4,y:20.2},{x:29.6,y:20.4},{x:29.8,y:20.7},{x:30,y:21},{x:30.2,y:21.2},{x:30.4,y:21.5},{x:30.6,y:21.9},{x:30.8,y:22.1},{x:31,y:22.4},{x:31.2,y:22.7},{x:31.4,y:23},{x:31.6,y:23.3},{x:31.8,y:23.6},{x:32,y:23.9},{x:32.2,y:24.2},{x:32.4,y:24.5},{x:32.6,y:24.8},{x:32.8,y:25.1},{x:33,y:25.4},{x:33.2,y:25.7},{x:33.4,y:26},{x:33.6,y:26.4},{x:33.8,y:26.6},{x:34,y:26.8},{x:34.2,y:27},{x:34.4,y:27.2},{x:34.6,y:27.4},{x:34.8,y:27.6},{x:35,y:28},{x:35.2,y:28.2},{x:35.4,y:28.6},{x:35.6,y:29},{x:35.8,y:29.3},{x:36,y:29.6},{x:36.2,y:29.9},{x:36.4,y:30.3},{x:36.6,y:30.6},{x:36.8,y:31},{x:37,y:31.2},{x:37.2,y:31.6},{x:37.4,y:31.9},{x:37.6,y:32.3},{x:37.8,y:32.6},{x:38,y:33},{x:38.2,y:33.4},{x:38.4,y:33.7},{x:38.6,y:34.1},{x:38.8,y:34.4},{x:39,y:34.7},{x:39.2,y:35},{x:39.4,y:35.3},{x:39.6,y:35.6},{x:39.8,y:35.9},{x:40,y:36.2},{x:40.2,y:36.5},{x:40.4,y:36.9},{x:40.6,y:37.2},{x:40.8,y:37.7},{x:41,y:38},{x:41.2,y:38.4},{x:41.4,y:38.7},{x:41.6,y:39.2},{x:41.8,y:39.5},{x:42,y:39.9},{x:42.2,y:40.3},{x:42.4,y:40.6},{x:42.6,y:41.1},{x:42.8,y:41.4},{x:43,y:41.8},{x:43.2,y:42.2},{x:43.4,y:42.6},{x:43.6,y:43},{x:43.8,y:43.4},{x:44,y:43.8},{x:44.2,y:44.2},{x:44.4,y:44.6},{x:44.6,y:45},{x:44.8,y:45.4},{x:45,y:45.8},{x:45.2,y:46.3},{x:45.4,y:46.6},{x:45.6,y:47.1},{x:45.8,y:47.5},{x:46,y:47.9},{x:46.2,y:48.3},{x:46.4,y:48.7},{x:46.6,y:49.2},{x:46.8,y:49.6},{x:47,y:50},{x:47.2,y:50.5},{x:47.4,y:50.9},{x:47.6,y:51.3},{x:47.8,y:51.8},{x:48,y:52.2},{x:48.2,y:52.6},{x:48.4,y:53.1},{x:48.6,y:53.5},{x:48.8,y:54},{x:49,y:54.4},{x:49.2,y:54.8},{x:49.4,y:55.3},{x:49.6,y:55.7},{x:49.8,y:56.2},{x:50,y:56.7},{x:50.2,y:57.1},{x:50.4,y:57.6},{x:50.6,y:58},{x:50.8,y:58.5},{x:51,y:59},{x:51.2,y:59.4},{x:51.4,y:59.9},{x:51.6,y:60}],h=[{x:21,y:10},{x:21.2,y:10.2},{x:21.4,y:10.4},{x:21.6,y:10.6},{x:21.8,y:10.8},{x:22,y:11},{x:22.2,y:11.2},{x:22.4,y:11.4},{x:22.6,y:11.6},{x:22.8,y:11.8},{x:23,y:12.1},{x:23.2,y:12.2},{x:23.4,y:12.4},{x:23.6,y:12.7},{x:23.8,y:12.8},{x:24,y:13.1},{x:24.2,y:13.3},{x:24.4,y:13.6},{x:24.6,y:13.7},{x:24.8,y:14},{x:25,y:14.3},{x:25.2,y:14.4},{x:25.4,y:14.7},{x:25.6,y:14.9},{x:25.8,y:15.1},{x:26,y:15.4},{x:26.2,y:15.7},{x:26.4,y:15.8},{x:26.6,y:16.1},{x:26.8,y:16.4},{x:27,y:16.6},{x:27.2,y:16.8},{x:27.4,y:17},{x:27.6,y:17.2},{x:27.8,y:17.4},{x:28,y:17.6},{x:28.2,y:17.8},{x:28.4,y:18},{x:28.6,y:18.2},{x:28.8,y:18.5},{x:29,y:18.7},{x:29.2,y:19},{x:29.4,y:19.3},{x:29.6,y:19.5},{x:29.8,y:19.8},{x:30,y:20},{x:30.2,y:20.3},{x:30.4,y:20.6},{x:30.6,y:20.9},{x:30.8,y:21.2},{x:31,y:21.4},{x:31.2,y:21.7},{x:31.4,y:22},{x:31.6,y:22.3},{x:31.8,y:22.5},{x:32,y:22.8},{x:32.2,y:23.1},{x:32.4,y:23.4},{x:32.6,y:23.7},{x:32.8,y:24},{x:33,y:24.3},{x:33.2,y:24.6},{x:33.4,y:24.9},{x:33.6,y:25.2},{x:33.8,y:25.4},{x:34,y:25.6},{x:34.2,y:25.8},{x:34.4,y:26},{x:34.6,y:26.2},{x:34.8,y:26.4},{x:35,y:26.7},{x:35.2,y:27},{x:35.4,y:27.3},{x:35.6,y:27.6},{x:35.8,y:28},{x:36,y:28.2},{x:36.2,y:28.6},{x:36.4,y:28.9},{x:36.6,y:29.2},{x:36.8,y:29.6},{x:37,y:29.8},{x:37.2,y:30.2},{x:37.4,y:30.5},{x:37.6,y:30.8},{x:37.8,y:31.2},{x:38,y:31.5},{x:38.2,y:31.8},{x:38.4,y:32.1},{x:38.6,y:32.4},{x:38.8,y:32.7},{x:39,y:33},{x:39.2,y:33.3},{x:39.4,y:33.6},{x:39.6,y:33.9},{x:39.8,y:34.2},{x:40,y:34.5},{x:40.2,y:34.8},{x:40.4,y:35.1},{x:40.6,y:35.4},{x:40.8,y:35.7},{x:41,y:36},{x:41.2,y:36.3},{x:41.4,y:36.6},{x:41.6,y:36.9},{x:41.8,y:37.2},{x:42,y:37.6},{x:42.2,y:38},{x:42.4,y:38.3},{x:42.6,y:38.7},{x:42.8,y:39},{x:43,y:39.4},{x:43.2,y:39.8},{x:43.4,y:40.2},{x:43.6,y:40.5},{x:43.8,y:40.9},{x:44,y:41.3},{x:44.2,y:41.7},{x:44.4,y:42.1},{x:44.6,y:42.4},{x:44.8,y:42.8},{x:45,y:43.2},{x:45.2,y:43.6},{x:45.4,y:44},{x:45.6,y:44.4},{x:45.8,y:44.8},{x:46,y:45.2},{x:46.2,y:45.5},{x:46.4,y:45.9},{x:46.6,y:46.3},{x:46.8,y:46.7},{x:47,y:47.2},{x:47.2,y:47.6},{x:47.4,y:48},{x:47.6,y:48.4},{x:47.8,y:48.8},{x:48,y:49.2},{x:48.2,y:49.6},{x:48.4,y:50},{x:48.6,y:50.4},{x:48.8,y:50.9},{x:49,y:51.3},{x:49.2,y:51.7},{x:49.4,y:52.1},{x:49.6,y:52.5},{x:49.8,y:53},{x:50,y:53.4},{x:50.2,y:53.8},{x:50.4,y:54.3},{x:50.6,y:54.7},{x:50.8,y:55.1},{x:51,y:55.6},{x:51.2,y:56},{x:51.4,y:56.4},{x:51.6,y:56.9},{x:51.8,y:57.3},{x:52,y:57.8},{x:52.2,y:58.2},{x:52.4,y:58.7},{x:52.8,y:59.6},{x:53,y:60}],p=[{x:21.4,y:10},{x:21.6,y:10.2},{x:21.8,y:10.5},{x:22,y:10.6},{x:22.2,y:10.8},{x:22.4,y:11},{x:22.6,y:11.2},{x:22.8,y:11.4},{x:23,y:11.6},{x:23.2,y:11.8},{x:23.4,y:12},{x:23.6,y:12.2},{x:23.8,y:12.4},{x:24,y:12.7},{x:24.2,y:12.8},{x:24.4,y:13.1},{x:24.6,y:13.3},{x:24.8,y:13.5},{x:25,y:13.8},{x:25.2,y:13.9},{x:25.4,y:14.2},{x:25.6,y:14.4},{x:25.8,y:14.6},{x:26,y:14.9},{x:26.2,y:15.1},{x:26.4,y:15.3},{x:26.6,y:15.6},{x:26.8,y:15.8},{x:27,y:16.1},{x:27.2,y:16.2},{x:27.4,y:16.4},{x:27.6,y:16.6},{x:27.8,y:16.8},{x:28,y:17},{x:28.2,y:17.2},{x:28.4,y:17.4},{x:28.6,y:17.6},{x:28.8,y:17.8},{x:29,y:18.1},{x:29.2,y:18.3},{x:29.4,y:18.6},{x:29.6,y:18.8},{x:29.8,y:19.1},{x:30,y:19.3},{x:30.2,y:19.6},{x:30.4,y:19.8},{x:30.6,y:20.2},{x:30.8,y:20.4},{x:31,y:20.7},{x:31.2,y:20.9},{x:31.4,y:21.2},{x:31.6,y:21.5},{x:31.8,y:21.7},{x:32,y:22},{x:32.2,y:22.3},{x:32.4,y:22.6},{x:32.6,y:22.9},{x:32.8,y:23.2},{x:33,y:23.4},{x:33.2,y:23.7},{x:33.4,y:24},{x:33.6,y:24.2},{x:33.8,y:24.4},{x:34,y:24.6},{x:34.2,y:24.8},{x:34.4,y:25},{x:34.6,y:25.2},{x:34.8,y:25.4},{x:35,y:25.8},{x:35.2,y:26},{x:35.4,y:26.3},{x:35.6,y:26.6},{x:35.8,y:27},{x:36,y:27.2},{x:36.2,y:27.5},{x:36.4,y:27.9},{x:36.6,y:28.2},{x:36.8,y:28.5},{x:37,y:28.8},{x:37.2,y:29.1},{x:37.4,y:29.4},{x:37.6,y:29.7},{x:37.8,y:30},{x:38,y:30.3},{x:38.2,y:30.6},{x:38.4,y:30.9},{x:38.6,y:31.2},{x:38.8,y:31.5},{x:39,y:31.8},{x:39.2,y:32.1},{x:39.4,y:32.4},{x:39.6,y:32.7},{x:39.8,y:33},{x:40,y:33.3},{x:40.2,y:33.6},{x:40.4,y:33.9},{x:40.6,y:34.2},{x:40.8,y:34.5},{x:41,y:34.8},{x:41.2,y:35.1},{x:41.4,y:35.4},{x:41.6,y:35.7},{x:41.8,y:36},{x:42,y:36.3},{x:42.2,y:36.6},{x:42.4,y:36.9},{x:42.6,y:37.3},{x:42.8,y:37.6},{x:43,y:38},{x:43.2,y:38.3},{x:43.4,y:38.7},{x:43.6,y:39},{x:43.8,y:39.4},{x:44,y:39.8},{x:44.2,y:40.1},{x:44.4,y:40.5},{x:44.6,y:40.8},{x:44.8,y:41.2},{x:45,y:41.6},{x:45.2,y:42},{x:45.4,y:42.3},{x:45.6,y:42.7},{x:45.8,y:43.1},{x:46,y:43.5},{x:46.2,y:43.8},{x:46.4,y:44.2},{x:46.6,y:44.6},{x:46.8,y:45},{x:47,y:45.2},{x:47.2,y:45.8},{x:47.4,y:46.2},{x:47.6,y:46.6},{x:47.8,y:47},{x:48,y:47.4},{x:48.2,y:47.8},{x:48.4,y:48.2},{x:48.6,y:48.6},{x:48.8,y:49},{x:49,y:49.4},{x:49.2,y:49.8},{x:49.4,y:50.2},{x:49.6,y:50.6},{x:49.8,y:51},{x:50,y:51.4},{x:50.2,y:51.9},{x:50.4,y:52.3},{x:50.6,y:52.7},{x:50.8,y:53.1},{x:51,y:53.5},{x:51.2,y:54},{x:51.4,y:54.4},{x:51.6,y:54.8},{x:51.8,y:55.2},{x:52,y:55.7},{x:52.2,y:56.1},{x:52.4,y:56.5},{x:52.8,y:57.4},{x:53,y:57.8},{x:53.2,y:58.3},{x:53.4,y:58.7},{x:53.6,y:59.2},{x:53.8,y:59.6},{x:54,y:60}],f=[{x:21.8,y:10.1},{x:22,y:10.2},{x:22.2,y:10.4},{x:22.4,y:10.7},{x:22.6,y:10.8},{x:22.8,y:11},{x:23,y:11.2},{x:23.2,y:11.4},{x:23.4,y:11.6},{x:23.6,y:11.8},{x:23.8,y:12},{x:24,y:12.2},{x:24.2,y:12.4},{x:24.4,y:12.6},{x:24.6,y:12.8},{x:24.8,y:13},{x:25,y:13.3},{x:25.2,y:13.4},{x:25.4,y:13.7},{x:25.6,y:13.9},{x:25.8,y:14.1},{x:26,y:14.4},{x:26.2,y:14.6},{x:26.4,y:14.8},{x:26.6,y:15},{x:26.8,y:15.3},{x:27,y:15.5},{x:27.2,y:15.7},{x:27.4,y:15.9},{x:27.6,y:16.1},{x:27.8,y:16.3},{x:28,y:16.5},{x:28.2,y:16.7},{x:28.4,y:16.9},{x:28.6,y:17.1},{x:28.8,y:17.3},{x:29,y:17.5},{x:29.2,y:17.7},{x:29.4,y:17.9},{x:29.6,y:18.2},{x:29.8,y:18.4},{x:30,y:18.6},{x:30.2,y:18.9},{x:30.4,y:19.1},{x:30.6,y:19.4},{x:30.8,y:19.7},{x:31,y:19.9},{x:31.2,y:20.2},{x:31.4,y:20.5},{x:31.6,y:20.7},{x:31.8,y:21},{x:32,y:21.2},{x:32.2,y:21.5},{x:32.4,y:21.8},{x:32.6,y:22.1},{x:32.8,y:22.3},{x:33,y:22.6},{x:33.2,y:22.9},{x:33.4,y:23.1},{x:33.6,y:23.3},{x:33.8,y:23.5},{x:34,y:23.7},{x:34.2,y:23.9},{x:34.4,y:24.1},{x:34.6,y:24.3},{x:34.8,y:24.5},{x:35,y:24.8},{x:35.2,y:25},{x:35.4,y:25.4},{x:35.6,y:25.7},{x:35.8,y:26},{x:36,y:26.2},{x:36.2,y:26.5},{x:36.4,y:26.8},{x:36.6,y:27.1},{x:36.8,y:27.5},{x:37,y:27.7},{x:37.2,y:28},{x:37.4,y:28.3},{x:37.6,y:28.6},{x:37.8,y:28.9},{x:38,y:29.2},{x:38.2,y:29.5},{x:38.4,y:29.8},{x:38.6,y:30.1},{x:38.8,y:30.4},{x:39,y:30.6},{x:39.2,y:30.8},{x:39.4,y:31},{x:39.6,y:31.2},{x:39.8,y:31.4},{x:40,y:31.7},{x:40.2,y:32},{x:40.4,y:32.3},{x:40.6,y:32.6},{x:40.8,y:32.9},{x:41,y:33.2},{x:41.2,y:33.5},{x:41.4,y:33.8},{x:41.6,y:34.2},{x:41.8,y:34.5},{x:42,y:34.9},{x:42.2,y:35.2},{x:42.4,y:35.5},{x:42.6,y:35.9},{x:42.8,y:36.2},{x:43,y:36.6},{x:43.2,y:36.9},{x:43.4,y:37.2},{x:43.6,y:37.5},{x:43.8,y:37.9},{x:44,y:38.3},{x:44.2,y:38.6},{x:44.4,y:39},{x:44.6,y:39.3},{x:44.8,y:39.7},{x:45,y:40.1},{x:45.2,y:40.4},{x:45.4,y:40.7},{x:45.6,y:41.1},{x:45.8,y:41.5},{x:46,y:41.9},{x:46.2,y:42.2},{x:46.4,y:42.6},{x:46.6,y:42.9},{x:46.8,y:43.3},{x:47,y:43.7},{x:47.2,y:44.1},{x:47.4,y:44.5},{x:47.6,y:44.8},{x:47.8,y:45.2},{x:48,y:45.6},{x:48.2,y:46},{x:48.4,y:46.4},{x:48.6,y:46.7},{x:48.8,y:47.1},{x:49,y:47.5},{x:49.2,y:47.9},{x:49.4,y:48.3},{x:49.6,y:48.7},{x:49.8,y:49.1},{x:50,y:49.5},{x:50.2,y:49.9},{x:50.4,y:50.3},{x:50.6,y:50.7},{x:50.8,y:51.1},{x:51,y:51.5},{x:51.2,y:51.9},{x:51.4,y:52.3},{x:51.6,y:52.7},{x:51.8,y:53.1},{x:52,y:53.6},{x:52.2,y:54},{x:52.4,y:54.4},{x:52.8,y:55.2},{x:53,y:55.6},{x:53.2,y:56.1},{x:53.4,y:56.5},{x:53.6,y:56.9},{x:53.8,y:57.3},{x:54,y:57.8},{x:54.2,y:58.2},{x:54.4,y:58.6},{x:54.6,y:59.1},{x:54.8,y:59.5},{x:55,y:59.9},{x:55.2,y:60}],d=[{x:22.2,y:10},{x:22.4,y:10.3},{x:22.6,y:10.4},{x:22.8,y:10.6},{x:23,y:10.8},{x:23.2,y:11},{x:23.4,y:11.2},{x:23.6,y:11.4},{x:23.8,y:11.5},{x:24,y:11.8},{x:24.2,y:11.9},{x:24.4,y:12.2},{x:24.6,y:12.3},{x:24.8,y:12.6},{x:25,y:12.8},{x:25.2,y:13},{x:25.4,y:13.2},{x:25.6,y:13.4},{x:25.8,y:13.6},{x:26,y:13.8},{x:26.2,y:14},{x:26.4,y:14.2},{x:26.6,y:14.4},{x:26.8,y:14.6},{x:27,y:14.8},{x:27.2,y:15},{x:27.4,y:15.2},{x:27.6,y:15.4},{x:27.8,y:15.6},{x:28,y:15.8},{x:28.2,y:16},{x:28.4,y:16.2},{x:28.6,y:16.4},{x:28.8,y:16.6},{x:29,y:16.8},{x:29.2,y:17},{x:29.4,y:17.2},{x:29.6,y:17.5},{x:29.8,y:17.7},{x:30,y:17.9},{x:30.2,y:18.2},{x:30.4,y:18.4},{x:30.6,y:18.7},{x:30.8,y:18.9},{x:31,y:19.2},{x:31.2,y:19.4},{x:31.4,y:19.7},{x:31.6,y:19.9},{x:31.8,y:20.2},{x:32,y:20.4},{x:32.2,y:20.7},{x:32.4,y:20.9},{x:32.6,y:21.3},{x:32.8,y:21.5},{x:33,y:21.7},{x:33.2,y:22},{x:33.4,y:22.3},{x:33.6,y:22.6},{x:33.8,y:22.8},{x:34,y:23},{x:34.2,y:23.2},{x:34.4,y:23.4},{x:34.6,y:23.6},{x:34.8,y:23.8},{x:35,y:24},{x:35.2,y:24.2},{x:35.4,y:24.4},{x:35.6,y:24.7},{x:35.8,y:25},{x:36,y:25.2},{x:36.2,y:25.5},{x:36.4,y:25.8},{x:36.6,y:26.1},{x:36.8,y:26.4},{x:37,y:26.6},{x:37.2,y:26.9},{x:37.4,y:27.2},{x:37.6,y:27.5},{x:37.8,y:27.8},{x:38,y:28.1},{x:38.2,y:28.4},{x:38.4,y:28.7},{x:38.6,y:29},{x:38.8,y:29.3},{x:39,y:29.6},{x:39.2,y:29.8},{x:39.4,y:30},{x:39.6,y:30.2},{x:39.8,y:30.5},{x:40,y:30.8},{x:40.2,y:31.1},{x:40.4,y:31.4},{x:40.6,y:31.7},{x:40.8,y:32},{x:41,y:32.3},{x:41.2,y:32.6},{x:41.4,y:32.9},{x:41.6,y:33.3},{x:41.8,y:33.6},{x:42,y:34},{x:42.2,y:34.3},{x:42.4,y:34.6},{x:42.6,y:34.9},{x:42.8,y:35.2},{x:43,y:35.6},{x:43.2,y:35.9},{x:43.4,y:36.3},{x:43.6,y:36.6},{x:43.8,y:36.9},{x:44,y:37.3},{x:44.2,y:37.6},{x:44.4,y:38},{x:44.6,y:38.3},{x:44.8,y:38.6},{x:45,y:39},{x:45.2,y:39.4},{x:45.4,y:39.7},{x:45.6,y:40},{x:45.8,y:40.4},{x:46,y:40.8},{x:46.2,y:41.1},{x:46.4,y:41.4},{x:46.6,y:41.8},{x:46.8,y:42.2},{x:47,y:42.6},{x:47.2,y:42.9},{x:47.4,y:43.3},{x:47.6,y:43.7},{x:47.8,y:44},{x:48,y:44.4},{x:48.2,y:44.8},{x:48.4,y:45.1},{x:48.6,y:45.5},{x:48.8,y:45.9},{x:49,y:46.2},{x:49.2,y:46.6},{x:49.4,y:47},{x:49.6,y:47.4},{x:49.8,y:47.8},{x:50,y:48.2},{x:50.2,y:48.5},{x:50.4,y:49},{x:50.6,y:49.4},{x:50.8,y:49.8},{x:51,y:50.1},{x:51.2,y:50.5},{x:51.4,y:50.9},{x:51.6,y:51.3},{x:51.8,y:51.7},{x:52,y:52.1},{x:52.2,y:52.5},{x:52.4,y:53},{x:52.8,y:53.8},{x:53,y:54.2},{x:53.2,y:54.6},{x:53.4,y:55},{x:53.6,y:55.4},{x:53.8,y:55.8},{x:54,y:56.3},{x:54.2,y:56.7},{x:54.4,y:57.1},{x:54.6,y:57.5},{x:54.8,y:57.9},{x:55,y:58.4},{x:55.2,y:58.8},{x:55.4,y:59.2},{x:55.6,y:59.7},{x:55.8,y:60}],g=[{x:22.4,y:10},{x:22.6,y:10.2},{x:22.8,y:10.3},{x:23,y:10.5},{x:23.2,y:10.7},{x:23.4,y:10.9},{x:23.6,y:11.1},{x:23.8,y:11.2},{x:24,y:11.5},{x:24.2,y:11.6},{x:24.4,y:11.9},{x:24.6,y:12},{x:24.8,y:12.2},{x:25,y:12.5},{x:25.2,y:12.6},{x:25.4,y:12.9},{x:25.6,y:13},{x:25.8,y:13.2},{x:26,y:13.5},{x:26.2,y:13.7},{x:26.4,y:13.9},{x:26.6,y:14.1},{x:26.8,y:14.3},{x:27,y:14.6},{x:27.2,y:14.7},{x:27.4,y:14.9},{x:27.6,y:15.1},{x:27.8,y:15.3},{x:28,y:15.4},{x:28.2,y:15.6},{x:28.4,y:15.8},{x:28.6,y:16},{x:28.8,y:16.2},{x:29,y:16.4},{x:29.2,y:16.6},{x:29.4,y:16.8},{x:29.6,y:17},{x:29.8,y:17.2},{x:30,y:17.4},{x:30.2,y:17.6},{x:30.4,y:17.8},{x:30.6,y:18},{x:30.8,y:18.2},{x:31,y:18.4},{x:31.2,y:18.6},{x:31.4,y:18.9},{x:31.6,y:19.2},{x:31.8,y:19.4},{x:32,y:19.6},{x:32.2,y:19.9},{x:32.4,y:20.1},{x:32.6,y:20.4},{x:32.8,y:20.6},{x:33,y:20.9},{x:33.2,y:21.2},{x:33.4,y:21.4},{x:33.6,y:21.7},{x:33.8,y:21.9},{x:34,y:22.1},{x:34.2,y:22.3},{x:34.4,y:22.5},{x:34.6,y:22.7},{x:34.8,y:22.9},{x:35,y:23.2},{x:35.2,y:23.4},{x:35.4,y:23.7},{x:35.6,y:24},{x:35.8,y:24.3},{x:36,y:24.5},{x:36.2,y:24.8},{x:36.4,y:25.1},{x:36.6,y:25.4},{x:36.8,y:25.7},{x:37,y:25.9},{x:37.2,y:26.2},{x:37.4,y:26.6},{x:37.6,y:26.8},{x:37.8,y:27.1},{x:38,y:27.4},{x:38.2,y:27.7},{x:38.4,y:28},{x:38.6,y:28.3},{x:38.8,y:28.5},{x:39,y:28.8},{x:39.2,y:29},{x:39.4,y:29.2},{x:39.6,y:29.4},{x:39.8,y:29.7},{x:40,y:30},{x:40.2,y:30.2},{x:40.4,y:30.5},{x:40.6,y:30.8},{x:40.8,y:31.2},{x:41,y:31.5},{x:41.2,y:31.8},{x:41.4,y:32},{x:41.6,y:32.4},{x:41.8,y:32.7},{x:42,y:33},{x:42.2,y:33.3},{x:42.4,y:33.6},{x:42.6,y:34},{x:42.8,y:34.3},{x:43,y:34.6},{x:43.2,y:34.9},{x:43.4,y:35.3},{x:43.6,y:35.6},{x:43.8,y:35.9},{x:44,y:36.3},{x:44.2,y:36.6},{x:44.4,y:36.9},{x:44.6,y:37.2},{x:44.8,y:37.6},{x:45,y:37.9},{x:45.2,y:38.3},{x:45.4,y:38.6},{x:45.6,y:39},{x:45.8,y:39.3},{x:46,y:39.7},{x:46.2,y:40},{x:46.4,y:40.3},{x:46.6,y:40.7},{x:46.8,y:41},{x:47,y:41.4},{x:47.2,y:41.8},{x:47.4,y:42.1},{x:47.6,y:42.5},{x:47.8,y:42.8},{x:48,y:43.2},{x:48.2,y:43.6},{x:48.4,y:43.9},{x:48.6,y:44.3},{x:48.8,y:44.6},{x:49,y:45},{x:49.2,y:45.4},{x:49.4,y:45.8},{x:49.6,y:46.2},{x:49.8,y:46.5},{x:50,y:46.9},{x:50.2,y:47.2},{x:50.4,y:47.7},{x:50.6,y:48},{x:50.8,y:48.4},{x:51,y:48.8},{x:51.2,y:49.2},{x:51.4,y:49.6},{x:51.6,y:50},{x:51.8,y:50.3},{x:52,y:50.7},{x:52.2,y:51.1},{x:52.4,y:51.5},{x:52.8,y:52.3},{x:53,y:52.7},{x:53.2,y:53.1},{x:53.4,y:53.5},{x:53.6,y:53.9},{x:53.8,y:54.3},{x:54,y:54.7},{x:54.2,y:55.1},{x:54.4,y:55.6},{x:54.6,y:56},{x:54.8,y:56.4},{x:55,y:56.8},{x:55.2,y:57.2},{x:55.4,y:57.6},{x:55.6,y:58},{x:55.8,y:58.5},{x:56,y:58.9},{x:56.2,y:59.3},{x:56.4,y:59.7},{x:56.6,y:60}],b=[{x:23,y:10.1},{x:23.2,y:10.3},{x:23.4,y:10.4},{x:23.6,y:10.7},{x:23.8,y:10.8},{x:24,y:11},{x:24.2,y:11.2},{x:24.4,y:11.4},{x:24.6,y:11.5},{x:24.8,y:11.8},{x:25,y:12},{x:25.2,y:12.1},{x:25.4,y:12.4},{x:25.6,y:12.5},{x:25.8,y:12.7},{x:26,y:13},{x:26.2,y:13.2},{x:26.4,y:13.3},{x:26.6,y:13.5},{x:26.8,y:13.8},{x:27,y:14},{x:27.2,y:14.1},{x:27.4,y:14.3},{x:27.6,y:14.5},{x:27.8,y:14.7},{x:28,y:14.8},{x:28.2,y:15},{x:28.4,y:15.2},{x:28.6,y:15.4},{x:28.8,y:15.6},{x:29,y:15.8},{x:29.2,y:16},{x:29.4,y:16.2},{x:29.6,y:16.4},{x:29.8,y:16.6},{x:30,y:16.8},{x:30.2,y:17},{x:30.4,y:17.2},{x:30.6,y:17.5},{x:30.8,y:17.7},{x:31,y:17.9},{x:31.2,y:16.1},{x:31.4,y:18.4},{x:31.6,y:18.6},{x:31.8,y:18.9},{x:32,y:19.1},{x:32.2,y:19.4},{x:32.4,y:19.6},{x:32.6,y:19.9},{x:32.8,y:20.1},{x:33,y:20.3},{x:33.2,y:20.5},{x:33.4,y:20.7},{x:33.6,y:20.9},{x:33.8,y:21.1},{x:34,y:21.3},{x:34.2,y:21.5},{x:34.4,y:21.7},{x:34.6,y:21.9},{x:34.8,y:22.1},{x:35,y:22.3},{x:35.2,y:22.5},{x:35.4,y:22.8},{x:35.6,y:23},{x:35.8,y:23.3},{x:36,y:23.5},{x:36.2,y:23.8},{x:36.4,y:24.1},{x:36.6,y:24.4},{x:36.8,y:24.6},{x:37,y:24.8},{x:37.2,y:25.1},{x:37.4,y:25.4},{x:37.6,y:25.7},{x:37.8,y:26},{x:38,y:26.2},{x:38.2,y:26.5},{x:38.4,y:29.8},{x:38.6,y:27},{x:38.8,y:27.2},{x:39,y:27.4},{x:39.2,y:27.6},{x:39.4,y:27.8},{x:39.6,y:28},{x:39.8,y:28.2},{x:40,y:28.4},{x:40.2,y:28.6},{x:40.4,y:28.8},{x:40.6,y:29.1},{x:40.8,y:29.4},{x:41,y:29.7},{x:41.2,y:30},{x:41.4,y:30.3},{x:41.6,y:30.6},{x:41.8,y:30.9},{x:42,y:31.2},{x:42.2,y:31.5},{x:42.4,y:31.8},{x:42.6,y:32.1},{x:42.8,y:32.4},{x:43,y:32.7},{x:43.2,y:33},{x:43.4,y:33.3},{x:43.6,y:33.6},{x:43.8,y:33.9},{x:44,y:34.3},{x:44.2,y:34.5},{x:44.4,y:34.9},{x:44.6,y:35.2},{x:44.8,y:35.5},{x:45,y:35.8},{x:45.2,y:36.2},{x:45.4,y:36.4},{x:45.6,y:36.8},{x:45.8,y:37.1},{x:46,y:37.5},{x:46.2,y:37.7},{x:46.4,y:38.1},{x:46.6,y:38.4},{x:46.8,y:38.8},{x:47,y:39.1},{x:47.2,y:39.4},{x:47.4,y:39.8},{x:47.6,y:40.1},{x:47.8,y:40.5},{x:48,y:40.8},{x:48.2,y:41.1},{x:48.4,y:41.5},{x:48.6,y:41.8},{x:48.8,y:42.2},{x:49,y:42.5},{x:49.2,y:42.8},{x:49.4,y:43.2},{x:49.6,y:43.6},{x:49.8,y:43.9},{x:50,y:44.3},{x:50.2,y:44.6},{x:50.4,y:45},{x:50.6,y:45.4},{x:50.8,y:45.7},{x:51,y:46.1},{x:51.2,y:46.4},{x:51.4,y:46.8},{x:51.6,y:47.2},{x:51.8,y:47.5},{x:52,y:47.9},{x:52.2,y:48.3},{x:52.4,y:48.7},{x:52.8,y:49.4},{x:53,y:49.8},{x:53.2,y:50.2},{x:53.4,y:50.5},{x:53.6,y:50.9},{x:53.8,y:51.3},{x:54,y:51.7},{x:54.2,y:52.1},{x:54.4,y:52.5},{x:54.6,y:52.9},{x:54.8,y:53.2},{x:55,y:53.6},{x:55.2,y:54},{x:55.4,y:54.4},{x:55.6,y:54.8},{x:55.8,y:55.2},{x:56,y:55.6},{x:56.2,y:56},{x:56.4,y:56.4},{x:56.6,y:56.8},{x:56.8,y:57.2},{x:57,y:57.6},{x:57.2,y:58},{x:57.4,y:58.4},{x:57.6,y:58.9},{x:57.8,y:59.3},{x:58,y:59.7},{x:58.2,y:60}],C=[{x:23.2,y:10},{x:23.4,y:10.2},{x:23.6,y:10.4},{x:23.8,y:10.5},{x:24,y:10.7},{x:24.2,y:10.9},{x:24.4,y:11.1},{x:24.6,y:11.2},{x:24.8,y:11.4},{x:25,y:11.7},{x:25.2,y:11.8},{x:25.4,y:12},{x:25.6,y:12.2},{x:25.8,y:12.4},{x:26,y:12.6},{x:26.2,y:12.8},{x:26.4,y:13},{x:26.6,y:13.2},{x:26.8,y:13.4},{x:27,y:13.6},{x:27.2,y:13.8},{x:27.4,y:14},{x:27.6,y:14.1},{x:27.8,y:14.2},{x:28,y:14.4},{x:28.2,y:14.6},{x:28.4,y:14.8},{x:28.6,y:15},{x:28.8,y:15.2},{x:29,y:15.4},{x:29.2,y:15.6},{x:29.4,y:15.8},{x:29.6,y:16},{x:29.8,y:16.2},{x:30,y:16.4},{x:30.2,y:16.6},{x:30.4,y:16.8},{x:30.6,y:17},{x:30.8,y:17.2},{x:31,y:17.4},{x:31.2,y:17.6},{x:31.4,y:17.8},{x:31.6,y:18},{x:31.8,y:18.2},{x:32,y:18.4},{x:32.2,y:18.6},{x:32.4,y:18.8},{x:32.6,y:19},{x:32.8,y:19.2},{x:33,y:19.4},{x:33.2,y:19.6},{x:33.4,y:19.8},{x:33.6,y:20},{x:33.8,y:20.2},{x:34,y:20.4},{x:34.2,y:20.6},{x:34.4,y:20.8},{x:34.6,y:21},{x:34.8,y:21.2},{x:35,y:21.4},{x:35.2,y:21.6},{x:35.4,y:21.8},{x:35.6,y:22},{x:35.8,y:22.2},{x:36,y:22.4},{x:36.2,y:22.6},{x:36.4,y:22.8},{x:36.6,y:23},{x:36.8,y:23.2},{x:37,y:23.4},{x:37.2,y:23.7},{x:37.4,y:24},{x:37.6,y:24.2},{x:37.8,y:24.5},{x:38,y:24.8},{x:38.2,y:25},{x:38.4,y:25.2},{x:38.6,y:25.5},{x:38.8,y:25.8},{x:39,y:26},{x:39.2,y:26.2},{x:39.4,y:26.4},{x:39.6,y:26.6},{x:39.8,y:26.8},{x:40,y:27},{x:40.2,y:27.3},{x:40.4,y:27.6},{x:40.6,y:27.8},{x:40.8,y:28.1},{x:41,y:28.4},{x:41.2,y:28.7},{x:41.4,y:28.9},{x:41.6,y:29.2},{x:41.8,y:29.5},{x:42,y:29.8},{x:42.2,y:30.1},{x:42.4,y:30.4},{x:42.6,y:30.7},{x:42.8,y:30.9},{x:43,y:31.3},{x:43.2,y:31.5},{x:43.4,y:31.8},{x:43.6,y:32.1},{x:43.8,y:32.4},{x:44,y:32.8},{x:44.2,y:33},{x:44.4,y:33.3},{x:44.6,y:33.6},{x:44.8,y:33.9},{x:45,y:34.3},{x:45.2,y:34.6},{x:45.4,y:34.8},{x:45.6,y:35.2},{x:45.8,y:35.5},{x:46,y:35.8},{x:46.2,y:36.1},{x:46.4,y:36.4},{x:46.6,y:36.7},{x:46.8,y:37},{x:47,y:37.4},{x:47.2,y:37.7},{x:47.4,y:38},{x:47.6,y:40},{x:47.8,y:38.7},{x:48,y:39},{x:48.2,y:39.3},{x:48.4,y:39.6},{x:48.6,y:40},{x:48.8,y:40.3},{x:49,y:40.6},{x:49.2,y:41},{x:49.4,y:41.3},{x:49.6,y:41.7},{x:49.8,y:42},{x:50,y:42.3},{x:50.2,y:42.6},{x:50.4,y:43},{x:50.6,y:43.4},{x:50.8,y:43.7},{x:51,y:44.1},{x:51.2,y:44.4},{x:51.4,y:44.7},{x:51.6,y:45.1},{x:51.8,y:45.4},{x:52,y:45.8},{x:52.2,y:46.2},{x:52.4,y:46.5},{x:52.8,y:47.3},{x:53,y:47.6},{x:53.2,y:48},{x:53.4,y:48.3},{x:53.6,y:48.7},{x:53.8,y:49},{x:54,y:49.4},{x:54.2,y:49.8},{x:54.4,y:50.2},{x:54.6,y:50.5},{x:54.8,y:50.9},{x:55,y:51.3},{x:55.2,y:51.6},{x:55.4,y:52},{x:55.6,y:52.4},{x:55.8,y:52.8},{x:56,y:53.2},{x:56.2,y:53.5},{x:56.4,y:53.9},{x:56.6,y:54.3},{x:56.8,y:54.7},{x:57,y:55.1},{x:57.2,y:55.5},{x:57.4,y:55.9}],S=[{x:23.6,y:10.1},{x:23.8,y:10.2},{x:24,y:10.4},{x:24.2,y:10.6},{x:24.4,y:10.8},{x:24.6,y:10.9},{x:24.8,y:11.1},{x:25,y:11.3},{x:25.2,y:11.5},{x:25.4,y:11.7},{x:25.6,y:11.8},{x:25.8,y:12},{x:26,y:12.2},{x:26.2,y:12.4},{x:26.4,y:12.6},{x:26.6,y:12.8},{x:26.8,y:12.9},{x:27,y:13.1},{x:27.2,y:13.3},{x:27.4,y:13.4},{x:27.6,y:13.6},{x:27.8,y:13.7},{x:28,y:13.9},{x:28.2,y:14},{x:28.4,y:14.2},{x:28.6,y:14.3},{x:28.8,y:14.5},{x:29,y:14.6},{x:29.2,y:14.8},{x:29.4,y:15},{x:29.6,y:15.1},{x:29.8,y:15.3},{x:30,y:15.4},{x:30.2,y:15.6},{x:30.4,y:15.8},{x:30.6,y:16},{x:30.8,y:16.2},{x:31,y:16.4},{x:31.2,y:16.6},{x:31.4,y:16.9},{x:31.6,y:17.1},{x:31.8,y:17.3},{x:32,y:17.5},{x:32.2,y:17.7},{x:32.4,y:17.9},{x:32.6,y:18.1},{x:32.8,y:18.3},{x:33,y:18.5},{x:33.2,y:18.7},{x:33.4,y:18.9},{x:33.6,y:19.1},{x:33.8,y:19.3},{x:34,y:19.5},{x:34.2,y:19.7},{x:34.4,y:19.8},{x:34.6,y:20},{x:34.8,y:20.2},{x:35,y:20.4},{x:35.2,y:20.6},{x:35.4,y:20.8},{x:35.6,y:21},{x:35.8,y:21.2},{x:36,y:21.4},{x:36.2,y:21.6},{x:36.4,y:21.8},{x:36.6,y:22},{x:36.8,y:22.2},{x:37,y:22.4},{x:37.2,y:22.6},{x:37.4,y:22.9},{x:37.6,y:23.1},{x:37.8,y:23.4},{x:38,y:23.6},{x:38.2,y:23.9},{x:38.4,y:24.1},{x:38.6,y:24.4},{x:38.8,y:24.6},{x:39,y:24.8},{x:39.2,y:25},{x:39.4,y:25.2},{x:39.6,y:25.4},{x:39.8,y:25.6},{x:40,y:25.8},{x:40.2,y:26},{x:40.4,y:26.2},{x:40.6,y:26.5},{x:40.8,y:26.8},{x:41,y:27.1},{x:41.2,y:27.3},{x:41.4,y:27.6},{x:41.6,y:27.9},{x:41.8,y:28.1},{x:42,y:28.5},{x:42.2,y:28.7},{x:42.4,y:29},{x:42.6,y:29.3},{x:42.8,y:29.5},{x:43,y:29.8},{x:43.2,y:30.1},{x:43.4,y:30.4},{x:43.6,y:30.6},{x:43.8,y:30.9},{x:44,y:31.2},{x:44.2,y:31.5},{x:44.4,y:31.8},{x:44.6,y:32.1},{x:44.8,y:32.4},{x:45,y:32.7},{x:45.2,y:33},{x:45.4,y:33.2},{x:45.6,y:33.5},{x:45.8,y:33.9},{x:46,y:34.2},{x:46.2,y:34.4},{x:46.4,y:34.7},{x:46.6,y:35},{x:46.8,y:35.3},{x:47,y:35.6},{x:47.2,y:36},{x:47.4,y:36.3},{x:47.6,y:36.6},{x:47.8,y:36.9},{x:48,y:37.2},{x:48.2,y:37.5},{x:48.4,y:37.8},{x:48.6,y:38.1},{x:48.8,y:38.4},{x:49,y:38.8},{x:49.2,y:39.1},{x:49.4,y:39.4},{x:49.6,y:39.7},{x:49.8,y:40.1},{x:50,y:40.4},{x:50.2,y:40.7},{x:50.4,y:41},{x:50.6,y:41.4},{x:50.8,y:41.7},{x:51,y:42},{x:51.2,y:42.3},{x:51.4,y:42.7},{x:51.6,y:43},{x:51.8,y:43.3},{x:52,y:43.7},{x:52.2,y:44},{x:52.4,y:44.4},{x:52.8,y:45.1},{x:53,y:45.4},{x:53.2,y:45.8},{x:53.4,y:46.1},{x:53.6,y:46.4},{x:53.8,y:46.8},{x:54,y:47.1},{x:54.2,y:47.5},{x:54.4,y:47.9},{x:54.6,y:48.2},{x:54.8,y:48.5},{x:55,y:48.9},{x:55.2,y:49.3},{x:55.4,y:49.6},{x:55.6,y:50},{x:55.8,y:50.3},{x:56,y:50.7},{x:56.2,y:51.1},{x:56.4,y:51.4},{x:56.6,y:51.8},{x:56.8,y:52.2},{x:57,y:52.5},{x:57.2,y:52.9},{x:57.4,y:53.3},{x:57.6,y:56.3},{x:57.8,y:56.7},{x:58,y:57},{x:58.2,y:57.4},{x:58.4,y:57.8},{x:58.6,y:58.2},{x:58.8,y:58.6},{x:59,y:59},{x:59.2,y:59.4},{x:59.4,y:59.8},{x:59.6,y:60}],w=[{x:23.6,y:10.1},{x:23.8,y:10.2},{x:24,y:10.4},{x:24.2,y:10.6},{x:24.4,y:10.8},{x:24.6,y:10.9},{x:24.8,y:11.1},{x:25,y:11.3},{x:25.2,y:11.5},{x:25.4,y:11.7},{x:25.6,y:11.8},{x:25.8,y:12},{x:26,y:12.2},{x:26.2,y:12.4},{x:26.4,y:12.6},{x:26.6,y:12.8},{x:26.8,y:12.9},{x:27,y:13.1},{x:27.2,y:13.3},{x:27.4,y:13.4},{x:27.6,y:13.6},{x:27.8,y:13.7},{x:28,y:13.9},{x:28.2,y:14},{x:28.4,y:14.2},{x:28.6,y:14.3},{x:28.8,y:14.5},{x:29,y:14.6},{x:29.2,y:14.8},{x:29.4,y:15},{x:29.6,y:15.1},{x:29.8,y:15.3},{x:30,y:15.4},{x:30.2,y:15.6},{x:30.4,y:15.8},{x:30.6,y:16},{x:30.8,y:16.2},{x:31,y:16.4},{x:31.2,y:16.6},{x:31.4,y:16.9},{x:31.6,y:17.1},{x:31.8,y:17.3},{x:32,y:17.5},{x:32.2,y:17.7},{x:32.4,y:17.9},{x:32.6,y:18.1},{x:32.8,y:18.3},{x:33,y:18.5},{x:33.2,y:18.7},{x:33.4,y:18.9},{x:33.6,y:19.1},{x:33.8,y:19.3},{x:34,y:19.5},{x:34.2,y:19.7},{x:34.4,y:19.8},{x:34.6,y:20},{x:34.8,y:20.2},{x:35,y:20.4},{x:35.2,y:20.6},{x:35.4,y:20.8},{x:35.6,y:21},{x:35.8,y:21.2},{x:36,y:21.4},{x:36.2,y:21.6},{x:36.4,y:21.8},{x:36.6,y:22},{x:36.8,y:22.2},{x:37,y:22.4},{x:37.2,y:22.6},{x:37.4,y:22.9},{x:37.6,y:23.1},{x:37.8,y:23.4},{x:38,y:23.6},{x:38.2,y:23.9},{x:38.4,y:24.1},{x:38.6,y:24.4},{x:38.8,y:24.6},{x:39,y:24.8},{x:39.2,y:25},{x:39.4,y:25.2},{x:39.6,y:25.4},{x:39.8,y:25.6},{x:40,y:25.8},{x:40.2,y:26},{x:40.4,y:26.2},{x:40.6,y:26.5},{x:40.8,y:26.8},{x:41,y:27.1},{x:41.2,y:27.3},{x:41.4,y:27.6},{x:41.6,y:27.9},{x:41.8,y:28.1},{x:42,y:28.5},{x:42.2,y:28.7},{x:42.4,y:29},{x:42.6,y:29.3},{x:42.8,y:29.5},{x:43,y:29.8},{x:43.2,y:30.1},{x:43.4,y:30.4},{x:43.6,y:30.6},{x:43.8,y:30.9},{x:44,y:31.2},{x:44.2,y:31.5},{x:44.4,y:31.8},{x:44.6,y:32.1},{x:44.8,y:32.4},{x:45,y:32.7},{x:45.2,y:33},{x:45.4,y:33.2},{x:45.6,y:33.5},{x:45.8,y:33.9},{x:46,y:34.2},{x:46.2,y:34.4},{x:46.4,y:34.7},{x:46.6,y:35},{x:46.8,y:35.3},{x:47,y:35.6},{x:47.2,y:36},{x:47.4,y:36.3},{x:47.6,y:36.6},{x:47.8,y:36.9},{x:48,y:37.2},{x:48.2,y:37.5},{x:48.4,y:37.8},{x:48.6,y:38.1},{x:48.8,y:38.4},{x:49,y:38.8},{x:49.2,y:39.1},{x:49.4,y:39.4},{x:49.6,y:39.7},{x:49.8,y:40.1},{x:50,y:40.4},{x:50.2,y:40.7},{x:50.4,y:41},{x:50.6,y:41.4},{x:50.8,y:41.7},{x:51,y:42},{x:51.2,y:42.3},{x:51.4,y:42.7},{x:51.6,y:43},{x:51.8,y:43.3},{x:52,y:43.7},{x:52.2,y:44},{x:52.4,y:44.4},{x:52.8,y:45.1},{x:53,y:45.4},{x:53.2,y:45.8},{x:53.4,y:46.1},{x:53.6,y:46.4},{x:53.8,y:46.8},{x:54,y:47.1},{x:54.2,y:47.5},{x:54.4,y:47.9},{x:54.6,y:48.2},{x:54.8,y:48.5},{x:55,y:48.9},{x:55.2,y:49.3},{x:55.4,y:49.6},{x:55.6,y:50},{x:55.8,y:50.3},{x:56,y:50.7},{x:56.2,y:51.1},{x:56.4,y:51.4},{x:56.6,y:51.8},{x:56.8,y:52.2},{x:57,y:52.5},{x:57.2,y:52.9},{x:57.4,y:53.3},{x:57.6,y:53.7},{x:57.8,y:54},{x:58,y:54.4},{x:58.2,y:54.8},{x:58.4,y:55.2},{x:58.6,y:55.6},{x:58.8,y:55.9},{x:59,y:56.3},{x:59.2,y:56.7},{x:59.4,y:57.1},{x:59.6,y:57.5},{x:59.8,y:57.9},{x:60,y:58.3}],F=new Array;if(y>=0){"0"==(D=1*o)?F=i:"0.5"==D?F=u:"1"==D?F=m:"1.5"==D?F=c:"2"==D?F=h:"2.5"==D?F=p:"3"==D?F=f:"3.5"==D?F=d:"4"==D?F=g:"4.5"==D?F=b:"5"==D?F=C:"5.5"==D?F=S:D>="6"&&(F=w);var V=-1;for(s=0;s<F.length;s++){if(1*F[0].x>x){V=1;break}if(1*F[s].x>x){V=s;break}if(1*F[F.length-1].x<x){V=F.length-1;break}if(x==F[s].x){n=e.GetDataOddIncreaseEvenDecrease(F[s].y,-1);break}}if(-1!=V){var E=F[V-1].x,N=F[V-1].y,v=F[V].x,A=F[V].y;x>=53&&2==D||x>=48&&0==D||x>=49&&.5==D||x>=50.2&&1==D||x>=51.6&&1.5==D||x>=54&&2.5==D||x>=55.2&&3==D||x>=55.8&&3.5==D||x>=56.6&&4==D||x>=58.2&&4.5==D||x>=59.6&&5==D?n=">60.0":((n=e.GetDataOddIncreaseEvenDecrease(e.InterpolationMethod_y(E,v,N,A,x),-1))>60&&(n=">60.0"),n<10&&(n="<10.0"))}}}else if("泵送混凝土"==l){for(o=a,x=t,y="",r=new Array("0.0","0.5","1.0","1.5","2.0","2.5","3.0","3.5","4.0","4.5","5.0","5.5","6.0"),s=0;s<r.length;s++){if(o==r[s]){y=s;break}if(1*o>"6.0"){y=r.length-1;break}}i=[{x:18.6,y:10},{x:18.8,y:10.2},{x:19,y:10.4},{x:19.2,y:10.6},{x:19.4,y:10.9},{x:19.6,y:11.1},{x:19.8,y:11.3},{x:20,y:11.5},{x:20.2,y:11.8},{x:20.4,y:12},{x:20.6,y:12.2},{x:20.8,y:12.4},{x:21,y:12.7},{x:21.2,y:12.9},{x:21.4,y:13.1},{x:21.6,y:13.4},{x:21.8,y:13.6},{x:22,y:13.9},{x:22.2,y:14.1},{x:22.4,y:14.4},{x:22.6,y:14.6},{x:22.8,y:14.9},{x:23,y:15.1},{x:23.2,y:15.4},{x:23.4,y:15.6},{x:23.6,y:15.9},{x:23.8,y:16.2},{x:24,y:16.4},{x:24.2,y:16.7},{x:24.4,y:17},{x:24.6,y:17.2},{x:24.8,y:17.5},{x:25,y:17.8},{x:25.2,y:18},{x:25.4,y:18.3},{x:25.6,y:18.6},{x:25.8,y:18.9},{x:26,y:19.2},{x:26.2,y:19.5},{x:26.4,y:19.8},{x:26.6,y:20},{x:26.8,y:20.3},{x:27,y:20.6},{x:27.2,y:20.9},{x:27.4,y:21.2},{x:27.6,y:21.5},{x:27.8,y:21.8},{x:28,y:22.1},{x:28.2,y:22.4},{x:28.4,y:22.8},{x:28.6,y:23.1},{x:28.8,y:23.4},{x:29,y:23.7},{x:29.2,y:24},{x:29.4,y:24.3},{x:29.6,y:24.7},{x:29.8,y:25},{x:30,y:25.3},{x:30.2,y:25.6},{x:30.4,y:26},{x:30.6,y:26.3},{x:30.8,y:26.6},{x:31,y:27},{x:31.2,y:27.3},{x:31.4,y:27.7},{x:31.6,y:28},{x:31.8,y:28.3},{x:32,y:28.7},{x:32.2,y:29},{x:32.4,y:29.4},{x:32.6,y:29.7},{x:32.8,y:30.1},{x:33,y:30.4},{x:33.2,y:30.8},{x:33.4,y:31.2},{x:33.6,y:31.5},{x:33.8,y:31.9},{x:34,y:32.3},{x:34.2,y:32.6},{x:34.4,y:33},{x:34.6,y:33.4},{x:34.8,y:33.8},{x:35,y:34.1},{x:35.2,y:34.5},{x:35.4,y:34.9},{x:35.6,y:35.3},{x:35.8,y:35.7},{x:36,y:36},{x:36.2,y:36.4},{x:36.4,y:36.8},{x:36.6,y:37.2},{x:36.8,y:37.6},{x:37,y:38},{x:37.2,y:38.4},{x:37.4,y:38.8},{x:37.6,y:39.2},{x:37.8,y:39.6},{x:38,y:40},{x:38.2,y:40.4},{x:38.4,y:40.9},{x:38.6,y:41.3},{x:38.8,y:41.7},{x:39,y:42.1},{x:39.2,y:42.5},{x:39.4,y:42.9},{x:39.6,y:43.4},{x:39.8,y:43.8},{x:40,y:44.2},{x:40.2,y:44.7},{x:40.4,y:45.1},{x:40.6,y:45.5},{x:40.8,y:46},{x:41,y:46.4},{x:41.2,y:46.8},{x:41.4,y:47.3},{x:41.6,y:47.7},{x:41.8,y:48.2},{x:42,y:48.6},{x:42.2,y:49.1},{x:42.4,y:49.5},{x:42.6,y:50},{x:42.8,y:50.4},{x:43,y:50.9},{x:43.2,y:51.3},{x:43.4,y:51.8},{x:43.6,y:52.3},{x:43.8,y:52.7},{x:44,y:53.2},{x:44.2,y:53.7},{x:44.4,y:54.1},{x:44.6,y:54.6},{x:44.8,y:55.1},{x:45,y:55.6},{x:45.2,y:56.1},{x:45.4,y:56.5},{x:45.6,y:57},{x:45.8,y:57.5},{x:46,y:58},{x:46.2,y:58.5},{x:46.4,y:59},{x:46.6,y:59.5},{x:46.8,y:60}],u=[{x:18.8,y:10},{x:19,y:10.2},{x:19.2,y:10.4},{x:19.4,y:10.7},{x:19.6,y:10.9},{x:19.8,y:11.1},{x:20,y:11.3},{x:20.2,y:11.5},{x:20.4,y:11.7},{x:20.6,y:12},{x:20.8,y:12.2},{x:21,y:12.4},{x:21.2,y:12.6},{x:21.4,y:12.9},{x:21.6,y:13.1},{x:21.8,y:13.3},{x:22,y:13.6},{x:22.2,y:13.8},{x:22.4,y:14.1},{x:22.6,y:14.3},{x:22.8,y:14.6},{x:23,y:14.8},{x:23.2,y:15.1},{x:23.4,y:15.3},{x:23.6,y:15.6},{x:23.8,y:15.8},{x:24,y:16.1},{x:24.2,y:16.4},{x:24.4,y:16.6},{x:24.6,y:16.9},{x:24.8,y:17.1},{x:25,y:17.4},{x:25.2,y:17.7},{x:25.4,y:18},{x:25.6,y:18.2},{x:25.8,y:18.5},{x:26,y:18.8},{x:26.2,y:19.1},{x:26.4,y:19.4},{x:26.6,y:19.6},{x:26.8,y:19.9},{x:27,y:20.2},{x:27.2,y:20.5},{x:27.4,y:20.8},{x:27.6,y:21.1},{x:27.8,y:21.4},{x:28,y:21.7},{x:28.2,y:22},{x:28.4,y:22.3},{x:28.6,y:22.6},{x:28.8,y:22.9},{x:29,y:23.2},{x:29.2,y:23.5},{x:29.4,y:23.9},{x:29.6,y:24.2},{x:29.8,y:24.5},{x:30,y:24.8},{x:30.2,y:25.1},{x:30.4,y:25.5},{x:30.6,y:25.8},{x:30.8,y:26.1},{x:31,y:26.4},{x:31.2,y:26.8},{x:31.4,y:27.1},{x:31.6,y:27.4},{x:31.8,y:27.8},{x:32,y:28.1},{x:32.2,y:28.5},{x:32.4,y:28.8},{x:32.6,y:29.2},{x:32.8,y:29.5},{x:33,y:29.8},{x:33.2,y:30.2},{x:33.4,y:30.6},{x:33.6,y:30.9},{x:33.8,y:31.3},{x:34,y:31.6},{x:34.2,y:32},{x:34.4,y:32.4},{x:34.6,y:32.7},{x:34.8,y:33.1},{x:35,y:33.5},{x:35.2,y:33.8},{x:35.4,y:34.2},{x:35.6,y:34.6},{x:35.8,y:35},{x:36,y:35.3},{x:36.2,y:35.7},{x:36.4,y:36.1},{x:36.6,y:36.5},{x:36.8,y:36.9},{x:37,y:37.3},{x:37.2,y:37.7},{x:37.4,y:38.1},{x:37.6,y:38.4},{x:37.8,y:38.8},{x:38,y:39.2},{x:38.2,y:39.6},{x:38.4,y:40.1},{x:38.6,y:40.5},{x:38.8,y:40.9},{x:39,y:41.3},{x:39.2,y:41.7},{x:39.4,y:42.1},{x:39.6,y:42.5},{x:39.8,y:42.9},{x:40,y:43.4},{x:40.2,y:43.8},{x:40.4,y:44.2},{x:40.6,y:44.6},{x:40.8,y:45.1},{x:41,y:45.5},{x:41.2,y:45.9},{x:41.4,y:46.3},{x:41.6,y:46.8},{x:41.8,y:47.2},{x:42,y:47.7},{x:42.2,y:48.1},{x:42.4,y:48.5},{x:42.6,y:49},{x:42.8,y:49.4},{x:43,y:49.9},{x:43.2,y:50.3},{x:43.4,y:50.8},{x:43.6,y:51.2},{x:43.8,y:51.7},{x:44,y:52.2},{x:44.2,y:52.6},{x:44.4,y:53.1},{x:44.6,y:53.5},{x:44.8,y:54},{x:45,y:54.5},{x:45.2,y:55},{x:45.4,y:55.4},{x:45.6,y:55.9},{x:45.8,y:56.4},{x:46,y:56.9},{x:46.2,y:57.3},{x:46.4,y:57.8},{x:46.6,y:58.3},{x:46.8,y:58.8},{x:47,y:59.3},{x:47.2,y:59.8},{x:47.4,y:60}],m=[{x:19,y:10},{x:19.2,y:10.2},{x:19.4,y:10.4},{x:19.6,y:10.6},{x:19.8,y:10.9},{x:20,y:11.1},{x:20.2,y:11.3},{x:20.4,y:11.5},{x:20.6,y:11.7},{x:20.8,y:12},{x:21,y:12.2},{x:21.2,y:12.4},{x:21.4,y:12.6},{x:21.6,y:12.9},{x:21.8,y:13.1},{x:22,y:13.3},{x:22.2,y:13.6},{x:22.4,y:13.8},{x:22.6,y:14},{x:22.8,y:14.3},{x:23,y:14.5},{x:23.2,y:14.8},{x:23.4,y:15},{x:23.6,y:15.3},{x:23.8,y:15.5},{x:24,y:15.8},{x:24.2,y:16},{x:24.4,y:16.3},{x:24.6,y:16.5},{x:24.8,y:16.8},{x:25,y:17.1},{x:25.2,y:17.3},{x:25.4,y:17.6},{x:25.6,y:17.9},{x:25.8,y:18.2},{x:26,y:18.4},{x:26.2,y:18.7},{x:26.4,y:19},{x:26.6,y:19.3},{x:26.8,y:19.5},{x:27,y:19.8},{x:27.2,y:20.1},{x:27.4,y:20.4},{x:27.6,y:20.7},{x:27.8,y:21},{x:28,y:21.3},{x:28.2,y:21.6},{x:28.4,y:21.9},{x:28.6,y:22.2},{x:28.8,y:22.5},{x:29,y:22.8},{x:29.2,y:23.1},{x:29.4,y:23.4},{x:29.6,y:23.7},{x:29.8,y:24},{x:30,y:24.3},{x:30.2,y:24.6},{x:30.4,y:25},{x:30.6,y:25.3},{x:30.8,y:25.6},{x:31,y:25.9},{x:31.2,y:26.2},{x:31.4,y:26.6},{x:31.6,y:26.9},{x:31.8,y:27.2},{x:32,y:27.6},{x:32.2,y:27.9},{x:32.4,y:28.2},{x:32.6,y:28.6},{x:32.8,y:28.9},{x:33,y:29.3},{x:33.2,y:29.6},{x:33.4,y:30},{x:33.6,y:30.3},{x:33.8,y:30.7},{x:34,y:31},{x:34.2,y:31.4},{x:34.4,y:31.7},{x:34.6,y:32.1},{x:34.8,y:32.4},{x:35,y:32.8},{x:35.2,y:33.2},{x:35.4,y:33.5},{x:35.6,y:33.9},{x:35.8,y:34.3},{x:36,y:34.6},{x:36.2,y:35},{x:36.4,y:35.4},{x:36.6,y:35.8},{x:36.8,y:36.2},{x:37,y:36.5},{x:37.2,y:36.9},{x:37.4,y:37.3},{x:37.6,y:37.7},{x:37.8,y:38.1},{x:38,y:38.5},{x:38.2,y:38.9},{x:38.4,y:39.3},{x:38.6,y:39.7},{x:38.8,y:40.1},{x:39,y:40.5},{x:39.2,y:40.9},{x:39.4,y:41.3},{x:39.6,y:41.7},{x:39.8,y:42.1},{x:40,y:42.5},{x:40.2,y:42.9},{x:40.4,y:43.3},{x:40.6,y:43.7},{x:40.8,y:44.2},{x:41,y:44.6},{x:41.2,y:45},{x:41.4,y:45.4},{x:41.6,y:45.9},{x:41.8,y:46.3},{x:42,y:46.7},{x:42.2,y:47.1},{x:42.4,y:47.6},{x:42.6,y:48},{x:42.8,y:48.5},{x:43,y:48.9},{x:43.2,y:49.3},{x:43.4,y:49.8},{x:43.6,y:50.2},{x:43.8,y:50.7},{x:44,y:51.1},{x:44.2,y:51.6},{x:44.4,y:52},{x:44.6,y:52.5},{x:44.8,y:52.9},{x:45,y:53.4},{x:45.2,y:53.9},{x:45.4,y:54.3},{x:45.6,y:54.8},{x:45.8,y:55.3},{x:46,y:55.7},{x:46.2,y:56.2},{x:46.4,y:56.7},{x:46.6,y:57.2},{x:46.8,y:57.6},{x:47,y:58.1},{x:47.2,y:58.6},{x:47.4,y:59.1},{x:47.6,y:59.6},{x:47.8,y:60}],c=[{x:19.2,y:10},{x:19.4,y:10.2},{x:19.6,y:10.4},{x:19.8,y:10.6},{x:20,y:10.9},{x:20.2,y:11.1},{x:20.4,y:11.3},{x:20.6,y:11.5},{x:20.8,y:11.7},{x:21,y:11.9},{x:21.2,y:12.2},{x:21.4,y:12.4},{x:21.6,y:12.6},{x:21.8,y:12.8},{x:22,y:13.1},{x:22.2,y:13.3},{x:22.4,y:13.5},{x:22.6,y:13.8},{x:22.8,y:14},{x:23,y:14.2},{x:23.2,y:14.5},{x:23.4,y:14.7},{x:23.6,y:15},{x:23.8,y:15.2},{x:24,y:15.5},{x:24.2,y:15.7},{x:24.4,y:16},{x:24.6,y:16.1},{x:24.8,y:16.5},{x:25,y:16.7},{x:25.2,y:17},{x:25.4,y:17.3},{x:25.6,y:17.5},{x:25.8,y:17.8},{x:26,y:18.1},{x:26.2,y:18.3},{x:26.4,y:18.6},{x:26.6,y:18.9},{x:26.8,y:19.2},{x:27,y:19.4},{x:27.2,y:19.7},{x:27.4,y:20},{x:27.6,y:20.3},{x:27.8,y:20.6},{x:28,y:20.9},{x:28.2,y:21.1},{x:28.4,y:21.4},{x:28.6,y:21.7},{x:28.8,y:22},{x:29,y:22.3},{x:29.2,y:22.6},{x:29.4,y:22.9},{x:29.6,y:23.1},{x:29.8,y:23.5},{x:30,y:23.8},{x:30.2,y:24.2},{x:30.4,y:24.5},{x:30.6,y:24.8},{x:30.8,y:25.1},{x:31,y:25.4},{x:31.2,y:25.7},{x:31.4,y:26},{x:31.6,y:26.4},{x:31.8,y:26.7},{x:32,y:27},{x:32.2,y:27.4},{x:32.4,y:27.7},{x:32.6,y:28},{x:32.8,y:28.3},{x:33,y:28.7},{x:33.2,y:29},{x:33.4,y:29.4},{x:33.6,y:29.7},{x:33.8,y:30},{x:34,y:30.4},{x:34.2,y:30.7},{x:34.4,y:31.1},{x:34.6,y:31.4},{x:34.8,y:31.8},{x:35,y:32.2},{x:35.2,y:32.5},{x:35.4,y:32.9},{x:35.6,y:33.2},{x:35.8,y:33.6},{x:36,y:34},{x:36.2,y:34.3},{x:36.4,y:34.7},{x:36.6,y:35.1},{x:36.8,y:35.4},{x:37,y:35.8},{x:37.2,y:36.2},{x:37.4,y:36.6},{x:37.6,y:36.9},{x:37.8,y:37.3},{x:38,y:37.7},{x:38.2,y:38.1},{x:38.4,y:38.5},{x:38.6,y:38.9},{x:38.8,y:39.3},{x:39,y:39.7},{x:39.2,y:40.1},{x:39.4,y:40.5},{x:39.6,y:40.9},{x:39.8,y:41.3},{x:40,y:41.7},{x:40.2,y:42.1},{x:40.4,y:42.5},{x:40.6,y:42.9},{x:40.8,y:43.3},{x:41,y:43.7},{x:41.2,y:44.1},{x:41.4,y:44.5},{x:41.6,y:45},{x:41.8,y:45.4},{x:42,y:45.8},{x:42.2,y:46.2},{x:42.4,y:46.6},{x:42.6,y:47.1},{x:42.8,y:47.5},{x:43,y:47.9},{x:43.2,y:48.4},{x:43.4,y:48.8},{x:43.6,y:49.2},{x:43.8,y:49.7},{x:44,y:50.1},{x:44.2,y:50.6},{x:44.4,y:51},{x:44.6,y:51.5},{x:44.8,y:51.9},{x:45,y:52.4},{x:45.2,y:52.8},{x:45.4,y:53.3},{x:45.6,y:53.7},{x:45.8,y:54.2},{x:46,y:54.6},{x:46.2,y:55.1},{x:46.4,y:55.6},{x:46.6,y:56},{x:46.8,y:56.5},{x:47,y:57},{x:47.2,y:57.4},{x:47.4,y:57.9},{x:47.6,y:58.4},{x:47.8,y:58.9},{x:48,y:59.3},{x:48.2,y:59.8},{x:48.4,y:60}],h=[{x:19.4,y:10},{x:19.6,y:10.2},{x:19.8,y:10.4},{x:20,y:10.6},{x:20.2,y:10.9},{x:20.4,y:11.1},{x:20.6,y:11.3},{x:20.8,y:11.5},{x:21,y:11.7},{x:21.2,y:11.9},{x:21.4,y:12.2},{x:21.6,y:12.4},{x:21.8,y:12.6},{x:22,y:12.8},{x:22.2,y:13.1},{x:22.4,y:13.3},{x:22.6,y:13.5},{x:22.8,y:13.7},{x:23,y:14},{x:23.2,y:14.2},{x:23.4,y:14.4},{x:23.6,y:14.7},{x:23.8,y:14.9},{x:24,y:15.2},{x:24.2,y:15.4},{x:24.4,y:15.7},{x:24.6,y:15.9},{x:24.8,y:16.2},{x:25,y:16.4},{x:25.2,y:16.7},{x:25.4,y:16.9},{x:25.6,y:17.2},{x:25.8,y:17.4},{x:26,y:17.7},{x:26.2,y:18},{x:26.4,y:18.2},{x:26.6,y:18.5},{x:26.8,y:18.8},{x:27,y:19.1},{x:27.2,y:19.3},{x:27.4,y:19.6},{x:27.6,y:19.9},{x:27.8,y:20.2},{x:28,y:20.4},{x:28.2,y:20.7},{x:28.4,y:21},{x:28.6,y:21.3},{x:28.8,y:21.6},{x:29,y:21.9},{x:29.2,y:22},{x:29.4,y:22.5},{x:29.6,y:22.8},{x:29.8,y:23.1},{x:30,y:23.4},{x:30.2,y:23.7},{x:30.4,y:24},{x:30.6,y:24.3},{x:30.8,y:24.6},{x:31,y:24.9},{x:31.2,y:25.2},{x:31.4,y:25.5},{x:31.6,y:25.9},{x:31.8,y:26.2},{x:32,y:26.5},{x:32.2,y:26.8},{x:32.4,y:27.1},{x:32.6,y:27.5},{x:32.8,y:27.8},{x:33,y:28.1},{x:33.2,y:28.4},{x:33.4,y:28.8},{x:33.6,y:29},{x:33.8,y:29.5},{x:34,y:29.8},{x:34.2,y:30.1},{x:34.4,y:30.5},{x:34.6,y:30.8},{x:34.8,y:31.2},{x:35,y:31.5},{x:35.2,y:31.9},{x:35.4,y:32.2},{x:35.6,y:32.5},{x:35.8,y:32.9},{x:36,y:33.2},{x:36.2,y:33.6},{x:36.4,y:34},{x:36.6,y:34.3},{x:36.8,y:34.7},{x:37,y:35.1},{x:37.2,y:35.5},{x:37.4,y:35.8},{x:37.6,y:36.2},{x:37.8,y:36.6},{x:38,y:37},{x:38.2,y:37.3},{x:38.4,y:37.7},{x:38.6,y:38.1},{x:38.8,y:38.5},{x:39,y:38.9},{x:39.2,y:39.3},{x:39.4,y:39.7},{x:39.6,y:40},{x:39.8,y:40.4},{x:40,y:40.8},{x:40.2,y:41.2},{x:40.4,y:41.6},{x:40.6,y:42},{x:40.8,y:42.4},{x:41,y:42.8},{x:41.2,y:43.2},{x:41.4,y:43.7},{x:41.6,y:44.1},{x:41.8,y:44.5},{x:42,y:44.9},{x:42.2,y:45.3},{x:42.4,y:45.7},{x:42.6,y:46.1},{x:42.8,y:46.6},{x:43,y:47},{x:43.2,y:47.4},{x:43.4,y:47.8},{x:43.6,y:48.3},{x:43.8,y:48.7},{x:44,y:49.1},{x:44.2,y:49.6},{x:44.4,y:50},{x:44.6,y:50.4},{x:44.8,y:50.9},{x:45,y:51.3},{x:45.2,y:51.8},{x:45.4,y:52.2},{x:45.6,y:52.7},{x:45.8,y:53.1},{x:46,y:53.6},{x:46.2,y:54},{x:46.4,y:54.5},{x:46.6,y:54.9},{x:46.8,y:55.4},{x:47,y:55.8},{x:47.2,y:56.3},{x:47.4,y:56.8},{x:47.6,y:57.2},{x:47.8,y:57.7},{x:48,y:58.2},{x:48.2,y:58.6},{x:48.4,y:59.1},{x:48.6,y:59.6},{x:48.8,y:60}],p=[{x:19.6,y:10},{x:19.8,y:10.2},{x:20,y:10.4},{x:20.2,y:10.6},{x:20.4,y:10.8},{x:20.6,y:11},{x:20.8,y:11.3},{x:21,y:11.5},{x:21.2,y:11.7},{x:21.4,y:11.9},{x:21.6,y:12.1},{x:21.8,y:12.3},{x:22,y:12.6},{x:22.2,y:12.8},{x:22.4,y:13},{x:22.6,y:13.2},{x:22.8,y:13.5},{x:23,y:13.7},{x:23.2,y:13.9},{x:23.4,y:14.1},{x:23.6,y:14.4},{x:23.8,y:14.6},{x:24,y:14.9},{x:24.2,y:15.1},{x:24.4,y:15.3},{x:24.6,y:15.6},{x:24.8,y:15.8},{x:25,y:16.1},{x:25.2,y:16.3},{x:25.4,y:16.6},{x:25.6,y:16.8},{x:25.8,y:17.1},{x:26,y:17.4},{x:26.2,y:17.6},{x:26.4,y:17.9},{x:26.6,y:18.1},{x:26.8,y:18.4},{x:27,y:18.7},{x:27.2,y:18.9},{x:27.4,y:19.2},{x:27.6,y:19.5},{x:27.8,y:19.8},{x:28,y:20},{x:28.2,y:20.3},{x:28.4,y:20.6},{x:28.6,y:20.9},{x:28.8,y:21.2},{x:29,y:21.5},{x:29.2,y:21.7},{x:29.4,y:22},{x:29.6,y:22.3},{x:29.8,y:22.6},{x:30,y:22.9},{x:30.2,y:23.2},{x:30.4,y:23.5},{x:30.6,y:23.8},{x:30.8,y:24.1},{x:31,y:24.4},{x:31.2,y:24.7},{x:31.4,y:25},{x:31.6,y:25.3},{x:31.8,y:25.7},{x:32,y:26},{x:32.2,y:26.3},{x:32.4,y:26.6},{x:32.6,y:26.9},{x:32.8,y:27.2},{x:33,y:27.6},{x:33.2,y:27.9},{x:33.4,y:28.2},{x:33.6,y:28.5},{x:33.8,y:28.9},{x:34,y:29.2},{x:34.2,y:29.5},{x:34.4,y:29.9},{x:34.6,y:30.2},{x:34.8,y:30.6},{x:35,y:30.9},{x:35.2,y:31.2},{x:35.4,y:31.6},{x:35.6,y:31.9},{x:35.8,y:32.3},{x:36,y:32.6},{x:36.2,y:33},{x:36.4,y:33.3},{x:36.6,y:33.7},{x:36.8,y:34.1},{x:37,y:34.4},{x:37.2,y:34.8},{x:37.4,y:35.1},{x:37.6,y:35.5},{x:37.8,y:35.9},{x:38,y:36.2},{x:38.2,y:36.6},{x:38.4,y:37},{x:38.6,y:37.3},{x:38.8,y:37.7},{x:39,y:38.1},{x:39.2,y:38.5},{x:39.4,y:38.9},{x:39.6,y:39.3},{x:39.8,y:39.7},{x:40,y:40},{x:40.2,y:40.4},{x:40.4,y:40.8},{x:40.6,y:41.2},{x:40.8,y:41.6},{x:41,y:42},{x:41.2,y:42.4},{x:41.4,y:42.8},{x:41.6,y:43.2},{x:41.8,y:43.6},{x:42,y:44},{x:42.2,y:44.4},{x:42.4,y:44.8},{x:42.6,y:45.2},{x:42.8,y:45.6},{x:43,y:46.1},{x:43.2,y:46.5},{x:43.4,y:46.9},{x:43.6,y:47.3},{x:43.8,y:47.7},{x:44,y:48.2},{x:44.2,y:48.6},{x:44.4,y:49},{x:44.6,y:49.4},{x:44.8,y:49.9},{x:45,y:50.3},{x:45.2,y:50.7},{x:45.4,y:51.2},{x:45.6,y:51.6},{x:45.8,y:52.1},{x:46,y:52.5},{x:46.2,y:52.9},{x:46.4,y:53.4},{x:46.6,y:53.8},{x:46.8,y:54.3},{x:47,y:54.7},{x:47.2,y:55.2},{x:47.4,y:55.6},{x:47.6,y:56.1},{x:47.8,y:56.6},{x:48,y:57},{x:48.2,y:57.5},{x:48.4,y:57.9},{x:48.6,y:58.4},{x:48.8,y:58.9},{x:49,y:59.3},{x:49.2,y:59.8},{x:49.4,y:60}],f=[{x:19.8,y:10},{x:20,y:10.2},{x:20.2,y:10.4},{x:20.4,y:10.6},{x:20.6,y:10.8},{x:20.8,y:11},{x:21,y:11.2},{x:21.2,y:11.5},{x:21.4,y:11.7},{x:21.6,y:11.9},{x:21.8,y:12.1},{x:22,y:12.3},{x:22.2,y:12.5},{x:22.4,y:12.7},{x:22.6,y:13},{x:22.8,y:13.2},{x:23,y:13.4},{x:23.2,y:13.6},{x:23.4,y:13.9},{x:23.6,y:14.1},{x:23.8,y:14.3},{x:24,y:14.6},{x:24.2,y:14.8},{x:24.4,y:15},{x:24.6,y:15.3},{x:24.8,y:15.5},{x:25,y:15.8},{x:25.2,y:16},{x:25.4,y:16.3},{x:25.6,y:16.5},{x:25.8,y:16.8},{x:26,y:17},{x:26.2,y:17.3},{x:26.4,y:17.5},{x:26.6,y:17.8},{x:26.8,y:18},{x:27,y:18.3},{x:27.2,y:18.6},{x:27.4,y:18.8},{x:27.6,y:19.1},{x:27.8,y:19.4},{x:28,y:19.6},{x:28.2,y:19.9},{x:28.4,y:20.2},{x:28.6,y:20.5},{x:28.8,y:20.7},{x:29,y:21},{x:29.2,y:21.3},{x:29.4,y:21.6},{x:29.6,y:21.9},{x:29.8,y:22.2},{x:30,y:22.5},{x:30.2,y:22.8},{x:30.4,y:23},{x:30.6,y:23.3},{x:30.8,y:23.6},{x:31,y:23.9},{x:31.2,y:24.2},{x:31.4,y:24.5},{x:31.6,y:24.8},{x:31.8,y:25.1},{x:32,y:25.5},{x:32.2,y:25.8},{x:32.4,y:26.1},{x:32.6,y:26.4},{x:32.8,y:26.7},{x:33,y:27},{x:33.2,y:27.3},{x:33.4,y:27.7},{x:33.6,y:28},{x:33.8,y:28.3},{x:34,y:28.6},{x:34.2,y:29},{x:34.4,y:29.3},{x:34.6,y:29.6},{x:34.8,y:30},{x:35,y:30.3},{x:35.2,y:30.6},{x:35.4,y:31},{x:35.6,y:31.3},{x:35.8,y:31.6},{x:36,y:32},{x:36.2,y:32.3},{x:36.4,y:32.7},{x:36.6,y:33},{x:36.8,y:33.4},{x:37,y:33.7},{x:37.2,y:34.1},{x:37.4,y:34.4},{x:37.6,y:38.4},{x:37.8,y:35.2},{x:38,y:35.5},{x:38.2,y:35.9},{x:38.4,y:36.3},{x:38.6,y:36.6},{x:38.8,y:37},{x:39,y:37.4},{x:39.2,y:37.7},{x:39.4,y:38.1},{x:39.6,y:38.5},{x:39.8,y:38.9},{x:40,y:39.2},{x:40.2,y:39.6},{x:40.4,y:40},{x:40.6,y:40.4},{x:40.8,y:40.8},{x:41,y:41.2},{x:41.2,y:41.6},{x:41.4,y:42},{x:41.6,y:42.3},{x:41.8,y:42.7},{x:42,y:43.1},{x:42.2,y:43.5},{x:42.4,y:43.9},{x:42.6,y:44.3},{x:42.8,y:44.7},{x:43,y:45.2},{x:43.2,y:45.6},{x:43.4,y:46},{x:43.6,y:46.4},{x:43.8,y:46.8},{x:44,y:47.2},{x:44.2,y:47.6},{x:44.4,y:48},{x:44.6,y:48.5},{x:44.8,y:48.9},{x:45,y:49.3},{x:45.2,y:49.7},{x:45.4,y:50.2},{x:45.6,y:50.6},{x:45.8,y:51},{x:46,y:51.5},{x:46.2,y:51.9},{x:46.4,y:52.3},{x:46.6,y:52.8},{x:46.8,y:53.2},{x:47,y:53.7},{x:47.2,y:54.1},{x:47.4,y:54.5},{x:47.6,y:55},{x:47.8,y:55.4},{x:48,y:55.9},{x:48.2,y:56.3},{x:48.4,y:56.8},{x:48.6,y:57.3},{x:48.8,y:57.7},{x:49,y:58.2},{x:49.2,y:58.6},{x:49.4,y:59.1},{x:49.6,y:59.6},{x:49.8,y:60}],d=[{x:20,y:10},{x:20.2,y:10.2},{x:20.4,y:10.4},{x:20.6,y:10.6},{x:20.8,y:10.8},{x:21,y:11},{x:21.2,y:11.2},{x:21.4,y:11.4},{x:21.6,y:11.6},{x:21.8,y:11.9},{x:22,y:12.1},{x:22.2,y:12.3},{x:22.4,y:12.5},{x:22.6,y:12.7},{x:22.8,y:12.9},{x:23,y:13.1},{x:23.2,y:13.4},{x:23.4,y:13.6},{x:23.6,y:13.8},{x:23.8,y:14.1},{x:24,y:14.3},{x:24.2,y:14.5},{x:24.4,y:14.7},{x:24.6,y:15},{x:24.8,y:15.2},{x:25,y:15.5},{x:25.2,y:15.7},{x:25.4,y:15.9},{x:25.6,y:16.2},{x:25.8,y:16.4},{x:26,y:16.7},{x:26.2,y:16.9},{x:26.4,y:17.2},{x:26.6,y:17.4},{x:26.8,y:17.7},{x:27,y:17.9},{x:27.2,y:18.2},{x:27.4,y:18.5},{x:27.6,y:18.7},{x:27.8,y:19},{x:28,y:19.3},{x:28.2,y:19.5},{x:28.4,y:19.8},{x:28.6,y:20.1},{x:28.8,y:20.3},{x:29,y:20.6},{x:29.2,y:20.9},{x:29.4,y:21.2},{x:29.6,y:21.4},{x:29.8,y:21.7},{x:30,y:22},{x:30.2,y:22.3},{x:30.4,y:22.6},{x:30.6,y:22.9},{x:30.8,y:23.2},{x:31,y:23.5},{x:31.2,y:23.8},{x:31.4,y:24.1},{x:31.6,y:24.4},{x:31.8,y:24.7},{x:32,y:25},{x:32.2,y:25.3},{x:32.4,y:25.6},{x:32.6,y:25.9},{x:32.8,y:26.2},{x:33,y:26.5},{x:33.2,y:26.8},{x:33.4,y:27.1},{x:33.6,y:27.4},{x:33.8,y:27.7},{x:34,y:28.1},{x:34.2,y:28.4},{x:34.4,y:28.7},{x:34.6,y:29},{x:34.8,y:29.4},{x:35,y:29.7},{x:35.2,y:30},{x:35.4,y:30.4},{x:35.6,y:30.7},{x:35.8,y:31},{x:36,y:31.4},{x:36.2,y:31.7},{x:36.4,y:32},{x:36.6,y:32.4},{x:36.8,y:32.7},{x:37,y:33.1},{x:37.2,y:33.4},{x:37.4,y:33.8},{x:37.6,y:34.1},{x:37.8,y:34.5},{x:38,y:34.8},{x:38.2,y:35.2},{x:38.4,y:35.5},{x:38.6,y:35.9},{x:38.8,y:36.3},{x:39,y:36.6},{x:39.2,y:37},{x:39.4,y:37.4},{x:39.6,y:37.7},{x:39.8,y:38.1},{x:40,y:38.5},{x:40.2,y:38.8},{x:40.4,y:39.2},{x:40.6,y:39.6},{x:40.8,y:40},{x:41,y:40.4},{x:41.2,y:40.7},{x:41.4,y:41.1},{x:41.6,y:41.5},{x:41.8,y:41.9},{x:42,y:42.3},{x:42.2,y:42.7},{x:42.4,y:43.1},{x:42.6,y:43.5},{x:42.8,y:43.9},{x:43,y:44.3},{x:43.2,y:44.7},{x:43.4,y:45.1},{x:43.6,y:45.5},{x:43.8,y:45.9},{x:44,y:46.3},{x:44.2,y:46.7},{x:44.4,y:47.1},{x:44.6,y:47.5},{x:44.8,y:47.9},{x:45,y:48.3},{x:45.2,y:48.8},{x:45.4,y:49.2},{x:45.6,y:49.6},{x:45.8,y:50},{x:46,y:50.5},{x:46.2,y:50.9},{x:46.4,y:51.3},{x:46.6,y:51.7},{x:46.8,y:52.2},{x:47,y:52.6},{x:47.2,y:53},{x:47.4,y:53.5},{x:47.6,y:53.9},{x:47.8,y:54.4},{x:48,y:54.8},{x:48.2,y:55.2},{x:48.4,y:55.7},{x:48.6,y:56.1},{x:48.8,y:56.6},{x:49,y:57},{x:49.2,y:57.5},{x:49.4,y:57.9},{x:49.6,y:58.4},{x:49.8,y:58.8},{x:50,y:59.3},{x:50.2,y:59.8},{x:50.4,y:60}],g=[{x:20.2,y:10},{x:20.4,y:10.2},{x:20.6,y:10.4},{x:20.8,y:10.6},{x:21,y:10.8},{x:21.2,y:11},{x:21.4,y:11.2},{x:21.6,y:11.4},{x:21.8,y:11.6},{x:22,y:11.8},{x:22.2,y:12},{x:22.4,y:12.2},{x:22.6,y:12.5},{x:22.8,y:12.7},{x:23,y:12.9},{x:23.2,y:13.1},{x:23.4,y:13.3},{x:23.6,y:13.5},{x:23.8,y:13.8},{x:24,y:14},{x:24.2,y:14.2},{x:24.4,y:14.5},{x:24.6,y:14.7},{x:24.8,y:14.9},{x:25,y:15.2},{x:25.2,y:15.4},{x:25.4,y:15.6},{x:25.6,y:15.9},{x:25.8,y:16.1},{x:26,y:16.3},{x:26.2,y:16.6},{x:26.4,y:16.8},{x:26.6,y:17.1},{x:26.8,y:17.3},{x:27,y:17.6},{x:27.2,y:17.8},{x:27.4,y:18.1},{x:27.6,y:18.4},{x:27.8,y:18.6},{x:28,y:18.9},{x:28.2,y:19.1},{x:28.4,y:19.4},{x:28.6,y:19.7},{x:28.8,y:19.9},{x:29,y:20.2},{x:29.2,y:20.5},{x:29.4,y:20.8},{x:29.6,y:21},{x:29.8,y:21.3},{x:30,y:21.6},{x:30.2,y:21.9},{x:30.4,y:22.1},{x:30.6,y:22.4},{x:30.8,y:22.7},{x:31,y:23},{x:31.2,y:23.6},{x:31.4,y:23.6},{x:31.6,y:23.9},{x:31.8,y:24.2},{x:32,y:24.5},{x:32.2,y:24.8},{x:32.4,y:25.1},{x:32.6,y:25.4},{x:32.8,y:25.7},{x:33,y:26},{x:33.2,y:26.3},{x:33.4,y:26.6},{x:33.6,y:26.9},{x:33.8,y:27.2},{x:34,y:27.5},{x:34.2,y:27.8},{x:34.4,y:28.1},{x:34.6,y:28.5},{x:34.8,y:28.8},{x:35,y:29.1},{x:35.2,y:29.4},{x:35.4,y:29.8},{x:35.6,y:30.1},{x:35.8,y:30.4},{x:36,y:30.7},{x:36.2,y:31.1},{x:36.4,y:31.4},{x:36.6,y:31.7},{x:36.8,y:32.1},{x:37,y:32.4},{x:37.2,y:32.8},{x:37.4,y:33.1},{x:37.6,y:33.4},{x:37.8,y:33.8},{x:38,y:34.1},{x:38.2,y:34.5},{x:38.4,y:34.8},{x:38.6,y:35.2},{x:38.8,y:35.5},{x:39,y:35.9},{x:39.2,y:36.3},{x:39.4,y:36.6},{x:39.6,y:37},{x:39.8,y:37.3},{x:40,y:37.7},{x:40.2,y:38.1},{x:40.4,y:38.4},{x:40.6,y:38.8},{x:40.8,y:39.2},{x:41,y:39.6},{x:41.2,y:39.9},{x:41.4,y:40.3},{x:41.6,y:40.7},{x:41.8,y:41.1},{x:42,y:41.5},{x:42.2,y:41.8},{x:42.4,y:42.2},{x:42.6,y:42.6},{x:42.8,y:43},{x:43,y:43.4},{x:43.2,y:43.8},{x:43.4,y:44.2},{x:43.6,y:44.6},{x:43.8,y:45},{x:44,y:45.4},{x:44.2,y:45.8},{x:44.4,y:46.2},{x:44.6,y:46.6},{x:44.8,y:47},{x:45,y:47.4},{x:45.2,y:47.8},{x:45.4,y:48.2},{x:45.6,y:48.6},{x:45.8,y:49},{x:46,y:49.5},{x:46.2,y:49.9},{x:46.4,y:50.3},{x:46.6,y:50.7},{x:46.8,y:51.1},{x:47,y:51.6},{x:47.2,y:52},{x:47.4,y:52.4},{x:47.6,y:52.8},{x:47.8,y:53.3},{x:48,y:53.7},{x:48.2,y:54.1},{x:48.4,y:54.6},{x:48.6,y:55},{x:48.8,y:55.5},{x:49,y:55.9},{x:49.2,y:56.3},{x:49.4,y:56.8},{x:49.6,y:57.2},{x:49.8,y:57.7},{x:50,y:58.1},{x:50.2,y:58.6},{x:50.4,y:59},{x:50.6,y:59.5},{x:50.8,y:60}],b=[{x:20.4,y:10},{x:20.6,y:10.2},{x:20.8,y:10.4},{x:21,y:10.6},{x:21.2,y:10.8},{x:21.4,y:11},{x:21.6,y:11.2},{x:21.8,y:11.4},{x:22,y:11.6},{x:22.2,y:11.8},{x:22.4,y:12},{x:22.6,y:12.2},{x:22.8,y:12.4},{x:23,y:12.6},{x:23.2,y:12.8},{x:23.4,y:13.1},{x:23.6,y:13.1},{x:23.8,y:13.5},{x:24,y:13.7},{x:24.2,y:13.9},{x:24.4,y:14.2},{x:24.6,y:14.4},{x:24.8,y:14.6},{x:25,y:14.9},{x:25.2,y:15.1},{x:25.4,y:15.3},{x:25.6,y:15.6},{x:25.8,y:15.8},{x:26,y:16},{x:26.2,y:16.3},{x:26.4,y:16.5},{x:26.6,y:16.8},{x:26.8,y:17},{x:27,y:17.2},{x:27.2,y:17.5},{x:27.4,y:17.7},{x:27.6,y:18},{x:27.8,y:18.3},{x:28,y:18.5},{x:28.2,y:18.8},{x:28.4,y:19},{x:28.6,y:19.3},{x:28.8,y:19.5},{x:29,y:19.8},{x:29.2,y:20.1},{x:29.4,y:20.3},{x:29.6,y:20.6},{x:29.8,y:20.9},{x:30,y:21.2},{x:30.2,y:21.4},{x:30.4,y:21.7},{x:30.6,y:22},{x:30.8,y:22.3},{x:31,y:22.5},{x:31.2,y:22.8},{x:31.4,y:23.1},{x:31.6,y:23.4},{x:31.8,y:23.7},{x:32,y:24},{x:32.2,y:24.3},{x:32.4,y:24.6},{x:32.6,y:24.9},{x:32.8,y:25.2},{x:33,y:25.5},{x:33.2,y:25.8},{x:33.4,y:26.1},{x:33.6,y:26.4},{x:33.8,y:26.7},{x:34,y:27},{x:34.2,y:27.3},{x:34.4,y:27.6},{x:34.6,y:27.9},{x:34.8,y:28.2},{x:35,y:28.5},{x:35.2,y:28.8},{x:35.4,y:29.2},{x:35.6,y:29.5},{x:35.8,y:29.8},{x:36,y:30.1},{x:36.2,y:30.5},{x:36.4,y:30.8},{x:36.6,y:31.1},{x:36.8,y:31.4},{x:37,y:31.8},{x:37.2,y:32.1},{x:37.4,y:32.4},{x:37.6,y:32.8},{x:37.8,y:33.1},{x:38,y:33.5},{x:38.2,y:33.8},{x:38.4,y:34.2},{x:38.6,y:34.5},{x:38.8,y:34.8},{x:39,y:35.2},{x:39.2,y:35.5},{x:39.4,y:35.9},{x:39.6,y:36.3},{x:39.8,y:36.6},{x:40,y:37},{x:40.2,y:37.3},{x:40.4,y:37.7},{x:40.6,y:38.1},{x:40.8,y:38.4},{x:41,y:38.8},{x:41.2,y:39.1},{x:41.4,y:39.5},{x:41.6,y:39.9},{x:41.8,y:40.3},{x:42,y:40.6},{x:42.2,y:41},{x:42.4,y:41.4},{x:42.6,y:41.8},{x:42.8,y:42.2},{x:43,y:42.5},{x:43.2,y:42.9},{x:43.4,y:43.3},{x:43.6,y:43.7},{x:43.8,y:44.1},{x:44,y:44.5},{x:44.2,y:44.9},{x:44.4,y:45.3},{x:44.6,y:45.7},{x:44.8,y:46.1},{x:45,y:46.5},{x:45.2,y:46.9},{x:45.4,y:47.3},{x:45.6,y:47.7},{x:45.8,y:48.1},{x:46,y:48.5},{x:46.2,y:48.9},{x:46.4,y:49.3},{x:46.6,y:49.7},{x:46.8,y:50.1},{x:47,y:50.5},{x:47.2,y:51},{x:47.4,y:51.4},{x:47.6,y:51.8},{x:47.8,y:52.2},{x:48,y:52.7},{x:48.2,y:53.1},{x:48.4,y:53.5},{x:48.6,y:53.9},{x:48.8,y:54.4},{x:49,y:54.8},{x:49.2,y:55.2},{x:49.4,y:55.7},{x:49.6,y:56.1},{x:49.8,y:56.6},{x:50,y:57},{x:50.2,y:57.4},{x:50.4,y:57.9},{x:50.6,y:58.3},{x:50.8,y:58.8},{x:51,y:59.2},{x:51.2,y:59.7},{x:51.4,y:60}],C=[{x:20.6,y:10},{x:20.8,y:10.2},{x:21,y:10.4},{x:21.2,y:10.6},{x:21.4,y:10.8},{x:21.6,y:11},{x:21.8,y:11.2},{x:22,y:11.4},{x:22.2,y:11.6},{x:22.4,y:11.8},{x:22.6,y:12},{x:22.8,y:12.2},{x:23,y:12.4},{x:23.2,y:12.6},{x:23.4,y:12.8},{x:23.6,y:13},{x:23.8,y:13.2},{x:24,y:13.5},{x:24.2,y:13.7},{x:24.4,y:13.9},{x:24.6,y:14.1},{x:24.8,y:14.3},{x:25,y:14.6},{x:25.2,y:14.8},{x:25.4,y:15},{x:25.6,y:15.2},{x:25.8,y:15.5},{x:26,y:15.7},{x:26.2,y:15.9},{x:26.4,y:16.2},{x:26.6,y:16.4},{x:26.8,y:16.7},{x:27,y:16.9},{x:27.2,y:17.1},{x:27.4,y:17.4},{x:27.6,y:17.6},{x:27.8,y:17.9},{x:28,y:18.1},{x:28.2,y:18.4},{x:28.4,y:18.6},{x:28.6,y:18.9},{x:28.8,y:19.2},{x:29,y:19.4},{x:29.2,y:19.7},{x:29.4,y:19.9},{x:29.6,y:20.2},{x:29.8,y:20.5},{x:30,y:20.7},{x:30.2,y:21},{x:30.4,y:21.3},{x:30.6,y:21.6},{x:30.8,y:21.8},{x:31,y:22.1},{x:31.2,y:22.4},{x:31.4,y:22.7},{x:31.6,y:22.9},{x:31.8,y:23.2},{x:32,y:23.5},{x:32.2,y:23.8},{x:32.4,y:24.1},{x:32.6,y:24.4},{x:32.8,y:24.7},{x:33,y:25},{x:33.2,y:25.2},{x:33.4,y:25.5},{x:33.6,y:25.8},{x:33.8,y:26.1},{x:34,y:26.4},{x:34.2,y:26.4},{x:34.4,y:27},{x:34.6,y:27.4},{x:34.8,y:27.7},{x:35,y:28},{x:35.2,y:28.3},{x:35.4,y:28.6},{x:35.6,y:28.9},{x:35.8,y:29.2},{x:36,y:29.5},{x:36.2,y:29.9},{x:36.4,y:30.2},{x:36.6,y:30.5},{x:36.8,y:30.8},{x:37,y:31.2},{x:37.2,y:31.5},{x:37.4,y:31.8},{x:37.6,y:32.1},{x:37.8,y:32.5},{x:38,y:32.8},{x:38.2,y:33.1},{x:38.4,y:33.5},{x:38.6,y:33.8},{x:38.8,y:34.2},{x:39,y:34.5},{x:39.2,y:34.8},{x:39.4,y:35.2},{x:39.6,y:35.5},{x:39.8,y:35.9},{x:40,y:36.2},{x:40.2,y:36.6},{x:40.4,y:36.9},{x:40.6,y:37.3},{x:40.8,y:37.7},{x:41,y:38},{x:41.2,y:38.4},{x:41.4,y:38.7},{x:41.6,y:39.1},{x:41.8,y:39.5},{x:42,y:39.8},{x:42.2,y:40.2},{x:42.4,y:40.6},{x:42.6,y:40.9},{x:42.8,y:41.3},{x:43,y:41.7},{x:43.2,y:42.1},{x:43.4,y:42.5},{x:43.6,y:42.8},{x:43.8,y:43.2},{x:44,y:43.6},{x:44.2,y:44},{x:44.4,y:44.4},{x:44.6,y:44.8},{x:44.8,y:45.1},{x:45,y:45.5},{x:45.2,y:45.9},{x:45.4,y:46.3},{x:45.6,y:46.7},{x:45.8,y:47.1},{x:46,y:47.5},{x:46.2,y:47.9},{x:46.4,y:48.3},{x:46.6,y:48.7},{x:46.8,y:49.1},{x:47,y:49.5},{x:47.2,y:50.5},{x:47.4,y:50.4},{x:47.6,y:50.8},{x:47.8,y:51.2},{x:48,y:51.6},{x:48.2,y:52},{x:48.4,y:52.5},{x:48.6,y:52.9},{x:48.8,y:53.3},{x:49,y:53.7},{x:49.2,y:54.1},{x:49.4,y:54.6},{x:49.6,y:55},{x:49.8,y:55.4},{x:50,y:55.9},{x:50.2,y:56.3},{x:50.4,y:56.7},{x:50.6,y:57.2},{x:50.8,y:57.6},{x:51,y:58.1},{x:51.2,y:58.5},{x:51.4,y:58.9},{x:51.6,y:59.4},{x:51.8,y:59.8},{x:52,y:60}],S=[{x:20.8,y:10},{x:21,y:10.2},{x:21.2,y:10.4},{x:21.4,y:10.6},{x:21.6,y:10.7},{x:21.8,y:10.9},{x:22,y:11.1},{x:22.2,y:11.3},{x:22.4,y:11.5},{x:22.6,y:11.7},{x:22.8,y:11.9},{x:23,y:12.1},{x:23.2,y:12.3},{x:23.4,y:12.6},{x:23.6,y:12.8},{x:23.8,y:13},{x:24,y:13.2},{x:24.2,y:13.4},{x:24.4,y:13.6},{x:24.6,y:13.8},{x:24.8,y:14.1},{x:25,y:14.3},{x:25.2,y:14.5},{x:25.4,y:14.7},{x:25.6,y:14.9},{x:25.8,y:15.2},{x:26,y:15.4},{x:26.2,y:15.6},{x:26.4,y:15.9},{x:26.6,y:16.1},{x:26.8,y:16.3},{x:27,y:16.6},{x:27.2,y:16.8},{x:27.4,y:17.1},{x:27.6,y:17.3},{x:27.8,y:17.5},{x:28,y:17.8},{x:28.2,y:18},{x:28.4,y:18.3},{x:28.6,y:18.5},{x:28.8,y:18.8},{x:29,y:19},{x:29.2,y:19.3},{x:29.4,y:19.5},{x:29.6,y:19.8},{x:29.8,y:20.1},{x:30,y:20.3},{x:30.2,y:20.6},{x:30.4,y:20.9},{x:30.6,y:21.1},{x:30.8,y:21.4},{x:31,y:21.7},{x:31.2,y:21.9},{x:31.4,y:22.2},{x:31.6,y:22.5},{x:31.8,y:22.8},{x:32,y:23},{x:32.2,y:23.3},{x:32.4,y:23.6},{x:32.6,y:23.9},{x:32.8,y:24.2},{x:33,y:24.5},{x:33.2,y:24.7},{x:33.4,y:25},{x:33.6,y:25.3},{x:33.8,y:25.6},{x:34,y:25.9},{x:34.2,y:26.2},{x:34.4,y:26.5},{x:34.6,y:26.8},{x:34.8,y:27.1},{x:35,y:27.4},{x:35.2,y:27.7},{x:35.4,y:28},{x:35.6,y:28.3},{x:35.8,y:28.6},{x:36,y:29},{x:36.2,y:29.3},{x:36.4,y:29.6},{x:36.6,y:29.9},{x:36.8,y:30.2},{x:37,y:30.5},{x:37.2,y:30.9},{x:37.4,y:31.2},{x:37.6,y:31.5},{x:37.8,y:31.8},{x:38,y:32.2},{x:38.2,y:32.5},{x:38.4,y:32.8},{x:38.6,y:33.2},{x:38.8,y:33.5},{x:39,y:33.8},{x:39.2,y:34.2},{x:39.4,y:34.5},{x:39.6,y:34.8},{x:39.8,y:35.2},{x:40,y:35.5},{x:40.2,y:35.9},{x:40.4,y:36.2},{x:40.6,y:36.6},{x:40.8,y:36.9},{x:41,y:37.3},{x:41.2,y:37.6},{x:41.4,y:38},{x:41.6,y:38.3},{x:41.8,y:38.7},{x:42,y:39.1},{x:42.2,y:39.4},{x:42.4,y:39.8},{x:42.6,y:40.1},{x:42.8,y:40.5},{x:43,y:40.9},{x:43.2,y:41.2},{x:43.4,y:41.6},{x:43.6,y:42},{x:43.8,y:42.4},{x:44,y:42.7},{x:44.2,y:43.1},{x:44.4,y:43.5},{x:44.6,y:43.9},{x:44.8,y:44.3},{x:45,y:44.6},{x:45.2,y:45},{x:45.4,y:45.4},{x:45.6,y:45.8},{x:45.8,y:46.2},{x:46,y:46.6},{x:46.2,y:47},{x:46.4,y:47.4},{x:46.6,y:47.8},{x:46.8,y:48.2},{x:47,y:48.6},{x:47.2,y:49},{x:47.4,y:49.4},{x:47.6,y:49.8},{x:47.8,y:50.2},{x:48,y:50.6},{x:48.2,y:51},{x:48.4,y:51.4},{x:48.6,y:51.8},{x:48.8,y:52.2},{x:49,y:52.7},{x:49.2,y:53.1},{x:49.4,y:53.5},{x:49.6,y:53.9},{x:49.8,y:54.3},{x:50,y:54.8},{x:50.2,y:55.2},{x:50.4,y:55.6},{x:50.6,y:56},{x:50.8,y:56.5},{x:51,y:56.9},{x:51.2,y:57.3},{x:51.4,y:57.8},{x:51.6,y:58.2},{x:51.8,y:58.7},{x:52,y:59.1},{x:52.2,y:59.5},{x:52.4,y:60}],w=[{x:21,y:10},{x:21.2,y:10.2},{x:21.4,y:10.3},{x:21.6,y:10.5},{x:21.8,y:10.7},{x:22,y:10.9},{x:22.2,y:11.1},{x:22.4,y:11.3},{x:22.6,y:11.5},{x:22.8,y:11.7},{x:23,y:11.9},{x:23.2,y:12.1},{x:23.4,y:12.3},{x:23.6,y:12.5},{x:23.8,y:12.7},{x:24,y:12.9},{x:24.2,y:13.1},{x:24.4,y:13.3},{x:24.6,y:13.6},{x:24.8,y:13.8},{x:25,y:14},{x:25.2,y:14.2},{x:25.4,y:14.4},{x:25.6,y:14.7},{x:25.8,y:14.9},{x:26,y:15.1},{x:26.2,y:15.3},{x:26.4,y:15.6},{x:26.6,y:15.8},{x:26.8,y:16},{x:27,y:16.2},{x:27.2,y:16.5},{x:27.4,y:16.7},{x:27.6,y:17},{x:27.8,y:17.2},{x:28,y:17.4},{x:28.2,y:17.7},{x:28.4,y:17.9},{x:28.6,y:18.2},{x:28.8,y:18.4},{x:29,y:18.7},{x:29.2,y:18.9},{x:29.4,y:19.2},{x:29.6,y:19.4},{x:29.8,y:19.7},{x:30,y:19.9},{x:30.2,y:20.2},{x:30.4,y:20.4},{x:30.6,y:20.7},{x:30.8,y:21},{x:31,y:21.2},{x:31.2,y:21.5},{x:31.4,y:21.8},{x:31.6,y:22},{x:31.8,y:22.3},{x:32,y:22.6},{x:32.2,y:22.9},{x:32.4,y:23.1},{x:32.6,y:23.4},{x:32.8,y:23.7},{x:33,y:24},{x:33.2,y:24.3},{x:33.4,y:24.5},{x:33.6,y:24.8},{x:33.8,y:25.1},{x:34,y:25.4},{x:34.2,y:25.7},{x:34.4,y:26},{x:34.6,y:26.3},{x:34.8,y:26.6},{x:35,y:26.9},{x:35.2,y:27.2},{x:35.4,y:27.5},{x:35.6,y:27.8},{x:35.8,y:28.1},{x:36,y:28.4},{x:36.2,y:28.7},{x:36.4,y:29},{x:36.6,y:29.3},{x:36.8,y:29.6},{x:37,y:29.9},{x:37.2,y:30.2},{x:37.4,y:30.6},{x:37.6,y:30.9},{x:37.8,y:31.2},{x:38,y:31.5},{x:38.2,y:31.8},{x:38.4,y:32.2},{x:38.6,y:32.5},{x:38.8,y:32.8},{x:39,y:33.2},{x:39.2,y:33.5},{x:39.4,y:33.8},{x:39.6,y:34.2},{x:39.8,y:34.5},{x:40,y:34.8},{x:40.2,y:35.2},{x:40.4,y:35.5},{x:40.6,y:35.8},{x:40.8,y:36.2},{x:41,y:36.5},{x:41.2,y:36.9},{x:41.4,y:37.2},{x:41.6,y:37.6},{x:41.8,y:37.9},{x:42,y:38.3},{x:42.2,y:38.6},{x:42.4,y:39},{x:42.6,y:39.3},{x:42.8,y:39.7},{x:43,y:40.1},{x:43.2,y:40.4},{x:43.4,y:40.8},{x:43.6,y:41.2},{x:43.8,y:41.5},{x:44,y:41.9},{x:44.2,y:42.3},{x:44.4,y:42.6},{x:44.6,y:43},{x:44.8,y:43.4},{x:45,y:43.8},{x:45.2,y:44.1},{x:45.4,y:44.5},{x:45.6,y:44.9},{x:45.8,y:45.3},{x:46,y:45.7},{x:46.2,y:46.1},{x:46.4,y:46.4},{x:46.6,y:46.8},{x:46.8,y:47.2},{x:47,y:47.6},{x:47.2,y:48},{x:47.4,y:48.4},{x:47.6,y:48.8},{x:47.8,y:49.2},{x:48,y:49.6},{x:48.2,y:50},{x:48.4,y:50.4},{x:48.6,y:50.8},{x:48.8,y:51.2},{x:49,y:51.6},{x:49.2,y:52},{x:49.4,y:52.4},{x:49.6,y:52.9},{x:49.8,y:53.3},{x:50,y:53.7},{x:50.2,y:54.1},{x:50.4,y:54.5},{x:50.6,y:54.9},{x:50.8,y:55.4},{x:51,y:55.8},{x:51.2,y:56.2},{x:51.4,y:56.6},{x:51.6,y:57.1},{x:51.8,y:57.5},{x:52,y:57.9},{x:52.2,y:58.4},{x:52.4,y:58.8},{x:52.6,y:59.2},{x:52.8,y:59.7}];if(y>=0){var D;"0"==(D=1*o)?F=i:"0.5"==D?F=u:"1"==D?F=m:"1.5"==D?F=c:"2"==D?F=h:"2.5"==D?F=p:"3"==D?F=f:"3.5"==D?F=d:"4"==D?F=g:"4.5"==D?F=b:"5"==D?F=C:"5.5"==D?F=S:D>="6"&&(F=w);V=-1;for(s=0;s<F.length;s++){if(1*F[0].x>x){V=1;break}if(1*F[s].x>x){V=s;break}if(1*F[F.length-1].x<x){V=F.length-1;break}if(x==F[s].x){n=e.GetDataOddIncreaseEvenDecrease(F[s].y,-1);break}}if(-1!=V){E=F[V-1].x,N=F[V-1].y,v=F[V].x,A=F[V].y;x>=46.8&&0==D||x>=47.4&&.5==D||x>=47.8&&1==D||x>=48.4&&1.5==D||x>=48.8&&2==D||x>=49.4&&2.5==D||x>=49.8&&3==D||x>=50.4&&3.5==D||x>=50.8&&4==D||x>=51.4&&4.5==D||x>=52&&5==D||x>=52.4&&5.5==D?n=">60.0":((n=e.GetDataOddIncreaseEvenDecrease(e.InterpolationMethod_y(E,v,N,A,x),-1))>60&&(n=">60.0"),n<10&&(n="<10.0"))}}}return n}},FormulaUtils={initFormulas:(e,l)=>{FormulaUtils.allCusFormulas.forEach(t=>{const a=FormulaUtils.initForFun(e,l,t.funName,t.funDesc,t.funCallback,t.funDefaultVal,t.funMinArgs,t.funMaxArgs,t.funParams,t.isContext,t.isAcceptArea,t.isContainNullUndefinedVal);e.Spread.CalcEngine.Functions.defineGlobalCustomFunction(t.funName,new a)})},initForFun:(e,l,t,a,n,y=0,o=1,x=1e3,r=[],s=!0,i=!0,u=!1)=>{const m=function(){this.name=t,this.minArgs=o,this.maxArgs=x};return(m.prototype=new e.Spread.CalcEngine.Functions.Function(t,o,x)).description=function(){return{description:a,parameters:r}},m.prototype.isContextSensitive=function(){return s},m.prototype.acceptsReference=function(){return i},m.prototype.evaluate=function(){let e,t;s&&(e=arguments[0].source.getSheet(),t=e.getSpan(arguments[0].row,arguments[0].column),null!=t&&null!=t||(t={row:arguments[0].row,col:arguments[0].column,rowCount:1,colCount:1}));let a=[],o=[];if(i&&arguments.length>1){const e=arguments[0].source.getSheet();for(let l=1;l<arguments.length;l++){const t=arguments[l];if(null!=t.$gt&&null!=t.$gt&&t.$gt.length>0){let l=[],a=e.getSpans(t.$gt[0]);if(a.length>0)a.forEach(t=>{l.push(e.getValue(t.row,t.col))});else{e.getArray(t.$gt[0].row,t.$gt[0].col,t.$gt[0].rowCount,t.$gt[0].colCount).forEach(e=>{e.forEach(e=>{l.push(e)})})}o.push(l)}else o.push(t)}}let x=arguments.length;for(let l=1;l<x;l++){const t=arguments[l];if("string"==typeof t||"number"==typeof t)a.push(t);else{e=t.getSource().getSheet();const l=t.getRow(),n=t.getColumn(),y=t.getRowCount(),o=t.getColumnCount();e.getArray(l,n,y,o).forEach(e=>{e.forEach(e=>{(u||null!=e&&null!=e)&&a.push(e)})})}}function r(e){if(null===e||"object"!=typeof e)return!1;const l=Object.getPrototypeOf(e);return(null===l||l===Object.prototype)&&e.constructor===Object}if(0==a.length&&null!=y&&null!=a&&(a=[y]),null!=a&&null!=a&&a.length>0)for(var m=0;m<a.length;m++){let e=a[m];null!=e&&null!=e&&r(e)&&e.hasOwnProperty("con")&&e.hasOwnProperty("val")&&(a[m]=e.val)}if(null!=o&&null!=o&&o.length>0)for(m=0;m<o.length;m++){let e=o[m];if(null!=e&&null!=e&&e.length>0)for(var c=0;c<e.length;c++){let l=e[c];null!=l&&null!=l&&r(l)&&l.hasOwnProperty("con")&&l.hasOwnProperty("val")&&(o[m][c]=l.val)}}return n(l,e,{arguments:arguments,cellObj:t,allCellVals:a,allCellValsEw:o})},m},commFun:{getForRangeCellsValArr:e=>{let l=[];if(e.length>1){const t=e[0].source.getSheet();for(let a=1;a<e.length;a++){const n=e[a];let y=t.getArray(n.$gt[0].row,n.$gt[0].col,n.$gt[0].rowCount,n.$gt[0].colCount);l.push(y)}}return l},isNumber:e=>/^(-?\d+)(\.\d+)?$/.test(e),convertToInt:e=>{let l=[];return e.forEach((e,t)=>{l.push(Number(e))}),l},getMax:e=>0==e.length?"":Math.max(...e),getMin:e=>0==e.length?"":Math.min(...e),getAverage:e=>{if(0==e.length)return"";let l=[];e.forEach(e=>{l.push(math__namespace.bignumber(e))});return math__namespace.mean(l).toNumber()},getNum:e=>{let l,t;const a=/[×φ*]/g;try{let n;t=e.split(a),"φ"==e.substring(0,1)?(n=t[1]-0,l=Math.PI*n*n/4):(l=t[0]-0,n=t[1]-0,l*=n)}catch(e){return 0}return l},getRound:(e,l)=>{const t=e<0;if(t&&(e=Math.abs(e)),0==l){let l=e.toString();if(-1==l.indexOf("."))return t?-e:e;let a=parseInt(l.split(".")[0]),n=l.split(".")[1];return parseFloat(`0.${n}`)>=.5?t?-(a+1):a+1:t?-a:a}let a=rapidUtils.preciseCalc(1,l,"div"),n=rapidUtils.preciseCalc(e,a,"mul");const y=rapidUtils.preciseCalc((e=>{let l=e.toString();if(-1==l.indexOf("."))return e;let t=parseInt(l.split(".")[0]),a=l.split(".")[1],n=parseInt(a.substring(0,1));return n>=6?t+1:n<=4?t:5==n&&1==a.length?t%2!=0?t+1:t:5==n&&a.length>1?t+1:e})(n),a,"div");let o=l+"";if(-1==o.indexOf("."))return t?-y:y;{const e=y+"";let l="";if(-1==e.indexOf(".")){let e="";for(let l=0;l<o.split(".")[1].length;l++)e+="0";return(t?"-":"")+`${y}.${e}`}{const a=e.split(".")[1];if(o.split(".")[1].length>a.length)for(let e=0;e<o.split(".")[1].length-a.length;e++)l+="0";return(t?"-":"")+`${y}${l}`}}},InterpolationMethod_y:(e,l,t,a,n)=>{let y=(n-e)*(t-a)/(e-l)+1*t;return isNaN(y)?"/":y},GetDataOddIncreaseEvenDecrease:(e,l)=>{let t,a,n,y;if(-1!=e.toString().indexOf("00000000")&&(e=e.toString().substring(0,e.toString().indexOf("00000000")+2)),-1!=e.toString().indexOf("999999")){let t=l;t<0&&(t=Math.abs(t-1)),e=parseFloat(e).toFixed(t)}if(l*=1,t=1,n=e*=1,1*Math.floor(e)==1*e)switch(l){case-7:y=e+".000000000";break;case-6:y=e+".00000000";break;case-5:y=e+".0000000";break;case-4:y=e+".000000";break;case-3:y=e+".00000";break;case-2:y=e+".0000";break;case-1:y=e+".000";break;case 1:y=e+".00";break;case 2:y=e+".0";break;case 3:y=e}else switch(l){case-7:y=(1*e).toFixed(9);break;case-6:y=(1*e).toFixed(8);break;case-5:y=(1*e).toFixed(7);break;case-4:y=(1*e).toFixed(6);break;case-3:y=(1*e).toFixed(5);break;case-2:y=(1*e).toFixed(4);break;case-1:y=(1*e).toFixed(3);break;case 1:y=(1*e).toFixed(2);break;case 2:y=(1*e).toFixed(1);break;case 3:y=1*e}if(1*y>1*n)switch(l){case-7:y=(y-1e-8).toFixed(9);break;case-6:y=(y-1e-8).toFixed(8);break;case-5:y=(y-1e-7).toFixed(7);break;case-4:y=(y-1e-6).toFixed(6);break;case-3:y=(y-1e-5).toFixed(5);break;case-2:y=(y-1e-4).toFixed(4);break;case-1:y=(y-.001).toFixed(3);break;case 1:y=(y-.01).toFixed(2);break;case 2:y=(y-.1).toFixed(1);break;case 3:y=(y-1).toFixed(0)}if(n=y+"1",y=n.substr(0,n.length-1),3==l||-1==l||-2==l||-3==l||-4==l||-5==l||-6==l||-7==l)if(50==y.substr(y.length-2,2))if(y.substr(y.length-3,1)%2==0)a=y.substr(0,y.length-2),-1!=e.toString().indexOf(y)&&1*e-1*y>0&&(a=e);else switch(a=y.substr(0,y.length-2),(a<0||"-"==a.replace("0",""))&&(t=-1),l){case-7:a=1*a+1e-7*t;break;case-6:a=1*a+1e-6*t;break;case-5:a=1*a+1e-5*t;break;case-4:a=1*a+1e-4*t;break;case-3:a=1*a+.001*t;break;case-2:a=1*a+.01*t;break;case-1:a=1*a+.1*t;break;default:a=1*a*100+100*t}else if(y.substr(y.length-2,2)<50){if(a=y.substr(0,y.length-2),3===l)a=1*a*100}else if(y.substr(y.length-2,2)>50||y<e)switch(a=y.substr(0,y.length-2),(a<0||"-"==a.replace("0",""))&&(t=-1),l){case-7:a=1*a+1e-7*t;break;case-6:a=1*a+1e-6*t;break;case-5:a=1*a+1e-5*t;break;case-4:a=1*a+1e-4*t;break;case-3:a=1*a+.001*t;break;case-2:a=1*a+.01*t;break;case-1:a=1*a+.1*t;break;default:a=1*a*100+100*t}switch(1==l&&(50==y.substr(y.length-2,2)?y.substr(y.length-4,1)%2==0?a=y.substr(0,y.length-3):(a=y.substr(0,y.length-3),(a<0||"-"==a.replace("0",""))&&(t=-1),a=1*a+1*t):y.substr(y.length-2,2)<50?a=y.substr(0,y.length-3):(y.substr(y.length-2,2)>50||1*y<e)&&(a=y.substr(0,y.length-3),(a<0||"-"==a.replace("0",""))&&(t=-1),a=1*a+1*t)),2==l&&(5==y.substr(y.length-3,3)&&1*y==e?y.substr(y.length-4,1)%2==0?a=10*y.substr(0,y.length-3):(a=y.substr(0,y.length-3),(a<0||"-"==a.replace("0",""))&&(t=-1),a=10*a+10*t):y.substr(y.length-3,3)<5?a=10*y.substr(0,y.length-3):(y.substr(y.length-3,3)>5||1*y<e)&&(a=y.substr(0,y.length-3),(a<0||"-"==a.replace("0",""))&&(t=-1),a=10*a+10*t)),l){case-7:n=(1*a).toFixed(7);break;case-6:n=(1*a).toFixed(6);break;case-5:n=(1*a).toFixed(5);break;case-4:n=(1*a).toFixed(4);break;case-3:n=(1*a).toFixed(3);break;case-2:n=(1*a).toFixed(2);break;case-1:n=(1*a).toFixed(1);break;default:n=(1*a).toFixed(0)}return isNaN(n)&&(n="/"),n},GetS:e=>{let l,t=0,a=e.length,n=0,y=0;for(let l=0;l<a;l++)t+=1*e[l];n=t/a;for(let l=0;l<a;l++)y+=(e[l]-n)*(e[l]-n);return l=Math.sqrt(y/(a-1)),isNaN(1*l)&&(l=""),l}},allCusFormulas:[{funName:"ZERO",funDesc:"将单元格值为空或/返回默认值0",funDefaultVal:null,funCallback:(e,l,t)=>{let a;return t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&(a=t.allCellValsEw[0][0]),t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&("/"==t.allCellValsEw[0][0]||null==t.allCellValsEw[0][0]||null!=t.allCellValsEw[0][0]._error&&null!=t.allCellValsEw[0][0]._error||"string"==typeof t.allCellValsEw[0][0]&&0==t.allCellValsEw[0][0].trim().length)?0:a}},{funName:"ONE",funDesc:"将单元格值为空或/返回默认值1",funDefaultVal:null,funCallback:(e,l,t)=>{let a;return t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&(a=t.allCellValsEw[0][0]),t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&("/"==t.allCellValsEw[0][0]||null==t.allCellValsEw[0][0]||"string"==typeof t.allCellValsEw[0][0]&&0==t.allCellValsEw[0][0].trim().length)?1:1==t.allCellVals.length&&0!=t.allCellVals[0]&&1==t.allCellValsEw.length&&0!=t.allCellValsEw[0]?t.allCellVals[0]:a}},{funName:"SLASH",funDesc:"将单元格值为空或0(包括0.0、0.00等)返回默认值/",funDefaultVal:null,funCallback:(e,l,t)=>{let a;return t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&(a=t.allCellValsEw[0][0]),1==t.allCellVals.length&&0==t.allCellVals[0]&&1==t.allCellValsEw.length&&0==t.allCellValsEw[0]?"/":1==t.allCellVals.length&&0!=t.allCellVals[0]&&1==t.allCellValsEw.length&&0!=t.allCellValsEw[0]?t.allCellVals[0]:t.allCellValsEw.length>0&&t.allCellValsEw[0].length>0&&(0==t.allCellValsEw[0][0]||"0.0"==t.allCellValsEw[0][0]||"0.00"==t.allCellValsEw[0][0]||"0.000"==t.allCellValsEw[0][0]||"0.0000"==t.allCellValsEw[0][0]||null==t.allCellValsEw[0][0]||"string"==typeof t.allCellValsEw[0][0]&&0==t.allCellValsEw[0][0].trim().length)?"/":a}},{funName:"YJMAX",funDesc:"返回一组数值中的最大值",funDefaultVal:null,funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e));let n=FormulaUtils.commFun.convertToInt(t.allCellVals);return 0==n.length?"/":Math.max(...n)}},{funName:"YJMIN",funDesc:"返回一组数值中的最小值",funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e));let n=FormulaUtils.commFun.convertToInt(t.allCellVals);return 0==n.length?"/":Math.min(...n)}},{funName:"YJSUM",funDesc:"计算单元格区域中所有数值的和",funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e));let n=FormulaUtils.commFun.convertToInt(t.allCellVals);return 0==n.length?"/":n.reduce((e,l)=>e+l,0)}},{funName:"YJCOUNT",funDesc:"计算区域中包含数字的单元格的个数",funDefaultVal:null,funCallback:(e,l,t)=>{let a=!1;return t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),a?(t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e)),t.allCellVals.length):"/"}},{funName:"YjMid",funDesc:"获取所有选择的单元格中的中间值",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e)),t.allCellVals.length<3)return 0;let a=FormulaUtils.commFun.convertToInt(t.allCellVals);const n=Math.max(...a),y=Math.min(...a);return 1*a[0]+1*a[1]+1*a[2]-1*n-1*y}},{funName:"YJAVERAGE",funDesc:"计算平均值",funDefaultVal:null,funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e));let n=FormulaUtils.commFun.convertToInt(t.allCellVals);return 0==n.length?"/":FormulaUtils.commFun.getAverage(n)}},{funName:"YJRESULTPD",funDesc:"报告上根据技术要求判定",funDefaultVal:null,funParams:[{name:"技术要求",repeatable:!1,optional:!1},{name:"试验结果",repeatable:!1,optional:!1}],funCallback:(spread,sheet,retData)=>{let symbol="/";if(retData.allCellVals.length<2)return symbol;if(null!=retData.allCellVals[0]._error&&null!=retData.allCellVals[0]._error)return symbol;let jsyq=retData.allCellVals[0]+"",syjglist=[];retData.allCellVals.forEach((e,l)=>{l>0&&("/"==e||null==e||null!=e._error&&null!=e._error||syjglist.push(e))});let kk="合格";if(jsyq==symbol||"/"==jsyq||""==jsyq||syjglist.some(e=>"无效"==e)||0==syjglist.length)return symbol;for(let i=0;i<syjglist.length;i++){let k1=syjglist[i];if(-1!=jsyq.indexOf("<")||-1!=jsyq.indexOf(">")||-1!=jsyq.indexOf("<")||-1!=jsyq.indexOf(">"))if(jsyq=jsyq.replace("<","<"),jsyq=jsyq.replace(">",">"),-1!=jsyq.indexOf(",")){let e,l;-1!=jsyq.indexOf(",")&&(e=jsyq.split(",")[0],l=jsyq.split(",")[1],-1==e.indexOf(">")&&-1==e.indexOf("<")||(e=jsyq.split(",")[0].replace(">",""),l=jsyq.split(",")[1].replace("<","")),kk=1*k1>1*e&&k1<1*l?"合格":"不合格")}else kk=eval(k1+jsyq)?"合格":"不合格";else if(-1!=jsyq.indexOf("≥")||-1!=jsyq.indexOf("不小于")||-1!=jsyq.indexOf("≮"))if(-1!=jsyq.indexOf(",")){let e,l;-1!=jsyq.indexOf(",")&&(e=jsyq.split(",")[0],l=jsyq.split(",")[1],-1==e.indexOf("≥")&&-1==e.indexOf("≤")||(e=jsyq.split(",")[0].replace("≥",""),l=jsyq.split(",")[1].replace("≤","")),kk=1*k1>=1*e&&k1<=1*l?"合格":"不合格")}else{let e=1*jsyq.replace("≥","").replace("不小于","").replace("≮","");FormulaUtils.commFun.isNumber(k1)?kk=k1>e||k1==e?"合格":"不合格":-1!=k1.indexOf("大于")?kk=k1.replace("大于","")==jsyq.replace("≮","")?"合格":"不合格":-1!=k1.indexOf("不足")?kk="不合格":-1!=k1.indexOf("+")&&(kk=k1.replace("+","")>=e?"合格":"不合格")}else if(-1!=jsyq.indexOf("≤")||-1!=jsyq.indexOf("不大于")||-1!=jsyq.indexOf("≯")){let e=1*jsyq.replace("≤","").replace("不大于","").replace("≯","");kk=k1<e||k1==e?"合格":"不合格"}else if(-1!=jsyq.indexOf("≠")){let e=1*jsyq.replace("≠","");kk=k1!=e?"合格":"不合格"}else if(-1!=jsyq.indexOf("~")||-1!=jsyq.indexOf(",")||-1!=jsyq.indexOf("~")){let e,l;-1!=jsyq.indexOf("~")?(e=jsyq.split("~")[0],l=jsyq.split("~")[1]):-1!=jsyq.indexOf("~")?-1!=jsyq.split("~")[0].indexOf("+")?(e=jsyq.split("~")[1],l=jsyq.split("~")[0],-1!=k1.toString().indexOf("+")?kk=1*k1<=l?"合格":"不合格":-1!=k1.indexOf("-")&&(kk=1*k1>=e?"合格":"不合格")):(e=jsyq.split("~")[0],l=jsyq.split("~")[1]):-1!=jsyq.indexOf(",")&&(-1!=jsyq.split(",")[0].indexOf("+")?(e=jsyq.split(",")[1],l=jsyq.split(",")[0],-1!=k1.toString().indexOf("+")?kk=1*k1<=l?"合格":"不合格":-1!=k1.toString().indexOf("-")&&(kk=1*k1>=e?"合格":"不合格")):(e=jsyq.split(",")[0],l=jsyq.split(",")[1])),kk=1*k1>=1*e&&k1<=1*l?"合格":"不合格"}else if(-1!=jsyq.indexOf("±")){let e=jsyq.split("±")[0],l=jsyq.split("±")[1],t=1*e-1*l,a=1*e+1*l;kk=k1>=t&&k1<=a?"合格":"不合格"}else FormulaUtils.commFun.isNumber(jsyq)&&(jsyq*=1),kk=k1>=jsyq?"合格":"不合格";if("不合格"==kk)return"不合格"}return kk}},{funName:"YJROUND",funDesc:"计算常规修约",funDefaultVal:null,funParams:[{name:"数值",repeatable:!1,optional:!1},{name:"修约精度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"/";if("string"==typeof t.allCellVals[0]&&(0==t.allCellVals[0].trim().length||"/"==t.allCellVals[0].trim()))return"/";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1]))return t.allCellVals[0];let a=t.allCellVals[1],n=Number(t.allCellVals[0]);return n=Number(n.toFixed(8)),FormulaUtils.commFun.getRound(n,a)}},{funName:"YjGetNum",funDesc:"根据试件尺寸计算面积",funDefaultVal:null,funParams:[{name:"cellContent",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>t.allCellVals.length<1?"/":"string"!=typeof t.allCellVals[0]||0!=t.allCellVals[0].trim().length&&"/"!=t.allCellVals[0].trim()?FormulaUtils.commFun.getNum(t.allCellVals[0]):"/"},{funName:"YjGetS",funDesc:"计算标准差",funDefaultVal:null,funCallback:(e,l,t)=>{let a=!1;if(t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}):!a&&(null!=e&&"/"!=e||"string"==typeof e&&e.trim().length>1)&&(a=!0)}),!a)return"/";if(t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e)),t.allCellVals.length<1)return"/";let n=FormulaUtils.commFun.convertToInt(t.allCellVals),y=0,o=n.length,x=0,r=0;for(let e=0;e<o;e++)y+=1*n[e];x=y/o;for(let e=0;e<o;e++)r+=(n[e]-x)*(n[e]-x);const s=Math.sqrt(r/(o-1));return isNaN(1*s)?"":s}},{funName:"YjGetCv",funDesc:"计算变异系数Cv",funDefaultVal:null,funCallback:(e,l,t)=>{if(t.allCellVals=t.allCellVals.filter(e=>FormulaUtils.commFun.isNumber(e)),t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=0,y=a.length,o=0,x=0;for(let e=0;e<y;e++)n+=1*a[e];o=n/y;for(let e=0;e<y;e++)x+=(a[e]-o)*(a[e]-o);const r=100*Math.sqrt(x/(y-1))/o;return r||""}},{funName:"YjInterpolationMethod",funDesc:"直线内插法(已知y求x)",funDefaultVal:null,funParams:[{name:"cellContentX1",repeatable:!1,optional:!1},{name:"cellContentX2",repeatable:!1,optional:!1},{name:"cellContentY1",repeatable:!1,optional:!1},{name:"cellContentY2",repeatable:!1,optional:!1},{name:"cellContentY",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<5)return"/";const a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3],x=(t.allCellVals[4]-y)*(n-a)/(o-y)+1*a;return FormulaUtils.commFun.isNumber(x)?x:"/"}},{funName:"YjInterpolationMethod_Y",funDesc:"直线内插法(已知x求y)",funDefaultVal:null,funParams:[{name:"cellContentX1",repeatable:!1,optional:!1},{name:"cellContentX2",repeatable:!1,optional:!1},{name:"cellContentY1",repeatable:!1,optional:!1},{name:"cellContentY2",repeatable:!1,optional:!1},{name:"cellContentX",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<5)return"/";const a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3],x=(t.allCellVals[4]-a)*(y-o)/(a-n)+1*y;return FormulaUtils.commFun.isNumber(x)?x:"/"}},{funName:"YJROUNDYX",funDesc:"计算有效数字修约",funDefaultVal:null,funParams:[{name:"数值",repeatable:!1,optional:!1},{name:"修约位数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"/";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1]))return"/";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=Math.floor(a[1]);if(n<=0||0==a[0])return a[0];const y=a[0].toPrecision(n);if(y.indexOf("e")>-1){const e=Number(y);return String(e).length>n?String(e).substring(0,n):e}return y}},{funName:"YJDZ",funDesc:"按照单元格点选顺序,优先提取最后一个有数据的单元格值",funDefaultVal:null,funCallback:(e,l,t)=>{let a=[];return t.allCellVals.forEach(e=>{null!=e&&null!=e&&"/"!=e&&(null==e._error||null==e._error)&&(e+"").trim().length>0&&a.push(e)}),0==a.length?"/":a[a.length-1]}},{funName:"YJTKY",funDesc:"混凝土抗压强度",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1},{name:"超差值,如:0.15",repeatable:!1,optional:!1},{name:"试验名称,如:混凝土抗压",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<5)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1])||!FormulaUtils.commFun.isNumber(t.allCellVals[2]))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[0],t.allCellVals[1],t.allCellVals[2]]),n=Number(a[0]),y=Number(a[1]),o=Number(a[2]),x=Number(t.allCellVals[3]);t.allCellVals[4],x*=1;let r=FormulaUtils.commFun.getAverage(a),s=1*FormulaUtils.commFun.getMax(a),i=1*FormulaUtils.commFun.getMin(a),u=1*n+1*y+1*o-1*s-1*i;return Math.abs(s-u)>u*x&&Math.abs(i-u)>u*x?(r="无效",r):((Math.abs(s-u)>u*x||Math.abs(i-u)>u*x)&&(r=u),r)}},{funName:"YJJSKZ",funDesc:"水泥胶砂抗折",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1},{name:"超差值,如:0.1",repeatable:!1,optional:!1},{name:"试验名称,如:水泥胶砂抗折",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<5)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1])||!FormulaUtils.commFun.isNumber(t.allCellVals[2]))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[0],t.allCellVals[1],t.allCellVals[2]]),n=Number(a[0]),y=Number(a[1]),o=Number(a[2]),x=Number(t.allCellVals[3]);t.allCellVals[4],x*=1;let r=[n,y,o],s=new Array;r.sort(function(e,l){return e-l});let i=FormulaUtils.commFun.getAverage(r);for(let e=0;e<r.length;e++)s[e]=Math.abs(r[e]-i),s.sort(function(e,l){return e-l});if(r.length>2){let e=FormulaUtils.commFun.getMax(s)/i,l=FormulaUtils.commFun.getMin(s)/i,t=s[1]/i;if(e<=x);else{if(Math.abs(e)>x&&Math.abs(l)>x&&Math.abs(t)>x)return i="作废",i;if(r[2]>i+x*i&&r[0]<i-x*i)i=r[1];else{let e=FormulaUtils.commFun.getMin(r),l=FormulaUtils.commFun.getAverage(r);i=e<l-.1*l?FormulaUtils.commFun.getAverage([r[1],r[2]]):FormulaUtils.commFun.getAverage([r[0],r[1]])}}}return i}},{funName:"YJJSKY",funDesc:"水泥胶砂抗压",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1},{name:"数值4",repeatable:!1,optional:!1},{name:"数值5",repeatable:!1,optional:!1},{name:"数值6",repeatable:!1,optional:!1},{name:"超差值,如:0.1",repeatable:!1,optional:!1},{name:"试验名称,如:水泥胶砂抗压",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<8)return"";if(!(FormulaUtils.commFun.isNumber(t.allCellVals[0])&&FormulaUtils.commFun.isNumber(t.allCellVals[1])&&FormulaUtils.commFun.isNumber(t.allCellVals[2])&&FormulaUtils.commFun.isNumber(t.allCellVals[3])&&FormulaUtils.commFun.isNumber(t.allCellVals[4])&&FormulaUtils.commFun.isNumber(t.allCellVals[5])))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[0],t.allCellVals[1],t.allCellVals[2],t.allCellVals[3],t.allCellVals[4],t.allCellVals[5]]),n=Number(a[0]),y=Number(a[1]),o=Number(a[2]),x=Number(a[3]),r=Number(a[4]),s=Number(a[5]),i=Number(t.allCellVals[6]);t.allCellVals[7],i*=1;let u=[n,y,o,x,r,s],m=new Array,c=new Array,h=new Array,p=new Array,f=0;u.sort(function(e,l){return e-l});let d,g=FormulaUtils.commFun.getAverage(u),b=0;m[0]=Math.abs(u[0]-g),m[1]=Math.abs(u[1]-g),m[2]=Math.abs(u[2]-g),m[3]=Math.abs(u[3]-g),m[4]=Math.abs(u[4]-g),m[5]=Math.abs(u[5]-g),p[0]=Math.abs(u[0]-g)/g,p[1]=Math.abs(u[1]-g)/g,p[2]=Math.abs(u[2]-g)/g,p[3]=Math.abs(u[3]-g)/g,p[4]=Math.abs(u[4]-g)/g,p[5]=Math.abs(u[5]-g)/g;for(let e=0;e<6;e++)p[e]>i&&f++;if(u.length>5){let e=FormulaUtils.commFun.getMax(m),l=FormulaUtils.commFun.getMin(m);if(e/g<=i&&l/g<=i)d=g;else if(f>=2)d="作废";else{for(let l=0;l<6;l++)e!=m[l]&&(c[b]=u[l],b++);g=FormulaUtils.commFun.getAverage(c),h[0]=Math.abs(c[0]-g),h[1]=Math.abs(c[1]-g),h[2]=Math.abs(c[2]-g),h[3]=Math.abs(c[3]-g),h[4]=Math.abs(c[4]-g);let l=FormulaUtils.commFun.getMax(h)/g,t=FormulaUtils.commFun.getMin(c),a=FormulaUtils.commFun.getMax(c),n=FormulaUtils.commFun.getAverage(c);if(a>n+n*i||t<n-n*i)return d="作废",d;l<=i&&(d=g)}}return d}},{funName:"YJTN",funDesc:"ta/√n()查表",funDefaultVal:null,funParams:[{name:"保证率",repeatable:!1,optional:!1},{name:"检测点数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[0])||!FormulaUtils.commFun.isNumber(t.allCellVals[1]))return"";let a=100*t.allCellVals[0]+"",n=Number(t.allCellVals[1]),y=new Array,o=0;if(n>100)"99"==a?o=2.3265/Math.sqrt(n):"95"==a?o=1.6449/Math.sqrt(n):"90"==a&&(o=1.2815/Math.sqrt(n));else{"99"==a?y=new Array("2-22.501","3-4.021","4-2.270","5-1.676","6-1.374","7-1.188","8-1.060","9-0.966","10-0.892","11-0.833","12-0.785","13-0.744","14-0.708","15-0.678","16-0.651","17-0.626","18-0.605","19-0.586","20-0.568","21-0.552","22-0.537","23-0.523","24-0.510","25-0.498","26-0.487","27-0.477","28-0.467","29-0.458","30-0.449","40-0.383","50-0.340","60-0.308","70-0.285","80-0.266","90-0.249","100-0.236"):"95"==a?y=new Array("2-4.465","3-1.686","4-1.177","5-0.953","6-0.823","7-0.734","8-0.670","9-0.620","10-0.580","11-0.546","12-0.518","13-0.494","14-0.473","15-0.455","16-0.438","17-0.423","18-0.410","19-0.398","20-0.387","21-0.376","22-0.367","23-0.358","24-0.350","25-0.342","26-0.335","27-0.328","28-0.322","29-0.316","30-0.310","40-0.266","50-0.237","60-0.216","70-0.199","80-0.186","90-0.175","100-0.166"):"90"==a&&(y=new Array("2-2.176","3-1.089","4-0.819","5-0.686","6-0.603","7-0.544","8-0.500","9-0.466","10-0.437","11-0.414","12-0.393","13-0.376","14-0.361","15-0.347","16-0.335","17-0.324","18-0.314","19-0.305","20-0.297","21-0.289","22-0.282","23-0.275","24-0.269","25-0.264","26-0.258","27-0.253","28-0.248","29-0.244","30-0.239","40-0.206","50-0.184","60-0.167","70-0.155","80-0.145","90-0.136","100-0.129"));for(let e=0;e<y.length;e++){let l=y[e].split("-");l[0]==n&&(o=l[1])}}return o}},{funName:"YJSMD",funDesc:"水密度查表",funDefaultVal:null,funParams:[{name:"水的温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"/";if("string"==typeof t.allCellVals[0]&&(0==t.allCellVals[0].trim().length||"/"==t.allCellVals[0].trim()))return"/";let a,n=t.allCellVals[0]+"",y=new Array("15-0.99913","16-0.99897","17-0.99880","18-0.99862","19-0.99843","20-0.99822","21-0.99802","22-0.99779","23-0.99756","24-0.99733","25-0.99702");for(let e=0;e<y.length;e++){let l=y[e].split("-");n==l[0]&&(a=l[1])}if(n.length>2){let e=n;e=e.substring(0,e.indexOf("."));let l=0;for(let t=0;t<y.length;t++){e==y[t].split("-")[0]&&(l=t)}if(l==y.length-1){let e=y[l].split("-"),t=y[l-1].split("-");a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],n),-5)}else{let e=y[l].split("-"),t=y[l+1].split("-");a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],n),-5)}}return a}},{funName:"YJSYMD",funDesc:"水银密度查表",funDefaultVal:null,funParams:[{name:"试验温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=t.allCellVals[0]+"";return a="8"==n||"8.0"==n?"13.58":"10"==n||"10.0"==n||"12"==n||"12.0"==n?"13.57":"14"==n||"14.0"==n||"16"==n||"16.0"==n?"13.56":"18"==n||"18.0"==n||"20"==n||"20.0"==n?"13.55":"22"==n||"22.0"==n||"24"==n||"24.0"==n?"13.54":"26"==n||"26.0"==n||"28"==n||"28.0"==n?"13.53":"30"==n||"30.0"==n||"32"==n||"32.0"==n?"13.52":"34"==n||"34.0"==n?"13.51":FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y("8","30","13.58","13.52",n),-2),a}},{funName:"YJKQND",funDesc:"空气黏度查表",funDefaultVal:null,funParams:[{name:"试验温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1||"/"==t.allCellVals[0])return"/";let a,n=new Array("8-17.49","9-17.54","10-17.59","11-17.64","12-17.68","13-17.73","14-17.78","15-17.83","16-17.88","17-17.93","18-17.98","19-18.03","20-18.08","21-18.13","22-18.18","23-18.23","24-18.28","25-18.32","26-18.37","27-18.42","28-18.47","29-18.52","30-18.57","31-18.62","32-18.67","33-18.72","34-18.76"),y=t.allCellVals[0]+"";for(let e=0;e<n.length;e++){let l=n[e].split("-");y==l[0]&&(a=l[1])}if(y.length>2){let e=y.substring(0,y.indexOf(".")),l=0;for(let t=0;t<n.length;t++){e==n[t].split("-")[0]&&(l=t)}if(l==n.length-1){let e=n[l].split("-"),t=n[l-1].split("-");a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],y),-2)}else{let e=n[l].split("-"),t=n[l+1].split("-");a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],y),-2)}}return a}},{funName:"YJSBBZCA",funDesc:"3倍标准差方法剔除特异值:平均值(YJSBBZCA)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=new Array;for(let e=0;e<a.length;e++)isNaN(a[e])||"/"==a[e]||(n[e]=a[e]);let y=FormulaUtils.commFun.getAverage(n),o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(n),-2);{let e=1*y+3*o*1,l=1*y-3*o*1,t=new Array;for(let a=0;a<n.length;a++)n[a]>l&&n[a]<e&&t.push(n[a]);y=FormulaUtils.commFun.getAverage(t)}return y}},{funName:"YJSBBZCS",funDesc:"3倍标准差方法剔除特异值:标准差(YJSBBZCS)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=new Array;for(let e=0;e<a.length;e++)isNaN(a[e])||"/"==a[e]||(n[e]=a[e]);let y=FormulaUtils.commFun.getAverage(n),o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(n),-2);{let e=1*y+3*o*1,l=1*y-3*o*1,t=new Array;for(let a=0;a<n.length;a++)n[a]>l&&n[a]<e&&t.push(n[a]);y=FormulaUtils.commFun.getAverage(t),o=FormulaUtils.commFun.GetS(t)}return o}},{funName:"YJTWL",funDesc:"计算混凝土抗弯拉强度",funDefaultVal:null,funParams:[{name:"断裂面1",repeatable:!1,optional:!1},{name:"断裂面2",repeatable:!1,optional:!1},{name:"断裂面3",repeatable:!1,optional:!1},{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<6)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[3])||!FormulaUtils.commFun.isNumber(t.allCellVals[4])||!FormulaUtils.commFun.isNumber(t.allCellVals[5]))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[3],t.allCellVals[4],t.allCellVals[5]]),n=t.allCellVals[0],y=t.allCellVals[1],o=t.allCellVals[2],x=a[0],r=a[1],s=a[2],i="/",u=a;if(u.sort(function(e,l){return e-l}),"加荷点外"==n||"加荷点外"==y||"加荷点外"==o){if("加荷点外"==n&&"加荷点内"==y&&"加荷点内"==o){let e=FormulaUtils.commFun.getMin([r,s]);i=Math.abs(r-s)<=.15*e?FormulaUtils.commFun.getAverage([r,s]):"无效"}if("加荷点内"==n&&"加荷点外"==y&&"加荷点内"==o){let e=FormulaUtils.commFun.getMin([x,s]);i=Math.abs(x-s)<=.15*e?FormulaUtils.commFun.getAverage([x,s]):"无效"}if("加荷点内"==n&&"加荷点内"==y&&"加荷点外"==o){let e=FormulaUtils.commFun.getMin([r,x]);i=Math.abs(r-x)<=.15*e?FormulaUtils.commFun.getAverage([r,x]):"无效"}("加荷点外"==n&&"加荷点外"==y&&"加荷点内"==o||"加荷点内"==n&&"加荷点外"==y&&"加荷点外"==o||"加荷点外"==n&&"加荷点内"==y&&"加荷点外"==o)&&(i="无效")}else if("加荷点内"==n||"加荷点内"==y||"加荷点内"==o){let e=FormulaUtils.commFun.getMax([x,r,s]),l=FormulaUtils.commFun.getMin([x,r,s]);i=Math.abs(e-u[1])>.15*u[1]&&Math.abs(l-u[1])>.15*u[1]?"无效":Math.abs(e-u[1])>.15*u[1]||Math.abs(l-u[1])>.15*u[1]?u[1]:FormulaUtils.commFun.getAverage([x,r,s])}return i}},{funName:"YJHJGJPD",funDesc:"焊接钢筋结构判定(YJHJGJPD)",funDefaultVal:null,funParams:[{name:"牌号",repeatable:!1,optional:!1},{name:"接头极限强度1",repeatable:!1,optional:!1},{name:"接头极限强度2",repeatable:!1,optional:!1},{name:"接头极限强度3",repeatable:!1,optional:!1},{name:"断裂形状1",repeatable:!1,optional:!1},{name:"断裂形状2",repeatable:!1,optional:!1},{name:"断裂形状3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<7)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[1])||!FormulaUtils.commFun.isNumber(t.allCellVals[2])||!FormulaUtils.commFun.isNumber(t.allCellVals[3]))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[1],t.allCellVals[2],t.allCellVals[3]]),n=t.allCellVals[0],y=a[0],o=a[1],x=a[2],r=t.allCellVals[4],s=t.allCellVals[5],i=t.allCellVals[6],u="",m="";m="HRB335"==n||"HRB335E"==n?"≥455":"R235"==n?"≥370":"Q235"==n?"≥410":"HRB400"==n||"HRB400E"==n?"≥540":"HPB300"==n?"≥420":"HRB500"==n||"HRBF500"==n||"HRB500E"==n||"HRBF500E"==n?"≥630":"HRB600"==n?"≥730":"/",m=1*m.replace("≥","");let c=1*y,h=1*o,p=1*x;return u="/"!=r&&"/"!=s&&"/"!=i?c>=m&&h>=m&&p>=m?"断于钢筋母材,呈延性断裂"==r&&"断于钢筋母材,呈延性断裂"==s&&"断于钢筋母材,呈脆性断裂"!=i||"断于钢筋母材,呈延性断裂"==r&&"断于钢筋母材,呈延性断裂"==i&&"断于钢筋母材,呈脆性断裂"!=s||"断于钢筋母材,呈延性断裂"==s&&"断于钢筋母材,呈延性断裂"==i&&"断于钢筋母材,呈脆性断裂"!=r?"合格":("断于焊缝,呈脆性断裂"!=r&&"断于热影响区,呈脆性断裂"!=r||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈脆性断裂"==i||"断于焊缝,呈延性断裂"==i||"断于热影响区,呈延性断裂"==i)&&("断于焊缝,呈脆性断裂"!=r&&"断于热影响区,呈脆性断裂"!=r||"断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i||"断于钢筋母材,呈脆性断裂"==s||"断于焊缝,呈延性断裂"==s||"断于热影响区,呈延性断裂"==s)&&("断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈脆性断裂"==r||"断于焊缝,呈延性断裂"==r||"断于热影响区,呈延性断裂"==r)?"无效":"合格":c>=m&&h>=m&&p<m?"断于热影响区,呈延性断裂"==i?"无效":"断于钢筋母材,呈延性断裂"==r&&"断于钢筋母材,呈延性断裂"==s&&"断于钢筋母材,呈延性断裂"!=i?"复检":("断于焊缝,呈脆性断裂"!=r&&"断于热影响区,呈脆性断裂"!=r||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈延性断裂"!=i)&&("断于焊缝,呈脆性断裂"!=r&&"断于热影响区,呈脆性断裂"!=r||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i)?"无效":"不合格":c>=m&&p>=m&&h<m?"断于热影响区,呈延性断裂"==s?"无效":"断于钢筋母材,呈延性断裂"==r&&"断于钢筋母材,呈延性断裂"==i&&"断于钢筋母材,呈延性断裂"!=s?"复检":("断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈延性断裂"!=s)&&("断于焊缝,呈脆性断裂"!=r&&"断于热影响区,呈脆性断裂"!=r||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i)?"无效":"不合格":h>=m&&p>=m&&c<m?"断于热影响区,呈延性断裂"==r?"无效":"断于钢筋母材,呈延性断裂"==s&&"断于钢筋母材,呈延性断裂"==i&&"断于钢筋母材,呈延性断裂"!=r?"复检":("断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于钢筋母材,呈延性断裂"!=r)&&("断于焊缝,呈脆性断裂"!=r&&"断于热影响区,呈脆性断裂"!=r||"断于焊缝,呈脆性断裂"!=s&&"断于热影响区,呈脆性断裂"!=s||"断于焊缝,呈脆性断裂"!=i&&"断于热影响区,呈脆性断裂"!=i)?"无效":"不合格":c>=m&&h<m&&p<m||h>=m&&c<m&&p<m||p>=m&&h<m&&c<m||c<m&&h<m&&p<m?"不合格":"无效":"/",u}},{funName:"YJYSXHP",funDesc:"液塑限:HP值",funDefaultVal:null,funParams:[{name:"锥体质量",repeatable:!1,optional:!1},{name:"材料类型",repeatable:!1,optional:!1},{name:"锥入深度平均值1",repeatable:!1,optional:!1},{name:"锥入深度平均值2",repeatable:!1,optional:!1},{name:"锥入深度平均值3",repeatable:!1,optional:!1},{name:"含水率测定平均值1",repeatable:!1,optional:!1},{name:"含水率测定平均值2",repeatable:!1,optional:!1},{name:"含水率测定平均值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<8)return"";if(!(FormulaUtils.commFun.isNumber(t.allCellVals[2])&&FormulaUtils.commFun.isNumber(t.allCellVals[3])&&FormulaUtils.commFun.isNumber(t.allCellVals[4])&&FormulaUtils.commFun.isNumber(t.allCellVals[5])&&FormulaUtils.commFun.isNumber(t.allCellVals[6])&&FormulaUtils.commFun.isNumber(t.allCellVals[7])))return"";let a,n,y=FormulaUtils.commFun.convertToInt([t.allCellVals[2],t.allCellVals[3],t.allCellVals[4],t.allCellVals[5],t.allCellVals[6],t.allCellVals[7]]),o=t.allCellVals[0],x=t.allCellVals[1],r=y[0],s=y[1],i=y[2],u=y[3],m=y[4],c=y[5],h="/",p=20;"76"!=o&&76!=o||(p=17);let f,d,g=new Array,b=new Array,C=[r,s,i],S=[u,m,c];for(let e=0;e<C.length;e++)a=1*S[e],n=1*C[e],""!=a&&"/"!=a&&""!=n&&"/"!=n&&(g[e]=a,b[e]=n);function w(e,l,t,a,n){let y;return y=e-(l-n)*(e-t)/(l-a),y}function F(e,l){let t;return e*=1,t=0==l?29.6-1.22*e+.017*e*e-744e-7*e*e*e:e/(.524*e-7.606),t}if(g.sort(function(e,l){return e-l}),b.sort(function(e,l){return e-l}),"细粒土"==x)if(Math.abs((b[2]-b[1])/(g[2]-g[1])-(b[2]-b[0])/(g[2]-g[0]))<=1e-5)f=w(g[2],b[2],g[1],b[1],p),f=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(f,-1),d=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(F(f,1),-1);else{a=g[2],n=F(a,1);let e=(1*w(g[2],b[2],g[0],b[0],n)+1*w(g[2],b[2],g[1],b[1],n))/2;f=w(g[2],b[2],e,n,p),f=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(f,-1),d=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(F(f,1),-1)}else if(Math.abs((b[2]-b[1])/(g[2]-g[1])-(b[2]-b[0])/(g[2]-g[0]))<=1e-5)f=w(g[2],b[2],g[1],b[1],p),f=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(f,-1),d=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(F(f,0),-1);else{a=g[2],n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(F(a,0),-1);let e=(w(g[2],b[2],g[0],b[0],n)+w(g[2],b[2],g[1],b[1],n))/2;f=w(g[2],b[2],e,n,p),f=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(f,-1),d=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(F(f,0),-1)}return h=d,isNaN(h)&&(h="/"),h}},{funName:"YJYSXWP",funDesc:"液塑限:WP值",funDefaultVal:null,funParams:[{name:"锥体质量",repeatable:!1,optional:!1},{name:"材料类型",repeatable:!1,optional:!1},{name:"锥入深度平均值1",repeatable:!1,optional:!1},{name:"锥入深度平均值2",repeatable:!1,optional:!1},{name:"锥入深度平均值3",repeatable:!1,optional:!1},{name:"含水率测定平均值1",repeatable:!1,optional:!1},{name:"含水率测定平均值2",repeatable:!1,optional:!1},{name:"含水率测定平均值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<8)return"";if(!(FormulaUtils.commFun.isNumber(t.allCellVals[2])&&FormulaUtils.commFun.isNumber(t.allCellVals[3])&&FormulaUtils.commFun.isNumber(t.allCellVals[4])&&FormulaUtils.commFun.isNumber(t.allCellVals[5])&&FormulaUtils.commFun.isNumber(t.allCellVals[6])&&FormulaUtils.commFun.isNumber(t.allCellVals[7])))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[2],t.allCellVals[3],t.allCellVals[4],t.allCellVals[5],t.allCellVals[6],t.allCellVals[7]]),n=t.allCellVals[0],y=t.allCellVals[1],o=a[0],x=a[1],r=a[2],s=a[3],i=a[4],u=a[5];function m(e){return Math.LOG10E*Math.log(e)}let c,h,p,f="/",d=20;"76"!=n&&76!=n||(d=17);let g,b,C=new Array,S=new Array,w=[o,x,r],F=[s,i,u];for(let e=0;e<w.length;e++)c=1*F[e],h=1*w[e],""!=c&&"/"!=c&&""!=h&&"/"!=h&&(C[e]=c,S[e]=h);function V(e,l,t,a,n){let y;return y=e-(l-n)*(e-t)/(l-a),y}function E(e,l){let t;return e*=1,t=0==l?29.6-1.22*e+.017*e*e-744e-7*e*e*e:e/(.524*e-7.606),t}if(C.sort(function(e,l){return e-l}),S.sort(function(e,l){return e-l}),"细粒土"==y)if(Math.abs((S[2]-S[1])/(C[2]-C[1])-(S[2]-S[0])/(C[2]-C[0]))<=1e-5)g=V(C[2],S[2],C[1],S[1],d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,1),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1);else{c=C[2],h=E(c,1);let e=(1*V(C[2],S[2],C[0],S[0],h)+1*V(C[2],S[2],C[1],S[1],h))/2;g=V(C[2],S[2],e,h,d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,1),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1)}else if(Math.abs((S[2]-S[1])/(C[2]-C[1])-(S[2]-S[0])/(C[2]-C[0]))<=1e-5)g=V(C[2],S[2],C[1],S[1],20),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,0),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1);else{c=C[2],h=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(c,0),-1);let e=(V(C[2],S[2],C[0],S[0],h)+V(C[2],S[2],C[1],S[1],h))/2;g=V(C[2],S[2],e,h,20),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,0),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1)}return f=p,isNaN(f)&&(f="/"),f}},{funName:"YSXWL",funDesc:"液塑限:WL值",funDefaultVal:null,funParams:[{name:"锥体质量",repeatable:!1,optional:!1},{name:"材料类型",repeatable:!1,optional:!1},{name:"锥入深度平均值1",repeatable:!1,optional:!1},{name:"锥入深度平均值2",repeatable:!1,optional:!1},{name:"锥入深度平均值3",repeatable:!1,optional:!1},{name:"含水率测定平均值1",repeatable:!1,optional:!1},{name:"含水率测定平均值2",repeatable:!1,optional:!1},{name:"含水率测定平均值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<8)return"";if(!(FormulaUtils.commFun.isNumber(t.allCellVals[2])&&FormulaUtils.commFun.isNumber(t.allCellVals[3])&&FormulaUtils.commFun.isNumber(t.allCellVals[4])&&FormulaUtils.commFun.isNumber(t.allCellVals[5])&&FormulaUtils.commFun.isNumber(t.allCellVals[6])&&FormulaUtils.commFun.isNumber(t.allCellVals[7])))return"";let a=FormulaUtils.commFun.convertToInt([t.allCellVals[2],t.allCellVals[3],t.allCellVals[4],t.allCellVals[5],t.allCellVals[6],t.allCellVals[7]]),n=t.allCellVals[0],y=t.allCellVals[1],o=a[0],x=a[1],r=a[2],s=a[3],i=a[4],u=a[5];function m(e){return Math.LOG10E*Math.log(e)}let c,h,p,f="/",d=20;"76"!=n&&76!=n||(d=17);let g,b,C=new Array,S=new Array,w=[o,x,r],F=[s,i,u];for(let e=0;e<w.length;e++)c=1*F[e],h=1*w[e],""!=c&&"/"!=c&&""!=h&&"/"!=h&&(C[e]=c,S[e]=h);function V(e,l,t,a,n){let y;return y=e-(l-n)*(e-t)/(l-a),y}function E(e,l){let t;return e*=1,t=0==l?29.6-1.22*e+.017*e*e-744e-7*e*e*e:e/(.524*e-7.606),t}if(C.sort(function(e,l){return e-l}),S.sort(function(e,l){return e-l}),"细粒土"==y)if(Math.abs((S[2]-S[1])/(C[2]-C[1])-(S[2]-S[0])/(C[2]-C[0]))<=1e-5)g=V(C[2],S[2],C[1],S[1],d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1),b=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(g,1),-1),p=.5*(Math.pow(10,(m(C[2])-m(C[0]))*(m(b)-m(S[0]))/(m(S[2])-m(S[0]))+m(C[0]))+Math.pow(10,(m(C[2])-m(C[1]))*(m(b)-m(S[1]))/(m(S[2])-m(S[1]))+m(C[1]))),p=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(p,-1);else{c=C[2],h=E(c,1);let e=(1*V(C[2],S[2],C[0],S[0],h)+1*V(C[2],S[2],C[1],S[1],h))/2;g=V(C[2],S[2],e,h,d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1)}else if(Math.abs((S[2]-S[1])/(C[2]-C[1])-(S[2]-S[0])/(C[2]-C[0]))<=1e-5)g=V(C[2],S[2],C[1],S[1],d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1);else{c=C[2],h=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(E(c,0),-1);let e=(V(C[2],S[2],C[0],S[0],h)+V(C[2],S[2],C[1],S[1],h))/2;g=V(C[2],S[2],e,h,d),g=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(g,-1)}return f=g,isNaN(f)&&(f="/"),f}},{funName:"YJLBBZCA",funDesc:"2倍标准差方法剔除特异值:平均值(YJLBBZCA)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=new Array;for(let e=0;e<a.length;e++)isNaN(a[e])||"/"==a[e]||(n[e]=a[e]);let y=FormulaUtils.commFun.getAverage(n),o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(n),-2);{let e=1*y+2*o*1,l=1*y-2*o*1,t=new Array;for(let a=0;a<n.length;a++)n[a]>l&&n[a]<e&&t.push(n[a]);y=FormulaUtils.commFun.getAverage(t)}return y}},{funName:"YJLBBZCS",funDesc:"2倍标准差方法剔除特异值:标准差(YJLBBZCS)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellVals),n=new Array;for(let e=0;e<a.length;e++)isNaN(a[e])||"/"==a[e]||(n[e]=a[e]);let y=FormulaUtils.commFun.getAverage(n),o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(n),-2);{let e=1*y+2*o*1,l=1*y-2*o*1,t=new Array;for(let a=0;a<n.length;a++)n[a]>l&&n[a]<e&&t.push(n[a]);y=FormulaUtils.commFun.getAverage(t),o=FormulaUtils.commFun.GetS(t)}return o}},{funName:"YJKBBZCA",funDesc:"k倍标准差方法剔除特异值:平均值(YJKBBZCA)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=FormulaUtils.commFun.convertToInt(t.allCellVals);switch(n.length){case 3:a=1.15;break;case 4:a=1.46;break;case 5:a=1.67;break;case 6:a=1.82;break;case 7:a=1.94;break;case 8:a=2.03;break;case 9:a=2.11;break;case 10:a=2.18;break;case 11:a=2.23;break;case 12:a=2.28;break;case 13:a=2.33;break;case 14:a=2.37}let y=new Array;for(let e=0;e<n.length;e++)isNaN(n[e])||"/"==n[e]||""==n[e]||(y[e]=n[e]);let o=FormulaUtils.commFun.getAverage(y);if(0===y.length||y.every(e=>e===y[0]))return o;let x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(y),-2);if(""==a||"/"==a)y.length,o*=1,x*=1;else{let e=1*o+1*a*x*1,l=1*o-1*a*x*1,t=new Array;for(let a=0;a<y.length;a++)y[a]>l&&y[a]<e&&t.push(y[a]);o=FormulaUtils.commFun.getAverage(t)}return o}},{funName:"YJKBBZCS",funDesc:"k倍标准差方法剔除特异值:标准差(YJKBBZCS)",funDefaultVal:null,funParams:[{name:"数值范围",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=FormulaUtils.commFun.convertToInt(t.allCellVals);switch(n.length){case 3:a=1.15;break;case 4:a=1.46;break;case 5:a=1.67;break;case 6:a=1.82;break;case 7:a=1.94;break;case 8:a=2.03;break;case 9:a=2.11;break;case 10:a=2.18;break;case 11:a=2.23;break;case 12:a=2.28;break;case 13:a=2.33;break;case 14:a=2.37}let y=new Array;for(let e=0;e<n.length;e++)isNaN(n[e])||"/"==n[e]||(y[e]=n[e]);let o=FormulaUtils.commFun.getAverage(y),x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(y),-2);if(""==a||"/"==a)y.length,o*=1,x*=1;else{let e=1*o+1*a*x*1,l=1*o-1*a*x*1,t=new Array;for(let a=0;a<y.length;a++)y[a]>l&&y[a]<e&&t.push(y[a]);o=FormulaUtils.commFun.getAverage(t),x=FormulaUtils.commFun.GetS(t)}return x}},{funName:"YJKBBZCC",funDesc:"被剔除的特异值点数:YJKBBZCC",funDefaultVal:null,funParams:[{name:"弯沉左侧和右侧的数值范围",repeatable:!1,optional:!1},{name:"舍弃值的倍数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";let a=[];for(let e=0;e<t.allCellVals.length-1;e++)a.push(t.allCellVals[e]);let n,y=FormulaUtils.commFun.convertToInt(a),o=t.allCellVals[t.allCellVals.length-1],x=new Array;for(let e=0;e<y.length;e++)isNaN(y[e])||"/"==y[e]||(x[e]=y[e]);let r=FormulaUtils.commFun.getAverage(x),s=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(x),-2);if(""==o||"/"==o)n=x.length;else{let e=1*r+1*o*s*1,l=1*r-1*o*s*1,t=new Array;for(let a=0;a<x.length;a++)x[a]>l&&x[a]<e&&t.push(x[a]);n=t.length}return n}},{funName:"YJHTJD",funDesc:"回弹角度修正查表",funDefaultVal:null,funParams:[{name:"测试方向",repeatable:!1,optional:!1},{name:"角度",repeatable:!1,optional:!1},{name:"实测平均回弹值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[2]))return"";let a,n,y=t.allCellVals[0],o=t.allCellVals[1],x=t.allCellVals[2];function r(e,l){let t=0;return l>=50?90==e?t=-3.5:60==e?t=-3:45==e?t=-2.5:30==e?t=-1.5:-30==e?t=1:-45==e?t=1.5:-60==e?t=2:-90==e&&(t=2.5):l<=20&&(90==e?t=-6:60==e?t=-5:45==e?t=-4:30==e?t=-3:-30==e?t=2.5:-45==e?t=3:-60==e?t=3.5:-90==e&&(t=4)),t}if("非水平方向"==y){let e=new Array("90","60","45","30","-30","-45","-60","-90");for(let l=0;l<e.length;l++)if(o==e[l]){a=l;break}let l=[{x:20,y:-6},{x:21,y:-5.9},{x:22,y:-5.8},{x:23,y:-5.7},{x:24,y:-5.6},{x:25,y:-5.5},{x:26,y:-5.4},{x:27,y:-5.3},{x:28,y:-5.2},{x:29,y:-5.1},{x:30,y:-5},{x:31,y:-4.9},{x:32,y:-4.8},{x:33,y:-4.7},{x:34,y:-4.6},{x:35,y:-4.5},{x:36,y:-4.4},{x:37,y:-4.3},{x:38,y:-4.2},{x:39,y:-4.1},{x:40,y:-4},{x:41,y:-4},{x:42,y:-3.9},{x:43,y:-3.9},{x:44,y:-3.8},{x:45,y:-3.8},{x:46,y:-3.7},{x:47,y:-3.7},{x:48,y:-3.6},{x:49,y:-3.6},{x:50,y:-3.5}],t=[{x:20,y:-5},{x:21,y:-4.9},{x:22,y:-4.8},{x:23,y:-4.7},{x:24,y:-4.6},{x:25,y:-4.5},{x:26,y:-4.4},{x:27,y:-4.3},{x:28,y:-4.2},{x:29,y:-4.1},{x:30,y:-4},{x:31,y:-4},{x:32,y:-3.9},{x:33,y:-3.9},{x:34,y:-3.8},{x:35,y:-3.8},{x:36,y:-3.7},{x:37,y:-3.7},{x:38,y:-3.6},{x:39,y:-3.6},{x:40,y:-3.5},{x:41,y:-3.5},{x:42,y:-3.4},{x:43,y:-3.4},{x:44,y:-3.3},{x:45,y:-3.3},{x:46,y:-3.2},{x:47,y:-3.2},{x:48,y:-3.1},{x:49,y:-3.1},{x:50,y:-3}],y=[{x:20,y:-4},{x:21,y:-4},{x:22,y:-3.9},{x:23,y:-3.9},{x:24,y:-3.8},{x:25,y:-3.8},{x:26,y:-3.7},{x:27,y:-3.7},{x:28,y:-3.6},{x:29,y:-3.6},{x:30,y:-3.5},{x:31,y:-3.5},{x:32,y:-3.4},{x:33,y:-3.4},{x:34,y:-3.3},{x:35,y:-3.3},{x:36,y:-3.2},{x:37,y:-3.2},{x:38,y:-3.1},{x:39,y:-3.1},{x:40,y:-3},{x:41,y:-3},{x:42,y:-2.9},{x:43,y:-2.9},{x:44,y:-2.8},{x:45,y:-2.8},{x:46,y:-2.7},{x:47,y:-2.7},{x:48,y:-2.6},{x:49,y:-2.6},{x:50,y:-2.5}],s=[{x:20,y:-3},{x:21,y:-3},{x:22,y:-2.9},{x:23,y:-2.9},{x:24,y:-2.8},{x:25,y:-2.8},{x:26,y:-2.7},{x:27,y:-2.7},{x:28,y:-2.6},{x:29,y:-2.6},{x:30,y:-2.5},{x:31,y:-2.5},{x:32,y:-2.4},{x:33,y:-2.4},{x:34,y:-2.3},{x:35,y:-2.3},{x:36,y:-2.2},{x:37,y:-2.2},{x:38,y:-2.1},{x:39,y:-2.1},{x:40,y:-2},{x:41,y:-2},{x:42,y:-1.9},{x:43,y:-1.9},{x:44,y:-1.8},{x:45,y:-1.8},{x:46,y:-1.7},{x:47,y:-1.7},{x:48,y:-1.6},{x:49,y:-1.6},{x:50,y:-1.5}],i=[{x:20,y:2.5},{x:21,y:2.5},{x:22,y:2.4},{x:23,y:2.4},{x:24,y:2.3},{x:25,y:2.3},{x:26,y:2.2},{x:27,y:2.2},{x:28,y:2.1},{x:29,y:2.1},{x:30,y:2},{x:31,y:2},{x:32,y:1.9},{x:33,y:1.9},{x:34,y:1.8},{x:35,y:1.8},{x:36,y:1.7},{x:37,y:1.7},{x:38,y:1.6},{x:39,y:1.6},{x:40,y:1.5},{x:41,y:1.5},{x:42,y:1.4},{x:43,y:1.4},{x:44,y:1.3},{x:45,y:1.3},{x:46,y:1.2},{x:47,y:1.2},{x:48,y:1.1},{x:49,y:1.1},{x:50,y:1}],u=[{x:20,y:3},{x:21,y:3},{x:22,y:2.9},{x:23,y:2.9},{x:24,y:2.8},{x:25,y:2.8},{x:26,y:2.7},{x:27,y:2.7},{x:28,y:2.6},{x:29,y:2.6},{x:30,y:2.5},{x:31,y:2.5},{x:32,y:2.4},{x:33,y:2.4},{x:34,y:2.3},{x:35,y:2.3},{x:36,y:2.2},{x:37,y:2.2},{x:38,y:2.1},{x:39,y:2.1},{x:40,y:2},{x:41,y:2},{x:42,y:1.9},{x:43,y:1.9},{x:44,y:1.8},{x:45,y:1.8},{x:46,y:1.7},{x:47,y:1.7},{x:48,y:1.6},{x:49,y:1.6},{x:50,y:1.5}],m=[{x:20,y:3.5},{x:21,y:3.5},{x:22,y:3.4},{x:23,y:3.4},{x:24,y:3.3},{x:25,y:3.3},{x:26,y:3.2},{x:27,y:3.2},{x:28,y:3.1},{x:29,y:3.1},{x:30,y:3},{x:31,y:3},{x:32,y:2.9},{x:33,y:2.9},{x:34,y:2.8},{x:35,y:2.8},{x:36,y:2.7},{x:37,y:2.7},{x:38,y:2.6},{x:39,y:2.6},{x:40,y:2.5},{x:41,y:2.5},{x:42,y:2.4},{x:43,y:2.4},{x:44,y:2.3},{x:45,y:2.3},{x:46,y:2.2},{x:47,y:2.2},{x:48,y:2.1},{x:49,y:2.1},{x:50,y:2}],c=[{x:20,y:4},{x:21,y:4},{x:22,y:3.9},{x:23,y:3.9},{x:24,y:3.8},{x:25,y:3.8},{x:26,y:3.7},{x:27,y:3.7},{x:28,y:3.6},{x:29,y:3.6},{x:30,y:3.5},{x:31,y:3.5},{x:32,y:3.4},{x:33,y:3.4},{x:34,y:3.3},{x:35,y:3.3},{x:36,y:3.2},{x:37,y:3.2},{x:38,y:3.1},{x:39,y:3.1},{x:40,y:3},{x:41,y:3},{x:42,y:2.9},{x:43,y:2.9},{x:44,y:2.8},{x:45,y:2.8},{x:46,y:2.7},{x:47,y:2.7},{x:48,y:2.6},{x:49,y:2.6},{x:50,y:2.5}],h=new Array;if(""==a&&0!=a||"0"==o){let e,l,t=40,a=50;1*o>0?(e=FormulaUtils.commFun.InterpolationMethod_y(0,30,0,-2,o),l=FormulaUtils.commFun.InterpolationMethod_y(0,30,0,-1.5,o),n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(t,a,e,l,x),-1)):n="0.0",(x>=50||x<=20)&&(n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(r(o,x),-1))}else{"90"==o?h=l:"60"==o?h=t:"45"==o?h=y:"30"==o?h=s:"-30"==o?h=i:"-45"==o?h=u:"-60"==o?h=m:"-90"==o&&(h=c);let e=-1;for(let l=0;l<h.length;l++){if(1*h[0].x>x){e=1;break}if(1*h[l].x>x){e=l;break}if(1*h[h.length-1].x<x){e=h.length-1;break}if(x==h[l].x){n=h[l].y;break}}if(-1!=e){let l=h[e-1].x,t=h[e-1].y,a=h[e].x,y=h[e].y;n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(l,a,t,y,x),-1)}(x>=50||x<=20)&&(n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(r(o,x),-1))}}else n="/";return n}},{funName:"YJHTJZM",funDesc:"回弹浇筑面修正查表",funDefaultVal:null,funParams:[{name:"浇筑面",repeatable:!1,optional:!1},{name:"实测平均回弹值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";if(!FormulaUtils.commFun.isNumber(t.allCellVals[1]))return"";let a,n=t.allCellVals[0],y=Number(t.allCellVals[1]);if("表面"==n){let e=new Array;e=["20-2.5","21-2.4","22-2.3","23-2.2","24-2.1","25-2.0","26-1.9","27-1.8","28-1.7","29-1.6","30-1.5","31-1.4","32-1.3","33-1.2","34-1.1","35-1.0","36-0.9","37-0.8","38-0.7","39-0.6","40-0.5","41-0.4","42-0.3","43-0.2","44-0.1","45-0","46-0","47-0","48-0","49-0","50-0"];for(let l=1;l<11;l++)if(1*y>50)a="0";else if(1*y<20)a="2.5";else{y=Math.round(y);for(let l=0;l<e.length;l++){let t=e[l].split("-");y==t[0]&&(a=t[1])}}}else if("底面"==n){let e=new Array;e=["20-3.0","21-2.9","22-2.8","23-2.7","24-2.6","25-2.5","26-2.4","27-2.3","28-2.2","29-2.1","30-2.0","31-1.9","32-1.8","33-1.7","34-1.6","35-1.5","36-1.4","37-1.3","38-1.2","39-1.1","40-1.0","41-0.9","42-0.8","43-0.7","44-0.6","45-0.5","46-0.4","47-0.3","48-0.2","49-0.1","50-0"];for(let l=1;l<11;l++)if(1*y>50)a="0";else if(1*y<20)a="3.0";else{y=Math.round(y);for(let l=0;l<e.length;l++){let t=e[l].split("-");y==t[0]&&(a=-1*t[1])}}}return a}},{funName:"YJTKLZC",funDesc:"土的d60、d30、d10 计算)",funDefaultVal:null,funParams:[{name:"粗筛孔径60",repeatable:!1,optional:!1},{name:"粗筛孔径40",repeatable:!1,optional:!1},{name:"粗筛孔径20",repeatable:!1,optional:!1},{name:"粗筛孔径10",repeatable:!1,optional:!1},{name:"粗筛孔径5",repeatable:!1,optional:!1},{name:"粗筛孔径2",repeatable:!1,optional:!1},{name:"细筛孔径2",repeatable:!1,optional:!1},{name:"细筛孔径1",repeatable:!1,optional:!1},{name:"细筛孔径0.5",repeatable:!1,optional:!1},{name:"细筛孔径0.25",repeatable:!1,optional:!1},{name:"细筛孔径0.075",repeatable:!1,optional:!1},{name:"细筛孔径筛底",repeatable:!1,optional:!1},{name:"粗筛60小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛40小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛20小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛10小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛5小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛2小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"细筛2占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛1占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛0.5占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛0.25占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛0.075占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛筛底占总土质量百分比",repeatable:!1,optional:!1},{name:"d的数据值,如:60、30、10(其中之一)",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<25)return"";let a,n,y=t.allCellVals[0],o=t.allCellVals[1],x=t.allCellVals[2],r=t.allCellVals[3],s=t.allCellVals[4],u=t.allCellVals[5],m=t.allCellVals[6],c=t.allCellVals[7],h=t.allCellVals[8],p=t.allCellVals[9],f=t.allCellVals[10],d=t.allCellVals[11],g=t.allCellVals[12],b=t.allCellVals[13],C=t.allCellVals[14],S=t.allCellVals[15],w=t.allCellVals[16],F=t.allCellVals[17],V=t.allCellVals[18],E=t.allCellVals[19],N=t.allCellVals[20],v=t.allCellVals[21],A=t.allCellVals[22],D=t.allCellVals[23],U=t.allCellVals[24],J=[y,o,x,r,s,u,m,c,h,p,f,d],k=[g,b,C,S,w,F,V,E,N,v,A,D],O=new Array,M=new Array,L=0;for(let e=0;e<=11;e++)n=k[e],"/"==n||""==n||isNaN(n)||(0==n||1*n>0)&&(O[L]=n,-1!=J[e].indexOf("底")?M[L]="0.001":M[L]=J[e],L++);if(L<3)return;let j=0;for(i=0;i<O.length&&O[i]>=U;i++)j++;if(0==j)return;let I=new function(){this.x1=1,this.x2=1,this.y1=1,this.y2=1,this.k=1,this.b=0,this.x=0,this.$get=function(){return this.x1-this.x2==0&&(this.k=1,this.b=0),this.k=(this.y1-this.y2)/(this.x1-this.x2),this.b=this.y1-this.x1*this.k,this.k*this.x+this.b}};var z;return I.x1=O[j-1],I.x2=O[j],I.y1=M[j-1],I.y2=M[j],I.x=U,a=1*(z=I).y1-(1*z.x1-1*z.x)*(1*z.y1-1*z.y2)/(1*z.x1-1*z.x2),a=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(a,-1),a}},{funName:"YJJGX",funDesc:"集料坚固性公式",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"质量百分率数据区域",repeatable:!1,optional:!1},{name:"试验前烘干质量数据区域",repeatable:!1,optional:!1},{name:"试验后烘干质量数据区域",repeatable:!1,optional:!1},{name:"质量损失百分率数据区域",repeatable:!1,optional:!1},{name:"序号(从1开始)",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellValsEw.length<5)return"";let a=t.allCellValsEw[0],n=t.allCellValsEw[1],y=t.allCellValsEw[2],o=t.allCellValsEw[3],x=Number(t.allCellValsEw[4])-1,r="";for(let e=0;e<n.length;e++){if(!(parseFloat(a[x])<5)){r=isNaN(n[x])||isNaN(y[x])?"/":FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease((parseFloat(n[x])-parseFloat(y[x]))/parseFloat(n[x])*100,-1);break}{let e=x-1,l=0,t=x+1,n=0;for(;e>=0&&parseFloat(a[e])<5;)e--;for(;t<=a.length&&parseFloat(a[t])<5;)t++;if(e>=0&&(l=parseFloat(o[e])),t<a.length&&(n=parseFloat(o[t])),l&&n){r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease((l+n)/2,-1);break}if(l){r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(l,-1);break}if(n){r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(n,-1);break}}}return r}},{funName:"YJNC",funDesc:"内插值",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"数据区域Xn",repeatable:!1,optional:!1},{name:"数据区域Yn",repeatable:!1,optional:!1},{name:"d的数据值,如:60、30、10(其中之一)可以为固定值 也可以为填入值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellValsEw.length<3)return"";let a=FormulaUtils.commFun.convertToInt(t.allCellValsEw[0].filter(e=>FormulaUtils.commFun.isNumber(e))),n=FormulaUtils.commFun.convertToInt(t.allCellValsEw[1].filter(e=>FormulaUtils.commFun.isNumber(e))),y=t.allCellValsEw[2];y=Array.isArray(y)&&y.length>0?Number(y[0]):Number(y);let o=a,x=n,r=y;var s,i,u=new Array,m=new Array,c=0;r*=1;for(var h=0;h<=x.length;h++)i=x[h],isNaN(i)||(0==i||1*i>0)&&(m[c]=i,u[c]=o[h],c++);if(c<3)return"/";var p=0;if(u[0]>r){for(h=0;h<u.length&&u[h]>=r;h++)p++;if(0==p)return"/"}else if(u[0]<r){for(h=0;h<u.length&&u[h]<=r;h++)p++;if(0==p)return"/"}var f,d=new function(){this.x1=1,this.x2=1,this.y1=1,this.y2=1,this.k=1,this.b=0,this.x=0,this.$get=function(){return this.x1-this.x2==0&&(this.k=1,this.b=0),this.k=(this.y1-this.y2)/(this.x1-this.x2),this.b=this.y1-this.x1*this.k,this.k*this.x+this.b}};return d.x1=u[p-1],d.x2=u[p],d.y1=m[p-1],d.y2=m[p],d.x=r,s=d.y1==r?d.x1:1*(f=d).y1-(1*f.x1-1*f.x)*(1*f.y1-1*f.y2)/(1*f.x1-1*f.x2),isNaN(s)?"/":s}},{funName:"YJMDJWDJZ",funDesc:"土密度计温度校正查表",funDefaultVal:null,funParams:[{name:"密度计种类",repeatable:!1,optional:!1},{name:"悬液温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2||"string"==typeof t.allCellVals[1]&&(0==t.allCellVals[1].trim().length||"/"==t.allCellVals[1]))return"/";let a,n=t.allCellVals[0],y=t.allCellVals[1],o=new Array;if(o[0]=["10.0","-2.0","-0.0012"],o[1]=["10.5","-1.9","-0.0012"],o[2]=["11.0","-1.9","-0.0012"],o[3]=["11.5","-1.8","-0.0011"],o[4]=["12.0","-1.8","-0.0011"],o[5]=["12.5","-1.7","-0.0010"],o[6]=["13.0","-1.6","-0.0010"],o[7]=["13.5","-1.5","-0.0009"],o[8]=["14.0","-1.4","-0.0009"],o[9]=["14.5","-1.3","-0.0008"],o[10]=["15.0","-1.2","-0.0008"],o[11]=["15.5","-1.1","-0.0007"],o[12]=["16.0","-1.0","-0.0006"],o[13]=["16.5","-0.9","-0.0006"],o[14]=["17.0","-0.8","-0.0005"],o[15]=["17.5","-0.7","-0.0004"],o[16]=["18.0","-0.5","-0.0003"],o[17]=["18.5","-0.4","-0.0003"],o[18]=["19.0","-0.3","-0.0002"],o[19]=["19.5","-0.1","-0.0001"],o[20]=["20.0","-0.0","-0.0000"],o[21]=["20.2","0.0","+0.0000"],o[22]=["20.5","+0.1","+0.0001"],o[23]=["21.0","+0.3","+0.0002"],o[24]=["21.5","+0.5","+0.0003"],o[25]=["22.0","+0.6","+0.0004"],o[26]=["22.5","+0.8","+0.0005"],o[27]=["23.0","+0.9","+0.0006"],o[28]=["23.5","+1.1","+0.0007"],o[29]=["24.0","+1.3","+0.0008"],o[30]=["24.5","+1.5","+0.0009"],o[31]=["25.0","+1.7","+0.0010"],o[32]=["25.5","+1.7","+0.0011"],o[33]=["26.0","+2.1","+0.0013"],o[34]=["26.5","+2.2","+0.0014"],o[35]=["27.0","+2.5","+0.0015"],o[36]=["27.5","+2.6","+0.0016"],o[37]=["28.0","+2.9","+0.0018"],o[38]=["28.5","+3.1","+0.0019"],o[39]=["29.0","+3.3","+0.0021"],o[40]=["29.5","+3.5","+0.0022"],o[41]=["30.0","+3.7","+0.0023"],""!=y&&"/"!=y&&"甲种"==n){for(let e=0;e<o.length;e++)if(1*o[e][0]==y)return a=o[e][1],a;if(y.length>2){let e=y.substring(0,y.indexOf(".")),l=0;for(let t=0;t<o.length;t++)e==o[t][0].substring(0,y.indexOf("."))&&(l=t);if(l==o.length-1){let e=o[l],t=o[l-1];-1!=e[1].indexOf("-")?e[1]=e[1].replace("-",""):-1!=e[1].indexOf("+")&&(e[1]=e[1].replace("+","")),-1!=t[1].indexOf("-")?t[1]=t[1].replace("-",""):-1!=t[1].indexOf("+")&&(t[1]=t[1].replace("+","")),a=y<=20?"-"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],y),-1):"+"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],y),-1)}else{let e=o[l],t=o[l+1];-1!=e[1].indexOf("-")?e[1]=e[1].replace("-",""):-1!=e[1].indexOf("+")&&(e[1]=e[1].replace("+","")),-1!=t[1].indexOf("-")?t[1]=t[1].replace("-",""):-1!=t[1].indexOf("+")&&(t[1]=t[1].replace("+","")),a=y<=20?"-"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],y),-1):"+"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[1],t[1],y),-1)}}}if(""!=y&&"/"!=y&&"乙种"==n){for(let e=0;e<o.length;e++)if(1*o[e][0]==y)return a=o[e][2],a;if(y.length>2){let e=y.substring(0,y.indexOf(".")),l=0;for(let t=0;t<o.length;t++)e==o[t][0].substring(0,y.indexOf("."))&&(l=t);if(l==o.length-1){let e=o[l],t=o[l-1];-1!=e[2].indexOf("-")?e[2]=e[2].replace("-",""):-1!=e[2].indexOf("+")&&(e[2]=e[2].replace("+","")),-1!=t[2].indexOf("-")?t[2]=t[2].replace("-",""):-1!=t[2].indexOf("+")&&(t[2]=t[2].replace("+","")),a=y<=20?"-"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[2],t[2],y),-4):"+"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[2],t[2],y),-4)}else{let e=o[l],t=o[l+1];-1!=e[2].indexOf("-")?e[2]=e[2].replace("-",""):-1!=e[2].indexOf("+")&&(e[2]=e[2].replace("+","")),-1!=t[2].indexOf("-")?t[2]=t[2].replace("-",""):-1!=t[2].indexOf("+")&&(t[2]=t[2].replace("+","")),a=y<=20?"-"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[2],t[2],y),-4):"+"+FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(e[0],t[0],e[2],t[2],y),-4)}}}return a}},{funName:"YJSDLNZXS",funDesc:"水的动力粘滞系数查表",funDefaultVal:null,funParams:[{name:"悬液温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1||"string"==typeof t.allCellVals[0]&&(0==t.allCellVals[0].trim().length||"/"==t.allCellVals[0]))return"/";let a,n=t.allCellVals[0],y=new Array;y[0]=["10.0","1.310"],y[1]=["10.5","1.292"],y[2]=["11.0","1.274"],y[3]=["11.5","1.256"],y[4]=["12.0","1.239"],y[5]=["12.5","1.223"],y[6]=["13.0","1.206"],y[7]=["13.5","1.190"],y[8]=["14.0","1.175"],y[9]=["14.5","1.160"],y[10]=["15.0","1.144"],y[11]=["15.5","1.130"],y[12]=["16.0","1.115"],y[13]=["16.5","1.101"],y[14]=["17.0","1.088"],y[15]=["17.5","1.074"],y[16]=["18.0","1.061"],y[17]=["18.5","1.048"],y[18]=["19.0","1.035"],y[19]=["19.5","1.022"],y[20]=["20.0","1.010"],y[21]=["20.5","0.998"],y[22]=["21.0","0.986"],y[23]=["21.5","0.974"],y[24]=["22.0","0.963"],y[25]=["22.5","0.952"],y[26]=["23.0","0.941"],y[27]=["23.5","0.930"],y[28]=["24.0","0.920"],y[29]=["24.5","0.909"],y[30]=["25.0","0.899"],y[31]=["25.5","0.889"],y[32]=["26.0","0.879"],y[33]=["26.5","0.869"],y[34]=["27.0","0.860"],y[35]=["27.5","0.850"],y[36]=["28.0","0.841"],y[37]=["28.5","0.832"],y[38]=["29.0","0.823"],y[39]=["29.5","0.814"];for(let e=1;e<=11;e++)if(""!=n&&"/"!=n)for(let e=0;e<y.length;e++)1*y[e][0]==n&&(a=y[e][1]);return a}},{funName:"YJK1",funDesc:"混凝土芯样强度K1查表",funDefaultVal:null,funParams:[{name:"试件数量",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=t.allCellVals[0],y=new Array;if(y[0]=["10","1.01730"],y[1]=["11","1.04127"],y[2]=["12","1.06247"],y[3]=["13","1.08141"],y[4]=["14","1.09848"],y[5]=["15","1.11394"],y[6]=["16","1.12812"],y[7]=["17","1.14112"],y[8]=["18","1.15311"],y[9]=["19","1.16423"],y[10]=["20","1.17458"],y[11]=["21","1.18425"],y[12]=["22","1.9330"],y[13]=["23","1.20181"],y[14]=["24","1.20982"],y[15]=["25","1.21739"],y[16]=["26","1.22455"],y[17]=["27","1.23135"],y[18]=["28","1.23780"],y[19]=["29","1.24395"],y[20]=["30","1.24981"],y[21]=["31","1.25540"],y[22]=["32","1.26075"],y[23]=["33","1.26588"],y[24]=["34","1.27079"],y[25]=["35","1.27079"],y[26]=["36","1.28004"],y[27]=["37","1.28441"],y[28]=["38","1.28861"],y[29]=["39","1.29266"],y[30]=["40","1.29657"],y[31]=["41","1.30035"],y[32]=["42","1.30399"],y[33]=["43","1.30752"],y[34]=["44","1.31094"],y[35]=["45","1.31425"],y[36]=["46","1.31746"],y[37]=["47","1.32058"],y[38]=["48","1.32360"],y[39]=["49","1.32653"],y[40]=["50","1.32939"],y[41]=["60","1.35412"],y[42]=["70","1.37364"],y[43]=["80","1.38959"],y[44]=["90","1.40294"],y[45]=["100","1.41433"],y[46]=["110","1.42421"],y[47]=["120","1.43289"],y[48]=["130","1.44060"],y[49]=["140","1.44750"],y[50]=["150","1.45372"],y[51]=["160","1.45938"],y[52]=["170","1.46456"],y[53]=["180","1.46931"],y[54]=["190","1.47370"],y[55]=["200","1.47777"],y[56]=["250","1.49443"],y[57]=["300","1.50687"],y[58]=["400","1.52453"],y[59]=["500","1.53671"],""!=n&&"/"!=n)for(let e=0;e<y.length;e++)1*y[e][0]==n&&(a=y[e][1]);return a}},{funName:"YJK2",funDesc:"混凝土芯样强度K2查表",funDefaultVal:null,funParams:[{name:"试件数量",repeatable:!1,optional:!1},{name:"直径",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a,n=t.allCellVals[0],y=t.allCellVals[1],o=new Array;if(o[0]=["10","2.91096","2.56837"],o[1]=["11","2.81499","2.50262"],o[2]=["12","2.73634","2.44825"],o[3]=["13","2.67050","2.40240"],o[4]=["14","2.61443","2.36311"],o[5]=["15","2.56600","2.32898"],o[6]=["16","2.52366","2.29900"],o[7]=["17","2.48626","2.27240"],o[8]=["18","2.45295","2.24862"],o[9]=["19","2.42304","2.22720"],o[10]=["20","2.39600","2.20778"],o[11]=["21","2.37142","2.19007"],o[12]=["22","2.34896","2.17385"],o[13]=["23","2.32832","2.15891"],o[14]=["24","2.30929","2.14510"],o[15]=["25","2.29167","2.13229"],o[16]=["26","2.27530","2.12037"],o[17]=["27","2.26005","2.10924"],o[18]=["28","2.24578","2.09881"],o[19]=["29","2.23241","2.08903"],o[20]=["30","2.21984","2.07982"],o[21]=["31","2.20800","2.07113"],o[22]=["32","2.19682","2.06292"],o[23]=["33","2.18625","2.05514"],o[24]=["34","2.17623","2.04776"],o[25]=["35","2.16672","2.04075"],o[26]=["36","2.15768","2.03407"],o[27]=["37","2.14906","2.02771"],o[28]=["38","2.14085","2.02164"],o[29]=["39","2.13300","2.01583"],o[30]=["40","2.12549","2.01027"],o[31]=["41","2.11831","2.00494"],o[32]=["42","2.11142","1.99983"],o[33]=["43","2.10481","1.99493"],o[34]=["44","2.09846","1.99021"],o[35]=["45","2.09235","1.98567"],o[36]=["46","2.08648","1.98130"],o[37]=["47","2.08081","1.97708"],o[38]=["48","2.07535","1.97302"],o[39]=["49","2.07008","1.96909"],o[40]=["50","2.06499","1.96529"],o[41]=["60","2.02216","1.93327"],o[42]=["70","1.98987","1.90903"],o[43]=["80","1.96444","1.87428"],o[44]=["90","1.94376","1.87428"],o[45]=["100","1.92654","1.86125"],o[46]=["110","1.91191","1.85017"],o[47]=["120","1.89929","1.84059"],o[48]=["130","1.88827","1.83222"],o[49]=["140","1.87852","1.82481"],o[50]=["150","1.86984","1.81820"],o[51]=["160","1.86203","1.81225"],o[52]=["170","1.85497","1.80686"],o[53]=["180","1.84854","1.80196"],o[54]=["190","1.84265","1.79746"],o[55]=["200","1.83724","1.79332"],o[56]=["250","1.81547","1.77667"],o[57]=["300","1.79964","1.76454"],o[58]=["400","1.77776","1.74773"],o[59]=["500","1.76305","1.73641"],"70"==y){if(""!=n&&"/"!=n)for(let e=0;e<o.length;e++)1*o[e][0]==n&&(a=o[e][1])}else if("100"==y&&""!=n&&"/"!=n)for(let e=0;e<o.length;e++)1*o[e][0]==n&&(a=o[e][2]);return a}},{funName:"YJCSHTJZM",funDesc:"超声回弹浇筑面修正查表",funDefaultVal:null,funParams:[{name:"浇筑面",repeatable:!1,optional:!1},{name:"回弹值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=new Array("20.0","25.0","30.0","35.0","40.0","45.0","50.0"),o=new Array("2.5","2.0","1.5","1.0","0.5","0","0"),x=new Array("3.0","2.5","2.0","1.5","1.0","0.5","0");1*n>50?n="50.0":1*n<20&&(n="20.0");let r="";if("/"!=n){if("侧面"==a)r="0.0";else if("顶面"==a){let e,l;l=!1;for(let t=0;t<y.length;t++)n!=y[t]||(e=o[t],l=!0);if(0==l)for(let l=0;l<o.length;l++)n>y[l]&&(e=FormulaUtils.commFun.InterpolationMethod_y(y[l],y[l+1],o[l],o[l+1],n));r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(e,-1)}else if("底面"==a){let e,l;l=!1;for(let t=0;t<x.length;t++)n!=y[t]||(e=x[t],l=!0);if(0==l)for(let l=0;l<x.length;l++)n>y[l]&&(e=FormulaUtils.commFun.InterpolationMethod_y(y[l],y[l+1],-x[l],-x[l+1],n));r=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(e,-1)}return r}}},{funName:"YJCSHTQD",funDesc:"超声回弹强度换算计算",funDefaultVal:null,funParams:[{name:"fccu,i",repeatable:!1,optional:!1},{name:"υai^",repeatable:!1,optional:!1},{name:"Rai^",repeatable:!1,optional:!1},{name:"声速值平均值(km/s)",repeatable:!1,optional:!1},{name:"超声测试面修正系数β",repeatable:!1,optional:!1},{name:"回弹平均值",repeatable:!1,optional:!1},{name:"浇筑面修正值",repeatable:!1,optional:!1},{name:"角度修正值",repeatable:!1,optional:!1},{name:"平测声速修正系数λ",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<9)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3],x=t.allCellVals[4],r=t.allCellVals[5],s=t.allCellVals[6],i=t.allCellVals[7],u=t.allCellVals[8],m="";if("/"!=r&&""!=r&&"/"!=o&&""!=o){let e=1*o*x*u;(""==u||"/"==u||isNaN(u))&&(e=1*o*x);let l=1*r+1*i+1*s,t=1*a*Math.pow(e,n)*Math.pow(l,y);m=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(t,-1)}return m}},{funName:"YJCSHTJD",funDesc:"超声回弹角度修正查表",funDefaultVal:null,funParams:[{name:"测试角度",repeatable:!1,optional:!1},{name:"回弹值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y="";n>50?n="50.0":n<20&&(n="20.0");let o=new Array,x=new Array;if(a>0&&n.length>=2){o=new Array("30","45","60","90");let e=0;x[0]=new Array("20.0-3.0","25.0-2.8","30.0-2.5","35-2.3","40.0-2.0","45.0-1.8","50.0-1.5"),x[1]=new Array("20.0-4.0","25.0-3.8","30.0-3.5","35-3.3","40.0-3.0","45.0-2.8","50.0-2.5"),x[2]=new Array("20.0-5.0","25.0-4.5","30.0-4.0","35-3.8","40.0-3.5","45.0-3.3","50.0-3.0"),x[3]=new Array("20.0-6.0","25.0-5.5","30.0-5.0","35-4.5","40.0-4.0","45.0-3.8","50.0-3.5");for(let l=0;l<o.length;l++)o[l]==a&&(e=l);for(let l=0;l<x[e].length;l++){let t=new String;if(t=x[e][l],t=t.split("-"),t[0]==n)y=-t[1];else{let a;if(n>t[0]){let t,o;a=l,t=x[e][a],o=x[e][a+1],t=t.split("-"),o=o.split("-"),y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(t[0],o[0],-t[1],-o[1],n),-1)}}}}else if(a<0&&n.length>=2){o=new Array("-30","-45","-60","-90");let e=0;x[0]=new Array("20.0-2.5","25.0-2.3","30.0-2.0","35.0-1.8","40.0-1.5","45.0-1.3","50.0-1.0"),x[1]=new Array("20.0-3.0","25.0-2.8","30.0-2.5","35.0-2.3","40.0-2.0","45.0-1.8","50.0-1.5"),x[2]=new Array("20.0-3.5","25.0-3.3","30.0-3.0","35.0-2.8","40.0-2.5","45.0-2.3","50.0-2.0"),x[3]=new Array("20.0-4.0","25.0-3.8","30.0-3.5","35.0-3.3","40.0-3.0","45.0-2.8","50.0-2.5");for(let l=0;l<o.length;l++)o[l]==a&&(e=l);for(let l=0;l<x[e].length;l++){let t=new String;if(t=x[e][l],t=t.split("-"),t[0]==n)y=t[1];else{let a;if(Math.abs(n)>Math.abs(t[0])){let t,o;a=l,t=x[e][a],o=x[e][a+1],t=t.split("-"),o=o.split("-"),y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(t[0],o[0],t[1],o[1],n),-1)}}}}return"0"==a&&(y="0"),isNaN(y)||""==y?"/":FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(y,-1)}},{funName:"YJTDM",funDesc:"土样定名及代号",funDefaultVal:null,funParams:[{name:"粗筛孔径60",repeatable:!1,optional:!1},{name:"粗筛60小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径40",repeatable:!1,optional:!1},{name:"粗筛40小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径20",repeatable:!1,optional:!1},{name:"粗筛20小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径10",repeatable:!1,optional:!1},{name:"粗筛10小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径5",repeatable:!1,optional:!1},{name:"粗筛5小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"粗筛孔径2",repeatable:!1,optional:!1},{name:"粗筛2小于该孔的质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径2",repeatable:!1,optional:!1},{name:"细筛2占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径1",repeatable:!1,optional:!1},{name:"细筛1占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径0.5",repeatable:!1,optional:!1},{name:"细筛0.5占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径0.25",repeatable:!1,optional:!1},{name:"细筛0.25占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径0.075",repeatable:!1,optional:!1},{name:"细筛0.075占总土质量百分比",repeatable:!1,optional:!1},{name:"细筛孔径筛底",repeatable:!1,optional:!1},{name:"细筛筛底占总土质量百分比",repeatable:!1,optional:!1},{name:"液限",repeatable:!1,optional:!1},{name:"塑限",repeatable:!1,optional:!1},{name:"不均匀系数",repeatable:!1,optional:!1},{name:"曲率系数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<28)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3],x=t.allCellVals[4],r=t.allCellVals[5],s=t.allCellVals[6],i=t.allCellVals[7],u=t.allCellVals[8],m=t.allCellVals[9],c=t.allCellVals[10],h=t.allCellVals[11],p=t.allCellVals[12],f=t.allCellVals[13],d=t.allCellVals[14],g=t.allCellVals[15],b=t.allCellVals[16],C=t.allCellVals[17],S=t.allCellVals[18],w=t.allCellVals[19],F=t.allCellVals[20],V=t.allCellVals[21],E=t.allCellVals[22],N=t.allCellVals[23],v=t.allCellVals[24],A=t.allCellVals[25],D=t.allCellVals[26],U=t.allCellVals[27],J=[a+"-"+n,y+"-"+o,x+"-"+r,s+"-"+i,u+"-"+m,c+"-"+h,p+"-"+f,d+"-"+g,b+"-"+C,S+"-"+w,F+"-"+V,E+"-"+N];function k(e,l){let t="0";for(let a=0;a<J.length;a++){let n=J[a].split("-");1*n[0]==1*e&&("Y"==l?t=100-n[1]:"Z"==l&&(t=n[1]))}return t}let O="/";return 1*k("60","Y")>15?1*k("60","Y")>75?1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))>0?O="漂石B":1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))<=0&&(O="卵石Cb"):1*k("60","Y")>50&&1*k("60","Y")<=75?1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))>0?O="漂石夹土BSl":1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))<=0&&(O="卵石夹土CbSl"):1*k("60","Y")>15&&1*k("60","Y")<=50&&(1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))>0?O="漂石质土SlB":1*k("200","Y")-(1*k("60","Y")-1*k("200","Y"))<=0&&(O="卵石质土SlCb")):1*k("60","Y")<=15&&(1*k("0.075","Y")>50?1*k("2","Y")-k("60","Y")-(1*k("0.075","Y")-k("2","Y"))>0?k("0.075","Z")<=5?O=D>=5&&U>=1&&U<=3?"级配良好砾GW":"级配不良砾GP":k("0.075","Z")>5&&k("0.075","Z")<=15?O="含细粒土砾GF":k("0.075","Z")>15&&k("0.075","Z")<=50&&(O=A<.73*(1*v-20)?"粉土质砾GM":"黏土质砾GC"):1*k("2","Y")-k("60","Y")-(1*k("0.075","Y")-k("2","Y"))<=0&&(k("0.075","Z")<=5?O=D>=5&&U>=1&&U<=3?"级配良好砂SW":"级配不良砂SP":k("0.075","Z")>5&&k("0.075","Z")<=15?O="含细粒土砂SF":k("0.075","Z")>15&&k("0.075","Z")<=50&&(O=A<.73*(1*v-20)?"粉土质砂SM":"黏土质砂SC")):1*k("0.075","Y")<=50&&(1*k("0.075","Y")-1*k("60","Y")<=25?A>=.73*(1*v-20)?1*v>=50?O="高液限黏土CH":1*v<50&&A>7&&(O="低液限黏土CL"):1*v>=50?O="高液限粉土MH":1*v<50&&A<4&&(O="低液限粉土ML"):1*(1*k("0.075","Y")-1*k("60","Y"))>25&&1*(1*k("0.075","Y")-1*k("60","Y"))<=50&&(1*k("2","Y")-1*k("60","Y")-(1*k("0.075","Y")-1*k("2","Y"))>=0?A>=.73*(1*v-20)?v>=50?O="含砾高液限黏土CHG":v<50&&A>7&&(O="含砾低液限黏土CLG"):v>=50?O="含砾高液限粉土MHG":v<50&&A<4&&(O="含砾低液限粉土MLG"):A>=.73*(1*v-20)?v>=50?O="含砂高液限黏土CHS":v<50&&A>7&&(O="含砂低液限黏土CLS"):v>=50?O="含砂高液限粉土MHS":v<50&&A<4&&(O="含砂低液限粉土MLS")))),O}},{funName:"YJHTQD",funDesc:"回弹强度换算查表",funDefaultVal:null,funParams:[{name:"浇筑方式",repeatable:!1,optional:!1},{name:"修正后回弹值",repeatable:!1,optional:!1},{name:"碳化深度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2];return FormulaUtilsOther.YJHTQD(FormulaUtils.commFun,a,n,y)}},{funName:"DJCZL",funDesc:"地基承载力计算",funDefaultVal:null,funParams:[{name:"地基土类型",repeatable:!1,optional:!1},{name:"N63.5",repeatable:!1,optional:!1},{name:"修正系数",repeatable:!1,optional:!1},{name:"机械修正/水位修正",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<4)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3];var x,r=0;return"/"!=n&&""!=n||(n="1"),r="水位修正"==o?FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(n*y*1.1+1,1):"机械修正"==o?FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(n*y,1):n,"中砂-砂砾土"==a?r<3?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(40*r,1):r>=3&&r<=5?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(30*r+30,1):r>5&&(x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(40*r-20,1)):r<3?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(140/3*r,1):r>=3&&r<=5?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(30*r+50,1):r>5&&r<=12?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(40*r,1):r>12&&r<=22?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(30*r+120,1):r>22&&r<=24?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(25*r+230,1):r>24&&r<=26?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(20*r+350,1):r>26&&r<=30?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(15*r+480,1):r>30&&r<=35?x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(8*r+690,1):r>35&&(x=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(6*r+760,1)),x}},{funName:"YJLJJSYQ",funDesc:"钢筋机械连接技术要求",funDefaultVal:null,funParams:[{name:"牌号",repeatable:!1,optional:!1},{name:"接头等级",repeatable:!1,optional:!1},{name:"拉断性状",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2];var o;if("I级"==n){"HRB400"==a||"HRB400E"==a||"HRBF400"==a||"HRBF400E"==a?o="断于套筒"==y||"套筒纵向开裂"==y||"钢筋从套筒中拔出"==y||"其它链接组件破坏"==y?"≥594":"≥540":"HRB500"==a||"HRB500E"==a||"HRBF500"==a||"HRBF500E"==a?o="断于套筒"==y||"套筒纵向开裂"==y||"钢筋从套筒中拔出"==y||"其它链接组件破坏"==y?"≥693":"≥630":"HRB600"==a&&(o="断于套筒"==y||"套筒纵向开裂"==y||"钢筋从套筒中拔出"==y||"其它链接组件破坏"==y?"≥803":"≥730")}else"II级"==n?"HRB400"==a||"HRB400E"==a||"HRBF400"==a||"HRBF400E"==a?o="≥540":"HRB335"==a||"HRBF335"==a?o="≥455":"HRB500"==a||"HRB500E"==a||"HRBF500"==a||"HRBF500E"==a?o="≥630":"HRB600"==a&&(o="≥730"):"III级"==n&&("HRB400"==a||"HRB400E"==a||"HRBF400"==a||"HRBF400E"==a?o="≥500":"HRB500"==a||"HRB500E"==a||"HRBF500"==a||"HRBF500E"==a?o="≥625":"HRB600"==a&&(o="≥750"));return o}},{funName:"YJLJGJPD",funDesc:"机械连接钢筋结构判定",funDefaultVal:null,funParams:[{name:"技术要求1",repeatable:!1,optional:!1},{name:"技术要求2",repeatable:!1,optional:!1},{name:"技术要求3",repeatable:!1,optional:!1},{name:"抗压强度1",repeatable:!1,optional:!1},{name:"抗压强度2",repeatable:!1,optional:!1},{name:"抗压强度3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<6)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3],x=t.allCellVals[4],r=t.allCellVals[5];return a=1*a.replace("≥",""),n=1*n.replace("≥",""),y=1*y.replace("≥",""),"/"!=o&&"/"!=x&&"/"!=r?o>=a&&x>=n&&r>=y?"合格":o>=a&&x>=n&&r<y||o>=a&&x<n&&r>=y||o<a&&x>=n&&r>=y?"复检":"不合格":"/"}},{funName:"YJLJFJPD",funDesc:"机械连接钢筋结构复检判定",funDefaultVal:null,funParams:[{name:"技术要求1",repeatable:!1,optional:!1},{name:"技术要求2",repeatable:!1,optional:!1},{name:"技术要求3",repeatable:!1,optional:!1},{name:"技术要求4",repeatable:!1,optional:!1},{name:"技术要求5",repeatable:!1,optional:!1},{name:"技术要求6",repeatable:!1,optional:!1},{name:"抗压强度1",repeatable:!1,optional:!1},{name:"抗压强度2",repeatable:!1,optional:!1},{name:"抗压强度3",repeatable:!1,optional:!1},{name:"抗压强度4",repeatable:!1,optional:!1},{name:"抗压强度5",repeatable:!1,optional:!1},{name:"抗压强度6",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<12)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3],x=t.allCellVals[4],r=t.allCellVals[5],s=t.allCellVals[6],i=t.allCellVals[7],u=t.allCellVals[8],m=t.allCellVals[9],c=t.allCellVals[10],h=t.allCellVals[11];return a=1*a.replace("≥",""),n=1*n.replace("≥",""),y=1*y.replace("≥",""),o=1*o.replace("≥",""),x=1*x.replace("≥",""),r=1*r.replace("≥",""),isNaN(s)||isNaN(i)||isNaN(u)||isNaN(m)||isNaN(c)||isNaN(h)?"/":s>=a&&i>=n&&u>=y&&m>=o&&c>=x&&h>=r?"合格":"不合格"}},{funName:"YJHJFJPD",funDesc:"焊接钢筋结构复检判定",funDefaultVal:null,funParams:[{name:"牌号",repeatable:!1,optional:!1},{name:"接头极限强度1",repeatable:!1,optional:!1},{name:"接头极限强度2",repeatable:!1,optional:!1},{name:"接头极限强度3",repeatable:!1,optional:!1},{name:"接头极限强度4",repeatable:!1,optional:!1},{name:"接头极限强度5",repeatable:!1,optional:!1},{name:"接头极限强度6",repeatable:!1,optional:!1},{name:"断裂形状1",repeatable:!1,optional:!1},{name:"断裂形状2",repeatable:!1,optional:!1},{name:"断裂形状3",repeatable:!1,optional:!1},{name:"断裂形状4",repeatable:!1,optional:!1},{name:"断裂形状5",repeatable:!1,optional:!1},{name:"断裂形状6",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<13)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3],x=t.allCellVals[4],r=t.allCellVals[5],s=t.allCellVals[6],i=t.allCellVals[7],u=t.allCellVals[8],m=t.allCellVals[9],c=t.allCellVals[10],h=t.allCellVals[11],p=t.allCellVals[12];var f,d=new Array,g=new Array,b=0,C=0,S="/";if("/"!=(f=1*(f="HRB335"==a?"≥455":"R235"==a?"≥370":"Q235"==a?"≥410":"HRB400"==a||"HRB400E"==a?"≥540":"HPB300"==a?"≥420":"HRB500"==a||"HRBF500"==a||"HRB500E"==a||"HRBF500E"==a?"≥630":"/").replace("≥",""))&&"/"!=n&&"/"!=y&&"/"!=o&&"/"!=x&&"/"!=r&&"/"!=s&&"/"!=i&&"/"!=u&&"/"!=m&&"/"!=c&&"/"!=h&&"/"!=p){d.push(n,y,o,x,r,s),g.push(i,u,m,c,h,p);for(var w=0;w<d.length;w++)1*d[w]<f&&b++;for(var F=0;F<g.length;F++)"断于焊缝,呈脆性断裂"!=g[F]&&"断于热影响区,呈脆性断裂"!=g[F]||C++;S=b>0||C>=3?"不合格":"合格"}return S}},{funName:"YJWJLKQND",funDesc:"无机结合料空气黏度查表",funDefaultVal:null,funParams:[{name:"试验温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0];for(var n,y=new Array("8-17.49","10-17.59","12-17.68","14-17.78","16-17.88","18-17.98","20-18.09","22-18.19","24-18.28","26-18.37","28-18.47","30-18.57","32-18.67","34-18.76"),o=0;o<y.length;o++){a==(s=y[o].split("-"))[0]&&(n=s[1])}if(a.length>0){var x=a.substring(0,a.indexOf(".")),r=0;for(o=0;o<y.length;o++){var s;x==(s=y[o].split("-"))[0]&&(r=o)}if(r==y.length-1){var i=y[r].split("-"),u=y[r-1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(i[0],u[0],i[1],u[1],a),-2)}else{i=y[r].split("-"),u=y[r+1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(i[0],u[0],i[1],u[1],a),-2)}}return n}},{funName:"YJYSSMD",funDesc:"岩石-水密度公式",funDefaultVal:null,funParams:[{name:"试验温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0];for(var n,y=new Array("5-0.9999919","6-0.9999681","7-0.9999295","8-0.9998762","9-0.9998088","10-0.9997277","11-0.9996328","12-0.9995247","13-0.9994040","14-0.9992712","15-0.9991265","16-0.9989701","17-0.9988022","18-0.9986232","19-0.9984331","20-0.9982323","21-0.9980210","22-0.9977993","23-0.9975674","24-0.9973256","25-0.9970739","26-0.9968128","27-0.9965241","28-0.9962623","29-0.9959735","30-0.9956756","31-0.9953692","32-0.9950542","33-0.9947308","34-0.9943991","35-0.9940594"),o=0;o<y.length;o++){if(a==(s=y[o].split("-"))[0]){n=s[1];break}}if(String(a).length>2){var x=parseInt(a),r=0;for(o=0;o<y.length;o++){var s=y[o].split("-");x==Number(s[0])&&(r=o)}if(r==y.length-1){var i=y[r].split("-"),u=y[r-1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(i[0],u[0],i[1],u[1],a),-7)}else{i=y[r].split("-"),u=y[r+1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(i[0],u[0],i[1],u[1],a),-7)}}return n}},{funName:"YJHTTDZ",funDesc:"混凝土强度推定値公式",funDefaultVal:null,funParams:[{name:"强度换算值数组",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{let a=[];t.allCellValsEw.forEach(e=>{Array.isArray(e)?e.forEach(e=>{a.push(e)}):a.push(e)});let n=a;var y,o=0,x=new Array,r=new Array,s=new Array;for(let e=0;e<10;e++)""!=n[e]&&"/"!=n[e]&&(x[o]=n[e],1*n[e],o++),(n[e].indexOf("<")>-1||n[e].indexOf(">")>-1)&&r.push(n[e]),-1==n[e].indexOf("<")&&-1==n[e].indexOf(">")&&-1==n[e].indexOf("/")&&s.push(n[e]);return y=1*(y=FormulaUtils.commFun.getAverage(a.filter(e=>FormulaUtils.commFun.isNumber(e))))-1.645*FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.GetS(s),-3),y=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(y,-1),10==x.length?10==r.length?">60.0":r.length>0?FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.getMin(s),-1):y:s.length<1?">60.0":FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.getMin(s),-1)}},{funName:"YJSXS",funDesc:"水温查表",funDefaultVal:null,funParams:[{name:"温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0]+"";for(var n=new Array("15-0.002","16-0.003","17-0.003","18-0.004","19-0.004","20-0.005","21-0.005","22-0.006","23-0.006","24-0.007","25-0.008"),y=0;y<n.length;y++){a==(r=n[y].split("-"))[0]&&(o=r[1])}if(a.length>2){var o;o=(o=a).substring(0,o.indexOf("."));var x=0;for(y=0;y<n.length;y++){var r;o==(r=n[y].split("-"))[0]&&(x=y)}if(x==n.length-1){var s=n[x].split("-"),i=n[x-1].split("-");o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(s[0],i[0],s[1],i[1],a),-3)}else{s=n[x].split("-"),i=n[x+1].split("-");o=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(s[0],i[0],s[1],i[1],a),-3)}}return o}},{funName:"YJFN635",funDesc:"重型动力触探承载力查表",funDefaultVal:null,funParams:[{name:"地基土类型",repeatable:!1,optional:!1},{name:"修正后击数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";let a=t.allCellVals[0],n=t.allCellVals[1];var y;if("中砂、粗砂、砾砂"==a)var o=new Array("15-0.002","16-0.003","17-0.003","18-0.004","19-0.004","20-0.005","21-0.005","22-0.006","23-0.006","24-0.007","25-0.008");else o=new Array("3-140","4-170","5-200","6-240","7-280","8-320","9-360","10-400","12-480","14-540","16-600","18-660","20-720","22-780","24-830","26-870","28-900","30-930","35-970","40-1000");for(var x=0;x<o.length;x++){var r=o[x].split("-");n==r[0]&&(y=r[1])}return y}},{funName:"YJLHL",funDesc:"沥青蜡含量",funDefaultVal:null,funParams:[{name:"析出蜡质量1",repeatable:!1,optional:!1},{name:"析出蜡质量2",repeatable:!1,optional:!1},{name:"析出蜡质量3",repeatable:!1,optional:!1},{name:"蜡含量1",repeatable:!1,optional:!1},{name:"蜡含量2",repeatable:!1,optional:!1},{name:"蜡含量3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<6)return"";var a=[t.allCellVals[0],t.allCellVals[1],t.allCellVals[2]],n=[t.allCellVals[3],t.allCellVals[4],t.allCellVals[5]],y=a.map(e=>+e>=.065&&+e<=.085).map((e,l)=>e?l:-1).filter(e=>e>=0);if(0===y.length)return"重新试验";var o=y.map(e=>+n[e]),x=o.reduce((e,l)=>e+l)/o.length;return FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(x,-1)}},{funName:"YJNFX",funDesc:"沥青黏附性",funDefaultVal:null,funParams:[{name:"沥青膜剥落情况",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals[0];return"沥青膜裹覆率接近100%"==a?"5":"沥青膜少部剥落,厚度不均,沥青膜裹覆率不小于90%"==a?"4":"沥青膜局部明显剥落,沥青膜裹覆率为75%~90%"==a?"3":"沥青膜大部分剥落,沥青膜裹覆率为25%~75%"==a?"2":"沥青膜几乎完全剥落,沥青膜裹覆率小于25%"==a?"1":"/"}},{funName:"YJNDCS",funDesc:"沥青黏度常数",funDefaultVal:null,funParams:[{name:"毛细管型号",repeatable:!1,optional:!1},{name:"标管编号",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";let a=t.allCellVals[0],n=t.allCellVals[1];var y;if("管B"==n)var o=new Array("25-0.2","50-0.8","100-3.2","200-12.8","400-50.0");else if("管C"==n)o=new Array("25-0.1","50-0.4","100-1.6","200-6.4","400-25.0");else if("管D"==n)o=new Array("25-0.07","50-0.3","100-1.0","200-4.0","400-16.0");else if("球B"==n)o=new Array("4-0.0002","5-0.0006","6-0.002","7-0.006","8-0.02","9-0.06");else if("球C"==n)o=new Array("4-0.00006","5-0.0002","6-0.0006","7-0.002","8-0.006","9-0.02");for(var x=0;x<o.length;x++){var r=o[x].split("-");a==r[0]&&(y=r[1])}return y}},{funName:"YJTXHF",funDesc:"沥青弹性恢复率",funDefaultVal:null,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<3)return"";let a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2];var o=[a,n,y],x=(1*a+1*n+1*y)/3;if(Math.max(...o)-Math.min(...o)<=.05*x)return x;var r=o.slice().sort((e,l)=>e-l);return 1*r[2]-1*r[1]<=.05*x?(1*r[1]+1*r[2])/2:"/"}},{funName:"YJSZF",funDesc:"沥青四组分FID法",funDefaultVal:null,funParams:[{name:"数值数组",repeatable:!1,optional:!1},{name:"标准差",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";let a=[];for(let e=0;e<t.allCellVals.length-1;e++)a.push(t.allCellVals[e]);let n=t.allCellVals[t.allCellVals.length-1];var y;if(y=FormulaUtils.commFun.getAverage(a),n<=5)return y;a.sort((e,l)=>e-l),a.shift(),a.pop();var o=FormulaUtils.commFun.GetS(a),x=FormulaUtils.commFun.getAverage(a);return y=o<=5?x:"无效"}},{funName:"YJSZFBZC",funDesc:"四组分标准差",funDefaultVal:null,funParams:[{name:"数值数组",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"";let a=t.allCellVals;var n;return(n=FormulaUtils.commFun.GetS(a))<=5?n:(a.sort((e,l)=>e-l),a.shift(),a.pop(),n=FormulaUtils.commFun.GetS(a))}},{funName:"YJFRAC",funDesc:"根据小数返回分数(1/x)形式的文本(如:1/300、1/478)",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"被除数",repeatable:!1,optional:!1},{name:"除数",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"";const a=t.allCellVals[0],n=t.allCellVals[1],y=rapidUtils.preciseCalc(a,n,"div"),o=Math.abs(rapidUtils.preciseCalc(n,a,"div"));let x=Math.round(o);x<1&&(x=1);const r=y<0?"-":"";return l.getCell(t.cellObj.row,t.cellObj.col).formatter(`${r}1/${x}`),y}},{funName:"YJDXPD",funDesc:"单项判定",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"判定范围,格式如:-2,2、-2~2或±2",repeatable:!1,optional:!1},{name:"判定值,如:1",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<2)return"/";try{const e=t.allCellVals[0],l=t.allCellVals[1];if(null==e||null==e||"string"!=typeof e||"number"!=typeof l||isNaN(l))return"/";const a=e.replace(/\s/g,"");let n,y;if(a.includes(",")){const e=a.split(",");if(2!==e.length)return"/";n=parseFloat(e[0]),y=parseFloat(e[1])}else if(a.includes("~")){const e=a.split("~");if(2!==e.length)return"/";n=parseFloat(e[0]),y=parseFloat(e[1])}else{if(!a.includes("±"))return"/";{const e=a.replace("±",""),l=parseFloat(e);if(isNaN(l))return"/";n=-l,y=l}}return isNaN(n)||isNaN(y)?"/":l>=n&&l<=y?"合格":"不合格"}catch(e){return"/"}}},{funName:"YJTEXTJOIN",funDesc:"此函数将多个区域和/或字符串的文本组合起来,并包括你在要组合的各文本值之间指定的分隔符。",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"需要用作判断的数字数组、字符串数组或单值",repeatable:!1,optional:!1},{name:"返回值的数组",repeatable:!1,optional:!1},{name:"比较大小或比较相等的字符串,格式为:“>”、“<”、“>=”、“<=”、“=”、“±”",repeatable:!1,optional:!1},{name:"比较的值,类型为数字类型或字符串类型,如:3或“合格”",repeatable:!1,optional:!1},{name:"返回值的分隔符,默认为:,",repeatable:!1,optional:!1},{name:"是否返回相反的结果(传数字的1或0,0:满足条件的结果、1:相反的结果),默认为:0",repeatable:!1,optional:!1},{name:"是否返回符合或不符合结果的数量(传数字的1或0,0:不返回数量、1:返回数量),默认为:0",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellValsEw.length<5)return"/";let a=t.allCellValsEw[0],n=t.allCellValsEw[1],y=t.allCellValsEw[2],o=t.allCellValsEw[3],x=t.allCellValsEw[4],r=t.allCellValsEw.length<6?0:t.allCellValsEw[5],s=t.allCellValsEw.length<7?0:t.allCellValsEw[6];try{(null==a||null==a||"string"==typeof a&&0==a.trim().length)&&(a=[]),(null==n||null==n||"string"==typeof n&&0==n.trim().length)&&(n=[]),("number"==typeof a||"string"==typeof a&&a.trim().length>0)&&(a=[a]),"string"==typeof n&&n.trim().length>0&&(n=[n]),Array.isArray(y)&&y.length>0&&(y=y[0]),Array.isArray(o)&&o.length>0&&(o=o[0]),Array.isArray(x)&&x.length>0&&(x=x[0]),Array.isArray(r)&&r.length>0&&(r=r[0]),Array.isArray(s)&&s.length>0&&(s=s[0]),"1"!=r&&"0"!=r||(r=parseInt(r)),0!=r&&1!=r&&(r=0),"1"!=s&&"0"!=s||(s=parseInt(s)),0!=s&&1!=s&&(s=0);const e=n.length>a.length&&1==a.length;if(!Array.isArray(a)||!Array.isArray(n)||"string"!=typeof y||"string"!=typeof x)return"/";if(![">",">","<","<",">=","≥","≧","<=","≤","≦","=","=","±"].includes(y))return"/";const l=a.length>0&&("number"==typeof a[0]||!isNaN(parseFloat(a[0]))),t=[],i=[];for(let x=0;x<n.length;x++){let r=!1;if(l){const l=e?parseFloat(a[0]):parseFloat(a[x]),t=parseFloat(n[x]),s=parseFloat(o);if(isNaN(l)||isNaN(s)&&!e)continue;switch(y){case">":case">":r=e?t>l:l>s;break;case"<":case"<":r=e?t<l:l<s;break;case">=":case"≥":case"≧":r=e?t>=l:l>=s;break;case"<=":case"≤":case"≦":r=e?t<=l:l<=s;break;case"=":case"=":r=e?t===l:l===s;break;case"±":r=t>=l-s&&t<=l+s}}else r=String(a[x])===String(o);r?t.push(x):i.push(x)}const u=(0==r?t:i).map(e=>e>=0&&e<n.length?String(n[e]):"").filter(e=>""!==e&&"/"!=e&&"null"!=e&&null!=e&&null!=e);return 1==s?u.length:u.join(x)}catch(e){return"/"}}},{funName:"YJDLNZXSB",funDesc:"水温修正系数查表",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"温度",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<1)return"/";const a=t.allCellVals[0];for(var n="/",y=new Array("18-1.050","18.5-1.038","19-1.025","19.5-1.012","20-1.000","20.5-0.988","21-0.976","21.5-0.965","22-0.953"),o=0;o<y.length;o++){a==(r=y[o].split("-"))[0]&&(n=r[1])}if(a.length>2){n=a;var x=0;for(o=0;o<y.length;o++){var r;n==(r=y[o].split("-"))[0]&&(x=o)}if(x==y.length-1){var s=y[x].split("-"),i=y[x-1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(s[0],i[0],s[1],i[1],a),-3)}else{s=y[x].split("-"),i=y[x+1].split("-");n=FormulaUtils.commFun.GetDataOddIncreaseEvenDecrease(FormulaUtils.commFun.InterpolationMethod_y(s[0],i[0],s[1],i[1],a),-3)}}return n}},{funName:"YJWDDLZ",funDesc:"马歇尔稳定度/流值",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"数值1",repeatable:!1,optional:!1},{name:"数值2",repeatable:!1,optional:!1},{name:"数值3",repeatable:!1,optional:!1},{name:"数值4",repeatable:!1,optional:!1},{name:"数值5",repeatable:!1,optional:!1},{name:"数值6",repeatable:!1,optional:!1},{name:"超过比例,如:0.15、0.2",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>{if(t.allCellVals.length<7)return"/";const a=t.allCellVals[0],n=t.allCellVals[1],y=t.allCellVals[2],o=t.allCellVals[3],x=t.allCellVals[4],r=t.allCellVals[5],s=t.allCellVals[6];if("number"!=typeof s||isNaN(s))return"/";const i=[parseFloat(a),parseFloat(n),parseFloat(y),parseFloat(o),parseFloat(x),parseFloat(r)];let u=0,m=[];for(let e=0;e<i.length;e++)"number"!=typeof i[e]||isNaN(i[e])?u++:m.push(i[e]);if(u==i.length)return"/";const c=m.reduce((e,l)=>rapidUtils.preciseCalc(e,l,"add"),0),h=rapidUtils.preciseCalc(c,m.length,"div");if(0===m.filter(e=>rapidUtils.preciseCalc(e,h,"sub")>rapidUtils.preciseCalc(s,e,"mul")).length)return h;const p=m.filter(e=>rapidUtils.preciseCalc(e,h,"sub")<=rapidUtils.preciseCalc(s,e,"mul"));if(0===p.length)return"/";const f=p.reduce((e,l)=>rapidUtils.preciseCalc(e,l,"add"),0);return rapidUtils.preciseCalc(f,p.length,"div")}},{funName:"YJTREND",funDesc:"返回线性回归拟合线的一组纵坐标值(y值)",funDefaultVal:null,isAcceptArea:!0,funParams:[{name:"已知的因变量值(y值)数组",repeatable:!1,optional:!1},{name:"已知的自变量值(x值)数组",repeatable:!1,optional:!1},{name:"希望预测y值的新x值",repeatable:!1,optional:!1}],funCallback:(e,l,t)=>"OK"}]},WorkbookUtils={loadSjsFile:(e,l,t,a)=>__awaiter(void 0,void 0,void 0,function*(){const n=yield fetch(l,{method:"GET"});if(n.ok){const l=yield n.blob(),y=new Blob([l],{type:"application/zip"});e.open(y,()=>__awaiter(void 0,void 0,void 0,function*(){"function"==typeof t&&(yield t(e))}),e=>__awaiter(void 0,void 0,void 0,function*(){"function"==typeof a&&(yield a(e))}))}}),getWookbookBlob:e=>__awaiter(void 0,void 0,void 0,function*(){return new Promise((l,t)=>{e.save(e=>l(e),e=>t(e))})}),print:(e,l)=>{const t=l.getSheetCount();for(let a=0;a<t;a++){const t=l.getSheet(a);let n=t.printInfo();n.showRowHeader(e.Spread.Sheets.Print.PrintVisibilityType.hide),n.showColumnHeader(e.Spread.Sheets.Print.PrintVisibilityType.hide),n.rowStart(0),n.rowEnd(t.getRowCount()),n.columnStart(1),n.columnEnd(77),n.margin({top:59.055119999999995,bottom:59.055119999999995,left:98.42520000000002,right:59.055119999999995,header:0,footer:0}),n.paperSize(new e.Spread.Sheets.Print.PaperSize(e.Spread.Sheets.Print.PaperKind.a4)),t.printInfo(n)}l.print()},exportToExcel:(e,l,t="")=>{const a=l.toJSON({includeBindingSource:!0}),n=["YJMAX","YJMIN","YJMID","YJGETNUM","YJGETS","YJGETCV","YJINTERPOLATIONMETHOD","YJINTERPOLATIONMETHOD_Y"],y=new e.Spread.Sheets.Workbook;y.fromJSON(a),y.suspendPaint();const o=y.getSheetCount();for(let e=0;e<o;e++){const l=y.getSheet(e);l.suspendCalcService();for(var x=0;x<l.getRowCount();x++)for(var r=0;r<l.getColumnCount();r++){const e=l.getFormula(x,r);if(null!=e&&null!=e&&n.some(l=>e.indexOf(l)>-1)){const e=l.getValue(x,r);l.getCell(x,r).formula(void 0),l.setValue(x,r,e)}}l.resumeCalcService(!1)}y.resumePaint(),""==t&&(t=y.getSheet(0).name());let s={fileType:e.Spread.Sheets.FileType.excel,includeBindingSource:!0,includeStyles:!0,includeFormulas:!0,saveAsView:!1,rowHeadersAsFrozenColumns:!1,columnHeadersAsFrozenRows:!1,includeAutoMergedCells:!1,includeCalcModelCache:!1,includeUnusedNames:!0,includeEmptyRegionCells:!0};y.export(e=>{fileSaver.saveAs(e,`${t}.xlsx`)},()=>{},s),y.destroy()},mergeWorkbooksToExcelOrPdf:(e,l,...t)=>__awaiter(void 0,[e,l,...t],void 0,function*(e,l,t=!0,a,n=[{name:"宋体",type:"normal",url:"/spreadJsFonts/simsun.ttf"},{name:"Arial",type:"normal",url:"/spreadJsFonts/arial.ttf"}],y=77,o=!1){if(!l||0==l.length)return;t||(yield WorkbookUtils.registerFont(e,n));const x=new e.Spread.Sheets.Workbook;x.suspendPaint(),x.fromJSON(l[0].toJSON());for(let t=1;t<l.length;t++){const a=new e.Spread.Sheets.Workbook;a.suspendPaint(),a.fromJSON(l[t].toJSON());const n=t+"";a.getNamedStyles().forEach(function(e){e.name=`new_${n}_${e.name}`,x.addNamedStyle(e)});let y=a.getSheet(0),o=JSON.stringify(y.toJSON());o=o.replace(/"style":"/g,'"style":"new_'+n+"_"),o=o.replace(/"parentName":"/g,'"parentName":"new_'+n+"_");let r=new e.Spread.Sheets.Worksheet(`newSheet${n}_`);x.addSheet(x.getSheetCount(),r),r.fromJSON(JSON.parse(o));const s=r.getRowCount(),i=x.getSheet(0);i.addRows(i.getRowCount(),s);let u=i.getRowCount()-s;const m=[new e.Spread.Sheets.Range(-1,-1,-1,-1)],c=[new e.Spread.Sheets.Range(u,0,s,r.getColumnCount())];x.commandManager().execute({cmd:"clipboardPaste",sheetName:i.name(),fromSheet:r,fromRanges:m,pastedRanges:c,isCutting:!1,clipboardText:"",pasteOption:e.Spread.Sheets.ClipboardPasteOptions.all}),x.removeSheet(x.getSheetCount()-1),i.clearSelection(),a.resumePaint(),a.destroy()}const r=x.getActiveSheet();if(r.zoom(1),r.options.rowHeaderVisible=!0,r.options.colHeaderVisible=!0,x.options.tabStripVisible=!0,x.options.showHorizontalScrollbar=!0,x.options.showVerticalScrollbar=!0,x.options.scrollbarMaxAlign=!1,!t){let l=x.getSheet(x.getSheetCount()-1).printInfo();l.margin({top:0,bottom:0,left:0,right:0,header:0,footer:0}),l.columnEnd(y),l.showBorder(!1),l.showGridLine(!1),l.blackAndWhite(!1),l.showRowHeader(e.Spread.Sheets.Print.PrintVisibilityType.hide),l.showColumnHeader(e.Spread.Sheets.Print.PrintVisibilityType.hide),l.zoomFactor(o?1:1.06)}return x.resumePaint(),t?WorkbookUtils.exportToExcel(e,x,a):x.savePDF(function(e){fileSaver.saveAs(e,`${a&&a.length>0?a:"文件"}.pdf`)},console.log),x}),registerFont:(e,l)=>__awaiter(void 0,void 0,void 0,function*(){return new Promise((t,a)=>__awaiter(void 0,void 0,void 0,function*(){try{l&&0!=l.length||t(null);for(let a=0;a<l.length;a++){const y=l[a],o=yield fetch(y.url,{method:"GET"});if(o.ok){const l=yield o.blob();var n=new FileReader;n.readAsArrayBuffer(l),n.onload=function(a){var o=n.result,x={};x[y.type]=o,e.Spread.Sheets.PDF.PDFFontsManager.registerFont(y.name,x),t(l)}}}}catch(e){a(e)}}))})};exports.BusinessUtils=BusinessUtils,exports.CommonUtils=CommonUtils,exports.EChartsUtils=EChartsUtils,exports.FormulaUtils=FormulaUtils,exports.SheetUtils=SheetUtils,exports.WorkbookUtils=WorkbookUtils;
|
|
2
2
|
//# sourceMappingURL=index.cjs.min.js.map
|