UNPKG

@supermapgis/iclient-maplibregl

Version:

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

8 lines 2.93 MB
/*! * * iclient-maplibregl * Copyright© 2000 - 2024 SuperMap Software Co.Ltd * license: Apache-2.0 * version: v11.3.0 * */!function(){var e={304:function(e,t,r){"use strict";var n=r(2651),o=r(5045),i=r(3174);e.exports={XMLParser:o,XMLValidator:n,XMLBuilder:i}},2035:function(e){function t(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}e.exports=function(e){return"function"==typeof e?e:Array.isArray(e)?function(r){var n,o=t(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;if("string"==typeof i&&r===i)return!0;if(i instanceof RegExp&&i.test(r))return!0}}catch(e){o.e(e)}finally{o.f()}}:function(){return!1}}},6392:function(e,t){"use strict";var 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",n="["+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]*",o=new RegExp("^"+n+"$");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)for(var n=Object.keys(t),o=n.length,i=0;i<o;i++)e[n[i]]="strict"===r?[t[n[i]]]:t[n[i]]},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(e){var t=o.exec(e);return!(null===t||void 0===t)},t.getAllMatches=function(e,t){for(var r=[],n=t.exec(e);n;){var o=[];o.startIndex=t.lastIndex-n[0].length;for(var i=n.length,a=0;a<i;a++)o.push(n[a]);r.push(o),n=t.exec(e)}return r},t.nameRegexp=n},2651:function(e,t,r){"use strict";var n=r(6392),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function a(e,t){for(var r=t;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{var n=e.substr(r,t-r);if(t>5&&"xml"===n)return h("InvalidXml","XML declaration allowed only at the start of the document.",m(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function s(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]){var 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({},o,t);var r,u=[],l=!1,f=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(var d=0;d<e.length;d++)if("<"===e[d]&&"?"===e[d+1]){if((d=a(e,d+=2)).err)return d}else{if("<"!==e[d]){if(i(e[d]))continue;return h("InvalidChar","char '"+e[d]+"' is not expected.",m(e,d))}var v=d;if("!"===e[++d]){d=s(e,d);continue}var g=!1;"/"===e[d]&&(g=!0,d++);for(var b="";d<e.length&&">"!==e[d]&&" "!==e[d]&&"\t"!==e[d]&&"\n"!==e[d]&&"\r"!==e[d];d++)b+=e[d];if("/"===(b=b.trim())[b.length-1]&&(b=b.substring(0,b.length-1),d--),r=b,!n.isName(r)){return h("InvalidTag",0===b.trim().length?"Invalid space after '<'.":"Tag '"+b+"' is an invalid name.",m(e,d))}var A=c(e,d);if(!1===A)return h("InvalidAttr","Attributes for '"+b+"' have open quote.",m(e,d));var w=A.value;if(d=A.index,"/"===w[w.length-1]){var S=d-w.length,C=p(w=w.substring(0,w.length-1),t);if(!0!==C)return h(C.err.code,C.err.msg,m(e,S+C.err.line));l=!0}else if(g){if(!A.tagClosed)return h("InvalidTag","Closing tag '"+b+"' doesn't have proper closing.",m(e,d));if(w.trim().length>0)return h("InvalidTag","Closing tag '"+b+"' can't have attributes or invalid starting.",m(e,v));if(0===u.length)return h("InvalidTag","Closing tag '"+b+"' has not been opened.",m(e,v));var E=u.pop();if(b!==E.tagName){var I=m(e,E.tagStartPos);return h("InvalidTag","Expected closing tag '"+E.tagName+"' (opened in line "+I.line+", col "+I.col+") instead of closing tag '"+b+"'.",m(e,v))}0==u.length&&(f=!0)}else{var O=p(w,t);if(!0!==O)return h(O.err.code,O.err.msg,m(e,d-w.length+O.err.line));if(!0===f)return h("InvalidXml","Multiple possible root nodes found.",m(e,d));-1!==t.unpairedTags.indexOf(b)||u.push({tagName:b,tagStartPos:v}),l=!0}for(d++;d<e.length;d++)if("<"===e[d]){if("!"===e[d+1]){d=s(e,++d);continue}if("?"!==e[d+1])break;if((d=a(e,++d)).err)return d}else if("&"===e[d]){var _=y(e,d);if(-1==_)return h("InvalidChar","char '&' is not expected.",m(e,d));d=_}else if(!0===f&&!i(e[d]))return h("InvalidXml","Extra text at the end",m(e,d));"<"===e[d]&&d--}return l?1==u.length?h("InvalidTag","Unclosed tag '"+u[0].tagName+"'.",m(e,u[0].tagStartPos)):!(u.length>0)||h("InvalidXml","Invalid '"+JSON.stringify(u.map(function(e){return e.tagName}),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):h("InvalidXml","Start tag expected.",1)};var u='"',l="'";function c(e,t){for(var r="",n="",o=!1;t<e.length;t++){if(e[t]===u||e[t]===l)""===n?n=e[t]:n!==e[t]||(n="");else if(">"===e[t]&&""===n){o=!0;break}r+=e[t]}return""===n&&{value:r,index:t,tagClosed:o}}var f=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function p(e,t){for(var r=n.getAllMatches(e,f),o={},i=0;i<r.length;i++){if(0===r[i][1].length)return h("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",v(r[i]));if(void 0!==r[i][3]&&void 0===r[i][4])return h("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",v(r[i]));if(void 0===r[i][3]&&!t.allowBooleanAttributes)return h("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",v(r[i]));var a=r[i][2];if(!d(a))return h("InvalidAttr","Attribute '"+a+"' is an invalid name.",v(r[i]));if(o.hasOwnProperty(a))return h("InvalidAttr","Attribute '"+a+"' is repeated.",v(r[i]));o[a]=1}return!0}function y(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){var 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);for(var r=0;t<e.length;t++,r++)if(!(e[t].match(/\w/)&&r<20)){if(";"===e[t])break;return-1}return t}function h(e,t,r){return{err:{code:e,msg:t,line:r.line||r,col:r.col}}}function d(e){return n.isName(e)}function m(e,t){var r=e.substring(0,t).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function v(e){return e.startIndex+e[1].length}},3174:function(e,t,r){"use strict";function n(e){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(2874),a=r(2035),s={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 u(e){this.options=Object.assign({},s,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=a(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=f),this.processTextOrObjNode=l,this.options.format?(this.indentate=c,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function l(e,t,r,n){var o=this.j2x(e,r+1,n.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,o.attrStr,r):this.buildObjectNode(o.val,t,o.attrStr,r)}function c(e){return this.options.indentBy.repeat(e)}function f(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}u.prototype.build=function(e){return this.options.preserveOrder?i(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e=o({},this.options.arrayNodeName,e)),this.j2x(e,0,[]).val)},u.prototype.j2x=function(e,t,r){var o="",i="",a=r.join(".");for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s))if(void 0===e[s])this.isAttribute(s)&&(i+="");else if(null===e[s])this.isAttribute(s)?i+="":"?"===s[0]?i+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if(e[s]instanceof Date)i+=this.buildTextValNode(e[s],s,"",t);else if("object"!==n(e[s])){var u=this.isAttribute(s);if(u&&!this.ignoreAttributesFn(u,a))o+=this.buildAttrPairStr(u,""+e[s]);else if(!u)if(s===this.options.textNodeName){var l=this.options.tagValueProcessor(s,""+e[s]);i+=this.replaceEntitiesValue(l)}else i+=this.buildTextValNode(e[s],s,"",t)}else if(Array.isArray(e[s])){for(var c=e[s].length,f="",p="",y=0;y<c;y++){var h=e[s][y];if(void 0===h);else if(null===h)"?"===s[0]?i+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if("object"===n(h))if(this.options.oneListGroup){var d=this.j2x(h,t+1,r.concat(s));f+=d.val,this.options.attributesGroupName&&h.hasOwnProperty(this.options.attributesGroupName)&&(p+=d.attrStr)}else f+=this.processTextOrObjNode(h,s,t,r);else if(this.options.oneListGroup){var m=this.options.tagValueProcessor(s,h);f+=m=this.replaceEntitiesValue(m)}else f+=this.buildTextValNode(h,s,"",t)}this.options.oneListGroup&&(f=this.buildObjectNode(f,s,p,t)),i+=f}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName)for(var v=Object.keys(e[s]),g=v.length,b=0;b<g;b++)o+=this.buildAttrPairStr(v[b],""+e[s][v[b]]);else i+=this.processTextOrObjNode(e[s],s,t,r);return{attrStr:o,val:i}},u.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},u.prototype.buildObjectNode=function(e,t,r,n){if(""===e)return"?"===t[0]?this.indentate(n)+"<"+t+r+"?"+this.tagEndChar:this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar;var o="</"+t+this.tagEndChar,i="";return"?"===t[0]&&(i="?",o=""),!r&&""!==r||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===i.length?this.indentate(n)+"\x3c!--".concat(e,"--\x3e")+this.newLine:this.indentate(n)+"<"+t+r+i+this.tagEndChar+e+this.indentate(n)+o:this.indentate(n)+"<"+t+r+i+">"+e+o},u.prototype.closeTag=function(e){var t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":"></".concat(e),t},u.prototype.buildTextValNode=function(e,t,r,n){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(n)+"<![CDATA[".concat(e,"]]>")+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(n)+"\x3c!--".concat(e,"--\x3e")+this.newLine;if("?"===t[0])return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar;var o=this.options.tagValueProcessor(t,e);return""===(o=this.replaceEntitiesValue(o))?this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar:this.indentate(n)+"<"+t+r+">"+o+"</"+t+this.tagEndChar},u.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(var t=0;t<this.options.entities.length;t++){var r=this.options.entities[t];e=e.replace(r.regex,r.val)}return e},e.exports=u},2874:function(e){var t="\n";function r(e){for(var t=Object.keys(e),r=0;r<t.length;r++){var n=t[r];if(e.hasOwnProperty(n)&&":@"!==n)return n}}function n(e,t){var r="";if(e&&!t.ignoreAttributes)for(var n in e)if(e.hasOwnProperty(n)){var o=t.attributeValueProcessor(n,e[n]);!0===(o=i(o,t))&&t.suppressBooleanAttributes?r+=" ".concat(n.substr(t.attributeNamePrefix.length)):r+=" ".concat(n.substr(t.attributeNamePrefix.length),'="').concat(o,'"')}return r}function o(e,t){var r=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(var n in t.stopNodes)if(t.stopNodes[n]===e||t.stopNodes[n]==="*."+r)return!0;return!1}function i(e,t){if(e&&e.length>0&&t.processEntities)for(var r=0;r<t.entities.length;r++){var n=t.entities[r];e=e.replace(n.regex,n.val)}return e}e.exports=function(e,a){var s="";return a.format&&a.indentBy.length>0&&(s=t),function e(t,a,s,u){for(var l="",c=!1,f=0;f<t.length;f++){var p=t[f],y=r(p);if(void 0!==y){var h="";if(h=0===s.length?y:"".concat(s,".").concat(y),y!==a.textNodeName)if(y!==a.cdataPropName)if(y!==a.commentPropName)if("?"!==y[0]){var d=u;""!==d&&(d+=a.indentBy);var m=n(p[":@"],a),v=u+"<".concat(y).concat(m),g=e(p[y],a,h,d);-1!==a.unpairedTags.indexOf(y)?a.suppressUnpairedNode?l+=v+">":l+=v+"/>":g&&0!==g.length||!a.suppressEmptyNode?g&&g.endsWith(">")?l+=v+">".concat(g).concat(u,"</").concat(y,">"):(l+=v+">",g&&""!==u&&(g.includes("/>")||g.includes("</"))?l+=u+a.indentBy+g+u:l+=g,l+="</".concat(y,">")):l+=v+"/>",c=!0}else{var b=n(p[":@"],a),A="?xml"===y?"":u,w=p[y][0][a.textNodeName];w=0!==w.length?" "+w:"",l+=A+"<".concat(y).concat(w).concat(b,"?>"),c=!0}else l+=u+"\x3c!--".concat(p[y][0][a.textNodeName],"--\x3e"),c=!0;else c&&(l+=u),l+="<![CDATA[".concat(p[y][0][a.textNodeName],"]]>"),c=!1;else{var S=p[y];o(h,a)||(S=i(S=a.tagValueProcessor(y,S),a)),c&&(l+=u),l+=S,c=!1}}}return l}(e,a,"",s)}},3214:function(e,t,r){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var i=r(6392);function a(e,t){for(var r="";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");for(var n=e[t++],o="";t<e.length&&e[t]!==n;t++)o+=e[t];return[r,o,t]}function s(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}function u(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 l(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 c(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 f(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 p(e){if(i.isName(e))return e;throw new Error("Invalid entity name ".concat(e))}e.exports=function(e,t){var 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;for(var o=1,i=!1,y=!1;t<e.length;t++)if("<"!==e[t]||y)if(">"===e[t]){if(y?"-"===e[t-1]&&"-"===e[t-2]&&(y=!1,o--):o--,0===o)break}else"["===e[t]?i=!0:e[t];else{if(i&&u(e,t)){var h=n(a(e,(t+=7)+1),3);entityName=h[0],val=h[1],t=h[2],-1===val.indexOf("&")&&(r[p(entityName)]={regx:RegExp("&".concat(entityName,";"),"g"),val:val})}else if(i&&l(e,t))t+=8;else if(i&&c(e,t))t+=8;else if(i&&f(e,t))t+=9;else{if(!s)throw new Error("Invalid DOCTYPE");y=!0}o++}if(0!==o)throw new Error("Unclosed DOCTYPE");return{entities:r,i:t}}},3070:function(e,t){var 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:function(){return!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},2246:function(e,t,r){"use strict";function n(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var s=r(6392),u=r(4670),l=r(3214),c=r(1097),f=r(2035),p=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,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:function(e,t){return String.fromCharCode(Number.parseInt(t,10))}},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:function(e,t){return String.fromCharCode(Number.parseInt(t,16))}}},this.addExternalEntities=y,this.parseXml=g,this.parseTextData=h,this.resolveNameSpace=d,this.buildAttributesMap=v,this.isItStopNode=S,this.replaceEntitiesValue=A,this.readStopNodeData=I,this.saveTextToParentTag=w,this.addChild=b,this.ignoreAttributesFn=f(this.options.ignoreAttributes)});function y(e){for(var t=Object.keys(e),r=0;r<t.length;r++){var n=t[r];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:e[n]}}}function h(e,t,r,n,i,a,s){if(void 0!==e&&(this.options.trimValues&&!n&&(e=e.trim()),e.length>0)){s||(e=this.replaceEntitiesValue(e));var u=this.options.tagValueProcessor(t,e,r,i,a);return null===u||void 0===u?e:o(u)!==o(e)||u!==e?u:this.options.trimValues?O(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?O(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function d(e){if(this.options.removeNSPrefix){var t=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=r+t[1])}return e}var m=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function v(e,t,r){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){for(var n=s.getAllMatches(e,m),i=n.length,a={},u=0;u<i;u++){var l=this.resolveNameSpace(n[u][1]);if(!this.ignoreAttributesFn(l,t)){var c=n[u][4],f=this.options.attributeNamePrefix+l;if(l.length)if(this.options.transformAttributeName&&(f=this.options.transformAttributeName(f)),"__proto__"===f&&(f="#__proto__"),void 0!==c){this.options.trimValues&&(c=c.trim()),c=this.replaceEntitiesValue(c);var p=this.options.attributeValueProcessor(l,c,t);null===p||void 0===p?a[f]=c:o(p)!==o(c)||p!==c?a[f]=p:a[f]=O(c,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[f]=!0)}}if(!Object.keys(a).length)return;if(this.options.attributesGroupName){var y={};return y[this.options.attributesGroupName]=a,y}return a}}var g=function(e){e=e.replace(/\r\n?/g,"\n");for(var t=new u("!xml"),r=t,o="",i="",a=0;a<e.length;a++){if("<"===e[a])if("/"===e[a+1]){var s=C(e,">",a,"Closing Tag is not closed."),c=e.substring(a+2,s).trim();if(this.options.removeNSPrefix){var f=c.indexOf(":");-1!==f&&(c=c.substr(f+1))}this.options.transformTagName&&(c=this.options.transformTagName(c)),r&&(o=this.saveTextToParentTag(o,r,i));var p=i.substring(i.lastIndexOf(".")+1);if(c&&-1!==this.options.unpairedTags.indexOf(c))throw new Error("Unpaired tag can not be used as closing tag: </".concat(c,">"));var y=0;p&&-1!==this.options.unpairedTags.indexOf(p)?(y=i.lastIndexOf(".",i.lastIndexOf(".")-1),this.tagsNodeStack.pop()):y=i.lastIndexOf("."),i=i.substring(0,y),r=this.tagsNodeStack.pop(),o="",a=s}else if("?"===e[a+1]){var h=E(e,a,!1,"?>");if(!h)throw new Error("Pi Tag is not closed.");if(o=this.saveTextToParentTag(o,r,i),this.options.ignoreDeclaration&&"?xml"===h.tagName||this.options.ignorePiTags);else{var d=new u(h.tagName);d.add(this.options.textNodeName,""),h.tagName!==h.tagExp&&h.attrExpPresent&&(d[":@"]=this.buildAttributesMap(h.tagExp,i,h.tagName)),this.addChild(r,d,i)}a=h.closeIndex+1}else if("!--"===e.substr(a+1,3)){var m=C(e,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){var v=e.substring(a+4,m-2);o=this.saveTextToParentTag(o,r,i),r.add(this.options.commentPropName,[n({},this.options.textNodeName,v)])}a=m}else if("!D"===e.substr(a+1,2)){var g=l(e,a);this.docTypeEntities=g.entities,a=g.i}else if("!["===e.substr(a+1,2)){var b=C(e,"]]>",a,"CDATA is not closed.")-2,A=e.substring(a+9,b);o=this.saveTextToParentTag(o,r,i);var w=this.parseTextData(A,r.tagname,i,!0,!1,!0,!0);void 0==w&&(w=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[n({},this.options.textNodeName,A)]):r.add(this.options.textNodeName,w),a=b+2}else{var S=E(e,a,this.options.removeNSPrefix),I=S.tagName,O=S.rawTagName,_=S.tagExp,x=S.attrExpPresent,P=S.closeIndex;this.options.transformTagName&&(I=this.options.transformTagName(I)),r&&o&&"!xml"!==r.tagname&&(o=this.saveTextToParentTag(o,r,i,!1));var k=r;if(k&&-1!==this.options.unpairedTags.indexOf(k.tagname)&&(r=this.tagsNodeStack.pop(),i=i.substring(0,i.lastIndexOf("."))),I!==t.tagname&&(i+=i?"."+I:I),this.isItStopNode(this.options.stopNodes,i,I)){var T="";if(_.length>0&&_.lastIndexOf("/")===_.length-1)"/"===I[I.length-1]?(I=I.substr(0,I.length-1),i=i.substr(0,i.length-1),_=I):_=_.substr(0,_.length-1),a=S.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(I))a=S.closeIndex;else{var j=this.readStopNodeData(e,O,P+1);if(!j)throw new Error("Unexpected end of ".concat(O));a=j.i,T=j.tagContent}var B=new u(I);I!==_&&x&&(B[":@"]=this.buildAttributesMap(_,i,I)),T&&(T=this.parseTextData(T,I,i,!0,x,!0,!0)),i=i.substr(0,i.lastIndexOf(".")),B.add(this.options.textNodeName,T),this.addChild(r,B,i)}else{if(_.length>0&&_.lastIndexOf("/")===_.length-1){"/"===I[I.length-1]?(I=I.substr(0,I.length-1),i=i.substr(0,i.length-1),_=I):_=_.substr(0,_.length-1),this.options.transformTagName&&(I=this.options.transformTagName(I));var N=new u(I);I!==_&&x&&(N[":@"]=this.buildAttributesMap(_,i,I)),this.addChild(r,N,i),i=i.substr(0,i.lastIndexOf("."))}else{var M=new u(I);this.tagsNodeStack.push(r),I!==_&&x&&(M[":@"]=this.buildAttributesMap(_,i,I)),this.addChild(r,M,i),r=M}o="",a=P}}else o+=e[a]}return t.child};function b(e,t,r){var n=this.options.updateTag(t.tagname,r,t[":@"]);!1===n||("string"==typeof n?(t.tagname=n,e.addChild(t)):e.addChild(t))}var A=function(e){if(this.options.processEntities){for(var t in this.docTypeEntities){var r=this.docTypeEntities[t];e=e.replace(r.regx,r.val)}for(var n in this.lastEntities){var o=this.lastEntities[n];e=e.replace(o.regex,o.val)}if(this.options.htmlEntities)for(var i in this.htmlEntities){var a=this.htmlEntities[i];e=e.replace(a.regex,a.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function w(e,t,r,n){return e&&(void 0===n&&(n=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,r,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,n))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function S(e,t,r){var n="*."+r;for(var o in e){var i=e[o];if(n===i||t===i)return!0}return!1}function C(e,t,r,n){var o=e.indexOf(t,r);if(-1===o)throw new Error(n);return o+t.length-1}function E(e,t,r){var n=function(e,t){for(var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:">",o="",i=t;i<e.length;i++){var a=e[i];if(r)a===r&&(r="");else if('"'===a||"'"===a)r=a;else if(a===n[0]){if(!n[1])return{data:o,index:i};if(e[i+1]===n[1])return{data:o,index:i}}else"\t"===a&&(a=" ");o+=a}}(e,t+1,arguments.length>3&&void 0!==arguments[3]?arguments[3]:">");if(n){var o=n.data,i=n.index,a=o.search(/\s/),s=o,u=!0;-1!==a&&(s=o.substring(0,a),o=o.substring(a+1).trimStart());var l=s;if(r){var c=s.indexOf(":");-1!==c&&(u=(s=s.substr(c+1))!==n.data.substr(c+1))}return{tagName:s,tagExp:o,closeIndex:i,attrExpPresent:u,rawTagName:l}}}function I(e,t,r){for(var n=r,o=1;r<e.length;r++)if("<"===e[r])if("/"===e[r+1]){var i=C(e,">",r,"".concat(t," is not closed"));if(e.substring(r+2,i).trim()===t&&0===--o)return{tagContent:e.substring(n,r),i:i};r=i}else if("?"===e[r+1]){r=C(e,"?>",r+1,"StopNode is not closed.")}else if("!--"===e.substr(r+1,3)){r=C(e,"--\x3e",r+3,"StopNode is not closed.")}else if("!["===e.substr(r+1,2)){r=C(e,"]]>",r,"StopNode is not closed.")-2}else{var a=E(e,r,">");if(a)(a&&a.tagName)===t&&"/"!==a.tagExp[a.tagExp.length-1]&&o++,r=a.closeIndex}}function O(e,t,r){if(t&&"string"==typeof e){var n=e.trim();return"true"===n||"false"!==n&&c(e,r)}return s.isExist(e)?e:""}e.exports=p},5045:function(e,t,r){function n(e){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}var a=r(3070).buildOptions,s=r(2246),u=r(9279).prettify,l=r(2651),c=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.externalEntities={},this.options=a(t)},(t=[{key:"parse",value:function(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={});var r=l.validate(e,t);if(!0!==r)throw Error("".concat(r.err.msg,":").concat(r.err.line,":").concat(r.err.col))}var n=new s(this.options);n.addExternalEntities(this.externalEntities);var o=n.parseXml(e);return this.options.preserveOrder||void 0===o?o:u(o,this.options)}},{key:"addEntity",value:function(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}}])&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();e.exports=c},9279:function(e,t){"use strict";function r(e){for(var t=Object.keys(e),r=0;r<t.length;r++){var n=t[r];if(":@"!==n)return n}}function n(e,t,r,n){if(t)for(var o=Object.keys(t),i=o.length,a=0;a<i;a++){var s=o[a];n.isArray(s,r+"."+s,!0,!0)?e[s]=[t[s]]:e[s]=t[s]}}function o(e,t){var r=t.textNodeName,n=Object.keys(e).length;return 0===n||!(1!==n||!e[r]&&"boolean"!=typeof e[r]&&0!==e[r])}t.prettify=function(e,t){return function e(t,i,a){for(var s,u={},l=0;l<t.length;l++){var c=t[l],f=r(c),p="";if(p=void 0===a?f:a+"."+f,f===i.textNodeName)void 0===s?s=c[f]:s+=""+c[f];else{if(void 0===f)continue;if(c[f]){var y=e(c[f],i,p),h=o(y,i);c[":@"]?n(y,c[":@"],p,i):1!==Object.keys(y).length||void 0===y[i.textNodeName]||i.alwaysCreateTextNode?0===Object.keys(y).length&&(i.alwaysCreateTextNode?y[i.textNodeName]="":y=""):y=y[i.textNodeName],void 0!==u[f]&&u.hasOwnProperty(f)?(Array.isArray(u[f])||(u[f]=[u[f]]),u[f].push(y)):i.isArray(f,p,h)?u[f]=[y]:u[f]=y}}}return"string"==typeof s?s.length>0&&(u[i.textNodeName]=s):void 0!==s&&(u[i.textNodeName]=s),u}(e,t)}},4670:function(e){"use strict";function t(e){"@babel/helpers - typeof";return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}var i=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tagname=t,this.child=[],this[":@"]={}},(t=[{key:"add",value:function(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push(r({},e,t))}},{key:"addChild",value:function(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push(r(r({},e.tagname,e.child),":@",e[":@"])):this.child.push(r({},e.tagname,e.child))}}])&&n(e.prototype,t),o&&n(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,o}();e.exports=i},1358:function(e){!function(t){"use strict";if(t.__disableNativeFetch||!t.fetch){s.prototype.append=function(e,t){e=i(e),t=a(t);var r=this.map[e];r||(r=[],this.map[e]=r),r.push(t)},s.prototype.delete=function(e){delete this.map[i(e)]},s.prototype.get=function(e){var t=this.map[i(e)];return t?t[0]:null},s.prototype.getAll=function(e){return this.map[i(e)]||[]},s.prototype.has=function(e){return this.map.hasOwnProperty(i(e))},s.prototype.set=function(e,t){this.map[i(e)]=[a(t)]},s.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(r){this.map[r].forEach(function(n){e.call(t,n,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},n=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this)},f.call(p.prototype),f.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s(this.headers),url:this.url})},h.error=function(){var e=new h(null,{status:0,statusText:""});return e.type="error",e};var o=[301,302,303,307,308];h.redirect=function(e,t){if(-1===o.indexOf(t))throw new RangeError("Invalid status code");return new h(null,{status:t,headers:{location:e}})},t.Headers=s,t.Request=p,t.Response=h,t.fetch=function(e,t){return new Promise(function(n,o){var i;i=p.prototype.isPrototypeOf(e)&&!t?e:new p(e,t);var a=new XMLHttpRequest;var u=!1;function l(){if(4===a.readyState){var e=1223===a.status?204:a.status;if(e<100||e>599){if(u)return;return u=!0,void o(new TypeError("Network request failed"))}var t={status:e,statusText:a.statusText,headers:function(e){var t=new s;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var r=e.trim().split(":"),n=r.shift().trim(),o=r.join(":").trim();t.append(n,o)}),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;u||(u=!0,n(new h(r,t)))}}a.onreadystatechange=l,a.onload=l,a.onerror=function(){u||(u=!0,o(new TypeError("Network request failed")))},a.open(i.method,i.url,!0);try{"include"===i.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"),i.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===i._bodyInit?null:i._bodyInit)})},t.fetch.polyfill=!0,e.exports&&(e.exports=t.fetch)}function i(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 s(e){this.map={},e instanceof s?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function u(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function l(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function c(e){var t=new FileReader;return t.readAsArrayBuffer(e),l(t)}function f(){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=u(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(c)},this.text=function(){var e,t,r,n,o,i,a,s=u(this);if(s)return s;if(this._bodyBlob)return e=this._bodyBlob,t=this._options,r=new FileReader,n=t.headers.map["content-type"]?t.headers.map["content-type"].toString():"",o=/charset\=[0-9a-zA-Z\-\_]*;?/,i=e.type.match(o)||n.match(o),a=[e],i&&a.push(i[0].replace(/^charset\=/,"").replace(/;$/,"")),r.readAsText.apply(r,a),l(r);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=u(this);return e||Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}function p(e,t){var r,o,i=(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 s(e.headers)),this.method=e.method,this.mode=e.mode,i||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new s(t.headers)),this.method=(r=t.method||this.method||"GET",o=r.toUpperCase(),n.indexOf(o)>-1?o:r),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i,t)}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}}),t}function h(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 s?t.headers:new s(t.headers),this.url=t.url||""}}("undefined"!=typeof self?self:this)},3678:function(e,t){var r,n,o;n=[t,e],void 0===(o="function"==typeof(r=function(e,t){"use strict";var r={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function n(e){try{delete window[e]}catch(t){window[e]=void 0}}function o(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],i=e,a=t.timeout||r.timeout,s=t.jsonpCallback||r.jsonpCallback,u=void 0;return new Promise(function(r,l){var c=t.jsonpCallbackFunction||"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),f=s+"_"+c;window[c]=function(e){r({ok:!0,json:function(){return Promise.resolve(e)}}),u&&clearTimeout(u),o(f),n(c)},i+=-1===i.indexOf("?")?"?":"&";var p=document.createElement("script");p.setAttribute("src",""+i+s+"="+c),t.charset&&p.setAttribute("charset",t.charset),p.id=f,document.getElementsByTagName("head")[0].appendChild(p),u=setTimeout(function(){l(new Error("JSONP request to "+e+" timed out")),n(c),o(f),window[c]=function(){n(c)}},a),p.onerror=function(){l(new Error("JSONP request to "+e+" failed")),n(c),o(f),u&&clearTimeout(u)}})}})?r.apply(t,n):r)||(e.exports=o)},3448:function(e){var t=[],r=[],n="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function o(e,o){if(o=o||{},void 0===e)throw new Error(n);var i,a=!0===o.prepend?"prepend":"append",s=void 0!==o.container?o.container:document.querySelector("head"),u=t.indexOf(s);return-1===u&&(u=t.push(s)-1,r[u]={}),void 0!==r[u]&&void 0!==r[u][a]?i=r[u][a]:(i=r[u][a]=function(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}(),"prepend"===a?s.insertBefore(i,s.childNodes[0]):s.appendChild(i)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}e.exports=o,e.exports.insertCss=o},5611:function(e,t,r){function n(e){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e=r.nmd(e);var o=200,i="__lodash_hash_undefined__",a=9007199254740991,s="[object Arguments]",u="[object Boolean]",l="[object Date]",c="[object Function]",f="[object GeneratorFunction]",p="[object Map]",y="[object Number]",h="[object Object]",d="[object RegExp]",m="[object Set]",v="[object String]",g="[object Symbol]",b="[object ArrayBuffer]",A="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",C="[object Int8Array]",E="[object Int16Array]",I="[object Int32Array]",O="[object Uint8Array]",_="[object Uint8ClampedArray]",x="[object Uint16Array]",P="[object Uint32Array]",k=/\w*$/,T=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,B={};B[s]=B["[object Array]"]=B[b]=B[A]=B[u]=B[l]=B[w]=B[S]=B[C]=B[E]=B[I]=B[p]=B[y]=B[h]=B[d]=B[m]=B[v]=B[g]=B[O]=B[_]=B[x]=B[P]=!0,B["[object Error]"]=B[c]=B["[object WeakMap]"]=!1;var N="object"==(void 0===r.g?"undefined":n(r.g))&&r.g&&r.g.Object===Object&&r.g,M="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,L=N||M||Function("return this")(),R="object"==n(t)&&t&&!t.nodeType&&t,D=R&&"object"==n(e)&&e&&!e.nodeType&&e,F=D&&D.exports===R;function Q(e,t){return e.set(t[0],t[1]),e}function G(e,t){return e.add(t),e}function U(e,t,r,n){var o=-1,i=e?e.length:0;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function z(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function H(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function K(e,t){return function(r){return e(t(r))}}function q(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var V,Y=Array.prototype,J=Function.prototype,W=Object.prototype,X=L["__core-js_shared__"],Z=(V=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"",$=J.toString,ee=W.hasOwnProperty,te=W.toString,re=RegExp("^"+$.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=F?L.Buffer:void 0,oe=L.Symbol,ie=L.Uint8Array,ae=K(Object.getPrototypeOf,Object),se=Object.create,ue=W.propertyIsEnumerable,le=Y.splice,ce=Object.getOwnPropertySymbols,fe=ne?ne.isBuffer:void 0,pe=K(Object.keys,Object),ye=De(L,"DataView"),he=De(L,"Map"),de=De(L,"Promise"),me=De(L,"Set"),ve=De(L,"WeakMap"),ge=De(Object,"create"),be=ze(ye),Ae=ze(he),we=ze(de),Se=ze(me),Ce=ze(ve),Ee=oe?oe.prototype:void 0,Ie=Ee?Ee.valueOf:void 0;function Oe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function _e(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function xe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Pe(e){this.__data__=new _e(e)}function ke(e,t){var r=Ke(e)||function(e){return function(e){return function(e){return!!e&&"object"==n(e)}(e)&&qe(e)}(e)&&ee.call(e,"callee")&&(!ue.call(e,"callee")||te.call(e)==s)}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],o=r.length,i=!!o;for(var a in e)!t&&!ee.call(e,a)||i&&("length"==a||Ge(a,o))||r.push(a);return r}function Te(e,t,r){var n=e[t];ee.call(e,t)&&He(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function je(e,t){for(var r=e.length;r--;)if(He(e[r][0],t))return r;return-1}function Be(e,t,r,n,o,i,a){var T;if(n&&(T=i?n(e,o,i,a):n(e)),void 0!==T)return T;if(!Je(e))return e;var j=Ke(e);if(j){if(T=function(e){var t=e.length,r=e.constructor(t);t&&"string"==typeof e[0]&&ee.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!t)return function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r<n;)t[r]=e[r];return t}(e,T)}else{var N=Qe(e),M=N==c||N==f;if(Ve(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(N==h||N==s||M&&!i){if(z(e))return i?e:{};if(T=function(e){return"function"!=typeof e.constructor||Ue(e)?{}:(t=ae(e),Je(t)?se(t):{});var t}(M?{}:e),!t)return function(e,t){return Le(e,Fe(e),t)}(e,function(e,t){return e&&Le(t,We(t),e)}(T,e))}else{if(!B[N])return i?e:{};T=function(e,t,r,n){var o=e.constructor;switch(t){case b:return Me(e);case u:case l:return new o(+e);case A:return function(e,t){var r=t?Me(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,n);case w:case S:case C:case E:case I:case O:case _:case x:case P:return function(e,t){var r=t?Me(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,n);case p:return function(e,t,r){return U(t?r(H(e),!0):H(e),Q,new e.constructor)}(e,n,r);case y:case v:return new o(e);case d:return(s=new(a=e).constructor(a.source,k.exec(a))).lastIndex=a.lastIndex,s;case m:return function(e,t,r){return U(t?r(q(e),!0):q(e),G,new e.constructor)}(e,n,r);case g:return i=e,Ie?Object(Ie.call(i)):{}}var i;var a,s}(e,N,Be,t)}}a||(a=new Pe);var L=a.get(e);if(L)return L;if(a.set(e,T),!j)var R=r?function(e){return function(e,t,r){var n=t(e);return Ke(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,We,Fe)}(e):We(e);return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););}(R||e,function(o,i){R&&(o=e[i=o]),Te(T,i,Be(o,t,r,n,i,e,a))}),T}function Ne(e){return!(!Je(e)||Z&&Z in e)&&(Ye(e)||z(e)?re:T).test(ze(e))}function Me(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Le(e,t,r,n){r||(r={});for(var o=-1,i=t.length;++o<i;){var a=t[o],s=n?n(r[a],e[a],a,r,e):void 0;Te(r,a,void 0===s?e[a]:s)}return r}function Re(e,t){var r,o,i=e.__data__;return("string"==(o=n(r=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function De(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Ne(r)?r:void 0}Oe.prototype.clear=function(){this.__data__=ge?ge(null):{}},Oe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Oe.prototype.get=function(e){var t=this.__data__;if(ge){var r=t[e];return r===i?void 0:r}return ee.call(t,e)?t[e]:void 0},Oe.prototype.has=function(e){var t=this.__data__;return ge?void 0!==t[e]:ee.call(t,e)},Oe.prototype.set=function(e,t){return this.__data__[e]=ge&&void 0===t?i:t,this},_e.prototype.clear=function(){this.__data__=[]},_e.prototype.delete=function(e){var t=this.__data__,r=je(t,e);return!(r<0||(r==t.length-1?t.pop():le.call(t,r,1),0))},_e.prototype.get=function(e){var t=this.__data__,r=je(t,e);return r<0?void 0:t[r][1]},_e.prototype.has=function(e){return je(this.__data__,e)>-1},_e.prototype.set=function(e,t){var r=this.__data__,n=je(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},xe.prototype.clear=function(){this.__data__={hash:new Oe,map:new(he||_e),string:new Oe}},xe.prototype.delete=function(e){return Re(this,e).delete(e)},xe.prototype.get=function(e){return Re(this,e).get(e)},xe.prototype.has=function(e){return Re(this,e).has(e)},xe.prototype.set=function(e,t){return Re(this,e).set(e,t),this},Pe.prototype.clear=function(){this.__data__=new _e},Pe.prototype.delete=function(e){return this.__data__.delete(e)},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof _e){var n=r.__data__;if(!he||n.length<o-1)return n.push([e,t]),this;r=this.__data__=new xe(n)}return r.set(e,t),this};var Fe=ce?K(ce,Object):function(){return[]},Qe=function(e){return te.call(e)};function Ge(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||j.test(e))&&e>-1&&e%1==0&&e<t}function Ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||W)}function ze(e){if(null!=e){try{return $.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function He(e,t){return e===t||e!=e&&t!=t}(ye&&Qe(new ye(new ArrayBuffer(1)))!=A||he&&Qe(new he)!=p||de&&"[object Promise]"!=Qe(de.resolve())||me&&Qe(new me)!=m||ve&&"[object WeakMap]"!=Qe(new ve))&&(Qe=function(e){var t=te.call(e),r=t==h?e.constructor:void 0,n=r?ze(r):void 0;if(n)switch(n){case be:return A;case Ae:return p;case we:return"[object Promise]";case Se:return m;case Ce:return"[object WeakMap]"}return t});var Ke=Array.isArray;function qe(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}(e.length)&&!Ye(e)}var Ve=fe||function(){return!1};function Ye(e){var t=Je(e)?te.call(e):"";return t==c||t==f}function Je(e){var t=n(e);return!!e&&("object"==t||"function"==t)}function We(e){return qe(e)?ke(e):function(e){if(!Ue(e))return pe(e);var t=[];for(var r in Object(e))ee.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return Be(e,!0,!0)}},1855:function(e,t,r){function n(e){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o="Expected a function",i=NaN,a="[object Symbol]",s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,p="object"==(void 0===r.g?"undefined":n(r.g))&&r.g&&r.g.Object===Object&&r.g,y="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,h=p||y||Function("return this")(),d=Object.prototype.toString,m=Math.max,v=Math.min,g=function(){return h.Date.now()};function b(e){var t=n(e);return!!e&&("object"==t||"function"==t)}function A(e){return"symbol"==n(e)||function(e){return!!e&&"object"==n(e)}(e)&&d.call(e)==a}function w(e