-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
1 lines (1 loc) · 221 KB
/
index.js
1
(()=>{var e={5534:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createLambdaAPI=void 0;const n=r(8760);const s=r(9651);const i=r(7565);const a=r(3573);const o=r(4688);const createLambdaAPI=e=>{const t=[];const r=(0,i.createServerlessFunction)({ResourceName:"LambdaFunction"},e);const c=(0,i.createFunctionUrl)({ResourceName:"FunctionUrl"},{TargetFunctionArn:`!GetAtt ${r.ResourceName}.Arn`,Cors:e.Cors});const l=(0,i.createFunctionPermission)({ResourceName:"FunctionPermission"},{Action:"lambda:InvokeFunctionUrl",Principal:"*",FunctionName:`!GetAtt ${r.ResourceName}.Arn`,FunctionUrlAuthType:"NONE"});t.push(r,c,l);if(e.Aliases&&e.Aliases?.length>0&&e.AcmCertificateArn&&e.HostedZoneId){const n=(0,a.createOAC)({ResourceName:"OAC"},{Name:`Lambda-${r.Properties.FunctionName}-OAC`,OriginAccessControlOriginType:"lambda",SigningBehavior:"never"});const i=(0,s.createCloudFront)({ResourceName:"Distribution"},{Aliases:e.Aliases,AcmCertificateArn:e.AcmCertificateArn,Comment:`Endpoint For Lambda ${r.Properties.FunctionName}`,HttpVersion:"http2",Origins:[{Id:`Lambda-${r.Properties.FunctionName}`,DomainName:`!Select [2, !Split [/, !GetAtt ${c.ResourceName}.FunctionUrl]]`,OriginAccessControlId:`!Ref ${n.ResourceName}`}],Enabled:true,DefaultCacheBehavior:{TargetOriginId:`Lambda-${r.Properties.FunctionName}`,ViewerProtocolPolicy:"redirect-to-https",AllowedMethods:["GET","HEAD","OPTIONS","PUT","POST","PATCH","DELETE"],Compress:true},...r.Properties.VpcConfig?.Ipv6AllowedForDualStack!==undefined?{IPV6Enabled:r.Properties.VpcConfig?.Ipv6AllowedForDualStack}:{}});const l=(0,o.createRecordSetGroup)({ResourceName:"RecordSetGroup"},{DNSName:`!GetAtt ${i.ResourceName}.DomainName`,HostedZoneId:e.HostedZoneId,Aliases:e.Aliases});t.push(n,i,l)}return(0,n.createTemplate)(t)};t.createLambdaAPI=createLambdaAPI},8760:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseYML=t.createTemplate=void 0;const n=r(8815);const createTemplate=e=>({AWSTemplateFormatVersion:"2010-09-09",Transform:"AWS::Serverless-2016-10-31",Description:"Generated by @deploy-actions/lambda-api",Resources:Object.fromEntries(e.map((e=>[e.ResourceName,{Type:e.Type,DependsOn:e.DependsOn,DeletionPolicy:e.DeletionPolicy,Properties:e.Properties}])))});t.createTemplate=createTemplate;const parseYML=e=>(0,n.stringify)(e).replaceAll(/"(!.*?)"/g,"$1");t.parseYML=parseYML},4037:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.createTemplateOptions=void 0;const s=n(r(8359));const i=r(4124);const a=r(3007);const o=r(5685);const c=r(2847);const l=r(8929);const u=r(4003);const f=r(8109);const d=r(7434);const createTemplateOptions=()=>({Architectures:(0,l.assertKeywordArray)((()=>e=>"x86_64"===e||"arm64"===e)(),(0,d.parseEnv)("Architectures")),AutoPublishAliasAllProperties:(0,i.assertBoolean)((0,d.parseEnv)("AutoPublishAliasAllProperties")),Description:(0,c.assertString)((0,d.parseEnv)("Description")),Environment:(0,o.assertObject)((e=>{const t=(0,o.assertObject)((e=>e))(e["Variables"]);if(t===undefined)return undefined;return{Variables:t}}))((0,d.parseEnv)("Environment")),EphemeralStorage:(0,o.assertObject)((e=>{const t=(0,a.assertNumber)(e["Size"]);if(t===undefined)return undefined;return{Size:t}}))((0,d.parseEnv)("EphemeralStorage")),InlineCode:(0,c.assertString)((0,d.parseEnv)("InlineCode")),CodeUri:(0,c.assertString)((0,d.parseEnv)("CodeUri")),ImageUri:(0,c.assertString)((0,d.parseEnv)("ImageUri")),ImageConfig:(0,o.assertObject)((e=>({Command:(0,l.assertStringArray)(e["Command"]),EntryPoint:(0,l.assertStringArray)(e["EntryPoint"]),WorkingDirectory:(0,c.assertString)(e["WorkingDirectory"])})))((0,d.parseEnv)("ImageConfig")),Handler:(0,c.assertString)((0,d.parseEnv)("Handler")),Runtime:(0,c.assertKeyword)((()=>{const e=new Set(["nodejs","nodejs4.3","nodejs6.10","nodejs8.10","nodejs10.x","nodejs12.x","nodejs14.x","nodejs16.x","java8","java8.al2","java11","python2.7","python3.6","python3.7","python3.8","python3.9","dotnetcore1.0","dotnetcore2.0","dotnetcore2.1","dotnetcore3.1","dotnet6","dotnet8","nodejs4.3-edge","go1.x","ruby2.5","ruby2.7","provided","provided.al2","nodejs18.x","python3.10","java17","ruby3.2","ruby3.3","python3.11","nodejs20.x","provided.al2023","python3.12","java21"]);return t=>true===e.has(t)})(),(0,d.parseEnv)("Runtime")),Cors:(0,o.assertObject)((e=>({AllowCredentials:(0,i.assertBoolean)(e["AllowCredentials"]),AllowHeaders:(0,l.assertStringArray)(e["AllowHeaders"]),AllowMethods:(0,l.assertStringArray)(e["AllowMethods"]),AllowOrigins:(0,l.assertStringArray)(e["AllowOrigins"]),ExposeHeaders:(0,l.assertStringArray)(e["ExposeHeaders"]),MaxAge:(0,a.assertNumber)(e["MaxAge"])})))((0,d.parseEnv)("Cors")),InvokeMode:(0,c.assertKeyword)((()=>e=>"BUFFERED"===e||"RESPONSE_STREAM"===e)(),(0,d.parseEnv)("InvokeMode")),FunctionName:(0,c.assertString)((0,d.parseEnv)("FunctionName")),KmsKeyArn:(0,c.assertString)((0,d.parseEnv)("KmsKeyArn")),Layers:(0,l.assertStringArray)((0,d.parseEnv)("Layers")),LoggingConfig:(0,o.assertObject)((e=>({ApplicationLogLevel:(0,c.assertKeyword)((()=>e=>"TRACE"===e||"DEBUG"===e||"INFO"===e||"WARN"===e||"ERROR"===e||"FATAL"===e)(),e["ApplicationLogLevel"]),LogFormat:(0,c.assertKeyword)((()=>e=>"Text"===e||"JSON"===e)(),e["LogFormat"]),LogGroup:(0,c.assertKeyword)((()=>e=>"string"===typeof e)(),e["LogGroup"]),SystemLogLevel:(0,c.assertKeyword)((()=>e=>"DEBUG"===e||"INFO"===e||"WARN"===e)(),e["SystemLogLevel"])})))((0,d.parseEnv)("LoggingConfig")),MemorySize:(0,a.assertNumber)((0,d.parseEnv)("MemorySize")),Policies:(()=>{const e=(0,d.parseEnv)("Policies");if((0,f.isNotEmptyString)(e))return e;if((0,u.isNotEmptyObject)(e))return e;if(!Array.isArray(e))return undefined;const t=e.filter((e=>(0,f.isNotEmptyString)(e)||(0,u.isNotEmptyObject)(e)));return t.length>0?t:undefined})(),ProvisionedConcurrencyConfig:(0,o.assertObject)((e=>{const t=(0,a.assertNumber)(e["ProvisionedConcurrentExecutions"]);if(t===undefined)return undefined;return{ProvisionedConcurrentExecutions:t}}))((0,d.parseEnv)("ProvisionedConcurrencyConfig")),ReservedConcurrentExecutions:(0,a.assertNumber)((0,d.parseEnv)("ReservedConcurrentExecutions")),RuntimeManagementConfig:(0,o.assertObject)((e=>{const t=(0,c.assertString)(e["RuntimeVersionArn"]);const r=(0,c.assertKeyword)((()=>e=>"Auto"===e||"FunctionUpdate"===e||"Manual"===e)(),e["UpdateRuntimeOn"])??"Auto";return{RuntimeVersionArn:t,UpdateRuntimeOn:r}}))((0,d.parseEnv)("RuntimeManagementConfig")),Timeout:(0,a.assertNumber)((0,d.parseEnv)("Timeout")),VersionDescription:(0,c.assertString)((0,d.parseEnv)("VersionDescription")),VpcConfig:(0,o.assertObject)((e=>{const t=(0,i.assertBoolean)(e["Ipv6AllowedForDualStack"]);const r=(0,l.assertStringArray)(e["SecurityGroupIds"]);const n=(0,l.assertStringArray)(e["SubnetIds"]);return{Ipv6AllowedForDualStack:t,SecurityGroupIds:r,SubnetIds:n}}))((0,d.parseEnv)("VpcConfig")),Aliases:(0,l.assertStringArray)((0,d.parseEnv)("Aliases")),HostedZoneId:(0,c.assertString)((0,d.parseEnv)("HostedZoneId")),AcmCertificateArn:(0,c.assertString)((0,d.parseEnv)("AcmCertificateArn"))});t.createTemplateOptions=createTemplateOptions},9651:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createCloudFront=void 0;const createCloudFront=({ResourceName:e,DependsOn:t},{Aliases:r,Comment:n,DefaultCacheBehavior:s,Enabled:i,HttpVersion:a,IPV6Enabled:o,Origins:c,AcmCertificateArn:l})=>({Type:"AWS::CloudFront::Distribution",ResourceName:e,DependsOn:t,Properties:{DistributionConfig:{Aliases:r,Comment:n,DefaultCacheBehavior:{...s,CachePolicyId:"4135ea2d-6df8-44a3-9df3-4b5a84be39ad",OriginRequestPolicyId:"b689b0a8-53d0-40ab-baf2-68738e2966ac"},Enabled:i,HttpVersion:a,IPV6Enabled:o,Origins:c.map((e=>({...e,CustomOriginConfig:{OriginProtocolPolicy:"https-only",OriginSSLProtocols:["TLSv1.2"]}}))),...l?{ViewerCertificate:{AcmCertificateArn:l,SslSupportMethod:"sni-only",MinimumProtocolVersion:"TLSv1.2_2021"}}:{}}}});t.createCloudFront=createCloudFront},7565:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.createFunctionPermission=t.createFunctionUrl=t.createServerlessFunction=void 0;const s=r(6982);const i=n(r(6928));const createServerlessFunction=({ResourceName:e},t)=>{const{Architectures:r,AutoPublishAliasAllProperties:n,CodeUri:a,Description:o,Environment:c,EphemeralStorage:l,FunctionName:u,Handler:f,Runtime:d,ImageConfig:h,ImageUri:p,InlineCode:m,KmsKeyArn:g,Layers:y,LoggingConfig:v,MemorySize:b,Policies:S,ProvisionedConcurrencyConfig:w,ReservedConcurrentExecutions:O,RuntimeManagementConfig:P,Timeout:A,VersionDescription:_,VpcConfig:k}=t;const E={Type:"AWS::Serverless::Function",ResourceName:e,Properties:{Architectures:r,AutoPublishAlias:"latest",AutoPublishAliasAllProperties:n,Description:o,Environment:c,EphemeralStorage:l,FunctionName:u??"lambda-api-"+(0,s.randomBytes)(10).toString("base64url"),KmsKeyArn:g,Layers:y,LoggingConfig:v,MemorySize:b,Policies:S,ProvisionedConcurrencyConfig:w,ReservedConcurrentExecutions:O,RuntimeManagementConfig:P,Timeout:A,VersionDescription:_,VpcConfig:k,PackageType:"Zip"}};if(m!==undefined){E.Properties.InlineCode=m;E.Properties.Handler=f;E.Properties.Runtime=d}else if(a!==undefined){E.Properties.Handler=f;E.Properties.Runtime=d;if(a.startsWith("s3"))E.Properties.CodeUri=a;else E.Properties.CodeUri=i.default.resolve(process.env["Root"]??process.cwd()+"../../",a)}else if(p!==undefined){E.Properties.PackageType="Image";E.Properties.ImageUri=p;E.Properties.ImageConfig=h}return E};t.createServerlessFunction=createServerlessFunction;const createFunctionUrl=({ResourceName:e,DependsOn:t},{TargetFunctionArn:r,Cors:n})=>({Type:"AWS::Lambda::Url",ResourceName:e,DependsOn:t,Properties:{AuthType:"NONE",TargetFunctionArn:r,Cors:n}});t.createFunctionUrl=createFunctionUrl;const createFunctionPermission=({ResourceName:e,DependsOn:t},{Action:r,FunctionName:n,FunctionUrlAuthType:s,Principal:i,PrincipalOrgID:a,SourceAccount:o,SourceArn:c})=>({Type:"AWS::Lambda::Permission",ResourceName:e,DependsOn:t,Properties:{Action:r,FunctionName:n,FunctionUrlAuthType:s,Principal:i,PrincipalOrgID:a,SourceAccount:o,SourceArn:c}});t.createFunctionPermission=createFunctionPermission},3573:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createOAC=void 0;const createOAC=({ResourceName:e},{Name:t,OriginAccessControlOriginType:r,SigningBehavior:n})=>({Type:"AWS::CloudFront::OriginAccessControl",ResourceName:e,Properties:{OriginAccessControlConfig:{Name:t,OriginAccessControlOriginType:r,SigningBehavior:n,SigningProtocol:"sigv4"}}});t.createOAC=createOAC},4688:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createRecordSetGroup=void 0;const createRecordSetGroup=({ResourceName:e},{HostedZoneId:t,Aliases:r,DNSName:n})=>({Type:"AWS::Route53::RecordSetGroup",ResourceName:e,Properties:{HostedZoneId:t,RecordSets:r.map((e=>({Name:e,Type:"A",AliasTarget:{DNSName:n,HostedZoneId:"Z2FDTNDATAQYW2"}})))}});t.createRecordSetGroup=createRecordSetGroup},4124:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertBoolean=void 0;const assertBoolean=e=>typeof e==="boolean"?e:undefined;t.assertBoolean=assertBoolean},3007:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertNumber=void 0;const assertNumber=e=>typeof e==="number"?e:undefined;t.assertNumber=assertNumber},5685:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertObject=void 0;const assertObject=e=>t=>typeof t==="object"&&t!==null?e(t):undefined;t.assertObject=assertObject},2847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertKeyword=t.assertString=void 0;const n=r(8109);const assertString=e=>(0,n.isNotEmptyString)(e)?e:undefined;t.assertString=assertString;const assertKeyword=(e,t)=>e(t)?t:undefined;t.assertKeyword=assertKeyword},8929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertKeywordArray=t.assertStringArray=void 0;const n=r(8109);const assertStringArray=e=>{if(!Array.isArray(e))return(0,n.isNotEmptyString)(e)?[e]:undefined;const t=e.filter(n.isNotEmptyString);return t.length>0?t:undefined};t.assertStringArray=assertStringArray;const assertKeywordArray=(e,t)=>{if(!Array.isArray(t))return e(t)?[t]:undefined;const r=t.filter(e);return r.length>0?r:undefined};t.assertKeywordArray=assertKeywordArray},4003:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isNotEmptyObject=void 0;const isNotEmptyObject=e=>typeof e==="object"&&e!==null&&Object.keys(e).length>0;t.isNotEmptyObject=isNotEmptyObject},8109:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isNotEmptyString=void 0;const isNotEmptyString=e=>typeof e==="string"&&e!=="";t.isNotEmptyString=isNotEmptyString},7434:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseEnv=void 0;const n=r(8815);const parseEnv=e=>{const t=process.env[e];if(t===undefined)return undefined;return(0,n.parse)(t)};t.parseEnv=parseEnv},6769:function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s))e[s]=t[s]}return e};return n.apply(this,arguments)};var s=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],a;try{while((t===void 0||t-- >0)&&!(s=n.next()).done)i.push(s.value)}catch(e){a={error:e}}finally{try{if(s&&!s.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return i};var i=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.LlmSchemaSeparator=void 0;var a=r(8492);var o;(function(e){e.parameters=function(t){var r=t.parameters.map(e.schema(t.predicator));return{llm:r.map((function(e,t){var r=s(e,1),n=r[0];return{index:t,schema:n}})).filter((function(e){var t=e.schema;return t!==null})),human:r.map((function(e,t){var r=s(e,2),n=r[1];return{index:t,schema:n}})).filter((function(e){var t=e.schema;return t!==null}))}};e.schema=function(e){return function(t){if(e(t)===true)return[null,t];else if(a.LlmTypeChecker.isUnknown(t)||a.LlmTypeChecker.isOneOf(t))return[t,null];else if(a.LlmTypeChecker.isObject(t))return separateObject(e)(t);else if(a.LlmTypeChecker.isArray(t))return separateArray(e)(t);return[t,null]}};var separateArray=function(t){return function(r){var i=s(e.schema(t)(r.items),2),a=i[0],o=i[1];return[a!==null?n(n({},r),{items:a}):null,o!==null?n(n({},r),{items:o}):null]}};var separateObject=function(t){return function(r){var a,o;var c,l;if(!!r.additionalProperties||Object.keys((c=r.properties)!==null&&c!==void 0?c:{}).length===0)return[r,null];var u=n(n({},r),{properties:{}});var f=n(n({},r),{properties:{}});try{for(var d=i(Object.entries((l=r.properties)!==null&&l!==void 0?l:{})),h=d.next();!h.done;h=d.next()){var p=s(h.value,2),m=p[0],g=p[1];var y=s(e.schema(t)(g),2),v=y[0],b=y[1];if(v!==null)u.properties[m]=v;if(b!==null)f.properties[m]=b}}catch(e){a={error:e}}finally{try{if(h&&!h.done&&(o=d.return))o.call(d)}finally{if(a)throw a.error}}return[Object.keys(u.properties).length===0?null:shrinkRequired(u),Object.keys(f.properties).length===0?null:shrinkRequired(f)]}};var shrinkRequired=function(e){if(e.required!==undefined)e.required=e.required.filter((function(t){var r;return((r=e.properties)===null||r===void 0?void 0:r[t])!==undefined}));return e}})(o||(t.LlmSchemaSeparator=o={}))},8492:function(e,t){"use strict";var r=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],a;try{while((t===void 0||t-- >0)&&!(s=n.next()).done)i.push(s.value)}catch(e){a={error:e}}finally{try{if(s&&!s.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return i};Object.defineProperty(t,"__esModule",{value:true});t.LlmTypeChecker=void 0;var s;(function(e){e.visit=function(t,s){var i,a;var o;s(t);if(e.isOneOf(t))t.oneOf.forEach((function(t){return e.visit(t,s)}));else if(e.isObject(t)){try{for(var c=r(Object.entries((o=t.properties)!==null&&o!==void 0?o:{})),l=c.next();!l.done;l=c.next()){var u=n(l.value,2),f=u[0],d=u[1];e.visit(d,s)}}catch(e){i={error:e}}finally{try{if(l&&!l.done&&(a=c.return))a.call(c)}finally{if(i)throw i.error}}if(typeof t.additionalProperties==="object"&&t.additionalProperties!==null)e.visit(t.additionalProperties,s)}else if(e.isArray(t))e.visit(t.items,s)};e.isOneOf=function(e){return e.oneOf!==undefined};e.isObject=function(e){return e.type==="object"};e.isArray=function(e){return e.type==="array"};e.isBoolean=function(e){return e.type==="boolean"};e.isInteger=function(e){return e.type==="integer"};e.isNumber=function(e){return e.type==="number"};e.isString=function(e){return e.type==="string"};e.isNullOnly=function(e){return e.type==="null"};e.isNullable=function(t){return!e.isUnknown(t)&&(e.isNullOnly(t)||(e.isOneOf(t)?t.oneOf.some(e.isNullable):t.nullable===true))};e.isUnknown=function(t){return!e.isOneOf(t)&&t.type===undefined}})(s||(t.LlmTypeChecker=s={}))},4317:e=>{"use strict";class SubRange{constructor(e,t){this.low=e;this.high=t;this.length=1+t-e}overlaps(e){return!(this.high<e.low||this.low>e.high)}touches(e){return!(this.high+1<e.low||this.low-1>e.high)}add(e){return new SubRange(Math.min(this.low,e.low),Math.max(this.high,e.high))}subtract(e){if(e.low<=this.low&&e.high>=this.high){return[]}else if(e.low>this.low&&e.high<this.high){return[new SubRange(this.low,e.low-1),new SubRange(e.high+1,this.high)]}else if(e.low<=this.low){return[new SubRange(e.high+1,this.high)]}else{return[new SubRange(this.low,e.low-1)]}}toString(){return this.low==this.high?this.low.toString():this.low+"-"+this.high}}class DRange{constructor(e,t){this.ranges=[];this.length=0;if(e!=null)this.add(e,t)}_update_length(){this.length=this.ranges.reduce(((e,t)=>e+t.length),0)}add(e,t){var _add=e=>{var t=0;while(t<this.ranges.length&&!e.touches(this.ranges[t])){t++}var r=this.ranges.slice(0,t);while(t<this.ranges.length&&e.touches(this.ranges[t])){e=e.add(this.ranges[t]);t++}r.push(e);this.ranges=r.concat(this.ranges.slice(t));this._update_length()};if(e instanceof DRange){e.ranges.forEach(_add)}else{if(t==null)t=e;_add(new SubRange(e,t))}return this}subtract(e,t){var _subtract=e=>{var t=0;while(t<this.ranges.length&&!e.overlaps(this.ranges[t])){t++}var r=this.ranges.slice(0,t);while(t<this.ranges.length&&e.overlaps(this.ranges[t])){r=r.concat(this.ranges[t].subtract(e));t++}this.ranges=r.concat(this.ranges.slice(t));this._update_length()};if(e instanceof DRange){e.ranges.forEach(_subtract)}else{if(t==null)t=e;_subtract(new SubRange(e,t))}return this}intersect(e,t){var r=[];var _intersect=e=>{var t=0;while(t<this.ranges.length&&!e.overlaps(this.ranges[t])){t++}while(t<this.ranges.length&&e.overlaps(this.ranges[t])){var n=Math.max(this.ranges[t].low,e.low);var s=Math.min(this.ranges[t].high,e.high);r.push(new SubRange(n,s));t++}};if(e instanceof DRange){e.ranges.forEach(_intersect)}else{if(t==null)t=e;_intersect(new SubRange(e,t))}this.ranges=r;this._update_length();return this}index(e){var t=0;while(t<this.ranges.length&&this.ranges[t].length<=e){e-=this.ranges[t].length;t++}return this.ranges[t].low+e}toString(){return"[ "+this.ranges.join(", ")+" ]"}clone(){return new DRange(this)}numbers(){return this.ranges.reduce(((e,t)=>{var r=t.low;while(r<=t.high){e.push(r);r++}return e}),[])}subranges(){return this.ranges.map((e=>({low:e.low,high:e.high,length:1+e.high-e.low})))}}e.exports=DRange},6768:(e,t,r)=>{const n=r(7783);const s=r(4317);const i=n.types;e.exports=class RandExp{constructor(e,t){this._setDefaults(e);if(e instanceof RegExp){this.ignoreCase=e.ignoreCase;this.multiline=e.multiline;e=e.source}else if(typeof e==="string"){this.ignoreCase=t&&t.indexOf("i")!==-1;this.multiline=t&&t.indexOf("m")!==-1}else{throw new Error("Expected a regexp or string")}this.tokens=n(e)}_setDefaults(e){this.max=e.max!=null?e.max:RandExp.prototype.max!=null?RandExp.prototype.max:100;this.defaultRange=e.defaultRange?e.defaultRange:this.defaultRange.clone();if(e.randInt){this.randInt=e.randInt}}gen(){return this._gen(this.tokens,[])}_gen(e,t){var r,n,s,a,o;switch(e.type){case i.ROOT:case i.GROUP:if(e.followedBy||e.notFollowedBy){return""}if(e.remember&&e.groupNumber===undefined){e.groupNumber=t.push(null)-1}r=e.options?this._randSelect(e.options):e.stack;n="";for(a=0,o=r.length;a<o;a++){n+=this._gen(r[a],t)}if(e.remember){t[e.groupNumber]=n}return n;case i.POSITION:return"";case i.SET:var c=this._expand(e);if(!c.length){return""}return String.fromCharCode(this._randSelect(c));case i.REPETITION:s=this.randInt(e.min,e.max===Infinity?e.min+this.max:e.max);n="";for(a=0;a<s;a++){n+=this._gen(e.value,t)}return n;case i.REFERENCE:return t[e.value-1]||"";case i.CHAR:var l=this.ignoreCase&&this._randBool()?this._toOtherCase(e.value):e.value;return String.fromCharCode(l)}}_toOtherCase(e){return e+(97<=e&&e<=122?-32:65<=e&&e<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(e){if(e instanceof s){return e.index(this.randInt(0,e.length-1))}return e[this.randInt(0,e.length-1)]}_expand(e){if(e.type===n.types.CHAR){return new s(e.value)}else if(e.type===n.types.RANGE){return new s(e.from,e.to)}else{let t=new s;for(let r=0;r<e.set.length;r++){let n=this._expand(e.set[r]);t.add(n);if(this.ignoreCase){for(let e=0;e<n.length;e++){let r=n.index(e);let s=this._toOtherCase(r);if(r!==s){t.add(s)}}}}if(e.not){return this.defaultRange.clone().subtract(t)}else{return this.defaultRange.clone().intersect(t)}}}randInt(e,t){return e+Math.floor(Math.random()*(1+t-e))}get defaultRange(){return this._range=this._range||new s(32,126)}set defaultRange(e){this._range=e}static randexp(e,t){var r;if(typeof e==="string"){e=new RegExp(e,t)}if(e._randexp===undefined){r=new RandExp(e,t);e._randexp=r}else{r=e._randexp;r._setDefaults(e)}return r.gen()}static sugar(){RegExp.prototype.gen=function(){return RandExp.randexp(this)}}}},7783:(e,t,r)=>{const n=r(6183);const s=r(254);const i=r(454);const a=r(9539);e.exports=e=>{var t=0,r,o,c={type:s.ROOT,stack:[]},l=c,u=c.stack,f=[];var repeatErr=t=>{n.error(e,`Nothing to repeat at column ${t-1}`)};var d=n.strToChars(e);r=d.length;while(t<r){o=d[t++];switch(o){case"\\":o=d[t++];switch(o){case"b":u.push(a.wordBoundary());break;case"B":u.push(a.nonWordBoundary());break;case"w":u.push(i.words());break;case"W":u.push(i.notWords());break;case"d":u.push(i.ints());break;case"D":u.push(i.notInts());break;case"s":u.push(i.whitespace());break;case"S":u.push(i.notWhitespace());break;default:if(/\d/.test(o)){u.push({type:s.REFERENCE,value:parseInt(o,10)})}else{u.push({type:s.CHAR,value:o.charCodeAt(0)})}}break;case"^":u.push(a.begin());break;case"$":u.push(a.end());break;case"[":var h;if(d[t]==="^"){h=true;t++}else{h=false}var p=n.tokenizeClass(d.slice(t),e);t+=p[1];u.push({type:s.SET,set:p[0],not:h});break;case".":u.push(i.anyChar());break;case"(":var m={type:s.GROUP,stack:[],remember:true};o=d[t];if(o==="?"){o=d[t+1];t+=2;if(o==="="){m.followedBy=true}else if(o==="!"){m.notFollowedBy=true}else if(o!==":"){n.error(e,`Invalid group, character '${o}'`+` after '?' at column ${t-1}`)}m.remember=false}u.push(m);f.push(l);l=m;u=m.stack;break;case")":if(f.length===0){n.error(e,`Unmatched ) at column ${t-1}`)}l=f.pop();u=l.options?l.options[l.options.length-1]:l.stack;break;case"|":if(!l.options){l.options=[l.stack];delete l.stack}var g=[];l.options.push(g);u=g;break;case"{":var y=/^(\d+)(,(\d+)?)?\}/.exec(d.slice(t)),v,b;if(y!==null){if(u.length===0){repeatErr(t)}v=parseInt(y[1],10);b=y[2]?y[3]?parseInt(y[3],10):Infinity:v;t+=y[0].length;u.push({type:s.REPETITION,min:v,max:b,value:u.pop()})}else{u.push({type:s.CHAR,value:123})}break;case"?":if(u.length===0){repeatErr(t)}u.push({type:s.REPETITION,min:0,max:1,value:u.pop()});break;case"+":if(u.length===0){repeatErr(t)}u.push({type:s.REPETITION,min:1,max:Infinity,value:u.pop()});break;case"*":if(u.length===0){repeatErr(t)}u.push({type:s.REPETITION,min:0,max:Infinity,value:u.pop()});break;default:u.push({type:s.CHAR,value:o.charCodeAt(0)})}}if(f.length!==0){n.error(e,"Unterminated group")}return c};e.exports.types=s},9539:(e,t,r)=>{const n=r(254);t.wordBoundary=()=>({type:n.POSITION,value:"b"});t.nonWordBoundary=()=>({type:n.POSITION,value:"B"});t.begin=()=>({type:n.POSITION,value:"^"});t.end=()=>({type:n.POSITION,value:"$"})},454:(e,t,r)=>{const n=r(254);const INTS=()=>[{type:n.RANGE,from:48,to:57}];const WORDS=()=>[{type:n.CHAR,value:95},{type:n.RANGE,from:97,to:122},{type:n.RANGE,from:65,to:90}].concat(INTS());const WHITESPACE=()=>[{type:n.CHAR,value:9},{type:n.CHAR,value:10},{type:n.CHAR,value:11},{type:n.CHAR,value:12},{type:n.CHAR,value:13},{type:n.CHAR,value:32},{type:n.CHAR,value:160},{type:n.CHAR,value:5760},{type:n.RANGE,from:8192,to:8202},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233},{type:n.CHAR,value:8239},{type:n.CHAR,value:8287},{type:n.CHAR,value:12288},{type:n.CHAR,value:65279}];const NOTANYCHAR=()=>[{type:n.CHAR,value:10},{type:n.CHAR,value:13},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233}];t.words=()=>({type:n.SET,set:WORDS(),not:false});t.notWords=()=>({type:n.SET,set:WORDS(),not:true});t.ints=()=>({type:n.SET,set:INTS(),not:false});t.notInts=()=>({type:n.SET,set:INTS(),not:true});t.whitespace=()=>({type:n.SET,set:WHITESPACE(),not:false});t.notWhitespace=()=>({type:n.SET,set:WHITESPACE(),not:true});t.anyChar=()=>({type:n.SET,set:NOTANYCHAR(),not:true})},254:e=>{e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},6183:(e,t,r)=>{const n=r(254);const s=r(454);const i="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?";const a={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){var t=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;e=e.replace(t,(function(e,t,r,n,s,o,c,l){if(r){return e}var u=t?8:n?parseInt(n,16):s?parseInt(s,16):o?parseInt(o,8):c?i.indexOf(c):a[l];var f=String.fromCharCode(u);if(/[[\]{}^$.|?*+()]/.test(f)){f="\\"+f}return f}));return e};t.tokenizeClass=(e,r)=>{var i=[];var a=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;var o,c;while((o=a.exec(e))!=null){if(o[1]){i.push(s.words())}else if(o[2]){i.push(s.ints())}else if(o[3]){i.push(s.whitespace())}else if(o[4]){i.push(s.notWords())}else if(o[5]){i.push(s.notInts())}else if(o[6]){i.push(s.notWhitespace())}else if(o[7]){i.push({type:n.RANGE,from:(o[8]||o[9]).charCodeAt(0),to:o[10].charCodeAt(0)})}else if(c=o[12]){i.push({type:n.CHAR,value:c.charCodeAt(0)})}else{return[i,a.lastIndex]}}t.error(r,"Unterminated character class")};t.error=(e,t)=>{throw new SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},990:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},3553:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},4158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},4263:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},4707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},2398:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},4795:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},7431:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},6310:function(e,t){"use strict";var r=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.TypeGuardError=void 0;var n=function(e){r(TypeGuardError,e);function TypeGuardError(t){var r=this.constructor;var n=e.call(this,t.message||"Error on ".concat(t.method,"(): invalid type").concat(t.path?" on ".concat(t.path):"",", expect to be ").concat(t.expected))||this;var s=r.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(n,s);else n.__proto__=s;n.method=t.method;n.path=t.path;n.expected=t.expected;n.value=t.value;return n}return TypeGuardError}(Error);t.TypeGuardError=n},8922:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.validateEqualsReturn=t.validateEqualsParameters=t.validateEqualsFunction=t.validateReturn=t.validateParameters=t.validateFunction=t.equalsReturn=t.equalsParameters=t.equalsFunction=t.isReturn=t.isParameters=t.isFunction=t.assertEqualsReturn=t.assertEqualsParameters=t.assertEqualsFunction=t.assertReturn=t.assertParameters=t.assertFunction=void 0;var a=i(r(8097));function assertFunction(){halt("assertFunction")}var o=Object.assign(assertFunction,a.assert("functional.assertFunction"),a.functional.functionalAssert());t.assertFunction=o;function assertParameters(){halt("assertParameters")}var c=Object.assign(assertFunction,a.assert("functional.assertFunction"),a.functional.functionalAssert());t.assertParameters=c;function assertReturn(){halt("assertReturn")}var l=Object.assign(assertReturn,a.assert("functional.assertReturn"),a.functional.functionalAssert());t.assertReturn=l;function assertEqualsFunction(){halt("assertEqualsFunction")}var u=Object.assign(assertEqualsFunction,a.assert("functional.assertEqualsFunction"),a.functional.functionalAssert());t.assertEqualsFunction=u;function assertEqualsParameters(){halt("assertEqualsParameters")}var f=Object.assign(assertEqualsParameters,a.assert("functional.assertEqualsParameters"),a.functional.functionalAssert());t.assertEqualsParameters=f;function assertEqualsReturn(){halt("assertEqualsReturn")}var d=Object.assign(assertEqualsReturn,a.assert("functional.assertEqualsReturn"),a.functional.functionalAssert());t.assertEqualsReturn=d;function isFunction(){halt("isFunction")}var h=Object.assign(isFunction,a.is());t.isFunction=h;function isParameters(){halt("isParameters")}var p=Object.assign(isParameters,a.is());t.isParameters=p;function isReturn(){halt("isReturn")}var m=Object.assign(isReturn,a.is());t.isReturn=m;function equalsFunction(){halt("equalsFunction")}var g=Object.assign(equalsFunction,a.is());t.equalsFunction=g;function equalsParameters(){halt("equalsParameters")}var y=Object.assign(equalsParameters,a.is());t.equalsParameters=y;function equalsReturn(){halt("equalsReturn")}var v=Object.assign(equalsReturn,a.is());t.equalsReturn=v;function validateFunction(){halt("validateFunction")}var b=Object.assign(validateFunction,a.validate());t.validateFunction=b;function validateParameters(){halt("validateReturn")}var S=Object.assign(validateParameters,a.validate());t.validateParameters=S;function validateReturn(){halt("validateReturn")}var w=Object.assign(validateReturn,a.validate());t.validateReturn=w;function validateEqualsFunction(){halt("validateEqualsFunction")}var O=Object.assign(validateEqualsFunction,a.validate());t.validateEqualsFunction=O;function validateEqualsParameters(){halt("validateEqualsParameters")}var P=Object.assign(validateEqualsParameters,a.validate());t.validateEqualsParameters=P;function validateEqualsReturn(){halt("validateEqualsReturn")}var A=Object.assign(validateEqualsReturn,a.validate());t.validateEqualsReturn=A;function halt(e){throw new Error("Error on typia.functional.".concat(e,"(): no transform has been configured. Read and follow https://typia.io/docs/setup please."))}},8662:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.file=t.blob=t.array=t.string=t.bigint=t.number=t.boolean=void 0;var boolean=function(e){return e instanceof File?e:e===null?undefined:e==="null"?null:e.length===0?true:e==="true"||e==="1"?true:e==="false"||e==="0"?false:e};t.boolean=boolean;var number=function(e){return e instanceof File?e:!!(e===null||e===void 0?void 0:e.length)?e==="null"?null:toNumber(e):undefined};t.number=number;var bigint=function(e){return e instanceof File?e:!!(e===null||e===void 0?void 0:e.length)?e==="null"?null:toBigint(e):undefined};t.bigint=bigint;var string=function(e){return e instanceof File?e:e===null?undefined:e==="null"?null:e};t.string=string;var array=function(e,t){return e.length?e:t};t.array=array;var blob=function(e){return e instanceof Blob?e:e===null?undefined:e==="null"?null:e};t.blob=blob;var file=function(e){return e instanceof File?e:e===null?undefined:e==="null"?null:e};t.file=file;var toNumber=function(e){var t=Number(e);return isNaN(t)?e:t};var toBigint=function(e){try{return BigInt(e)}catch(t){return e}}},3955:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.$FormDataReader=void 0;t.$FormDataReader=i(r(8662))},686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.string=t.number=t.bigint=t.boolean=void 0;var boolean=function(e){return e!==undefined?e==="true"?true:e==="false"?false:e:undefined};t.boolean=boolean;var bigint=function(e){return e!==undefined?toBigint(e):undefined};t.bigint=bigint;var number=function(e){return e!==undefined?toNumber(e):undefined};t.number=number;var string=function(e){return e};t.string=string;var toBigint=function(e){try{return BigInt(e)}catch(t){return e}};var toNumber=function(e){var t=Number(e);return isNaN(t)?e:t}},9303:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.$HeadersReader=void 0;t.$HeadersReader=i(r(686))},3144:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.string=t.number=t.bigint=t.boolean=void 0;var boolean=function(e){return e!=="null"?e==="true"||e==="1"?true:e==="false"||e==="0"?false:e:null};t.boolean=boolean;var bigint=function(e){return e!=="null"?toBigint(e):null};t.bigint=bigint;var number=function(e){return e!=="null"?toNumber(e):null};t.number=number;var string=function(e){return e!=="null"?e:null};t.string=string;var toNumber=function(e){var t=Number(e);return isNaN(t)?e:t};var toBigint=function(e){try{return BigInt(e)}catch(t){return e}}},3362:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.$ParameterReader=void 0;t.$ParameterReader=i(r(3144))},5273:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.$ProtobufReader=void 0;var n=r(6040);var s=function(){function $ProtobufReader(e){this.buf=e;this.ptr=0;this.view=new DataView(e.buffer,e.byteOffset,e.byteLength)}$ProtobufReader.prototype.index=function(){return this.ptr};$ProtobufReader.prototype.size=function(){return this.buf.length};$ProtobufReader.prototype.uint32=function(){return this.varint32()};$ProtobufReader.prototype.int32=function(){return this.varint32()};$ProtobufReader.prototype.sint32=function(){var e=this.varint32();return e>>>1^-(e&1)};$ProtobufReader.prototype.uint64=function(){return this.varint64()};$ProtobufReader.prototype.int64=function(){return this.varint64()};$ProtobufReader.prototype.sint64=function(){var e=this.varint64();return e>>BigInt(1)^-(e&BigInt(1))};$ProtobufReader.prototype.bool=function(){return this.varint32()!==0};$ProtobufReader.prototype.float=function(){var e=this.view.getFloat32(this.ptr,true);this.ptr+=4;return e};$ProtobufReader.prototype.double=function(){var e=this.view.getFloat64(this.ptr,true);this.ptr+=8;return e};$ProtobufReader.prototype.bytes=function(){var e=this.uint32();var t=this.ptr;this.ptr+=e;return this.buf.subarray(t,t+e)};$ProtobufReader.prototype.string=function(){return i.get().decode(this.bytes())};$ProtobufReader.prototype.skip=function(e){if(e===0)while(this.u8()&128);else{if(this.index()+e>this.size())throw new Error("Error on typia.protobuf.decode(): buffer overflow.");this.ptr+=e}};$ProtobufReader.prototype.skipType=function(e){switch(e){case 0:this.skip(0);break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:while((e=this.uint32()&7)!==4)this.skipType(e);break;case 5:this.skip(4);break;default:throw new Error("Invalid wire type ".concat(e," at offset ").concat(this.ptr,"."))}};$ProtobufReader.prototype.varint32=function(){var e;var t;t=(e=this.u8())&127;if(e<128)return t;t|=((e=this.u8())&127)<<7;if(e<128)return t;t|=((e=this.u8())&127)<<14;if(e<128)return t;t|=((e=this.u8())&127)<<21;if(e<128)return t;t|=((e=this.u8())&15)<<28;if(e<128)return t;if(this.u8()<128)return t;if(this.u8()<128)return t;if(this.u8()<128)return t;if(this.u8()<128)return t;if(this.u8()<128)return t;return t};$ProtobufReader.prototype.varint64=function(){var e;var t;t=(e=this.u8n())&BigInt(127);if(e<BigInt(128))return t;t|=((e=this.u8n())&BigInt(127))<<BigInt(7);if(e<BigInt(128))return t;t|=((e=this.u8n())&BigInt(127))<<BigInt(14);if(e<BigInt(128))return t;t|=((e=this.u8n())&BigInt(127))<<BigInt(21);if(e<BigInt(128))return t;t|=((e=this.u8n())&BigInt(127))<<BigInt(28);if(e<BigInt(128))return t;t|=((e=this.u8n())&BigInt(127))<<BigInt(35);if(e<BigInt(128))return t;t|=((e=this.u8n())&BigInt(127))<<BigInt(42);if(e<BigInt(128))return t;t|=((e=this.u8n())&BigInt(127))<<BigInt(49);if(e<BigInt(128))return t;t|=((e=this.u8n())&BigInt(127))<<BigInt(56);if(e<BigInt(128))return t;t|=(this.u8n()&BigInt(1))<<BigInt(63);return BigInt.asIntN(64,t)};$ProtobufReader.prototype.u8=function(){return this.view.getUint8(this.ptr++)};$ProtobufReader.prototype.u8n=function(){return BigInt(this.u8())};return $ProtobufReader}();t.$ProtobufReader=s;var i=new n.Singleton((function(){return new TextDecoder("utf-8")}))},3085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.$ProtobufSizer=void 0;var n=r(9227);var s=function(){function $ProtobufSizer(e){if(e===void 0){e=0}this.len=e;this.pos=[];this.varlen=[];this.varlenidx=[]}$ProtobufSizer.prototype.bool=function(){this.len+=1};$ProtobufSizer.prototype.int32=function(e){if(e<0){this.len+=10}else{this.varint32(e)}};$ProtobufSizer.prototype.sint32=function(e){this.varint32(e<<1^e>>31)};$ProtobufSizer.prototype.uint32=function(e){this.varint32(e)};$ProtobufSizer.prototype.int64=function(e){this.varint64(typeof e==="number"?BigInt(e):e)};$ProtobufSizer.prototype.sint64=function(e){if(typeof e==="number")e=BigInt(e);this.varint64(e<<BigInt(1)^e>>BigInt(63))};$ProtobufSizer.prototype.uint64=function(e){this.varint64(typeof e==="number"?BigInt(e):e)};$ProtobufSizer.prototype.float=function(e){this.len+=4};$ProtobufSizer.prototype.double=function(e){this.len+=8};$ProtobufSizer.prototype.bytes=function(e){this.uint32(e.byteLength);this.len+=e.byteLength};$ProtobufSizer.prototype.string=function(e){var t=(0,n.$strlen)(e);this.varlen.push(t);this.uint32(t);this.len+=t};$ProtobufSizer.prototype.fork=function(){this.pos.push(this.len);this.varlenidx.push(this.varlen.length);this.varlen.push(0)};$ProtobufSizer.prototype.ldelim=function(){if(!(this.pos.length&&this.varlenidx.length))throw new Error("Error on typia.protobuf.encode(): missing fork() before ldelim() call.");var e=this.len;var t=this.pos.pop();var r=this.varlenidx.pop();var n=e-t;this.varlen[r]=n;this.uint32(n)};$ProtobufSizer.prototype.reset=function(){this.len=0;this.pos.length=0;this.varlen.length=0;this.varlenidx.length=0};$ProtobufSizer.prototype.varint32=function(e){this.len+=e<0?10:e<128?1:e<16384?2:e<2097152?3:e<268435456?4:5};$ProtobufSizer.prototype.varint64=function(e){e=BigInt.asUintN(64,e);while(e>BigInt(127)){++this.len;e=e>>BigInt(7)}++this.len};return $ProtobufSizer}();t.$ProtobufSizer=s},7189:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.$ProtobufWriter=void 0;var n=r(6040);var s=function(){function $ProtobufWriter(e){this.sizer=e;this.buf=new Uint8Array(e.len);this.view=new DataView(this.buf.buffer);this.ptr=0;this.varlenidx=0}$ProtobufWriter.prototype.buffer=function(){return this.buf};$ProtobufWriter.prototype.bool=function(e){this.byte(e?1:0)};$ProtobufWriter.prototype.byte=function(e){this.buf[this.ptr++]=e&255};$ProtobufWriter.prototype.int32=function(e){if(e<0)this.int64(e);else this.variant32(e>>>0)};$ProtobufWriter.prototype.sint32=function(e){this.variant32(e<<1^e>>31)};$ProtobufWriter.prototype.uint32=function(e){this.variant32(e)};$ProtobufWriter.prototype.sint64=function(e){e=BigInt(e);this.variant64(e<<BigInt(1)^e>>BigInt(63))};$ProtobufWriter.prototype.int64=function(e){this.variant64(BigInt(e))};$ProtobufWriter.prototype.uint64=function(e){this.variant64(BigInt(e))};$ProtobufWriter.prototype.float=function(e){this.view.setFloat32(this.ptr,e,true);this.ptr+=4};$ProtobufWriter.prototype.double=function(e){this.view.setFloat64(this.ptr,e,true);this.ptr+=8};$ProtobufWriter.prototype.bytes=function(e){this.uint32(e.byteLength);for(var t=0;t<e.byteLength;t++)this.buf[this.ptr++]=e[t]};$ProtobufWriter.prototype.string=function(e){var t=this.varlen();this.uint32(t);var r=i.get().encode(e);for(var n=0;n<r.byteLength;n++)this.buf[this.ptr++]=r[n]};$ProtobufWriter.prototype.fork=function(){this.uint32(this.varlen())};$ProtobufWriter.prototype.ldelim=function(){};$ProtobufWriter.prototype.finish=function(){return this.buf};$ProtobufWriter.prototype.reset=function(){this.buf=new Uint8Array(this.sizer.len);this.view=new DataView(this.buf.buffer);this.ptr=0;this.varlenidx=0};$ProtobufWriter.prototype.variant32=function(e){while(e>127){this.buf[this.ptr++]=e&127|128;e=e>>>7}this.buf[this.ptr++]=e};$ProtobufWriter.prototype.variant64=function(e){e=BigInt.asUintN(64,e);while(e>BigInt(127)){this.buf[this.ptr++]=Number(e&BigInt(127)|BigInt(128));e=e>>BigInt(7)}this.buf[this.ptr++]=Number(e)};$ProtobufWriter.prototype.varlen=function(){return this.varlenidx>=this.sizer.varlen.length?0:this.sizer.varlen[this.varlenidx++]};return $ProtobufWriter}();t.$ProtobufWriter=s;var i=new n.Singleton((function(){return new TextEncoder}))},570:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.array=t.params=t.string=t.bigint=t.number=t.boolean=void 0;var boolean=function(e){return e===null?undefined:e==="null"?null:e.length===0?true:e==="true"||e==="1"?true:e==="false"||e==="0"?false:e};t.boolean=boolean;var number=function(e){return!!(e===null||e===void 0?void 0:e.length)?e==="null"?null:toNumber(e):undefined};t.number=number;var bigint=function(e){return!!(e===null||e===void 0?void 0:e.length)?e==="null"?null:toBigint(e):undefined};t.bigint=bigint;var string=function(e){return e===null?undefined:e==="null"?null:e};t.string=string;var params=function(e){if(typeof e==="string"){var t=e.indexOf("?");e=t===-1?"":e.substring(t+1);return new URLSearchParams(e)}return e};t.params=params;var array=function(e,t){return e.length?e:t};t.array=array;var toNumber=function(e){var t=Number(e);return isNaN(t)?e:t};var toBigint=function(e){try{return BigInt(e)}catch(t){return e}}},5809:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.$QueryReader=void 0;t.$QueryReader=i(r(570))},9619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.$any=void 0;var n=r(4116);var $any=function(e){return(0,n.$clone)(e)};t.$any=$any},4116:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],a;try{while((t===void 0||t-- >0)&&!(s=n.next()).done)i.push(s.value)}catch(e){a={error:e}}finally{try{if(s&&!s.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return i};var n=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,i;n<s;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:true});t.$clone=void 0;var $clone=function(e){return $cloneMain(e)};t.$clone=$clone;var $cloneMain=function(e){if(e===undefined)return undefined;else if(typeof e==="object")if(e===null)return null;else if(Array.isArray(e))return e.map($cloneMain);else if(e instanceof Date)return new Date(e);else if(e instanceof Uint8Array)return new Uint8Array(e);else if(e instanceof Uint8ClampedArray)return new Uint8ClampedArray(e);else if(e instanceof Uint16Array)return new Uint16Array(e);else if(e instanceof Uint32Array)return new Uint32Array(e);else if(e instanceof BigUint64Array)return new BigUint64Array(e);else if(e instanceof Int8Array)return new Int8Array(e);else if(e instanceof Int16Array)return new Int16Array(e);else if(e instanceof Int32Array)return new Int32Array(e);else if(e instanceof BigInt64Array)return new BigInt64Array(e);else if(e instanceof Float32Array)return new Float32Array(e);else if(e instanceof Float64Array)return new Float64Array(e);else if(e instanceof ArrayBuffer)return e.slice(0);else if(e instanceof SharedArrayBuffer)return e.slice(0);else if(e instanceof DataView)return new DataView(e.buffer.slice(0));else if(typeof File!=="undefined"&&e instanceof File)return new File([e],e.name,{type:e.type});else if(typeof Blob!=="undefined"&&e instanceof Blob)return new Blob([e],{type:e.type});else if(e instanceof Set)return new Set(n([],r(e),false).map($cloneMain));else if(e instanceof Map)return new Map(n([],r(e),false).map((function(e){var t=r(e,2),n=t[0],s=t[1];return[$cloneMain(n),$cloneMain(s)]})));else if(e instanceof WeakSet||e instanceof WeakMap)throw new Error("WeakSet and WeakMap are not supported");else if(e.valueOf()!==e)return $cloneMain(e.valueOf());else return Object.fromEntries(Object.entries(e).map((function(e){var t=r(e,2),n=t[0],s=t[1];return[n,$cloneMain(s)]})).filter((function(e){var t=r(e,2),n=t[1];return n!==undefined})));else if(typeof e==="function")return undefined;return e}},8526:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],a;try{while((t===void 0||t-- >0)&&!(s=n.next()).done)i.push(s.value)}catch(e){a={error:e}}finally{try{if(s&&!s.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return i};Object.defineProperty(t,"__esModule",{value:true});t.$convention=void 0;var $convention=function(e){var main=function(e){if(typeof e==="object")if(e===null)return null;else if(Array.isArray(e))return e.map(main);else if(e instanceof Boolean||e instanceof BigInt||e instanceof Number||e instanceof String)return e.valueOf();else if(e instanceof Date)return new Date(e);else if(e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof BigUint64Array||e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof BigInt64Array||e instanceof Float32Array||e instanceof Float64Array||e instanceof DataView)return e;else return object(e);return e};var object=function(t){return Object.fromEntries(Object.entries(t).map((function(t){var n=r(t,2),s=n[0],i=n[1];return[e(s),main(i)]})))};return main};t.$convention=$convention},146:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.$every=void 0;var $every=function(e,t){var r=null;for(var n=0;n<e.length;++n)if(null!==(r=t(e[n],n)))return r;return null};t.$every=$every},9048:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.$guard=void 0;var n=r(6310);var $guard=function(e){return function(t,r,s){if(t===true)throw(s!==null&&s!==void 0?s:function(e){return new n.TypeGuardError(e)})({method:e,path:r.path,expected:r.expected,value:r.value});return false}};t.$guard=$guard},7206:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.$is_between=void 0;var $is_between=function(e,t,r){return t<=e&&e<=r};t.$is_between=$is_between},3745:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.$join=void 0;var $join=function(e){return variable(e)?".".concat(e):"[".concat(JSON.stringify(e),"]")};t.$join=$join;var variable=function(e){return reserved(e)===false&&/^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(e)};var reserved=function(e){return r.has(e)};var r=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"])},4756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.$number=void 0;var n=r(6310);var $number=function(e){if(isFinite(e)===false)throw new n.TypeGuardError({method:"typia.json.stringify",expected:"number",value:e,message:"Error on typia.json.stringify(): infinite or not a number."});return e};t.$number=$number},3431:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.$report=void 0;var $report=function(e){var reportable=function(t){if(e.length===0)return true;var r=e[e.length-1].path;return t.length>r.length||r.substring(0,t.length)!==t};return function(t,r){if(t&&reportable(r.path))e.push(r);return false}};t.$report=$report},391:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.$rest=void 0;var $rest=function(e){return e.length===2?"":","+e.substring(1,e.length-1)};t.$rest=$rest},6793:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.$is_bigint_string=void 0;var $is_bigint_string=function(e){try{BigInt(e);return true}catch(e){return false}};t.$is_bigint_string=$is_bigint_string},9664:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.$string=void 0;var $string=function(e){var t=e.length;var r="";var n=-1;var s=255;for(var i=0;i<t;i++){s=e.charCodeAt(i);if(s<32){return JSON.stringify(e)}if(s>=55296&&s<=57343){return JSON.stringify(e)}if(s===34||s===92){n===-1&&(n=0);r+=e.slice(n,i)+"\\";n=i}}return n===-1&&'"'+e+'"'||'"'+r+e.slice(n)+'"'};t.$string=$string},9227:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.$strlen=void 0;var $strlen=function(e){return new Blob([e]).size};t.$strlen=$strlen},659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.$tail=void 0;var $tail=function(e){return e[e.length-1]===","?e.substring(0,e.length-1):e};t.$tail=$tail},136:function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s))e[s]=t[s]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});t.$throws=void 0;var s=r(6310);var $throws=function(e){return function(t){throw new s.TypeGuardError(n(n({},t),{method:"typia.".concat(e)}))}};t.$throws=$throws},4472:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.functionalAssert=void 0;var n=r(6310);var functionalAssert=function(){return{errorFactory:function(e){return new n.TypeGuardError(e)}}};t.functionalAssert=functionalAssert},6125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.query=t.parameter=t.headers=t.formData=void 0;var n=r(3955);var s=r(9303);var i=r(3362);var a=r(5809);var formData=function(){return n.$FormDataReader};t.formData=formData;var headers=function(){return s.$HeadersReader};t.headers=headers;var parameter=function(){return i.$ParameterReader};t.parameter=parameter;var query=function(){return a.$QueryReader};t.query=query},8097:function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s))e[s]=t[s]}return e};return n.apply(this,arguments)};var s=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))s(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.random=t.validate=t.assert=t.is=t.llm=t.protobuf=t.misc=t.notations=t.http=t.json=t.functional=void 0;var o=r(1406);var c=r(146);var l=r(9048);var u=r(3745);var f=r(3431);var d=r(6310);var h=r(9769);Object.defineProperty(t,"is",{enumerable:true,get:function(){return h.is}});t.functional=a(r(4472));t.json=a(r(2547));t.http=a(r(6125));t.notations=a(r(6190));t.misc=a(r(7605));t.protobuf=a(r(3918));t.llm=a(r(62));var assert=function(e){return n(n({},(0,h.is)()),{join:u.$join,every:c.$every,guard:(0,l.$guard)("typia.".concat(e)),predicate:function(t,r,s){if(t===false&&r===true)throw new d.TypeGuardError(n(n({},s()),{method:"typia.".concat(e)}));return t}})};t.assert=assert;var validate=function(){return n(n({},(0,h.is)()),{join:u.$join,report:f.$report,predicate:function(e){return function(t,r,n){if(t===false&&r===true)(function(){e.success&&(e.success=false);var t=e.errors;var r=n();if(t.length){var s=t[t.length-1].path;if(s.length>=r.path.length&&s.substring(0,r.path.length)===r.path)return}t.push(r);return})();return t}}})};t.validate=validate;var random=function(){return{generator:o.RandomGenerator,pick:o.RandomGenerator.pick}};t.random=random},2547:function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s))e[s]=t[s]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});t.stringify=void 0;var s=r(4756);var i=r(391);var a=r(9664);var o=r(659);var c=r(136);var l=r(9769);var stringify=function(e){return n(n({},(0,l.is)()),{number:s.$number,string:a.$string,tail:o.$tail,rest:i.$rest,throws:(0,c.$throws)("json.".concat(e))})};t.stringify=stringify},62:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.application=void 0;var s=r(6769);var application=function(){return{finalize:function(e,t){var r,i;var a;e.options={separate:(a=t===null||t===void 0?void 0:t.separate)!==null&&a!==void 0?a:null};if(e.options.separate===null)return;try{for(var o=n(e.functions),c=o.next();!c.done;c=o.next()){var l=c.value;l.separated=s.LlmSchemaSeparator.parameters({parameters:l.parameters,predicator:e.options.separate})}}catch(e){r={error:e}}finally{try{if(c&&!c.done&&(i=o.return))i.call(o)}finally{if(r)throw r.error}}}}};t.application=application},7605:function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s))e[s]=t[s]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});t.prune=t.clone=void 0;var s=r(9619);var i=r(136);var a=r(9769);var clone=function(e){return n(n({},(0,a.is)()),{throws:(0,i.$throws)("misc.".concat(e)),any:s.$any})};t.clone=clone;var prune=function(e){return n(n({},(0,a.is)()),{throws:(0,i.$throws)("misc.".concat(e))})};t.prune=prune},6190:function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s))e[s]=t[s]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});t.snake=t.pascal=t.camel=void 0;var s=r(4221);var i=r(8526);var a=r(136);var o=r(9769);var camel=function(e){return n(n({},base(e)),{any:(0,i.$convention)(s.NamingConvention.camel)})};t.camel=camel;var pascal=function(e){return n(n({},base(e)),{any:(0,i.$convention)(s.NamingConvention.pascal)})};t.pascal=pascal;var snake=function(e){return n(n({},base(e)),{any:(0,i.$convention)(s.NamingConvention.snake)})};t.snake=snake;var base=function(e){return n(n({},(0,o.is)()),{throws:(0,a.$throws)("notations.".concat(e))})}},3918:function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s))e[s]=t[s]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});t.encode=t.decode=void 0;var s=r(5273);var i=r(3085);var a=r(7189);var o=r(9227);var c=r(136);var l=r(9769);var decode=function(e){return n(n({},(0,l.is)()),{Reader:s.$ProtobufReader,throws:(0,c.$throws)("protobuf.".concat(e))})};t.decode=decode;var encode=function(e){return n(n({},(0,l.is)()),{Sizer:i.$ProtobufSizer,Writer:a.$ProtobufWriter,strlen:o.$strlen,throws:(0,c.$throws)(e)})};t.encode=encode},9769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.is=void 0;var n=r(7206);var s=r(6793);var is=function(){return{is_between:n.$is_between,is_bigint_string:s.$is_bigint_string}};t.is=is},1475:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.createParameter=t.createValidateHeaders=t.createIsHeaders=t.createAssertHeaders=t.createHeaders=t.createValidateQuery=t.createIsQuery=t.createAssertQuery=t.createQuery=t.createValidateFormData=t.createIsFormData=t.createAssertFormData=t.createFormData=t.parameter=t.validateHeaders=t.isHeaders=t.assertHeaders=t.headers=t.validateQuery=t.isQuery=t.assertQuery=t.query=t.validateFormData=t.isFormData=t.assertFormData=t.formData=void 0;var a=i(r(8097));function formData(){halt("formData")}var o=Object.assign(formData,a.http.formData());t.formData=o;function assertFormData(){halt("assertFormData")}var c=Object.assign(assertFormData,a.http.formData(),a.assert("http.assertFormData"));t.assertFormData=c;function isFormData(){halt("isFormData")}var l=Object.assign(isFormData,a.http.formData(),a.is());t.isFormData=l;function validateFormData(){halt("validateFormData")}var u=Object.assign(validateFormData,a.http.formData(),a.validate());t.validateFormData=u;function query(){halt("query")}var f=Object.assign(query,a.http.query());t.query=f;function assertQuery(){halt("assertQuery")}var d=Object.assign(assertQuery,a.http.query(),a.assert("http.assertQuery"));t.assertQuery=d;function isQuery(){halt("isQuery")}var h=Object.assign(isQuery,a.http.query(),a.is());t.isQuery=h;function validateQuery(){halt("validateQuery")}var p=Object.assign(validateQuery,a.http.query(),a.validate());t.validateQuery=p;function headers(){halt("headers")}var m=Object.assign(headers,a.http.headers());t.headers=m;function assertHeaders(){halt("assertHeaders")}var g=Object.assign(assertHeaders,a.http.headers(),a.assert("http.assertHeaders"));t.assertHeaders=g;function isHeaders(){halt("isHeaders")}var y=Object.assign(isHeaders,a.http.headers(),a.is());t.isHeaders=y;function validateHeaders(){halt("validateHeaders")}var v=Object.assign(validateHeaders,a.http.headers(),a.validate());t.validateHeaders=v;function parameter(){halt("parameter")}var b=Object.assign(parameter,a.http.parameter(),a.assert("http.parameter"));t.parameter=b;function createFormData(){halt("createFormData")}var S=Object.assign(createFormData,a.http.formData());t.createFormData=S;function createAssertFormData(){halt("createAssertFormData")}var w=Object.assign(createAssertFormData,a.http.formData(),a.assert("http.createAssertFormData"));t.createAssertFormData=w;function createIsFormData(){halt("createIsFormData")}var O=Object.assign(createIsFormData,a.http.formData(),a.is());t.createIsFormData=O;function createValidateFormData(){halt("createValidateFormData")}var P=Object.assign(createValidateFormData,a.http.formData(),a.validate());t.createValidateFormData=P;function createQuery(){halt("createQuery")}var A=Object.assign(createQuery,a.http.query());t.createQuery=A;function createAssertQuery(){halt("createAssertQuery")}var _=Object.assign(createAssertQuery,a.http.query(),a.assert("http.createAssertQuery"));t.createAssertQuery=_;function createIsQuery(){halt("createIsQuery")}var k=Object.assign(createIsQuery,a.http.query(),a.is());t.createIsQuery=k;function createValidateQuery(){halt("createValidateQuery")}var E=Object.assign(createValidateQuery,a.http.query(),a.validate());t.createValidateQuery=E;function createHeaders(){halt("createHeaders")}var j=Object.assign(createHeaders,a.http.headers());t.createHeaders=j;function createAssertHeaders(){halt("createAssertHeaders")}var C=Object.assign(createAssertHeaders,a.http.headers(),a.assert("http.createAssertHeaders"));t.createAssertHeaders=C;function createIsHeaders(){halt("createIsHeaders")}var N=Object.assign(createIsHeaders,a.http.headers(),a.is());t.createIsHeaders=N;function createValidateHeaders(){halt("createValidateHeaders")}var I=Object.assign(createValidateHeaders,a.http.headers(),a.validate());t.createValidateHeaders=I;function createParameter(){halt("createParameter")}var M=Object.assign(createParameter,a.http.parameter(),a.assert("http.createParameter"));t.createParameter=M;function halt(e){throw new Error("Error on typia.http.".concat(e,"(): no transform has been configured. Read and follow https://typia.io/docs/setup please."))}},8359:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var a=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});var o=i(r(7595));t["default"]=o;a(r(7595),t)},5417:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.createValidateStringify=t.createIsStringify=t.createAssertStringify=t.createStringify=t.createValidateParse=t.createAssertParse=t.createIsParse=t.validateStringify=t.isStringify=t.assertStringify=t.stringify=t.validateParse=t.isParse=t.assertParse=void 0;t.application=application;var a=i(r(8097));function application(){halt("application")}function assertParse(){halt("assertParse")}var o=Object.assign(assertParse,a.assert("json.assertParse"));t.assertParse=o;function isParse(){halt("isParse")}var c=Object.assign(isParse,a.is());t.isParse=c;function validateParse(){halt("validateParse")}var l=Object.assign(validateParse,a.validate());t.validateParse=l;function stringify(){halt("stringify")}var u=Object.assign(stringify,a.json.stringify("stringify"));t.stringify=u;function assertStringify(){halt("assertStringify")}var f=Object.assign(assertStringify,a.assert("json.assertStringify"),a.json.stringify("assertStringify"));t.assertStringify=f;function isStringify(){halt("isStringify")}var d=Object.assign(isStringify,a.is(),a.json.stringify("isStringify"));t.isStringify=d;function validateStringify(){halt("validateStringify")}var h=Object.assign(validateStringify,a.validate(),a.json.stringify("validateStringify"));t.validateStringify=h;function createIsParse(){halt("createIsParse")}var p=Object.assign(createIsParse,c);t.createIsParse=p;function createAssertParse(){halt("createAssertParse")}var m=Object.assign(createAssertParse,o);t.createAssertParse=m;function createValidateParse(){halt("createValidateParse")}var g=Object.assign(createValidateParse,l);t.createValidateParse=g;function createStringify(){halt("createStringify")}var y=Object.assign(createStringify,u);t.createStringify=y;function createAssertStringify(){halt("createAssertStringify")}var v=Object.assign(createAssertStringify,f);t.createAssertStringify=v;function createIsStringify(){halt("createIsStringify")}var b=Object.assign(createIsStringify,d);t.createIsStringify=b;function createValidateStringify(){halt("createValidateStringify")}var S=Object.assign(createValidateStringify,h);t.createValidateStringify=S;function halt(e){throw new Error("Error on typia.json.".concat(e,"(): no transform has been configured. Read and follow https://typia.io/docs/setup please."))}},8592:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.application=void 0;t.schema=schema;var a=i(r(8097));function application(){halt("application")}var o=Object.assign(application,a.llm.application());t.application=o;function schema(){halt("schema")}function halt(e){throw new Error("Error on typia.llm.".concat(e,"(): no transform has been configured. Read and follow https://typia.io/docs/setup please."))}},8907:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.createValidatePrune=t.createIsPrune=t.createAssertPrune=t.createPrune=t.createValidateClone=t.createIsClone=t.createAssertClone=t.createClone=t.validatePrune=t.isPrune=t.assertPrune=t.prune=t.validateClone=t.isClone=t.assertClone=t.clone=void 0;t.literals=literals;var a=i(r(8097));function literals(){halt("literals")}function clone(){halt("clone")}var o=Object.assign(clone,a.misc.clone("clone"));t.clone=o;function assertClone(){halt("assertClone")}var c=Object.assign(assertClone,a.assert("misc.assertClone"),a.misc.clone("assertClone"));t.assertClone=c;function isClone(){halt("isClone")}var l=Object.assign(isClone,a.is(),a.misc.clone("isClone"));t.isClone=l;function validateClone(){halt("validateClone")}var u=Object.assign(validateClone,a.validate(),a.misc.clone("validateClone"));t.validateClone=u;function prune(){halt("prune")}var f=Object.assign(prune,a.misc.prune("prune"));t.prune=f;function assertPrune(){halt("assertPrune")}var d=Object.assign(assertPrune,a.assert("misc.assertPrune"),a.misc.prune("assertPrune"));t.assertPrune=d;function isPrune(){halt("isPrune")}var h=Object.assign(isPrune,a.is(),a.misc.prune("isPrune"));t.isPrune=h;function validatePrune(){halt("validatePrune")}var p=Object.assign(validatePrune,a.misc.prune("validatePrune"),a.validate());t.validatePrune=p;function createClone(){halt("createClone")}var m=Object.assign(createClone,o);t.createClone=m;function createAssertClone(){halt("createAssertClone")}var g=Object.assign(createAssertClone,c);t.createAssertClone=g;function createIsClone(){halt("createIsClone")}var y=Object.assign(createIsClone,l);t.createIsClone=y;function createValidateClone(){halt("createValidateClone")}var v=Object.assign(createValidateClone,u);t.createValidateClone=v;function createPrune(){halt("createPrune")}var b=Object.assign(createPrune,f);t.createPrune=b;function createAssertPrune(){halt("createAssertPrune")}var S=Object.assign(createAssertPrune,d);t.createAssertPrune=S;function createIsPrune(){halt("createIsPrune")}var w=Object.assign(createIsPrune,h);t.createIsPrune=w;function createValidatePrune(){halt("createValidatePrune")}var O=Object.assign(createValidatePrune,p);t.createValidatePrune=O;function halt(e){throw new Error("Error on typia.misc.".concat(e,"(): no transform has been configured. Read and follow https://typia.io/docs/setup please."))}},7595:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var a=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.createRandom=t.createValidateEquals=t.createEquals=t.createAssertGuardEquals=t.createAssertEquals=t.createValidate=t.createIs=t.createAssertGuard=t.createAssert=t.random=t.validateEquals=t.equals=t.assertGuardEquals=t.assertEquals=t.validate=t.is=t.assertGuard=t.assert=t.tags=t.reflect=t.protobuf=t.notations=t.misc=t.json=t.llm=t.http=t.functional=void 0;var o=i(r(8097));t.functional=i(r(8922));t.http=i(r(1475));t.llm=i(r(8592));t.json=i(r(5417));t.misc=i(r(8907));t.notations=i(r(5684));t.protobuf=i(r(9464));t.reflect=i(r(3338));t.tags=i(r(8309));a(r(9010),t);a(r(1354),t);a(r(990),t);a(r(4158),t);a(r(4263),t);a(r(6310),t);a(r(2398),t);a(r(4795),t);a(r(3553),t);a(r(4707),t);a(r(7431),t);function assert(){halt("assert")}var c=Object.assign(assert,o.assert("assert"));t.assert=c;function assertGuard(){halt("assertGuard")}var l=Object.assign(assertGuard,o.assert("assertGuard"));t.assertGuard=l;function is(){halt("is")}var u=Object.assign(is,o.assert("is"));t.is=u;function validate(){halt("validate")}var f=Object.assign(validate,o.validate());t.validate=f;function assertEquals(){halt("assertEquals")}var d=Object.assign(assertEquals,o.assert("assertEquals"));t.assertEquals=d;function assertGuardEquals(){halt("assertGuardEquals")}var h=Object.assign(assertGuardEquals,o.assert("assertGuardEquals"));t.assertGuardEquals=h;function equals(){halt("equals")}var p=Object.assign(equals,o.is());t.equals=p;function validateEquals(){halt("validateEquals")}var m=Object.assign(validateEquals,o.validate());t.validateEquals=m;function random(){halt("random")}var g=Object.assign(random,o.random());t.random=g;function createAssert(){halt("createAssert")}var y=Object.assign(createAssert,c);t.createAssert=y;function createAssertGuard(){halt("createAssertGuard")}var v=Object.assign(createAssertGuard,l);t.createAssertGuard=v;function createIs(){halt("createIs")}var b=Object.assign(createIs,u);t.createIs=b;function createValidate(){halt("createValidate")}var S=Object.assign(createValidate,f);t.createValidate=S;function createAssertEquals(){halt("createAssertEquals")}var w=Object.assign(createAssertEquals,d);t.createAssertEquals=w;function createAssertGuardEquals(){halt("createAssertGuardEquals")}var O=Object.assign(createAssertGuardEquals,h);t.createAssertGuardEquals=O;function createEquals(){halt("createEquals")}var P=Object.assign(createEquals,p);t.createEquals=P;function createValidateEquals(){halt("createValidateEquals")}var A=Object.assign(createValidateEquals,m);t.createValidateEquals=A;function createRandom(){halt("createRandom")}var _=Object.assign(createRandom,g);t.createRandom=_;function halt(e){throw new Error("Error on typia.".concat(e,"(): no transform has been configured. Read and follow https://typia.io/docs/setup please."))}},5684:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.createValidateSnake=t.createIsSnake=t.createAssertSnake=t.createSnake=t.createValidatePascal=t.createIsPascal=t.createAssertPascal=t.createPascal=t.createValidateCamel=t.createIsCamel=t.createAssertCamel=t.createCamel=t.validateSnake=t.isSnake=t.assertSnake=t.snake=t.validatePascal=t.isPascal=t.assertPascal=t.pascal=t.validateCamel=t.isCamel=t.assertCamel=t.camel=void 0;var a=i(r(8097));function camel(){return halt("camel")}var o=Object.assign(camel,a.notations.camel("camel"));t.camel=o;function assertCamel(){return halt("assertCamel")}var c=Object.assign(assertCamel,a.notations.camel("assertCamel"),a.assert("notations.assertCamel"));t.assertCamel=c;function isCamel(){return halt("isCamel")}var l=Object.assign(isCamel,a.notations.camel("isCamel"),a.is());t.isCamel=l;function validateCamel(){return halt("validateCamel")}var u=Object.assign(validateCamel,a.notations.camel("validateCamel"),a.validate());t.validateCamel=u;function pascal(){return halt("pascal")}var f=Object.assign(pascal,a.notations.pascal("pascal"));t.pascal=f;function assertPascal(){return halt("assertPascal")}var d=Object.assign(assertPascal,a.notations.pascal("assertPascal"),a.assert("notations.assertPascal"));t.assertPascal=d;function isPascal(){return halt("isPascal")}var h=Object.assign(isPascal,a.notations.pascal("isPascal"),a.is());t.isPascal=h;function validatePascal(){return halt("validatePascal")}var p=Object.assign(validatePascal,a.notations.pascal("validatePascal"),a.validate());t.validatePascal=p;function snake(){return halt("snake")}var m=Object.assign(snake,a.notations.snake("snake"));t.snake=m;function assertSnake(){return halt("assertSnake")}var g=Object.assign(assertSnake,a.notations.snake("assertSnake"),a.assert("notations.assertSnake"));t.assertSnake=g;function isSnake(){return halt("isSnake")}var y=Object.assign(isSnake,a.notations.snake("isSnake"),a.is());t.isSnake=y;function validateSnake(){return halt("validateSnake")}var v=Object.assign(validateSnake,a.notations.snake("validateSnake"),a.validate());t.validateSnake=v;function createCamel(){halt("createCamel")}var b=Object.assign(createCamel,a.notations.camel("createCamel"));t.createCamel=b;function createAssertCamel(){halt("createAssertCamel")}var S=Object.assign(createAssertCamel,a.notations.camel("createAssertCamel"),a.assert("notations.createAssertCamel"));t.createAssertCamel=S;function createIsCamel(){halt("createIsCamel")}var w=Object.assign(createIsCamel,a.notations.camel("createIsCamel"),a.is());t.createIsCamel=w;function createValidateCamel(){halt("createValidateCamel")}var O=Object.assign(createValidateCamel,a.notations.camel("createValidateCamel"),a.validate());t.createValidateCamel=O;function createPascal(){halt("createPascal")}var P=Object.assign(createPascal,a.notations.pascal("createPascal"));t.createPascal=P;function createAssertPascal(){halt("createAssertPascal")}var A=Object.assign(createAssertPascal,a.notations.pascal("createAssertPascal"),a.assert("notations.createAssertPascal"));t.createAssertPascal=A;function createIsPascal(){halt("createIsPascal")}var _=Object.assign(createIsPascal,a.notations.pascal("createIsPascal"),a.is());t.createIsPascal=_;function createValidatePascal(){halt("createValidatePascal")}var k=Object.assign(createValidatePascal,a.notations.pascal("createValidatePascal"),a.validate());t.createValidatePascal=k;function createSnake(){halt("createSnake")}var E=Object.assign(createSnake,a.notations.snake("createSnake"));t.createSnake=E;function createAssertSnake(){halt("createAssertSnake")}var j=Object.assign(createAssertSnake,a.notations.snake("createAssertSnake"),a.assert("notations.createAssertSnake"));t.createAssertSnake=j;function createIsSnake(){halt("createIsSnake")}var C=Object.assign(createIsSnake,a.notations.snake("createIsSnake"),a.is());t.createIsSnake=C;function createValidateSnake(){halt("createValidateSnake")}var N=Object.assign(createValidateSnake,a.notations.snake("createValidateSnake"),a.validate());t.createValidateSnake=N;function halt(e){throw new Error("Error on typia.notations.".concat(e,"(): no transform has been configured. Read and follow https://typia.io/docs/setup please."))}},9464:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.createValidateEncode=t.createAssertEncode=t.createIsEncode=t.createEncode=t.createValidateDecode=t.createAssertDecode=t.createIsDecode=t.createDecode=t.validateEncode=t.isEncode=t.assertEncode=t.encode=t.validateDecode=t.isDecode=t.assertDecode=t.decode=void 0;t.message=message;var a=i(r(8097));function message(){halt("message")}function decode(){halt("decode")}var o=Object.assign(decode,a.protobuf.decode("decode"));t.decode=o;function assertDecode(){halt("assertDecode")}var c=Object.assign(assertDecode,a.assert("protobuf.assertDecode"),a.protobuf.decode("assertDecode"));t.assertDecode=c;function isDecode(){halt("isDecode")}var l=Object.assign(isDecode,a.is(),a.protobuf.decode("isDecode"));t.isDecode=l;function validateDecode(){halt("validateDecode")}var u=Object.assign(validateDecode,a.validate(),a.protobuf.decode("validateDecode"));t.validateDecode=u;function encode(){halt("encode")}var f=Object.assign(encode,a.protobuf.encode("encode"));t.encode=f;function assertEncode(){halt("assertEncode")}var d=Object.assign(assertEncode,a.assert("protobuf.assertEncode"),a.protobuf.encode("assertEncode"));t.assertEncode=d;function isEncode(){halt("isEncode")}var h=Object.assign(isEncode,a.is(),a.protobuf.encode("isEncode"));t.isEncode=h;function validateEncode(){halt("validateEncode")}var p=Object.assign(validateEncode,a.validate(),a.protobuf.encode("validateEncode"));t.validateEncode=p;function createDecode(){halt("createDecode")}var m=Object.assign(createDecode,a.protobuf.decode("createDecode"));t.createDecode=m;function createIsDecode(){halt("createIsDecode")}var g=Object.assign(createIsDecode,a.is(),a.protobuf.decode("createIsDecode"));t.createIsDecode=g;function createAssertDecode(){halt("createAssertDecode")}var y=Object.assign(createAssertDecode,a.assert("protobuf.createAssertDecode"),a.protobuf.decode("createAssertDecode"));t.createAssertDecode=y;function createValidateDecode(){halt("createValidateDecode")}var v=Object.assign(createValidateDecode,a.validate(),a.protobuf.decode("createValidateDecode"));t.createValidateDecode=v;function createEncode(){halt("createEncode")}var b=Object.assign(createEncode,a.protobuf.encode("createEncode"));t.createEncode=b;function createIsEncode(){halt("createIsEncode")}var S=Object.assign(createIsEncode,a.is(),a.protobuf.encode("createIsEncode"));t.createIsEncode=S;function createAssertEncode(){halt("createAssertEncode")}var w=Object.assign(createAssertEncode,a.assert("protobuf.createAssertEncode"),a.protobuf.encode("createAssertEncode"));t.createAssertEncode=w;function createValidateEncode(){halt("createValidateEncode")}var O=Object.assign(createValidateEncode,a.validate(),a.protobuf.encode("createValidateEncode"));t.createValidateEncode=O;function halt(e){throw new Error("Error on typia.protobuf.".concat(e,"(): no transform has been configured. Read and follow https://typia.io/docs/setup please."))}},3338:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.metadata=void 0;t.name=name;function metadata(){halt("metadata")}var r=Object.assign(metadata,{from:function(e){return e}});t.metadata=r;function name(){halt("name")}function halt(e){throw new Error("Error on typia.reflect.".concat(e,"(): no transform has been configured. Read and follow https://typia.io/docs/setup please."))}},1354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},9010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},3193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},4346:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},1424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5383:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},8306:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},7503:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},3925:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},9214:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},2935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},1595:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},8363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},3551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5001:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},665:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},1317:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},8016:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},1387:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},6952:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},7337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},824:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},8309:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(3193),t);s(r(4346),t);s(r(1424),t);s(r(5383),t);s(r(8306),t);s(r(7503),t);s(r(3925),t);s(r(9214),t);s(r(2935),t);s(r(3551),t);s(r(1595),t);s(r(8363),t);s(r(1317),t);s(r(5001),t);s(r(665),t);s(r(8016),t);s(r(1387),t);s(r(6952),t);s(r(7337),t);s(r(824),t)},1994:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pascal=t.camel=void 0;t.snake=snake;var n=r(3971);function snake(e){if(e.length===0)return e;var t="";for(var r=0;r<e.length;r++){if(e[r]==="_")t+="_";else break}if(t.length!==0)e=e.substring(t.length);var out=function(e){return"".concat(t).concat(e)};var n=e.split("_");if(n.length>1)return out(n.map((function(e){return e.toLowerCase()})).join("_"));var s=[];for(var r=0;r<e.length;r++){var i=e.charCodeAt(r);if(65<=i&&i<=90)s.push(r)}for(var r=s.length-1;r>0;--r){var a=s[r];var o=s[r-1];if(a-o===1)s.splice(r,1)}if(s.length!==0&&s[0]===0)s.splice(0,1);if(s.length===0)return e.toLowerCase();var c="";for(var r=0;r<s.length;r++){var l=r===0?0:s[r-1];var u=s[r];c+=e.substring(l,u).toLowerCase();c+="_"}c+=e.substring(s[s.length-1]).toLowerCase();return out(c)}var camel=function(e){return unsnake({plain:function(e){return e.length?e===e.toUpperCase()?e.toLocaleLowerCase():"".concat(e[0].toLowerCase()).concat(e.substring(1)):e},snake:function(e,t){return t===0?e.toLowerCase():n.StringUtil.capitalize(e.toLowerCase())}})(e)};t.camel=camel;var pascal=function(e){return unsnake({plain:function(e){return e.length?"".concat(e[0].toUpperCase()).concat(e.substring(1)):e},snake:n.StringUtil.capitalize})(e)};t.pascal=pascal;var unsnake=function(e){return function(t){var r="";for(var n=0;n<t.length;n++){if(t[n]==="_")r+="_";else break}if(r.length!==0)t=t.substring(r.length);var out=function(e){return"".concat(r).concat(e)};if(t.length===0)return out("");var s=t.split("_").filter((function(e){return e.length!==0}));return s.length===0?out(""):s.length===1?out(e.plain(s[0])):out(s.map(e.snake).join(""))}}},4221:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.NamingConvention=void 0;t.NamingConvention=i(r(1994))},6798:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],a;try{while((t===void 0||t-- >0)&&!(s=n.next()).done)i.push(s.value)}catch(e){a={error:e}}finally{try{if(s&&!s.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return i};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.relativeJsonPointer=t.jsonPointer=t.duration=t.time=t.date=t.datetime=t.url=t.uriTemplate=t.uriReference=t.uri=t.ipv6=t.ipv4=t.iriReference=t.iri=t.idnHostname=t.idnEmail=t.hostname=t.email=t.uuid=t.regex=t.password=t.byte=t.pattern=t.length=t.pick=t.array=t.string=t.number=t.bigint=t.integer=t.boolean=void 0;var i=s(r(6768));var a="abcdefghijklmnopqrstuvwxyz";var boolean=function(){return Math.random()<.5};t.boolean=boolean;var integer=function(e,t){e!==null&&e!==void 0?e:e=0;t!==null&&t!==void 0?t:t=100;return Math.floor(Math.random()*(t-e+1))+e};t.integer=integer;var bigint=function(e,r){return BigInt((0,t.integer)(Number(e!==null&&e!==void 0?e:BigInt(0)),Number(r!==null&&r!==void 0?r:BigInt(100))))};t.bigint=bigint;var number=function(e,t){e!==null&&e!==void 0?e:e=0;t!==null&&t!==void 0?t:t=100;return Math.random()*(t-e)+e};t.number=number;var string=function(e){return new Array(e!==null&&e!==void 0?e:(0,t.integer)(5,10)).fill(0).map((function(){return a[(0,t.integer)(0,a.length-1)]})).join("")};t.string=string;var array=function(e,r,n){r!==null&&r!==void 0?r:r=(0,t.length)();n!==null&&n!==void 0?n:n=false;if(n===false)return new Array(r!==null&&r!==void 0?r:(0,t.length)()).fill(0).map((function(t,r){return e(r)}));else{var s=new Set;while(s.size<r)s.add(e(s.size));return Array.from(s)}};t.array=array;var pick=function(e){return e[(0,t.integer)(0,e.length-1)]};t.pick=pick;var length=function(){return(0,t.integer)(0,3)};t.length=length;var pattern=function(e){var t=new i.default(e);for(var r=0;r<10;++r){var n=t.gen();if(e.test(n))return n}return t.gen()};t.pattern=pattern;var byte=function(){return"vt7ekz4lIoNTTS9sDQYdWKharxIFAR54+z/umIxSgUM="};t.byte=byte;var password=function(){return(0,t.string)((0,t.integer)(4,16))};t.password=password;var regex=function(){return"/^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$/"};t.regex=regex;var uuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=Math.random()*16|0;var r=e==="x"?t:t&3|8;return r.toString(16)}))};t.uuid=uuid;var email=function(){return"".concat((0,t.string)(10),"@").concat((0,t.string)(10),".").concat((0,t.string)(3))};t.email=email;var hostname=function(){return"".concat((0,t.string)(10),".").concat((0,t.string)(3))};t.hostname=hostname;var idnEmail=function(){return(0,t.email)()};t.idnEmail=idnEmail;var idnHostname=function(){return(0,t.hostname)()};t.idnHostname=idnHostname;var iri=function(){return(0,t.url)()};t.iri=iri;var iriReference=function(){return(0,t.url)()};t.iriReference=iriReference;var ipv4=function(){return(0,t.array)((function(){return(0,t.integer)(0,255)}),4).join(".")};t.ipv4=ipv4;var ipv6=function(){return(0,t.array)((function(){return(0,t.integer)(0,65535).toString(16)}),8).join(":")};t.ipv6=ipv6;var uri=function(){return(0,t.url)()};t.uri=uri;var uriReference=function(){return(0,t.url)()};t.uriReference=uriReference;var uriTemplate=function(){return(0,t.url)()};t.uriTemplate=uriTemplate;var url=function(){return"https://".concat((0,t.string)(10),".").concat((0,t.string)(3))};t.url=url;var datetime=function(e,r){return new Date((0,t.number)(e!==null&&e!==void 0?e:Date.now()-30*o,r!==null&&r!==void 0?r:Date.now()+7*o)).toISOString()};t.datetime=datetime;var date=function(e,r){return new Date((0,t.number)(e!==null&&e!==void 0?e:0,r!==null&&r!==void 0?r:Date.now()*2)).toISOString().substring(0,10)};t.date=date;var time=function(){return new Date((0,t.number)(0,o)).toISOString().substring(11)};t.time=time;var duration=function(){var e=durate([["Y",(0,t.integer)(0,100)],["M",(0,t.integer)(0,12)],["D",(0,t.integer)(0,31)]]);var r=durate([["H",(0,t.integer)(0,24)],["M",(0,t.integer)(0,60)],["S",(0,t.integer)(0,60)]]);if(e.length+r.length===0)return"PT0S";return"P".concat(e).concat(r.length?"T":"").concat(r)};t.duration=duration;var jsonPointer=function(){return"/components/schemas/".concat((0,t.string)(10))};t.jsonPointer=jsonPointer;var relativeJsonPointer=function(){return"".concat((0,t.integer)(0,10),"#")};t.relativeJsonPointer=relativeJsonPointer;var o=864e5;var durate=function(e){return e.filter((function(e){var t=n(e,2),r=t[0],s=t[1];return s!==0})).map((function(e){var t=n(e,2),r=t[0],s=t[1];return"".concat(s).concat(r)})).join("")}},1406:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.RandomGenerator=void 0;t.RandomGenerator=i(r(6798))},6040:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],a;try{while((t===void 0||t-- >0)&&!(s=n.next()).done)i.push(s.value)}catch(e){a={error:e}}finally{try{if(s&&!s.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return i};var n=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,i;n<s;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:true});t.Singleton=void 0;var s=function(){function Singleton(e){this.closure_=e;this.value_=i}Singleton.prototype.get=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}if(this.value_===i)this.value_=this.closure_.apply(this,n([],r(e),false));return this.value_};return Singleton}();t.Singleton=s;var i={}},8022:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeDuplicate=t.capitalize=void 0;var capitalize=function(e){return e.length?e[0].toUpperCase()+e.slice(1).toLowerCase():e};t.capitalize=capitalize;var escapeDuplicate=function(e){return function(r){return e.includes(r)?(0,t.escapeDuplicate)(e)("_".concat(r)):r}};t.escapeDuplicate=escapeDuplicate},3971:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.StringUtil=void 0;t.StringUtil=i(r(8022))},6982:e=>{"use strict";e.exports=require("crypto")},9896:e=>{"use strict";e.exports=require("fs")},6928:e=>{"use strict";e.exports=require("path")},7349:(e,t,r)=>{"use strict";var n=r(1127);var s=r(3301);var i=r(4454);var a=r(2223);var o=r(7103);var c=r(334);var l=r(3142);function resolveCollection(e,t,r,n,s,i){const a=r.type==="block-map"?o.resolveBlockMap(e,t,r,n,i):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,i):l.resolveFlowCollection(e,t,r,n,i);const u=a.constructor;if(s==="!"||s===u.tagName){a.tag=u.tagName;return a}if(s)a.tag=s;return a}function composeCollection(e,t,r,o,c){const l=o.tag;const u=!l?null:t.directives.tagName(l.source,(e=>c(l,"TAG_RESOLVE_FAILED",e)));if(r.type==="block-seq"){const{anchor:e,newlineAfterProp:t}=o;const r=e&&l?e.offset>l.offset?e:l:e??l;if(r&&(!t||t.offset<r.offset)){const e="Missing newline after block sequence props";c(r,"MISSING_CHAR",e)}}const f=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!l||!u||u==="!"||u===i.YAMLMap.tagName&&f==="map"||u===a.YAMLSeq.tagName&&f==="seq"){return resolveCollection(e,t,r,c,u)}let d=t.schema.tags.find((e=>e.tag===u&&e.collection===f));if(!d){const n=t.schema.knownTags[u];if(n&&n.collection===f){t.schema.tags.push(Object.assign({},n,{default:false}));d=n}else{if(n?.collection){c(l,"BAD_COLLECTION_TYPE",`${n.tag} used for ${f} collection, but expects ${n.collection}`,true)}else{c(l,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const h=resolveCollection(e,t,r,c,u,d);const p=d.resolve?.(h,(e=>c(l,"TAG_RESOLVE_FAILED",e)),t.options)??h;const m=n.isNode(p)?p:new s.Scalar(p);m.range=h.range;m.tag=u;if(d?.format)m.format=d.format;return m}t.composeCollection=composeCollection},3683:(e,t,r)=>{"use strict";var n=r(3021);var s=r(5937);var i=r(7788);var a=r(4631);function composeDoc(e,t,{offset:r,start:o,value:c,end:l},u){const f=Object.assign({_directives:t},e);const d=new n.Document(undefined,f);const h={atKey:false,atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const p=a.resolveProps(o,{indicator:"doc-start",next:c??l?.[0],offset:r,onError:u,parentIndent:0,startOnNewline:true});if(p.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!p.hasNewline)u(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(h,c,p,u):s.composeEmptyNode(h,p.end,o,null,p,u);const m=d.contents.range[2];const g=i.resolveEnd(l,m,false,u);if(g.comment)d.comment=g.comment;d.range=[r,m,g.offset];return d}t.composeDoc=composeDoc},5937:(e,t,r)=>{"use strict";var n=r(4065);var s=r(1127);var i=r(7349);var a=r(5413);var o=r(7788);var c=r(2599);const l={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const o=e.atKey;const{spaceBefore:c,comment:u,anchor:f,tag:d}=r;let h;let p=true;switch(t.type){case"alias":h=composeAlias(e,t,n);if(f||d)n(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":h=a.composeScalar(e,t,d,n);if(f)h.anchor=f.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":h=i.composeCollection(l,e,t,r,n);if(f)h.anchor=f.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);h=composeEmptyNode(e,t.offset,undefined,null,r,n);p=false}}if(f&&h.anchor==="")n(f,"BAD_ALIAS","Anchor cannot be an empty string");if(o&&e.options.stringKeys&&(!s.isScalar(h)||typeof h.value!=="string"||h.tag&&h.tag!=="tag:yaml.org,2002:str")){const e="With stringKeys, all keys must be strings";n(d??t,"NON_STRING_KEY",e)}if(c)h.spaceBefore=true;if(u){if(t.type==="scalar"&&t.source==="")h.comment=u;else h.commentBefore=u}if(e.options.keepSourceTokens&&p)h.srcToken=t;return h}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:o,tag:l,end:u},f){const d={type:"scalar",offset:c.emptyScalarPosition(t,r,n),indent:-1,source:""};const h=a.composeScalar(e,d,l,f);if(o){h.anchor=o.source.substring(1);if(h.anchor==="")f(o,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)h.spaceBefore=true;if(i){h.comment=i;h.range[2]=u}return h}function composeAlias({options:e},{offset:t,source:r,end:s},i){const a=new n.Alias(r.substring(1));if(a.source==="")i(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))i(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const l=o.resolveEnd(s,c,e.strict,i);a.range=[t,c,l.offset];if(l.comment)a.comment=l.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{"use strict";var n=r(1127);var s=r(3301);var i=r(8913);var a=r(6842);function composeScalar(e,t,r,o){const{value:c,type:l,comment:u,range:f}=t.type==="block-scalar"?i.resolveBlockScalar(e,t,o):a.resolveFlowScalar(t,e.options.strict,o);const d=r?e.directives.tagName(r.source,(e=>o(r,"TAG_RESOLVE_FAILED",e))):null;let h;if(e.options.stringKeys&&e.atKey){h=e.schema[n.SCALAR]}else if(d)h=findScalarTagByName(e.schema,c,d,r,o);else if(t.type==="scalar")h=findScalarTagByTest(e,c,t,o);else h=e.schema[n.SCALAR];let p;try{const i=h.resolve(c,(e=>o(r??t,"TAG_RESOLVE_FAILED",e)),e.options);p=n.isScalar(i)?i:new s.Scalar(i)}catch(e){const n=e instanceof Error?e.message:String(e);o(r??t,"TAG_RESOLVE_FAILED",n);p=new s.Scalar(c)}p.range=f;p.source=c;if(l)p.type=l;if(d)p.tag=d;if(h.format)p.format=h.format;if(u)p.comment=u;return p}function findScalarTagByName(e,t,r,s,i){if(r==="!")return e[n.SCALAR];const a=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)a.push(t);else return t}}for(const e of a)if(e.test?.test(t))return e;const o=e.knownTags[r];if(o&&!o.collection){e.tags.push(Object.assign({},o,{default:false,test:undefined}));return o}i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({atKey:e,directives:t,schema:r},s,i,a){const o=r.tags.find((t=>(t.default===true||e&&t.default==="key")&&t.test?.test(s)))||r[n.SCALAR];if(r.compat){const e=r.compat.find((e=>e.default&&e.test?.test(s)))??r[n.SCALAR];if(o.tag!==e.tag){const r=t.tagString(o.tag);const n=t.tagString(e.tag);const s=`Value may be parsed as either ${r} or ${n}`;a(i,"TAG_RESOLVE_FAILED",s,true)}}return o}t.composeScalar=composeScalar},9984:(e,t,r)=>{"use strict";var n=r(1342);var s=r(3021);var i=r(1464);var a=r(1127);var o=r(3683);var c=r(7788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s<e.length;++s){const i=e[s];switch(i[0]){case"#":t+=(t===""?"":n?"\n\n":"\n")+(i.substring(1)||" ");r=true;n=false;break;case"%":if(e[s+1]?.[0]!=="#")s+=1;r=false;break;default:if(!r)n=true;r=false}}return{comment:t,afterEmptyLine:n}}class Composer{constructor(e={}){this.doc=null;this.atDirectives=false;this.prelude=[];this.errors=[];this.warnings=[];this.onError=(e,t,r,n)=>{const s=getErrorPos(e);if(n)this.warnings.push(new i.YAMLWarning(s,t,r));else this.errors.push(new i.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(a.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(a.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=o.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},7103:(e,t,r)=>{"use strict";var n=r(7165);var s=r(4454);var i=r(4631);var a=r(9499);var o=r(4051);var c=r(1187);const l="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,u,f,d){const h=d?.nodeClass??s.YAMLMap;const p=new h(r.schema);if(r.atRoot)r.atRoot=false;let m=u.offset;let g=null;for(const s of u.items){const{start:d,key:h,sep:y,value:v}=s;const b=i.resolveProps(d,{indicator:"explicit-key-ind",next:h??y?.[0],offset:m,onError:f,parentIndent:u.indent,startOnNewline:true});const S=!b.found;if(S){if(h){if(h.type==="block-seq")f(m,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in h&&h.indent!==u.indent)f(m,"BAD_INDENT",l)}if(!b.anchor&&!b.tag&&!y){g=b.end;if(b.comment){if(p.comment)p.comment+="\n"+b.comment;else p.comment=b.comment}continue}if(b.newlineAfterProp||a.containsNewline(h)){f(h??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(b.found?.indent!==u.indent){f(m,"BAD_INDENT",l)}r.atKey=true;const w=b.end;const O=h?e(r,h,b,f):t(r,w,d,null,b,f);if(r.schema.compat)o.flowIndentCheck(u.indent,h,f);r.atKey=false;if(c.mapIncludes(r,p.items,O))f(w,"DUPLICATE_KEY","Map keys must be unique");const P=i.resolveProps(y??[],{indicator:"map-value-ind",next:v,offset:O.range[2],onError:f,parentIndent:u.indent,startOnNewline:!h||h.type==="block-scalar"});m=P.end;if(P.found){if(S){if(v?.type==="block-map"&&!P.hasNewline)f(m,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&b.start<P.found.offset-1024)f(O.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}const i=v?e(r,v,P,f):t(r,m,y,null,P,f);if(r.schema.compat)o.flowIndentCheck(u.indent,v,f);m=i.range[2];const a=new n.Pair(O,i);if(r.options.keepSourceTokens)a.srcToken=s;p.items.push(a)}else{if(S)f(O.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(P.comment){if(O.comment)O.comment+="\n"+P.comment;else O.comment=P.comment}const e=new n.Pair(O);if(r.options.keepSourceTokens)e.srcToken=s;p.items.push(e)}}if(g&&g<m)f(g,"IMPOSSIBLE","Map comment with trailing content");p.range=[u.offset,m,g??m];return p}t.resolveBlockMap=resolveBlockMap},8913:(e,t,r)=>{"use strict";var n=r(3301);function resolveBlockScalar(e,t,r){const s=t.offset;const i=parseBlockScalarHeader(t,e.options.strict,r);if(!i)return{value:"",type:null,comment:"",range:[s,s,s]};const a=i.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const o=t.source?splitLines(t.source):[];let c=o.length;for(let e=o.length-1;e>=0;--e){const t=o[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=i.chomp==="+"&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"";let r=s+i.length;if(t.source)r+=t.source.length;return{value:e,type:a,comment:i.comment,range:[s,r,r]}}let l=t.indent+i.indent;let u=t.offset+i.length;let f=0;for(let t=0;t<c;++t){const[n,s]=o[t];if(s===""||s==="\r"){if(i.indent===0&&n.length>l)l=n.length}else{if(n.length<l){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";r(u+n.length,"MISSING_CHAR",e)}if(i.indent===0)l=n.length;f=t;if(l===0&&!e.atRoot){const e="Block scalar values in collections must be indented";r(u,"BAD_INDENT",e)}break}u+=n.length+s.length+1}for(let e=o.length-1;e>=c;--e){if(o[e][0].length>l)c=e+1}let d="";let h="";let p=false;for(let e=0;e<f;++e)d+=o[e][0].slice(l)+"\n";for(let e=f;e<c;++e){let[t,s]=o[e];u+=t.length+s.length+1;const c=s[s.length-1]==="\r";if(c)s=s.slice(0,-1);if(s&&t.length<l){const e=i.indent?"explicit indentation indicator":"first line";const n=`Block scalar lines must not be less indented than their ${e}`;r(u-s.length-(c?2:1),"BAD_INDENT",n);t=""}if(a===n.Scalar.BLOCK_LITERAL){d+=h+t.slice(l)+s;h="\n"}else if(t.length>l||s[0]==="\t"){if(h===" ")h="\n";else if(!p&&h==="\n")h="\n\n";d+=h+t.slice(l)+s;h="\n";p=true}else if(s===""){if(h==="\n")d+="\n";else h="\n"}else{d+=h+s;h=" ";p=false}}switch(i.chomp){case"-":break;case"+":for(let e=c;e<o.length;++e)d+="\n"+o[e][0].slice(l);if(d[d.length-1]!=="\n")d+="\n";break;default:d+="\n"}const m=s+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[s,m,m]}}function parseBlockScalarHeader({offset:e,props:t},r,n){if(t[0].type!=="block-scalar-header"){n(t[0],"IMPOSSIBLE","Block scalar header not found");return null}const{source:s}=t[0];const i=s[0];let a=0;let o="";let c=-1;for(let t=1;t<s.length;++t){const r=s[t];if(!o&&(r==="-"||r==="+"))o=r;else{const n=Number(r);if(!a&&n)a=n;else if(c===-1)c=e+t}}if(c!==-1)n(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${s}`);let l=false;let u="";let f=s.length;for(let e=1;e<t.length;++e){const s=t[e];switch(s.type){case"space":l=true;case"newline":f+=s.source.length;break;case"comment":if(r&&!l){const e="Comments must be separated from other tokens by white space characters";n(s,"MISSING_CHAR",e)}f+=s.source.length;u=s.source.substring(1);break;case"error":n(s,"UNEXPECTED_TOKEN",s.message);f+=s.source.length;break;default:{const e=`Unexpected token in block scalar header: ${s.type}`;n(s,"UNEXPECTED_TOKEN",e);const t=s.source;if(t&&typeof t==="string")f+=t.length}}}return{mode:i,indent:a,chomp:o,comment:u,length:f}}function splitLines(e){const t=e.split(/\n( *)/);const r=t[0];const n=r.match(/^( *)/);const s=n?.[1]?[n[1],r.slice(n[1].length)]:["",r];const i=[s];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}t.resolveBlockScalar=resolveBlockScalar},334:(e,t,r)=>{"use strict";var n=r(2223);var s=r(4631);var i=r(4051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,a,o,c){const l=c?.nodeClass??n.YAMLSeq;const u=new l(r.schema);if(r.atRoot)r.atRoot=false;if(r.atKey)r.atKey=false;let f=a.offset;let d=null;for(const{start:n,value:c}of a.items){const l=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:f,onError:o,parentIndent:a.indent,startOnNewline:true});if(!l.found){if(l.anchor||l.tag||c){if(c&&c.type==="block-seq")o(l.end,"BAD_INDENT","All sequence items must start at the same column");else o(f,"MISSING_CHAR","Sequence item without - indicator")}else{d=l.end;if(l.comment)u.comment=l.comment;continue}}const h=c?e(r,c,l,o):t(r,l.end,n,null,l,o);if(r.schema.compat)i.flowIndentCheck(a.indent,c,o);f=h.range[2];u.items.push(h)}u.range=[a.offset,f,d??f];return u}t.resolveBlockSeq=resolveBlockSeq},7788:(e,t)=>{"use strict";function resolveEnd(e,t,r,n){let s="";if(e){let i=false;let a="";for(const o of e){const{source:e,type:c}=o;switch(c){case"space":i=true;break;case"comment":{if(r&&!i)n(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=a+t;a="";break}case"newline":if(s)a+=e;i=true;break;default:n(o,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},3142:(e,t,r)=>{"use strict";var n=r(1127);var s=r(7165);var i=r(4454);var a=r(2223);var o=r(7788);var c=r(4631);var l=r(9499);var u=r(1187);const f="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,h,p){const m=d.start.source==="{";const g=m?"flow map":"flow sequence";const y=p?.nodeClass??(m?i.YAMLMap:a.YAMLSeq);const v=new y(r.schema);v.flow=true;const b=r.atRoot;if(b)r.atRoot=false;if(r.atKey)r.atKey=false;let S=d.offset+d.start.source.length;for(let a=0;a<d.items.length;++a){const o=d.items[a];const{start:p,key:y,sep:b,value:w}=o;const O=c.resolveProps(p,{flow:g,indicator:"explicit-key-ind",next:y??b?.[0],offset:S,onError:h,parentIndent:d.indent,startOnNewline:false});if(!O.found){if(!O.anchor&&!O.tag&&!b&&!w){if(a===0&&O.comma)h(O.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${g}`);else if(a<d.items.length-1)h(O.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${g}`);if(O.comment){if(v.comment)v.comment+="\n"+O.comment;else v.comment=O.comment}S=O.end;continue}if(!m&&r.options.strict&&l.containsNewline(y))h(y,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(a===0){if(O.comma)h(O.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${g}`)}else{if(!O.comma)h(O.start,"MISSING_CHAR",`Missing , between ${g} items`);if(O.comment){let e="";e:for(const t of p){switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}}if(e){let t=v.items[v.items.length-1];if(n.isPair(t))t=t.value??t.key;if(t.comment)t.comment+="\n"+e;else t.comment=e;O.comment=O.comment.substring(e.length+1)}}}if(!m&&!b&&!O.found){const n=w?e(r,w,O,h):t(r,O.end,b,null,O,h);v.items.push(n);S=n.range[2];if(isBlock(w))h(n.range,"BLOCK_IN_FLOW",f)}else{r.atKey=true;const n=O.end;const a=y?e(r,y,O,h):t(r,n,p,null,O,h);if(isBlock(y))h(a.range,"BLOCK_IN_FLOW",f);r.atKey=false;const l=c.resolveProps(b??[],{flow:g,indicator:"map-value-ind",next:w,offset:a.range[2],onError:h,parentIndent:d.indent,startOnNewline:false});if(l.found){if(!m&&!O.found&&r.options.strict){if(b)for(const e of b){if(e===l.found)break;if(e.type==="newline"){h(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(O.start<l.found.offset-1024)h(l.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(w){if("source"in w&&w.source&&w.source[0]===":")h(w,"MISSING_CHAR",`Missing space after : in ${g}`);else h(l.start,"MISSING_CHAR",`Missing , or : between ${g} items`)}const P=w?e(r,w,l,h):l.found?t(r,l.end,b,null,l,h):null;if(P){if(isBlock(w))h(P.range,"BLOCK_IN_FLOW",f)}else if(l.comment){if(a.comment)a.comment+="\n"+l.comment;else a.comment=l.comment}const A=new s.Pair(a,P);if(r.options.keepSourceTokens)A.srcToken=o;if(m){const e=v;if(u.mapIncludes(r,e.items,a))h(n,"DUPLICATE_KEY","Map keys must be unique");e.items.push(A)}else{const e=new i.YAMLMap(r.schema);e.flow=true;e.items.push(A);const t=(P??a).range;e.range=[a.range[0],t[1],t[2]];v.items.push(e)}S=P?P.range[2]:l.end}}const w=m?"}":"]";const[O,...P]=d.end;let A=S;if(O&&O.source===w)A=O.offset+O.source.length;else{const e=g[0].toUpperCase()+g.substring(1);const t=b?`${e} must end with a ${w}`:`${e} in block collection must be sufficiently indented and end with a ${w}`;h(S,b?"MISSING_CHAR":"BAD_INDENT",t);if(O&&O.source.length!==1)P.unshift(O)}if(P.length>0){const e=o.resolveEnd(P,A,r.options.strict,h);if(e.comment){if(v.comment)v.comment+="\n"+e.comment;else v.comment=e.comment}v.range=[d.offset,A,e.offset]}else{v.range=[d.offset,A,A]}return v}t.resolveFlowCollection=resolveFlowCollection},6842:(e,t,r)=>{"use strict";var n=r(3301);var s=r(7788);function resolveFlowScalar(e,t,r){const{offset:i,type:a,source:o,end:c}=e;let l;let u;const _onError=(e,t,n)=>r(i+e,t,n);switch(a){case"scalar":l=n.Scalar.PLAIN;u=plainValue(o,_onError);break;case"single-quoted-scalar":l=n.Scalar.QUOTE_SINGLE;u=singleQuotedValue(o,_onError);break;case"double-quoted-scalar":l=n.Scalar.QUOTE_DOUBLE;u=doubleQuotedValue(o,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${a}`);return{value:"",type:null,comment:"",range:[i,i+o.length,i+o.length]}}const f=i+o.length;const d=s.resolveEnd(c,f,t,r);return{value:u,type:l,comment:d.comment,range:[i,f,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy");r=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch{t=/(.*?)[ \t]*\r?\n/sy;r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=t.exec(e);if(!n)return e;let s=n[1];let i=" ";let a=t.lastIndex;r.lastIndex=a;while(n=r.exec(e)){if(n[1]===""){if(i==="\n")s+=i;else i="\n"}else{s+=i+n[1];i=" "}a=r.lastIndex}const o=/[ \t]*(.*)/sy;o.lastIndex=a;n=o.exec(e);return s+i+(n?.[1]??"")}function doubleQuotedValue(e,t){let r="";for(let n=1;n<e.length-1;++n){const s=e[n];if(s==="\r"&&e[n+1]==="\n")continue;if(s==="\n"){const{fold:t,offset:s}=foldNewline(e,n);r+=t;n=s}else if(s==="\\"){let s=e[++n];const a=i[s];if(a)r+=a;else if(s==="\n"){s=e[n+1];while(s===" "||s==="\t")s=e[++n+1]}else if(s==="\r"&&e[n+1]==="\n"){s=e[++n+1];while(s===" "||s==="\t")s=e[++n+1]}else if(s==="x"||s==="u"||s==="U"){const i={x:2,u:4,U:8}[s];r+=parseCharCode(e,n+1,i,t);n+=i}else{const s=e.substr(n-1,2);t(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);r+=s}}else if(s===" "||s==="\t"){const t=n;let i=e[n+1];while(i===" "||i==="\t")i=e[++n+1];if(i!=="\n"&&!(i==="\r"&&e[n+2]==="\n"))r+=n>t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const i={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const i=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const a=i?parseInt(s,16):NaN;if(isNaN(a)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(a)}t.resolveFlowScalar=resolveFlowScalar},4631:(e,t)=>{"use strict";function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:i,parentIndent:a,startOnNewline:o}){let c=false;let l=o;let u=o;let f="";let d="";let h=false;let p=false;let m=null;let g=null;let y=null;let v=null;let b=null;let S=null;let w=null;for(const s of e){if(p){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")i(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");p=false}if(m){if(l&&s.type!=="comment"&&s.type!=="newline"){i(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}u=true;break;case"comment":{if(!u)i(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!f)f=e;else f+=d+e;d="";l=false;break}case"newline":if(l){if(f)f+=s.source;else c=true}else d+=s.source;l=true;h=true;if(g||y)v=s;u=true;break;case"anchor":if(g)i(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))i(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);g=s;if(w===null)w=s.offset;l=false;u=false;p=true;break;case"tag":{if(y)i(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(w===null)w=s.offset;l=false;u=false;p=true;break}case r:if(g||y)i(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(S)i(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);S=s;l=r==="seq-item-ind"||r==="explicit-key-ind";u=false;break;case"comma":if(t){if(b)i(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);b=s;l=false;u=false;break}default:i(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);l=false;u=false}}const O=e[e.length-1];const P=O?O.offset+O.source.length:s;if(p&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(l&&m.indent<=a||n?.type==="block-map"||n?.type==="block-seq"))i(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:b,found:S,spaceBefore:c,comment:f,hasNewline:h,anchor:g,tag:y,newlineAfterProp:v,end:P,start:w??P}}t.resolveProps=resolveProps},9499:(e,t)=>{"use strict";function containsNewline(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 true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},2599:(e,t)=>{"use strict";function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},4051:(e,t,r)=>{"use strict";var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},1187:(e,t,r)=>{"use strict";var n=r(1127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const i=typeof s==="function"?s:(e,t)=>e===t||n.isScalar(e)&&n.isScalar(t)&&e.value===t.value;return t.some((e=>i(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{"use strict";var n=r(4065);var s=r(101);var i=r(1127);var a=r(7165);var o=r(4043);var c=r(5840);var l=r(6829);var u=r(1596);var f=r(3661);var d=r(2404);var h=r(1342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,i.NODE_TYPE,{value:i.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,stringKeys:false,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:a}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)a=this.directives.yaml.version}else this.directives=new h.Directives({version:a});this.setSchema(a,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[i.NODE_TYPE]:{value:i.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=i.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=u.anchorNames(this);e.anchor=!t||r.has(t)?u.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:a,flow:o,keepUndefined:c,onTagObj:l,tag:f}=r??{};const{onAnchor:h,setAnchors:p,sourceObjects:m}=u.createNodeAnchors(this,a||"a");const g={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:h,onTagObj:l,replacer:n,schema:this.schema,sourceObjects:m};const y=d.createNode(e,f,g);if(o&&i.isCollection(y))y.flow=true;p();return y}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new a.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return i.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&i.isScalar(this.contents)?this.contents.value:this.contents;return i.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return i.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return i.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new h.Directives({version:"1.1"});r={resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new h.Directives({version:e});r={resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new 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(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:i}={}){const a={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=o.toJS(this.contents,t??"",a);if(typeof s==="function")for(const{count:e,res:t}of a.anchors.values())s(t,e);return typeof i==="function"?f.applyReviver(i,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return l.stringifyDocument(this,e)}}function assertCollection(e){if(i.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},1596:(e,t,r)=>{"use strict";var n=r(1127);var s=r(204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let i=null;return{onAnchor:n=>{r.push(n);if(!i)i=anchorNames(e);const s=findNewAnchor(t,i);i.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},3661:(e,t)=>{"use strict";function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t<r;++t){const r=n[t];const s=applyReviver(e,n,String(t),r);if(s===undefined)delete n[t];else if(s!==r)n[t]=s}}else if(n instanceof Map){for(const t of Array.from(n.keys())){const r=n.get(t);const s=applyReviver(e,n,t,r);if(s===undefined)n.delete(t);else if(s!==r)n.set(t,s)}}else if(n instanceof Set){for(const t of Array.from(n)){const r=applyReviver(e,n,t,t);if(r===undefined)n.delete(t);else if(r!==t){n.delete(t);n.add(r)}}}else{for(const[t,r]of Object.entries(n)){const s=applyReviver(e,n,t,r);if(s===undefined)delete n[t];else if(s!==r)n[t]=s}}}return e.call(t,r,n)}t.applyReviver=applyReviver},2404:(e,t,r)=>{"use strict";var n=r(4065);var s=r(1127);var i=r(3301);const a="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:o,onAnchor:c,onTagObj:l,schema:u,sourceObjects:f}=r;let d=undefined;if(o&&e&&typeof e==="object"){d=f.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};f.set(e,d)}}if(t?.startsWith("!!"))t=a+t.slice(2);let h=findTagObject(e,t,u.tags);if(!h){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new i.Scalar(e);if(d)d.node=t;return t}h=e instanceof Map?u[s.MAP]:Symbol.iterator in Object(e)?u[s.SEQ]:u[s.MAP]}if(l){l(h);delete r.onTagObj}const p=h?.createNode?h.createNode(r.schema,e,r):typeof h?.nodeClass?.from==="function"?h.nodeClass.from(r.schema,e,r):new i.Scalar(e);if(t)p.tag=t;else if(!h.default)p.tag=h.tag;if(d)d.node=p;return p}t.createNode=createNode},1342:(e,t,r)=>{"use strict";var n=r(1127);var s=r(204);const i={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>i[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let i;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));i=Object.keys(t)}else i=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||i.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},1464:(e,t)=>{"use strict";class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let i=s-1;let a=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&a.length>80){const e=Math.min(i-39,a.length-79);a="…"+a.substring(e);i-=e-1}if(a.length>80)a=a.substring(0,79)+"…";if(n>1&&/^ *$/.test(a.substring(0,i))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";a=r+a}if(/[^ ]/.test(a)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-i))}const o=" ".repeat(i)+"^".repeat(e);r.message+=`:\n\n${a}\n${o}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},8815:(e,t,r)=>{"use strict";var n=r(9984);var s=r(3021);var i=r(5840);var a=r(1464);var o=r(4065);var c=r(1127);var l=r(7165);var u=r(3301);var f=r(4454);var d=r(2223);var h=r(3461);var p=r(361);var m=r(6628);var g=r(3456);var y=r(4047);var v=r(204);t.Composer=n.Composer;t.Document=s.Document;t.Schema=i.Schema;t.YAMLError=a.YAMLError;t.YAMLParseError=a.YAMLParseError;t.YAMLWarning=a.YAMLWarning;t.Alias=o.Alias;t.isAlias=c.isAlias;t.isCollection=c.isCollection;t.isDocument=c.isDocument;t.isMap=c.isMap;t.isNode=c.isNode;t.isPair=c.isPair;t.isScalar=c.isScalar;t.isSeq=c.isSeq;t.Pair=l.Pair;t.Scalar=u.Scalar;t.YAMLMap=f.YAMLMap;t.YAMLSeq=d.YAMLSeq;t.CST=h;t.Lexer=p.Lexer;t.LineCounter=m.LineCounter;t.Parser=g.Parser;t.parse=y.parse;t.parseAllDocuments=y.parseAllDocuments;t.parseDocument=y.parseDocument;t.stringify=y.stringify;t.visit=v.visit;t.visitAsync=v.visitAsync},7249:(e,t)=>{"use strict";function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{"use strict";var n=r(1596);var s=r(204);var i=r(1127);var a=r(6673);var o=r(4043);class Alias extends a.NodeBase{constructor(e){super(i.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const i=this.resolve(n);if(!i){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let a=r.get(i);if(!a){o.toJS(i,null,t);a=r.get(i)}if(!a||a.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){a.count+=1;if(a.aliasCount===0)a.aliasCount=getAliasCount(n,i,r);if(a.count*a.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return a.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(i.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(i.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(i.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},101:(e,t,r)=>{"use strict";var n=r(2404);var s=r(1127);var i=r(6673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends i.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const i=this.get(r,true);if(s.isCollection(i))i.addIn(n,t);else if(i===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const i=this.get(r,true);if(n.length===0)return!t&&s.isScalar(i)?i.value:i;else return s.isCollection(i)?i.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},6673:(e,t,r)=>{"use strict";var n=r(3661);var s=r(1127);var i=r(4043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:a,reviver:o}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const l=i.toJS(this,"",c);if(typeof a==="function")for(const{count:e,res:t}of c.anchors.values())a(t,e);return typeof o==="function"?n.applyReviver(o,{"":l},"",l):l}}t.NodeBase=NodeBase},7165:(e,t,r)=>{"use strict";var n=r(2404);var s=r(9748);var i=r(7104);var a=r(1127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const i=n.createNode(t,undefined,r);return new Pair(s,i)}class Pair{constructor(e,t=null){Object.defineProperty(this,a.NODE_TYPE,{value:a.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(a.isNode(t))t=t.clone(e);if(a.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return i.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},3301:(e,t,r)=>{"use strict";var n=r(1127);var s=r(6673);var i=r(4043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:i.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},4454:(e,t,r)=>{"use strict";var n=r(1212);var s=r(7104);var i=r(101);var a=r(1127);var o=r(7165);var c=r(3301);function findPair(e,t){const r=a.isScalar(t)?t.value:t;for(const n of e){if(a.isPair(n)){if(n.key===t||n.key===r)return n;if(a.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends i.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(a.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const i=new this(e);const add=(e,a)=>{if(typeof s==="function")a=s.call(t,e,a);else if(Array.isArray(s)&&!s.includes(e))return;if(a!==undefined||n)i.items.push(o.createPair(e,a,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){i.items.sort(e.sortMapEntries)}return i}add(e,t){let r;if(a.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new o.Pair(e,e?.value)}else r=new o.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(a.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&a.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new o.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!a.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},2223:(e,t,r)=>{"use strict";var n=r(2404);var s=r(1212);var i=r(101);var a=r(1127);var o=r(3301);var c=r(4043);class YAMLSeq extends i.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(a.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&a.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t<this.items.length}set(e,t){const r=asItemIndex(e);if(typeof r!=="number")throw new Error(`Expected a valid index, not ${e}.`);const n=this.items[r];if(a.isScalar(n)&&o.isScalarValue(t))n.value=t;else this.items[r]=t}toJSON(e,t){const r=[];if(t?.onCreate)t.onCreate(r);let n=0;for(const e of this.items)r.push(c.toJS(e,String(n++),t));return r}toString(e,t,r){if(!e)return JSON.stringify(this);return s.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:r,onComment:t})}static from(e,t,r){const{replacer:s}=r;const i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof s==="function"){const r=t instanceof Set?a:String(e++);a=s.call(t,r,a)}i.items.push(n.createNode(a,undefined,r))}}return i}}function asItemIndex(e){let t=a.isScalar(e)?e.value:e;if(t&&typeof t==="string")t=Number(t);return typeof t==="number"&&Number.isInteger(t)&&t>=0?t:null}t.YAMLSeq=YAMLSeq},7104:(e,t,r)=>{"use strict";var n=r(7249);var s=r(452);var i=r(2148);var a=r(1127);var o=r(4043);function addPairToJSMap(e,t,{key:r,value:n}){if(a.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,n);else if(s.isMergeKey(e,r))s.addMergeToJSMap(e,t,n);else{const s=o.toJS(r,"",e);if(t instanceof Map){t.set(s,o.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const i=stringifyKey(r,s,e);const a=o.toJS(n,i,e);if(i in t)Object.defineProperty(t,i,{value:a,writable:true,enumerable:true,configurable:true});else t[i]=a}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(a.isNode(e)&&r?.doc){const t=i.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const s=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(s);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return s}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},1127:(e,t)=>{"use strict";const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const i=Symbol.for("yaml.pair");const a=Symbol.for("yaml.scalar");const o=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===i;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===a;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===o;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case o:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case a:case o:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=i;t.SCALAR=a;t.SEQ=o;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},4043:(e,t,r)=>{"use strict";var n=r(1127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const i=e.toJSON(t,r);if(r.onCreate)r.onCreate(i);return i}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},110:(e,t,r)=>{"use strict";var n=r(8913);var s=r(6842);var i=r(1464);var a=r(3069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new i.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:i=-1,type:o="PLAIN"}=t;const c=a.stringifyString({type:o,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const l=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:i,indent:n,source:t}];if(!addEndtoBlockProps(s,l))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:i,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:i,indent:n,source:c,end:l};case"'":return{type:"single-quoted-scalar",offset:i,indent:n,source:c,end:l};default:return{type:"scalar",offset:i,indent:n,source:c,end:l}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:i=false,type:o}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}const l=a.stringifyString({type:o,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:i,options:{blockQuote:true,lineWidth:-1}});switch(l[0]){case"|":case">":setBlockScalarValue(e,l);break;case'"':setFlowScalarValue(e,l,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,l,"single-quoted-scalar");break;default:setFlowScalarValue(e,l,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const i=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(i,"end"in e?e.end:undefined))i.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:i,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},1733:(e,t)=>{"use strict";const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},7715:(e,t)=>{"use strict";const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let i=n(t,e);if(typeof i==="symbol")return i;for(const a of["key","value"]){const o=t[a];if(o&&"items"in o){for(let t=0;t<o.items.length;++t){const i=_visit(Object.freeze(e.concat([[a,t]])),o.items[t],n);if(typeof i==="number")t=i-1;else if(i===r)return r;else if(i===s){o.items.splice(t,1);t-=1}}if(typeof i==="function"&&a==="key")i=i(t,e)}}return typeof i==="function"?i(t,e):i}t.visit=visit},3461:(e,t,r)=>{"use strict";var n=r(110);var s=r(1733);var i=r(7715);const a="\ufeff";const o="";const c="";const l="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case a:return"<BOM>";case o:return"<DOC>";case c:return"<FLOW_END>";case l:return"<SCALAR>";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case a:return"byte-order-mark";case o:return"doc-mode";case c:return"flow-error-end";case l: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"\t":return"space";case"#":return"comment";case"%":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}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=i.visit;t.BOM=a;t.DOCUMENT=o;t.FLOW_END=c;t.SCALAR=l;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},361:(e,t,r)=>{"use strict";var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const i=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const a=new Set(",[]{}");const o=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||o.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&e<this.pos){e=this.buffer.indexOf("\n",this.pos);this.lineEndPos=e}if(e===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[e-1]==="\r")e-=1;return this.buffer.substring(this.pos,e)}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){this.buffer=this.buffer.substring(this.pos);this.pos=0;this.lineEndPos=null;this.next=e;return 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(e===null)return this.setNext("stream");if(e[0]===n.BOM){yield*this.pushCount(1);e=e.substring(1)}if(e[0]==="%"){let t=e.length;let r=e.indexOf("#");while(r!==-1){const n=e[r-1];if(n===" "||n==="\t"){t=r-1;break}else{r=e.indexOf("#",r+1)}}while(true){const r=e[t-1];if(r===" "||r==="\t")t-=1;else break}const n=(yield*this.pushCount(t))+(yield*this.pushSpaces(true));yield*this.pushCount(e.length-n);this.pushNewline();return"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(true);yield*this.pushCount(e.length-t);yield*this.pushNewline();return"stream"}yield n.DOCUMENT;return yield*this.parseLineStart()}*parseLineStart(){const 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");const e=this.peek(3);if((e==="---"||e==="...")&&isEmpty(this.charAt(3))){yield*this.pushCount(3);this.indentValue=0;this.indentNext=0;return e==="---"?"doc":"stream"}}this.indentValue=yield*this.pushSpaces(false);if(this.indentNext>this.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r<this.indentNext&&s[0]!=="#"||r===0&&(s.startsWith("---")||s.startsWith("..."))&&isEmpty(s[3])){const e=r===this.indentNext-1&&this.flowLevel===1&&(s[0]==="]"||s[0]==="}");if(!e){this.flowLevel=0;yield n.FLOW_END;return yield*this.parseLineStart()}}let i=0;while(s[i]===","){i+=(yield*this.pushCount(1));i+=(yield*this.pushSpaces(true));this.flowKey=false}i+=(yield*this.pushIndicators());switch(s[i]){case undefined:return"flow";case"#":yield*this.pushCount(s.length-i);return"flow";case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel+=1;return"flow";case"}":case"]":yield*this.pushCount(1);this.flowKey=true;this.flowLevel-=1;return this.flowLevel?"flow":"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"flow";case'"':case"'":this.flowKey=true;return yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||isEmpty(e)||e===","){this.flowKey=false;yield*this.pushCount(1);yield*this.pushSpaces(true);return"flow"}}default:this.flowKey=false;return yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if(e==="'"){while(t!==-1&&this.buffer[t+1]==="'")t=this.buffer.indexOf("'",t+2)}else{while(t!==-1){let e=0;while(this.buffer[t-1-e]==="\\")e+=1;if(e%2===0)break;t=this.buffer.indexOf('"',t+1)}}const r=this.buffer.substring(0,t);let n=r.indexOf("\n",this.pos);if(n!==-1){while(n!==-1){const e=this.continueScalar(n+1);if(e===-1)break;n=r.indexOf("\n",e)}if(n!==-1){t=n-(r[n-1]==="\r"?2:1)}}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}yield*this.pushToIndex(t+1,false);return this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1;this.blockScalarKeep=false;let e=this.pos;while(true){const t=this.buffer[++e];if(t==="+")this.blockScalarKeep=true;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&a.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&a.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&a.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&a.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(i.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},6628:(e,t)=>{"use strict";class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t<r){const n=t+r>>1;if(this.lineStarts[n]<e)t=n+1;else r=n}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};const n=this.lineStarts[t-1];return{line:t,col:e-n+1}}}}t.LineCounter=LineCounter},3456:(e,t,r)=>{"use strict";var n=r(3461);var s=r(361);function includesToken(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return true;return false}function findNonEmptyIndex(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 isFlowToken(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return true;default:return false}}function getPrevProps(e){switch(e.type){case"document":return e.start;case"block-map":{const 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 getFirstKeyStartProps(e){if(e.length===0)return[];let t=e.length;e:while(--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}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(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){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent<t.indent)))){if(e.type==="document")e.end=r.start;else e.items.push({start:r.start});t.items.splice(-1,1)}}}}*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":{const e={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")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":{if(findNonEmptyIndex(e.start)!==-1){yield*this.pop();yield*this.step()}else e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const t=this.startBlockValue(e);if(t)this.stack.push(t);else{yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}}*scalar(e){if(this.type==="map-value-ind"){const t=getPrevProps(this.peek(2));const r=getFirstKeyStartProps(t);let n;if(e.end){n=e.end;n.push(this.sourceToken);delete e.end}else n=[this.sourceToken];const s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:n}]};this.onKeyLine=true;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":e.source=this.source;this.atNewLine=true;this.indent=0;if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){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){const t=e.items[e.items.length-1];switch(this.type){case"newline":this.onKeyLine=false;if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else if(t.sep){t.sep.push(this.sourceToken)}else{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)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;n<t.sep.length;++n){const s=t.sep[n];switch(s.type){case"newline":r.push(n);break;case"space":break;case"comment":if(s.indent>e.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.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:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else 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)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.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;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=i}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){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=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")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=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},4047:(e,t,r)=>{"use strict";var n=r(9984);var s=r(3021);var i=r(1464);var a=r(7249);var o=r(1127);var c=r(6628);var l=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new c.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const a=new l.Parser(r?.addNewLine);const o=new n.Composer(t);const c=Array.from(o.compose(a.parse(e)));if(s&&r)for(const t of c){t.errors.forEach(i.prettifyError(e,r));t.warnings.forEach(i.prettifyError(e,r))}if(c.length>0)return c;return Object.assign([],{empty:true},o.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const a=new l.Parser(r?.addNewLine);const o=new n.Composer(t);let c=null;for(const t of o.compose(a.parse(e),true,e.length)){if(!c)c=t;else if(c.options.logLevel!=="silent"){c.errors.push(new i.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){c.errors.forEach(i.prettifyError(e,r));c.warnings.forEach(i.prettifyError(e,r))}return c}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>a.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}if(o.isDocument(e)&&!n)return e.toString(r);return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},5840:(e,t,r)=>{"use strict";var n=r(1127);var s=r(7451);var i=r(1706);var a=r(6464);var o=r(18);const sortMapEntriesByKey=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:l,sortMapEntries:u,toStringDefaults:f}){this.compat=Array.isArray(e)?o.getTags(e,"compat"):e?o.getTags(null,e):null;this.name=typeof l==="string"&&l||"core";this.knownTags=c?o.coreKnownTags:{};this.tags=o.getTags(t,this.name,r);this.toStringOptions=f??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:a.string});Object.defineProperty(this,n.SEQ,{value:i.seq});this.sortMapEntries=typeof u==="function"?u:u===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},7451:(e,t,r)=>{"use strict";var n=r(1127);var s=r(4454);const i={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=i},3632:(e,t,r)=>{"use strict";var n=r(3301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{"use strict";var n=r(1127);var s=r(2223);const i={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=i},6464:(e,t,r)=>{"use strict";var n=r(3069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},3959:(e,t,r)=>{"use strict";var n=r(3301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},8405:(e,t,r)=>{"use strict";var n=r(3301);var s=r(8689);const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=o;t.floatExp=a;t.floatNaN=i},9874:(e,t,r)=>{"use strict";var n=r(8689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intHex=a;t.intOct=s},896:(e,t,r)=>{"use strict";var n=r(7451);var s=r(3632);var i=r(1706);var a=r(6464);var o=r(3959);var c=r(8405);var l=r(9874);const u=[n.map,i.seq,a.string,s.nullTag,o.boolTag,l.intOct,l.int,l.intHex,c.floatNaN,c.floatExp,c.float];t.schema=u},3559:(e,t,r)=>{"use strict";var n=r(3301);var s=r(7451);var i=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const a=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const o={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,i.seq].concat(a,o);t.schema=c},18:(e,t,r)=>{"use strict";var n=r(7451);var s=r(3632);var i=r(1706);var a=r(6464);var o=r(3959);var c=r(8405);var l=r(9874);var u=r(896);var f=r(3559);var d=r(6083);var h=r(452);var p=r(303);var m=r(8385);var g=r(5913);var y=r(1528);var v=r(6752);const b=new Map([["core",u.schema],["failsafe",[n.map,i.seq,a.string]],["json",f.schema],["yaml11",g.schema],["yaml-1.1",g.schema]]);const S={binary:d.binary,bool:o.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:v.floatTime,int:l.int,intHex:l.intHex,intOct:l.intOct,intTime:v.intTime,map:n.map,merge:h.merge,null:s.nullTag,omap:p.omap,pairs:m.pairs,seq:i.seq,set:y.set,timestamp:v.timestamp};const w={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:merge":h.merge,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":m.pairs,"tag:yaml.org,2002:set":y.set,"tag:yaml.org,2002:timestamp":v.timestamp};function getTags(e,t,r){const n=b.get(t);if(n&&!e){return r&&!n.includes(h.merge)?n.concat(h.merge):n.slice()}let s=n;if(!s){if(Array.isArray(e))s=[];else{const e=Array.from(b.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)s=s.concat(t)}else if(typeof e==="function"){s=e(s.slice())}if(r)s=s.concat(h.merge);return s.reduce(((e,t)=>{const r=typeof t==="string"?S[t]:t;if(!r){const e=JSON.stringify(t);const r=Object.keys(S).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag ${e}; use one of ${r}`)}if(!e.includes(r))e.push(r);return e}),[])}t.coreKnownTags=w;t.getTags=getTags},6083:(e,t,r)=>{"use strict";var n=r(3301);var s=r(3069);const i={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}else{t("This environment does not support reading binary tags; either Buffer or atob is required");return e}},stringify({comment:e,type:t,value:r},i,a,o){const c=r;let l;if(typeof Buffer==="function"){l=c instanceof Buffer?c.toString("base64"):Buffer.from(c.buffer).toString("base64")}else if(typeof btoa==="function"){let e="";for(let t=0;t<c.length;++t)e+=String.fromCharCode(c[t]);l=btoa(e)}else{throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required")}if(!t)t=n.Scalar.BLOCK_LITERAL;if(t!==n.Scalar.QUOTE_DOUBLE){const e=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth);const r=Math.ceil(l.length/e);const s=new Array(r);for(let t=0,n=0;t<r;++t,n+=e){s[t]=l.substr(n,e)}l=s.join(t===n.Scalar.BLOCK_LITERAL?"\n":" ")}return s.stringifyString({comment:e,type:t,value:l},i,a,o)}};t.binary=i},8398:(e,t,r)=>{"use strict";var n=r(3301);function boolStringify({value:e,source:t},r){const n=e?s:i;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const i={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=i;t.trueTag=s},5782:(e,t,r)=>{"use strict";var n=r(3301);var s=r(8689);const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const a={identify:e=>typeof e==="number",default:true,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){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=o;t.floatExp=a;t.floatNaN=i},873:(e,t,r)=>{"use strict";var n=r(8689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const i=parseInt(e,r);return s==="-"?-1*i:i}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=a;t.intBin=s;t.intHex=o;t.intOct=i},452:(e,t,r)=>{"use strict";var n=r(1127);var s=r(3301);const i="<<";const a={identify:e=>e===i||typeof e==="symbol"&&e.description===i,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new s.Scalar(Symbol(i)),{addToJSMap:addMergeToJSMap}),stringify:()=>i};const isMergeKey=(e,t)=>(a.identify(t)||n.isScalar(t)&&(!t.type||t.type===s.Scalar.PLAIN)&&a.identify(t.value))&&e?.doc.schema.tags.some((e=>e.tag===a.tag&&e.default));function addMergeToJSMap(e,t,r){r=e&&n.isAlias(r)?r.resolve(e.doc):r;if(n.isSeq(r))for(const n of r.items)mergeValue(e,t,n);else if(Array.isArray(r))for(const n of r)mergeValue(e,t,n);else mergeValue(e,t,r)}function mergeValue(e,t,r){const s=e&&n.isAlias(r)?r.resolve(e.doc):r;if(!n.isMap(s))throw new Error("Merge sources must be maps or map aliases");const i=s.toJSON(null,e,Map);for(const[e,r]of i){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}t.addMergeToJSMap=addMergeToJSMap;t.isMergeKey=isMergeKey;t.merge=a},303:(e,t,r)=>{"use strict";var n=r(1127);var s=r(4043);var i=r(4454);var a=r(2223);var o=r(8385);class YAMLOMap extends a.YAMLSeq{constructor(){super();this.add=i.YAMLMap.prototype.add.bind(this);this.delete=i.YAMLMap.prototype.delete.bind(this);this.get=i.YAMLMap.prototype.get.bind(this);this.has=i.YAMLMap.prototype.has.bind(this);this.set=i.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let i,a;if(n.isPair(e)){i=s.toJS(e.key,"",t);a=s.toJS(e.value,i,t)}else{i=s.toJS(e,"",t)}if(r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,a)}return r}static from(e,t,r){const n=o.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=o.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},8385:(e,t,r)=>{"use strict";var n=r(1127);var s=r(7165);var i=r(3301);var a=r(2223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r<e.items.length;++r){let a=e.items[r];if(n.isPair(a))continue;else if(n.isMap(a)){if(a.items.length>1)t("Each pair must have its own sequence indicator");const e=a.items[0]||new s.Pair(new i.Scalar(null));if(a.commentBefore)e.key.commentBefore=e.key.commentBefore?`${a.commentBefore}\n${e.key.commentBefore}`:a.commentBefore;if(a.comment){const t=e.value??e.key;t.comment=t.comment?`${a.comment}\n${t.comment}`:a.comment}a=e}e.items[r]=n.isPair(a)?a:new s.Pair(a)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const i=new a.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(o++),e);let a,c;if(Array.isArray(e)){if(e.length===2){a=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){a=t[0];c=e[a]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{a=e}i.items.push(s.createPair(a,c,r))}return i}const o={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=o;t.resolvePairs=resolvePairs},5913:(e,t,r)=>{"use strict";var n=r(7451);var s=r(3632);var i=r(1706);var a=r(6464);var o=r(6083);var c=r(8398);var l=r(5782);var u=r(873);var f=r(452);var d=r(303);var h=r(8385);var p=r(1528);var m=r(6752);const g=[n.map,i.seq,a.string,s.nullTag,c.trueTag,c.falseTag,u.intBin,u.intOct,u.int,u.intHex,l.floatNaN,l.floatExp,l.float,o.binary,f.merge,d.omap,h.pairs,p.set,m.intTime,m.floatTime,m.timestamp];t.schema=g},1528:(e,t,r)=>{"use strict";var n=r(1127);var s=r(7165);var i=r(4454);class YAMLSet extends i.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=i.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=i.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=i.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);i.items.push(s.createPair(e,null,r))}return i}}YAMLSet.tag="tag:yaml.org,2002:set";const a={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=a},6752:(e,t,r)=>{"use strict";var n=r(8689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const i=[t%s];if(t<60){i.unshift(0)}else{t=(t-i[0])/s;i.unshift(t%s);if(t>=60){t=(t-i[0])/s;i.unshift(t)}}return r+i.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const a={identify:e=>e instanceof Date,default:true,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){const t=e.match(a.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,i,o,c]=t.map(Number);const l=t[7]?Number((t[7]+"00").substr(1,3)):0;let u=Date.UTC(r,n-1,s,i||0,o||0,c||0,l);const f=t[8];if(f&&f!=="Z"){let e=parseSexagesimal(f,false);if(Math.abs(e)<30)e*=60;u-=6e4*e}return new Date(u)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=i;t.intTime=s;t.timestamp=a},4475:(e,t)=>{"use strict";const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:i,lineWidth:a=80,minContentWidth:o=20,onFold:c,onOverflow:l}={}){if(!a||a<0)return e;if(a<o)o=0;const u=Math.max(1+o,1+a-t.length);if(e.length<=u)return e;const f=[];const d={};let h=a-t.length;if(typeof i==="number"){if(i>a-Math.max(2,o))f.push(0);else h=a-i}let p=undefined;let m=undefined;let g=false;let y=-1;let v=-1;let b=-1;if(r===n){y=consumeMoreIndentedLines(e,y,t.length);if(y!==-1)h=y+u}for(let i;i=e[y+=1];){if(r===s&&i==="\\"){v=y;switch(e[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}b=y}if(i==="\n"){if(r===n)y=consumeMoreIndentedLines(e,y,t.length);h=y+t.length+u;p=undefined}else{if(i===" "&&m&&m!==" "&&m!=="\n"&&m!=="\t"){const t=e[y+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")p=y}if(y>=h){if(p){f.push(p);h=p+u;p=undefined}else if(r===s){while(m===" "||m==="\t"){m=i;i=e[y+=1];g=true}const t=y>b+1?y-2:v-1;if(d[t])return e;f.push(t);d[t]=true;h=t+u;p=undefined}else{g=true}}}m=i}if(g&&l)l();if(f.length===0)return e;if(c)c();let S=e.slice(0,f[0]);for(let n=0;n<f.length;++n){const i=f[n];const a=f[n+1]||e.length;if(i===0)S=`\n${t}${e.slice(0,a)}`;else{if(r===s&&d[i])S+=`${e[i]}\\`;S+=`\n${t}${e.slice(i+1,a)}`}}return S}function consumeMoreIndentedLines(e,t,r){let n=t;let s=t+1;let i=e[s];while(i===" "||i==="\t"){if(t<s+r){i=e[++t]}else{do{i=e[++t]}while(i&&i!=="\n");n=t;s=t+1;i=e[s]}}return n}t.FOLD_BLOCK=n;t.FOLD_FLOW=r;t.FOLD_QUOTED=s;t.foldFlowLines=foldFlowLines},2148:(e,t,r)=>{"use strict";var n=r(1596);var s=r(1127);var i=r(9799);var a=r(3069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:i.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;let s=e.filter((e=>e.identify?.(n)));if(s.length>1){const e=s.filter((e=>e.test));if(e.length>0)s=e}r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:i}){if(!i.directives)return"";const a=[];const o=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(o&&n.anchorIsValid(o)){r.add(o);a.push(`&${o}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)a.push(i.directives.tagString(c));return a.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let i=undefined;const o=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});if(!i)i=getTagObject(t.doc.schema.tags,o);const c=stringifyProps(o,i,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const l=typeof i.stringify==="function"?i.stringify(o,t,r,n):s.isScalar(o)?a.stringifyString(o,t,r,n):o.toString(t,r,n);if(!c)return l;return s.isScalar(o)||l[0]==="{"||l[0]==="["?`${c} ${l}`:`${c}\n${t.indent}${l}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},1212:(e,t,r)=>{"use strict";var n=r(1127);var s=r(2148);var i=r(9799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:a,flowChars:o,itemIndent:c,onChompKeep:l,onComment:u}){const{indent:f,options:{commentString:d}}=r;const h=Object.assign({},r,{indent:c,type:null});let p=false;const m=[];for(let e=0;e<t.length;++e){const o=t[e];let l=null;if(n.isNode(o)){if(!p&&o.spaceBefore)m.push("");addCommentBefore(r,m,o.commentBefore,p);if(o.comment)l=o.comment}else if(n.isPair(o)){const e=n.isNode(o.key)?o.key:null;if(e){if(!p&&e.spaceBefore)m.push("");addCommentBefore(r,m,e.commentBefore,p)}}p=false;let u=s.stringify(o,h,(()=>l=null),(()=>p=true));if(l)u+=i.lineComment(u,c,d(l));if(p&&l)p=false;m.push(a+u)}let g;if(m.length===0){g=o.start+o.end}else{g=m[0];for(let e=1;e<m.length;++e){const t=m[e];g+=t?`\n${f}${t}`:"\n"}}if(e){g+="\n"+i.indentComment(d(e),f);if(u)u()}else if(p&&l)l();return g}function stringifyFlowCollection({items:e},t,{flowChars:r,itemIndent:a}){const{indent:o,indentStep:c,flowCollectionPadding:l,options:{commentString:u}}=t;a+=c;const f=Object.assign({},t,{indent:a,inFlow:true,type:null});let d=false;let h=0;const p=[];for(let r=0;r<e.length;++r){const o=e[r];let c=null;if(n.isNode(o)){if(o.spaceBefore)p.push("");addCommentBefore(t,p,o.commentBefore,false);if(o.comment)c=o.comment}else if(n.isPair(o)){const e=n.isNode(o.key)?o.key:null;if(e){if(e.spaceBefore)p.push("");addCommentBefore(t,p,e.commentBefore,false);if(e.comment)d=true}const r=n.isNode(o.value)?o.value:null;if(r){if(r.comment)c=r.comment;if(r.commentBefore)d=true}else if(o.value==null&&e?.comment){c=e.comment}}if(c)d=true;let l=s.stringify(o,f,(()=>c=null));if(r<e.length-1)l+=",";if(c)l+=i.lineComment(l,a,u(c));if(!d&&(p.length>h||l.includes("\n")))d=true;p.push(l);h=p.length}const{start:m,end:g}=r;if(p.length===0){return m+g}else{if(!d){const e=p.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=m;for(const t of p)e+=t?`\n${c}${o}${t}`:"\n";return`${e}\n${o}${g}`}else{return`${m}${l}${p.join(" ")}${l}${g}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=i.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},9799:(e,t)=>{"use strict";const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{"use strict";var n=r(1127);var s=r(2148);var i=r(9799);function stringifyDocument(e,t){const r=[];let a=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);a=true}else if(e.directives.docStart)a=true}if(a)r.push("---");const o=s.createStringifyContext(e,t);const{commentString:c}=o.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(i.indentComment(t,""))}let l=false;let u=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&a)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(i.indentComment(t,""))}o.forceBlockIndent=!!e.comment;u=e.contents.comment}const t=u?undefined:()=>l=true;let f=s.stringify(e.contents,o,(()=>u=null),t);if(u)f+=i.lineComment(f,"",c(u));if((f[0]==="|"||f[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${f}`}else r.push(f)}else{r.push(s.stringify(e.contents,o))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(i.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&l)t=t.replace(/^\n+/,"");if(t){if((!l||u)&&r[r.length-1]!=="")r.push("");r.push(i.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},8689:(e,t)=>{"use strict";function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let i=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let e=i.indexOf(".");if(e<0){e=i.length;i+="."}let r=t-(i.length-e-1);while(r-- >0)i+="0"}return i}t.stringifyNumber=stringifyNumber},9748:(e,t,r)=>{"use strict";var n=r(1127);var s=r(3301);var i=r(2148);var a=r(9799);function stringifyPair({key:e,value:t},r,o,c){const{allNullValues:l,doc:u,indent:f,indentStep:d,options:{commentString:h,indentSeq:p,simpleKeys:m}}=r;let g=n.isNode(e)&&e.comment||null;if(m){if(g){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let y=!m&&(!e||g&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!y&&(m||!l),indent:f+d});let v=false;let b=false;let S=i.stringify(e,r,(()=>v=true),(()=>b=true));if(!y&&!r.inFlow&&S.length>1024){if(m)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");y=true}if(r.inFlow){if(l||t==null){if(v&&o)o();return S===""?"?":y?`? ${S}`:S}}else if(l&&!m||t==null&&y){S=`? ${S}`;if(g&&!v){S+=a.lineComment(S,r.indent,h(g))}else if(b&&c)c();return S}if(v)g=null;if(y){if(g)S+=a.lineComment(S,r.indent,h(g));S=`? ${S}\n${f}:`}else{S=`${S}:`;if(g)S+=a.lineComment(S,r.indent,h(g))}let w,O,P;if(n.isNode(t)){w=!!t.spaceBefore;O=t.commentBefore;P=t.comment}else{w=false;O=null;P=null;if(t&&typeof t==="object")t=u.createNode(t)}r.implicitKey=false;if(!y&&!g&&n.isScalar(t))r.indentAtStart=S.length+1;b=false;if(!p&&d.length>=2&&!r.inFlow&&!y&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let A=false;const _=i.stringify(t,r,(()=>A=true),(()=>b=true));let k=" ";if(g||w||O){k=w?"\n":"";if(O){const e=h(O);k+=`\n${a.indentComment(e,r.indent)}`}if(_===""&&!r.inFlow){if(k==="\n")k="\n\n"}else{k+=`\n${r.indent}`}}else if(!y&&n.isCollection(t)){const e=_[0];const n=_.indexOf("\n");const s=n!==-1;const i=r.inFlow??t.flow??t.items.length===0;if(s||!i){let t=false;if(s&&(e==="&"||e==="!")){let r=_.indexOf(" ");if(e==="&"&&r!==-1&&r<n&&_[r+1]==="!"){r=_.indexOf(" ",r+1)}if(r===-1||n<r)t=true}if(!t)k=`\n${r.indent}`}}else if(_===""||_[0]==="\n"){k=""}S+=k+_;if(r.inFlow){if(A&&o)o()}else if(P&&!A){S+=a.lineComment(S,r.indent,h(P))}else if(b&&c){c()}return S}t.stringifyPair=stringifyPair},3069:(e,t,r)=>{"use strict";var n=r(3301);var s=r(4475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;t<s;++t){if(e[t]==="\n"){if(t-r>n)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const i=t.options.doubleQuotedMinMultiLineLength;const a=t.indent||(containsDocumentMarker(e)?" ":"");let o="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){o+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{o+=r.slice(c,e);const t=r.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:if(t.substr(0,2)==="00")o+="\\x"+t.substr(2);else o+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length<i){e+=1}else{o+=r.slice(c,e)+"\n\n";while(r[e+2]==="\\"&&r[e+3]==="n"&&r[e+4]!=='"'){o+="\n";e+=2}o+=a;if(r[e+2]===" ")o+="\\";e+=1;c=e+1}break;default:e+=1}}o=c?o+r.slice(c):r;return n?o:s.foldFlowLines(o,a,s.FOLD_QUOTED,getFoldOptions(t,false))}function singleQuotedString(e,t){if(t.options.singleQuote===false||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return doubleQuotedString(e,t);const r=t.indent||(containsDocumentMarker(e)?" ":"");const n="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${r}`)+"'";return t.implicitKey?n:s.foldFlowLines(n,r,s.FOLD_FLOW,getFoldOptions(t,false))}function quotedString(e,t){const{singleQuote:r}=t.options;let n;if(r===false)n=doubleQuotedString;else{const t=e.includes('"');const s=e.includes("'");if(t&&!s)n=singleQuotedString;else if(s&&!t)n=doubleQuotedString;else n=r?singleQuotedString:doubleQuotedString}return n(e,t)}let i;try{i=new RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{i=/\n+(?!\n|$)/g}function blockString({comment:e,type:t,value:r},a,o,c){const{blockQuote:l,commentString:u,lineWidth:f}=a.options;if(!l||/\n[\t ]+$/.test(r)||/^\s*$/.test(r)){return quotedString(r,a)}const d=a.indent||(a.forceBlockIndent||containsDocumentMarker(r)?" ":"");const h=l==="literal"?true:l==="folded"||t===n.Scalar.BLOCK_FOLDED?false:t===n.Scalar.BLOCK_LITERAL?true:!lineLengthOverLimit(r,f,d.length);if(!r)return h?"|\n":">\n";let p;let m;for(m=r.length;m>0;--m){const e=r[m-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let g=r.substring(m);const y=g.indexOf("\n");if(y===-1){p="-"}else if(r===g||y!==g.length-1){p="+";if(c)c()}else{p=""}if(g){r=r.slice(0,-g.length);if(g[g.length-1]==="\n")g=g.slice(0,-1);g=g.replace(i,`$&${d}`)}let v=false;let b;let S=-1;for(b=0;b<r.length;++b){const e=r[b];if(e===" ")v=true;else if(e==="\n")S=b;else break}let w=r.substring(0,S<b?S+1:b);if(w){r=r.substring(w.length);w=w.replace(/\n+/g,`$&${d}`)}const O=d?"2":"1";let P=(h?"|":">")+(v?O:"")+p;if(e){P+=" "+u(e.replace(/ ?[\r\n]+/g," "));if(o)o()}if(h){r=r.replace(/\n+/g,`$&${d}`);return`${P}\n${d}${w}${r}${g}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const A=s.foldFlowLines(`${w}${r}${g}`,d,s.FOLD_BLOCK,getFoldOptions(a,true));return`${P}\n${d}${A}`}function plainString(e,t,r,i){const{type:a,value:o}=e;const{actualString:c,implicitKey:l,indent:u,indentStep:f,inFlow:d}=t;if(l&&o.includes("\n")||d&&/[[\]{},]/.test(o)){return quotedString(o,t)}if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o)){return l||d||!o.includes("\n")?quotedString(o,t):blockString(e,t,r,i)}if(!l&&!d&&a!==n.Scalar.PLAIN&&o.includes("\n")){return blockString(e,t,r,i)}if(containsDocumentMarker(o)){if(u===""){t.forceBlockIndent=true;return blockString(e,t,r,i)}else if(l&&u===f){return quotedString(o,t)}}const h=o.replace(/\n+/g,`$&\n${u}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(h);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(o,t)}return l?h:s.foldFlowLines(h,u,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:i,inFlow:a}=t;const o=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return i||a?quotedString(o.value,t):blockString(o,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(o.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(o.value,t);case n.Scalar.PLAIN:return plainString(o,t,r,s);default:return null}};let l=_stringify(c);if(l===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=i&&e||r;l=_stringify(n);if(l===null)throw new Error(`Unsupported default string type ${n}`)}return l}t.stringifyString=stringifyString},204:(e,t,r)=>{"use strict";var n=r(1127);const s=Symbol("break visit");const i=Symbol("skip children");const a=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===a)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=i;visit.REMOVE=a;function visit_(e,t,r,i){const o=callVisitor(e,t,r,i);if(n.isNode(o)||n.isPair(o)){replaceNode(e,i,o);return visit_(e,o,r,i)}if(typeof o!=="symbol"){if(n.isCollection(t)){i=Object.freeze(i.concat(t));for(let e=0;e<t.items.length;++e){const n=visit_(e,t.items[e],r,i);if(typeof n==="number")e=n-1;else if(n===s)return s;else if(n===a){t.items.splice(e,1);e-=1}}}else if(n.isPair(t)){i=Object.freeze(i.concat(t));const e=visit_("key",t.key,r,i);if(e===s)return s;else if(e===a)t.key=null;const n=visit_("value",t.value,r,i);if(n===s)return s;else if(n===a)t.value=null}}return o}async function visitAsync(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=await visitAsync_(null,e.contents,r,Object.freeze([e]));if(t===a)e.contents=null}else await visitAsync_(null,e,r,Object.freeze([]))}visitAsync.BREAK=s;visitAsync.SKIP=i;visitAsync.REMOVE=a;async function visitAsync_(e,t,r,i){const o=await callVisitor(e,t,r,i);if(n.isNode(o)||n.isPair(o)){replaceNode(e,i,o);return visitAsync_(e,o,r,i)}if(typeof o!=="symbol"){if(n.isCollection(t)){i=Object.freeze(i.concat(t));for(let e=0;e<t.items.length;++e){const n=await visitAsync_(e,t.items[e],r,i);if(typeof n==="number")e=n-1;else if(n===s)return s;else if(n===a){t.items.splice(e,1);e-=1}}}else if(n.isPair(t)){i=Object.freeze(i.concat(t));const e=await visitAsync_("key",t.key,r,i);if(e===s)return s;else if(e===a)t.key=null;const n=await visitAsync_("value",t.value,r,i);if(n===s)return s;else if(n===a)t.value=null}}return o}function initVisitor(e){if(typeof e==="object"&&(e.Collection||e.Node||e.Value)){return 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)}return e}function callVisitor(e,t,r,s){if(typeof r==="function")return r(e,t,s);if(n.isMap(t))return r.Map?.(e,t,s);if(n.isSeq(t))return r.Seq?.(e,t,s);if(n.isPair(t))return r.Pair?.(e,t,s);if(n.isScalar(t))return r.Scalar?.(e,t,s);if(n.isAlias(t))return r.Alias?.(e,t,s);return undefined}function replaceNode(e,t,r){const s=t[t.length-1];if(n.isCollection(s)){s.items[e]=r}else if(n.isPair(s)){if(e==="key")s.key=r;else s.value=r}else if(n.isDocument(s)){s.contents=r}else{const e=n.isAlias(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}}t.visit=visit;t.visitAsync=visitAsync}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var s=t[r]={exports:{}};var i=true;try{e[r].call(s.exports,s,s.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}return s.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r={};(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:true});const t=__nccwpck_require__(9896);const n=__nccwpck_require__(6928);const s=__nccwpck_require__(5534);const i=__nccwpck_require__(8760);const a=__nccwpck_require__(4037);const generateTemplate=()=>{try{const e=(0,a.createTemplateOptions)();try{const r=(0,s.createLambdaAPI)(e);(0,t.writeFileSync)((0,n.resolve)(process.cwd(),"template.yml"),(0,i.parseYML)(r),"utf-8")}catch(e){if(e instanceof Error)console.error("Error:",e.message);else console.error(e);process.exitCode=1}}catch(e){console.error(e instanceof Error?`${e.name}: ${e.message}`:e);process.exitCode=1}};generateTemplate()})();module.exports=r})();