UNPKG

@supermapgis/iclient-maplibregl

Version:

@supermapgis/iclient-maplibregl 是一套基于 Maplibre GL 的云 GIS 网络客户端开发平台, 支持访问 SuperMap iServer / iEdge / iPortal / iManager / Online 的地图、服务和资源,为用户提供了完整专业的 GIS 能力, 同时提供了优秀的可视化功能。

8 lines 1.86 MB
/*! * * iclient-maplibregl * Copyright© 2000 - 2024 SuperMap Software Co.Ltd * license: Apache-2.0 * version: v11.3.0 * */(()=>{var e={454:(e,t,r)=>{"use strict";const i=r(918),s=r(923),n=r(904);e.exports={XMLParser:s,XMLValidator:i,XMLBuilder:n}},85:e=>{e.exports=function(e){return"function"==typeof e?e:Array.isArray(e)?t=>{for(const r of e){if("string"==typeof r&&t===r)return!0;if(r instanceof RegExp&&r.test(t))return!0}}:()=>!1}},334:(e,t)=>{"use strict";const r=":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",i="["+r+"][: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]*",s=new RegExp("^"+i+"$");t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,r){if(t){const i=Object.keys(t),s=i.length;for(let n=0;n<s;n++)e[i[n]]="strict"===r?[t[i[n]]]:t[i[n]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(e){const t=s.exec(e);return!(null===t||void 0===t)},t.getAllMatches=function(e,t){const r=[];let i=t.exec(e);for(;i;){const s=[];s.startIndex=t.lastIndex-i[0].length;const n=i.length;for(let e=0;e<n;e++)s.push(i[e]);r.push(s),i=t.exec(e)}return r},t.nameRegexp=i},918:(e,t,r)=>{"use strict";const i=r(334),s={allowBooleanAttributes:!1,unpairedTags:[]};function n(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function a(e,t){const r=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const i=e.substr(r,t-r);if(t>5&&"xml"===i)return f("InvalidXml","XML declaration allowed only at the start of the document.",g(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function o(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let r=1;for(t+=8;t<e.length;t++)if("<"===e[t])r++;else if(">"===e[t]&&0===--r)break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}t.validate=function(e,t){t=Object.assign({},s,t);const r=[];let l=!1,u=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let s=0;s<e.length;s++)if("<"===e[s]&&"?"===e[s+1]){if((s=a(e,s+=2)).err)return s}else{if("<"!==e[s]){if(n(e[s]))continue;return f("InvalidChar","char '"+e[s]+"' is not expected.",g(e,s))}{let y=s;if("!"===e[++s]){s=o(e,s);continue}{let m=!1;"/"===e[s]&&(m=!0,s++);let A="";for(;s<e.length&&">"!==e[s]&&" "!==e[s]&&"\t"!==e[s]&&"\n"!==e[s]&&"\r"!==e[s];s++)A+=e[s];if("/"===(A=A.trim())[A.length-1]&&(A=A.substring(0,A.length-1),s--),c=A,!i.isName(c)){let t;return f("InvalidTag",t=0===A.trim().length?"Invalid space after '<'.":"Tag '"+A+"' is an invalid name.",g(e,s))}const v=h(e,s);if(!1===v)return f("InvalidAttr","Attributes for '"+A+"' have open quote.",g(e,s));let b=v.value;if(s=v.index,"/"===b[b.length-1]){const r=s-b.length,i=p(b=b.substring(0,b.length-1),t);if(!0!==i)return f(i.err.code,i.err.msg,g(e,r+i.err.line));l=!0}else if(m){if(!v.tagClosed)return f("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",g(e,s));if(b.trim().length>0)return f("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",g(e,y));if(0===r.length)return f("InvalidTag","Closing tag '"+A+"' has not been opened.",g(e,y));{const t=r.pop();if(A!==t.tagName){let r=g(e,t.tagStartPos);return f("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+r.line+", col "+r.col+") instead of closing tag '"+A+"'.",g(e,y))}0==r.length&&(u=!0)}}else{const i=p(b,t);if(!0!==i)return f(i.err.code,i.err.msg,g(e,s-b.length+i.err.line));if(!0===u)return f("InvalidXml","Multiple possible root nodes found.",g(e,s));-1!==t.unpairedTags.indexOf(A)||r.push({tagName:A,tagStartPos:y}),l=!0}for(s++;s<e.length;s++)if("<"===e[s]){if("!"===e[s+1]){s=o(e,++s);continue}if("?"!==e[s+1])break;if((s=a(e,++s)).err)return s}else if("&"===e[s]){const t=d(e,s);if(-1==t)return f("InvalidChar","char '&' is not expected.",g(e,s));s=t}else if(!0===u&&!n(e[s]))return f("InvalidXml","Extra text at the end",g(e,s));"<"===e[s]&&s--}}}var c;return l?1==r.length?f("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",g(e,r[0].tagStartPos)):!(r.length>0)||f("InvalidXml","Invalid '"+JSON.stringify(r.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):f("InvalidXml","Start tag expected.",1)};const l='"',u="'";function h(e,t){let r="",i="",s=!1;for(;t<e.length;t++){if(e[t]===l||e[t]===u)""===i?i=e[t]:i!==e[t]||(i="");else if(">"===e[t]&&""===i){s=!0;break}r+=e[t]}return""===i&&{value:r,index:t,tagClosed:s}}const c=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function p(e,t){const r=i.getAllMatches(e,c),s={};for(let e=0;e<r.length;e++){if(0===r[e][1].length)return f("InvalidAttr","Attribute '"+r[e][2]+"' has no space in starting.",y(r[e]));if(void 0!==r[e][3]&&void 0===r[e][4])return f("InvalidAttr","Attribute '"+r[e][2]+"' is without value.",y(r[e]));if(void 0===r[e][3]&&!t.allowBooleanAttributes)return f("InvalidAttr","boolean attribute '"+r[e][2]+"' is not allowed.",y(r[e]));const n=r[e][2];if(n=n,!i.isName(n))return f("InvalidAttr","Attribute '"+n+"' is an invalid name.",y(r[e]));if(s.hasOwnProperty(n))return f("InvalidAttr","Attribute '"+n+"' is repeated.",y(r[e]));s[n]=1}var n;return!0}function d(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let r=/\d/;for("x"===e[t]&&(t++,r=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(r))break}return-1}(e,++t);let r=0;for(;t<e.length;t++,r++)if(!(e[t].match(/\w/)&&r<20)){if(";"===e[t])break;return-1}return t}function f(e,t,r){return{err:{code:e,msg:t,line:r.line||r,col:r.col}}}function g(e,t){const r=e.substring(0,t).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function y(e){return e.startIndex+e[1].length}},904:(e,t,r)=>{"use strict";const i=r(788),s=r(85),n={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function a(e){this.options=Object.assign({},n,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=s(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=u),this.processTextOrObjNode=o,this.options.format?(this.indentate=l,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function o(e,t,r,i){const s=this.j2x(e,r+1,i.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,s.attrStr,r):this.buildObjectNode(s.val,t,s.attrStr,r)}function l(e){return this.options.indentBy.repeat(e)}function u(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}a.prototype.build=function(e){return this.options.preserveOrder?i(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},a.prototype.j2x=function(e,t,r){let i="",s="";const n=r.join(".");for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a))if(void 0===e[a])this.isAttribute(a)&&(s+="");else if(null===e[a])this.isAttribute(a)?s+="":"?"===a[0]?s+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(e[a]instanceof Date)s+=this.buildTextValNode(e[a],a,"",t);else if("object"!=typeof e[a]){const r=this.isAttribute(a);if(r&&!this.ignoreAttributesFn(r,n))i+=this.buildAttrPairStr(r,""+e[a]);else if(!r)if(a===this.options.textNodeName){let t=this.options.tagValueProcessor(a,""+e[a]);s+=this.replaceEntitiesValue(t)}else s+=this.buildTextValNode(e[a],a,"",t)}else if(Array.isArray(e[a])){const i=e[a].length;let n="",o="";for(let l=0;l<i;l++){const i=e[a][l];if(void 0===i);else if(null===i)"?"===a[0]?s+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if("object"==typeof i)if(this.options.oneListGroup){const e=this.j2x(i,t+1,r.concat(a));n+=e.val,this.options.attributesGroupName&&i.hasOwnProperty(this.options.attributesGroupName)&&(o+=e.attrStr)}else n+=this.processTextOrObjNode(i,a,t,r);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(a,i);n+=e=this.replaceEntitiesValue(e)}else n+=this.buildTextValNode(i,a,"",t)}this.options.oneListGroup&&(n=this.buildObjectNode(n,a,o,t)),s+=n}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){const t=Object.keys(e[a]),r=t.length;for(let s=0;s<r;s++)i+=this.buildAttrPairStr(t[s],""+e[a][t[s]])}else s+=this.processTextOrObjNode(e[a],a,t,r);return{attrStr:i,val:s}},a.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},a.prototype.buildObjectNode=function(e,t,r,i){if(""===e)return"?"===t[0]?this.indentate(i)+"<"+t+r+"?"+this.tagEndChar:this.indentate(i)+"<"+t+r+this.closeTag(t)+this.tagEndChar;{let s="</"+t+this.tagEndChar,n="";return"?"===t[0]&&(n="?",s=""),!r&&""!==r||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===n.length?this.indentate(i)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(i)+"<"+t+r+n+this.tagEndChar+e+this.indentate(i)+s:this.indentate(i)+"<"+t+r+n+">"+e+s}},a.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},a.prototype.buildTextValNode=function(e,t,r,i){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(i)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(i)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(i)+"<"+t+r+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(t,e);return""===(s=this.replaceEntitiesValue(s))?this.indentate(i)+"<"+t+r+this.closeTag(t)+this.tagEndChar:this.indentate(i)+"<"+t+r+">"+s+"</"+t+this.tagEndChar}},a.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const r=this.options.entities[t];e=e.replace(r.regex,r.val)}return e},e.exports=a},788:e=>{const t="\n";function r(e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const i=t[r];if(e.hasOwnProperty(i)&&":@"!==i)return i}}function i(e,t){let r="";if(e&&!t.ignoreAttributes)for(let i in e){if(!e.hasOwnProperty(i))continue;let s=t.attributeValueProcessor(i,e[i]);!0===(s=n(s,t))&&t.suppressBooleanAttributes?r+=` ${i.substr(t.attributeNamePrefix.length)}`:r+=` ${i.substr(t.attributeNamePrefix.length)}="${s}"`}return r}function s(e,t){let r=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let i in t.stopNodes)if(t.stopNodes[i]===e||t.stopNodes[i]==="*."+r)return!0;return!1}function n(e,t){if(e&&e.length>0&&t.processEntities)for(let r=0;r<t.entities.length;r++){const i=t.entities[r];e=e.replace(i.regex,i.val)}return e}e.exports=function(e,a){let o="";return a.format&&a.indentBy.length>0&&(o=t),function e(t,a,o,l){let u="",h=!1;for(let c=0;c<t.length;c++){const p=t[c],d=r(p);if(void 0===d)continue;let f="";if(f=0===o.length?d:`${o}.${d}`,d===a.textNodeName){let e=p[d];s(f,a)||(e=n(e=a.tagValueProcessor(d,e),a)),h&&(u+=l),u+=e,h=!1;continue}if(d===a.cdataPropName){h&&(u+=l),u+=`<![CDATA[${p[d][0][a.textNodeName]}]]>`,h=!1;continue}if(d===a.commentPropName){u+=l+`\x3c!--${p[d][0][a.textNodeName]}--\x3e`,h=!0;continue}if("?"===d[0]){const e=i(p[":@"],a),t="?xml"===d?"":l;let r=p[d][0][a.textNodeName];r=0!==r.length?" "+r:"",u+=t+`<${d}${r}${e}?>`,h=!0;continue}let g=l;""!==g&&(g+=a.indentBy);const y=i(p[":@"],a),m=l+`<${d}${y}`,A=e(p[d],a,f,g);-1!==a.unpairedTags.indexOf(d)?a.suppressUnpairedNode?u+=m+">":u+=m+"/>":A&&0!==A.length||!a.suppressEmptyNode?A&&A.endsWith(">")?u+=m+`>${A}${l}</${d}>`:(u+=m+">",A&&""!==l&&(A.includes("/>")||A.includes("</"))?u+=l+a.indentBy+A+l:u+=A,u+=`</${d}>`):u+=m+"/>",h=!0}return u}(e,a,"",o)}},400:(e,t,r)=>{const i=r(334);function s(e,t){let r="";for(;t<e.length&&"'"!==e[t]&&'"'!==e[t];t++)r+=e[t];if(-1!==(r=r.trim()).indexOf(" "))throw new Error("External entites are not supported");const i=e[t++];let s="";for(;t<e.length&&e[t]!==i;t++)s+=e[t];return[r,s,t]}function n(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}function a(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"N"===e[t+3]&&"T"===e[t+4]&&"I"===e[t+5]&&"T"===e[t+6]&&"Y"===e[t+7]}function o(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"L"===e[t+3]&&"E"===e[t+4]&&"M"===e[t+5]&&"E"===e[t+6]&&"N"===e[t+7]&&"T"===e[t+8]}function l(e,t){return"!"===e[t+1]&&"A"===e[t+2]&&"T"===e[t+3]&&"T"===e[t+4]&&"L"===e[t+5]&&"I"===e[t+6]&&"S"===e[t+7]&&"T"===e[t+8]}function u(e,t){return"!"===e[t+1]&&"N"===e[t+2]&&"O"===e[t+3]&&"T"===e[t+4]&&"A"===e[t+5]&&"T"===e[t+6]&&"I"===e[t+7]&&"O"===e[t+8]&&"N"===e[t+9]}function h(e){if(i.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}e.exports=function(e,t){const r={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let i=1,c=!1,p=!1,d="";for(;t<e.length;t++)if("<"!==e[t]||p)if(">"===e[t]){if(p?"-"===e[t-1]&&"-"===e[t-2]&&(p=!1,i--):i--,0===i)break}else"["===e[t]?c=!0:d+=e[t];else{if(c&&a(e,t))t+=7,[entityName,val,t]=s(e,t+1),-1===val.indexOf("&")&&(r[h(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(c&&o(e,t))t+=8;else if(c&&l(e,t))t+=8;else if(c&&u(e,t))t+=9;else{if(!n)throw new Error("Invalid DOCTYPE");p=!0}i++,d=""}if(0!==i)throw new Error("Unclosed DOCTYPE")}return{entities:r,i:t}}},460:(e,t)=>{const r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,r){return e}};t.buildOptions=function(e){return Object.assign({},r,e)},t.defaultOptions=r},680:(e,t,r)=>{"use strict";const i=r(334),s=r(832),n=r(400),a=r(983),o=r(85);function l(e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const i=t[r];this.lastEntities[i]={regex:new RegExp("&"+i+";","g"),val:e[i]}}}function u(e,t,r,i,s,n,a){if(void 0!==e&&(this.options.trimValues&&!i&&(e=e.trim()),e.length>0)){a||(e=this.replaceEntitiesValue(e));const i=this.options.tagValueProcessor(t,e,r,s,n);if(null===i||void 0===i)return e;if(typeof i!=typeof e||i!==e)return i;if(this.options.trimValues)return C(e,this.options.parseTagValue,this.options.numberParseOptions);return e.trim()===e?C(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function h(e){if(this.options.removeNSPrefix){const t=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=r+t[1])}return e}const c=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function p(e,t,r){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const r=i.getAllMatches(e,c),s=r.length,n={};for(let e=0;e<s;e++){const i=this.resolveNameSpace(r[e][1]);if(this.ignoreAttributesFn(i,t))continue;let s=r[e][4],a=this.options.attributeNamePrefix+i;if(i.length)if(this.options.transformAttributeName&&(a=this.options.transformAttributeName(a)),"__proto__"===a&&(a="#__proto__"),void 0!==s){this.options.trimValues&&(s=s.trim()),s=this.replaceEntitiesValue(s);const e=this.options.attributeValueProcessor(i,s,t);n[a]=null===e||void 0===e?s:typeof e!=typeof s||e!==s?e:C(s,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(n[a]=!0)}if(!Object.keys(n).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=n,e}return n}}const d=function(e){e=e.replace(/\r\n?/g,"\n");const t=new s("!xml");let r=t,i="",a="";for(let o=0;o<e.length;o++){if("<"===e[o])if("/"===e[o+1]){const t=A(e,">",o,"Closing Tag is not closed.");let s=e.substring(o+2,t).trim();if(this.options.removeNSPrefix){const e=s.indexOf(":");-1!==e&&(s=s.substr(e+1))}this.options.transformTagName&&(s=this.options.transformTagName(s)),r&&(i=this.saveTextToParentTag(i,r,a));const n=a.substring(a.lastIndexOf(".")+1);if(s&&-1!==this.options.unpairedTags.indexOf(s))throw new Error(`Unpaired tag can not be used as closing tag: </${s}>`);let l=0;n&&-1!==this.options.unpairedTags.indexOf(n)?(l=a.lastIndexOf(".",a.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=a.lastIndexOf("."),a=a.substring(0,l),r=this.tagsNodeStack.pop(),i="",o=t}else if("?"===e[o+1]){let t=v(e,o,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,r,a),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new s(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,a,t.tagName)),this.addChild(r,e,a)}o=t.closeIndex+1}else if("!--"===e.substr(o+1,3)){const t=A(e,"--\x3e",o+4,"Comment is not closed.");if(this.options.commentPropName){const s=e.substring(o+4,t-2);i=this.saveTextToParentTag(i,r,a),r.add(this.options.commentPropName,[{[this.options.textNodeName]:s}])}o=t}else if("!D"===e.substr(o+1,2)){const t=n(e,o);this.docTypeEntities=t.entities,o=t.i}else if("!["===e.substr(o+1,2)){const t=A(e,"]]>",o,"CDATA is not closed.")-2,s=e.substring(o+9,t);i=this.saveTextToParentTag(i,r,a);let n=this.parseTextData(s,r.tagname,a,!0,!1,!0,!0);void 0==n&&(n=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:s}]):r.add(this.options.textNodeName,n),o=t+2}else{let n=v(e,o,this.options.removeNSPrefix),l=n.tagName;const u=n.rawTagName;let h=n.tagExp,c=n.attrExpPresent,p=n.closeIndex;this.options.transformTagName&&(l=this.options.transformTagName(l)),r&&i&&"!xml"!==r.tagname&&(i=this.saveTextToParentTag(i,r,a,!1));const d=r;if(d&&-1!==this.options.unpairedTags.indexOf(d.tagname)&&(r=this.tagsNodeStack.pop(),a=a.substring(0,a.lastIndexOf("."))),l!==t.tagname&&(a+=a?"."+l:l),this.isItStopNode(this.options.stopNodes,a,l)){let t="";if(h.length>0&&h.lastIndexOf("/")===h.length-1)"/"===l[l.length-1]?(l=l.substr(0,l.length-1),a=a.substr(0,a.length-1),h=l):h=h.substr(0,h.length-1),o=n.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(l))o=n.closeIndex;else{const r=this.readStopNodeData(e,u,p+1);if(!r)throw new Error(`Unexpected end of ${u}`);o=r.i,t=r.tagContent}const i=new s(l);l!==h&&c&&(i[":@"]=this.buildAttributesMap(h,a,l)),t&&(t=this.parseTextData(t,l,a,!0,c,!0,!0)),a=a.substr(0,a.lastIndexOf(".")),i.add(this.options.textNodeName,t),this.addChild(r,i,a)}else{if(h.length>0&&h.lastIndexOf("/")===h.length-1){"/"===l[l.length-1]?(l=l.substr(0,l.length-1),a=a.substr(0,a.length-1),h=l):h=h.substr(0,h.length-1),this.options.transformTagName&&(l=this.options.transformTagName(l));const e=new s(l);l!==h&&c&&(e[":@"]=this.buildAttributesMap(h,a,l)),this.addChild(r,e,a),a=a.substr(0,a.lastIndexOf("."))}else{const e=new s(l);this.tagsNodeStack.push(r),l!==h&&c&&(e[":@"]=this.buildAttributesMap(h,a,l)),this.addChild(r,e,a),r=e}i="",o=p}}else i+=e[o]}return t.child};function f(e,t,r){const i=this.options.updateTag(t.tagname,r,t[":@"]);!1===i||("string"==typeof i?(t.tagname=i,e.addChild(t)):e.addChild(t))}const g=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const r=this.docTypeEntities[t];e=e.replace(r.regx,r.val)}for(let t in this.lastEntities){const r=this.lastEntities[t];e=e.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const r=this.htmlEntities[t];e=e.replace(r.regex,r.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function y(e,t,r,i){return e&&(void 0===i&&(i=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,r,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,i))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function m(e,t,r){const i="*."+r;for(const r in e){const s=e[r];if(i===s||t===s)return!0}return!1}function A(e,t,r,i){const s=e.indexOf(t,r);if(-1===s)throw new Error(i);return s+t.length-1}function v(e,t,r,i=">"){const s=function(e,t,r=">"){let i,s="";for(let n=t;n<e.length;n++){let t=e[n];if(i)t===i&&(i="");else if('"'===t||"'"===t)i=t;else if(t===r[0]){if(!r[1])return{data:s,index:n};if(e[n+1]===r[1])return{data:s,index:n}}else"\t"===t&&(t=" ");s+=t}}(e,t+1,i);if(!s)return;let n=s.data;const a=s.index,o=n.search(/\s/);let l=n,u=!0;-1!==o&&(l=n.substring(0,o),n=n.substring(o+1).trimStart());const h=l;if(r){const e=l.indexOf(":");-1!==e&&(u=(l=l.substr(e+1))!==s.data.substr(e+1))}return{tagName:l,tagExp:n,closeIndex:a,attrExpPresent:u,rawTagName:h}}function b(e,t,r){const i=r;let s=1;for(;r<e.length;r++)if("<"===e[r])if("/"===e[r+1]){const n=A(e,">",r,`${t} is not closed`);if(e.substring(r+2,n).trim()===t&&0===--s)return{tagContent:e.substring(i,r),i:n};r=n}else if("?"===e[r+1]){r=A(e,"?>",r+1,"StopNode is not closed.")}else if("!--"===e.substr(r+1,3)){r=A(e,"--\x3e",r+3,"StopNode is not closed.")}else if("!["===e.substr(r+1,2)){r=A(e,"]]>",r,"StopNode is not closed.")-2}else{const i=v(e,r,">");if(i){(i&&i.tagName)===t&&"/"!==i.tagExp[i.tagExp.length-1]&&s++,r=i.closeIndex}}}function C(e,t,r){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&a(e,r)}return i.isExist(e)?e:""}e.exports=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,16))}},this.addExternalEntities=l,this.parseXml=d,this.parseTextData=u,this.resolveNameSpace=h,this.buildAttributesMap=p,this.isItStopNode=m,this.replaceEntitiesValue=g,this.readStopNodeData=b,this.saveTextToParentTag=y,this.addChild=f,this.ignoreAttributesFn=o(this.options.ignoreAttributes)}}},923:(e,t,r)=>{const{buildOptions:i}=r(460),s=r(680),{prettify:n}=r(629),a=r(918);e.exports=class{constructor(e){this.externalEntities={},this.options=i(e)}parse(e,t){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const r=a.validate(e,t);if(!0!==r)throw Error(`${r.err.msg}:${r.err.line}:${r.err.col}`)}const r=new s(this.options);r.addExternalEntities(this.externalEntities);const i=r.parseXml(e);return this.options.preserveOrder||void 0===i?i:n(i,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}},629:(e,t)=>{"use strict";function r(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const r=t[e];if(":@"!==r)return r}}function i(e,t,r,i){if(t){const s=Object.keys(t),n=s.length;for(let a=0;a<n;a++){const n=s[a];i.isArray(n,r+"."+n,!0,!0)?e[n]=[t[n]]:e[n]=t[n]}}}function s(e,t){const{textNodeName:r}=t,i=Object.keys(e).length;return 0===i||!(1!==i||!e[r]&&"boolean"!=typeof e[r]&&0!==e[r])}t.prettify=function(e,t){return function e(t,n,a){let o;const l={};for(let u=0;u<t.length;u++){const h=t[u],c=r(h);let p="";if(p=void 0===a?c:a+"."+c,c===n.textNodeName)void 0===o?o=h[c]:o+=""+h[c];else{if(void 0===c)continue;if(h[c]){let t=e(h[c],n,p);const r=s(t,n);h[":@"]?i(t,h[":@"],p,n):1!==Object.keys(t).length||void 0===t[n.textNodeName]||n.alwaysCreateTextNode?0===Object.keys(t).length&&(n.alwaysCreateTextNode?t[n.textNodeName]="":t=""):t=t[n.textNodeName],void 0!==l[c]&&l.hasOwnProperty(c)?(Array.isArray(l[c])||(l[c]=[l[c]]),l[c].push(t)):n.isArray(c,p,r)?l[c]=[t]:l[c]=t}}}return"string"==typeof o?o.length>0&&(l[n.textNodeName]=o):void 0!==o&&(l[n.textNodeName]=o),l}(e,t)}},832:e=>{"use strict";e.exports=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}},444:function(e){!function(t){"use strict";if(t.__disableNativeFetch||!t.fetch){o.prototype.append=function(e,t){e=n(e),t=a(t);var r=this.map[e];r||(r=[],this.map[e]=r),r.push(t)},o.prototype.delete=function(e){delete this.map[n(e)]},o.prototype.get=function(e){var t=this.map[n(e)];return t?t[0]:null},o.prototype.getAll=function(e){return this.map[n(e)]||[]},o.prototype.has=function(e){return this.map.hasOwnProperty(n(e))},o.prototype.set=function(e,t){this.map[n(e)]=[a(t)]},o.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(r){this.map[r].forEach(function(i){e.call(t,i,r,this)},this)},this)};var r={blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t},i=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this)},c.call(p.prototype),c.call(f.prototype),f.prototype.clone=function(){return new f(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},f.error=function(){var e=new f(null,{status:0,statusText:""});return e.type="error",e};var s=[301,302,303,307,308];f.redirect=function(e,t){if(-1===s.indexOf(t))throw new RangeError("Invalid status code");return new f(null,{status:t,headers:{location:e}})},t.Headers=o,t.Request=p,t.Response=f,t.fetch=function(e,t){return new Promise(function(i,s){var n;n=p.prototype.isPrototypeOf(e)&&!t?e:new p(e,t);var a=new XMLHttpRequest;var l=!1;function u(){if(4===a.readyState){var e=1223===a.status?204:a.status;if(e<100||e>599){if(l)return;return l=!0,void s(new TypeError("Network request failed"))}var t={status:e,statusText:a.statusText,headers:function(e){var t=new o;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var r=e.trim().split(":"),i=r.shift().trim(),s=r.join(":").trim();t.append(i,s)}),t}(a),url:"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0},r="response"in a?a.response:a.responseText;l||(l=!0,i(new f(r,t)))}}a.onreadystatechange=u,a.onload=u,a.onerror=function(){l||(l=!0,s(new TypeError("Network request failed")))},a.open(n.method,n.url,!0);try{"include"===n.credentials&&("withCredentials"in a?a.withCredentials=!0:console&&console.warn&&console.warn("withCredentials is not supported, you can ignore this warning"))}catch(e){console&&console.warn&&console.warn("set withCredentials error:"+e)}"responseType"in a&&r.blob&&(a.responseType="blob"),n.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===n._bodyInit?null:n._bodyInit)})},t.fetch.polyfill=!0,e.exports&&(e.exports=t.fetch)}function n(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function a(e){return"string"!=typeof e&&(e=String(e)),e}function o(e){this.map={},e instanceof o?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function h(e){var t=new FileReader;return t.readAsArrayBuffer(e),u(t)}function c(){return this.bodyUsed=!1,this._initBody=function(e,t){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(r.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e,this._options=t;else if(r.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!r.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},r.blob?(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(h)},this.text=function(){var e,t,r,i,s,n,a,o=l(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=this._options,r=new FileReader,i=t.headers.map["content-type"]?t.headers.map["content-type"].toString():"",s=/charset\=[0-9a-zA-Z\-\_]*;?/,n=e.type.match(s)||i.match(s),a=[e],n&&a.push(n[0].replace(/^charset\=/,"").replace(/;$/,"")),r.readAsText.apply(r,a),u(r);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=l(this);return e||Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(d)}),this.json=function(){return this.text().then(JSON.parse)},this}function p(e,t){var r,s,n=(t=t||{}).body;if(p.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=(r=t.method||this.method||"GET",s=r.toUpperCase(),i.indexOf(s)>-1?s:r),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n,t)}function d(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),i=r.shift().replace(/\+/g," "),s=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(s))}}),t}function f(e,t){t||(t={}),this._initBody(e,t),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof o?t.headers:new o(t.headers),this.url=t.url||""}}("undefined"!=typeof self?self:this)},348:function(e,t){var r,i,s;i=[t,e],void 0===(s="function"==typeof(r=function(e,t){"use strict";var r={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function i(e){try{delete window[e]}catch(t){window[e]=void 0}}function s(e){var t=document.getElementById(e);t&&document.getElementsByTagName("head")[0].removeChild(t)}t.exports=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=e,a=t.timeout||r.timeout,o=t.jsonpCallback||r.jsonpCallback,l=void 0;return new Promise(function(r,u){var h=t.jsonpCallbackFunction||"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),c=o+"_"+h;window[h]=function(e){r({ok:!0,json:function(){return Promise.resolve(e)}}),l&&clearTimeout(l),s(c),i(h)},n+=-1===n.indexOf("?")?"?":"&";var p=document.createElement("script");p.setAttribute("src",""+n+o+"="+h),t.charset&&p.setAttribute("charset",t.charset),p.id=c,document.getElementsByTagName("head")[0].appendChild(p),l=setTimeout(function(){u(new Error("JSONP request to "+e+" timed out")),i(h),s(c),window[h]=function(){i(h)}},a),p.onerror=function(){u(new Error("JSONP request to "+e+" failed")),i(h),s(c),l&&clearTimeout(l)}})}})?r.apply(t,i):r)||(e.exports=s)},238:e=>{var t=[],r=[],i="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function s(e,s){if(s=s||{},void 0===e)throw new Error(i);var n,a=!0===s.prepend?"prepend":"append",o=void 0!==s.container?s.container:document.querySelector("head"),l=t.indexOf(o);return-1===l&&(l=t.push(o)-1,r[l]={}),void 0!==r[l]&&void 0!==r[l][a]?n=r[l][a]:(n=r[l][a]=function(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}(),"prepend"===a?o.insertBefore(n,o.childNodes[0]):o.appendChild(n)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),n.styleSheet?n.styleSheet.cssText+=e:n.textContent+=e,n}e.exports=s,e.exports.insertCss=s},574:(e,t,r)=>{e=r.nmd(e);var i=200,s="__lodash_hash_undefined__",n=9007199254740991,a="[object Arguments]",o="[object Boolean]",l="[object Date]",u="[object Function]",h="[object GeneratorFunction]",c="[object Map]",p="[object Number]",d="[object Object]",f="[object RegExp]",g="[object Set]",y="[object String]",m="[object Symbol]",A="[object ArrayBuffer]",v="[object DataView]",b="[object Float32Array]",C="[object Float64Array]",I="[object Int8Array]",S="[object Int16Array]",E="[object Int32Array]",x="[object Uint8Array]",w="[object Uint8ClampedArray]",_="[object Uint16Array]",T="[object Uint32Array]",B=/\w*$/,M=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,L={};L[a]=L["[object Array]"]=L[A]=L[v]=L[o]=L[l]=L[b]=L[C]=L[I]=L[S]=L[E]=L[c]=L[p]=L[d]=L[f]=L[g]=L[y]=L[m]=L[x]=L[w]=L[_]=L[T]=!0,L["[object Error]"]=L[u]=L["[object WeakMap]"]=!1;var D="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,k="object"==typeof self&&self&&self.Object===Object&&self,O=D||k||Function("return this")(),P=t&&!t.nodeType&&t,R=P&&e&&!e.nodeType&&e,F=R&&R.exports===P;function Q(e,t){return e.set(t[0],t[1]),e}function U(e,t){return e.add(t),e}function G(e,t,r,i){var s=-1,n=e?e.length:0;for(i&&n&&(r=e[++s]);++s<n;)r=t(r,e[s],s,e);return r}function j(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function z(e){var t=-1,r=Array(e.size);return e.forEach(function(e,i){r[++t]=[i,e]}),r}function H(e,t){return function(r){return e(t(r))}}function K(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var q=Array.prototype,V=Function.prototype,Y=Object.prototype,J=O["__core-js_shared__"],W=function(){var e=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),X=V.toString,$=Y.hasOwnProperty,Z=Y.toString,ee=RegExp("^"+X.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=F?O.Buffer:void 0,re=O.Symbol,ie=O.Uint8Array,se=H(Object.getPrototypeOf,Object),ne=Object.create,ae=Y.propertyIsEnumerable,oe=q.splice,le=Object.getOwnPropertySymbols,ue=te?te.isBuffer:void 0,he=H(Object.keys,Object),ce=Pe(O,"DataView"),pe=Pe(O,"Map"),de=Pe(O,"Promise"),fe=Pe(O,"Set"),ge=Pe(O,"WeakMap"),ye=Pe(Object,"create"),me=Ge(ce),Ae=Ge(pe),ve=Ge(de),be=Ge(fe),Ce=Ge(ge),Ie=re?re.prototype:void 0,Se=Ie?Ie.valueOf:void 0;function Ee(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function xe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function we(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function _e(e){this.__data__=new xe(e)}function Te(e,t){var r=ze(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&He(e)}(e)&&$.call(e,"callee")&&(!ae.call(e,"callee")||Z.call(e)==a)}(e)?function(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}(e.length,String):[],i=r.length,s=!!i;for(var n in e)!t&&!$.call(e,n)||s&&("length"==n||Qe(n,i))||r.push(n);return r}function Be(e,t,r){var i=e[t];$.call(e,t)&&je(i,r)&&(void 0!==r||t in e)||(e[t]=r)}function Me(e,t){for(var r=e.length;r--;)if(je(e[r][0],t))return r;return-1}function Ne(e,t,r,i,s,n,M){var N;if(i&&(N=n?i(e,s,n,M):i(e)),void 0!==N)return N;if(!Ve(e))return e;var D=ze(e);if(D){if(N=function(e){var t=e.length,r=e.constructor(t);t&&"string"==typeof e[0]&&$.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!t)return function(e,t){var r=-1,i=e.length;t||(t=Array(i));for(;++r<i;)t[r]=e[r];return t}(e,N)}else{var k=Fe(e),O=k==u||k==h;if(Ke(e))return function(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}(e,t);if(k==d||k==a||O&&!n){if(j(e))return n?e:{};if(N=function(e){return"function"!=typeof e.constructor||Ue(e)?{}:(t=se(e),Ve(t)?ne(t):{});var t}(O?{}:e),!t)return function(e,t){return ke(e,Re(e),t)}(e,function(e,t){return e&&ke(t,Ye(t),e)}(N,e))}else{if(!L[k])return n?e:{};N=function(e,t,r,i){var s=e.constructor;switch(t){case A:return De(e);case o:case l:return new s(+e);case v:return function(e,t){var r=t?De(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,i);case b:case C:case I:case S:case E:case x:case w:case _:case T:return function(e,t){var r=t?De(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,i);case c:return function(e,t,r){return G(t?r(z(e),!0):z(e),Q,new e.constructor)}(e,i,r);case p:case y:return new s(e);case f:return(u=new(a=e).constructor(a.source,B.exec(a))).lastIndex=a.lastIndex,u;case g:return function(e,t,r){return G(t?r(K(e),!0):K(e),U,new e.constructor)}(e,i,r);case m:return n=e,Se?Object(Se.call(n)):{}}var n;var a,u}(e,k,Ne,t)}}M||(M=new _e);var P=M.get(e);if(P)return P;if(M.set(e,N),!D)var R=r?function(e){return function(e,t,r){var i=t(e);return ze(e)?i:function(e,t){for(var r=-1,i=t.length,s=e.length;++r<i;)e[s+r]=t[r];return e}(i,r(e))}(e,Ye,Re)}(e):Ye(e);return function(e,t){for(var r=-1,i=e?e.length:0;++r<i&&!1!==t(e[r],r,e););}(R||e,function(s,n){R&&(s=e[n=s]),Be(N,n,Ne(s,t,r,i,n,e,M))}),N}function Le(e){return!(!Ve(e)||W&&W in e)&&(qe(e)||j(e)?ee:M).test(Ge(e))}function De(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function ke(e,t,r,i){r||(r={});for(var s=-1,n=t.length;++s<n;){var a=t[s],o=i?i(r[a],e[a],a,r,e):void 0;Be(r,a,void 0===o?e[a]:o)}return r}function Oe(e,t){var r,i,s=e.__data__;return("string"==(i=typeof(r=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==r:null===r)?s["string"==typeof t?"string":"hash"]:s.map}function Pe(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Le(r)?r:void 0}Ee.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ee.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ee.prototype.get=function(e){var t=this.__data__;if(ye){var r=t[e];return r===s?void 0:r}return $.call(t,e)?t[e]:void 0},Ee.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:$.call(t,e)},Ee.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?s:t,this},xe.prototype.clear=function(){this.__data__=[]},xe.prototype.delete=function(e){var t=this.__data__,r=Me(t,e);return!(r<0||(r==t.length-1?t.pop():oe.call(t,r,1),0))},xe.prototype.get=function(e){var t=this.__data__,r=Me(t,e);return r<0?void 0:t[r][1]},xe.prototype.has=function(e){return Me(this.__data__,e)>-1},xe.prototype.set=function(e,t){var r=this.__data__,i=Me(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},we.prototype.clear=function(){this.__data__={hash:new Ee,map:new(pe||xe),string:new Ee}},we.prototype.delete=function(e){return Oe(this,e).delete(e)},we.prototype.get=function(e){return Oe(this,e).get(e)},we.prototype.has=function(e){return Oe(this,e).has(e)},we.prototype.set=function(e,t){return Oe(this,e).set(e,t),this},_e.prototype.clear=function(){this.__data__=new xe},_e.prototype.delete=function(e){return this.__data__.delete(e)},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var r=this.__data__;if(r instanceof xe){var s=r.__data__;if(!pe||s.length<i-1)return s.push([e,t]),this;r=this.__data__=new we(s)}return r.set(e,t),this};var Re=le?H(le,Object):function(){return[]},Fe=function(e){return Z.call(e)};function Qe(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||N.test(e))&&e>-1&&e%1==0&&e<t}function Ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function Ge(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function je(e,t){return e===t||e!=e&&t!=t}(ce&&Fe(new ce(new ArrayBuffer(1)))!=v||pe&&Fe(new pe)!=c||de&&"[object Promise]"!=Fe(de.resolve())||fe&&Fe(new fe)!=g||ge&&"[object WeakMap]"!=Fe(new ge))&&(Fe=function(e){var t=Z.call(e),r=t==d?e.constructor:void 0,i=r?Ge(r):void 0;if(i)switch(i){case me:return v;case Ae:return c;case ve:return"[object Promise]";case be:return g;case Ce:return"[object WeakMap]"}return t});var ze=Array.isArray;function He(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!qe(e)}var Ke=ue||function(){return!1};function qe(e){var t=Ve(e)?Z.call(e):"";return t==u||t==h}function Ve(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return He(e)?Te(e):function(e){if(!Ue(e))return he(e);var t=[];for(var r in Object(e))$.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return Ne(e,!0,!0)}},181:(e,t,r)=>{var i="Expected a function",s=NaN,n="[object Symbol]",a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,h=parseInt,c="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,p="object"==typeof self&&self&&self.Object===Object&&self,d=c||p||Function("return this")(),f=Object.prototype.toString,g=Math.max,y=Math.min,m=function(){return d.Date.now()};function A(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&f.call(e)==n}(e))return s;if(A(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=A(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var r=l.test(e);return r||u.test(e)?h(e.slice(2),r?2:8):o.test(e)?s:+e}e.exports=function(e,t,r){var s,n,a,o,l,u,h=0,c=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError(i);function f(t){var r=s,i=n;return s=n=void 0,h=t,o=e.apply(i,r)}function b(e){var r=e-u;return void 0===u||r>=t||r<0||p&&e-h>=a}function C(){var e=m();if(b(e))return I(e);l=setTimeout(C,function(e){var r=t-(e-u);return p?y(r,a-(e-h)):r}(e))}function I(e){return l=void 0,d&&s?f(e):(s=n=void 0,o)}function S(){var e=m(),r=b(e);if(s=arguments,n=this,u=e,r){if(void 0===l)return function(e){return h=e,l=setTimeout(C,t),c?f(e):o}(u);if(p)return l=setTimeout(C,t),f(u)}return void 0===l&&(l=setTimeout(C,t)),o}return t=v(t)||0,A(r)&&(c=!!r.leading,a=(p="maxWait"in r)?g(v(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d),S.cancel=function(){void 0!==l&&clearTimeout(l),h=0,s=u=n=l=void 0},S.flush=function(){return void 0===l?o:I(m())},S}},209:(e,t,r)=>{var i=200,s="__lodash_hash_undefined__",n=9007199254740991,a="[object Arguments]",o="[object Function]",l="[object GeneratorFunction]",u=/^\[object .+?Constructor\]$/,h="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,c="object"==typeof self&&self&&self.Object===Object&&self,p=h||c||Function("return this")();function d(e,t){return!!(e?e.length:0)&&function(e,t,r){if(t!=t)return function(e,t,r,i){var s=e.length,n=r+(i?1:-1);for(;i?n--:++n<s;)if(t(e[n],n,e))return n;return-1}(e,y,r);var i=r-1,s=e.length;for(;++i<s;)if(e[i]===t)return i;return-1}(e,t,0)>-1}function f(e,t,r){for(var i=-1,s=e?e.length:0;++i<s;)if(r(t,e[i]))return!0;return!1}function g(e,t){for(var r=-1,i=t.length,s=e.length;++r<i;)e[s+r]=t[r];return e}function y(e){return e!=e}function m(e,t){return e.has(t)}var A=Array.prototype,v=Function.prototype,b=Object.prototype,C=p["__core-js_shared__"],I=function(){var e=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),S=v.toString,E=b.hasOwnProperty,x=b.toString,w=RegExp("^"+S.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_=p.Symbol,T=b.propertyIsEnumerable,B=A.splice,M=_?_.isConcatSpreadable:void 0,N=Math.max,L=j(p,"Map"),D=j(Object,"create");function k(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function O(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function P(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function R(e){var t=-1,r=e?e.length:0;for(this.__data__=new P;++t<r;)this.add(e[t])}function F(e,t){for(var r,i,s=e.length;s--;)if((r=e[s][0])===(i=t)||r!=r&&i!=i)return s;return-1}function Q(e,t,r,s){var n,a=-1,o=d,l=!0,u=e.length,h=[],c=t.length;if(!u)return h;r&&(t=function(e,t){for(var r=-1,i=e?e.length:0,s=Array(i);++r<i;)s[r]=t(e[r],r,e);return s}(t,(n=r,function(e){return n(e)}))),s?(o=f,l=!1):t.length>=i&&(o=m,l=!1,t=new R(t));e:for(;++a<u;){var p=e[a],g=r?r(p):p;if(p=s||0!==p?p:0,l&&g==g){for(var y=c;y--;)if(t[y]===g)continue e;h.push(p)}else o(t,g,s)||h.push(p)}return h}function U(e){return!(!J(e)||I&&I in e)&&(Y(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?w:u).test(function(e){if(null!=e){try{return S.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function G(e,t){var r,i,s=e.__data__;return("string"==(i=typeof(r=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==r:null===r)?s["string"==typeof t?"string":"hash"]:s.map}function j(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return U(r)?r:void 0}function z(e){return K(e)||function(e){return V(e)&&E.call(e,"callee")&&(!T.call(e,"callee")||x.call(e)==a)}(e)||!!(M&&e&&e[M])}k.prototype.clear=function(){this.__data__=D?D(null):{}},k.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},k.prototype.get=function(e){var t=this.__data__;if(D){var r=t[e];return r===s?void 0:r}return E.call(t,e)?t[e]:void 0},k.prototype.has=function(e){var t=this.__data__;return D?void 0!==t[e]:E.call(t,e)},k.prototype.set=function(e,t){return this.__data__[e]=D&&void 0===t?s:t,this},O.prototype.clear=function(){this.__data__=[]},O.prototype.delete=function(e){var t=this.__data__,r=F(t,e);return!(r<0||(r==t.length-1?t.pop():B.call(t,r,1),0))},O.prototype.get=function(e){var t=this.__data__,r=F(t,e);return r<0?void 0:t[r][1]},O.prototype.has=function(e){return F(this.__data__,e)>-1},O.prototype.set=function(e,t){var r=this.__data__,i=F(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},P.prototype.clear=function(){this.__data__={hash:new k,map:new(L||O),string:new k}},P.prototype.delete=function(e){return G(this,e).delete(e)},P.prototype.get=function(e){return G(this,e).get(e)},P.prototype.has=function(e){return G(this,e).has(e)},P.prototype.set=function(e,t){return G(this,e).set(e,t),this},R.prototype.add=R.prototype.push=function(e){return this.__data__.set(e,s),this},R.prototype.has=function(e){return this.__data__.has(e)};var H=function(e,t){return t=N(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=N(r.length-t,0),n=Array(s);++i<s;)n[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n,function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,a)}}(function(e,t){return V(e)?Q(e,function e(t,r,i,s,n){var a=-1,o=t.length;for(i||(i=z),n||(n=[]);++a<o;){var l=t[a];r>0&&i(l)?r>1?e(l,r-1,i,s,n):g(n,l):s||(n[n.length]=l)}return n}(t,1,V,!0)):[]});var K=Array.isArray;function q(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!Y(e)}function V(e){return function(e){return!!e&&"object"==typeof e}(e)&&q(e)}function Y(e){var t=J(e)?x.call(e):"";return t==o||t==l}function J(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=H},858:(e,t,r)=>{var i="Expected a function",s=NaN,n="[object Symbol]",a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,h=parseInt,c="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,p="object"==typeof self&&self&&self.Object===Object&&self,d=c||p||Function("return this")(),f=Object.prototype.toString,g=Math.max,y=Math.min,m=function(){return d.Date.now()};function A(e,t,r){var s,n,a,o,l,u,h=0,c=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError(i);function f(t){var r=s,i=n;return s=n=void 0,h=t,o=e.apply(i,r)}function A(e){var r=e-u;return void 0===u||r>=t||r<0||p&&e-h>=a}function C(){var e=m();if(A(e))return I(e);l=setTimeout(C,funct