UNPKG

install-expo-modules

Version:

Tools to install expo-modules for existing react-native projects

2 lines 1.7 MB
#!/usr/bin/env node (()=>{var b={14971:(b,S,J)=>{"use strict";b=J.nmd(b);const ee=J(42830);const wrapAnsi16=(b,S)=>function(){const J=b.apply(ee,arguments);return`[${J+S}m`};const wrapAnsi256=(b,S)=>function(){const J=b.apply(ee,arguments);return`[${38+S};5;${J}m`};const wrapAnsi16m=(b,S)=>function(){const J=b.apply(ee,arguments);return`[${38+S};2;${J[0]};${J[1]};${J[2]}m`};function assembleStyles(){const b=new Map;const S={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};S.color.grey=S.color.gray;for(const J of Object.keys(S)){const ee=S[J];for(const J of Object.keys(ee)){const te=ee[J];S[J]={open:`[${te[0]}m`,close:`[${te[1]}m`};ee[J]=S[J];b.set(te[0],te[1])}Object.defineProperty(S,J,{value:ee,enumerable:false});Object.defineProperty(S,"codes",{value:b,enumerable:false})}const ansi2ansi=b=>b;const rgb2rgb=(b,S,J)=>[b,S,J];S.color.close="";S.bgColor.close="";S.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};S.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};S.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};S.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};S.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};S.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let b of Object.keys(ee)){if(typeof ee[b]!=="object"){continue}const J=ee[b];if(b==="ansi16"){b="ansi"}if("ansi16"in J){S.color.ansi[b]=wrapAnsi16(J.ansi16,0);S.bgColor.ansi[b]=wrapAnsi16(J.ansi16,10)}if("ansi256"in J){S.color.ansi256[b]=wrapAnsi256(J.ansi256,0);S.bgColor.ansi256[b]=wrapAnsi256(J.ansi256,10)}if("rgb"in J){S.color.ansi16m[b]=wrapAnsi16m(J.rgb,0);S.bgColor.ansi16m[b]=wrapAnsi16m(J.rgb,10)}}return S}Object.defineProperty(b,"exports",{enumerable:true,get:assembleStyles})},26870:(b,S,J)=>{"use strict";const ee=J(5978);const te=J(14971);const re=J(31851).stdout;const ne=J(86094);const ie=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const oe=["ansi","ansi","ansi256","ansi16m"];const se=new Set(["gray"]);const ae=Object.create(null);function applyOptions(b,S){S=S||{};const J=re?re.level:0;b.level=S.level===undefined?J:S.level;b.enabled="enabled"in S?S.enabled:b.level>0}function Chalk(b){if(!this||!(this instanceof Chalk)||this.template){const S={};applyOptions(S,b);S.template=function(){const b=[].slice.call(arguments);return chalkTag.apply(null,[S.template].concat(b))};Object.setPrototypeOf(S,Chalk.prototype);Object.setPrototypeOf(S.template,S);S.template.constructor=Chalk;return S.template}applyOptions(this,b)}if(ie){te.blue.open=""}for(const b of Object.keys(te)){te[b].closeRe=new RegExp(ee(te[b].close),"g");ae[b]={get(){const S=te[b];return build.call(this,this._styles?this._styles.concat(S):[S],this._empty,b)}}}ae.visible={get(){return build.call(this,this._styles||[],true,"visible")}};te.color.closeRe=new RegExp(ee(te.color.close),"g");for(const b of Object.keys(te.color.ansi)){if(se.has(b)){continue}ae[b]={get(){const S=this.level;return function(){const J=te.color[oe[S]][b].apply(null,arguments);const ee={open:J,close:te.color.close,closeRe:te.color.closeRe};return build.call(this,this._styles?this._styles.concat(ee):[ee],this._empty,b)}}}}te.bgColor.closeRe=new RegExp(ee(te.bgColor.close),"g");for(const b of Object.keys(te.bgColor.ansi)){if(se.has(b)){continue}const S="bg"+b[0].toUpperCase()+b.slice(1);ae[S]={get(){const S=this.level;return function(){const J=te.bgColor[oe[S]][b].apply(null,arguments);const ee={open:J,close:te.bgColor.close,closeRe:te.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(ee):[ee],this._empty,b)}}}}const ue=Object.defineProperties((()=>{}),ae);function build(b,S,J){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=b;builder._empty=S;const ee=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return ee.level},set(b){ee.level=b}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return ee.enabled},set(b){ee.enabled=b}});builder.hasGrey=this.hasGrey||J==="gray"||J==="grey";builder.__proto__=ue;return builder}function applyStyle(){const b=arguments;const S=b.length;let J=String(arguments[0]);if(S===0){return""}if(S>1){for(let ee=1;ee<S;ee++){J+=" "+b[ee]}}if(!this.enabled||this.level<=0||!J){return this._empty?"":J}const ee=te.dim.open;if(ie&&this.hasGrey){te.dim.open=""}for(const b of this._styles.slice().reverse()){J=b.open+J.replace(b.closeRe,b.open)+b.close;J=J.replace(/\r?\n/g,`${b.close}$&${b.open}`)}te.dim.open=ee;return J}function chalkTag(b,S){if(!Array.isArray(S)){return[].slice.call(arguments,1).join(" ")}const J=[].slice.call(arguments,2);const ee=[S.raw[0]];for(let b=1;b<S.length;b++){ee.push(String(J[b-1]).replace(/[{}\\]/g,"\\$&"));ee.push(String(S.raw[b]))}return ne(b,ee.join(""))}Object.defineProperties(Chalk.prototype,ae);b.exports=Chalk();b.exports.supportsColor=re;b.exports["default"]=b.exports},86094:b=>{"use strict";const S=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const J=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const ee=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const te=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const re=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(b){if(b[0]==="u"&&b.length===5||b[0]==="x"&&b.length===3){return String.fromCharCode(parseInt(b.slice(1),16))}return re.get(b)||b}function parseArguments(b,S){const J=[];const re=S.trim().split(/\s*,\s*/g);let ne;for(const S of re){if(!isNaN(S)){J.push(Number(S))}else if(ne=S.match(ee)){J.push(ne[2].replace(te,((b,S,J)=>S?unescape(S):J)))}else{throw new Error(`Invalid Chalk template style argument: ${S} (in style '${b}')`)}}return J}function parseStyle(b){J.lastIndex=0;const S=[];let ee;while((ee=J.exec(b))!==null){const b=ee[1];if(ee[2]){const J=parseArguments(b,ee[2]);S.push([b].concat(J))}else{S.push([b])}}return S}function buildStyle(b,S){const J={};for(const b of S){for(const S of b.styles){J[S[0]]=b.inverse?null:S.slice(1)}}let ee=b;for(const b of Object.keys(J)){if(Array.isArray(J[b])){if(!(b in ee)){throw new Error(`Unknown Chalk style: ${b}`)}if(J[b].length>0){ee=ee[b].apply(ee,J[b])}else{ee=ee[b]}}}return ee}b.exports=(b,J)=>{const ee=[];const te=[];let re=[];J.replace(S,((S,J,ne,ie,oe,se)=>{if(J){re.push(unescape(J))}else if(ie){const S=re.join("");re=[];te.push(ee.length===0?S:buildStyle(b,ee)(S));ee.push({inverse:ne,styles:parseStyle(ie)})}else if(oe){if(ee.length===0){throw new Error("Found extraneous } in Chalk template literal")}te.push(buildStyle(b,ee)(re.join("")));re=[];ee.pop()}else{re.push(se)}}));te.push(re.join(""));if(ee.length>0){const b=`Chalk template literal is missing ${ee.length} closing bracket${ee.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return te.join("")}},5978:b=>{"use strict";var S=/[|\\{}()[\]^$+*?.]/g;b.exports=function(b){if(typeof b!=="string"){throw new TypeError("Expected a string")}return b.replace(S,"\\$&")}},46966:b=>{"use strict";b.exports=(b,S)=>{S=S||process.argv;const J=b.startsWith("-")?"":b.length===1?"-":"--";const ee=S.indexOf(J+b);const te=S.indexOf("--");return ee!==-1&&(te===-1?true:ee<te)}},31851:(b,S,J)=>{"use strict";const ee=J(22037);const te=J(46966);const re=process.env;let ne;if(te("no-color")||te("no-colors")||te("color=false")){ne=false}else if(te("color")||te("colors")||te("color=true")||te("color=always")){ne=true}if("FORCE_COLOR"in re){ne=re.FORCE_COLOR.length===0||parseInt(re.FORCE_COLOR,10)!==0}function translateLevel(b){if(b===0){return false}return{level:b,hasBasic:true,has256:b>=2,has16m:b>=3}}function supportsColor(b){if(ne===false){return 0}if(te("color=16m")||te("color=full")||te("color=truecolor")){return 3}if(te("color=256")){return 2}if(b&&!b.isTTY&&ne!==true){return 0}const S=ne?1:0;if(process.platform==="win32"){const b=ee.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(b[0])>=10&&Number(b[2])>=10586){return Number(b[2])>=14931?3:2}return 1}if("CI"in re){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((b=>b in re))||re.CI_NAME==="codeship"){return 1}return S}if("TEAMCITY_VERSION"in re){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(re.TEAMCITY_VERSION)?1:0}if(re.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in re){const b=parseInt((re.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(re.TERM_PROGRAM){case"iTerm.app":return b>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(re.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(re.TERM)){return 1}if("COLORTERM"in re){return 1}if(re.TERM==="dumb"){return S}return S}function getSupportLevel(b){const S=supportsColor(b);return translateLevel(S)}b.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},6163:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.isSDKVersionRuntimeVersion=S.getSDKVersionFromRuntimeVersion=S.getRuntimeVersionForSDKVersion=S.RUNTIME_VERSION_PREFIX=void 0;S.RUNTIME_VERSION_PREFIX="exposdk:";function getRuntimeVersionForSDKVersion(b){return""+S.RUNTIME_VERSION_PREFIX+b}S.getRuntimeVersionForSDKVersion=getRuntimeVersionForSDKVersion;function getSDKVersionFromRuntimeVersion(b){var S=/^exposdk:(\d+\.\d+\.\d+)$/.exec(b);if(!S||S.length<2){return undefined}return S[1]}S.getSDKVersionFromRuntimeVersion=getSDKVersionFromRuntimeVersion;function isSDKVersionRuntimeVersion(b){return getSDKVersionFromRuntimeVersion(b)!==undefined}S.isSDKVersionRuntimeVersion=isSDKVersionRuntimeVersion},95642:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};const te=ee(J(97987));function spawnAsync(b,S,J={}){const ee=new Error;const re=ee.stack?ee.stack.replace(/^.*/," ..."):null;let ne;let ie=new Promise(((ee,ie)=>{let{ignoreStdio:oe,...se}=J;ne=(0,te.default)(b,S,se);let ae="";let ue="";if(!oe){if(ne.stdout){ne.stdout.on("data",(b=>{ae+=b}))}if(ne.stderr){ne.stderr.on("data",(b=>{ue+=b}))}}let completionListener=(J,te)=>{ne.removeListener("error",errorListener);let oe={pid:ne.pid,output:[ae,ue],stdout:ae,stderr:ue,status:J,signal:te};if(J!==0){let ee=S&&S.length>0?` ${S.join(" ")}`:"";let ne=te?new Error(`${b}${ee} exited with signal: ${te}`):new Error(`${b}${ee} exited with non-zero code: ${J}`);if(ne.stack&&re){ne.stack+=`\n${re}`}Object.assign(ne,oe);ie(ne)}else{ee(oe)}};let errorListener=b=>{if(oe){ne.removeListener("exit",completionListener)}else{ne.removeListener("close",completionListener)}Object.assign(b,{pid:ne.pid,output:[ae,ue],stdout:ae,stderr:ue,status:null,signal:null});ie(b)};if(oe){ne.once("exit",completionListener)}else{ne.once("close",completionListener)}ne.once("error",errorListener)}));ie.child=ne;return ie}b.exports=spawnAsync},94426:function(b,S,J){(function(b,ee){true?ee(S,J(39962),J(80818),J(33780)):0})(this,(function(b,S,J,ee){"use strict";const te=0;const re=1;const ne=2;const ie=3;const oe=4;const se=-1;b.addSegment=void 0;b.addMapping=void 0;b.maybeAddSegment=void 0;b.maybeAddMapping=void 0;b.setSourceContent=void 0;b.toDecodedMap=void 0;b.toEncodedMap=void 0;b.fromMap=void 0;b.allMappings=void 0;let ae;class GenMapping{constructor({file:b,sourceRoot:J}={}){this._names=new S.SetArray;this._sources=new S.SetArray;this._sourcesContent=[];this._mappings=[];this.file=b;this.sourceRoot=J}}(()=>{b.addSegment=(b,S,J,ee,te,re,ne,ie)=>ae(false,b,S,J,ee,te,re,ne,ie);b.maybeAddSegment=(b,S,J,ee,te,re,ne,ie)=>ae(true,b,S,J,ee,te,re,ne,ie);b.addMapping=(b,S)=>addMappingInternal(false,b,S);b.maybeAddMapping=(b,S)=>addMappingInternal(true,b,S);b.setSourceContent=(b,J,ee)=>{const{_sources:te,_sourcesContent:re}=b;re[S.put(te,J)]=ee};b.toDecodedMap=b=>{const{file:S,sourceRoot:J,_mappings:ee,_sources:te,_sourcesContent:re,_names:ne}=b;removeEmptyFinalLines(ee);return{version:3,file:S||undefined,names:ne.array,sourceRoot:J||undefined,sources:te.array,sourcesContent:re,mappings:ee}};b.toEncodedMap=S=>{const ee=b.toDecodedMap(S);return Object.assign(Object.assign({},ee),{mappings:J.encode(ee.mappings)})};b.allMappings=b=>{const S=[];const{_mappings:J,_sources:ee,_names:se}=b;for(let b=0;b<J.length;b++){const ae=J[b];for(let J=0;J<ae.length;J++){const ue=ae[J];const ce={line:b+1,column:ue[te]};let le=undefined;let pe=undefined;let fe=undefined;if(ue.length!==1){le=ee.array[ue[re]];pe={line:ue[ne]+1,column:ue[ie]};if(ue.length===5)fe=se.array[ue[oe]]}S.push({generated:ce,source:le,original:pe,name:fe})}}return S};b.fromMap=b=>{const S=new ee.TraceMap(b);const J=new GenMapping({file:S.file,sourceRoot:S.sourceRoot});putAll(J._names,S.names);putAll(J._sources,S.sources);J._sourcesContent=S.sourcesContent||S.sources.map((()=>null));J._mappings=ee.decodedMappings(S);return J};ae=(b,J,ee,te,re,ne,ie,oe,ae)=>{const{_mappings:ue,_sources:ce,_sourcesContent:le,_names:pe}=J;const fe=getLine(ue,ee);const de=getColumnIndex(fe,te);if(!re){if(b&&skipSourceless(fe,de))return;return insert(fe,de,[te])}const he=S.put(ce,re);const me=oe?S.put(pe,oe):se;if(he===le.length)le[he]=ae!==null&&ae!==void 0?ae:null;if(b&&skipSource(fe,de,he,ne,ie,me)){return}return insert(fe,de,oe?[te,he,ne,ie,me]:[te,he,ne,ie])}})();function getLine(b,S){for(let J=b.length;J<=S;J++){b[J]=[]}return b[S]}function getColumnIndex(b,S){let J=b.length;for(let ee=J-1;ee>=0;J=ee--){const J=b[ee];if(S>=J[te])break}return J}function insert(b,S,J){for(let J=b.length;J>S;J--){b[J]=b[J-1]}b[S]=J}function removeEmptyFinalLines(b){const{length:S}=b;let J=S;for(let S=J-1;S>=0;J=S,S--){if(b[S].length>0)break}if(J<S)b.length=J}function putAll(b,J){for(let ee=0;ee<J.length;ee++)S.put(b,J[ee])}function skipSourceless(b,S){if(S===0)return true;const J=b[S-1];return J.length===1}function skipSource(b,S,J,ee,te,ae){if(S===0)return false;const ue=b[S-1];if(ue.length===1)return false;return J===ue[re]&&ee===ue[ne]&&te===ue[ie]&&ae===(ue.length===5?ue[oe]:se)}function addMappingInternal(b,S,J){const{generated:ee,source:te,original:re,name:ne,content:ie}=J;if(!te){return ae(b,S,ee.line-1,ee.column,null,null,null,null,null)}const oe=te;return ae(b,S,ee.line-1,ee.column,oe,re.line-1,re.column,ne,ie)}b.GenMapping=GenMapping;Object.defineProperty(b,"__esModule",{value:true})}))},70721:function(b){(function(S,J){true?b.exports=J():0})(this,(function(){"use strict";const b=/^[\w+.-]+:\/\//;const S=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;const J=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var ee;(function(b){b[b["Empty"]=1]="Empty";b[b["Hash"]=2]="Hash";b[b["Query"]=3]="Query";b[b["RelativePath"]=4]="RelativePath";b[b["AbsolutePath"]=5]="AbsolutePath";b[b["SchemeRelative"]=6]="SchemeRelative";b[b["Absolute"]=7]="Absolute"})(ee||(ee={}));function isAbsoluteUrl(S){return b.test(S)}function isSchemeRelativeUrl(b){return b.startsWith("//")}function isAbsolutePath(b){return b.startsWith("/")}function isFileUrl(b){return b.startsWith("file:")}function isRelative(b){return/^[.?#]/.test(b)}function parseAbsoluteUrl(b){const J=S.exec(b);return makeUrl(J[1],J[2]||"",J[3],J[4]||"",J[5]||"/",J[6]||"",J[7]||"")}function parseFileUrl(b){const S=J.exec(b);const ee=S[2];return makeUrl("file:","",S[1]||"","",isAbsolutePath(ee)?ee:"/"+ee,S[3]||"",S[4]||"")}function makeUrl(b,S,J,te,re,ne,ie){return{scheme:b,user:S,host:J,port:te,path:re,query:ne,hash:ie,type:ee.Absolute}}function parseUrl(b){if(isSchemeRelativeUrl(b)){const S=parseAbsoluteUrl("http:"+b);S.scheme="";S.type=ee.SchemeRelative;return S}if(isAbsolutePath(b)){const S=parseAbsoluteUrl("http://foo.com"+b);S.scheme="";S.host="";S.type=ee.AbsolutePath;return S}if(isFileUrl(b))return parseFileUrl(b);if(isAbsoluteUrl(b))return parseAbsoluteUrl(b);const S=parseAbsoluteUrl("http://foo.com/"+b);S.scheme="";S.host="";S.type=b?b.startsWith("?")?ee.Query:b.startsWith("#")?ee.Hash:ee.RelativePath:ee.Empty;return S}function stripPathFilename(b){if(b.endsWith("/.."))return b;const S=b.lastIndexOf("/");return b.slice(0,S+1)}function mergePaths(b,S){normalizePath(S,S.type);if(b.path==="/"){b.path=S.path}else{b.path=stripPathFilename(S.path)+b.path}}function normalizePath(b,S){const J=S<=ee.RelativePath;const te=b.path.split("/");let re=1;let ne=0;let ie=false;for(let b=1;b<te.length;b++){const S=te[b];if(!S){ie=true;continue}ie=false;if(S===".")continue;if(S===".."){if(ne){ie=true;ne--;re--}else if(J){te[re++]=S}continue}te[re++]=S;ne++}let oe="";for(let b=1;b<re;b++){oe+="/"+te[b]}if(!oe||ie&&!oe.endsWith("/..")){oe+="/"}b.path=oe}function resolve(b,S){if(!b&&!S)return"";const J=parseUrl(b);let te=J.type;if(S&&te!==ee.Absolute){const b=parseUrl(S);const re=b.type;switch(te){case ee.Empty:J.hash=b.hash;case ee.Hash:J.query=b.query;case ee.Query:case ee.RelativePath:mergePaths(J,b);case ee.AbsolutePath:J.user=b.user;J.host=b.host;J.port=b.port;case ee.SchemeRelative:J.scheme=b.scheme}if(re>te)te=re}normalizePath(J,te);const re=J.query+J.hash;switch(te){case ee.Hash:case ee.Query:return re;case ee.RelativePath:{const ee=J.path.slice(1);if(!ee)return re||".";if(isRelative(S||b)&&!isRelative(ee)){return"./"+ee+re}return ee+re}case ee.AbsolutePath:return J.path+re;default:return J.scheme+"//"+J.user+J.host+J.port+J.path+re}}return resolve}))},39962:function(b,S){(function(b,J){true?J(S):0})(this,(function(b){"use strict";b.get=void 0;b.put=void 0;b.pop=void 0;class SetArray{constructor(){this._indexes={__proto__:null};this.array=[]}}(()=>{b.get=(b,S)=>b._indexes[S];b.put=(S,J)=>{const ee=b.get(S,J);if(ee!==undefined)return ee;const{array:te,_indexes:re}=S;return re[J]=te.push(J)-1};b.pop=b=>{const{array:S,_indexes:J}=b;if(S.length===0)return;const ee=S.pop();J[ee]=undefined}})();b.SetArray=SetArray;Object.defineProperty(b,"__esModule",{value:true})}))},80818:function(b,S){(function(b,J){true?J(S):0})(this,(function(b){"use strict";const S=",".charCodeAt(0);const J=";".charCodeAt(0);const ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const te=new Uint8Array(64);const re=new Uint8Array(128);for(let b=0;b<ee.length;b++){const S=ee.charCodeAt(b);te[b]=S;re[S]=b}const ne=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(b){const S=Buffer.from(b.buffer,b.byteOffset,b.byteLength);return S.toString()}}:{decode(b){let S="";for(let J=0;J<b.length;J++){S+=String.fromCharCode(b[J])}return S}};function decode(b){const S=new Int32Array(5);const J=[];let ee=0;do{const te=indexOf(b,ee);const re=[];let ne=true;let ie=0;S[0]=0;for(let J=ee;J<te;J++){let ee;J=decodeInteger(b,J,S,0);const oe=S[0];if(oe<ie)ne=false;ie=oe;if(hasMoreVlq(b,J,te)){J=decodeInteger(b,J,S,1);J=decodeInteger(b,J,S,2);J=decodeInteger(b,J,S,3);if(hasMoreVlq(b,J,te)){J=decodeInteger(b,J,S,4);ee=[oe,S[1],S[2],S[3],S[4]]}else{ee=[oe,S[1],S[2],S[3]]}}else{ee=[oe]}re.push(ee)}if(!ne)sort(re);J.push(re);ee=te+1}while(ee<=b.length);return J}function indexOf(b,S){const J=b.indexOf(";",S);return J===-1?b.length:J}function decodeInteger(b,S,J,ee){let te=0;let ne=0;let ie=0;do{const J=b.charCodeAt(S++);ie=re[J];te|=(ie&31)<<ne;ne+=5}while(ie&32);const oe=te&1;te>>>=1;if(oe){te=-2147483648|-te}J[ee]+=te;return S}function hasMoreVlq(b,J,ee){if(J>=ee)return false;return b.charCodeAt(J)!==S}function sort(b){b.sort(sortComparator)}function sortComparator(b,S){return b[0]-S[0]}function encode(b){const ee=new Int32Array(5);const te=1024*16;const re=te-36;const ie=new Uint8Array(te);const oe=ie.subarray(0,re);let se=0;let ae="";for(let ue=0;ue<b.length;ue++){const ce=b[ue];if(ue>0){if(se===te){ae+=ne.decode(ie);se=0}ie[se++]=J}if(ce.length===0)continue;ee[0]=0;for(let b=0;b<ce.length;b++){const J=ce[b];if(se>re){ae+=ne.decode(oe);ie.copyWithin(0,re,se);se-=re}if(b>0)ie[se++]=S;se=encodeInteger(ie,se,ee,J,0);if(J.length===1)continue;se=encodeInteger(ie,se,ee,J,1);se=encodeInteger(ie,se,ee,J,2);se=encodeInteger(ie,se,ee,J,3);if(J.length===4)continue;se=encodeInteger(ie,se,ee,J,4)}}return ae+ne.decode(ie.subarray(0,se))}function encodeInteger(b,S,J,ee,re){const ne=ee[re];let ie=ne-J[re];J[re]=ne;ie=ie<0?-ie<<1|1:ie<<1;do{let J=ie&31;ie>>>=5;if(ie>0)J|=32;b[S++]=te[J]}while(ie>0);return S}b.decode=decode;b.encode=encode;Object.defineProperty(b,"__esModule",{value:true})}))},33780:function(b,S,J){(function(b,ee){true?ee(S,J(80818),J(70721)):0})(this,(function(b,S,J){"use strict";function resolve(b,S){if(S&&!S.endsWith("/"))S+="/";return J(b,S)}function stripFilename(b){if(!b)return"";const S=b.lastIndexOf("/");return b.slice(0,S+1)}const ee=0;const te=1;const re=2;const ne=3;const ie=4;const oe=1;const se=2;function maybeSort(b,S){const J=nextUnsortedSegmentLine(b,0);if(J===b.length)return b;if(!S)b=b.slice();for(let ee=J;ee<b.length;ee=nextUnsortedSegmentLine(b,ee+1)){b[ee]=sortSegments(b[ee],S)}return b}function nextUnsortedSegmentLine(b,S){for(let J=S;J<b.length;J++){if(!isSorted(b[J]))return J}return b.length}function isSorted(b){for(let S=1;S<b.length;S++){if(b[S][ee]<b[S-1][ee]){return false}}return true}function sortSegments(b,S){if(!S)b=b.slice();return b.sort(sortComparator)}function sortComparator(b,S){return b[ee]-S[ee]}let ae=false;function binarySearch(b,S,J,te){while(J<=te){const re=J+(te-J>>1);const ne=b[re][ee]-S;if(ne===0){ae=true;return re}if(ne<0){J=re+1}else{te=re-1}}ae=false;return J-1}function upperBound(b,S,J){for(let te=J+1;te<b.length;J=te++){if(b[te][ee]!==S)break}return J}function lowerBound(b,S,J){for(let te=J-1;te>=0;J=te--){if(b[te][ee]!==S)break}return J}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(b,S,J,te){const{lastKey:re,lastNeedle:ne,lastIndex:ie}=J;let oe=0;let se=b.length-1;if(te===re){if(S===ne){ae=ie!==-1&&b[ie][ee]===S;return ie}if(S>=ne){oe=ie===-1?0:ie}else{se=ie}}J.lastKey=te;J.lastNeedle=S;return J.lastIndex=binarySearch(b,S,oe,se)}function buildBySources(b,S){const J=S.map(buildNullArray);for(let ie=0;ie<b.length;ie++){const oe=b[ie];for(let b=0;b<oe.length;b++){const se=oe[b];if(se.length===1)continue;const ae=se[te];const ue=se[re];const ce=se[ne];const le=J[ae];const pe=le[ue]||(le[ue]=[]);const fe=S[ae];let de=upperBound(pe,ce,memoizedBinarySearch(pe,ce,fe,ue));fe.lastIndex=++de;insert(pe,de,[ce,ie,se[ee]])}}return J}function insert(b,S,J){for(let J=b.length;J>S;J--){b[J]=b[J-1]}b[S]=J}function buildNullArray(){return{__proto__:null}}const AnyMap=function(b,S){const J=parse(b);if(!("sections"in J)){return new TraceMap(J,S)}const ee=[];const te=[];const re=[];const ne=[];const ie=[];recurse(J,S,ee,te,re,ne,ie,0,0,Infinity,Infinity);const oe={version:3,file:J.file,names:ne,sources:te,sourcesContent:re,mappings:ee,ignoreList:ie};return presortedDecodedMap(oe)};function parse(b){return typeof b==="string"?JSON.parse(b):b}function recurse(b,S,J,ee,te,re,ne,ie,oe,se,ae){const{sections:ue}=b;for(let b=0;b<ue.length;b++){const{map:ce,offset:le}=ue[b];let pe=se;let fe=ae;if(b+1<ue.length){const S=ue[b+1].offset;pe=Math.min(se,ie+S.line);if(pe===se){fe=Math.min(ae,oe+S.column)}else if(pe<se){fe=oe+S.column}}addSection(ce,S,J,ee,te,re,ne,ie+le.line,oe+le.column,pe,fe)}}function addSection(b,S,J,oe,se,ae,ue,ce,le,pe,fe){const de=parse(b);if("sections"in de)return recurse(...arguments);const he=new TraceMap(de,S);const me=oe.length;const ge=ae.length;const ye=decodedMappings(he);const{resolvedSources:ve,sourcesContent:Te,ignoreList:be}=he;append(oe,ve);append(ae,he.names);if(Te)append(se,Te);else for(let b=0;b<ve.length;b++)se.push(null);if(be)for(let b=0;b<be.length;b++)ue.push(be[b]+me);for(let b=0;b<ye.length;b++){const S=ce+b;if(S>pe)return;const oe=getLine(J,S);const se=b===0?le:0;const ae=ye[b];for(let b=0;b<ae.length;b++){const J=ae[b];const ue=se+J[ee];if(S===pe&&ue>=fe)return;if(J.length===1){oe.push([ue]);continue}const ce=me+J[te];const le=J[re];const de=J[ne];oe.push(J.length===4?[ue,ce,le,de]:[ue,ce,le,de,ge+J[ie]])}}}function append(b,S){for(let J=0;J<S.length;J++)b.push(S[J])}function getLine(b,S){for(let J=b.length;J<=S;J++)b[J]=[];return b[S]}const ue="`line` must be greater than 0 (lines start at line 1)";const ce="`column` must be greater than or equal to 0 (columns start at column 0)";const le=-1;const pe=1;class TraceMap{constructor(b,S){const J=typeof b==="string";if(!J&&b._decodedMemo)return b;const ee=J?JSON.parse(b):b;const{version:te,file:re,names:ne,sourceRoot:ie,sources:oe,sourcesContent:se}=ee;this.version=te;this.file=re;this.names=ne||[];this.sourceRoot=ie;this.sources=oe;this.sourcesContent=se;this.ignoreList=ee.ignoreList||ee.x_google_ignoreList||undefined;const ae=resolve(ie||"",stripFilename(S));this.resolvedSources=oe.map((b=>resolve(b||"",ae)));const{mappings:ue}=ee;if(typeof ue==="string"){this._encoded=ue;this._decoded=undefined}else{this._encoded=undefined;this._decoded=maybeSort(ue,J)}this._decodedMemo=memoizedState();this._bySources=undefined;this._bySourceMemos=undefined}}function cast(b){return b}function encodedMappings(b){var J;var ee;return(J=(ee=cast(b))._encoded)!==null&&J!==void 0?J:ee._encoded=S.encode(cast(b)._decoded)}function decodedMappings(b){var J;return(J=cast(b))._decoded||(J._decoded=S.decode(cast(b)._encoded))}function traceSegment(b,S,J){const ee=decodedMappings(b);if(S>=ee.length)return null;const te=ee[S];const re=traceSegmentInternal(te,cast(b)._decodedMemo,S,J,pe);return re===-1?null:te[re]}function originalPositionFor(b,S){let{line:J,column:ee,bias:oe}=S;J--;if(J<0)throw new Error(ue);if(ee<0)throw new Error(ce);const se=decodedMappings(b);if(J>=se.length)return OMapping(null,null,null,null);const ae=se[J];const le=traceSegmentInternal(ae,cast(b)._decodedMemo,J,ee,oe||pe);if(le===-1)return OMapping(null,null,null,null);const fe=ae[le];if(fe.length===1)return OMapping(null,null,null,null);const{names:de,resolvedSources:he}=b;return OMapping(he[fe[te]],fe[re]+1,fe[ne],fe.length===5?de[fe[ie]]:null)}function generatedPositionFor(b,S){const{source:J,line:ee,column:te,bias:re}=S;return generatedPosition(b,J,ee,te,re||pe,false)}function allGeneratedPositionsFor(b,S){const{source:J,line:ee,column:te,bias:re}=S;return generatedPosition(b,J,ee,te,re||le,true)}function eachMapping(b,S){const J=decodedMappings(b);const{names:ee,resolvedSources:te}=b;for(let b=0;b<J.length;b++){const re=J[b];for(let J=0;J<re.length;J++){const ne=re[J];const ie=b+1;const oe=ne[0];let se=null;let ae=null;let ue=null;let ce=null;if(ne.length!==1){se=te[ne[1]];ae=ne[2]+1;ue=ne[3]}if(ne.length===5)ce=ee[ne[4]];S({generatedLine:ie,generatedColumn:oe,source:se,originalLine:ae,originalColumn:ue,name:ce})}}}function sourceIndex(b,S){const{sources:J,resolvedSources:ee}=b;let te=J.indexOf(S);if(te===-1)te=ee.indexOf(S);return te}function sourceContentFor(b,S){const{sourcesContent:J}=b;if(J==null)return null;const ee=sourceIndex(b,S);return ee===-1?null:J[ee]}function isIgnored(b,S){const{ignoreList:J}=b;if(J==null)return false;const ee=sourceIndex(b,S);return ee===-1?false:J.includes(ee)}function presortedDecodedMap(b,S){const J=new TraceMap(clone(b,[]),S);cast(J)._decoded=b.mappings;return J}function decodedMap(b){return clone(b,decodedMappings(b))}function encodedMap(b){return clone(b,encodedMappings(b))}function clone(b,S){return{version:b.version,file:b.file,names:b.names,sourceRoot:b.sourceRoot,sources:b.sources,sourcesContent:b.sourcesContent,mappings:S,ignoreList:b.ignoreList||b.x_google_ignoreList}}function OMapping(b,S,J,ee){return{source:b,line:S,column:J,name:ee}}function GMapping(b,S){return{line:b,column:S}}function traceSegmentInternal(b,S,J,ee,te){let re=memoizedBinarySearch(b,ee,S,J);if(ae){re=(te===le?upperBound:lowerBound)(b,ee,re)}else if(te===le)re++;if(re===-1||re===b.length)return-1;return re}function sliceGeneratedPositions(b,S,J,te,re){let ne=traceSegmentInternal(b,S,J,te,pe);if(!ae&&re===le)ne++;if(ne===-1||ne===b.length)return[];const ie=ae?te:b[ne][ee];if(!ae)ne=lowerBound(b,ie,ne);const ue=upperBound(b,ie,ne);const ce=[];for(;ne<=ue;ne++){const S=b[ne];ce.push(GMapping(S[oe]+1,S[se]))}return ce}function generatedPosition(b,S,J,ee,te,re){var ne;J--;if(J<0)throw new Error(ue);if(ee<0)throw new Error(ce);const{sources:ie,resolvedSources:ae}=b;let le=ie.indexOf(S);if(le===-1)le=ae.indexOf(S);if(le===-1)return re?[]:GMapping(null,null);const pe=(ne=cast(b))._bySources||(ne._bySources=buildBySources(decodedMappings(b),cast(b)._bySourceMemos=ie.map(memoizedState)));const fe=pe[le][J];if(fe==null)return re?[]:GMapping(null,null);const de=cast(b)._bySourceMemos[le];if(re)return sliceGeneratedPositions(fe,de,J,ee,te);const he=traceSegmentInternal(fe,de,J,ee,te);if(he===-1)return GMapping(null,null);const me=fe[he];return GMapping(me[oe]+1,me[se])}b.AnyMap=AnyMap;b.GREATEST_LOWER_BOUND=pe;b.LEAST_UPPER_BOUND=le;b.TraceMap=TraceMap;b.allGeneratedPositionsFor=allGeneratedPositionsFor;b.decodedMap=decodedMap;b.decodedMappings=decodedMappings;b.eachMapping=eachMapping;b.encodedMap=encodedMap;b.encodedMappings=encodedMappings;b.generatedPositionFor=generatedPositionFor;b.isIgnored=isIgnored;b.originalPositionFor=originalPositionFor;b.presortedDecodedMap=presortedDecodedMap;b.sourceContentFor=sourceContentFor;b.traceSegment=traceSegment}))},78951:(b,S)=>{"use strict";function find(b,S,J){if(J===undefined){J=Array.prototype}if(b&&typeof J.find==="function"){return J.find.call(b,S)}for(var ee=0;ee<b.length;ee++){if(Object.prototype.hasOwnProperty.call(b,ee)){var te=b[ee];if(S.call(undefined,te,ee,b)){return te}}}}function freeze(b,S){if(S===undefined){S=Object}return S&&typeof S.freeze==="function"?S.freeze(b):b}var J=freeze({HTML:"text/html",isHTML:function(b){return b===J.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"});var ee=freeze({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(b){return b===ee.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});S.find=find;S.freeze=freeze;S.MIME_TYPE=J;S.NAMESPACE=ee},52800:(b,S,J)=>{var ee;var te=J(78951);var re=J(48854);var ne=J(73258);var ie=J(55705);var oe=re.DOMImplementation;var se=te.NAMESPACE;var ae=ie.ParseError;var ue=ie.XMLReader;function DOMParser(b){this.options=b||{locator:{}}}DOMParser.prototype.parseFromString=function(b,S){var J=this.options;var ee=new ue;var te=J.domBuilder||new DOMHandler;var re=J.errorHandler;var ie=J.locator;var oe=J.xmlns||{};var ae=/\/x?html?$/.test(S);var ce=ae?ne.HTML_ENTITIES:ne.XML_ENTITIES;if(ie){te.setDocumentLocator(ie)}ee.errorHandler=buildErrorHandler(re,te,ie);ee.domBuilder=J.domBuilder||te;if(ae){oe[""]=se.HTML}oe.xml=oe.xml||se.XML;if(b&&typeof b==="string"){ee.parse(b,oe,ce)}else{ee.errorHandler.error("invalid doc source")}return te.doc};function buildErrorHandler(b,S,J){if(!b){if(S instanceof DOMHandler){return S}b=S}var ee={};var te=b instanceof Function;J=J||{};function build(S){var re=b[S];if(!re&&te){re=b.length==2?function(J){b(S,J)}:b}ee[S]=re&&function(b){re("[xmldom "+S+"]\t"+b+_locator(J))}||function(){}}build("warning");build("error");build("fatalError");return ee}function DOMHandler(){this.cdata=false}function position(b,S){S.lineNumber=b.lineNumber;S.columnNumber=b.columnNumber}DOMHandler.prototype={startDocument:function(){this.doc=(new oe).createDocument(null,null,null);if(this.locator){this.doc.documentURI=this.locator.systemId}},startElement:function(b,S,J,ee){var te=this.doc;var re=te.createElementNS(b,J||S);var ne=ee.length;appendElement(this,re);this.currentElement=re;this.locator&&position(this.locator,re);for(var ie=0;ie<ne;ie++){var b=ee.getURI(ie);var oe=ee.getValue(ie);var J=ee.getQName(ie);var se=te.createAttributeNS(b,J);this.locator&&position(ee.getLocator(ie),se);se.value=se.nodeValue=oe;re.setAttributeNode(se)}},endElement:function(b,S,J){var ee=this.currentElement;var te=ee.tagName;this.currentElement=ee.parentNode},startPrefixMapping:function(b,S){},endPrefixMapping:function(b){},processingInstruction:function(b,S){var J=this.doc.createProcessingInstruction(b,S);this.locator&&position(this.locator,J);appendElement(this,J)},ignorableWhitespace:function(b,S,J){},characters:function(b,S,J){b=_toString.apply(this,arguments);if(b){if(this.cdata){var ee=this.doc.createCDATASection(b)}else{var ee=this.doc.createTextNode(b)}if(this.currentElement){this.currentElement.appendChild(ee)}else if(/^\s*$/.test(b)){this.doc.appendChild(ee)}this.locator&&position(this.locator,ee)}},skippedEntity:function(b){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(b){if(this.locator=b){b.lineNumber=0}},comment:function(b,S,J){b=_toString.apply(this,arguments);var ee=this.doc.createComment(b);this.locator&&position(this.locator,ee);appendElement(this,ee)},startCDATA:function(){this.cdata=true},endCDATA:function(){this.cdata=false},startDTD:function(b,S,J){var ee=this.doc.implementation;if(ee&&ee.createDocumentType){var te=ee.createDocumentType(b,S,J);this.locator&&position(this.locator,te);appendElement(this,te);this.doc.doctype=te}},warning:function(b){console.warn("[xmldom warning]\t"+b,_locator(this.locator))},error:function(b){console.error("[xmldom error]\t"+b,_locator(this.locator))},fatalError:function(b){throw new ae(b,this.locator)}};function _locator(b){if(b){return"\n@"+(b.systemId||"")+"#[line:"+b.lineNumber+",col:"+b.columnNumber+"]"}}function _toString(b,S,J){if(typeof b=="string"){return b.substr(S,J)}else{if(b.length>=S+J||S){return new java.lang.String(b,S,J)+""}return b}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(b){DOMHandler.prototype[b]=function(){return null}}));function appendElement(b,S){if(!b.currentElement){b.doc.appendChild(S)}else{b.currentElement.appendChild(S)}}ee=DOMHandler;S.DOMParser=DOMParser;ee=re.DOMImplementation;ee=re.XMLSerializer},48854:(b,S,J)=>{var ee=J(78951);var te=ee.find;var re=ee.NAMESPACE;function notEmptyString(b){return b!==""}function splitOnASCIIWhitespace(b){return b?b.split(/[\t\n\f\r ]+/).filter(notEmptyString):[]}function orderedSetReducer(b,S){if(!b.hasOwnProperty(S)){b[S]=true}return b}function toOrderedSet(b){if(!b)return[];var S=splitOnASCIIWhitespace(b);return Object.keys(S.reduce(orderedSetReducer,{}))}function arrayIncludes(b){return function(S){return b&&b.indexOf(S)!==-1}}function copy(b,S){for(var J in b){if(Object.prototype.hasOwnProperty.call(b,J)){S[J]=b[J]}}}function _extends(b,S){var J=b.prototype;if(!(J instanceof S)){function t(){}t.prototype=S.prototype;t=new t;copy(J,t);b.prototype=J=t}if(J.constructor!=b){if(typeof b!="function"){console.error("unknown Class:"+b)}J.constructor=b}}var ne={};var ie=ne.ELEMENT_NODE=1;var oe=ne.ATTRIBUTE_NODE=2;var se=ne.TEXT_NODE=3;var ae=ne.CDATA_SECTION_NODE=4;var ue=ne.ENTITY_REFERENCE_NODE=5;var ce=ne.ENTITY_NODE=6;var le=ne.PROCESSING_INSTRUCTION_NODE=7;var pe=ne.COMMENT_NODE=8;var fe=ne.DOCUMENT_NODE=9;var de=ne.DOCUMENT_TYPE_NODE=10;var he=ne.DOCUMENT_FRAGMENT_NODE=11;var me=ne.NOTATION_NODE=12;var ge={};var ye={};var ve=ge.INDEX_SIZE_ERR=(ye[1]="Index size error",1);var Te=ge.DOMSTRING_SIZE_ERR=(ye[2]="DOMString size error",2);var be=ge.HIERARCHY_REQUEST_ERR=(ye[3]="Hierarchy request error",3);var _e=ge.WRONG_DOCUMENT_ERR=(ye[4]="Wrong document",4);var Ee=ge.INVALID_CHARACTER_ERR=(ye[5]="Invalid character",5);var Ae=ge.NO_DATA_ALLOWED_ERR=(ye[6]="No data allowed",6);var we=ge.NO_MODIFICATION_ALLOWED_ERR=(ye[7]="No modification allowed",7);var xe=ge.NOT_FOUND_ERR=(ye[8]="Not found",8);var ke=ge.NOT_SUPPORTED_ERR=(ye[9]="Not supported",9);var Ce=ge.INUSE_ATTRIBUTE_ERR=(ye[10]="Attribute in use",10);var Pe=ge.INVALID_STATE_ERR=(ye[11]="Invalid state",11);var Se=ge.SYNTAX_ERR=(ye[12]="Syntax error",12);var Ie=ge.INVALID_MODIFICATION_ERR=(ye[13]="Invalid modification",13);var De=ge.NAMESPACE_ERR=(ye[14]="Invalid namespace",14);var Oe=ge.INVALID_ACCESS_ERR=(ye[15]="Invalid access",15);function DOMException(b,S){if(S instanceof Error){var J=S}else{J=this;Error.call(this,ye[b]);this.message=ye[b];if(Error.captureStackTrace)Error.captureStackTrace(this,DOMException)}J.code=b;if(S)this.message=this.message+": "+S;return J}DOMException.prototype=Error.prototype;copy(ge,DOMException);function NodeList(){}NodeList.prototype={length:0,item:function(b){return this[b]||null},toString:function(b,S){for(var J=[],ee=0;ee<this.length;ee++){serializeToString(this[ee],J,b,S)}return J.join("")},filter:function(b){return Array.prototype.filter.call(this,b)},indexOf:function(b){return Array.prototype.indexOf.call(this,b)}};function LiveNodeList(b,S){this._node=b;this._refresh=S;_updateLiveList(this)}function _updateLiveList(b){var S=b._node._inc||b._node.ownerDocument._inc;if(b._inc!=S){var J=b._refresh(b._node);__set__(b,"length",J.length);copy(J,b);b._inc=S}}LiveNodeList.prototype.item=function(b){_updateLiveList(this);return this[b]};_extends(LiveNodeList,NodeList);function NamedNodeMap(){}function _findNodeIndex(b,S){var J=b.length;while(J--){if(b[J]===S){return J}}}function _addNamedNode(b,S,J,ee){if(ee){S[_findNodeIndex(S,ee)]=J}else{S[S.length++]=J}if(b){J.ownerElement=b;var te=b.ownerDocument;if(te){ee&&_onRemoveAttribute(te,b,ee);_onAddAttribute(te,b,J)}}}function _removeNamedNode(b,S,J){var ee=_findNodeIndex(S,J);if(ee>=0){var te=S.length-1;while(ee<te){S[ee]=S[++ee]}S.length=te;if(b){var re=b.ownerDocument;if(re){_onRemoveAttribute(re,b,J);J.ownerElement=null}}}else{throw new DOMException(xe,new Error(b.tagName+"@"+J))}}NamedNodeMap.prototype={length:0,item:NodeList.prototype.item,getNamedItem:function(b){var S=this.length;while(S--){var J=this[S];if(J.nodeName==b){return J}}},setNamedItem:function(b){var S=b.ownerElement;if(S&&S!=this._ownerElement){throw new DOMException(Ce)}var J=this.getNamedItem(b.nodeName);_addNamedNode(this._ownerElement,this,b,J);return J},setNamedItemNS:function(b){var S=b.ownerElement,J;if(S&&S!=this._ownerElement){throw new DOMException(Ce)}J=this.getNamedItemNS(b.namespaceURI,b.localName);_addNamedNode(this._ownerElement,this,b,J);return J},removeNamedItem:function(b){var S=this.getNamedItem(b);_removeNamedNode(this._ownerElement,this,S);return S},removeNamedItemNS:function(b,S){var J=this.getNamedItemNS(b,S);_removeNamedNode(this._ownerElement,this,J);return J},getNamedItemNS:function(b,S){var J=this.length;while(J--){var ee=this[J];if(ee.localName==S&&ee.namespaceURI==b){return ee}}return null}};function DOMImplementation(){}DOMImplementation.prototype={hasFeature:function(b,S){return true},createDocument:function(b,S,J){var ee=new Document;ee.implementation=this;ee.childNodes=new NodeList;ee.doctype=J||null;if(J){ee.appendChild(J)}if(S){var te=ee.createElementNS(b,S);ee.appendChild(te)}return ee},createDocumentType:function(b,S,J){var ee=new DocumentType;ee.name=b;ee.nodeName=b;ee.publicId=S||"";ee.systemId=J||"";return ee}};function Node(){}Node.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(b,S){return _insertBefore(this,b,S)},replaceChild:function(b,S){_insertBefore(this,b,S,assertPreReplacementValidityInDocument);if(S){this.removeChild(S)}},removeChild:function(b){return _removeChild(this,b)},appendChild:function(b){return this.insertBefore(b,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(b){return cloneNode(this.ownerDocument||this,this,b)},normalize:function(){var b=this.firstChild;while(b){var S=b.nextSibling;if(S&&S.nodeType==se&&b.nodeType==se){this.removeChild(S);b.appendData(S.data)}else{b.normalize();b=S}}},isSupported:function(b,S){return this.ownerDocument.implementation.hasFeature(b,S)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(b){var S=this;while(S){var J=S._nsMap;if(J){for(var ee in J){if(Object.prototype.hasOwnProperty.call(J,ee)&&J[ee]===b){return ee}}}S=S.nodeType==oe?S.ownerDocument:S.parentNode}return null},lookupNamespaceURI:function(b){var S=this;while(S){var J=S._nsMap;if(J){if(b in J){if(Object.prototype.hasOwnProperty.call(J,b)){return J[b]}}}S=S.nodeType==oe?S.ownerDocument:S.parentNode}return null},isDefaultNamespace:function(b){var S=this.lookupPrefix(b);return S==null}};function _xmlEncoder(b){return b=="<"&&"&lt;"||b==">"&&"&gt;"||b=="&"&&"&amp;"||b=='"'&&"&quot;"||"&#"+b.charCodeAt()+";"}copy(ne,Node);copy(ne,Node.prototype);function _visitNode(b,S){if(S(b)){return true}if(b=b.firstChild){do{if(_visitNode(b,S)){return true}}while(b=b.nextSibling)}}function Document(){this.ownerDocument=this}function _onAddAttribute(b,S,J){b&&b._inc++;var ee=J.namespaceURI;if(ee===re.XMLNS){S._nsMap[J.prefix?J.localName:""]=J.value}}function _onRemoveAttribute(b,S,J,ee){b&&b._inc++;var te=J.namespaceURI;if(te===re.XMLNS){delete S._nsMap[J.prefix?J.localName:""]}}function _onUpdateChild(b,S,J){if(b&&b._inc){b._inc++;var ee=S.childNodes;if(J){ee[ee.length++]=J}else{var te=S.firstChild;var re=0;while(te){ee[re++]=te;te=te.nextSibling}ee.length=re;delete ee[ee.length]}}}function _removeChild(b,S){var J=S.previousSibling;var ee=S.nextSibling;if(J){J.nextSibling=ee}else{b.firstChild=ee}if(ee){ee.previousSibling=J}else{b.lastChild=J}S.parentNode=null;S.previousSibling=null;S.nextSibling=null;_onUpdateChild(b.ownerDocument,b);return S}function hasValidParentNodeType(b){return b&&(b.nodeType===Node.DOCUMENT_NODE||b.nodeType===Node.DOCUMENT_FRAGMENT_NODE||b.nodeType===Node.ELEMENT_NODE)}function hasInsertableNodeType(b){return b&&(isElementNode(b)||isTextNode(b)||isDocTypeNode(b)||b.nodeType===Node.DOCUMENT_FRAGMENT_NODE||b.nodeType===Node.COMMENT_NODE||b.nodeType===Node.PROCESSING_INSTRUCTION_NODE)}function isDocTypeNode(b){return b&&b.nodeType===Node.DOCUMENT_TYPE_NODE}function isElementNode(b){return b&&b.nodeType===Node.ELEMENT_NODE}function isTextNode(b){return b&&b.nodeType===Node.TEXT_NODE}function isElementInsertionPossible(b,S){var J=b.childNodes||[];if(te(J,isElementNode)||isDocTypeNode(S)){return false}var ee=te(J,isDocTypeNode);return!(S&&ee&&J.indexOf(ee)>J.indexOf(S))}function isElementReplacementPossible(b,S){var J=b.childNodes||[];function hasElementChildThatIsNotChild(b){return isElementNode(b)&&b!==S}if(te(J,hasElementChildThatIsNotChild)){return false}var ee=te(J,isDocTypeNode);return!(S&&ee&&J.indexOf(ee)>J.indexOf(S))}function assertPreInsertionValidity1to5(b,S,J){if(!hasValidParentNodeType(b)){throw new DOMException(be,"Unexpected parent node type "+b.nodeType)}if(J&&J.parentNode!==b){throw new DOMException(xe,"child not in parent")}if(!hasInsertableNodeType(S)||isDocTypeNode(S)&&b.nodeType!==Node.DOCUMENT_NODE){throw new DOMException(be,"Unexpected node type "+S.nodeType+" for parent node type "+b.nodeType)}}function assertPreInsertionValidityInDocument(b,S,J){var ee=b.childNodes||[];var re=S.childNodes||[];if(S.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var ne=re.filter(isElementNode);if(ne.length>1||te(re,isTextNode)){throw new DOMException(be,"More than one element or text in fragment")}if(ne.length===1&&!isElementInsertionPossible(b,J)){throw new DOMException(be,"Element in fragment can not be inserted before doctype")}}if(isElementNode(S)){if(!isElementInsertionPossible(b,J)){throw new DOMException(be,"Only one element can be added and only after doctype")}}if(isDocTypeNode(S)){if(te(ee,isDocTypeNode)){throw new DOMException(be,"Only one doctype is allowed")}var ie=te(ee,isElementNode);if(J&&ee.indexOf(ie)<ee.indexOf(J)){throw new DOMException(be,"Doctype can only be inserted before an element")}if(!J&&ie){throw new DOMException(be,"Doctype can not be appended since element is present")}}}function assertPreReplacementValidityInDocument(b,S,J){var ee=b.childNodes||[];var re=S.childNodes||[];if(S.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var ne=re.filter(isElementNode);if(ne.length>1||te(re,isTextNode)){throw new DOMException(be,"More than one element or text in fragment")}if(ne.length===1&&!isElementReplacementPossible(b,J)){throw new DOMException(be,"Element in fragment can not be inserted before doctype")}}if(isElementNode(S)){if(!isElementReplacementPossible(b,J)){throw new DOMException(be,"Only one element can be added and only after doctype")}}if(isDocTypeNode(S)){function hasDoctypeChildThatIsNotChild(b){return isDocTypeNode(b)&&b!==J}if(te(ee,hasDoctypeChildThatIsNotChild)){throw new DOMException(be,"Only one doctype is allowed")}var ie=te(ee,isElementNode);if(J&&ee.indexOf(ie)<ee.indexOf(J)){throw new DOMException(be,"Doctype can only be inserted before an element")}}}function _insertBefore(b,S,J,ee){assertPreInsertionValidity1to5(b,S,J);if(b.nodeType===Node.DOCUMENT_NODE){(ee||assertPreInsertionValidityInDocument)(b,S,J)}var te=S.parentNode;if(te){te.removeChild(S)}if(S.nodeType===he){var re=S.firstChild;if(re==null){return S}var ne=S.lastChild}else{re=ne=S}var ie=J?J.previousSibling:b.lastChild;re.previousSibling=ie;ne.nextSibling=J;if(ie){ie.nextSibling=re}else{b.firstChild=re}if(J==null){b.lastChild=ne}else{J.previousSibling=ne}do{re.parentNode=b}while(re!==ne&&(re=re.nextSibling));_onUpdateChild(b.ownerDocument||b,b);if(S.nodeType==he){S.firstChild=S.lastChild=null}return S}function _appendSingleChild(b,S){if(S.parentNode){S.parentNode.removeChild(S)}S.parentNode=b;S.previousSibling=b.lastChild;S.nextSibling=null;if(S.previousSibling){S.previousSibling.nextSibling=S}else{b.firstChild=S}b.lastChild=S;_onUpdateChild(b.ownerDocument,b,S);return S}Document.prototype={nodeName:"#document",nodeType:fe,doctype:null,documentElement:null,_inc:1,insertBefore:function(b,S){if(b.nodeType==he){var J=b.firstChild;while(J){var ee=J.nextSibling;this.insertBefore(J,S);J=ee}return b}_insertBefore(this,b,S);b.ownerDocument=this;if(this.documentElement===null&&b.nodeType===ie){this.documentElement=b}return b},removeChild:function(b){if(this.documentElement==b){this.documentElement=null}return _removeChild(this,b)},replaceChild:function(b,S){_insertBefore(this,b,S,assertPreReplacementValidityInDocument);b.ownerDocument=this;if(S){this.removeChild(S)}if(isElementNode(b)){this.documentElement=b}},importNode:function(b,S){return importNode(this,b,S)},getElementById:function(b){var S=null;_visitNode(this.documentElement,(function(J){if(J.nodeType==ie){if(J.getAttribute("id")==b){S=J;return true}}}));return S},getElementsByClassName:function(b){var S=toOrderedSet(b);return new LiveNodeList(this,(function(J){var ee=[];if(S.length>0){_visitNode(J.documentElement,(function(te){if(te!==J&&te.nodeType===ie){var re=te.getAttribute("class");if(re){var ne=b===re;if(!ne){var oe=toOrderedSet(re);ne=S.every(arrayIncludes(oe))}if(ne){ee.push(te)}}}}))}return ee}))},createElement:function(b){var S=new Element;S.ownerDocument=this;S.nodeName=b;S.tagName=b;S.localName=b;S.childNodes=new NodeList;var J=S.attributes=new NamedNodeMap;J._ownerElement=S;return S},createDocumentFragment:function(){var b=new DocumentFragment;b.ownerDocument=this;b.childNodes=new NodeList;return b},createTextNode:function(b){var S=new Text;S.ownerDocument=this;S.appendData(b);return S},createComment:function(b){var S=new Comment;S.ownerDocument=this;S.appendData(b);return S},createCDATASection:function(b){var S=new CDATASection;S.ownerDocument=this;S.appendData(b);return S},createProcessingInstruction:function(b,S){var J=new ProcessingInstruction;J.ownerDocument=this;J.tagName=J.target=b;J.nodeValue=J.data=S;return J},createAttribute:function(b){var S=new Attr;S.ownerDocument=this;S.name=b;S.nodeName=b;S.localName=b;S.specified=true;return S},createEntityReference:function(b){var S=new EntityReference;S.ownerDocument=this;S.nodeName=b;return S},createElementNS:function(b,S){var J=new Element;var ee=S.split(":");var te=J.attributes=new NamedNodeMap;J.childNodes=new NodeList;J.ownerDocument=this;J.nodeName=S;J.tagName=S;J.namespaceURI=b;if(ee.length==2){J.prefix=ee[0];J.localName=ee[1]}else{J.localName=S}te._ownerElement=J;return J},createAttributeNS:function(b,S){var J=new Attr;var ee=S.split(":");J.ownerDocument=this;J.nodeName=S;J.name=S;J.namespaceURI=b;J.specified=true;if(ee.length==2){J.prefix=ee[0];J.localName=ee[1]}else{J.localName=S}return J}};_extends(Document,Node);function Element(){this._nsMap={}}Element.prototype={nodeType:ie,hasAttribute:function(b){return this.getAttributeNode(b)!=null},getAttribute:function(b){var S=this.getAttributeNode(b);return S&&S.value||""},getAttributeNode:function(b){return this.attributes.getNamedItem(b)},setAttribute:function(b,S){var J=this.ownerDocument.createAttribute(b);J.value=J.nodeValue=""+S;this.setAttributeNode(J)},removeAttribute:function(b){var S=this.getAttributeNode(b);S&&this.removeAttributeNode(S)},appendChild:function(b){if(b.nodeType===he){return this.insertBefore(b,null)}else{return _appendSingleChild(this,b)}},setAttributeNode:function(b){return this.attributes.setNamedItem(b)},setAttributeNodeNS:function(b){return this.attributes.setNamedItemNS(b)},removeAttributeNode:function(b){return this.attributes.removeNamedItem(b.nodeName)},removeAttributeNS:function(b,S){var J=this.getAttributeNodeNS(b,S);J&&this.removeAttributeNode(J)},hasAttributeNS:function(b,S){return this.getAttributeNodeNS(b,S)!=null},getAttributeNS:function(b,S){var J=this.getAttributeNodeNS(b,S);return J&&J.value||""},setAttributeNS:function(b,S,J){var ee=this.ownerDocument.createAttributeNS(b,S);ee.va