1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{68:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i,metadata:()=>r});var s=n(7876);let r={title:"Open Energy Benchmark",description:"An open-source benchmark of optimization solvers on representative problems from the energy planning domain."};function i({children:e}){return(0,s.jsx)(s.Fragment,{children:e})}},92:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(9725)}])},1777:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>h,d4:()=>v,wA:()=>y});var s=n(4232),r=n(7282),i={notify(){},get:()=>[]},o="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,a="u">typeof navigator&&"ReactNative"===navigator.product,l=o||a?s.useLayoutEffect:s.useEffect,c=Symbol.for("react-redux-context"),u="u">typeof globalThis?globalThis:{},f=function(){if(!s.createContext)return{};let e=u[c]??=new Map,t=e.get(s.createContext);return t||(t=s.createContext(null),e.set(s.createContext,t)),t}(),h=function(e){let{children:t,context:n,serverState:r,store:o}=e,a=s.useMemo(()=>{let e=function(e){let t,n=i,s=0,r=!1;function o(){c.onStateChange&&c.onStateChange()}function a(){if(s++,!t){let s,r;t=e.subscribe(o),s=null,r=null,n={clear(){s=null,r=null},notify(){let e=s;for(;e;)e.callback(),e=e.next},get(){let e=[],t=s;for(;t;)e.push(t),t=t.next;return e},subscribe(e){let t=!0,n=r={callback:e,next:null,prev:r};return n.prev?n.prev.next=n:s=n,function(){t&&null!==s&&(t=!1,n.next?n.next.prev=n.prev:r=n.prev,n.prev?n.prev.next=n.next:s=n.next)}}}}}function l(){s--,t&&0===s&&(t(),t=void 0,n.clear(),n=i)}let c={addNestedSub:function(e){a();let t=n.subscribe(e),s=!1;return()=>{s||(s=!0,t(),l())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return r},trySubscribe:function(){r||(r=!0,a())},tryUnsubscribe:function(){r&&(r=!1,l())},getListeners:()=>n};return c}(o);return{store:o,subscription:e,getServerState:r?()=>r:void 0}},[o,r]),c=s.useMemo(()=>o.getState(),[o]);return l(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,c]),s.createElement((n||f).Provider,{value:a},t)};function d(e=f){return function(){return s.useContext(e)}}var p=d();function m(e=f){let t=e===f?p:d(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var g=m(),y=function(e=f){let t=e===f?g:m(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}(),b=(e,t)=>e===t,v=function(e=f){let t=e===f?p:d(e),n=(e,n={})=>{let{equalityFn:i=b}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:a,getServerState:l}=t();s.useRef(!0);let c=s.useCallback({[e.name]:t=>e(t)}[e.name],[e]),u=(0,r.useSyncExternalStoreWithSelector)(a.addNestedSub,o.getState,l||o.getState,c,i);return s.useDebugValue(u),u};return Object.assign(n,{withTypes:()=>n}),n}()},1858:e=>{e.exports={style:{fontFamily:"'Space Grotesk', 'Space Grotesk Fallback'",fontStyle:"normal"},className:"__className_495257",variable:"__variable_495257"}},2266:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i,q:()=>o});var s,r,i=((s={}).Realistic="Realistic",s.Other="N/A",s),o=((r={}).HasResults="Has Results",r.NoResults="No Results",r)},2306:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let s={SET_BENCHMARK_RESULTS:"SET_BENCHMARK_RESULTS",SET_BENCHMARK_LATEST_RESULTS:"SET_BENCHMARK_LATEST_RESULTS",SET_META_DATA:"SET_META_DATA",SET_RAW_BENCHMARK_RESULTS:"SET_RAW_BENCHMARK_RESULTS",SET_RAW_META_DATA:"SET_RAW_META_DATA",SET_AVAILABLE_FILTER_DATA:"SET_AVAILABLE_FILTER_DATA",SET_FULL_META_DATA:"SET_FULL_META_DATA",SET_BENCHMARK_HIPO_RESULTS:"SET_BENCHMARK_HIPO_RESULTS",setBenchmarkResults:e=>({type:s.SET_BENCHMARK_RESULTS,payload:{results:e}}),setBenchmarkLatestResults:e=>({type:s.SET_BENCHMARK_LATEST_RESULTS,payload:{results:e}}),setMetaData:e=>({type:s.SET_META_DATA,payload:{metaData:e}}),setRawBenchmarkResults:e=>({type:s.SET_RAW_BENCHMARK_RESULTS,payload:{results:e}}),setRawMetaData:e=>({type:s.SET_RAW_META_DATA,payload:{metaData:e}}),setFullMetaData:e=>({type:s.SET_FULL_META_DATA,payload:{metaData:e}}),setAvailableFilterData:e=>({type:s.SET_AVAILABLE_FILTER_DATA,payload:{availableFilterData:e}}),setBenchmarkHipoResults:e=>({type:s.SET_BENCHMARK_HIPO_RESULTS,payload:{results:e}})},r=s},2367:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var s=n(2306),r=n(3365),i=n(9499);let o=(e,t,n)=>({type:a.TOGGLE_FILTER,payload:{category:e,value:t,only:n}}),a={TOGGLE_FILTER:"TOGGLE_FILTER",SET_FILTER:"SET_FILTER",SET_SGM_MODE:"SET_SGM_MODE",SET_X_FACTOR:"SET_X_FACTOR",RESET_FILTERS:"RESET_FILTERS",setFilter:e=>({type:a.SET_FILTER,payload:e}),setSgmMode:e=>({type:a.SET_SGM_MODE,payload:{sgmMode:e}}),setXFactor:e=>({type:a.SET_X_FACTOR,payload:{xFactor:e}}),toggleFilter:o,resetFilters:()=>(e,t)=>{e({type:a.RESET_FILTERS});let{results:n}=t();e(s.A.setBenchmarkResults(n.rawBenchmarkResults)),e(s.A.setBenchmarkLatestResults((0,r.K$)(n.rawBenchmarkResults))),e(s.A.setMetaData(n.rawMetaData))},toggleFilterAndUpdateResults:e=>(t,n)=>{t(o(e.category,e.value,e.only));let{filters:a,results:l}=n(),c=Object.fromEntries(Object.entries(l.rawMetaData).filter(([,e])=>{let t=e.sectors,n=t?a.sectors.some(e=>
1t.split(",").map(e=>e.trim()).includes(e)):a.sectors.includes(i.lg);return a.application.includes(e.application??i.lg)&&a.problemClass.includes(e.problemClass??"")&&a.sectoralFocus.includes(e.sectoralFocus??i.lg)&&n&&a.modellingFramework.includes(e.modellingFramework??i.lg)})),u=l.rawBenchmarkResults.filter(e=>{let t=c[(0,r.ZA)(e)];return!!t&&a.problemSize.includes(t.size??"")&&(0,r.XO)(t,a)});t(s.A.setMetaData(c)),t(s.A.setBenchmarkResults(u)),t(s.A.setBenchmarkLatestResults((0,r.K$)(u)))}},l=a},2884:(e,t,n)=>{"use strict";function s(e,t="asc"){let n=[...e];return"asc"===t?n.sort((e,t)=>e.localeCompare(t)):n.sort((e,t)=>t.localeCompare(e))}function r(e,{priorityOrder:t,lastValue:n}={}){if(t){let n=e=>{let n=t.indexOf(e);return -1===n?t.length:n};return[...e].sort((e,t)=>{let s=n(e)-n(t);return 0!==s?s:e.localeCompare(t)})}return[...e].sort((e,t)=>{let s=e===n;return s!==(t===n)?s?1:-1:e.localeCompare(t)})}n.d(t,{Gq:()=>i,Rj:()=>o,ZR:()=>r,r7:()=>s,zl:()=>a});let i=e=>{let t=e.replace(/<\/?b>/g,"").match(/^[\d.]+/);return t?parseFloat(t[0]):0},o=e=>{let[t,n]=e.split("--");return{name:t,version:n}};function a(e){if(e<1)return"< 1 sec";if(e<60)return`${Math.round(e)} ${1===e?"sec":"secs"}`;if(e<3600){let t=Math.round(e/60);return`${t} ${1===t?"min":"mins"}`}if(e<=86400){let t=Math.floor(e/3600),n=Math.round(e%3600/60),s=1===t?"hr":"hrs";return n>0?`${t} ${s} ${n} ${1===n?"min":"mins"}`:`${t} ${s}`}let t=Math.floor(e/86400),n=Math.round(e%86400/3600),s=1===t?"day":"days";return n>0?`${t} ${s} ${n} ${1===n?"hr":"hrs"}`:`${t} ${s}`}},3079:(e,t,n)=>{"use strict";n.d(t,{G6:()=>r}),n(9499).FJ.LONG;var s,r=((s={}).MILP="MILP",s.LP="LP",s)},3246:(e,t,n)=>{"use strict";n.d(t,{fl:()=>o,jj:()=>i,lY:()=>r});var s,r=((s=r||{}).COMPUTE_SGM_USING_TO_VALUES="Compute SGM using TO values",s.PENALIZING_TO_BY_FACTOR="Penalizing TO by a factor of",s.ONLY_ON_INTERSECTION_OF_SOLVED_BENCHMARKS="Only on intersection of solved problems",s);let i=[{optionTitle:"Compute SGM using max values",value:"Compute SGM using TO values",optionTooltip:"Uses the time-out value for runtime or the maximum value of memory for benchmark problems that time-out or error."},{optionTitle:"Penalizing TO/OOM/ER by a factor of",value:"Penalizing TO by a factor of",optionTooltip:"Uses the time-out value for runtime or the maximum value of memory, multiplied by a factor of X, for benchmark problems that time-out or error."},{optionTitle:"Only on intersection of solved problems",value:"Only on intersection of solved problems",optionTooltip:"Filters the benchmark problems to those that are solved by all solvers before computing SGM, so that there are no error or timed-out problems to consider."}],o=5},3292:e=>{e.exports={style:{fontFamily:"'League Spartan', 'League Spartan Fallback'",fontStyle:"normal"},className:"__className_c3fd85",variable:"__variable_c3fd85"}},3365:(e,t,n)=>{"use strict";n.d(t,{K$:()=>d,KS:()=>u,XO:()=>p,ZA:()=>l,aL:()=>h,lq:()=>f}),n(3079);var s=n(7085),r=n.n(s),i=n(7368),o=n(8468),a=n(2266);let l=e=>`${e.benchmark}-${e.size}`,c=async(e,t=!0)=>{try{let n=await fetch(e),s=await n.text();return new Promise((e,n)=>{r().parse(s,{header:t,delimiter:",",skipEmptyLines:!0,complete:t=>{e(t.data)},error:e=>{n(e.message)}})})}catch(e){throw console.error("Failed to fetch CSV:",e),e}},u=async(e="/results/benchmark_results.csv")=>(await c(e)).map(e=>({benchmark:e.Benchmark,dualityGap:(0,o.BG)(e["Duality Gap"]),maxIntegralityViolation:(0,o.BG)(e["Max Integrality Violation"]),memoryUsage:Number(e["Memory Usage (MB)"]),objectiveValue:(0,o.BG)(e["Objective Value"]),runtime:Number(e["Runtime (s)"]),size:e.Size,solver:e.Solver,solverReleaseYear:parseInt(e["Solver Release Year"],10),solverVersion:e["Solver Version"],status:e.Status,terminationCondition:e["Termination Condition"],runId:e["Run ID"],timeout:Number(e.Timeout)})),f=(e=[],t)=>e.map(e=>{let n;return{...e,runtime:"ok"===e.status?e.runtime:e.timeout,memoryUsage:"ok"===e.status?e.memoryUsage:(n=t[l(e)],n?.size==="L"?63488:7168)}}),h=e=>`${e.benchmark} ${e.size}`,d=(e=[])=>{let t=Array.from(new Set(e.map(e=>e.solver)));if(0===t.length)return[];let n=t.map(t=>{let n=Array.from(new Set(e.filter(e=>e.solver===t).map(e=>e.solverVersion)));return{solver:t,version:(0,i.j)(n)}});return e.filter(e=>{let t=n.find(t=>t.solver===e.solver);return t&&e.solverVersion===t.version})},p=(e,t)=>t.realistic.includes(e.realistic?a.Q.Realistic:a.Q.Other)}
1,4649:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let s={TOGGLE_NAV:"TOGGLE_NAV",SET_NAV_EXPANDED:"SET_NAV_EXPANDED",toggleNav:()=>({type:s.TOGGLE_NAV}),setNavExpanded:e=>({type:s.SET_NAV_EXPANDED,payload:e})},r=s},4802:(e,t,n)=>{"use strict";var s=n(4232),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=s.useSyncExternalStore,o=s.useRef,a=s.useEffect,l=s.useMemo,c=s.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,s,u){var f=o(null);if(null===f.current){var h={hasValue:!1,value:null};f.current=h}else h=f.current;var d=i(e,(f=l(function(){function e(e){if(!a){if(a=!0,i=e,e=s(e),void 0!==u&&h.hasValue){var t=h.value;if(u(t,e))return o=t}return o=e}if(t=o,r(i,e))return t;var n=s(e);return void 0!==u&&u(t,n)?(i=e,t):(i=e,o=n)}var i,o,a=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,s,u]))[0],f[1]);return a(function(){h.hasValue=!0,h.value=d},[d]),c(d),d}},4910:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_302ea7",variable:"__variable_302ea7"}},7085:function(e,t){var n,s;void 0===(s="function"==typeof(n=function e(){var t="u">typeof self?self:"u">typeof window?window:void 0!==t?t:{},n=!t.document&&!!t.postMessage,s=t.IS_PAPA_WORKER||!1,r={},i=0,o={};function a(e){return 65279===e.charCodeAt(0)?e.slice(1):e}function l(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var t=v(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new d(t),(this._handle.streamer=this)._config=t}).call(this,e),this.parseChunk=function(e,n){var r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<r){let t=this._config.newline;t||(i=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,i)),e=[...e.split(t).slice(r)].join(t)}this.isFirstChunk&&w(this._config.beforeFirstChunk)&&void 0!==(i=this._config.beforeFirstChunk(e))&&(e=i),this.isFirstChunk=!1,this._halted=!1;var r=this._partialLine+e,i=(this._partialLine="",this._handle.parse(r,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=i.meta.cursor,this._finished||(this._partialLine=r.substring(e-this._baseIndex),this._baseIndex=e),i&&i.data&&(this._rowCount+=i.data.length),r=this._finished||this._config.preview&&this._rowCount>=this._config.preview,s)t.postMessage({results:i,workerId:o.WORKER_ID,finished:r});else if(w(this._config.chunk)&&!n){if(this._config.chunk(i,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=i=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(i.data),this._completeResults.errors=this._completeResults.errors.concat(i.errors),this._completeResults.meta=i.meta),this._completed||!r||!w(this._config.complete)||i&&i.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||i&&i.meta.paused||this._nextChunk(),i}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):s&&this._config.error&&t.postMessage({workerId:o.WORKER_ID,error:e,finished:!1})}}function c(e){var t;(e=e||{}).chunkSize||(e.chunkSize=o.RemoteChunkSize),l.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=k(this._chunkLoaded,this),t.onerror=k(this._chunkError,this)),t.ontimeout=k(this._chunkTimeout,this),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadTimeout&&!n&&(t.timeout=this._config.downloadTimeout),this._config.downloadRequestHeaders){var e,s,r=this._config.downloadRequestHeaders;for(s in r)t.setRequestHeader(s,r[s])}this._config.chunkSize&&(e=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+e));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){let e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null!==(e=(e=t).getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))},this._chunkTimeout=function(){this._chunkError("Request timed out after "+this._config.downloadTimeout+"ms")}}function u(e){(e=e||{}).chunkSize||(e.chunkSize=o.LocalChunkSize),l.call(this,e);var t,n,s="u">typeof FileReader;
vendor: 11,163 bytes, line 1
1this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((t=new FileReader).onload=k(this._chunkLoaded,this),t.onerror=k(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,r=(this._config.chunkSize&&(r=Math.min(this._start+this._config.chunkSize,this._input.size),e=n.call(e,this._start,r)),t.readAsText(e,this._config.encoding));s||this._chunkLoaded({target:{result:r}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function f(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,n;if(!this._finished)return t=(e=this._config.chunkSize)?(n=t.substring(0,e),t.substring(e)):(n=t,""),this._finished=!t,this.parseChunk(n)}}function h(e){l.call(this,e=e||{});var t=[],n=!0,s=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){s&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=k(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=k(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=k(function(){this._streamCleanUp(),s=!0,this._streamData("")},this),this._streamCleanUp=k(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function d(e){var t,n,s,r,i=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,a=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,l=this,c=0,u=0,f=!1,h=!1,d=[],g={data:[],errors:[],meta:{}};function y(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function b(){if(g&&s&&(S("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+o.DefaultDelimiter+"'"),s=!1),e.skipEmptyLines&&(g.data=g.data.filter(function(e){return!y(e)})),k()){if(g)if(Array.isArray(g.data[0])){for(var t,n=0;k()&&n<g.data.length;n++)g.data[n].forEach(r);g.data.splice(0,1)}else g.data.forEach(r);function r(e){d.push(e)}}function l(t,n){for(var s=e.header?{}:[],r=0;r<t.length;r++){var o=r,l=t[r],l=((t,n)=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping))?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&((e=>{if(i.test(e)&&-0x20000000000000<(e=parseFloat(e))&&e<0x20000000000000)return 1})(n)?parseFloat(n):a.test(n)?new Date(n):""===n?null:n):n)(o=e.header?r>=d.length?"__parsed_extra":d[r]:o,l=e.transform?e.transform(l,o):l);"__parsed_extra"===o?(s[o]=s[o]||[],s[o].push(l)):s[o]=l}return e.header&&(r>d.length?S("FieldMismatch","TooManyFields","Too many fields: expected "+d.length+" fields but parsed "+r,u+n):r<d.length&&S("FieldMismatch","TooFewFields","Too few fields: expected "+d.length+" fields but parsed "+r,u+n)),s}g&&(e.header||e.dynamicTyping||e.transform)&&(t=1,!g.data.length||Array.isArray(g.data[0])?(g.data=g.data.map(l),t=g.data.length):g.data=l(g.data,0),e.header&&g.meta&&(g.meta.fields=d),u+=t)}function k(){return e.header&&0===d.length}function S(e,t,n,s){e={type:e,code:t,message:n},void 0!==s&&(e.row=s),g.errors.push(e)}w(e.step)&&(r=e.step,e.step=function(t){g=t,k()?b():(b(),0!==g.data.length&&(c+=t.data.length,e.preview&&c>e.preview?n.abort():(g.data=g.data[0],r(g,l))))}),this.parse=function(r,i,a){var l=e.quoteChar||'"',l=(e.newline||(e.newline=this.guessLineEndings(r,l)),s=!1,e.delimiter?w(e.delimiter)&&(e.delimiter=e.delimiter(r),g.meta.delimiter=e.delimiter):((l=((t,n,s,r,i)=>{var a,l,c,u;i=i||[","," ","|",";",o.RECORD_SEP,o.UNIT_SEP];for(var f=0;f<i.length;f++){for(var h,d=i[f],p=0,g=0,b=0,v=(c=void 0,new m({comments:r,delimiter:d,newline:n,preview:10}).parse(t)),k=0;k<v.data.length;k++)s&&y(v.data[k])?b++:(g+=h=v.data[k].length,void 0===c?c=h:0<h&&(p+=Math.abs(h-c),c=h));0<v.data.length&&(g/=v.data.length-b),1.99<g&&(void 0===l||p<l||p===l&&u<g)&&(l=p,a=d,u=g)}return{successful:!!(e.delimiter=a),bestDelimiter:a}})(r,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=l.bestDelimiter:(s=!0,e.delimiter=o.DefaultDelimiter),g.meta.delimiter=e.delimiter),v(e));return l.header=k(),e.preview&&e.header&&l.preview++,t=r,g=(n=new m(l)).parse(t,i,a),b(),f?{meta:{paused:!0}}:g||{meta:{paused:!1}}},this.paused=function(){return f},this.pause=function(){f=!0,n.abort(),t=w(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){l.streamer._halted?(f=!1,l.streamer.parseChunk(t,!0)):setTimeout(l.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,n.abort(),g.meta.aborted=!0,w(e.complete)&&e.complete(g),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576);var t=RegExp(p(t)+"([^]*?)"+p(t),"gm"),n=(e=e.replace(t,"")).split("\r"),t=e.split("\n"),e=1<t.length&&t[0].length<n[0].length;if(1===n.length||e)return"\n";for(var s=0,r=0;r<n.length;r++)"\n"===n[r][0]&&s++;return s>=n.length/2?"\r\n":"\r"}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(e){var t=(e=e||{}).delimiter,n=e.newline,s=e.comments,r=e.step,i=e.preview,l=e.fastMode,c=null,u=!1,f=null==e.quoteChar?'"':e.quoteChar,h=f;if(void 0!==e.escapeChar&&(h=e.escapeChar),("string"!=typeof t||-1<o.BAD_DELIMITERS.indexOf(t))&&(t=","),s===t)throw Error("Comment character same as delimiter");!0===s?s="#":("string"!=typeof s||-1<o.BAD_DELIMITERS.indexOf(s))&&(s=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var d=0,m=!1;this.parse=function(o,g,y){if("string"!=typeof o)throw Error("Input must be a string");var b=o.length,v=t.length,k=n.length,S=s.length,E=w(r),_=[],O=[],A=[],T=d=0;if(!o)return B();if(l||!1!==l&&-1===o.indexOf(f)){for(var x=o.split(n),N=0;N<x.length;N++){if(A=x[N],d+=A.length,N!==x.length-1)d+=n.length;else if(y)break;if(!s||A.substring(0,S)!==s){if(E){if(_=[],j(A.split(t)),F(),m)return B()}else j(A.split(t));if(i&&i<=N)return _=_.slice(0,i),B(!0)}}return B()}for(var L=o.indexOf(t,d),I=o.indexOf(n,d),C=RegExp(p(h)+p(f),"g"),R=o.indexOf(f,d);;)if(o[d]===f)for(R=d,d++;;){if(-1===(R=o.indexOf(f,R+1)))return y||O.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:_.length,index:d}),D();if(R===b-1)return D(o.substring(d,R).replace(C,f));if(f===h&&o[R+1]===h)R++;else if(f===h||0===R||o[R-1]!==h){-1!==L&&L<R+1&&(L=o.indexOf(t,R+1));var $=M(-1===(I=-1!==I&&I<R+1?o.indexOf(n,R+1):I)?L:Math.min(L,I));if(o.substr(R+1+$,v)===t){A.push(o.substring(d,R).replace(C,f)),o[d=R+1+$+v]!==f&&(R=o.indexOf(f,d)),L=o.indexOf(t,d),I=o.indexOf(n,d);break}if($=M(I),o.substring(R+1+$,R+1+$+k)===n){if(A.push(o.substring(d,R).replace(C,f)),P(R+1+$+k),L=o.indexOf(t,d),R=o.indexOf(f,d),E&&(F(),m))return B();if(i&&_.length>=i)return B(!0);break}O.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:_.length,index:d}),R++}}else if(s&&0===A.length&&o.substring(d,d+S)===s){if(-1===I)return B();d=I+k,I=o.indexOf(n,d),L=o.indexOf(t,d)}else if(-1!==L&&(L<I||-1===I))A.push(o.substring(d,L)),d=L+v,L=o.indexOf(t,d);else{if(-1===I)break;if(A.push(o.substring(d,I)),P(I+k),E&&(F(),m))return B();if(i&&_.length>=i)return B(!0)}return D();function j(e){_.push(e),T=d}function M(e){return -1!==e&&(e=o.substring(R+1,e))&&""===e.trim()?e.length:0}function D(e){return y||(void 0===e&&(e=o.substring(d)),A.push(e),d=b,j(A),E&&F()),B()}function P(e){d=e,j(A),A=[],I=o.indexOf(n,d)}function B(s){if(e.header&&!g&&_.length&&!u){var r=_[0],i=Object.create(null),o=new Set(r);let t=!1;for(let n=0;n<r.length;n++){let s=a(r[n]);if(i[s=w(e.transformHeader)?e.transformHeader(s,n):s]){let e,a=i[s];for(;e=s+"_"+a,a++,o.has(e););o.add(e),r[n]=e,i[s]++,t=!0,(c=null===c?{}:c)[e]=s}else i[s]=1,r[n]=s;o.add(s)}t&&console.warn("Duplicate headers found and renamed."),u=!0}return{data:_,errors:O,meta:{delimiter:t,linebreak:n,aborted:m,truncated:!!s,cursor:T+(g||0),renamedHeaders:c}}}function F(){r(B()),_=[],O=[]}},this.abort=function(){m=!0},this.getCharIndex=function(){return d}}function g(e){var t=e.data,n=r[t.workerId],s=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var i={abort:function(){s=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:b,resume:b};if(w(n.userStep)){for(var o=0;o<t.results.data.length&&(n.userStep({data:t.results.data[o],errors:t.results.errors,meta:t.results.meta},i),!s);o++);delete t.results}else w(n.userChunk)&&(n.userChunk(t.results,i,t.file),delete t.results)}t.finished&&!s&&y(t.workerId,t.results)}function y(e,t){var n=r[e];w(n.userComplete)&&n.userComplete(t),n.terminate(),delete r[e]}function b(){throw Error("Not implemented.")}function v(e){if("object"!=typeof e||null===e)return e;var t,n=Array.isArray(e)?[]:{};for(t in e)n[t]=v(e[t]);return n}function k(e,t){return function(){e.apply(t,arguments)}}function w(e){return"function"==typeof e}return o.parse=function(n,s){var l,d,p,m=(s=s||{}).dynamicTyping||!1;if(w(m)&&(s.dynamicTypingFunction=m,m={}),s.dynamicTyping=m,s.transform=!!w(s.transform)&&s.transform,void 0!==s.downloadTimeout){var m=parseInt(s.downloadTimeout);if(isNaN(m))throw Error("Config downloadTimeout value ("+s.downloadTimeout+") not parsable by parseInt(val).");s.downloadTimeout=m}if(!s.worker||!o.WORKERS_SUPPORTED)return m=null,o.NODE_STREAM_INPUT,"string"==typeof n?(n=a(n),m=new(s.download?c:f)(s)):!0===n.readable&&w(n.read)&&w(n.on)?m=new h(s):(t.File&&n instanceof File||n instanceof Object)&&(m=new u(s)),m.stream(n);(m=!!o.WORKERS_SUPPORTED&&(d=t.URL||t.webkitURL||null,p=e.toString(),l=o.BLOB_URL||(o.BLOB_URL=d.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",p,")();"],{type:"text/javascript"}))),(l=new t.Worker(l)).onmessage=g,l.id=i++,r[l.id]=l)).userStep=s.step,m.userChunk=s.chunk,m.userComplete=s.complete,m.userError=s.error,s.step=w(s.step),s.chunk=w(s.chunk),s.complete=w(s.complete),s.error=w(s.error),delete s.worker,m.postMessage({input:n,config:s,workerId:m.id})},o.unparse=function(e,t){var n=!1,s=!0,r=",",i="\r\n",a='"',l=a+a,c=!1,u=null,f=!1,h=((()=>
1{if("object"==typeof t){if("string"!=typeof t.delimiter||o.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(r=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(c=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(l=(a=t.quoteChar)+a),"boolean"==typeof t.header&&(s=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+a),t.escapeFormulae instanceof RegExp?f=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(f=/^[=+\-@\t\r].*$/)}})(),RegExp(p(a),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return d(null,e,c);if("object"==typeof e[0])return d(u||Object.keys(e[0]),e,c)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),d(e.fields||[],e.data||[],c);throw Error("Unable to serialize unrecognized input");function d(e,t,n){var o="",a=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),l=!Array.isArray(t[0]);if(a&&s){for(var c=0;c<e.length;c++)0<c&&(o+=r),o+=m(e[c],c);0<t.length&&(o+=i)}for(var u=0;u<t.length;u++){var f=(a?e:t[u]).length,h=!1,d=a?0===Object.keys(t[u]).length:0===t[u].length;if(n&&!a&&(h="greedy"===n?""===t[u].join("").trim():1===t[u].length&&0===t[u][0].length),"greedy"===n&&a){for(var p=[],g=0;g<f;g++){var y=l?e[g]:g;p.push(t[u][y])}h=""===p.join("").trim()}if(!h){for(var b=0;b<f;b++){0<b&&!d&&(o+=r);var v=a&&l?e[b]:b;o+=m(t[u][v],b)}u<t.length-1&&(!n||0<f&&!d)&&(o+=i)}}return o}function m(e,t){var s,i,c;return null==e?"":e.constructor===Date?isNaN(e.getTime())?"":e.toISOString():(c=!1,f&&"string"==typeof e&&f.test(e)&&(e="'"+e,c=!0),i=(s=e.toString()).replace(h,l),(c=c||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||((e,t)=>{for(var n=0;n<t.length;n++)if(-1<e.indexOf(t[n]))return!0;return!1})(i,o.BAD_DELIMITERS)||-1<i.indexOf(r)||-1<s.indexOf(a)||" "===i.charAt(0)||" "===i.charAt(i.length-1))?a+i+a:i)}},o.RECORD_SEP="\x1e",o.UNIT_SEP="\x1f",o.BYTE_ORDER_MARK="\uFEFF",o.BAD_DELIMITERS=["\r","\n",'"',o.BYTE_ORDER_MARK],o.WORKERS_SUPPORTED=!n&&!!t.Worker,o.NODE_STREAM_INPUT=1,o.LocalChunkSize=0xa00000,o.RemoteChunkSize=5242880,o.DefaultDelimiter=",",o.Parser=m,o.ParserHandle=d,o.NetworkStreamer=c,o.FileStreamer=u,o.StringStreamer=f,o.ReadableStreamStreamer=h,s&&(t.onmessage=function(e){e=e.data,void 0===o.WORKER_ID&&e&&(o.WORKER_ID=e.workerId),"string"==typeof e.input?t.postMessage({workerId:o.WORKER_ID,results:o.parse(e.input,e.config),finished:!0}):(t.File&&e.input instanceof File||e.input instanceof Object)&&(e=o.parse(e.input,e.config))&&t.postMessage({workerId:o.WORKER_ID,results:e,finished:!0})}),(c.prototype=Object.create(l.prototype)).constructor=c,(u.prototype=Object.create(l.prototype)).constructor=u,(f.prototype=Object.create(f.prototype)).constructor=f,(h.prototype=Object.create(l.prototype)).constructor=h,o})?n.apply(t,[]):n)||(e.exports=s)},7211:()=>{},7282:(e,t,n)=>{"use strict";e.exports=n(4802)},7328:(e,t,n)=>{e.exports=n(8022)},7368:(e,t,n)=>{"use strict";n.d(t,{j:()=>c});let s=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,r=e=>{if("string"!=typeof e)throw TypeError("Invalid argument expected string");let t=e.match(s);
1if(!t)throw Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},i=e=>"*"===e||"x"===e||"X"===e,o=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},a=(e,t)=>{let n,s;if(i(e)||i(t))return 0;let[r,a]=typeof(n=o(e))!=typeof(s=o(t))?[String(n),String(s)]:[n,s];return r>a?1:r<a?-1:0},l=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){let s=a(e[n]||"0",t[n]||"0");if(0!==s)return s}return 0},c=e=>{e||console.error("versions",e);let t=e.map(e=>({normalized:e.replace(/\.dev(\d+)/,"-dev.$1"),original:e})).sort((e,t)=>{var n,s;let i,o,a,c,u;return n=e.normalized,s=t.normalized,i=r(n),o=r(s),a=i.pop(),c=o.pop(),0!==(u=l(i,o))?u:a&&c?l(a.split("."),c.split(".")):a||c?a?-1:1:0});return t.at(-1)?.original??""}},8468:(e,t,n)=>{"use strict";n.d(t,{BG:()=>r,Sm:()=>a,Wf:()=>s,vw:()=>o,zJ:()=>i});let s=(e,t=0,n=0)=>{let s=Math.pow(10,t),r=Math.round(e*s)/s;return isNaN(r)?n:Number(r.toFixed(t))},r=e=>{if(""===e)return null;let t=Number(e);return isNaN(t)?null:t},i=({value:e,fallback:t="N/A",maximumFractionDigits:n=1})=>{let s=Number(e);return isNaN(s)?t:s.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:n})},o=(e,t="N/A")=>{let n=Number(e);return isNaN(n)?t:n.toExponential(3)},a=(e,t="N/A")=>{let n=Number(e);return isNaN(n)?t:Math.round(n).toLocaleString("en-US")}},8542:(e,t,n)=>{var s,r,i=1/0,o=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
17f]/g,l="\\ud800-\\udfff",c="\\u0300-\\u036f\\ufe20-\\ufe23",u="\\u20d0-\\u20f0",f="\\u2700-\\u27bf",h="a-z\\xdf-\\xf6\\xf8-\\xff",d="A-Z\\xc0-\\xd6\\xd8-\\xde",p="\\ufe0e\\ufe0f",m="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",g="['â]",y="["+m+"]",b="["+c+u+"]",v="["+h+"]",k="[^"+l+m+"\\d+"+f+h+d+"]",w="\\ud83c[\\udffb-\\udfff]",S="[^"+l+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",O="["+d+"]",A="\\u200d",T="(?:"+v+"|"+k+")",x="(?:"+O+"|"+k+")",N="(?:"+g+"(?:d|ll|m|re|s|t|ve))?",L="(?:"+g+"(?:D|LL|M|RE|S|T|VE))?",I="(?:"+b+"|"+w+")?",C="["+p+"]?",R="(?:"+A+"(?:"+[S,E,_].join("|")+")"+C+I+")*",$=C+I+R,j="(?:"+["["+f+"]",E,_].join("|")+")"+$,M="(?:"+[S+b+"?",b,E,_,"["+l+"]"].join("|")+")",D=RegExp(g,"g"),P=RegExp(b,"g"),B=RegExp(w+"(?="+w+")|"+M+$,"g"),F=RegExp([O+"?"+v+"+"+N+"(?="+[y,O,"$"].join("|")+")",x+"+"+L+"(?="+[y,O+T,"$"].join("|")+")",O+"?"+T+"+"+N,O+"+"+L,"\\d+",j].join("|"),"g"),K=RegExp("["+A+l+c+u+p+"]"),U=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,q="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,G="object"==typeof self&&self&&self.Object===Object&&self,V=q||G||Function("return this")(),z=(s={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"ss"},function(e){return null==s?void 0:s[e]}),W=Object.prototype.toString,H=V.Symbol,J=H?H.prototype:void 0,Y=J?J.toString:void 0;function X(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||!!e&&"object"==typeof e&&"[object Symbol]"==W.call(e)}(e))return Y?Y.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}(e)}var Q=(r=function(e,t,n){return t=t.toLowerCase(),e+(n?Z(X(t).toLowerCase()):t)},function(e){for(var t,n=function(e,t){if(e=X(e),void 0===t){var n;return(n=e,U.test(n))?e.match(F)||[]:e.match(o)||[]}return e.match(t)||[]}(((t=X(t=e))&&t.replace(a,z).replace(P,"")).replace(D,"")),s="",i=-1,l=n?n.length:0;++i<l;)s=r(s,n[i],i);return s}),Z=function(e){var t,n,s,r=(t=e=X(e),K.test(t))?function(e){return K.test(e)?e.match(B)||[]:e.split("")}(e):void 0,i=r?r[0]:e.charAt(0),o=r?(s=r.length,function(e,t,n){var s=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++s<r;)i[s]=e[s+t];return i}(r,1,n=void 0===n?s:n)).join(""):e.slice(1);return i.toUpperCase()+o};e.exports=Q},8774:e=>{e.exports={style:{fontFamily:"'Lato', 'Lato Fallback'"},className:"__className_b0c740",variable:"__variable_b0c740"}},9099:(e,t,n)=>{e.exports=n(9603)}
1,9499:(e,t,n)=>{"use strict";n.d(t,{A0:()=>i,FJ:()=>s,lg:()=>r});let s={SHORT:3600,LONG:86400},r="N/A",i=5},9725:(e,t,n)=>{"use strict";let s;n.r(t),n.d(t,{default:()=>sm});var r,i,o,a,l,c,u,f,h,d={};n.r(d),n.d(d,{BOM:()=>nG,DOCUMENT:()=>nV,FLOW_END:()=>nz,SCALAR:()=>nW,createScalarToken:()=>nR,isCollection:()=>nH,isScalar:()=>nJ,prettyToken:()=>nY,resolveAsScalar:()=>nC,setScalarValue:()=>n$,stringify:()=>nD,tokenType:()=>nX,visit:()=>nq});var p={};n.r(p),n.d(p,{Alias:()=>eQ,CST:()=>d,Composer:()=>nI,Document:()=>no,Lexer:()=>n8,LineCounter:()=>n6,Pair:()=>tb,Parser:()=>ss,Scalar:()=>e0,Schema:()=>ni,YAMLError:()=>nl,YAMLMap:()=>tS,YAMLParseError:()=>nc,YAMLSeq:()=>t_,YAMLWarning:()=>nu,isAlias:()=>e_,isCollection:()=>eL,isDocument:()=>eO,isMap:()=>eA,isNode:()=>eI,isPair:()=>eT,isScalar:()=>ex,isSeq:()=>eN,parse:()=>sa,parseAllDocuments:()=>si,parseDocument:()=>so,stringify:()=>sl,visit:()=>eM,visitAsync:()=>eP});var m=n(7876);n(7211);var g=n(4232),y=n(7328),b=n.n(y);n(8477);var v=n(1777),k=n(3292),w=n.n(k),S=n(8774),E=n.n(S),_=n(4910),O=n.n(_),A=n(1858),T=n.n(A);let x=`${E().variable} ${w().variable} ${T().variable} ${O().variable}`;function N(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var L="function"==typeof Symbol&&Symbol.observable||"@@observable",I=()=>Math.random().toString(36).substring(7).split("").join("."),C={INIT:`@@redux/INIT${I()}`,REPLACE:`@@redux/REPLACE${I()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${I()}`};function R(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}let $="u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0!==t.length)return"object"==typeof t[0]?R:R(...t)};"u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var j=n(9099),M=function(){return(M=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},D=function(e,t,n,s){return new(n||(n=Promise))(function(r,i){function o(e){try{l(s.next(e))}catch(e){i(e)}}function a(e){try{l(s.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((s=s.apply(e,t||[])).next())})},P=function(e,t){var n,s,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){var l=[i,a];if(n)throw TypeError("Generator is already executing.");for(;o;)try{if(n=1,s&&(r=2&l[0]?s.return:l[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,l[1])).done)return r;switch(s=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,s=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){o.label=l[1];break}if(6===l[0]&&o.label<r[1]){o.label=r[1],r=l;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(l);break}r[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(e){l=[6,e],s=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}},B=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&0>t.indexOf(s)&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,s=Object.getOwnPropertySymbols(e);r<s.length;r++)0>t.indexOf(s[r])&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(n[s[r]]=e[s[r]]);return n},F=function(){return"u"<typeof window},K=function(e,t){var n=(void 0===t?{}:t).deserializeState;return n?n(e):e},U=function(e,t){var n=(void 0===t?{}:t).serializeState;return n?n(e):e},q=function(e){var t,n=e.makeStore,s=e.context,r=void 0===s?{}:s,i=function(){return n(r)};if(F()){var o=(null==r?void 0:r.req)||(null==(t=null==r?void 0:r.ctx)?void 0:t.req);return o?(o.__nextReduxWrapperStore||(o.__nextReduxWrapperStore=i()),o.__nextReduxWrapperStore):i()}return h||(h=i()),h},G=n(4649);let{TOGGLE_NAV:V}=G.A,z={isNavExpanded:!0};var W=n(2367),H=n(3246);let{TOGGLE_FILTER:J,SET_FILTER:Y,SET_SGM_MODE:X,SET_X_FACTOR:Q,RESET_FILTERS:Z}=W.A,ee={benchmarks:[],application:[],modellingFramework:[],problemSize:[],sectoralFocus:[],sectors:[],solvers:[],statuses:[],problemClass:[],sgmMode:H.lY.COMPUTE_SGM_USING_TO_VALUES,xFactor:5,realistic:[],isReady:!1};var et=n(2306),en=n(3365),es=n(2266),er=n(2884);let{SET_BENCHMARK_RESULTS:ei,SET_BENCHMARK_LATEST_RESULTS:eo,SET_BENCHMARK_HIPO_RESULTS:ea,SET_META_DATA:el,SET_RAW_BENCHMARK_RESULTS:ec,SET_RAW_META_DATA:eu,SET_AVAILABLE_FILTER_DATA:ef,SET_FULL_META_DATA:eh}=et.A,ed={availableBenchmarks:[],availableProblems:[],availableApplications:[],availableModels:[],availableModellingFrameworks:[],availableProblemSizes:[],availableSectoralFocus:[],availableSectors:[],availableSolvers:[],availableStatuses:[],availableProblemClasses:[],benchmarkLatestResults:[],benchmarkHipoResults:[],benchmarkResults:[],fullMetaData:{},metaData:{},rawBenchmarkResults:[],rawMetaData:{},realisticOptions:[es.Q.Realistic,es.Q.Other],solvers:[],solversData:[],years:[]},ep=function e(t,n,s){if("function"!=typeof t)throw Error(N(2));if("function"==typeof n&&"function"==typeof s||"function"==typeof s&&"function"==typeof arguments[3])throw Error(N(0));if("function"==typeof n&&void 0===s&&(s=n,n=void 0),void 0!==s){if("function"!=typeof s)throw Error(N(1));return s(e)(t,n)}let r=t,i=n,o=new Map,a=o,l=0,c=!1;function u(){a===o&&(a=new Map,o.forEach((e,t)=>{a.set(t,e)}))}function f(){if(c)throw Error(N(3));return i}function h(e){if("function"!=typeof e)throw Error(N(4));if(c)throw Error(N(5));let t=!0;u();let n=l++;return a.set(n,e),function(){if(t){if(c)throw Error(N(6));t=!1,u(),a.delete(n),o=null}}}function d(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}
1(e))throw Error(N(7));if(void 0===e.type)throw Error(N(8));if("string"!=typeof e.type)throw Error(N(17));if(c)throw Error(N(9));try{c=!0,i=r(i,e)}finally{c=!1}return(o=a).forEach(e=>{e()}),e}return d({type:C.INIT}),{dispatch:d,subscribe:h,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw Error(N(10));r=e,d({type:C.REPLACE})},[L]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(N(11));function t(){e.next&&e.next(f())}return t(),{unsubscribe:h(t)}},[L](){return this}}}}}(function(e){let t,n=Object.keys(e),s={};for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof e[r]&&(s[r]=e[r])}let r=Object.keys(s);try{Object.keys(s).forEach(e=>{let t=s[e];if(void 0===t(void 0,{type:C.INIT}))throw Error(N(12));if(void 0===t(void 0,{type:C.PROBE_UNKNOWN_ACTION()}))throw Error(N(13))})}catch(e){t=e}return function(e={},n){if(t)throw t;let i=!1,o={};for(let t=0;t<r.length;t++){let a=r[t],l=s[a],c=e[a],u=l(c,n);if(void 0===u)throw n&&n.type,Error(N(14));o[a]=u,i=i||u!==c}return(i=i||r.length!==Object.keys(e).length)?o:e}}({theme:(e=z,t)=>{switch(t.type){case V:return{...e,isNavExpanded:!e.isNavExpanded};case G.A.SET_NAV_EXPANDED:return{...e,isNavExpanded:t.payload};default:return e}},filters:(e=ee,t)=>{switch(t.type){case Y:case X:case X:case Q:return{...e,...t.payload};case J:let{category:n,value:s,only:r}=t.payload;if(r)return{...e,[n]:[s]};return{...e,[n]:e[n].includes(s)?e[n].filter(e=>e!==s):[...e[n],s]};case Z:return ee;default:return e}},results:(e=ed,t)=>{switch(t.type){case ei:return{...e,benchmarkResults:(0,en.lq)(t.payload.results,e.fullMetaData)};case eo:return{...e,benchmarkLatestResults:(0,en.lq)(t.payload.results,e.fullMetaData)};case ea:return{...e,benchmarkHipoResults:(0,en.lq)(t.payload.results,e.fullMetaData)};case ec:let n=Array.from(new Set(t.payload.results.map(e=>e.solver))).sort((e,t)=>e.localeCompare(t)),s=n.map(e=>{let n=Array.from(new Set(t.payload.results.filter(t=>e===t.solver).map(e=>e.solverVersion).reverse()));return{solver:e,versions:n}});return{...e,rawBenchmarkResults:t.payload.results,availableProblems:Array.from(new Set(t.payload.results.map(e=>(0,en.aL)(e)))),availableBenchmarks:Array.from(new Set(t.payload.results.map(e=>e.benchmark))),availableSolvers:n,solversData:s,availableStatuses:Array.from(new Set(t.payload.results.map(e=>e.status)))};case el:return{...e,metaData:t.payload.metaData};case eu:return{...e,rawMetaData:t.payload.metaData};case ef:let{availableSectoralFocus:r,availableSectors:i,availableProblemClasses:o,availableApplications:a,availableModels:l,availableModellingFrameworks:c,availableProblemSizes:u}=t.payload.availableFilterData;return{...e,availableSectoralFocus:(0,er.r7)(r),availableSectors:(0,er.r7)(i),availableProblemClasses:(0,er.r7)(o),availableApplications:(0,er.r7)(a),availableModels:(0,er.r7)(l),availableModellingFrameworks:(0,er.r7)(c),availableProblemSizes:(0,er.r7)(u,"desc")};case eh:return{...e,fullMetaData:t.payload.metaData};default:return e}}}),{},$(function(...e){return t=>(n,s)=>{let r=t(n,s),i=()=>{throw Error(N(15))},o={getState:r.getState,dispatch:(e,...t)=>i(e,...t)};return i=R(...e.map(e=>e(o)))(r.dispatch),{...r,dispatch:i}}}(({dispatch:e,getState:t})=>n=>s=>"function"==typeof s?s(e,t,void 0):n(s)))),em=(r=()=>ep,void 0===i&&(i={}),o=function(e){var t=e.callback,n=e.context,s=e.addStoreToContext,o=void 0!==s&&s;return D(void 0,void 0,void 0,function(){var e,s,a,l,c;return P(this,function(u){switch(u.label){case 0:if(e=q({context:n,makeStore:r}),i.debug&&console.log("1. getProps created store with state",e.getState()),o&&(n.ctx?n.ctx.store=e:n.store=e),!(l=s=t&&t(e)))return[3,2];return[4,s(n)];case 1:l=u.sent(),u.label=2;case 2:return a=l||{},i.debug&&console.log("3. getProps after dispatches has store state",e.getState()),c=e.getState(),[2,{initialProps:a,initialState:F()?U(c,i):c}]}})})},a=function(e){return function(t){return D(void 0,void 0,void 0,function(){var n,s,r;return P(this,function(i){switch(i.label){case 0:return[4,o({callback:e,context:t})];case 1:return s=(n=i.sent()).initialProps,r=n.initialState,[2,M(M({},s),{props:M(M({},s.props),{initialState:r})})]}})})}},l=function(e,t){t&&e.dispatch({type:"__NEXT_REDUX_WRAPPER_HYDRATE__",payload:K(t,i)})},c=function(e,t,n,s,r){var i;n?(l(e,t),l(e,n)):(s||r||t)&&l(e,null!=(i=null!=s?s:r)?i:t)},u=function(e,t,n,s,r){var i=(0,j.useRouter)().events,o=(0,g.useRef)(!0);(0,g.useEffect)(function(){var e=function(){o.current=!0};return null==i||i.on("routeChangeStart",e),function(){null==i||i.off("routeChangeStart",e)}},[i]),(0,g.useMemo)(function(){o.current&&(c(e,t,n,s,r),o.current=!1)},[e,t,n,s,r])},{getServerSideProps:function(e){return function(t){return D(void 0,void 0,void 0,function(){return P(this,function(n){switch(n.label){case 0:return[4,a(e)(t)];case 1:return[2,n.sent()]}})})}},getStaticProps:a,getInitialAppProps:function(e){return function(t){return D(void 0,void 0,void 0,function(){var n,s,r;return P(this,function(i){switch(i.label){case 0:return[4,o({callback:e,context:t,addStoreToContext:!0})];case 1:return s=(n=i.sent()).initialProps,r=n.initialState,[2,M(M({},s),{initialState:r})]}})})}},getInitialPageProps:function(e){return function(t){return D(void 0,void 0,void 0,function(){return P(this,function(n){switch(n.label){case 0:if("getState"in t)return[2,e&&e(t)];return[4,o({callback:e,context:t,addStoreToContext:!0})];case 1:return[2,n.sent()]}})})}},withRedux:function(e){console.warn("/!\\ You are using legacy implementation. Please update your co
1de: use createWrapper() and wrapper.useWrappedStore().");var t=function(n){var s=f(n,t.displayName),r=s.store,i=s.props;return g.createElement(v.Kq,{store:r},g.createElement(e,M({},i)))};return t.displayName="withRedux(".concat(e.displayName||e.name||"Component",")"),"getInitialProps"in e&&(t.getInitialProps=e.getInitialProps),t},useWrappedStore:f=function(e,t){void 0===t&&(t="useWrappedStore");var n,s,o,a,l,c,f=e.initialState,h=e.initialProps,d=B(e,["initialState","initialProps"]),p=(null==d?void 0:d.__N_SSG)?null==(n=null==d?void 0:d.pageProps)?void 0:n.initialState:null,m=(null==d?void 0:d.__N_SSP)?null==(s=null==d?void 0:d.pageProps)?void 0:s.initialState:null,y=p||m?null:null!=(a=null==(o=null==d?void 0:d.pageProps)?void 0:o.initialState)?a:null;i.debug&&console.log("4.",t,"created new store with",{giapState:f,gspState:p,gsspState:m,gippState:y});var b=(0,g.useMemo)(function(){return q({makeStore:r})},[]);u(b,f,p,m,y);var v=d;return h&&h.pageProps&&(v.pageProps=M(M({},h.pageProps),d.pageProps)),(null==(l=null==d?void 0:d.pageProps)?void 0:l.initialState)&&(v=M(M({},d),{pageProps:M({},d.pageProps)}),delete v.pageProps.initialState),(null==(c=null==v?void 0:v.pageProps)?void 0:c.initialProps)&&(v.pageProps=M(M({},v.pageProps),v.pageProps.initialProps),delete v.pageProps.initialProps),{store:b,props:M(M({},h),v)}}});var eg=n(68);let ey=Symbol.for("yaml.alias"),eb=Symbol.for("yaml.document"),ev=Symbol.for("yaml.map"),ek=Symbol.for("yaml.pair"),ew=Symbol.for("yaml.scalar"),eS=Symbol.for("yaml.seq"),eE=Symbol.for("yaml.node.type"),e_=e=>!!e&&"object"==typeof e&&e[eE]===ey,eO=e=>!!e&&"object"==typeof e&&e[eE]===eb,eA=e=>!!e&&"object"==typeof e&&e[eE]===ev,eT=e=>!!e&&"object"==typeof e&&e[eE]===ek,ex=e=>!!e&&"object"==typeof e&&e[eE]===ew,eN=e=>!!e&&"object"==typeof e&&e[eE]===eS;function eL(e){if(e&&"object"==typeof e)switch(e[eE]){case ev:case eS:return!0}return!1}function eI(e){if(e&&"object"==typeof e)switch(e[eE]){case ey:case ev:case ew:case eS:return!0}return!1}let eC=e=>(ex(e)||eL(e))&&!!e.anchor,eR=Symbol("break visit"),e$=Symbol("skip children"),ej=Symbol("remove node");function eM(e,t){let n=eF(t);eO(e)?eD(null,e.contents,n,Object.freeze([e]))===ej&&(e.contents=null):eD(null,e,n,Object.freeze([]))}function eD(e,t,n,s){let r=eK(e,t,n,s);if(eI(r)||eT(r))return eU(e,s,r),eD(e,r,n,s);if("symbol"!=typeof r){if(eL(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){let r=eD(e,t.items[e],n,s);if("number"==typeof r)e=r-1;else{if(r===eR)return eR;r===ej&&(t.items.splice(e,1),e-=1)}}}else if(eT(t)){s=Object.freeze(s.concat(t));let e=eD("key",t.key,n,s);if(e===eR)return eR;e===ej&&(t.key=null);let r=eD("value",t.value,n,s);if(r===eR)return eR;r===ej&&(t.value=null)}}return r}async function eP(e,t){let n=eF(t);eO(e)?await eB(null,e.contents,n,Object.freeze([e]))===ej&&(e.contents=null):await eB(null,e,n,Object.freeze([]))}async function eB(e,t,n,s){let r=await eK(e,t,n,s);if(eI(r)||eT(r))return eU(e,s,r),eB(e,r,n,s);if("symbol"!=typeof r){if(eL(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){let r=await eB(e,t.items[e],n,s);if("number"==typeof r)e=r-1;else{if(r===eR)return eR;r===ej&&(t.items.splice(e,1),e-=1)}}}else if(eT(t)){s=Object.freeze(s.concat(t));let e=await eB("key",t.key,n,s);if(e===eR)return eR;e===ej&&(t.key=null);let r=await eB("value",t.value,n,s);if(r===eR)return eR;r===ej&&(t.value=null)}}return r}function eF(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function eK(e,t,n,s){return"function"==typeof n?n(e,t,s):eA(t)?n.Map?.(e,t,s):eN(t)?n.Seq?.(e,t,s):eT(t)?n.Pair?.(e,t,s):ex(t)?n.Scalar?.(e,t,s):e_(t)?n.Alias?.(e,t,s):void 0}function eU(e,t,n){let s=t[t.length-1];if(eL(s))s.items[e]=n;else if(eT(s))"key"===e?s.key=n:s.value=n;else if(eO(s))s.contents=n;else{let e=e_(s)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}eM.BREAK=eR,eM.SKIP=e$,eM.REMOVE=ej,eP.BREAK=eR,eP.SKIP=e$,eP.REMOVE=ej;
1let eq={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},eG=e=>e.replace(/[!,[\]{}]/g,e=>eq[e]);class eV{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},eV.defaultYaml,e),this.tags=Object.assign({},eV.defaultTags,t)}clone(){let e=new eV(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new eV(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:eV.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},eV.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:eV.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},eV.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),s=n.shift();switch(s){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[e,s]=n;return this.tags[e]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let n=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,n),!1}}default:return t(0,`Unknown directive ${s}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}let[,n,s]=e.match(/^(.*!)([^!]*)$/s);s||t(`The ${e} tag has no suffix`);let r=this.tags[n];if(r)try{return r+decodeURIComponent(s)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+eG(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t,n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);if(e&&s.length>0&&eI(e.contents)){let n={};eM(e.contents,(e,t)=>{eI(t)&&t.tag&&(n[t.tag]=!0)}),t=Object.keys(n)}else t=[];for(let[r,i]of s)("!!"!==r||"tag:yaml.org,2002:"!==i)&&(!e||t.some(e=>e.startsWith(i)))&&n.push(`%TAG ${r} ${i}`);return n.join("\n")}}function ez(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function eW(e){let t=new Set;return eM(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function eH(e,t){for(let n=1;;++n){let s=`${e}${n}`;if(!t.has(s))return s}}function eJ(e,t,n,s){if(s&&"object"==typeof s)if(Array.isArray(s))for(let t=0,n=s.length;t<n;++t){let n=s[t],r=eJ(e,s,String(t),n);void 0===r?delete s[t]:r!==n&&(s[t]=r)}else if(s instanceof Map)for(let t of Array.from(s.keys())){let n=s.get(t),r=eJ(e,s,t,n);void 0===r?s.delete(t):r!==n&&s.set(t,r)}else if(s instanceof Set)for(let t of Array.from(s)){let n=eJ(e,s,t,t);void 0===n?s.delete(t):n!==t&&(s.delete(t),s.add(n))}else for(let[t,n]of Object.entries(s)){let r=eJ(e,s,t,n);void 0===r?delete s[t]:r!==n&&(s[t]=r)}return e.call(t,n,s)}function eY(e,t,n){if(Array.isArray(e))return e.map((e,t)=>eY(e,String(t),n));if(e&&"function"==typeof e.toJSON){if(!n||!eC(e))return e.toJSON(t,n);let s={aliasCount:0,count:1,res:void 0};n.anchors.set(e,s),n.onCreate=e=>{s.res=e,delete n.onCreate};let r=e.toJSON(t,n);return n.onCreate&&n.onCreate(r),r}return"bigint"!=typeof e||n?.keep?e:Number(e)}eV.defaultYaml={explicit:!1,version:"1.2"},eV.defaultTags={"!!":"tag:yaml.org,2002:"};class eX{constructor(e){Object.defineProperty(this,eE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:s,reviver:r}={}){if(!eO(e))throw TypeError("A document argument is required");let i={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},o=eY(this,"",i);if("function"==typeof s)for(let{count:e,res:t}of i.anchors.values())s(t,e);return"function"==typeof r?eJ(r,{"":o},"",o):o}}class eQ extends eX{constructor(e){super(ey),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let n,s;if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let r of(t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],eM(e,{Node:(e,t)=>{(e_(t)||eC(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n)),n)){if(r===this)break;r.anchor===this.source&&(s=r)}if(s&&t){let{anchors:e,doc:n,maxAliasCount:r}=t,i=e.get(s);if(i||(eY(s,null,t),i=e.get(s)),i?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(r>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=function e(t,n,s){if(e_(n)){let e=n.resolve(t),r=s&&e&&s.get(e);return r?r.count*r.aliasCount:0}if(eL(n)){let r=0;for(let i of n.items){let n=e(t,i,s);n>r&&(r=n)}return r}return eT(n)?Math.max(e(t,n.key,s),e(t,n.value,s)):1}(n,s,e)),i.count*i.aliasCount>r))throw ReferenceError("Excessive alias count indicates a resource exh
1austion attack")}return s}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);return t.anchors.get(n).res}toString(e,t,n){let s=`*${this.source}`;if(e){if(ez(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${s} `}return s}}let eZ=e=>!e||"function"!=typeof e&&"object"!=typeof e;class e0 extends eX{constructor(e){super(ew),this.value=e}toJSON(e,t){return t?.keep?this.value:eY(this.value,e,t)}toString(){return String(this.value)}}function e1(e,t,n){let s;if(eO(e)&&(e=e.contents),eI(e))return e;if(eT(e)){let t=n.schema[ev].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"u">typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:o,schema:a,sourceObjects:l}=n;if(r&&e&&"object"==typeof e){if(s=l.get(e))return s.anchor??(s.anchor=i(e)),new eQ(s.anchor);s={anchor:null,node:null},l.set(e,s)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let c=function(e,t,n){if(t){let e=n.filter(e=>e.tag===t),s=e.find(e=>!e.format)??e[0];if(!s)throw Error(`Tag ${t} not found`);return s}return n.find(t=>t.identify?.(e)&&!t.format)}(e,t,a.tags);if(!c){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new e0(e);return s&&(s.node=t),t}c=e instanceof Map?a[ev]:Symbol.iterator in Object(e)?a[eS]:a[ev]}o&&(o(c),delete n.onTagObj);let u=c?.createNode?c.createNode(n.schema,e,n):"function"==typeof c?.nodeClass?.from?c.nodeClass.from(n.schema,e,n):new e0(e);return t?u.tag=t:c.default||(u.tag=c.tag),s&&(s.node=u),u}function e2(e,t,n){let s=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let e=[];e[n]=s,s=e}else s=new Map([[n,s]])}return e1(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}e0.BLOCK_FOLDED="BLOCK_FOLDED",e0.BLOCK_LITERAL="BLOCK_LITERAL",e0.PLAIN="PLAIN",e0.QUOTE_DOUBLE="QUOTE_DOUBLE",e0.QUOTE_SINGLE="QUOTE_SINGLE";let e9=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class e8 extends eX{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>eI(t)||eT(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(e9(e))this.add(t);else{let[n,...s]=e,r=this.get(n,!0);if(eL(r))r.addIn(s,t);else if(void 0===r&&this.schema)this.set(n,e2(this.schema,s,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let s=this.get(t,!0);if(eL(s))return s.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...s]=e,r=this.get(n,!0);return 0===s.length?!t&&ex(r)?r.value:r:eL(r)?r.getIn(s,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!eT(t))return!1;let n=t.value;return null==n||e&&ex(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let s=this.get(t,!0);return!!eL(s)&&s.hasIn(n)}setIn(e,t){let[n,...s]=e;if(0===s.length)this.set(n,t);else{let e=this.get(n,!0);if(eL(e))e.setIn(s,t);else if(void 0===e&&this.schema)this.set(n,e2(this.schema,s,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}}let e6=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function e3(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let e7=(e,t,n)=>e.endsWith("\n")?e3(n,t):n.includes("\n")?"\n"+e3(n,t):(e.endsWith(" ")?"":" ")+n,e4="flow",e5="block",te="quoted";function tt(e,t,n="flow",{indentAtStart:s,lineWidth:r=80,minContentWidth:i=20,onFold:o,onOverflow:a}={}){let l,c,u;if(!r||r<0)return e;r<i&&(i=0);let f=Math.max(1+i,1+r-t.length);if(e.length<=f)return e;let h=[],d={},p=r-t.length;"number"==typeof s&&(s>r-Math.max(2,i)?h.push(0):p=r-s);let m=!1,g=-1,y=-1,b=-1;for(n===e5&&-1!==(g=tn(e,g,t.length))&&(p=g+f);u=e[g+=1];){if(n===te&&"\\"===u){switch(y=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}b=g}if("\n"===u)n===e5&&(g=tn(e,g,t.length)),p=g+t.length+f,l=void 0;else{if(" "===u&&c&&" "!==c&&"\n"!==c&&" "!==c){let t=e[g+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(l=g)}if(g>=p)if(l)h.push(l),p=l+f,l=void 0;else if(n===te){for(;" "===c||" "===c;)c=u,u=e[g+=1],m=!0;let t=g>b+1?g-2:y-1;if(d[t])return e;h.push(t),d[t]=!0,p=t+f,l=void 0}else m=!0}c=u}if(m&&a&&a(),0===h.length)return e;o&&o();let v=e.slice(0,h[0]);for(let s=0;s<h.length;++s){let r=h[s],i=h[s+1]||e.length;0===r?v=` 2${t}${e.slice(0,i)}`:(n===te&&d[r]&&(v+=`${e[r]}\\`),v+=` 3${t}${e.slice(r+1,i)}`)}return v}function tn(e,t,n){let s=t,r=t+1,i=e[r];for(;" "===i||" "===i;)if(t<r+n)i=e[++t];else{do i=e[++t];while(i&&"\n"!==i);s=t,i=e[r=t+1]}return s}let ts=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}
3);function tr(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:s}=t,r=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),o="",a=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(o+=n.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{o+=n.slice(a,e);let t=n.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===t.substr(0,2)?o+="\\x"+t.substr(2):o+=n.substr(e,6)}e+=5,a=e+1}break;case"n":if(s||'"'===n[e+2]||n.length<r)e+=1;else{for(o+=n.slice(a,e)+"\n\n";"\\"===n[e+2]&&"n"===n[e+3]&&'"'!==n[e+4];)o+="\n",e+=2;o+=i," "===n[e+2]&&(o+="\\"),e+=1,a=e+1}break;default:e+=1}return o=a?o+n.slice(a):n,s?o:tt(o,i,te,ts(t,!1))}function ti(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return tr(e,t);let n=t.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),s="'"+e.replace(/'/g,"''").replace(/\n+/g,`$& 4${n}`)+"'";return t.implicitKey?s:tt(s,n,e4,ts(t,!1))}function to(e,t){let n,{singleQuote:s}=t.options;if(!1===s)n=tr;else{let t=e.includes('"'),r=e.includes("'");n=t&&!r?ti:r&&!t?tr:s?ti:tr}return n(e,t)}try{s=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{s=/\n+(?!\n|$)/g}function ta({comment:e,type:t,value:n},r,i,o){let a,l,c,u,{blockQuote:f,commentString:h,lineWidth:d}=r.options;if(!f||/\n[\t ]+$/.test(n))return to(n,r);let p=r.indent||(r.forceBlockIndent||(u=n,/^(%|---|\.\.\.)/m.test(u))?" ":""),m="literal"===f||"folded"!==f&&t!==e0.BLOCK_FOLDED&&(t===e0.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;let s=t-n,r=e.length;if(r<=s)return!1;for(let t=0,n=0;t<r;++t)if("\n"===e[t]){if(t-n>s)return!0;if(r-(n=t+1)<=s)return!1}return!0}(n,d,p.length));if(!n)return m?"|\n":">\n";for(l=n.length;l>0;--l){let e=n[l-1];if("\n"!==e&&" "!==e&&" "!==e)break}let g=n.substring(l),y=g.indexOf("\n");-1===y?a="-":n===g||y!==g.length-1?(a="+",o&&o()):a="",g&&(n=n.slice(0,-g.length),"\n"===g[g.length-1]&&(g=g.slice(0,-1)),g=g.replace(s,`$&${p}`));let b=!1,v=-1;for(c=0;c<n.length;++c){let e=n[c];if(" "===e)b=!0;else if("\n"===e)v=c;else break}let k=n.substring(0,v<c?v+1:c);k&&(n=n.substring(k.length),k=k.replace(/\n+/g,`$&${p}`));let w=p?"2":"1",S=(b?w:"")+a;if(e&&(S+=" "+h(e.replace(/ ?[\r\n]+/g," ")),i&&i()),!m){let e=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`),s=!1,i=ts(r,!0);"folded"!==f&&t!==e0.BLOCK_FOLDED&&(i.onOverflow=()=>{s=!0});let o=tt(`${k}${e}${g}`,p,e5,i);if(!s)return`>${S} 5${p}${o}`}return n=n.replace(/\n+/g,`$&${p}`),`|${S} 6${p}${k}${n}${g}`}function tl(e,t,n,s){let{implicitKey:r,inFlow:i}=t,o="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)}),{type:a}=e;a!==e0.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=e0.QUOTE_DOUBLE);let l=e=>{switch(e){case e0.BLOCK_FOLDED:case e0.BLOCK_LITERAL:return r||i?to(o.value,t):ta(o,t,n,s);case e0.QUOTE_DOUBLE:return tr(o.value,t);case e0.QUOTE_SINGLE:return ti(o.value,t);case e0.PLAIN:return function(e,t,n,s){let{type:r,value:i}=e,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:u}=t;if(a&&i.includes("\n")||u&&/[[\]{},]/.test(i))return to(i,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||u||!i.includes("\n")?to(i,t):ta(e,t,n,s);if(!a&&!u&&r!==e0.PLAIN&&i.includes("\n"))return ta(e,t,n,s);if(/^(%|---|\.\.\.)/m.test(i)){if(""===l)return t.forceBlockIndent=!0,ta(e,t,n,s);else if(a&&l===c)return to(i,t)}let f=i.replace(/\n+/g,`$& 7${l}`);if(o){let e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(f),{compat:n,tags:s}=t.doc.schema;if(s.some(e)||n?.some(e))return to(i,t)}return a?f:tt(f,l,e4,ts(t,!1))}(o,t,n,s);default:return null}},c=l(a);if(null===c){let{defaultKeyType:e,defaultStringType:n}=t.options,s=r&&e||n;if(null===(c=l(s)))throw Error(`Unsupported default string type ${s}`)}return c}function tc(e,t){let n,s=Object.assign({blockQuote:!0,commentString:e6,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);switch(s.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:s.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof s.indent?" ".repeat(s.indent):" ",inFlow:n,options:s}}function tu(e,t,n,s){let r;if(eT(e))return e.toString(t,n,s);if(e_(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i=eI(e)?e:t.doc.createNode(e,{onTagObj:e=>r=e});r??(r=function(e,t){let n,s;if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}if(ex(t)){n=t.value;let r=e.filter(e=>e.identify?.(n));if(r.length>1){let e=r.filter(e=>e.test);e.length>0&&(r=e)}s=r.find(e=>e.format===t.format)??r.find(e=>!e.format)}else n=t,s=e.find(e=>e.nodeClass&&n instanceof e.nodeClass);if(!s){let e=n?.constructor?.name??(null===n?"null":typeof n);throw Error(`Tag not resolved for ${e} value`)}return s}(t.doc.schema.tags,i));let o=function(e,t,{anchors:n,doc:s}){if(!s.directives)return"";let r=[],i=(ex(e)||eL(e))&&e.anchor;i&&ez(i)&&(n.add(i),r.push(`&${i}`));let o=e.tag??(t.default?null:t.tag);return o&&r.push(s.directives.tagString(o)),r.join(" ")}(i,r,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let a="function"==typeof r.stringify?r.stringify(i,t,n,s):ex(i)?tl(i,t,n,s):i.toString(t,n,s);
7return o?ex(i)||"{"===a[0]||"["===a[0]?`${o} ${a}`:`${o} 8${t.indent}${a}`:a}function tf(e,t){("debug"===e||"warn"===e)&&console.warn(t)}let th={identify:e=>"<<"===e||"symbol"==typeof e&&"<<"===e.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new e0(Symbol("<<")),{addToJSMap:td}),stringify:()=>"<<"};function td(e,t,n){let s=tm(e,n);if(eN(s))for(let n of s.items)tp(e,t,n);else if(Array.isArray(s))for(let n of s)tp(e,t,n);else tp(e,t,s)}function tp(e,t,n){let s=tm(e,n);if(!eA(s))throw Error("Merge sources must be maps or map aliases");for(let[n,r]of s.toJSON(null,e,Map))t instanceof Map?t.has(n)||t.set(n,r):t instanceof Set?t.add(n):Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{value:r,writable:!0,enumerable:!0,configurable:!0});return t}function tm(e,t){return e&&e_(t)?t.resolve(e.doc,e):t}function tg(e,t,{key:n,value:s}){if(eI(n)&&n.addToJSMap)n.addToJSMap(e,t,s);else if((th.identify(n)||ex(n)&&(!n.type||n.type===e0.PLAIN)&&th.identify(n.value))&&e?.doc.schema.tags.some(e=>e.tag===th.tag&&e.default))td(e,t,s);else{let r=eY(n,"",e);if(t instanceof Map)t.set(r,eY(s,r,e));else if(t instanceof Set)t.add(r);else{let i=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(eI(e)&&n?.doc){let t=tc(n.doc,{});for(let e of(t.anchors=new Set,n.anchors.keys()))t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let s=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(s);e.length>40&&(e=e.substring(0,36)+'..."'),tf(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return s}return JSON.stringify(t)}(n,r,e),o=eY(s,i,e);i in t?Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[i]=o}}return t}function ty(e,t,n){return new tb(e1(e,void 0,n),e1(t,void 0,n))}class tb{constructor(e,t=null){Object.defineProperty(this,eE,{value:ek}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return eI(t)&&(t=t.clone(e)),eI(n)&&(n=n.clone(e)),new tb(t,n)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return tg(t,n,this)}toString(e,t,n){return e?.doc?function({key:e,value:t},n,s,r){let i,o,a,{allNullValues:l,doc:c,indent:u,indentStep:f,options:{commentString:h,indentSeq:d,simpleKeys:p}}=n,m=eI(e)&&e.comment||null;if(p){if(m)throw Error("With simple keys, key nodes cannot have comments");if(eL(e)||!eI(e)&&"object"==typeof e)throw Error("With simple keys, collection cannot be used as a key value")}let g=!p&&(!e||m&&null==t&&!n.inFlow||eL(e)||(ex(e)?e.type===e0.BLOCK_FOLDED||e.type===e0.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!g&&(p||!l),indent:u+f});let y=!1,b=!1,v=tu(e,n,()=>y=!0,()=>b=!0);if(!g&&!n.inFlow&&v.length>1024){if(p)throw Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(n.inFlow){if(l||null==t)return y&&s&&s(),""===v?"?":g?`? ${v}`:v}else if(l&&!p||null==t&&g)return v=`? ${v}`,m&&!y?v+=e7(v,n.indent,h(m)):b&&r&&r(),v;y&&(m=null),g?(m&&(v+=e7(v,n.indent,h(m))),v=`? ${v} 9${u}:`):(v=`${v}:`,m&&(v+=e7(v,n.indent,h(m)))),eI(t)?(i=!!t.spaceBefore,o=t.commentBefore,a=t.comment):(i=!1,o=null,a=null,t&&"object"==typeof t&&(t=c.createNode(t))),n.implicitKey=!1,!g&&!m&&ex(t)&&(n.indentAtStart=v.length+1),b=!1,!(!d&&f.length>=2&&!n.inFlow&&!g&&eN(t))||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let k=!1,w=tu(t,n,()=>k=!0,()=>b=!0),S=" ";if(m||i||o){if(S=i?"\n":"",o){let e=h(o);S+=` 10${e3(e,n.indent)}`}""!==w||n.inFlow?S+=` 11${n.indent}`:"\n"===S&&a&&(S="\n\n")}else if(!g&&eL(t)){let e=w[0],s=w.indexOf("\n"),r=-1!==s,i=n.inFlow??t.flow??0===t.items.length;if(r||!i){let t=!1;if(r&&("&"===e||"!"===e)){let n=w.indexOf(" ");"&"===e&&-1!==n&&n<s&&"!"===w[n+1]&&(n=w.indexOf(" ",n+1)),(-1===n||s<n)&&(t=!0)}t||(S=` 12${n.indent}`)}}else(""===w||"\n"===w[0])&&(S="");return v+=S+w,n.inFlow?k&&s&&s():a&&!k?v+=e7(v,n.indent,h(a)):b&&r&&r(),v}(this,e,t,n):JSON.stringify(this)}}function tv(e,t,n){return(t.inFlow??e.flow?function({items:e},t,{flowChars:n,itemIndent:s}){let{indent:r,indentStep:i,flowCollectionPadding:o,options:{commentString:a}}=t,l=Object.assign({},t,{indent:s+=i,inFlow:!0,type:null}),c=!1,u=0,f=[];for(let n=0;n<e.length;++n){let r=e[n],i=null;
12if(eI(r))r.spaceBefore&&f.push(""),tk(t,f,r.commentBefore,!1),r.comment&&(i=r.comment);else if(eT(r)){let e=eI(r.key)?r.key:null;e&&(e.spaceBefore&&f.push(""),tk(t,f,e.commentBefore,!1),e.comment&&(c=!0));let n=eI(r.value)?r.value:null;n?(n.comment&&(i=n.comment),n.commentBefore&&(c=!0)):null==r.value&&e?.comment&&(i=e.comment)}i&&(c=!0);let o=tu(r,l,()=>i=null);c||(c=f.length>u||o.includes("\n")),n<e.length-1?o+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(c||(c=f.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth)),c&&(o+=",")),i&&(o+=e7(o,s,a(i))),f.push(o),u=f.length}let{start:h,end:d}=n;if(0===f.length)return h+d;if(!c){let e=f.reduce((e,t)=>e+t.length+2,2);c=t.options.lineWidth>0&&e>t.options.lineWidth}if(!c)return`${h}${o}${f.join(" ")}${o}${d}`;{let e=h;for(let t of f)e+=t?` 13${i}${r}${t}`:"\n";return`${e} 14${r}${d}`}}:function({comment:e,items:t},n,{blockItemPrefix:s,flowChars:r,itemIndent:i,onChompKeep:o,onComment:a}){let l,{indent:c,options:{commentString:u}}=n,f=Object.assign({},n,{indent:i,type:null}),h=!1,d=[];for(let e=0;e<t.length;++e){let r=t[e],o=null;if(eI(r))!h&&r.spaceBefore&&d.push(""),tk(n,d,r.commentBefore,h),r.comment&&(o=r.comment);else if(eT(r)){let e=eI(r.key)?r.key:null;e&&(!h&&e.spaceBefore&&d.push(""),tk(n,d,e.commentBefore,h))}h=!1;let a=tu(r,f,()=>o=null,()=>h=!0);o&&(a+=e7(a,i,u(o))),h&&o&&(h=!1),d.push(s+a)}if(0===d.length)l=r.start+r.end;else{l=d[0];for(let e=1;e<d.length;++e){let t=d[e];l+=t?` 15${c}${t}`:"\n"}}return e?(l+="\n"+e3(u(e),c),a&&a()):h&&o&&o(),l})(e,t,n)}function tk({indent:e,options:{commentString:t}},n,s,r){if(s&&r&&(s=s.replace(/^\n+/,"")),s){let r=e3(t(s),e);n.push(r.trimStart())}}function tw(e,t){let n=ex(t)?t.value:t;for(let s of e)if(eT(s)&&(s.key===t||s.key===n||ex(s.key)&&s.key.value===n))return s}class tS extends e8{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(ev,e),this.items=[]}static from(e,t,n){let{keepUndefined:s,replacer:r}=n,i=new this(e),o=(e,o)=>{if("function"==typeof r)o=r.call(t,e,o);else if(Array.isArray(r)&&!r.includes(e))return;(void 0!==o||s)&&i.items.push(ty(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&"object"==typeof t)for(let e of Object.keys(t))o(e,t[e]);return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i}add(e,t){let n;n=eT(e)?e:e&&"object"==typeof e&&"key"in e?new tb(e.key,e.value):new tb(e,e?.value);let s=tw(this.items,n.key),r=this.schema?.sortMapEntries;if(s){if(!t)throw Error(`Key ${n.key} already set`);ex(s.value)&&eZ(n.value)?s.value.value=n.value:s.value=n.value}else if(r){let e=this.items.findIndex(e=>0>r(n,e));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=tw(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=tw(this.items,e),s=n?.value;return(!t&&ex(s)?s.value:s)??void 0}has(e){return!!tw(this.items,e)}set(e,t){this.add(new tb(e,t),!0)}toJSON(e,t,n){let s=n?new n:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(s),this.items))tg(t,s,e);return s}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!eT(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),tv(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}let tE={collection:"map",default:!0,nodeClass:tS,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(eA(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>tS.from(e,t,n)};class t_ extends e8{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(eS,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=tO(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let n=tO(e);if("number"!=typeof n)return;let s=this.items[n];return!t&&ex(s)?s.value:s}has(e){let t=tO(e);return"number"==typeof t&&t<this.items.length}set(e,t){let n=tO(e);if("number"!=typeof n)throw Error(`Expected a valid index, not ${e}.`);let s=this.items[n];ex(s)&&eZ(t)?s.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let s=0;for(let e of this.items)n.push(eY(e,String(s++),t));return n}toString(e,t,n){return e?tv(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:s}=n,r=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let i of t){if("function"==typeof s){let n=t instanceof Set?i:String(e++);i=s.call(t,n,i)}r.items.push(e1(i,void 0,n))}}return r}}function tO(e){let t=ex(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}let tA={collection:"seq",default:!0,nodeClass:t_,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>
15(eN(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>t_.from(e,t,n)},tT={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,s)=>tl(e,t=Object.assign({actualString:!0},t),n,s)},tx={identify:e=>null==e,createNode:()=>new e0(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new e0(null),stringify:({source:e},t)=>"string"==typeof e&&tx.test.test(e)?e:t.options.nullStr},tN={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new e0("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&tN.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function tL({format:e,minFractionDigits:t,tag:n,value:s}){if("bigint"==typeof s)return String(s);let r="number"==typeof s?s:Number(s);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let i=Object.is(s,-0)?"-0":JSON.stringify(s);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^-?\d/.test(i)&&!i.includes("e")){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1);for(;n-- >0;)i+="0"}return i}let tI={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:tL},tC={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():tL(e)}},tR={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new e0(parseFloat(e)),n=e.indexOf(".");return -1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:tL},t$=e=>"bigint"==typeof e||Number.isInteger(e),tj=(e,t,n,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(t),n);function tM(e,t,n){let{value:s}=e;return t$(s)&&s>=0?n+s.toString(t):tL(e)}let tD={identify:e=>t$(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>tj(e,2,8,n),stringify:e=>tM(e,8,"0o")},tP={identify:t$,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>tj(e,0,10,n),stringify:tL},tB={identify:e=>t$(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>tj(e,2,16,n),stringify:e=>tM(e,16,"0x")},tF=[tE,tA,tT,tx,tN,tD,tP,tB,tI,tC,tR];function tK(e){return"bigint"==typeof e||Number.isInteger(e)}let tU=({value:e})=>JSON.stringify(e),tq=[tE,tA].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:tU},{identify:e=>null==e,createNode:()=>new e0(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:tU},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:tU},{identify:tK,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>tK(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:tU}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),tG={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"!=typeof atob)return t("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}},stringify({comment:e,type:t,value:n},s,r,i){let o;if(!n)return"";if("function"==typeof btoa){let e="";for(let t=0;t<n.length;++t)e+=String.fromCharCode(n[t]);o=btoa(e)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=e0.BLOCK_LITERAL),t!==e0.QUOTE_DOUBLE){let e=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),n=Math.ceil(o.length/e),r=Array(n);for(let t=0,s=0;t<n;++t,s+=e)r[t]=o.substr(s,e);o=r.join(t===e0.BLOCK_LITERAL?"\n":" ")}return tl({comment:e,type:t,value:o},s,r,i)}};function tV(e,t){if(eN(e))for(let n=0;n<e.items.length;++n){let s=e.items[n];
15if(!eT(s)){if(eA(s)){s.items.length>1&&t("Each pair must have its own sequence indicator");let e=s.items[0]||new tb(new e0(null));if(s.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${s.commentBefore} 16${e.key.commentBefore}`:s.commentBefore),s.comment){let t=e.value??e.key;t.comment=t.comment?`${s.comment} 17${t.comment}`:s.comment}s=e}e.items[n]=eT(s)?s:new tb(s)}}else t("Expected a sequence for this tag");return e}function tz(e,t,n){let{replacer:s}=n,r=new t_(e);r.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let o,a;if("function"==typeof s&&(e=s.call(t,String(i++),e)),Array.isArray(e))if(2===e.length)o=e[0],a=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)a=e[o=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;r.items.push(ty(o,a,n))}return r}let tW={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:tV,createNode:tz};class tH extends t_{constructor(){super(),this.add=tS.prototype.add.bind(this),this.delete=tS.prototype.delete.bind(this),this.get=tS.prototype.get.bind(this),this.has=tS.prototype.has.bind(this),this.set=tS.prototype.set.bind(this),this.tag=tH.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;for(let e of(t?.onCreate&&t.onCreate(n),this.items)){let s,r;if(eT(e)?(s=eY(e.key,"",t),r=eY(e.value,s,t)):s=eY(e,"",t),n.has(s))throw Error("Ordered maps must not include duplicate keys");n.set(s,r)}return n}static from(e,t,n){let s=tz(e,t,n),r=new this;return r.items=s.items,r}}tH.tag="tag:yaml.org,2002:omap";let tJ={collection:"seq",identify:e=>e instanceof Map,nodeClass:tH,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let n=tV(e,t),s=[];for(let{key:e}of n.items)ex(e)&&(s.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):s.push(e.value));return Object.assign(new tH,n)},createNode:(e,t,n)=>tH.from(e,t,n)};function tY({value:e,source:t},n){return t&&(e?tX:tQ).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let tX={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new e0(!0),stringify:tY},tQ={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new e0(!1),stringify:tY},tZ=e=>"bigint"==typeof e||Number.isInteger(e);function t0(e,t,n,{intAsBigInt:s}){let r=e[0];if(("-"===r||"+"===r)&&(t+=1),e=e.substring(t).replace(/_/g,""),s){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===r?BigInt(-1)*t:t}let i=parseInt(e,n);return"-"===r?-1*i:i}function t1(e,t,n){let{value:s}=e;if(tZ(s)){let e=s.toString(t);return s<0?"-"+n+e.substr(1):n+e}return tL(e)}class t2 extends tS{constructor(e){super(e),this.tag=t2.tag}add(e){let t;t=eT(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new tb(e.key,null):new tb(e,null),tw(this.items,t.key)||this.items.push(t)}get(e,t){let n=tw(this.items,e);return!t&&eT(n)?ex(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=tw(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new tb(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error("Set items must all have null values")}static from(e,t,n){let{replacer:s}=n,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof s&&(e=s.call(t,e,e)),r.items.push(ty(e,null,n));return r}}t2.tag="tag:yaml.org,2002:set";let t9={collection:"map",identify:e=>e instanceof Set,nodeClass:t2,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>t2.from(e,t,n),resolve(e,t){if(eA(e))if(e.hasAllNullValues(!0))return Object.assign(new t2,e);else t("Set items must all have null values");else t("Expected a mapping for this tag");return e}};function t8(e,t){let n=e[0],s="-"===n||"+"===n?e.substring(1):e,r=e=>t?BigInt(e):Number(e),i=s.replace(/_/g,"").split(":").reduce((e,t)=>
17e*r(60)+r(t),r(0));return"-"===n?r(-1)*i:i}function t6(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return tL(e);let s="";t<0&&(s="-",t*=n(-1));let r=n(60),i=[t%r];return t<60?i.unshift(0):(t=(t-i[0])/r,i.unshift(t%r),t>=60&&(t=(t-i[0])/r,i.unshift(t))),s+i.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let t3={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>t8(e,n),stringify:t6},t7={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>t8(e,!1),stringify:t6},t4={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(t4.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,s,r,i,o,a]=t.map(Number),l=Date.UTC(n,s-1,r,i||0,o||0,a||0,t[7]?Number((t[7]+"00").substr(1,3)):0),c=t[8];if(c&&"Z"!==c){let e=t8(c,!1);30>Math.abs(e)&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},t5=[tE,tA,tT,tx,tX,tQ,{identify:tZ,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>t0(e,2,2,n),stringify:e=>t1(e,2,"0b")},{identify:tZ,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>t0(e,1,8,n),stringify:e=>t1(e,8,"0")},{identify:tZ,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>t0(e,0,10,n),stringify:tL},{identify:tZ,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>t0(e,2,16,n),stringify:e=>t1(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:tL},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():tL(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new e0(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){let s=e.substring(n+1).replace(/_/g,"");"0"===s[s.length-1]&&(t.minFractionDigits=s.length)}return t},stringify:tL},tG,th,tJ,tW,t9,t3,t7,t4],ne=new Map([["core",tF],["failsafe",[tE,tA,tT]],["json",tq],["yaml11",t5],["yaml-1.1",t5]]),nt={binary:tG,bool:tN,float:tR,floatExp:tC,floatNaN:tI,floatTime:t7,int:tP,intHex:tB,intOct:tD,intTime:t3,map:tE,merge:th,null:tx,omap:tJ,pairs:tW,seq:tA,set:t9,timestamp:t4},nn={"tag:yaml.org,2002:binary":tG,"tag:yaml.org,2002:merge":th,"tag:yaml.org,2002:omap":tJ,"tag:yaml.org,2002:pairs":tW,"tag:yaml.org,2002:set":t9,"tag:yaml.org,2002:timestamp":t4};function ns(e,t,n){let s=ne.get(t);if(s&&!e)return n&&!s.includes(th)?s.concat(th):s.slice();let r=s;if(!r)if(Array.isArray(e))r=[];else{let e=Array.from(ne.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)r=r.concat(t);else"function"==typeof e&&(r=e(r.slice()));return n&&(r=r.concat(th)),r.reduce((e,t)=>{let n="string"==typeof t?nt[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(nt).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}let nr=(e,t)=>e.key<t.key?-1:+(e.key>t.key);class ni{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:s,schema:r,sortMapEntries:i,toStringDefaults:o}){this.compat=Array.isArray(e)?ns(e,"compat"):e?ns(null,e):null,this.name="string"==typeof r&&r||"core",this.knownTags=s?nn:{},this.tags=ns(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,ev,{value:tE}),Object.defineProperty(this,ew,{value:tT}),Object.defineProperty(this,eS,{value:tA}),this.sortMapEntries="function"==typeof i?i:!0===i?nr:null}clone(){let e=Object.create(ni.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class no{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,eE,{value:eb});let s=null;"function"==typeof t||Array.isArray(t)?s=t:void 0===n&&t&&(n=t,t=void 0);const r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=r;let{version:i}=r;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new eV({version:i}),this.setSchema(i,n),this.contents=void 0===e?null:this.createNode(e,s,n)}clone(){let e=Object.create(no.prototype,{[eE]:{value:eb}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=eI(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){na(this.contents)&&this.contents.add(e)}addIn(e,t){na(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=eW(this);e.anchor=!t||n.has(t)?eH(t||"a",n):t}return new eQ(e.anchor)}createNode(e,t,n){var s,r;let i,o,a,l;if("function"==typeof t)e=t.call({"":e},"",e),i=t;else if(Array.isArray(t)){let e=t.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),i=t}else void 0===n&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:c,anchorPrefix:u,flow:f,keepUndefined:h,onTagObj:d,tag:p}=n??{},{onAnchor:m,setAnchors:g,sourceObjects:y}=(s=this,r=u||"a",o=[],a=new Map,l=null,{onAnchor:e=>{o.push(e),l??(l=eW(s));let t=eH(r,l);return l.add(t),t},setAnchors:()=>{for(let e of o){let t=a.get(e);if("object"==typeof t&&t.anchor&&(ex(t.node)||eL(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:a}),b={aliasDuplicateObjects:c??!0,keepUndefined:h??!1,onAnchor:m,onTagObj:d,replacer:i,schema:this.schema,sourceObjects:y},v=e1(e,p,b);return f&&eL(v)&&(v.flow=!0),g(),v}createPair(e,t,n={}){return new tb(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return!!na(this.contents)&&this.contents.delete(e)}deleteIn(e){return e9(e)?null!=this.contents&&(this.contents=null,!0):!!na(this.contents)&&this.contents.deleteIn(e)}get(e,t){return eL(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return e9(e)?!t&&ex(this.contents)?this.contents.value:this.contents:eL(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!eL(this.contents)&&this.contents.has(e)}hasIn(e){return e9(e)?void 0!==this.contents:!!eL(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=e2(this.schema,[e],t):na(this.contents)&&this.contents.set(e,t)}setIn(e,t){e9(e)?this.contents=t:null==this.contents?this.contents=e2(this.schema,Array.from(e),t):na(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new eV({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new eV({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new ni(Object.assign(n,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:s,onAnchor:r,reviver:i}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof s?s:100},a=eY(this.contents,t??"",o);if("function"==typeof r)for(let{count:e,res:t}
17of o.anchors.values())r(t,e);return"function"==typeof i?eJ(i,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){let n=[],s=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(n.push(t),s=!0):e.directives.docStart&&(s=!0)}s&&n.push("---");let r=tc(e,t),{commentString:i}=r.options;if(e.commentBefore){1!==n.length&&n.unshift("");let t=i(e.commentBefore);n.unshift(e3(t,""))}let o=!1,a=null;if(e.contents){if(eI(e.contents)){if(e.contents.spaceBefore&&s&&n.push(""),e.contents.commentBefore){let t=i(e.contents.commentBefore);n.push(e3(t,""))}r.forceBlockIndent=!!e.comment,a=e.contents.comment}let t=a?void 0:()=>o=!0,l=tu(e.contents,r,()=>a=null,t);a&&(l+=e7(l,"",i(a))),("|"===l[0]||">"===l[0])&&"---"===n[n.length-1]?n[n.length-1]=`--- ${l}`:n.push(l)}else n.push(tu(e.contents,r));if(e.directives?.docEnd)if(e.comment){let t=i(e.comment);t.includes("\n")?(n.push("..."),n.push(e3(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,"")),t&&((!o||a)&&""!==n[n.length-1]&&n.push(""),n.push(e3(i(t),"")))}return n.join("\n")+"\n"}(this,e)}}function na(e){if(eL(e))return!0;throw Error("Expected a YAML collection as document contents")}class nl extends Error{constructor(e,t,n,s){super(),this.name=e,this.code=n,this.message=s,this.pos=t}}class nc extends nl{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class nu extends nl{constructor(e,t,n){super("YAMLWarning",e,t,n)}}let nf=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:s,col:r}=n.linePos[0];n.message+=` at line ${s}, column ${r}`;let i=r-1,o=e.substring(t.lineStarts[s-1],t.lineStarts[s]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){let e=Math.min(i-39,o.length-79);o="â¦"+o.substring(e),i-=e-1}if(o.length>80&&(o=o.substring(0,79)+"â¦"),s>1&&/^ *$/.test(o.substring(0,i))){let n=e.substring(t.lineStarts[s-2],t.lineStarts[s-1]);n.length>80&&(n=n.substring(0,79)+"â¦\n"),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===s&&t.col>r&&(e=Math.max(1,Math.min(t.col-r,80-i)));let a=" ".repeat(i)+"^".repeat(e);n.message+=`: 18 19${o} 20${a} 21`}};function nh(e,{flow:t,indicator:n,next:s,offset:r,onError:i,parentIndent:o,startOnNewline:a}){let l=!1,c=a,u=a,f="",h="",d=!1,p=!1,m=null,g=null,y=null,b=null,v=null,k=null,w=null;for(let r of e)switch(p&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p=!1),m&&(c&&"comment"!==r.type&&"newline"!==r.type&&i(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),r.type){case"space":!t&&("doc-start"!==n||s?.type!=="flow-collection")&&r.source.includes(" ")&&(m=r),u=!0;break;case"comment":{u||i(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=r.source.substring(1)||" ";f?f+=h+e:f=e,h="",c=!1;break}case"newline":c?f?f+=r.source:k&&"seq-item-ind"===n||(l=!0):h+=r.source,c=!0,d=!0,(g||y)&&(b=r),u=!0;break;case"anchor":g&&i(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),r.source.endsWith(":")&&i(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=r,w??(w=r.offset),c=!1,u=!1,p=!0;break;case"tag":y&&i(r,"MULTIPLE_TAGS","A node can have at most one tag"),y=r,w??(w=r.offset),c=!1,u=!1,p=!0;break;case n:(g||y)&&i(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),k&&i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${t??"collection"}`),k=r,c="seq-item-ind"===n||"explicit-key-ind"===n,u=!1;break;case"comma":if(t){v&&i(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),v=r,c=!1,u=!1;break}default:i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),c=!1,u=!1}let S=e[e.length-1],E=S?S.offset+S.source.length:r;return p&&s&&"space"!==s.type&&"newline"!==s.type&&"comma"!==s.type&&("scalar"!==s.type||""!==s.source)&&i(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(c&&m.
21indent<=o||s?.type==="block-map"||s?.type==="block-seq")&&i(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:v,found:k,spaceBefore:l,comment:f,hasNewline:d,anchor:g,tag:y,newlineAfterProp:b,end:E,start:w??E}}function nd(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end){for(let t of e.end)if("newline"===t.type)return!0}return!1;case"flow-collection":for(let t of e.items){for(let e of t.start)if("newline"===e.type)return!0;if(t.sep){for(let e of t.sep)if("newline"===e.type)return!0}if(nd(t.key)||nd(t.value))return!0}return!1;default:return!0}}function np(e,t,n){if(t?.type==="flow-collection"){let s=t.end[0];s.indent===e&&("]"===s.source||"}"===s.source)&&nd(t)&&n(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function nm(e,t,n){let{uniqueKeys:s}=e.options;if(!1===s)return!1;let r="function"==typeof s?s:(e,t)=>e===t||ex(e)&&ex(t)&&e.value===t.value;return t.some(e=>r(e.key,n))}let ng="All mapping items must start at the same column";function ny(e,t,n,s){let r="";if(e){let i=!1,o="";for(let a of e){let{source:e,type:l}=a;switch(l){case"space":i=!0;break;case"comment":{n&&!i&&s(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let t=e.substring(1)||" ";r?r+=o+t:r=t,o="";break}case"newline":r&&(o+=e),i=!0;break;default:s(a,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=e.length}}return{comment:r,offset:t}}let nb="Block collections are not allowed within flow collections",nv=e=>e&&("block-map"===e.type||"block-seq"===e.type);function nk(e,t,n,s,r,i){let o="block-map"===n.type?function({composeNode:e,composeEmptyNode:t},n,s,r,i){let o=new(i?.nodeClass??tS)(n.schema);n.atRoot&&(n.atRoot=!1);let a=s.offset,l=null;for(let i of s.items){let{start:c,key:u,sep:f,value:h}=i,d=nh(c,{indicator:"explicit-key-ind",next:u??f?.[0],offset:a,onError:r,parentIndent:s.indent,startOnNewline:!0}),p=!d.found;if(p){if(u&&("block-seq"===u.type?r(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in u&&u.indent!==s.indent&&r(a,"BAD_INDENT",ng)),!d.anchor&&!d.tag&&!f){l=d.end,d.comment&&(o.comment?o.comment+="\n"+d.comment:o.comment=d.comment);continue}(d.newlineAfterProp||nd(u))&&r(u??c[c.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else d.found?.indent!==s.indent&&r(a,"BAD_INDENT",ng);n.atKey=!0;let m=d.end,g=u?e(n,u,d,r):t(n,m,c,null,d,r);n.schema.compat&&np(s.indent,u,r),n.atKey=!1,nm(n,o.items,g)&&r(m,"DUPLICATE_KEY","Map keys must be unique");let y=nh(f??[],{indicator:"map-value-ind",next:h,offset:g.range[2],onError:r,parentIndent:s.indent,startOnNewline:!u||"block-scalar"===u.type});if(a=y.end,y.found){p&&(h?.type!=="block-map"||y.hasNewline||r(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&d.start<y.found.offset-1024&&r(g.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let l=h?e(n,h,y,r):t(n,a,f,null,y,r);n.schema.compat&&np(s.indent,h,r),a=l.range[2];let c=new tb(g,l);n.options.keepSourceTokens&&(c.srcToken=i),o.items.push(c)}else{p&&r(g.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),y.comment&&(g.comment?g.comment+="\n"+y.comment:g.comment=y.comment);let e=new tb(g);n.options.keepSourceTokens&&(e.srcToken=i),o.items.push(e)}}return l&&l<a&&r(l,"IMPOSSIBLE","Map comment with trailing content"),o.range=[s.offset,a,l??a],o}(e,t,n,s,i):"block-seq"===n.type?function({composeNode:e,composeEmptyNode:t},n,s,r,i){let o=new(i?.nodeClass??t_)(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let a=s.offset,l=null;for(let{start:i,value:c}of s.items){let u=nh(i,{indicator:"seq-item-ind",next:c,offset:a,onError:r,parentIndent:s.indent,startOnNewline:!0});if(!u.found)if(u.anchor||u.tag||c)c?.type==="block-seq"?r(u.end,"BAD_INDENT","All sequence items must start at the same column"):r(a,"MISSING_CHAR","Sequence item without - indicator");else{l=u.end,u.comment&&(o.comment=u.comment);continue}let f=c?e(n,c,u,r):t(n,u.end,i,null,u,r);n.schema.compat&&np(s.indent,c,r),a=f.range[2],o.items.push(f)}return o.range=[s.offset,a,l??a],o}(e,t,n,s,i):function({composeNode:e,composeEmptyNode:t},n,s,r,i){let o="{"===s.start.source,a=o?"flow map":"flow sequence",l=new(i?.nodeClass??
21(o?tS:t_))(n.schema);l.flow=!0;let c=n.atRoot;c&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let u=s.offset+s.start.source.length;for(let i=0;i<s.items.length;++i){let c=s.items[i],{start:f,key:h,sep:d,value:p}=c,m=nh(f,{flow:a,indicator:"explicit-key-ind",next:h??d?.[0],offset:u,onError:r,parentIndent:s.indent,startOnNewline:!1});if(!m.found){if(!m.anchor&&!m.tag&&!d&&!p){0===i&&m.comma?r(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):i<s.items.length-1&&r(m.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),m.comment&&(l.comment?l.comment+="\n"+m.comment:l.comment=m.comment),u=m.end;continue}!o&&n.options.strict&&nd(h)&&r(h,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===i)m.comma&&r(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(m.comma||r(m.start,"MISSING_CHAR",`Missing , between ${a} items`),m.comment){let e="";e:for(let t of f)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=l.items[l.items.length-1];eT(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,m.comment=m.comment.substring(e.length+1)}}if(o||d||m.found){n.atKey=!0;let i=m.end,g=h?e(n,h,m,r):t(n,i,f,null,m,r);nv(h)&&r(g.range,"BLOCK_IN_FLOW",nb),n.atKey=!1;let y=nh(d??[],{flow:a,indicator:"map-value-ind",next:p,offset:g.range[2],onError:r,parentIndent:s.indent,startOnNewline:!1});if(y.found){if(!o&&!m.found&&n.options.strict){if(d)for(let e of d){if(e===y.found)break;if("newline"===e.type){r(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}m.start<y.found.offset-1024&&r(y.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else p&&("source"in p&&p.source?.[0]===":"?r(p,"MISSING_CHAR",`Missing space after : in ${a}`):r(y.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let b=p?e(n,p,y,r):y.found?t(n,y.end,d,null,y,r):null;b?nv(p)&&r(b.range,"BLOCK_IN_FLOW",nb):y.comment&&(g.comment?g.comment+="\n"+y.comment:g.comment=y.comment);let v=new tb(g,b);if(n.options.keepSourceTokens&&(v.srcToken=c),o)nm(n,l.items,g)&&r(i,"DUPLICATE_KEY","Map keys must be unique"),l.items.push(v);else{let e=new tS(n.schema);e.flow=!0,e.items.push(v);let t=(b??g).range;e.range=[g.range[0],t[1],t[2]],l.items.push(e)}u=b?b.range[2]:y.end}else{let s=p?e(n,p,m,r):t(n,m.end,d,null,m,r);l.items.push(s),u=s.range[2],nv(p)&&r(s.range,"BLOCK_IN_FLOW",nb)}}let f=o?"}":"]",[h,...d]=s.end,p=u;if(h?.source===f)p=h.offset+h.source.length;else{let e=a[0].toUpperCase()+a.substring(1),t=c?`${e} must end with a ${f}`:`${e} in block collection must be sufficiently indented and end with a ${f}`;r(u,c?"MISSING_CHAR":"BAD_INDENT",t),h&&1!==h.source.length&&d.unshift(h)}if(d.length>0){let e=ny(d,p,n.options.strict,r);e.comment&&(l.comment?l.comment+="\n"+e.comment:l.comment=e.comment),l.range=[s.offset,p,e.offset]}else l.range=[s.offset,p,p];return l}(e,t,n,s,i),a=o.constructor;return"!"===r||r===a.tagName?o.tag=a.tagName:r&&(o.tag=r),o}function nw(e,t,n){let s=t.offset,r=function({offset:e,props:t},n,s){if("block-scalar-header"!==t[0].type)return s(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:r}=t[0],i=r[0],o=0,a="",l=-1;for(let t=1;t<r.length;++t){let n=r[t];if(a||"-"!==n&&"+"!==n){let s=Number(n);!o&&s?o=s:-1===l&&(l=e+t)}else a=n}-1!==l&&s(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${r}`);let c=!1,u="",f=r.length;for(let e=1;e<t.length;++e){let r=t[e];switch(r.type){case"space":c=!0;case"newline":f+=r.source.length;break;case"comment":n&&!c&&s(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=r.source.length,u=r.source.substring(1);break;case"error":s(r,"UNEXPECTED_TOKEN",r.message),f+=r.source.length;break;default:{let e=`Unexpected token in block scalar header: ${r.type}`;s(r,"UNEXPECTED_TOKEN",e);let t=r.source;t&&"string"==typeof t&&(f+=t.length)}}}return{mode:i,indent:o,chomp:a,comment:u,length:f}}(t,e.options.strict,n);if(!r)return{value:"",type:null,comment:"",range:[s,s,s]};let i=">"===r.mode?e0.BLOCK_FOLDED:e0.BLOCK_LITERAL,o=t.source?function(e){let t=e.split(/\n( *)/),n=t[0],s=n.match(/^( *)/),r=[s?.[1]?[s[1],n.slice(s[1].length)]:["",n]];for(let e=1;e<t.length;e+=2)r.push([t[e],t[e+1]]);return r}(t.source):[],a=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(""===t||"\r"===t)a=e;else break}if(0===a){let e="+"===r.chomp&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"",n=s+r.length;return t.source&&(n+=t.source.length),{value:e,type:i,comment:r.comment,range:[s,n,n]}}let l=t.indent+r.indent,c=t.offset+r.length,u=0;for(let t=0;t<a;++t){let[s,i]=o[t];if(""===i||"\r"===i)0===r.indent&&s.length>l&&(l=s.length);else{s.length<l&&n(c+s.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),0===r.indent&&(l=s.length),u=t,0!==l||e.atRoot||n(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=s.length+i.length+1}for(let e=o.length-1;e>=a;--e)o[e][0].length>l&&(a=e+1);let f="",h="",d=!1;for(let e=0;e<u;++e)f+=o[e][0].slice(l)+"\n";for(let e=u;e<a;++e){let[t,s]=o[e];c+=t.length+s.length+1;let a="\r"===s[s.length-1];if(a&&(s=s.slice(0,-1)),s&&t.length<l){let e=r.indent?"explicit indentation indicator":"first line",i=`Block scalar lines must not be less indented than their ${e}`;n(c-s.length-(a?2:1),"BAD_INDENT",i),t=""}i===e0.BLOCK_LITERAL?(f+=h+t.slice(l)+s,h="\n"):t.length>l||" "===s[0]?(" "===h?h="\n":d||"\n"!==h||(h="\n\n"),f+=h+t.slice(l)+s,h="\n",d=!0):""===s?"\n"===h?f+="\n":h="\n":(f+=h+s,h=" ",d=!1)}switch(r.chomp){case"-":break;case"+":for(let e=a;
21e<o.length;++e)f+="\n"+o[e][0].slice(l);"\n"!==f[f.length-1]&&(f+="\n");break;default:f+="\n"}let p=s+r.length+t.source.length;return{value:f,type:i,comment:r.comment,range:[s,p,p]}}function nS(e,t,n){let s,r,{offset:i,type:o,source:a,end:l}=e,c=(e,t,s)=>n(i+e,t,s);switch(o){case"scalar":s=e0.PLAIN,r=function(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),nE(e)}(a,c);break;case"single-quoted-scalar":var u,f;s=e0.QUOTE_SINGLE,u=a,f=c,("'"!==u[u.length-1]||1===u.length)&&f(u.length,"MISSING_CHAR","Missing closing 'quote"),r=nE(u.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":s=e0.QUOTE_DOUBLE,r=function(e,t){let n="";for(let s=1;s<e.length-1;++s){let r=e[s];if("\r"!==r||"\n"!==e[s+1])if("\n"===r){let{fold:t,offset:r}=function(e,t){let n="",s=e[t+1];for(;(" "===s||" "===s||"\n"===s||"\r"===s)&&("\r"!==s||"\n"===e[t+2]);)"\n"===s&&(n+="\n"),t+=1,s=e[t+1];return n||(n=" "),{fold:n,offset:t}}(e,s);n+=t,s=r}else if("\\"===r){let r=e[++s],i=n_[r];if(i)n+=i;else if("\n"===r)for(r=e[s+1];" "===r||" "===r;)r=e[++s+1];else if("\r"===r&&"\n"===e[s+1])for(r=e[++s+1];" "===r||" "===r;)r=e[++s+1];else if("x"===r||"u"===r||"U"===r){let i="x"===r?2:"u"===r?4:8;n+=function(e,t,n,s){let r=e.substr(t,n),i=r.length===n&&/^[0-9a-fA-F]+$/.test(r)?parseInt(r,16):NaN;try{return String.fromCodePoint(i)}catch{let r=e.substr(t-2,n+2);return s(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${r}`),r}}(e,s+1,i,t),s+=i}else{let r=e.substr(s-1,2);t(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${r}`),n+=r}}else if(" "===r||" "===r){let t=s,i=e[s+1];for(;" "===i||" "===i;)i=e[++s+1];"\n"!==i&&("\r"!==i||"\n"!==e[s+2])&&(n+=s>t?e.slice(t,s+1):r)}else n+=r}return('"'!==e[e.length-1]||1===e.length)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(a,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[i,i+a.length,i+a.length]}}let h=i+a.length,d=ny(l,h,t,n);return{value:r,type:s,comment:d.comment,range:[i,h,d.offset]}}function nE(e){let t,n,s=/(.*?)\r?\n/sy,r=s.exec(e);if(!r)return e;try{t=RegExp("(?<![ ])[ ]+$"),n=RegExp("^[ ]+|(?<![ ])[ ]+$","g")}catch{t=/[ \t]+$/,n=/^[ \t]+|[ \t]+$/g}let i=r[1].replace(t,""),o=" ",a=s.lastIndex;for(;r=s.exec(e);){let e=r[1].replace(n,"");""===e?"\n"===o?i+=o:o="\n":(i+=o+e,o=" "),a=s.lastIndex}let l=/[ \t]*(.*)/sy;return l.lastIndex=a,r=l.exec(e),i+o+(r?.[1]??"")}let n_={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:" ",v:"\v",N:"\x85",_:"\xa0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function nO(e,t,n,s){let r,i,{value:o,type:a,comment:l,range:c}="block-scalar"===t.type?nw(e,t,s):nS(t,e.options.strict,s),u=n?e.directives.tagName(n.source,e=>s(n,"TAG_RESOLVE_FAILED",e)):null;r=e.options.stringKeys&&e.atKey?e.schema[ew]:u?function(e,t,n,s,r){if("!"===n)return e[ew];let i=[];for(let t of e.tags)if(!t.collection&&t.tag===n)if(!t.default||!t.test)return t;else i.push(t);for(let e of i)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(r(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[ew])}(e.schema,o,u,n,s):"scalar"===t.type?function({atKey:e,directives:t,schema:n},s,r,i){let o=n.tags.find(t=>(!0===t.default||e&&"key"===t.default)&&t.test?.test(s))||n[ew];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(s))??n[ew];if(o.tag!==e.tag){let n=t.tagString(o.tag),s=t.tagString(e.tag);i(r,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${n} or ${s}`,!0)}}return o}(e,o,t,s):e.schema[ew];try{let a=r.resolve(o,e=>s(n??t,"TAG_RESOLVE_FAILED",e),e.options);i=ex(a)?a:new e0(a)}catch(e){s(n??t,"TAG_RESOLVE_FAILED",e instanceof Error?e.message:String(e)),i=new e0(o)}return i.range=c,i.source=o,a&&(i.type=a),u&&(i.tag=u),r.format&&(i.format=r.format),l&&(i.comment=l),i}let nA={composeNode:nT,composeEmptyNode:nx};function nT(e,t,n,s){let r,i=e.atKey,{spaceBefore:o,comment:a,anchor:l,tag:c}=n,u=!0;switch(t.type){case"alias":r=function({options:e},{offset:t,source:n,end:s},r){let i=new eQ(n.substring(1));""===i.source&&r(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&r(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=t+n.length,a=ny(s,o,e.strict,r);return i.range=[t,o,a.offset],a.comment&&(i.comment=a.comment),i}(e,t,s),(l||c)&&s(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":r=nO(e,t,c,s),l&&(r.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{r=function(e,t,n,s,r){let i=s.tag,o=i?t.directives.tagName(i.source,e=>r(i,"TAG_RESOLVE_FAILED",e)):null;if("block-seq"===n.type){let{anchor:e,newlineAfterProp:t}=s,n=e&&i?e.offset>i.offset?e:i:e??i;n&&(!t||t.offset<n.offset)&&r(n,"MISSING_CHAR","Missing newline after block sequence props")}let a="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq";if(!i||!o||"!"===o||o===tS.tagName&&"map"===a||o===t_.tagName&&"seq"===a)return nk(e,t,n,r,o);let l=t.schema.tags.find(e=>e.tag===o&&e.collection===a);if(!l){let s=t.schema.knownTags[o];if(s?.collection!==a)return s?r(i,"BAD_COLLECTION_TYPE",`${s.tag} used for ${a} collection, but expects ${s.collection??"scalar"}`,!0):r(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),nk(e,t,n,r,o);t.schema.tags.push(Object.assign({},s,{default:!1})),l=s}let c=nk(e,t,n,r,o,l),u=l.resolve?.(c,e=>r(i,"TAG_RESOLVE_FAILED",e),t.options)??c,f=eI(u)?u:new e0(u);return f.range=c.range,f.tag=o,l?.format&&(f.format=l.format),f}(nA,e,t,n,s),l&&(r.anchor=l.source.substring(1))}catch(e){s(t,"RESOURCE_EXHAUSTION",e instanceof Error?e.message:String(e))}break;default:{let e="error"===t.type?t.message:`Unsupported token (type: ${t.type})`;s(t,"UNEXPECTED_TOKEN",e),u=!1}}return r??(r=nx(e,t.offset,void 0,null,n,s)),l&&""===r.anchor&&s(l,"BAD_ALIAS","Anchor cannot be an empty string"),i&&e.options.stringKeys&&(!ex(r)||"string"!=typeof r.value||r.tag&&"tag:yaml.org,2002:str"!==r.tag)&&s(c??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(r.spaceBefore=!0),a&&("scalar"===t.type&&""===t.source?r.comment=a:r.commentBefore=a),e.options.keepSourceTokens&&u&&(r.srcToken=t),r}function nx(e,t,n,s,{spaceBefore:r,comment:i,anchor:o,tag:a,end:l},c){let u=nO(e,{type:"scalar",offset:function(e,t,n){if(t){n??(n=t.length);for(let s=n-1;s>=0;--s){let n=t[s];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++s];n?.type==="space";)e+=n.source.length,n=t[++s];break}}return e}(t,n,s),indent:-1,source:""},a,c);return o&&(u.anchor=o.source.substring(1),""===u.anchor&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),r&&(u.spaceBefore=!0),i&&(u.comment=i,u.range[2]=l),u}function nN(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}function nL(e){let t="",n=!1,s=!1;for(let r=0;r<e.length;++r){let i=e[r];switch(i[0]){case"#":t+=(""===t?"":s?"\n\n":"\n")+(i.substring(1)||" "),n=!0,s=!1;break;case"%":e[r+1]?.[0]!=="#"&&(r+=1),n=!1;break;default:n||(s=!0),n=!1}}return{comment:t,afterEmptyLine:s}}class nI{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,s)=>{let r=nN(e);s?this.warnings.push(new nu(r,t,n)):this.errors.push(new nc(r,t,n))},this.directives=new eV({version:e.version||"1.2"}),this.options=e}
vendor: 4,110 bytes, lines 21-25
21decorate(e,t){let{comment:n,afterEmptyLine:s}=nL(this.prelude);if(n){let r=e.contents;if(t)e.comment=e.comment?`${e.comment} 22${n}`:n;else if(s||e.directives.docStart||!r)e.commentBefore=n;else if(eL(r)&&!r.flow&&r.items.length>0){let e=r.items[0];eT(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n} 23${t}`:n}else{let e=r.commentBefore;r.commentBefore=e?`${n} 24${e}`:n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:nL(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,n,s)=>{let r=nN(e);r[0]+=t,this.onError(r,"BAD_DIRECTIVE",n,s)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=function(e,t,{offset:n,start:s,value:r,end:i},o){let a=new no(void 0,Object.assign({_directives:t},e)),l={atKey:!1,atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},c=nh(s,{indicator:"doc-start",next:r??i?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});c.found&&(a.directives.docStart=!0,r&&("block-map"===r.type||"block-seq"===r.type)&&!c.hasNewline&&o(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),a.contents=r?nT(l,r,c,o):nx(l,c.end,s,null,c,o);let u=a.contents.range[2],f=ny(i,u,!1,o);return f.comment&&(a.comment=f.comment),a.range=[n,u,f.offset],a}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new nc(nN(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){this.errors.push(new nc(nN(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let t=ny(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e} 25${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new nc(nN(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new no(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),e.range=[0,t,t],this.decorate(e,!1),yield e}}}function nC(e,t=!0,n){if(e){let s=(e,t,s)=>{let r="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(n)n(r,t,s);else throw new nc([r,r+1],t,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return nS(e,t,s);case"block-scalar":return nw({options:{strict:t}},e,s)}}return null}function nR(e,t){let{implicitKey:n=!1,indent:s,inFlow:r=!1,offset:i=-1,type:o="PLAIN"}=t,a=tl({type:o,value:e},{implicitKey:n,indent:s>0?" ".repeat(s):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:s,source:"\n"}];switch(a[0]){case"|":case">":{let e=a.indexOf("\n"),t=a.substring(0,e),n=a.substring(e+1)+"\n",r=[{type:"block-scalar-header",offset:i,indent:s,source:t}];return nj(r,l)||r.push({type:"newline",offset:-1,indent:s,source:"\n"}),{type:"block-scalar",offset:i,indent:s,props:r,source:n}}case'"':return{type:"double-quoted-scalar",offset:i,indent:s,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:i,indent:s,source:a,end:l};default:return{type:"scalar",offset:i,indent:s,source:a,end:l}}}function n$(e,t,n={}
25){let{afterKey:s=!1,implicitKey:r=!1,inFlow:i=!1,type:o}=n,a="indent"in e?e.indent:null;if(s&&"number"==typeof a&&(a+=2),!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");o=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let l=tl({type:o,value:t},{implicitKey:r||null===a,indent:null!==a&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":!function(e,t){let n=t.indexOf("\n"),s=t.substring(0,n),r=t.substring(n+1)+"\n";if("block-scalar"===e.type){let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");t.source=s,e.source=r}else{let{offset:t}=e,n="indent"in e?e.indent:-1,i=[{type:"block-scalar-header",offset:t,indent:n,source:s}];for(let t of(nj(i,"end"in e?e.end:void 0)||i.push({type:"newline",offset:-1,indent:n,source:"\n"}),Object.keys(e)))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:n,props:i,source:r})}}(e,l);break;case'"':nM(e,l,"double-quoted-scalar");break;case"'":nM(e,l,"single-quoted-scalar");break;default:nM(e,l,"scalar")}}function nj(e,t){if(t)for(let n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function nM(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{let s=e.props.slice(1),r=t.length;for(let t of("block-scalar-header"===e.props[0].type&&(r-=e.props[0].source.length),s))t.offset+=r;delete e.props,Object.assign(e,{type:n,source:t,end:s});break}case"block-map":case"block-seq":{let s={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:n,source:t,end:[s]});break}default:{let s="indent"in e?e.indent:-1,r="end"in e&&Array.isArray(e.end)?e.end.filter(e=>"space"===e.type||"comment"===e.type||"newline"===e.type):[];for(let t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:n,indent:s,source:t,end:r})}}}let nD=e=>"type"in e?nP(e):nB(e);function nP(e){switch(e.type){case"block-scalar":{let t="";for(let n of e.props)t+=nP(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(let n of e.items)t+=nB(n);return t}case"flow-collection":{let t=e.start.source;for(let n of e.items)t+=nB(n);for(let n of e.end)t+=n.source;return t}case"document":{let t=nB(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function nB({start:e,key:t,sep:n,value:s}){let r="";for(let t of e)r+=t.source;if(t&&(r+=nP(t)),n)for(let e of n)r+=e.source;return s&&(r+=nP(s)),r}let nF=Symbol("break visit"),nK=Symbol("skip children"),nU=Symbol("remove item");function nq(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,n,s){let r=s(n,t);if("symbol"==typeof r)return r;for(let i of["key","value"]){let o=n[i];if(o&&"items"in o){for(let n=0;n<o.items.length;++n){let r=e(Object.freeze(t.concat([[i,n]])),o.items[n],s);if("number"==typeof r)n=r-1;else{if(r===nF)return nF;r===nU&&(o.items.splice(n,1),n-=1)}}"function"==typeof r&&"key"===i&&(r=r(n,t))}}return"function"==typeof r?r(n,t):r}(Object.freeze([]),e,t)}nq.BREAK=nF,nq.SKIP=nK,nq.REMOVE=nU,nq.itemAtPath=(e,t)=>{let n=e;for(let[e,s]of t){let t=n?.[e];if(!t||!("items"in t))return;n=t.items[s]}return n},nq.parentCollection=(e,t)=>{let n=nq.itemAtPath(e,t.slice(0,-1)),s=t[t.length-1][0],r=n?.[s];if(r&&"items"in r)return r;throw Error("Parent collection not found")};let nG="\uFEFF",nV="\x02",nz="\x18",nW="\x1f",nH=e=>!!e&&"items"in e,nJ=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type);function nY(e){switch(e){case nG:return"<BOM>";case nV:return"<DOC>";case nz:return"<FLOW_END>";case nW:return"<SCALAR>";default:return JSON.stringify(e)}}function nX(e){switch(e){case nG:return"byte-order-mark";case nV:return"doc-mode";case nz:return"flow-error-end";case nW:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";
25case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function nQ(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}let nZ=new Set("0123456789ABCDEFabcdef"),n0=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),n1=new Set(",[]{}"),n2=new Set(" ,[]{}\n\r "),n9=e=>!e||n2.has(e);class n8{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||" "===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){let t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"!==t&&!(n>=this.indentNext)&&(t||this.atEnd)?-1:e+n}if("-"===t||"."===t){let t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&nQ(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return(("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e)?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if(e[0]===nG&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length,n=e.indexOf("#");for(;-1!==n;){let s=e[n-1];if(" "===s||" "===s){t=n-1;break}n=e.indexOf("#",n+1)}for(;;){let n=e[t-1];if(" "===n||" "===n)t-=1;else break}let s=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield nV,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let e=this.peek(3);if(("---"===e||"..."===e)&&nQ(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===e?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!nQ(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&nQ(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";
25case"*":return yield*this.pushUntil(n9),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do(e=yield*this.pushNewline())>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let s=this.getLine();if(null===s)return this.setNext("flow");if((-1!==n&&n<this.indentNext&&"#"!==s[0]||0===n&&(s.startsWith("---")||s.startsWith("..."))&&nQ(s[3]))&&(n!==this.indentNext-1||1!==this.flowLevel||"]"!==s[0]&&"}"!==s[0]))return this.flowLevel=0,yield nz,yield*this.parseLineStart();let r=0;for(;","===s[r];)r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s[r+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-r),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(n9),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let e=this.charAt(1);if(this.flowKey||nQ(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}let n=this.buffer.substring(0,t),s=n.indexOf("\n",this.pos);if(-1!==s){for(;-1!==s;){let e=this.continueScalar(s+1);if(-1===e)break;s=n.indexOf("\n",e)}-1!==s&&(t=s-("\r"===n[s-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil(e=>nQ(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let s=this.pos;e=this.buffer[s];++s)switch(e){case" ":n+=1;break;case"\n":t=s,n=0;break;case"\r":{let e=this.buffer[s+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{let e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let s=t+1;for(e=this.buffer[s];" "===e;)e=this.buffer[++s];if(" "===e){for(;" "===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++s];t=s-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,s=this.buffer[e];"\r"===s&&(s=this.buffer[--e]);let r=e;for(;" "===s;)s=this.buffer[--e];if("\n"===s&&e>=this.pos&&e+1+n>r)t=e;else break}return yield nW,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e,t=this.flowLevel>0,n=this.pos-1,s=this.pos-1;for(;e=this.buffer[++s];)if(":"===e){let e=this.buffer[s+1];if(nQ(e)||t&&n1.has(e))break;n=s}else if(nQ(e)){let r=this.buffer[s+1];if("\r"===e&&("\n"===r?(s+=1,e="\n",r=this.buffer[s+1]):n=s),"#"===r||t&&n1.has(r))break;if("\n"===e){let e=this.continueScalar(s+1);if(-1===e)break;s=Math.max(s,e-2)}}else{if(t&&n1.has(e))break;n=s}return e||this.atEnd?(yield nW,yield*this.pushToIndex(n+1,!0),t?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){let e=0;for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue;case"&":e+=yield*this.pushUntil(n9),e+=yield*this.pushSpaces(!0);continue;case"-":case"?":case":":{let t=this.flowLevel>0,n=this.charAt(1);if(nQ(n)||t&&n1.has(n)){t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue}}}break}return e}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!nQ(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(n0.has(t))t=this.buffer[++e];else if("%"===t&&nZ.has(this.buffer[e+1])&&nZ.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do t=this.buffer[++n];while(" "===t||e&&" "===t);let s=n-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=n),s}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class n6{constructor(){this.lineStarts=[],this.addNewLine=e=>
25this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let s=t+n>>1;this.lineStarts[s]<e?t=s+1:n=s}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};let s=this.lineStarts[t-1];return{line:t,col:e-s+1}}}}function n3(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function n7(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return -1}function n4(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function n5(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function se(e){if(0===e.length)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function st(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function sn(e){if("flow-seq-start"===e.start.type)for(let t of e.items)!t.sep||t.value||n3(t.start,"explicit-key-ind")||n3(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,n4(t.value)?t.value.end?st(t.value.end,t.sep):t.value.end=t.sep:st(t.start,t.sep),delete t.sep)}class ss{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new n8,this.onNewLine=e}*parse(e,t=!1){for(let n of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,t)))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=nX(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if("doc-end"===this.type&&e?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{let e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&sn(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===t.type||"block-seq"===t.type)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===n7(n.start)&&(0===t.indent||n.start.every(e=>"comment"!==e.type||e.indent<t.indent))&&("document"===e.type?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}else yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};"doc-start"===this.type&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":-1!==n7(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return;case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}
25*scalar(e){if("map-value-ind"===this.type){let t,n=se(n5(this.peek(2)));e.end?((t=e.end).push(this.sourceToken),delete e.end):t=[this.sourceToken];let s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:t}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let n="end"in t.value?t.value.end:void 0,s=Array.isArray(n)?n[n.length-1]:void 0;s?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2],s=n?.value?.end;if(Array.isArray(s)){st(s,t.start),s.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,s=n&&(t.sep||t.explicitKey)&&"seq-item-ind"!==this.type,r=[];if(s&&t.sep&&!t.value){let n=[];for(let s=0;s<t.sep.length;++s){let r=t.sep[s];switch(r.type){case"newline":n.push(s);break;case"space":break;case"comment":r.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(r=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":s||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":t.sep||t.explicitKey?s||t.value?(r.push(this.sourceToken),e.items.push({start:r,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(t.start.push(this.sourceToken),t.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(n3(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(n4(t.key)&&!n3(t.sep,"newline")){let e=se(t.start),n=t.key,s=t.sep;s.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:s}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(n3(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=se(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||s?e.items.push({start:r,key:null,sep:[this.sourceToken]}):n3(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);s||t.value?(e.items.push({start:r,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let s=this.startBlockValue(e);if(s){if("block-seq"===s.type){if(!t.explicitKey&&t.sep&&!n3(t.sep,"newline"))return void(yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source}))}else n&&e.items.push({start:r});this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let n="end"in t.value?t.value.end:void 0,s=Array.isArray(n)?n[n.length-1]:void 0;s?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2],s=n?.value?.end;if(Array.isArray(s)){st(s,t.start),s.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||n3(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do yield*this.pop(),e=this.peek(1);while(e?.type==="flow-collection")}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,
25sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if("block-map"!==t.type||("map-value-ind"!==this.type||t.indent!==e.indent)&&("newline"!==this.type||t.items[t.items.length-1].sep))if("map-value-ind"===this.type&&"flow-collection"!==t.type){let n=se(n5(t));sn(e);let s=e.end.splice(1,e.end.length);s.push(this.sourceToken);let r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e);else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=se(n5(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=se(n5(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every(e=>"newline"===e.type||"space"===e.type)}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function sr(e){let t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new n6||null,prettyErrors:t}}function si(e,t={}){let{lineCounter:n,prettyErrors:s}=sr(t),r=new ss(n?.addNewLine),i=new nI(t),o=Array.from(i.compose(r.parse(e)));if(s&&n)for(let t of o)t.errors.forEach(nf(e,n)),t.warnings.forEac
25h(nf(e,n));return o.length>0?o:Object.assign([],{empty:!0},i.streamInfo())}function so(e,t={}){let{lineCounter:n,prettyErrors:s}=sr(t),r=new ss(n?.addNewLine),i=new nI(t),o=null;for(let t of i.compose(r.parse(e),!0,e.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new nc(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=t;return s&&n&&(o.errors.forEach(nf(e,n)),o.warnings.forEach(nf(e,n))),o}function sa(e,t,n){let s;"function"==typeof t?s=t:void 0===n&&t&&"object"==typeof t&&(n=t);let r=so(e,n);if(!r)return null;if(r.warnings.forEach(e=>tf(r.options.logLevel,e)),r.errors.length>0)if("silent"!==r.options.logLevel)throw r.errors[0];else r.errors=[];return r.toJS(Object.assign({reviver:s},n))}function sl(e,t,n){let s=null;if("function"==typeof t||Array.isArray(t)?s=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=n??t??{};if(!e)return}return eO(e)&&!s?e.toString(n):new no(e,s,n).toString(n)}var sc=n(8542),su=n.n(sc);let sf=async e=>{try{let t=await fetch(e),n=await t.text();return p.parse(n)}catch(e){return console.error("Error fetching or parsing YAML:",e),null}},sh=async()=>({problems:function e(t,n=!0){return Array.isArray(t)?t.map(t=>e(t,!1)):null!==t&&"object"==typeof t?Object.keys(t).reduce((s,r)=>(s[n?r:su()(r)]=e(t[r],!1),s),{}):t}((await sf("/results/metadata.yaml")).problems)});var sd=n(9499);function sp({Component:e,props:t,router:n}){let s=(0,v.wA)(),r=(0,g.useRef)(!1),i="Open Energy Benchmark",o="An open-source benchmark of optimization solvers on representative problems from the energy planning domain.",a="https://openenergybenchmark.org",l="https://openenergybenchmark.org/logo.png",c="@OETenergy";return(0,g.useEffect)(()=>{r.current||(r.current=!0,(async()=>{let e=await (0,en.KS)(),t=await sh(),n=await sh();s(et.A.setFullMetaData(t.problems));let r=Object.keys(n.problems),i=e.filter(e=>r.includes((0,en.ZA)(e))),o=r.reduce((e,t)=>({...e,[t]:n.problems[t]}),{}),a={};Object.keys(o).forEach(e=>{let t=o[e]?.size;t&&(a[e]=t)});let l={sectoralFocus:new Set,sectors:new Set,problemClasses:new Set,applications:new Set,models:new Set,modellingFrameworks:new Set};Object.keys(o).forEach(e=>{let{sectoralFocus:t,sectors:n,problemClass:s,application:r,modelName:i,modellingFramework:a}=o[e];l.sectoralFocus.add(t||sd.lg),n?n.split(",").forEach(e=>{l.sectors.add(e.trim())}):l.sectors.add(sd.lg),s&&l.problemClasses.add(s),l.applications.add(r||sd.lg),i&&l.models.add(i),l.modellingFrameworks.add(a||sd.lg)});let c=Array.from(l.sectoralFocus),u=Array.from(l.sectors),f=Array.from(l.problemClasses),h=Array.from(l.applications),d=Array.from(l.models),p=Array.from(l.modellingFrameworks),m=Array.from(new Set(Object.keys(a).map(e=>a[e])));s(et.A.setMetaData(o)),s(et.A.setBenchmarkResults(i)),s(et.A.setBenchmarkLatestResults((0,en.K$)(i))),s(et.A.setRawMetaData(o)),s(et.A.setAvailableFilterData({availableSectoralFocus:c,availableSectors:u,availableProblemClasses:f,availableApplications:h,availableModels:d,availableModellingFrameworks:p,availableProblemSizes:m,realisticOptions:[es.Q.Realistic,es.Q.Other]})),s(et.A.setRawBenchmarkResults(i)),s(W.A.setFilter({sectoralFocus:c,sectors:u,problemClass:f,application:h,modellingFramework:p,problemSize:m,realistic:[es.Q.Realistic,es.Q.Other],isReady:!0}))})())},[]),(0,g.useEffect)(()=>{let e=()=>{window.scrollTo(0,0);let e=document.querySelector("main");e&&e.scrollTo(0,0)};return n.events.on("routeChangeComplete",e),()=>{n.events.off("routeChangeComplete",e)}},[n]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(b(),{children:[(0,m.jsx)("title",{children:i}),(0,m.jsx)("meta",{name:"description",content:o}),(0,m.jsx)("meta",{name:"keywords",content:"energy benchmark, optimization algorithms, energy modeling, performance comparison, energy sectors, modeling frameworks"}),(0,m.jsx)("meta",{name:"author",content:"Open Energy Benchmark"}),(0,m.jsx)("meta",{name:"robots",content:"index, follow"}),(0,m.jsx)("meta",{name:"language",content:"EN"}),(0,m.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=5"}),(0,m.jsx)("link",{rel:"canonical",href:`${a}${n.asPath}`}),(0,m.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,m.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,m.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,m.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon.png"}),(0,m.jsx)("meta",{name:"theme-color",content:"#022b3b"}),(0,m.jsx)("meta",{property:"og:type",content:"website"}),(0,m.jsx)("meta",{property:"og:url",content:`${a}${n.asPath}`}),(0,m.jsx)("meta",{property:"og:title",content:i}),(0,m.jsx)("meta",{property:"og:description",content:o}),(0,m.jsx)("meta",{property:"og:image",content:l}),(0,m.jsx)("meta",{property:"og:image:alt",content:"Open Energy Benchmark"}),(0,m.jsx)("meta",{property:"og:site_name",content:"Open Energy Benchmark"}),(0,m.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,m.jsx)("meta",{property:"twitter:card",content:"summary_large_image"}),(0,m.jsx)("meta",{property:"twitter:url",content:`${a}${n.asPath}`}),(0,m.jsx)("meta",{property:"twitter:title",content:i}),(0,m.jsx)("meta",{property:"twitter:description",content:o}),(0,m.jsx)("meta",{property:"twitter:image",content:l}),(0,m.jsx)("meta",{property:"twitter:image:alt",content:"Open Energy Benchmark"}),c&&(0,m.jsx)("meta",{property:"twitter:site",content:c}),(0,m.jsx)("meta",{name:"format-detection",content:"telephone=no"}),(0,m.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"WebApplication",name:i,description:o,url:a,applicationCategory:"ReferenceApplication",operatingSystem:"All",publisher:{"@type":"Organization",name:"Open Energy Benchmark"}})}}),(0,m.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"Dataset",name:"Open Energy Benchmark",description:"Open benchmark of solvers for energy planning",license:"CC-BY-4.0",creator:{"@type":"Organization",name:"Open Energy Transition"}})}})]}),(0,m.jsx)(eg.default,{children:(0,m.jsx)("main",{className:`${x} bg-light-blue overflow-auto h-screen`,children:(0,m.jsx)(e,{...t})})}),(0,m.jsx)("div",{id:"re-captcha"})]})}let sm=function({Component:e,pageProps:t}){let{store:n,props:s}=em.useWrappedStore(t),r=(0,j.useRouter)();return(0,m.jsx)(v.Kq,{store:n,children:(0,m.jsx)(sp,{Component:e,props:s,router:r})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[593,792],()=>(t(92),t(9603))),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.