UNPKG

webpack-config-jaid

Version:

Takes tiny input and returns a Webpack config in the way I personally like.

2 lines 66.6 kB
/*! For license information please see index.js.LICENSE.txt */ import*as e from"app-root-path";import*as t from"debug";import*as n from"lodash-es";import*as i from"read-pkg";import{createRequire as r}from"module";import*as o from"clean-webpack-plugin";import*as s from"copy-webpack-plugin";import*as a from"fs-extra";import*as l from"license-webpack-plugin";import*as u from"terser-webpack-plugin";import*as p from"webpack";import*as c from"ensure-start";import*as d from"has-content";import*as f from"jsdoc-tsd-webpack-plugin";import*as h from"pkg-banner-webpack-plugin";import*as g from"publishimo-webpack-plugin";import*as m from"webpack-merge";import*as b from"immer";import*as v from"camelcase";import*as y from"cep-webpack-plugin";import*as w from"browser-sync-webpack-plugin";import*as k from"html-webpack-plugin";import*as C from"inject-browser-sync-webpack-plugin";import*as x from"mini-css-extract-plugin";import*as A from"html-inline-css-webpack-plugin";import*as O from"inject-body-webpack-plugin";import*as S from"postcss-center";import*as j from"postcss-easings";import*as I from"postcss-import";import*as F from"postcss-nested";import*as P from"postcss-ordered-values";import*as T from"postcss-sorting";import*as L from"pascal-case";import*as E from"@absolunet/fss";import*as D from"@lcdp/offline-plugin";import*as M from"@pmmmwh/react-refresh-webpack-plugin";import*as N from"cname-webpack-plugin";import*as _ from"css-minimizer-webpack-plugin";import*as W from"url-join";import*as $ from"webpack-pwa-manifest";import*as R from"workbox-webpack-plugin";import*as U from"html-favicon-webpack-plugin";import*as B from"log-watcher-webpack-plugin";import*as z from"sitemap-xml-webpack-plugin";var q={79:e=>{e.exports=function(e,t,n){if(0===arguments.length)return[];if(1===arguments.length){if(null==e)return[];if(Array.isArray(e))return e}return Array.prototype.slice.call(arguments)}}},H={};function Y(e){var t=H[e];if(void 0!==t)return t.exports;var n=H[e]={exports:{}};return q[e](n,n.exports,Y),n.exports}Y.d=(e,t)=>{for(var n in t)Y.o(t,n)&&!Y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},Y.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var G={};(()=>{Y.d(G,{i0:()=>ci,qJ:()=>yi,pv:()=>vi,AH:()=>fi,Cb:()=>di,Ms:()=>bi,Mm:()=>gi,HM:()=>hi,yQ:()=>mi,ZP:()=>wi});const l=(b={default:()=>e.default},D={},Y.d(D,b),D);var b,D;const q=(e=>{var t={};return Y.d(t,e),t})({default:()=>t.default}),H=(e=>{var t={};return Y.d(t,e),t})({camelCase:()=>n.camelCase,escape:()=>n.escape,isFunction:()=>n.isFunction,isObject:()=>n.isObject,isString:()=>n.isString,omit:()=>n.omit,uniq:()=>n.uniq}),J=(e=>{var t={};return Y.d(t,e),t})({readPackageSync:()=>i.readPackageSync}),K=r(import.meta.url)("node:path"),V=(e=>{var t={};return Y.d(t,e),t})({CleanWebpackPlugin:()=>o.CleanWebpackPlugin}),Q=(e=>{var t={};return Y.d(t,e),t})({default:()=>s.default});var Z=Y(79);const X=(e=>{var t={};return Y.d(t,e),t})({default:()=>a.default});Y.d({},{});const ee=(e=>{var t={};return Y.d(t,e),t})({default:()=>u.default}),te=(e=>{var t={};return Y.d(t,e),t})({default:()=>p.default}),ne=(e=>{var t={};return Y.d(t,e),t})({default:()=>c.default}),ie=ne.default.default,re=(e=>{var t={};return Y.d(t,e),t})({default:()=>d.default}),oe=re.default.default,se=(e=>{var t={};return Y.d(t,e),t})({default:()=>f.default});se.default.default;const ae=(e=>{var t={};return Y.d(t,e),t})({default:()=>h.default}),le=ae.default.default,ue=(e=>{var t={};return Y.d(t,e),t})({default:()=>g.default}),pe=ue.default.default,ce=(e=>{var t={};return Y.d(t,e),t})({default:()=>m.default}),de=ce.default.default;function fe(e){return null==e}var he={isNothing:fe,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:fe(e)?[]:[e]},repeat:function(e,t){var n,i="";for(n=0;n<t;n+=1)i+=e;return i},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var n,i,r,o;if(t)for(n=0,i=(o=Object.keys(t)).length;n<i;n+=1)e[r=o[n]]=t[r];return e}};function ge(e,t){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),i+" "+n):i}function me(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=ge(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}me.prototype=Object.create(Error.prototype),me.prototype.constructor=me,me.prototype.toString=function(e){return this.name+": "+ge(this,e)};var be=me;function ve(e,t,n,i,r){var o="",s="",a=Math.floor(r/2)-1;return i-t>a&&(t=i-a+(o=" ... ").length),n-i>a&&(n=i+a-(s=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+s,pos:i-t+o.length}}function ye(e,t){return he.repeat(" ",t-e.length)+e}var we=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ke=["scalar","sequence","mapping"],Ce=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===we.indexOf(t))throw new be('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(t.styleAliases||null),-1===ke.indexOf(this.kind))throw new be('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function xe(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,i){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=i)})),n[t]=e})),n}function Ae(e){return this.extend(e)}Ae.prototype.extend=function(e){var t=[],n=[];if(e instanceof Ce)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new be("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof Ce))throw new be("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new be("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new be("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof Ce))throw new be("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var i=Object.create(Ae.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=xe(i,"implicit"),i.compiledExplicit=xe(i,"explicit"),i.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(i);return n}(i.compiledImplicit,i.compiledExplicit),i};var Oe=Ae,Se=new Ce("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),je=new Ce("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),Ie=new Ce("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),Fe=new Oe({explicit:[Se,je,Ie]}),Pe=new Ce("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),Te=new Ce("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Le(e){return 48<=e&&e<=55}function Ee(e){return 48<=e&&e<=57}var De=new Ce("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=e.length,r=0,o=!1;if(!i)return!1;if("-"!==(t=e[r])&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===i)return!0;if("b"===(t=e[++r])){for(r++;r<i;r++)if("_"!==(t=e[r])){if("0"!==t&&"1"!==t)return!1;o=!0}return o&&"_"!==t}if("x"===t){for(r++;r<i;r++)if("_"!==(t=e[r])){if(!(48<=(n=e.charCodeAt(r))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;o=!0}return o&&"_"!==t}if("o"===t){for(r++;r<i;r++)if("_"!==(t=e[r])){if(!Le(e.charCodeAt(r)))return!1;o=!0}return o&&"_"!==t}}if("_"===t)return!1;for(;r<i;r++)if("_"!==(t=e[r])){if(!Ee(e.charCodeAt(r)))return!1;o=!0}return!(!o||"_"===t)},construct:function(e){var t,n=e,i=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(i=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return i*parseInt(n.slice(2),2);if("x"===n[1])return i*parseInt(n.slice(2),16);if("o"===n[1])return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!he.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Me=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Ne=/^[-+]?[0-9]+e/,_e=new Ce("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!Me.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||he.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(he.isNegativeZero(e))return"-0.0";return n=e.toString(10),Ne.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),We=Fe.extend({implicit:[Pe,Te,De,_e]}),$e=We,Re=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ue=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),Be=new Ce("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==Re.exec(e)||null!==Ue.exec(e))},construct:function(e){var t,n,i,r,o,s,a,l,u=0,p=null;if(null===(t=Re.exec(e))&&(t=Ue.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(p=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(p=-p)),l=new Date(Date.UTC(n,i,r,o,s,a,u)),p&&l.setTime(l.getTime()-p),l},instanceOf:Date,represent:function(e){return e.toISOString()}}),ze=new Ce("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",He=new Ce("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=0,r=e.length,o=qe;for(n=0;n<r;n++)if(!((t=o.indexOf(e.charAt(n)))>64)){if(t<0)return!1;i+=6}return i%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,o=qe,s=0,a=[];for(t=0;t<r;t++)t%4==0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(255&s)),s=s<<6|o.indexOf(i.charAt(t));return 0==(n=r%4*6)?(a.push(s>>16&255),a.push(s>>8&255),a.push(255&s)):18===n?(a.push(s>>10&255),a.push(s>>2&255)):12===n&&a.push(s>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,i="",r=0,o=e.length,s=qe;for(t=0;t<o;t++)t%3==0&&t&&(i+=s[r>>18&63],i+=s[r>>12&63],i+=s[r>>6&63],i+=s[63&r]),r=(r<<8)+e[t];return 0==(n=o%3)?(i+=s[r>>18&63],i+=s[r>>12&63],i+=s[r>>6&63],i+=s[63&r]):2===n?(i+=s[r>>10&63],i+=s[r>>4&63],i+=s[r<<2&63],i+=s[64]):1===n&&(i+=s[r>>2&63],i+=s[r<<4&63],i+=s[64],i+=s[64]),i}}),Ye=Object.prototype.hasOwnProperty,Ge=Object.prototype.toString,Je=new Ce("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,i,r,o,s=[],a=e;for(t=0,n=a.length;t<n;t+=1){if(i=a[t],o=!1,"[object Object]"!==Ge.call(i))return!1;for(r in i)if(Ye.call(i,r)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==s.indexOf(r))return!1;s.push(r)}return!0},construct:function(e){return null!==e?e:[]}}),Ke=Object.prototype.toString,Ve=new Ce("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,i,r,o,s=e;for(o=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(i=s[t],"[object Object]"!==Ke.call(i))return!1;if(1!==(r=Object.keys(i)).length)return!1;o[t]=[r[0],i[r[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,i,r,o,s=e;for(o=new Array(s.length),t=0,n=s.length;t<n;t+=1)i=s[t],r=Object.keys(i),o[t]=[r[0],i[r[0]]];return o}}),Qe=Object.prototype.hasOwnProperty,Ze=new Ce("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(Qe.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),Xe=$e.extend({implicit:[Be,ze],explicit:[He,Je,Ve,Ze]}),et=Object.prototype.hasOwnProperty,tt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,nt=/[\x85\u2028\u2029]/,it=/[,\[\]\{\}]/,rt=/^(?:!|!!|![a-z\-]+!)$/i,ot=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function st(e){return Object.prototype.toString.call(e)}function at(e){return 10===e||13===e}function lt(e){return 9===e||32===e}function ut(e){return 9===e||32===e||10===e||13===e}function pt(e){return 44===e||91===e||93===e||123===e||125===e}function ct(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function dt(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function ft(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var ht=new Array(256),gt=new Array(256),mt=0;mt<256;mt++)ht[mt]=dt(mt)?1:0,gt[mt]=dt(mt);function bt(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Xe,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function vt(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,i=/\r?\n|\r|\0/g,r=[0],o=[],s=-1;n=i.exec(e.buffer);)o.push(n.index),r.push(n.index+n[0].length),e.position<=n.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a,l,u="",p=Math.min(e.line+t.linesAfter,o.length).toString().length,c=t.maxLength-(t.indent+p+3);for(a=1;a<=t.linesBefore&&!(s-a<0);a++)l=ve(e.buffer,r[s-a],o[s-a],e.position-(r[s]-r[s-a]),c),u=he.repeat(" ",t.indent)+ye((e.line-a+1).toString(),p)+" | "+l.str+"\n"+u;for(l=ve(e.buffer,r[s],o[s],e.position,c),u+=he.repeat(" ",t.indent)+ye((e.line+1).toString(),p)+" | "+l.str+"\n",u+=he.repeat("-",t.indent+p+3+l.pos)+"^\n",a=1;a<=t.linesAfter&&!(s+a>=o.length);a++)l=ve(e.buffer,r[s+a],o[s+a],e.position-(r[s]-r[s+a]),c),u+=he.repeat(" ",t.indent)+ye((e.line+a+1).toString(),p)+" | "+l.str+"\n";return u.replace(/\n$/,"")}(n),new be(t,n)}function yt(e,t){throw vt(e,t)}function wt(e,t){e.onWarning&&e.onWarning.call(null,vt(e,t))}var kt={YAML:function(e,t,n){var i,r,o;null!==e.version&&yt(e,"duplication of %YAML directive"),1!==n.length&&yt(e,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&yt(e,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&yt(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&wt(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var i,r;2!==n.length&&yt(e,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],rt.test(i)||yt(e,"ill-formed tag handle (first argument) of the TAG directive"),et.call(e.tagMap,i)&&yt(e,'there is a previously declared suffix for "'+i+'" tag handle'),ot.test(r)||yt(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(t){yt(e,"tag prefix is malformed: "+r)}e.tagMap[i]=r}};function Ct(e,t,n,i){var r,o,s,a;if(t<n){if(a=e.input.slice(t,n),i)for(r=0,o=a.length;r<o;r+=1)9===(s=a.charCodeAt(r))||32<=s&&s<=1114111||yt(e,"expected valid JSON character");else tt.test(a)&&yt(e,"the stream contains non-printable characters");e.result+=a}}function xt(e,t,n,i){var r,o,s,a;for(he.isObject(n)||yt(e,"cannot merge mappings; the provided source object is unacceptable"),s=0,a=(r=Object.keys(n)).length;s<a;s+=1)o=r[s],et.call(t,o)||(t[o]=n[o],i[o]=!0)}function At(e,t,n,i,r,o,s,a,l){var u,p;if(Array.isArray(r))for(u=0,p=(r=Array.prototype.slice.call(r)).length;u<p;u+=1)Array.isArray(r[u])&&yt(e,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===st(r[u])&&(r[u]="[object Object]");if("object"==typeof r&&"[object Object]"===st(r)&&(r="[object Object]"),r=String(r),null===t&&(t={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(o))for(u=0,p=o.length;u<p;u+=1)xt(e,t,o[u],n);else xt(e,t,o,n);else e.json||et.call(n,r)||!et.call(t,r)||(e.line=s||e.line,e.lineStart=a||e.lineStart,e.position=l||e.position,yt(e,"duplicated mapping key")),"__proto__"===r?Object.defineProperty(t,r,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[r]=o,delete n[r];return t}function Ot(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):yt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function St(e,t,n){for(var i=0,r=e.input.charCodeAt(e.position);0!==r;){for(;lt(r);)9===r&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&35===r)do{r=e.input.charCodeAt(++e.position)}while(10!==r&&13!==r&&0!==r);if(!at(r))break;for(Ot(e),r=e.input.charCodeAt(e.position),i++,e.lineIndent=0;32===r;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return-1!==n&&0!==i&&e.lineIndent<n&&wt(e,"deficient indentation"),i}function jt(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!ut(t)))}function It(e,t){1===t?e.result+=" ":t>1&&(e.result+=he.repeat("\n",t-1))}function Ft(e,t){var n,i,r=e.tag,o=e.anchor,s=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),i=e.input.charCodeAt(e.position);0!==i&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,yt(e,"tab characters must not be used in indentation")),45===i)&&ut(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,St(e,!0,-1)&&e.lineIndent<=t)s.push(null),i=e.input.charCodeAt(e.position);else if(n=e.line,Lt(e,t,3,!1,!0),s.push(e.result),St(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)yt(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=r,e.anchor=o,e.kind="sequence",e.result=s,!0)}function Pt(e){var t,n,i,r,o=!1,s=!1;if(33!==(r=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&yt(e,"duplication of a tag property"),60===(r=e.input.charCodeAt(++e.position))?(o=!0,r=e.input.charCodeAt(++e.position)):33===r?(s=!0,n="!!",r=e.input.charCodeAt(++e.position)):n="!",t=e.position,o){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&62!==r);e.position<e.length?(i=e.input.slice(t,e.position),r=e.input.charCodeAt(++e.position)):yt(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==r&&!ut(r);)33===r&&(s?yt(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),rt.test(n)||yt(e,"named tag handle cannot contain such characters"),s=!0,t=e.position+1)),r=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),it.test(i)&&yt(e,"tag suffix cannot contain flow indicator characters")}i&&!ot.test(i)&&yt(e,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(t){yt(e,"tag name is malformed: "+i)}return o?e.tag=i:et.call(e.tagMap,n)?e.tag=e.tagMap[n]+i:"!"===n?e.tag="!"+i:"!!"===n?e.tag="tag:yaml.org,2002:"+i:yt(e,'undeclared tag handle "'+n+'"'),!0}function Tt(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&yt(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!ut(n)&&!pt(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&yt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Lt(e,t,n,i,r){var o,s,a,l,u,p,c,d,f,h=1,g=!1,m=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=4===n||3===n,i&&St(e,!0,-1)&&(g=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),1===h)for(;Pt(e)||Tt(e);)St(e,!0,-1)?(g=!0,a=o,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)):a=!1;if(a&&(a=g||r),1!==h&&4!==n||(d=1===n||2===n?t:t+1,f=e.position-e.lineStart,1===h?a&&(Ft(e,f)||function(e,t,n){var i,r,o,s,a,l,u,p=e.tag,c=e.anchor,d={},f=Object.create(null),h=null,g=null,m=null,b=!1,v=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),u=e.input.charCodeAt(e.position);0!==u;){if(b||-1===e.firstTabInLine||(e.position=e.firstTabInLine,yt(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),o=e.line,63!==u&&58!==u||!ut(i)){if(s=e.line,a=e.lineStart,l=e.position,!Lt(e,n,2,!1,!0))break;if(e.line===o){for(u=e.input.charCodeAt(e.position);lt(u);)u=e.input.charCodeAt(++e.position);if(58===u)ut(u=e.input.charCodeAt(++e.position))||yt(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(At(e,d,f,h,g,null,s,a,l),h=g=m=null),v=!0,b=!1,r=!1,h=e.tag,g=e.result;else{if(!v)return e.tag=p,e.anchor=c,!0;yt(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=p,e.anchor=c,!0;yt(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===u?(b&&(At(e,d,f,h,g,null,s,a,l),h=g=m=null),v=!0,b=!0,r=!0):b?(b=!1,r=!0):yt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,u=i;if((e.line===o||e.lineIndent>t)&&(b&&(s=e.line,a=e.lineStart,l=e.position),Lt(e,t,4,!0,r)&&(b?g=e.result:m=e.result),b||(At(e,d,f,h,g,m,s,a,l),h=g=m=null),St(e,!0,-1),u=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==u)yt(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return b&&At(e,d,f,h,g,null,s,a,l),v&&(e.tag=p,e.anchor=c,e.kind="mapping",e.result=d),v}(e,f,d))||function(e,t){var n,i,r,o,s,a,l,u,p,c,d,f,h=!0,g=e.tag,m=e.anchor,b=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))s=93,u=!1,o=[];else{if(123!==f)return!1;s=125,u=!0,o={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),f=e.input.charCodeAt(++e.position);0!==f;){if(St(e,!0,t),(f=e.input.charCodeAt(e.position))===s)return e.position++,e.tag=g,e.anchor=m,e.kind=u?"mapping":"sequence",e.result=o,!0;h?44===f&&yt(e,"expected the node content, but found ','"):yt(e,"missed comma between flow collection entries"),d=null,a=l=!1,63===f&&ut(e.input.charCodeAt(e.position+1))&&(a=l=!0,e.position++,St(e,!0,t)),n=e.line,i=e.lineStart,r=e.position,Lt(e,t,1,!1,!0),c=e.tag,p=e.result,St(e,!0,t),f=e.input.charCodeAt(e.position),!l&&e.line!==n||58!==f||(a=!0,f=e.input.charCodeAt(++e.position),St(e,!0,t),Lt(e,t,1,!1,!0),d=e.result),u?At(e,o,b,c,p,d,n,i,r):a?o.push(At(e,null,b,c,p,d,n,i,r)):o.push(p),St(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(h=!0,f=e.input.charCodeAt(++e.position)):h=!1}yt(e,"unexpected end of the stream within a flow collection")}(e,d)?m=!0:(s&&function(e,t){var n,i,r,o,s,a=1,l=!1,u=!1,p=t,c=0,d=!1;if(124===(o=e.input.charCodeAt(e.position)))i=!1;else{if(62!==o)return!1;i=!0}for(e.kind="scalar",e.result="";0!==o;)if(43===(o=e.input.charCodeAt(++e.position))||45===o)1===a?a=43===o?3:2:yt(e,"repeat of a chomping mode identifier");else{if(!((r=48<=(s=o)&&s<=57?s-48:-1)>=0))break;0===r?yt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?yt(e,"repeat of an indentation width identifier"):(p=t+r-1,u=!0)}if(lt(o)){do{o=e.input.charCodeAt(++e.position)}while(lt(o));if(35===o)do{o=e.input.charCodeAt(++e.position)}while(!at(o)&&0!==o)}for(;0!==o;){for(Ot(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!u||e.lineIndent<p)&&32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>p&&(p=e.lineIndent),at(o))c++;else{if(e.lineIndent<p){3===a?e.result+=he.repeat("\n",l?1+c:c):1===a&&l&&(e.result+="\n");break}for(i?lt(o)?(d=!0,e.result+=he.repeat("\n",l?1+c:c)):d?(d=!1,e.result+=he.repeat("\n",c+1)):0===c?l&&(e.result+=" "):e.result+=he.repeat("\n",c):e.result+=he.repeat("\n",l?1+c:c),l=!0,u=!0,c=0,n=e.position;!at(o)&&0!==o;)o=e.input.charCodeAt(++e.position);Ct(e,n,e.position,!1)}}return!0}(e,d)||function(e,t){var n,i,r;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(Ct(e,i,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;i=e.position,e.position++,r=e.position}else at(n)?(Ct(e,i,r,!0),It(e,St(e,!1,t)),i=r=e.position):e.position===e.lineStart&&jt(e)?yt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);yt(e,"unexpected end of the stream within a single quoted scalar")}(e,d)||function(e,t){var n,i,r,o,s,a,l;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return Ct(e,n,e.position,!0),e.position++,!0;if(92===a){if(Ct(e,n,e.position,!0),at(a=e.input.charCodeAt(++e.position)))St(e,!1,t);else if(a<256&&ht[a])e.result+=gt[a],e.position++;else if((s=120===(l=a)?2:117===l?4:85===l?8:0)>0){for(r=s,o=0;r>0;r--)(s=ct(a=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+s:yt(e,"expected hexadecimal character");e.result+=ft(o),e.position++}else yt(e,"unknown escape sequence");n=i=e.position}else at(a)?(Ct(e,n,i,!0),It(e,St(e,!1,t)),n=i=e.position):e.position===e.lineStart&&jt(e)?yt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}yt(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?m=!0:function(e){var t,n,i;if(42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!ut(i)&&!pt(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&yt(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),et.call(e.anchorMap,n)||yt(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],St(e,!0,-1),!0}(e)?(m=!0,null===e.tag&&null===e.anchor||yt(e,"alias node should not have any properties")):function(e,t,n){var i,r,o,s,a,l,u,p,c=e.kind,d=e.result;if(ut(p=e.input.charCodeAt(e.position))||pt(p)||35===p||38===p||42===p||33===p||124===p||62===p||39===p||34===p||37===p||64===p||96===p)return!1;if((63===p||45===p)&&(ut(i=e.input.charCodeAt(e.position+1))||n&&pt(i)))return!1;for(e.kind="scalar",e.result="",r=o=e.position,s=!1;0!==p;){if(58===p){if(ut(i=e.input.charCodeAt(e.position+1))||n&&pt(i))break}else if(35===p){if(ut(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&jt(e)||n&&pt(p))break;if(at(p)){if(a=e.line,l=e.lineStart,u=e.lineIndent,St(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}e.position=o,e.line=a,e.lineStart=l,e.lineIndent=u;break}}s&&(Ct(e,r,o,!1),It(e,e.line-a),r=o=e.position,s=!1),lt(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return Ct(e,r,o,!1),!!e.result||(e.kind=c,e.result=d,!1)}(e,d,1===n)&&(m=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===h&&(m=a&&Ft(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&yt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,u=e.implicitTypes.length;l<u;l+=1)if((c=e.implicitTypes[l]).resolve(e.result)){e.result=c.construct(e.result),e.tag=c.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(et.call(e.typeMap[e.kind||"fallback"],e.tag))c=e.typeMap[e.kind||"fallback"][e.tag];else for(c=null,l=0,u=(p=e.typeMap.multi[e.kind||"fallback"]).length;l<u;l+=1)if(e.tag.slice(0,p[l].tag.length)===p[l].tag){c=p[l];break}c||yt(e,"unknown tag !<"+e.tag+">"),null!==e.result&&c.kind!==e.kind&&yt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+c.kind+'", not "'+e.kind+'"'),c.resolve(e.result,e.tag)?(e.result=c.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):yt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||m}function Et(e){var t,n,i,r,o=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(St(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(s=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!ut(r);)r=e.input.charCodeAt(++e.position);for(i=[],(n=e.input.slice(t,e.position)).length<1&&yt(e,"directive name must not be less than one character in length");0!==r;){for(;lt(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!at(r));break}if(at(r))break;for(t=e.position;0!==r&&!ut(r);)r=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==r&&Ot(e),et.call(kt,n)?kt[n](e,n,i):wt(e,'unknown document directive "'+n+'"')}St(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,St(e,!0,-1)):s&&yt(e,"directives end mark is expected"),Lt(e,e.lineIndent-1,4,!1,!0),St(e,!0,-1),e.checkLineBreaks&&nt.test(e.input.slice(o,e.position))&&wt(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&jt(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,St(e,!0,-1)):e.position<e.length-1&&yt(e,"end of the stream or a document separator is expected")}function Dt(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new bt(e,t),i=e.indexOf("\0");for(-1!==i&&(n.position=i,yt(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Et(n);return n.documents}var Mt={loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var i=Dt(e,n);if("function"!=typeof t)return i;for(var r=0,o=i.length;r<o;r+=1)t(i[r])},load:function(e,t){var n=Dt(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new be("expected a single document in the stream, but found more")}}},Nt=Object.prototype.toString,_t=Object.prototype.hasOwnProperty,Wt=65279,$t={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Rt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ut=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Bt(e){var t,n,i;if(t=e.toString(16).toUpperCase(),e<=255)n="x",i=2;else if(e<=65535)n="u",i=4;else{if(!(e<=4294967295))throw new be("code point within a string may not be greater than 0xFFFFFFFF");n="U",i=8}return"\\"+n+he.repeat("0",i-t.length)+t}function zt(e){this.schema=e.schema||Xe,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=he.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,i,r,o,s,a,l;if(null===t)return{};for(n={},r=0,o=(i=Object.keys(t)).length;r<o;r+=1)s=i[r],a=String(t[s]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(l=e.compiledTypeMap.fallback[s])&&_t.call(l.styleAliases,a)&&(a=l.styleAliases[a]),n[s]=a;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function qt(e,t){for(var n,i=he.repeat(" ",t),r=0,o=-1,s="",a=e.length;r<a;)-1===(o=e.indexOf("\n",r))?(n=e.slice(r),r=a):(n=e.slice(r,o+1),r=o+1),n.length&&"\n"!==n&&(s+=i),s+=n;return s}function Ht(e,t){return"\n"+he.repeat(" ",e.indent*t)}function Yt(e){return 32===e||9===e}function Gt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==Wt||65536<=e&&e<=1114111}function Jt(e){return Gt(e)&&e!==Wt&&13!==e&&10!==e}function Kt(e,t,n){var i=Jt(e),r=i&&!Yt(e);return(n?i:i&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!r)||Jt(t)&&!Yt(t)&&35===e||58===t&&r}function Vt(e,t){var n,i=e.charCodeAt(t);return i>=55296&&i<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}function Qt(e){return/^\n* /.test(e)}function Zt(e,t,n,i,r){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==Rt.indexOf(t)||Ut.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,n),s=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),a=i||e.flowLevel>-1&&n>=e.flowLevel;switch(function(e,t,n,i,r,o,s,a){var l,u,p=0,c=null,d=!1,f=!1,h=-1!==i,g=-1,m=Gt(u=Vt(e,0))&&u!==Wt&&!Yt(u)&&45!==u&&63!==u&&58!==u&&44!==u&&91!==u&&93!==u&&123!==u&&125!==u&&35!==u&&38!==u&&42!==u&&33!==u&&124!==u&&61!==u&&62!==u&&39!==u&&34!==u&&37!==u&&64!==u&&96!==u&&function(e){return!Yt(e)&&58!==e}(Vt(e,e.length-1));if(t||s)for(l=0;l<e.length;p>=65536?l+=2:l++){if(!Gt(p=Vt(e,l)))return 5;m=m&&Kt(p,c,a),c=p}else{for(l=0;l<e.length;p>=65536?l+=2:l++){if(10===(p=Vt(e,l)))d=!0,h&&(f=f||l-g-1>i&&" "!==e[g+1],g=l);else if(!Gt(p))return 5;m=m&&Kt(p,c,a),c=p}f=f||h&&l-g-1>i&&" "!==e[g+1]}return d||f?n>9&&Qt(e)?5:s?2===o?5:2:f?4:3:!m||s||r(e)?2===o?5:2:1}(t,a,e.indent,s,(function(t){return function(e,t){var n,i;for(n=0,i=e.implicitTypes.length;n<i;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!i,r)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+Xt(t,e.indent)+en(qt(t,o));case 4:return">"+Xt(t,e.indent)+en(qt(function(e,t){for(var n,i,r,o=/(\n+)([^\n]*)/g,s=(r=-1!==(r=e.indexOf("\n"))?r:e.length,o.lastIndex=r,tn(e.slice(0,r),t)),a="\n"===e[0]||" "===e[0];i=o.exec(e);){var l=i[1],u=i[2];n=" "===u[0],s+=l+(a||n||""===u?"":"\n")+tn(u,t),a=n}return s}(t,s),o));case 5:return'"'+function(e){for(var t,n="",i=0,r=0;r<e.length;i>=65536?r+=2:r++)i=Vt(e,r),!(t=$t[i])&&Gt(i)?(n+=e[r],i>=65536&&(n+=e[r+1])):n+=t||Bt(i);return n}(t)+'"';default:throw new be("impossible error: invalid scalar style")}}()}function Xt(e,t){var n=Qt(e)?String(t):"",i="\n"===e[e.length-1];return n+(!i||"\n"!==e[e.length-2]&&"\n"!==e?i?"":"-":"+")+"\n"}function en(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function tn(e,t){if(""===e||" "===e[0])return e;for(var n,i,r=/ [^ ]/g,o=0,s=0,a=0,l="";n=r.exec(e);)(a=n.index)-o>t&&(i=s>o?s:a,l+="\n"+e.slice(o,i),o=i+1),s=a;return l+="\n",e.length-o>t&&s>o?l+=e.slice(o,s)+"\n"+e.slice(s+1):l+=e.slice(o),l.slice(1)}function nn(e,t,n,i){var r,o,s,a="",l=e.tag;for(r=0,o=n.length;r<o;r+=1)s=n[r],e.replacer&&(s=e.replacer.call(n,String(r),s)),(on(e,t+1,s,!0,!0,!1,!0)||void 0===s&&on(e,t+1,null,!0,!0,!1,!0))&&(i&&""===a||(a+=Ht(e,t)),e.dump&&10===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=l,e.dump=a||"[]"}function rn(e,t,n){var i,r,o,s,a,l;for(o=0,s=(r=n?e.explicitTypes:e.implicitTypes).length;o<s;o+=1)if(((a=r[o]).instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof t&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(n?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,"[object Function]"===Nt.call(a.represent))i=a.represent(t,l);else{if(!_t.call(a.represent,l))throw new be("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');i=a.represent[l](t,l)}e.dump=i}return!0}return!1}function on(e,t,n,i,r,o,s){e.tag=null,e.dump=n,rn(e,n,!1)||rn(e,n,!0);var a,l=Nt.call(e.dump),u=i;i&&(i=e.flowLevel<0||e.flowLevel>t);var p,c,d="[object Object]"===l||"[object Array]"===l;if(d&&(c=-1!==(p=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||c||2!==e.indent&&t>0)&&(r=!1),c&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&c&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===l)i&&0!==Object.keys(e.dump).length?(function(e,t,n,i){var r,o,s,a,l,u,p="",c=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new be("sortKeys must be a boolean or a function");for(r=0,o=d.length;r<o;r+=1)u="",i&&""===p||(u+=Ht(e,t)),a=n[s=d[r]],e.replacer&&(a=e.replacer.call(n,s,a)),on(e,t+1,s,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,l&&(u+=Ht(e,t)),on(e,t+1,a,!0,l)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",p+=u+=e.dump));e.tag=c,e.dump=p||"{}"}(e,t,e.dump,r),c&&(e.dump="&ref_"+p+e.dump)):(function(e,t,n){var i,r,o,s,a,l="",u=e.tag,p=Object.keys(n);for(i=0,r=p.length;i<r;i+=1)a="",""!==l&&(a+=", "),e.condenseFlow&&(a+='"'),s=n[o=p[i]],e.replacer&&(s=e.replacer.call(n,o,s)),on(e,t,o,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),on(e,t,s,!1,!1)&&(l+=a+=e.dump));e.tag=u,e.dump="{"+l+"}"}(e,t,e.dump),c&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===l)i&&0!==e.dump.length?(e.noArrayIndent&&!s&&t>0?nn(e,t-1,e.dump,r):nn(e,t,e.dump,r),c&&(e.dump="&ref_"+p+e.dump)):(function(e,t,n){var i,r,o,s="",a=e.tag;for(i=0,r=n.length;i<r;i+=1)o=n[i],e.replacer&&(o=e.replacer.call(n,String(i),o)),(on(e,t,o,!1,!1)||void 0===o&&on(e,t,null,!1,!1))&&(""!==s&&(s+=","+(e.condenseFlow?"":" ")),s+=e.dump);e.tag=a,e.dump="["+s+"]"}(e,t,e.dump),c&&(e.dump="&ref_"+p+" "+e.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(e.skipInvalid)return!1;throw new be("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&Zt(e,e.dump,t,o,u)}null!==e.tag&&"?"!==e.tag&&(a=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),a="!"===e.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",e.dump=a+" "+e.dump)}return!0}function sn(e,t){var n,i,r=[],o=[];for(an(e,r,o),n=0,i=o.length;n<i;n+=1)t.duplicates.push(r[o[n]]);t.usedDuplicates=new Array(i)}function an(e,t,n){var i,r,o;if(null!==e&&"object"==typeof e)if(-1!==(r=t.indexOf(e)))-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,o=e.length;r<o;r+=1)an(e[r],t,n);else for(r=0,o=(i=Object.keys(e)).length;r<o;r+=1)an(e[i[r]],t,n)}function ln(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}const un={Type:Ce,Schema:Oe,FAILSAFE_SCHEMA:Fe,JSON_SCHEMA:We,CORE_SCHEMA:$e,DEFAULT_SCHEMA:Xe,load:Mt.load,loadAll:Mt.loadAll,dump:function(e,t){var n=new zt(t=t||{});n.noRefs||sn(e,n);var i=e;return n.replacer&&(i=n.replacer.call({"":i},"",i)),on(n,0,i,!0,!0)?n.dump+"\n":""},YAMLException:be,types:{binary:He,float:_e,map:Ie,null:Pe,pairs:Ve,set:Ze,timestamp:Be,bool:Te,int:De,merge:ze,omap:Je,seq:je,str:Se},safeLoad:ln("safeLoad","load"),safeLoadAll:ln("safeLoadAll","loadAll"),safeDump:ln("safeDump","dump")},pn=e=>void 0===e?"(undefined)":(0,H.isFunction)(e)?"(function)":e instanceof RegExp?e.toString():e,cn=(e,t)=>{const n=un.dump(t,{replacer:pn});X.default.outputFileSync(e,n)};Y.d({},{});const dn=(e=>{var t={};return Y.d(t,e),t})({default:()=>v.default}),fn=(e=>{var t={};return Y.d(t,e),t})({default:()=>y.default}),hn=fn.default.default,gn=(e=>{var t={};return Y.d(t,e),t})({default:()=>w.default}),mn=(e=>{var t={};return Y.d(t,e),t})({default:()=>k.default}),bn=(e=>{var t={};return Y.d(t,e),t})({default:()=>C.default}),vn=(e=>{var t={};return Y.d(t,e),t})({default:()=>x.default}),yn=(e=>{var t={};return Y.d(t,e),t})({default:()=>A.default}),wn=yn.default.default,kn=(e=>{var t={};return Y.d(t,e),t})({default:()=>O.default}),Cn=kn.default.default,xn=(e=>{var t={};return Y.d(t,e),t})({default:()=>S.default}),An=(e=>{var t={};return Y.d(t,e),t})({default:()=>j.default}),On=(e=>{var t={};return Y.d(t,e),t})({default:()=>I.default}),Sn=(e=>{var t={};return Y.d(t,e),t})({default:()=>F.default}),jn=(e=>{var t={};return Y.d(t,e),t})({default:()=>P.default}),In=(e=>{var t={};return Y.d(t,e),t})({default:()=>T.default}),Fn={nested:Sn.default,easings:An.default,import:On.default,center:xn.default,sorting:In.default,orderedValues:jn.default},Pn=e=>{const t=[],n=(e,n)=>{const i=Fn[e](n);t.push(i)};return n("nested"),n("easings"),n("import"),n("center"),e.development||(n("sorting",{order:["custom-properties","dollar-variables","declarations","rules","at-rules"],"properties-order":["content","display","flex","width","height","margin","padding"],"unspecified-properties-position":"bottomAlphabetical"}),n("orderedValues")),{postcssOptions:{plugins:t}}},Tn=(0,q.default)("webpack-config-jaid"),Ln=!(!process.env.TRAVIS_TAG&&!process.env.GITHUB_WORKFLOW);Tn("Is CI: %s",Ln);const En=Ln;class Dn{pkg=null;options=null;getDefaultOptions(){return{}}processOptions(){}getWebpackConfig(){return{}}getDefines(){return{}}getLibraryNameFromPkg(e){return(0,dn.default)(e.name)}createTerserOptions(e){return{compress:{passes:En?10:1,unsafe_comps:!0,unsafe_math:!0,unsafe_regexp:!0,unsafe_undefined:!0},output:{ecma:2019,comments:(e,t)=>3>t.line},...e}}getTitle(){return this.options.title||this.pkg.title||this.pkg.name||"Page"}getDescription(){return this.options.appDescription||this.pkg.description||null}}const Mn=(0,q.default)("webpack-config-jaid"),Nn=class extends Dn{port=null;hot=!1;srcDirectory=null;publicPath=null;title=null;description=null;meta=null;useMiniCssExtractPlugin=null;base64UrlLimit=null;getDefaultOptions(){return{terserOptions:this.createTerserOptions({toplevel:!0}),nodeExternals:!1,inlineSource:!0,createCssFile:!1,optimizeCss:!0,banner:!1,include:!1}}getBinaryFileRegex(){return/\.(svg|woff|woff2|ttf|eot|otf|mp4|flv|webm|mp3|flac|ogg|m4a|aac)$/}getImageFileRegex(){return/\.(png|jpg|jpeg|webp|gif)$/}getBase64UrlLimit(){return 0}processOptions(e){this.hot=!!e.port}isHot(){return this.hot}getPublicPath(){return this.options.publicPath||"."}getLibraryName(e){return(0,dn.default)(e)}getMeta(){return{viewport:"width=device-width,initial-scale=1,user-scalable=no"}}getHtmlPluginOptions(){const e={title:this.title,meta:this.meta,debug:this.options.development,minify:!this.options.development&&{removeAttributeQuotes:!0,collapseWhitespace:!0,collapseBooleanAttributes:!0,decodeEntities:!0,minifyCSS:!0,minifyJS:!0,removeComments:!0,removeRedundantAttributes:!0,sortAttributes:!0,sortClassName:!0,useShortDoctype:!0}};return!this.options.development&&this.options.domain,e}getStyleLoader(){return this.isHot()?"style-loader":this.options.createCssFile?{loader:vn.default.loader}:{loader:"style-loader",options:{injectType:this.options.development?"styleTag":"singletonStyleTag"}}}getInternalCssLoader(){let e;return e=this.options.development?{sourceMap:!0,modules:{localIdentName:"[folder]_[local]_[contenthash:4]"}}:{modules:{localIdentName:"[contenthash:6]"}},{loader:"css-loader",options:e}}getExternalCssLoader(){return{loader:"css-loader",options:{sourceMap:this.options.development,modules:!1}}}getPostcssLoader(){return{loader:"postcss-loader",options:Pn(this.options)}}getMiniCssExtractPluginOptions(){return(0,H.isObject)(this.options.createCssFile)?this.options.createCssFile:{filename:this.options.development?"[name].css":`${this.pkg.version||"[contenthash:6]"}.css`,chunkFilename:this.options.development?"[id].css":"[contenthash:6].css"}}getBrowserSyncOptions(){const e={codeSync:!1};return e.port=1<+this.options.browserSync?+this.options.browserSync:3e3,e}getBrowserSyncPluginOptions(){return{}}getGoogleAnalyticsTrackingId(){return this.options.googleAnalyticsTrackingId?this.options.googleAnalyticsOnlyInProduction&&this.options.development?null:this.options.googleAnalyticsTrackingId:null}shouldInlineJavascript(){return!0}getBodyContent(){return null}getImageLoader(){const e=this.getImageFileRegex();return this.options.development?{test:e,type:"asset/resource"}:{test:e,type:"asset",parser:{dataUrlCondition:{maxSize:this.base64UrlLimit}}}}getWebpackConfig({options:e,entryFolder:t}){e.devPort&&(this.port=e.devPort),process.env.webpackPort&&(this.port=+process.env.webpackPort),this.hot=!!this.port,this.srcDirectory=t,this.publicPath=this.getPublicPath(),Mn('Public path: "%s"',this.publicPath),this.title=this.getTitle(),this.meta=this.getMeta();const n=this.getHtmlPluginOptions(),i=this.getStyleLoader(),r=this.getInternalCssLoader(),o=this.getExternalCssLoader(),s=this.getPostcssLoader();this.useMiniCssExtractPlugin=i.loader===vn.default.loader;const a=[{test:/\.css$/,include:this.srcDirectory,use:[i,r,s]},{test:/\.css$/,exclude:this.srcDirectory,use:[i,o,s]},{test:/(\.scss|\.sass)$/,use:[i,r,s,"resolve-url-loader","sass-loader"]}],l=this.getBinaryFileRegex();this.base64UrlLimit=this.getBase64UrlLimit();const u={target:"web",resolve:{fallback:{fs:!1}},output:{publicPath:this.publicPath},module:{rules:[{test:l,type:"asset",parser:{dataUrlCondition:{maxSize:this.base64UrlLimit}}},this.getImageLoader(),{test:/\.md$/,use:["html-loader","markdown-loader"]},...a]},plugins:[new mn.default(n)]},p=this.getBodyContent();if(p&&u.plugins.push(new Cn({content:p})),this.shouldInlineJavascript()&&Mn("Requested to inline javascript, but inlining is ignored right now"),this.useMiniCssExtractPlugin){const e=this.getMiniCssExtractPluginOptions();u.plugins.push(new vn.default(e)),u.plugins.push(new wn)}if(this.options.development&&this.options.browserSync){const e=this.getBrowserSyncOptions(),t=this.getBrowserSyncPluginOptions();u.plugins.push(new gn.default(e,t)),u.plugins.push(new bn.default({port:e.port}))}const c=this.getGoogleAnalyticsTrackingId();return u.plugins.push(new te.default.DefinePlugin({GOOGLE_ANALYTICS_TRACKING_ID:JSON.stringify(c)})),u}getDefines(){return{"process.browser":"true"}}},_n=class extends Dn{getDefaultOptions(){return{terserOptions:this.createTerserOptions({toplevel:!0})}}getWebpackConfig(e){const t=super.getWebpackConfig(e),n={target:"node18",optimization:{nodeEnv:!1},node:{__dirname:!1,__filename:!1},module:{rules:[{test:/\.(png|jpg|jpeg|webp|gif|svg|woff|woff2|ttf|eot|otf|mp4|flv|webm|mp3|flac|ogg|m4a|aac)$/,use:"buffer-loader"}]},plugins:[new te.default.DefinePlugin({"process.browser":!1})]};return de(n,t)}},Wn="generator-core-version",$n=(e=>{var t={};return Y.d(t,e),t})({pascalCase:()=>L.pascalCase}),Rn=class extends _n{getDefaultOptions(){return{terserOptions:this.createTerserOptions({toplevel:!0,module:!0}),publishimo:!0}}getWebpackConfig({pkg:e}){const t=super.getWeb