!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).pzfxParser={})}(this,(function(t){"use strict";function e(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}var n=e((function(t,e){const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r="["+n+"][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",i=new RegExp("^"+r+"$");e.isExist=function(t){return void 0!==t},e.isEmptyObject=function(t){return 0===Object.keys(t).length},e.merge=function(t,e,n){if(e){const r=Object.keys(e),i=r.length;for(let a=0;a<i;a++)t[r[a]]="strict"===n?[e[r[a]]]:e[r[a]]}},e.getValue=function(t){return e.isExist(t)?t:""},e.buildOptions=function(t,e,n){var r={};if(!t)return e;for(let i=0;i<n.length;i++)void 0!==t[n[i]]?r[n[i]]=t[n[i]]:r[n[i]]=e[n[i]];return r},e.isName=function(t){const e=i.exec(t);return!(null==e)},e.getAllMatches=function(t,e){const n=[];let r=e.exec(t);for(;r;){const i=[],a=r.length;for(let t=0;t<a;t++)i.push(r[t]);n.push(i),r=e.exec(t)}return n},e.nameRegexp=r}));const r=function(t,e){const i={};if(!(t.child&&!n.isEmptyObject(t.child)||t.attrsMap&&!n.isEmptyObject(t.attrsMap)))return n.isExist(t.val)?t.val:"";n.isExist(t.val)&&("string"!=typeof t.val||""!==t.val&&t.val!==e.cdataPositionChar)&&("strict"===e.arrayMode?i[e.textNodeName]=[t.val]:i[e.textNodeName]=t.val),n.merge(i,t.attrsMap,e.arrayMode);const a=Object.keys(t.child);for(let n=0;n<a.length;n++){var s=a[n];if(t.child[s]&&t.child[s].length>1)for(var o in i[s]=[],t.child[s])i[s].push(r(t.child[s][o],e));else if(!0===e.arrayMode){const n=r(t.child[s][0],e);i[s]="object"==typeof n?[n]:n}else"strict"===e.arrayMode?i[s]=[r(t.child[s][0],e)]:i[s]=r(t.child[s][0],e)}return i};var i={convertToJson:r},a=function(t,e,n){this.tagname=t,this.parent=e,this.child={},this.attrsMap={},this.val=n,this.addChild=function(t){Array.isArray(this.child[t.tagname])?this.child[t.tagname].push(t):this.child[t.tagname]=[t]}};const s=n.buildOptions;"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,n.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const o={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",tagValueProcessor:function(t,e){return t},attrValueProcessor:function(t,e){return t},stopNodes:[]};var l=o;const u=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];var c=u;function d(t,e,n){return e&&(n.trimValues&&(e=e.trim()),e=h(e=n.tagValueProcessor(e,t),n.parseNodeValue,n.parseTrueNumberOnly)),e}function f(t,e){if(e.ignoreNameSpace){const e=t.split(":"),n="/"===t.charAt(0)?"/":"";if("xmlns"===e[0])return"";2===e.length&&(t=n+e[1])}return t}function h(t,e,r){if(e&&"string"==typeof t){let e;return""===t.trim()||isNaN(t)?e="true"===t||"false"!==t&&t:(-1!==t.indexOf("0x")?e=Number.parseInt(t,16):-1!==t.indexOf(".")?(e=Number.parseFloat(t),t=t.replace(/\.?0+$/,"")):e=Number.parseInt(t,10),r&&(e=String(e)===t?e:t)),e}return n.isExist(t)?t:""}const p=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])(.*?)\\3)?","g");function g(t,e){if(!e.ignoreAttributes&&"string"==typeof t){t=t.replace(/\r?\n/g," ");const r=n.getAllMatches(t,p),i=r.length,a={};for(let t=0;t<i;t++){const n=f(r[t][1],e);n.length&&(void 0!==r[t][4]?(e.trimValues&&(r[t][4]=r[t][4].trim()),r[t][4]=e.attrValueProcessor(r[t][4],n),a[e.attributeNamePrefix+n]=h(r[t][4],e.parseAttributeValue,e.parseTrueNumberOnly)):e.allowBooleanAttributes&&(a[e.attributeNamePrefix+n]=!0))}if(!Object.keys(a).length)return;if(e.attrNodeName){const t={};return t[e.attrNodeName]=a,t}return a}}function m(t,e){let n,r="";for(let i=e;i<t.length;i++){let e=t[i];if(n)e===n&&(n="");else if('"'===e||"'"===e)n=e;else{if(">"===e)return{data:r,index:i};"\t"===e&&(e=" ")}r+=e}}function b(t,e,n,r){const i=t.indexOf(e,n);if(-1===i)throw new Error(r);return i+e.length-1}var N={defaultOptions:l,props:c,getTraversalObj:function(t,e){t=t.replace(/(\r\n)|\n/," "),e=s(e,o,u);const r=new a("!xml");let i=r,l="";for(let r=0;r<t.length;r++){if("<"===t[r])if("/"===t[r+1]){const a=b(t,">",r,"Closing Tag is not closed.");let s=t.substring(r+2,a).trim();if(e.ignoreNameSpace){const t=s.indexOf(":");-1!==t&&(s=s.substr(t+1))}i&&(i.val?i.val=n.getValue(i.val)+""+d(s,l,e):i.val=d(s,l,e)),e.stopNodes.length&&e.stopNodes.includes(i.tagname)&&(i.child=[],null==i.attrsMap&&(i.attrsMap={}),i.val=t.substr(i.startIndex+1,r-i.startIndex-1)),i=i.parent,l="",r=a}else if("?"===t[r+1])r=b(t,"?>",r,"Pi Tag is not closed.");else if("!--"===t.substr(r+1,3))r=b(t,"--\x3e",r,"Comment is not closed.");else if("!D"===t.substr(r+1,2)){const e=b(t,">",r,"DOCTYPE is not closed.");r=t.substring(r,e).indexOf("[")>=0?t.indexOf("]>",r)+1:e}else if("!["===t.substr(r+1,2)){const s=b(t,"]]>",r,"CDATA is not closed.")-2,o=t.substring(r+9,s);if(l&&(i.val=n.getValue(i.val)+""+d(i.tagname,l,e),l=""),e.cdataTagName){const t=new a(e.cdataTagName,i,o);i.addChild(t),i.val=n.getValue(i.val)+e.cdataPositionChar,o&&(t.val=o)}else i.val=(i.val||"")+(o||"");r=s+2}else{const s=m(t,r+1);let o=s.data;const u=s.index,c=o.indexOf(" ");let f=o;if(-1!==c&&(f=o.substr(0,c).trimRight(),o=o.substr(c+1)),e.ignoreNameSpace){const t=f.indexOf(":");-1!==t&&(f=f.substr(t+1))}if(i&&l&&"!xml"!==i.tagname&&(i.val=n.getValue(i.val)+""+d(i.tagname,l,e)),o.length>0&&o.lastIndexOf("/")===o.length-1){"/"===f[f.length-1]?(f=f.substr(0,f.length-1),o=f):o=o.substr(0,o.length-1);const t=new a(f,i,"");f!==o&&(t.attrsMap=g(o,e)),i.addChild(t)}else{const t=new a(f,i);e.stopNodes.length&&e.stopNodes.includes(t.tagname)&&(t.startIndex=u),f!==o&&(t.attrsMap=g(o,e)),i.addChild(t),i=t}l="",r=u}else l+=t[r]}return r}};const v={allowBooleanAttributes:!1},C=["allowBooleanAttributes"];function A(t,e){for(var n=e;e<t.length;e++)if("?"!=t[e]&&" "!=t[e]);else{var r=t.substr(n,e-n);if(e>5&&"xml"===r)return F("InvalidXml","XML declaration allowed only at the start of the document.",j(t,e));if("?"==t[e]&&">"==t[e+1]){e++;break}}return e}function y(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e<t.length;e++)if("-"===t[e]&&"-"===t[e+1]&&">"===t[e+2]){e+=2;break}}else if(t.length>e+8&&"D"===t[e+1]&&"O"===t[e+2]&&"C"===t[e+3]&&"T"===t[e+4]&&"Y"===t[e+5]&&"P"===t[e+6]&&"E"===t[e+7]){let n=1;for(e+=8;e<t.length;e++)if("<"===t[e])n++;else if(">"===t[e]&&(n--,0===n))break}else if(t.length>e+9&&"["===t[e+1]&&"C"===t[e+2]&&"D"===t[e+3]&&"A"===t[e+4]&&"T"===t[e+5]&&"A"===t[e+6]&&"["===t[e+7])for(e+=8;e<t.length;e++)if("]"===t[e]&&"]"===t[e+1]&&">"===t[e+2]){e+=2;break}return e}function x(t,e){let n="",r="",i=!1;for(;e<t.length;e++){if('"'===t[e]||"'"===t[e])if(""===r)r=t[e];else{if(r!==t[e])continue;r=""}else if(">"===t[e]&&""===r){i=!0;break}n+=t[e]}return""===r&&{value:n,index:e,tagClosed:i}}const T=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function P(t,e){const r=n.getAllMatches(t,T),i={};for(let n=0;n<r.length;n++){if(0===r[n][1].length)return F("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",D(t,r[n][0]));if(void 0===r[n][3]&&!e.allowBooleanAttributes)return F("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",D(t,r[n][0]));const a=r[n][2];if(!E(a))return F("InvalidAttr","Attribute '"+a+"' is an invalid name.",D(t,r[n][0]));if(i.hasOwnProperty(a))return F("InvalidAttr","Attribute '"+a+"' is repeated.",D(t,r[n][0]));i[a]=1}return!0}function O(t,e){if(";"===t[++e])return-1;if("#"===t[e])return function(t,e){let n=/\d/;for("x"===t[e]&&(e++,n=/[\da-fA-F]/);e<t.length;e++){if(";"===t[e])return e;if(!t[e].match(n))break}return-1}(t,++e);let n=0;for(;e<t.length;e++,n++)if(!(t[e].match(/\w/)&&n<20)){if(";"===t[e])break;return-1}return e}function F(t,e,n){return{err:{code:t,msg:e,line:n}}}function E(t){return n.isName(t)}function j(t,e){return t.substring(0,e).split(/\r?\n/).length}function D(t,e){return t.indexOf(e)+e.length}var w=function(t,e){e=n.buildOptions(e,v,C);const r=[];let i=!1,a=!1;"\ufeff"===t[0]&&(t=t.substr(1));for(let o=0;o<t.length;o++){if("<"!==t[o]){if(" "===t[o]||"\t"===t[o]||"\n"===t[o]||"\r"===t[o])continue;return F("InvalidChar","char '"+t[o]+"' is not expected.",j(t,o))}if(o++,"?"===t[o]){if(o=A(t,++o),o.err)return o}else{if("!"===t[o]){o=y(t,o);continue}{let l=!1;"/"===t[o]&&(l=!0,o++);let u="";for(;o<t.length&&">"!==t[o]&&" "!==t[o]&&"\t"!==t[o]&&"\n"!==t[o]&&"\r"!==t[o];o++)u+=t[o];if(u=u.trim(),"/"===u[u.length-1]&&(u=u.substring(0,u.length-1),o--),s=u,!n.isName(s)){let e;return e=0===u.trim().length?"There is an unnecessary space between tag name and backward slash '</ ..'.":"Tag '"+u+"' is an invalid name.",F("InvalidTag",e,j(t,o))}const c=x(t,o);if(!1===c)return F("InvalidAttr","Attributes for '"+u+"' have open quote.",j(t,o));let d=c.value;if(o=c.index,"/"===d[d.length-1]){d=d.substring(0,d.length-1);const n=P(d,e);if(!0!==n)return F(n.err.code,n.err.msg,j(t,o-d.length+n.err.line));i=!0}else if(l){if(!c.tagClosed)return F("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",j(t,o));if(d.trim().length>0)return F("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",j(t,o));{const e=r.pop();if(u!==e)return F("InvalidTag","Closing tag '"+e+"' is expected inplace of '"+u+"'.",j(t,o));0==r.length&&(a=!0)}}else{const n=P(d,e);if(!0!==n)return F(n.err.code,n.err.msg,j(t,o-d.length+n.err.line));if(!0===a)return F("InvalidXml","Multiple possible root nodes found.",j(t,o));r.push(u),i=!0}for(o++;o<t.length;o++){if("<"===t[o]){if("!"===t[o+1]){o++,o=y(t,o);continue}break}if("&"===t[o]){const e=O(t,o);if(-1==e)return F("InvalidChar","char '&' is not expected.",j(t,o));o=e}}"<"===t[o]&&o--}}}var s;return i?!(r.length>0)||F("InvalidXml","Invalid '"+JSON.stringify(r,null,4).replace(/\r?\n/g,"")+"' found.",1):F("InvalidXml","Start tag expected.",1)};const S=function(t){return String.fromCharCode(t)},V={nilChar:S(176),missingChar:S(201),nilPremitive:S(175),missingPremitive:S(200),emptyChar:S(178),emptyValue:S(177),boundryChar:S(179),objStart:S(198),arrStart:S(204),arrayEnd:S(185)},M=[V.nilChar,V.nilPremitive,V.missingChar,V.missingPremitive,V.boundryChar,V.emptyChar,V.emptyValue,V.arrayEnd,V.objStart,V.arrStart],I=function(t,e,n){if("string"==typeof e)return t&&t[0]&&void 0!==t[0].val?Y(t[0].val):Y(t);{const i=void 0===(r=t)?V.missingChar:null===r?V.nilChar:!(r.child&&0===Object.keys(r.child).length&&(!r.attrsMap||0===Object.keys(r.attrsMap).length))||V.emptyChar;if(!0===i){let r="";if(Array.isArray(e)){r+=V.arrStart;const i=e[0],a=t.length;if("string"==typeof i)for(let e=0;e<a;e++){const n=Y(t[e].val);r=k(r,n)}else for(let e=0;e<a;e++){const a=I(t[e],i,n);r=k(r,a)}r+=V.arrayEnd}else{r+=V.objStart;const i=Object.keys(e);Array.isArray(t)&&(t=t[0]);for(let a in i){const s=i[a];let o;o=!n.ignoreAttributes&&t.attrsMap&&t.attrsMap[s]?I(t.attrsMap[s],e[s],n):s===n.textNodeName?I(t.val,e[s],n):I(t.child[s],e[s],n),r=k(r,o)}}return r}return i}var r},Y=function(t){switch(t){case void 0:return V.missingPremitive;case null:return V.nilPremitive;case"":return V.emptyValue;default:return t}},k=function(t,e){return B(e[0])||B(t[t.length-1])||(t+=V.boundryChar),t+e},B=function(t){return-1!==M.indexOf(t)};const _=n.buildOptions;var X={convert2nimn:function(t,e,n){return n=_(n,N.defaultOptions,N.props),I(t,e,n)}};const J=n.buildOptions,L=function(t,e,r){let i="{";const a=Object.keys(t.child);for(let n=0;n<a.length;n++){var s=a[n];if(t.child[s]&&t.child[s].length>1){for(var o in i+='"'+s+'" : [ ',t.child[s])i+=L(t.child[s][o],e)+" , ";i=i.substr(0,i.length-1)+" ] "}else i+='"'+s+'" : '+L(t.child[s][0],e)+" ,"}return n.merge(i,t.attrsMap),n.isEmptyObject(i)?n.isExist(t.val)?t.val:"":(n.isExist(t.val)&&("string"!=typeof t.val||""!==t.val&&t.val!==e.cdataPositionChar)&&(i+='"'+e.textNodeName+'" : '+(!0!==(l=t.val)&&!1!==l&&isNaN(l)?'"'+l+'"':l)),","===i[i.length-1]&&(i=i.substr(0,i.length-2)),i+"}");var l};var R={convertToJsonString:function(t,e){return(e=J(e,N.defaultOptions,N.props)).indentBy=e.indentBy||"",L(t,e)}};const z=n.buildOptions,G={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:"  ",supressEmptyNode:!1,tagValueProcessor:function(t){return t},attrValueProcessor:function(t){return t}},q=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function Z(t){this.options=z(t,G,q),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=et),this.options.cdataTagName?this.isCDATA=nt:this.isCDATA=function(){return!1},this.replaceCDATAstr=$,this.replaceCDATAarr=H,this.options.format?(this.indentate=tt,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=U,this.buildObjNode=K):(this.buildTextNode=Q,this.buildObjNode=W),this.buildTextValNode=Q,this.buildObjectNode=W}function $(t,e){return t=this.options.tagValueProcessor(""+t),""===this.options.cdataPositionChar||""===t?t+"<![CDATA["+e+"]]"+this.tagEndChar:t.replace(this.options.cdataPositionChar,"<![CDATA["+e+"]]"+this.tagEndChar)}function H(t,e){if(t=this.options.tagValueProcessor(""+t),""===this.options.cdataPositionChar||""===t)return t+"<![CDATA["+e.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let n in e)t=t.replace(this.options.cdataPositionChar,"<![CDATA["+e[n]+"]]>");return t+this.newLine}function W(t,e,n,r){return n&&!t.includes("<")?this.indentate(r)+"<"+e+n+">"+t+"</"+e+this.tagEndChar:this.indentate(r)+"<"+e+n+this.tagEndChar+t+this.indentate(r)+"</"+e+this.tagEndChar}function K(t,e,n,r){return""!==t?this.buildObjectNode(t,e,n,r):this.indentate(r)+"<"+e+n+"/"+this.tagEndChar}function Q(t,e,n,r){return this.indentate(r)+"<"+e+n+">"+this.options.tagValueProcessor(t)+"</"+e+this.tagEndChar}function U(t,e,n,r){return""!==t?this.buildTextValNode(t,e,n,r):this.indentate(r)+"<"+e+n+"/"+this.tagEndChar}function tt(t){return this.options.indentBy.repeat(t)}function et(t){return!!t.startsWith(this.options.attributeNamePrefix)&&t.substr(this.attrPrefixLen)}function nt(t){return t===this.options.cdataTagName}Z.prototype.parse=function(t){return this.j2x(t,0).val},Z.prototype.j2x=function(t,e){let n="",r="";const i=Object.keys(t),a=i.length;for(let s=0;s<a;s++){const a=i[s];if(void 0===t[a]);else if(null===t[a])r+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)r+=this.buildTextNode(t[a],a,"",e);else if("object"!=typeof t[a]){const i=this.isAttribute(a);i?n+=" "+i+'="'+this.options.attrValueProcessor(""+t[a])+'"':this.isCDATA(a)?t[this.options.textNodeName]?r+=this.replaceCDATAstr(t[this.options.textNodeName],t[a]):r+=this.replaceCDATAstr("",t[a]):a===this.options.textNodeName?t[this.options.cdataTagName]||(r+=this.options.tagValueProcessor(""+t[a])):r+=this.buildTextNode(t[a],a,"",e)}else if(Array.isArray(t[a]))if(this.isCDATA(a))r+=this.indentate(e),t[this.options.textNodeName]?r+=this.replaceCDATAarr(t[this.options.textNodeName],t[a]):r+=this.replaceCDATAarr("",t[a]);else{const n=t[a].length;for(let i=0;i<n;i++){const n=t[a][i];if(void 0===n);else if(null===n)r+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if("object"==typeof n){const t=this.j2x(n,e+1);r+=this.buildObjNode(t.val,a,t.attrStr,e)}else r+=this.buildTextNode(n,a,"",e)}}else if(this.options.attrNodeName&&a===this.options.attrNodeName){const e=Object.keys(t[a]),r=e.length;for(let i=0;i<r;i++)n+=" "+e[i]+'="'+this.options.attrValueProcessor(""+t[a][e[i]])+'"'}else{const n=this.j2x(t[a],e+1);r+=this.buildObjNode(n.val,a,n.attrStr,e)}}return{attrStr:n,val:r}};var rt=Z,it=e((function(t,e){const r=N,a=n.buildOptions;e.parse=function(t,e,n){if(n){!0===n&&(n={});const e=w(t,n);if(!0!==e)throw Error(e.err.msg)}e=a(e,r.defaultOptions,r.props);const s=N.getTraversalObj(t,e);return i.convertToJson(s,e)},e.convertTonimn=X.convert2nimn,e.getTraversalObj=N.getTraversalObj,e.convertToJson=i.convertToJson,e.convertToJsonString=R.convertToJsonString,e.validate=w,e.j2xParser=rt,e.parseToNimn=function(t,n,r){return e.convertTonimn(e.getTraversalObj(t,r),n,r)}}));function at(t){let e=[];if(!t)return e;if(Array.isArray(t))for(let n=0;n<t.length;n++){let r=Object.assign(t[n]._attr,{title:t[n].Title});t[0].XColumn&&(r.x={label:st(t[n].XColumn.Title),data:t[n].XColumn.Subcolumn.d});let i=[];if(Array.isArray(t[n].YColumn)){for(let e=0;e<t[n].YColumn.length;e++)i.push({label:st(t[n].YColumn[e].Title),data:Array.isArray(t[n].YColumn[e].Subcolumn)?t[n].YColumn[e].Subcolumn.map((t=>t.d)):t[n].YColumn[e].Subcolumn.d});r.y=i}else i.push({label:st(t[n].YColumn.Title),data:Array.isArray(t[n].YColumn.Subcolumn)?t[n].YColumn.Subcolumn.map((t=>t.d)):t[n].YColumn.Subcolumn.d}),r.y=i;e.push(r)}else{let n=Object.assign(t._attr,{title:t.Title});t.XColumn&&(n.x={label:st(t.XColumn.Title),data:t.XColumn.Subcolumn.d});let r=[];if(Array.isArray(t.YColumn))for(let e=0;e<t.YColumn.length;e++)r.push({label:st(t.YColumn[e].Title),data:Array.isArray(t.YColumn[e].Subcolumn)?t.YColumn[e].Subcolumn.map((t=>t.d)):t.YColumn[e].Subcolumn.d});else r.push({label:st(t.YColumn.Title),data:Array.isArray(t.YColumn.Subcolumn)?t.YColumn.Subcolumn.map((t=>t.d)):t.YColumn.Subcolumn.d});n.y=r,e.push(n)}return e}function st(t){let e;if("object"!=typeof t)return t;e=Object.entries(t)[0].filter((t=>t._data))[0]._data;return e}function ot(t,e={}){const{encoding:n="utf8"}=e;return"undefined"!=typeof Buffer&&t instanceof Buffer?t.toString(n):"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?new TextDecoder(n).decode(t):t}t.ensureText=ot,t.pzfxParser=function(t){if("string"!=typeof(t=ot(t)))throw new TypeError("pzfx must be a string");const e=it.parse(t,{textNodeName:"_data",attributeNamePrefix:"",parseAttributeValue:!0,attrNodeName:"_attr",ignoreAttributes:!1}),n=at(e.GraphPadPrismFile.Table),r=at(e.GraphPadPrismFile.HugeTable),i=e.GraphPadPrismFile.Info.Constant;let a={};for(let t=0;t<i.length;t++)a[i[t].Name.replace(/ /g,"")]=i[t].Value;return a.notes=st(e.GraphPadPrismFile.Info.Notes),{parsed:e,information:a,table:n,hugeTable:r}},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=pzfx-parser.min.js.map
