webpack-config-jaid
Version:
Takes tiny input and returns a Webpack config in the way I personally like.
2 lines • 66.8 kB
JavaScript
/*! For license information please see index.js.LICENSE.txt */
import{createRequire as e}from"module";import*as t from"app-root-path";import*as n from"clean-webpack-plugin";import*as i from"copy-webpack-plugin";import*as r from"debug";import*as o from"fs-extra";import*as a from"license-webpack-plugin";import*as s from"lodash-es";import*as l from"read-pkg";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 j from"postcss-center";import*as S 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 E from"pascal-case";import*as L from"@absolunet/fss";import*as M from"@lcdp/offline-plugin";import*as N from"@pmmmwh/react-refresh-webpack-plugin";import*as D 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 q from"sitemap-xml-webpack-plugin";var z={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 z[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:()=>pi,qJ:()=>vi,pv:()=>bi,AH:()=>di,Cb:()=>ci,Ms:()=>mi,Mm:()=>hi,HM:()=>fi,yQ:()=>gi,ZP:()=>ui});const a=e(import.meta.url)("node:path"),b=(M={default:()=>t.default},z={},Y.d(z,M),z);var M,z;const H=(e=>{var t={};return Y.d(t,e),t})({CleanWebpackPlugin:()=>n.CleanWebpackPlugin}),J=(e=>{var t={};return Y.d(t,e),t})({default:()=>i.default}),K=(e=>{var t={};return Y.d(t,e),t})({default:()=>r.default});var V=Y(79);const Q=(e=>{var t={};return Y.d(t,e),t})({default:()=>o.default});Y.d({},{});const Z=(e=>{var t={};return Y.d(t,e),t})({camelCase:()=>s.camelCase,escape:()=>s.escape,isFunction:()=>s.isFunction,isObject:()=>s.isObject,isString:()=>s.isString,omit:()=>s.omit,uniq:()=>s.uniq}),X=(e=>{var t={};return Y.d(t,e),t})({readPackageSync:()=>l.readPackageSync}),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,ae=(e=>{var t={};return Y.d(t,e),t})({default:()=>f.default});ae.default.default;const se=(e=>{var t={};return Y.d(t,e),t})({default:()=>h.default}),le=se.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="",a="",s=Math.floor(r/2)-1;return i-t>s&&(t=i-s+(o=" ... ").length),n-i>s&&(n=i+s-(a=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,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,je=new Ce("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),Se=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:[je,Se,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 Ee(e){return 48<=e&&e<=55}function Le(e){return 48<=e&&e<=57}var Me=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(!Ee(e.charCodeAt(r)))return!1;o=!0}return o&&"_"!==t}}if("_"===t)return!1;for(;r<i;r++)if("_"!==(t=e[r])){if(!Le(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"]}}),Ne=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),De=/^[-+]?[0-9]+e/,_e=new Ce("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!Ne.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),De.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),We=Fe.extend({implicit:[Pe,Te,Me,_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,a,s,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],a=+t[5],s=+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,a,s,u)),p&&l.setTime(l.getTime()-p),l},instanceOf:Date,represent:function(e){return e.toISOString()}}),qe=new Ce("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),ze="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=ze;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=ze,a=0,s=[];for(t=0;t<r;t++)t%4==0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|o.indexOf(i.charAt(t));return 0==(n=r%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===n?(s.push(a>>10&255),s.push(a>>2&255)):12===n&&s.push(a>>4&255),new Uint8Array(s)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,i="",r=0,o=e.length,a=ze;for(t=0;t<o;t++)t%3==0&&t&&(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]),r=(r<<8)+e[t];return 0==(n=o%3)?(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]):2===n?(i+=a[r>>10&63],i+=a[r>>4&63],i+=a[r<<2&63],i+=a[64]):1===n&&(i+=a[r>>2&63],i+=a[r<<4&63],i+=a[64],i+=a[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,a=[],s=e;for(t=0,n=s.length;t<n;t+=1){if(i=s[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!==a.indexOf(r))return!1;a.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,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(i=a[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,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1)i=a[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,qe],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 at(e){return Object.prototype.toString.call(e)}function st(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=[],a=-1;n=i.exec(e.buffer);)o.push(n.index),r.push(n.index+n[0].length),e.position<=n.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var s,l,u="",p=Math.min(e.line+t.linesAfter,o.length).toString().length,c=t.maxLength-(t.indent+p+3);for(s=1;s<=t.linesBefore&&!(a-s<0);s++)l=ve(e.buffer,r[a-s],o[a-s],e.position-(r[a]-r[a-s]),c),u=he.repeat(" ",t.indent)+ye((e.line-s+1).toString(),p)+" | "+l.str+"\n"+u;for(l=ve(e.buffer,r[a],o[a],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",s=1;s<=t.linesAfter&&!(a+s>=o.length);s++)l=ve(e.buffer,r[a+s],o[a+s],e.position-(r[a]-r[a+s]),c),u+=he.repeat(" ",t.indent)+ye((e.line+s+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,a,s;if(t<n){if(s=e.input.slice(t,n),i)for(r=0,o=s.length;r<o;r+=1)9===(a=s.charCodeAt(r))||32<=a&&a<=1114111||yt(e,"expected valid JSON character");else tt.test(s)&&yt(e,"the stream contains non-printable characters");e.result+=s}}function xt(e,t,n,i){var r,o,a,s;for(he.isObject(n)||yt(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(r=Object.keys(n)).length;a<s;a+=1)o=r[a],et.call(t,o)||(t[o]=n[o],i[o]=!0)}function At(e,t,n,i,r,o,a,s,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]"===at(r[u])&&(r[u]="[object Object]");if("object"==typeof r&&"[object Object]"===at(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=a||e.line,e.lineStart=s||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 jt(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(!st(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 St(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,a=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),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(s=!0,e.position++,jt(e,!0,-1)&&e.lineIndent<=t)a.push(null),i=e.input.charCodeAt(e.position);else if(n=e.line,Et(e,t,3,!1,!0),a.push(e.result),jt(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!!s&&(e.tag=r,e.anchor=o,e.kind="sequence",e.result=a,!0)}function Pt(e){var t,n,i,r,o=!1,a=!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?(a=!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&&(a?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"),a=!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 Et(e,t,n,i,r){var o,a,s,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=a=s=4===n||3===n,i&&jt(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);)jt(e,!0,-1)?(g=!0,s=o,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)):s=!1;if(s&&(s=g||r),1!==h&&4!==n||(d=1===n||2===n?t:t+1,f=e.position-e.lineStart,1===h?s&&(Ft(e,f)||function(e,t,n){var i,r,o,a,s,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(a=e.line,s=e.lineStart,l=e.position,!Et(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,a,s,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,a,s,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&&(a=e.line,s=e.lineStart,l=e.position),Et(e,t,4,!0,r)&&(b?g=e.result:m=e.result),b||(At(e,d,f,h,g,m,a,s,l),h=g=m=null),jt(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,a,s,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,a,s,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)))a=93,u=!1,o=[];else{if(123!==f)return!1;a=125,u=!0,o={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),f=e.input.charCodeAt(++e.position);0!==f;){if(jt(e,!0,t),(f=e.input.charCodeAt(e.position))===a)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,s=l=!1,63===f&&ut(e.input.charCodeAt(e.position+1))&&(s=l=!0,e.position++,jt(e,!0,t)),n=e.line,i=e.lineStart,r=e.position,Et(e,t,1,!1,!0),c=e.tag,p=e.result,jt(e,!0,t),f=e.input.charCodeAt(e.position),!l&&e.line!==n||58!==f||(s=!0,f=e.input.charCodeAt(++e.position),jt(e,!0,t),Et(e,t,1,!1,!0),d=e.result),u?At(e,o,b,c,p,d,n,i,r):s?o.push(At(e,null,b,c,p,d,n,i,r)):o.push(p),jt(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:(a&&function(e,t){var n,i,r,o,a,s=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===s?s=43===o?3:2:yt(e,"repeat of a chomping mode identifier");else{if(!((r=48<=(a=o)&&a<=57?a-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(!st(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),st(o))c++;else{if(e.lineIndent<p){3===s?e.result+=he.repeat("\n",l?1+c:c):1===s&&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;!st(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 st(n)?(Ct(e,i,r,!0),It(e,jt(e,!1,t)),i=r=e.position):e.position===e.lineStart&&St(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,a,s,l;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return Ct(e,n,e.position,!0),e.position++,!0;if(92===s){if(Ct(e,n,e.position,!0),st(s=e.input.charCodeAt(++e.position)))jt(e,!1,t);else if(s<256&&ht[s])e.result+=gt[s],e.position++;else if((a=120===(l=s)?2:117===l?4:85===l?8:0)>0){for(r=a,o=0;r>0;r--)(a=ct(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:yt(e,"expected hexadecimal character");e.result+=ft(o),e.position++}else yt(e,"unknown escape sequence");n=i=e.position}else st(s)?(Ct(e,n,i,!0),It(e,jt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&St(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],jt(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,a,s,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,a=!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&&St(e)||n&&pt(p))break;if(st(p)){if(s=e.line,l=e.lineStart,u=e.lineIndent,jt(e,!1,-1),e.lineIndent>=t){a=!0,p=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=l,e.lineIndent=u;break}}a&&(Ct(e,r,o,!1),It(e,e.line-s),r=o=e.position,a=!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=s&&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 Lt(e){var t,n,i,r,o=e.position,a=!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))&&(jt(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(a=!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&&!st(r));break}if(st(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+'"')}jt(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,jt(e,!0,-1)):a&&yt(e,"directives end mark is expected"),Et(e,e.lineIndent-1,4,!1,!0),jt(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&&St(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,jt(e,!0,-1)):e.position<e.length-1&&yt(e,"end of the stream or a document separator is expected")}function Mt(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;)Lt(n);return n.documents}var Nt={loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var i=Mt(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=Mt(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")}}},Dt=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 qt(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,a,s,l;if(null===t)return{};for(n={},r=0,o=(i=Object.keys(t)).length;r<o;r+=1)a=i[r],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=e.compiledTypeMap.fallback[a])&&_t.call(l.styleAliases,s)&&(s=l.styleAliases[s]),n[a]=s;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 zt(e,t){for(var n,i=he.repeat(" ",t),r=0,o=-1,a="",s=e.length;r<s;)-1===(o=e.indexOf("\n",r))?(n=e.slice(r),r=s):(n=e.slice(r,o+1),r=o+1),n.length&&"\n"!==n&&(a+=i),a+=n;return a}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),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),s=i||e.flowLevel>-1&&n>=e.flowLevel;switch(function(e,t,n,i,r,o,a,s){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||a)for(l=0;l<e.length;p>=65536?l+=2:l++){if(!Gt(p=Vt(e,l)))return 5;m=m&&Kt(p,c,s),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,s),c=p}f=f||h&&l-g-1>i&&" "!==e[g+1]}return d||f?n>9&&Qt(e)?5:a?2===o?5:2:f?4:3:!m||a||r(e)?2===o?5:2:1}(t,s,e.indent,a,(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(zt(t,o));case 4:return">"+Xt(t,e.indent)+en(zt(function(e,t){for(var n,i,r,o=/(\n+)([^\n]*)/g,a=(r=-1!==(r=e.indexOf("\n"))?r:e.length,o.lastIndex=r,tn(e.slice(0,r),t)),s="\n"===e[0]||" "===e[0];i=o.exec(e);){var l=i[1],u=i[2];n=" "===u[0],a+=l+(s||n||""===u?"":"\n")+tn(u,t),s=n}return a}(t,a),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,a=0,s=0,l="";n=r.exec(e);)(s=n.index)-o>t&&(i=a>o?a:s,l+="\n"+e.slice(o,i),o=i+1),a=s;return l+="\n",e.length-o>t&&a>o?l+=e.slice(o,a)+"\n"+e.slice(a+1):l+=e.slice(o),l.slice(1)}function nn(e,t,n,i){var r,o,a,s="",l=e.tag;for(r=0,o=n.length;r<o;r+=1)a=n[r],e.replacer&&(a=e.replacer.call(n,String(r),a)),(on(e,t+1,a,!0,!0,!1,!0)||void 0===a&&on(e,t+1,null,!0,!0,!1,!0))&&(i&&""===s||(s+=Ht(e,t)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=l,e.dump=s||"[]"}function rn(e,t,n){var i,r,o,a,s,l;for(o=0,a=(r=n?e.explicitTypes:e.implicitTypes).length;o<a;o+=1)if(((s=r[o]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(l=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===Dt.call(s.represent))i=s.represent(t,l);else{if(!_t.call(s.represent,l))throw new be("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');i=s.represent[l](t,l)}e.dump=i}return!0}return!1}function on(e,t,n,i,r,o,a){e.tag=null,e.dump=n,rn(e,n,!1)||rn(e,n,!0);var s,l=Dt.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,a,s,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)),s=n[a=d[r]],e.replacer&&(s=e.replacer.call(n,a,s)),on(e,t+1,a,!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,s,!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,a,s,l="",u=e.tag,p=Object.keys(n);for(i=0,r=p.length;i<r;i+=1)s="",""!==l&&(s+=", "),e.condenseFlow&&(s+='"'),a=n[o=p[i]],e.replacer&&(a=e.replacer.call(n,o,a)),on(e,t,o,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),on(e,t,a,!1,!1)&&(l+=s+=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&&!a&&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,a="",s=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))&&(""!==a&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=s,e.dump="["+a+"]"}(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&&(s=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),s="!"===e.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",e.dump=s+" "+e.dump)}return!0}function an(e,t){var n,i,r=[],o=[];for(sn(e,r,o),n=0,i=o.length;n<i;n+=1)t.duplicates.push(r[o[n]]);t.usedDuplicates=new Array(i)}function sn(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)sn(e[r],t,n);else for(r=0,o=(i=Object.keys(e)).length;r<o;r+=1)sn(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:Nt.load,loadAll:Nt.loadAll,dump:function(e,t){var n=new qt(t=t||{});n.noRefs||an(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:Me,merge:qe,omap:Je,seq:Se,str:je},safeLoad:ln("safeLoad","load"),safeLoadAll:ln("safeLoadAll","loadAll"),safeDump:ln("safeDump","dump")},pn=e=>void 0===e?"(undefined)":(0,Z.isFunction)(e)?"(function)":e instanceof RegExp?e.toString():e,cn=(e,t)=>{const n=un.dump(t,{replacer:pn});Q.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:()=>j.default}),An=(e=>{var t={};return Y.d(t,e),t})({default:()=>S.default}),On=(e=>{var t={};return Y.d(t,e),t})({default:()=>I.default}),jn=(e=>{var t={};return Y.d(t,e),t})({default:()=>F.default}),Sn=(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:jn.default,easings:An.default,import:On.default,center:xn.default,sorting:In.default,orderedValues:Sn.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,K.default)("webpack-config-jaid"),En=!(!process.env.TRAVIS_TAG&&!process.env.GITHUB_WORKFLOW);Tn("Is CI: %s",En);const Ln=En;class Mn{pkg=null;options=null;getDefaultOptions(){return{}}processOptions(){}getWebpackConfig(){return{}}getDefines(){return{}}getLibraryNameFromPkg(e){return(0,dn.default)(e.name)}createTerserOptions(e){return{compress:{passes:Ln?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 Nn=(0,K.default)("webpack-config-jaid"),Dn=class extends Mn{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 1e3}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]_[hash:base62:4]"}}:{modules:{localIdentName:"[hash:base64: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,Z.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,loader:"file-loader",options:{publicPath:this.publicPath,name:"[path][name]-untouched.[ext]"}}:{test:e,loader:"url-loader",options:{limit:this.base64UrlLimit,fallback:{loader:"file-loader",options:{publicPath:this.publicPath,name:"[hash:base64:6].[ext]"}}}}}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(),Nn('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(),a=this.getPostcssLoader();this.useMiniCssExtractPlugin=i.loader===vn.default.loader;const s=[{test:/\.css$/,include:this.srcDirectory,use:[i,r,a]},{test:/\.css$/,exclude:this.srcDirectory,use:[i,o,a]},{test:/(\.scss|\.sass)$/,use:[i,r,a,"resolve-url-loader","sass-loader"]}],l=this.getBinaryFileRegex();this.base64UrlLimit=this.getBase64UrlLimit();const u={target:"web",resolve:{fallback:{fs:!1}},output:{publicPath:this.publicPath,filename:e.development?void 0:`${this.pkg.version||"[chunkhash:6]"}.js`},module:{rules:[{test:l,use:{loader:"url-loader",options:{limit:this.base64UrlLimit,fallback:{loader:"file-loader",options:{publicPath:this.publicPath,name:e.development?"[path][name].[ext]":"[hash:base64:6].[ext]"}}}}},this.getImageLoader(),{test:/\.md$/,use:["html-loader","markdown-loader"]},...s]},plugins:[new mn.default(n)]},p=this.getBodyContent();if(p&&u.plugins.push(new Cn({content:p})),this.shouldInlineJavascript()&&Nn("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 Mn{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-lo