@nhtio/validation 1.20251028.0 → 1.20251029.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import vitePluginRequire_1761673929235_17376597 from"knex";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__esmMin=(fn$1,res)=>()=>(fn$1&&(res=fn$1(fn$1=0)),res),__commonJSMin=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports),__export=(target,all$1)=>{for(var name$1 in all$1)__defProp(target,name$1,{get:all$1[name$1],enumerable:!0})},__copyProps=(to,from,except,desc$1)=>{if(from&&typeof from==`object`||typeof from==`function`)for(var keys=__getOwnPropNames(from),i$4=0,n$2=keys.length,key;i$4<n$2;i$4++)key=keys[i$4],!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:(k=>from[k]).bind(null,key),enumerable:!(desc$1=__getOwnPropDesc(from,key))||desc$1.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod==null?{}:__create(__getProtoOf(mod)),__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,`default`,{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},`__esModule`,{value:!0}),mod);const json=root=>root;var require_assertError=__commonJSMin((exports,module)=>{module.exports=class extends Error{name=`AssertError`;constructor(message,ctor){super(message||`Unknown error`),typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,ctor)}}}),require_stringify=__commonJSMin((exports,module)=>{module.exports=function(...args$1){try{return JSON.stringify(...args$1)}catch(err$1){return`[Cannot display object: `+err$1.message+`]`}}}),require_assert=__commonJSMin((exports,module)=>{let AssertError$2=require_assertError(),Stringify=require_stringify(),assert$29=module.exports=function(condition,...args$1){if(condition)return;if(args$1.length===1&&args$1[0]instanceof Error)throw args$1[0];let msgs=args$1.filter(arg=>arg!==``).map(arg=>typeof arg==`string`?arg:arg instanceof Error?arg.message:Stringify(arg));throw new AssertError$2(msgs.join(` `),assert$29)}});function getLens$1(b64){var len$2=b64.length;if(len$2%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var validLen=b64.indexOf(`=`);validLen===-1&&(validLen=len$2);var placeHoldersLen=validLen===len$2?0:4-validLen%4;return[validLen,placeHoldersLen]}function byteLength$1(b64){var lens=getLens$1(b64),validLen=lens[0],placeHoldersLen=lens[1];return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function _byteLength$1(b64,validLen,placeHoldersLen){return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function toByteArray$1(b64){var tmp,lens=getLens$1(b64),validLen=lens[0],placeHoldersLen=lens[1],arr=new Arr$1(_byteLength$1(b64,validLen,placeHoldersLen)),curByte=0,len$2=placeHoldersLen>0?validLen-4:validLen,i$4;for(i$4=0;i$4<len$2;i$4+=4)tmp=revLookup$1[b64.charCodeAt(i$4)]<<18|revLookup$1[b64.charCodeAt(i$4+1)]<<12|revLookup$1[b64.charCodeAt(i$4+2)]<<6|revLookup$1[b64.charCodeAt(i$4+3)],arr[curByte++]=tmp>>16&255,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255;return placeHoldersLen===2&&(tmp=revLookup$1[b64.charCodeAt(i$4)]<<2|revLookup$1[b64.charCodeAt(i$4+1)]>>4,arr[curByte++]=tmp&255),placeHoldersLen===1&&(tmp=revLookup$1[b64.charCodeAt(i$4)]<<10|revLookup$1[b64.charCodeAt(i$4+1)]<<4|revLookup$1[b64.charCodeAt(i$4+2)]>>2,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255),arr}function tripletToBase64$1(num){return lookup$1[num>>18&63]+lookup$1[num>>12&63]+lookup$1[num>>6&63]+lookup$1[num&63]}function encodeChunk$1(uint8,start,end){for(var tmp,output=[],i$4=start;i$4<end;i$4+=3)tmp=(uint8[i$4]<<16&16711680)+(uint8[i$4+1]<<8&65280)+(uint8[i$4+2]&255),output.push(tripletToBase64$1(tmp));return output.join(``)}function fromByteArray$1(uint8){for(var tmp,len$2=uint8.length,extraBytes=len$2%3,parts=[],maxChunkLength=16383,i$4=0,len2=len$2-extraBytes;i$4<len2;i$4+=maxChunkLength)parts.push(encodeChunk$1(uint8,i$4,i$4+maxChunkLength>len2?len2:i$4+maxChunkLength));return extraBytes===1?(tmp=uint8[len$2-1],parts.push(lookup$1[tmp>>2]+lookup$1[tmp<<4&63]+`==`)):extraBytes===2&&(tmp=(uint8[len$2-2]<<8)+uint8[len$2-1],parts.push(lookup$1[tmp>>10]+lookup$1[tmp>>4&63]+lookup$1[tmp<<2&63]+`=`)),parts.join(``)}var buffer$1,base64Js$1,lookup$1,revLookup$1,Arr$1,code$1,ieee754$1,Buffer$1,Blob$1,BlobOptions,Buffer$1$1,File,FileOptions,INSPECT_MAX_BYTES,SlowBuffer,TranscodeEncoding,atob$1,btoa$1,constants$1,isAscii,isUtf8,kMaxLength,kStringMaxLength,resolveObjectURL,transcode,init_dist$1=__esmMin(()=>{buffer$1={},base64Js$1={},base64Js$1.byteLength=byteLength$1,base64Js$1.toByteArray=toByteArray$1,base64Js$1.fromByteArray=fromByteArray$1,lookup$1=[],revLookup$1=[],Arr$1=typeof Uint8Array<`u`?Uint8Array:Array,code$1=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;for(var i$3=0,len$1=code$1.length;i$3<len$1;++i$3)lookup$1[i$3]=code$1[i$3],revLookup$1[code$1.charCodeAt(i$3)]=i$3;revLookup$1[45]=62,revLookup$1[95]=63,ieee754$1={},ieee754$1.read=function(buffer$2,offset$2,isLE,mLen,nBytes){var e,m,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=-7,i$4=isLE?nBytes-1:0,d=isLE?-1:1,s$2=buffer$2[offset$2+i$4];for(i$4+=d,e=s$2&(1<<-nBits)-1,s$2>>=-nBits,nBits+=eLen;nBits>0;e=e*256+buffer$2[offset$2+i$4],i$4+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=m*256+buffer$2[offset$2+i$4],i$4+=d,nBits-=8);if(e===0)e=1-eBias;else if(e===eMax)return m?NaN:(s$2?-1:1)*(1/0);else m+=2**mLen,e-=eBias;return(s$2?-1:1)*m*2**(e-mLen)},ieee754$1.write=function(buffer$2,value,offset$2,isLE,mLen,nBytes){var e,m,c$1,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=mLen===23?2**-24-2**-77:0,i$4=isLE?0:nBytes-1,d=isLE?1:-1,s$2=value<0||value===0&&1/value<0?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c$1=2**-e)<1&&(e--,c$1*=2),e+eBias>=1?value+=rt/c$1:value+=rt*2**(1-eBias),value*c$1>=2&&(e++,c$1/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c$1-1)*2**mLen,e+=eBias):(m=value*2**(eBias-1)*2**mLen,e=0));mLen>=8;buffer$2[offset$2+i$4]=m&255,i$4+=d,m/=256,mLen-=8);for(e=e<<mLen|m,eLen+=mLen;eLen>0;buffer$2[offset$2+i$4]=e&255,i$4+=d,e/=256,eLen-=8);buffer$2[offset$2+i$4-d]|=s$2*128},function(exports$1){let base64=base64Js$1,ieee754$1$1=ieee754$1,customInspectSymbol=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;exports$1.Buffer=Buffer$2,exports$1.SlowBuffer=SlowBuffer$1,exports$1.INSPECT_MAX_BYTES=50;let K_MAX_LENGTH=2147483647;exports$1.kMaxLength=K_MAX_LENGTH;let{Uint8Array:GlobalUint8Array,ArrayBuffer:GlobalArrayBuffer,SharedArrayBuffer:GlobalSharedArrayBuffer}=globalThis;Buffer$2.TYPED_ARRAY_SUPPORT=typedArraySupport(),!Buffer$2.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function typedArraySupport(){try{let arr=new GlobalUint8Array(1),proto={foo:function(){return 42}};return Object.setPrototypeOf(proto,GlobalUint8Array.prototype),Object.setPrototypeOf(arr,proto),arr.foo()===42}catch{return!1}}Object.defineProperty(Buffer$2.prototype,`parent`,{enumerable:!0,get:function(){if(Buffer$2.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer$2.prototype,`offset`,{enumerable:!0,get:function(){if(Buffer$2.isBuffer(this))return this.byteOffset}});function createBuffer(length){if(length>K_MAX_LENGTH)throw RangeError(`The value "`+length+`" is invalid for option "size"`);let buf=new GlobalUint8Array(length);return Object.setPrototypeOf(buf,Buffer$2.prototype),buf}function Buffer$2(arg,encodingOrOffset,length){if(typeof arg==`number`){if(typeof encodingOrOffset==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return allocUnsafe(arg)}return from(arg,encodingOrOffset,length)}Buffer$2.poolSize=8192;function from(value,encodingOrOffset,length){if(typeof value==`string`)return fromString(value,encodingOrOffset);if(GlobalArrayBuffer.isView(value))return fromArrayView(value);if(value==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof value);if(isInstance(value,GlobalArrayBuffer)||value&&isInstance(value.buffer,GlobalArrayBuffer)||GlobalSharedArrayBuffer!==void 0&&(isInstance(value,GlobalSharedArrayBuffer)||value&&isInstance(value.buffer,GlobalSharedArrayBuffer)))return fromArrayBuffer(value,encodingOrOffset,length);if(typeof value==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let valueOf=value.valueOf&&value.valueOf();if(valueOf!=null&&valueOf!==value)return Buffer$2.from(valueOf,encodingOrOffset,length);let b=fromObject(value);if(b)return b;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof value[Symbol.toPrimitive]==`function`)return Buffer$2.from(value[Symbol.toPrimitive](`string`),encodingOrOffset,length);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof value)}Buffer$2.from=function(value,encodingOrOffset,length){return from(value,encodingOrOffset,length)},Object.setPrototypeOf(Buffer$2.prototype,GlobalUint8Array.prototype),Object.setPrototypeOf(Buffer$2,GlobalUint8Array);function assertSize(size){if(typeof size!=`number`)throw TypeError(`"size" argument must be of type number`);if(size<0)throw RangeError(`The value "`+size+`" is invalid for option "size"`)}function alloc(size,fill,encoding){return assertSize(size),size<=0||fill===void 0?createBuffer(size):typeof encoding==`string`?createBuffer(size).fill(fill,encoding):createBuffer(size).fill(fill)}Buffer$2.alloc=function(size,fill,encoding){return alloc(size,fill,encoding)};function allocUnsafe(size){return assertSize(size),createBuffer(size<0?0:checked(size)|0)}Buffer$2.allocUnsafe=function(size){return allocUnsafe(size)},Buffer$2.allocUnsafeSlow=function(size){return allocUnsafe(size)};function fromString(string,encoding){if((typeof encoding!=`string`||encoding===``)&&(encoding=`utf8`),!Buffer$2.isEncoding(encoding))throw TypeError(`Unknown encoding: `+encoding);let length=byteLength$2(string,encoding)|0,buf=createBuffer(length),actual=buf.write(string,encoding);return actual!==length&&(buf=buf.slice(0,actual)),buf}function fromArrayLike(array){let length=array.length<0?0:checked(array.length)|0,buf=createBuffer(length);for(let i$4=0;i$4<length;i$4+=1)buf[i$4]=array[i$4]&255;return buf}function fromArrayView(arrayView){if(isInstance(arrayView,GlobalUint8Array)){let copy=new GlobalUint8Array(arrayView);return fromArrayBuffer(copy.buffer,copy.byteOffset,copy.byteLength)}return fromArrayLike(arrayView)}function fromArrayBuffer(array,byteOffset,length){if(byteOffset<0||array.byteLength<byteOffset)throw RangeError(`"offset" is outside of buffer bounds`);if(array.byteLength<byteOffset+(length||0))throw RangeError(`"length" is outside of buffer bounds`);let buf;return buf=byteOffset===void 0&&length===void 0?new GlobalUint8Array(array):length===void 0?new GlobalUint8Array(array,byteOffset):new GlobalUint8Array(array,byteOffset,length),Object.setPrototypeOf(buf,Buffer$2.prototype),buf}function fromObject(obj){if(Buffer$2.isBuffer(obj)){let len$2=checked(obj.length)|0,buf=createBuffer(len$2);return buf.length===0||obj.copy(buf,0,0,len$2),buf}if(obj.length!==void 0)return typeof obj.length!=`number`||numberIsNaN(obj.length)?createBuffer(0):fromArrayLike(obj);if(obj.type===`Buffer`&&Array.isArray(obj.data))return fromArrayLike(obj.data)}function checked(length){if(length>=K_MAX_LENGTH)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+K_MAX_LENGTH.toString(16)+` bytes`);return length|0}function SlowBuffer$1(length){return+length!=length&&(length=0),Buffer$2.alloc(+length)}Buffer$2.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==Buffer$2.prototype},Buffer$2.compare=function(a,b){if(isInstance(a,GlobalUint8Array)&&(a=Buffer$2.from(a,a.offset,a.byteLength)),isInstance(b,GlobalUint8Array)&&(b=Buffer$2.from(b,b.offset,b.byteLength)),!Buffer$2.isBuffer(a)||!Buffer$2.isBuffer(b))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(a===b)return 0;let x$1=a.length,y=b.length;for(let i$4=0,len$2=Math.min(x$1,y);i$4<len$2;++i$4)if(a[i$4]!==b[i$4]){x$1=a[i$4],y=b[i$4];break}return x$1<y?-1:y<x$1?1:0},Buffer$2.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},Buffer$2.concat=function(list,length){if(!Array.isArray(list))throw TypeError(`"list" argument must be an Array of Buffers`);if(list.length===0)return Buffer$2.alloc(0);let i$4;if(length===void 0)for(length=0,i$4=0;i$4<list.length;++i$4)length+=list[i$4].length;let buffer$2=Buffer$2.allocUnsafe(length),pos=0;for(i$4=0;i$4<list.length;++i$4){let buf=list[i$4];if(isInstance(buf,GlobalUint8Array))pos+buf.length>buffer$2.length?(Buffer$2.isBuffer(buf)||(buf=Buffer$2.from(buf)),buf.copy(buffer$2,pos)):GlobalUint8Array.prototype.set.call(buffer$2,buf,pos);else if(Buffer$2.isBuffer(buf))buf.copy(buffer$2,pos);else throw TypeError(`"list" argument must be an Array of Buffers`);pos+=buf.length}return buffer$2};function byteLength$2(string,encoding){if(Buffer$2.isBuffer(string))return string.length;if(GlobalArrayBuffer.isView(string)||isInstance(string,GlobalArrayBuffer))return string.byteLength;if(typeof string!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof string);let len$2=string.length,mustMatch=arguments.length>2&&arguments[2]===!0;if(!mustMatch&&len$2===0)return 0;let loweredCase=!1;for(;;)switch(encoding){case`ascii`:case`latin1`:case`binary`:return len$2;case`utf8`:case`utf-8`:return utf8ToBytes(string).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return len$2*2;case`hex`:return len$2>>>1;case`base64`:return base64ToBytes(string).length;default:if(loweredCase)return mustMatch?-1:utf8ToBytes(string).length;encoding=(``+encoding).toLowerCase(),loweredCase=!0}}Buffer$2.byteLength=byteLength$2;function slowToString(encoding,start,end){let loweredCase=!1;if((start===void 0||start<0)&&(start=0),start>this.length||((end===void 0||end>this.length)&&(end=this.length),end<=0)||(end>>>=0,start>>>=0,end<=start))return``;for(encoding||=`utf8`;;)switch(encoding){case`hex`:return hexSlice(this,start,end);case`utf8`:case`utf-8`:return utf8Slice(this,start,end);case`ascii`:return asciiSlice(this,start,end);case`latin1`:case`binary`:return latin1Slice(this,start,end);case`base64`:return base64Slice(this,start,end);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return utf16leSlice(this,start,end);default:if(loweredCase)throw TypeError(`Unknown encoding: `+encoding);encoding=(encoding+``).toLowerCase(),loweredCase=!0}}Buffer$2.prototype._isBuffer=!0;function swap(b,n$2,m){let i$4=b[n$2];b[n$2]=b[m],b[m]=i$4}Buffer$2.prototype.swap16=function(){let len$2=this.length;if(len$2%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let i$4=0;i$4<len$2;i$4+=2)swap(this,i$4,i$4+1);return this},Buffer$2.prototype.swap32=function(){let len$2=this.length;if(len$2%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let i$4=0;i$4<len$2;i$4+=4)swap(this,i$4,i$4+3),swap(this,i$4+1,i$4+2);return this},Buffer$2.prototype.swap64=function(){let len$2=this.length;if(len$2%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let i$4=0;i$4<len$2;i$4+=8)swap(this,i$4,i$4+7),swap(this,i$4+1,i$4+6),swap(this,i$4+2,i$4+5),swap(this,i$4+3,i$4+4);return this},Buffer$2.prototype.toString=function(){let length=this.length;return length===0?``:arguments.length===0?utf8Slice(this,0,length):slowToString.apply(this,arguments)},Buffer$2.prototype.toLocaleString=Buffer$2.prototype.toString,Buffer$2.prototype.equals=function(b){if(!Buffer$2.isBuffer(b))throw TypeError(`Argument must be a Buffer`);return this===b?!0:Buffer$2.compare(this,b)===0},Buffer$2.prototype.inspect=function(){let str=``,max$3=exports$1.INSPECT_MAX_BYTES;return str=this.toString(`hex`,0,max$3).replace(/(.{2})/g,`$1 `).trim(),this.length>max$3&&(str+=` ... `),`<Buffer `+str+`>`},customInspectSymbol&&(Buffer$2.prototype[customInspectSymbol]=Buffer$2.prototype.inspect),Buffer$2.prototype.compare=function(target,start,end,thisStart,thisEnd){if(isInstance(target,GlobalUint8Array)&&(target=Buffer$2.from(target,target.offset,target.byteLength)),!Buffer$2.isBuffer(target))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof target);if(start===void 0&&(start=0),end===void 0&&(end=target?target.length:0),thisStart===void 0&&(thisStart=0),thisEnd===void 0&&(thisEnd=this.length),start<0||end>target.length||thisStart<0||thisEnd>this.length)throw RangeError(`out of range index`);if(thisStart>=thisEnd&&start>=end)return 0;if(thisStart>=thisEnd)return-1;if(start>=end)return 1;if(start>>>=0,end>>>=0,thisStart>>>=0,thisEnd>>>=0,this===target)return 0;let x$1=thisEnd-thisStart,y=end-start,len$2=Math.min(x$1,y),thisCopy=this.slice(thisStart,thisEnd),targetCopy=target.slice(start,end);for(let i$4=0;i$4<len$2;++i$4)if(thisCopy[i$4]!==targetCopy[i$4]){x$1=thisCopy[i$4],y=targetCopy[i$4];break}return x$1<y?-1:y<x$1?1:0};function bidirectionalIndexOf(buffer$2,val,byteOffset,encoding,dir){if(buffer$2.length===0)return-1;if(typeof byteOffset==`string`?(encoding=byteOffset,byteOffset=0):byteOffset>2147483647?byteOffset=2147483647:byteOffset<-2147483648&&(byteOffset=-2147483648),byteOffset=+byteOffset,numberIsNaN(byteOffset)&&(byteOffset=dir?0:buffer$2.length-1),byteOffset<0&&(byteOffset=buffer$2.length+byteOffset),byteOffset>=buffer$2.length){if(dir)return-1;byteOffset=buffer$2.length-1}else if(byteOffset<0)if(dir)byteOffset=0;else return-1;if(typeof val==`string`&&(val=Buffer$2.from(val,encoding)),Buffer$2.isBuffer(val))return val.length===0?-1:arrayIndexOf(buffer$2,val,byteOffset,encoding,dir);if(typeof val==`number`)return val&=255,typeof GlobalUint8Array.prototype.indexOf==`function`?dir?GlobalUint8Array.prototype.indexOf.call(buffer$2,val,byteOffset):GlobalUint8Array.prototype.lastIndexOf.call(buffer$2,val,byteOffset):arrayIndexOf(buffer$2,[val],byteOffset,encoding,dir);throw TypeError(`val must be string, number or Buffer`)}function arrayIndexOf(arr,val,byteOffset,encoding,dir){let indexSize=1,arrLength=arr.length,valLength=val.length;if(encoding!==void 0&&(encoding=String(encoding).toLowerCase(),encoding===`ucs2`||encoding===`ucs-2`||encoding===`utf16le`||encoding===`utf-16le`)){if(arr.length<2||val.length<2)return-1;indexSize=2,arrLength/=2,valLength/=2,byteOffset/=2}function read(buf,i$5){return indexSize===1?buf[i$5]:buf.readUInt16BE(i$5*indexSize)}let i$4;if(dir){let foundIndex=-1;for(i$4=byteOffset;i$4<arrLength;i$4++)if(read(arr,i$4)===read(val,foundIndex===-1?0:i$4-foundIndex)){if(foundIndex===-1&&(foundIndex=i$4),i$4-foundIndex+1===valLength)return foundIndex*indexSize}else foundIndex!==-1&&(i$4-=i$4-foundIndex),foundIndex=-1}else for(byteOffset+valLength>arrLength&&(byteOffset=arrLength-valLength),i$4=byteOffset;i$4>=0;i$4--){let found=!0;for(let j$1=0;j$1<valLength;j$1++)if(read(arr,i$4+j$1)!==read(val,j$1)){found=!1;break}if(found)return i$4}return-1}Buffer$2.prototype.includes=function(val,byteOffset,encoding){return this.indexOf(val,byteOffset,encoding)!==-1},Buffer$2.prototype.indexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!0)},Buffer$2.prototype.lastIndexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!1)};function hexWrite(buf,string,offset$2,length){offset$2=Number(offset$2)||0;let remaining=buf.length-offset$2;length?(length=Number(length),length>remaining&&(length=remaining)):length=remaining;let strLen=string.length;length>strLen/2&&(length=strLen/2);let i$4;for(i$4=0;i$4<length;++i$4){let parsed=parseInt(string.substr(i$4*2,2),16);if(numberIsNaN(parsed))return i$4;buf[offset$2+i$4]=parsed}return i$4}function utf8Write(buf,string,offset$2,length){return blitBuffer(utf8ToBytes(string,buf.length-offset$2),buf,offset$2,length)}function asciiWrite(buf,string,offset$2,length){return blitBuffer(asciiToBytes(string),buf,offset$2,length)}function base64Write(buf,string,offset$2,length){return blitBuffer(base64ToBytes(string),buf,offset$2,length)}function ucs2Write(buf,string,offset$2,length){return blitBuffer(utf16leToBytes(string,buf.length-offset$2),buf,offset$2,length)}Buffer$2.prototype.write=function(string,offset$2,length,encoding){if(offset$2===void 0)encoding=`utf8`,length=this.length,offset$2=0;else if(length===void 0&&typeof offset$2==`string`)encoding=offset$2,length=this.length,offset$2=0;else if(isFinite(offset$2))offset$2>>>=0,isFinite(length)?(length>>>=0,encoding===void 0&&(encoding=`utf8`)):(encoding=length,length=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let remaining=this.length-offset$2;if((length===void 0||length>remaining)&&(length=remaining),string.length>0&&(length<0||offset$2<0)||offset$2>this.length)throw RangeError(`Attempt to write outside buffer bounds`);encoding||=`utf8`;let loweredCase=!1;for(;;)switch(encoding){case`hex`:return hexWrite(this,string,offset$2,length);case`utf8`:case`utf-8`:return utf8Write(this,string,offset$2,length);case`ascii`:case`latin1`:case`binary`:return asciiWrite(this,string,offset$2,length);case`base64`:return base64Write(this,string,offset$2,length);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return ucs2Write(this,string,offset$2,length);default:if(loweredCase)throw TypeError(`Unknown encoding: `+encoding);encoding=(``+encoding).toLowerCase(),loweredCase=!0}},Buffer$2.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(buf,start,end){return start===0&&end===buf.length?base64.fromByteArray(buf):base64.fromByteArray(buf.slice(start,end))}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);let res=[],i$4=start;for(;i$4<end;){let firstByte=buf[i$4],codePoint=null,bytesPerSequence=firstByte>239?4:firstByte>223?3:firstByte>191?2:1;if(i$4+bytesPerSequence<=end){let secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:firstByte<128&&(codePoint=firstByte);break;case 2:secondByte=buf[i$4+1],(secondByte&192)==128&&(tempCodePoint=(firstByte&31)<<6|secondByte&63,tempCodePoint>127&&(codePoint=tempCodePoint));break;case 3:secondByte=buf[i$4+1],thirdByte=buf[i$4+2],(secondByte&192)==128&&(thirdByte&192)==128&&(tempCodePoint=(firstByte&15)<<12|(secondByte&63)<<6|thirdByte&63,tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)&&(codePoint=tempCodePoint));break;case 4:secondByte=buf[i$4+1],thirdByte=buf[i$4+2],fourthByte=buf[i$4+3],(secondByte&192)==128&&(thirdByte&192)==128&&(fourthByte&192)==128&&(tempCodePoint=(firstByte&15)<<18|(secondByte&63)<<12|(thirdByte&63)<<6|fourthByte&63,tempCodePoint>65535&&tempCodePoint<1114112&&(codePoint=tempCodePoint))}}codePoint===null?(codePoint=65533,bytesPerSequence=1):codePoint>65535&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|codePoint&1023),res.push(codePoint),i$4+=bytesPerSequence}return decodeCodePointsArray(res)}let MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(codePoints){let len$2=codePoints.length;if(len$2<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,codePoints);let res=``,i$4=0;for(;i$4<len$2;)res+=String.fromCharCode.apply(String,codePoints.slice(i$4,i$4+=MAX_ARGUMENTS_LENGTH));return res}function asciiSlice(buf,start,end){let ret=``;end=Math.min(buf.length,end);for(let i$4=start;i$4<end;++i$4)ret+=String.fromCharCode(buf[i$4]&127);return ret}function latin1Slice(buf,start,end){let ret=``;end=Math.min(buf.length,end);for(let i$4=start;i$4<end;++i$4)ret+=String.fromCharCode(buf[i$4]);return ret}function hexSlice(buf,start,end){let len$2=buf.length;(!start||start<0)&&(start=0),(!end||end<0||end>len$2)&&(end=len$2);let out=``;for(let i$4=start;i$4<end;++i$4)out+=hexSliceLookupTable[buf[i$4]];return out}function utf16leSlice(buf,start,end){let bytes=buf.slice(start,end),res=``;for(let i$4=0;i$4<bytes.length-1;i$4+=2)res+=String.fromCharCode(bytes[i$4]+bytes[i$4+1]*256);return res}Buffer$2.prototype.slice=function(start,end){let len$2=this.length;start=~~start,end=end===void 0?len$2:~~end,start<0?(start+=len$2,start<0&&(start=0)):start>len$2&&(start=len$2),end<0?(end+=len$2,end<0&&(end=0)):end>len$2&&(end=len$2),end<start&&(end=start);let newBuf=this.subarray(start,end);return Object.setPrototypeOf(newBuf,Buffer$2.prototype),newBuf};function checkOffset(offset$2,ext,length){if(offset$2%1!=0||offset$2<0)throw RangeError(`offset is not uint`);if(offset$2+ext>length)throw RangeError(`Trying to access beyond buffer length`)}Buffer$2.prototype.readUintLE=Buffer$2.prototype.readUIntLE=function(offset$2,byteLength$3,noAssert){offset$2>>>=0,byteLength$3>>>=0,noAssert||checkOffset(offset$2,byteLength$3,this.length);let val=this[offset$2],mul=1,i$4=0;for(;++i$4<byteLength$3&&(mul*=256);)val+=this[offset$2+i$4]*mul;return val},Buffer$2.prototype.readUintBE=Buffer$2.prototype.readUIntBE=function(offset$2,byteLength$3,noAssert){offset$2>>>=0,byteLength$3>>>=0,noAssert||checkOffset(offset$2,byteLength$3,this.length);let val=this[offset$2+--byteLength$3],mul=1;for(;byteLength$3>0&&(mul*=256);)val+=this[offset$2+--byteLength$3]*mul;return val},Buffer$2.prototype.readUint8=Buffer$2.prototype.readUInt8=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,1,this.length),this[offset$2]},Buffer$2.prototype.readUint16LE=Buffer$2.prototype.readUInt16LE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,2,this.length),this[offset$2]|this[offset$2+1]<<8},Buffer$2.prototype.readUint16BE=Buffer$2.prototype.readUInt16BE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,2,this.length),this[offset$2]<<8|this[offset$2+1]},Buffer$2.prototype.readUint32LE=Buffer$2.prototype.readUInt32LE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,4,this.length),(this[offset$2]|this[offset$2+1]<<8|this[offset$2+2]<<16)+this[offset$2+3]*16777216},Buffer$2.prototype.readUint32BE=Buffer$2.prototype.readUInt32BE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,4,this.length),this[offset$2]*16777216+(this[offset$2+1]<<16|this[offset$2+2]<<8|this[offset$2+3])},Buffer$2.prototype.readBigUInt64LE=defineBigIntMethod(function(offset$2){offset$2>>>=0,validateNumber(offset$2,`offset`);let first=this[offset$2],last=this[offset$2+7];(first===void 0||last===void 0)&&boundsError(offset$2,this.length-8);let lo=first+this[++offset$2]*2**8+this[++offset$2]*2**16+this[++offset$2]*2**24,hi=this[++offset$2]+this[++offset$2]*2**8+this[++offset$2]*2**16+last*2**24;return BigInt(lo)+(BigInt(hi)<<BigInt(32))}),Buffer$2.prototype.readBigUInt64BE=defineBigIntMethod(function(offset$2){offset$2>>>=0,validateNumber(offset$2,`offset`);let first=this[offset$2],last=this[offset$2+7];(first===void 0||last===void 0)&&boundsError(offset$2,this.length-8);let hi=first*2**24+this[++offset$2]*2**16+this[++offset$2]*2**8+this[++offset$2],lo=this[++offset$2]*2**24+this[++offset$2]*2**16+this[++offset$2]*2**8+last;return(BigInt(hi)<<BigInt(32))+BigInt(lo)}),Buffer$2.prototype.readIntLE=function(offset$2,byteLength$3,noAssert){offset$2>>>=0,byteLength$3>>>=0,noAssert||checkOffset(offset$2,byteLength$3,this.length);let val=this[offset$2],mul=1,i$4=0;for(;++i$4<byteLength$3&&(mul*=256);)val+=this[offset$2+i$4]*mul;return mul*=128,val>=mul&&(val-=2**(8*byteLength$3)),val},Buffer$2.prototype.readIntBE=function(offset$2,byteLength$3,noAssert){offset$2>>>=0,byteLength$3>>>=0,noAssert||checkOffset(offset$2,byteLength$3,this.length);let i$4=byteLength$3,mul=1,val=this[offset$2+--i$4];for(;i$4>0&&(mul*=256);)val+=this[offset$2+--i$4]*mul;return mul*=128,val>=mul&&(val-=2**(8*byteLength$3)),val},Buffer$2.prototype.readInt8=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,1,this.length),this[offset$2]&128?(255-this[offset$2]+1)*-1:this[offset$2]},Buffer$2.prototype.readInt16LE=function(offset$2,noAssert){offset$2>>>=0,noAssert||checkOffset(offset$2,2,this.length);let val=this[offset$2]|this[offset$2+1]<<8;return val&32768?val|4294901760:val},Buffer$2.prototype.readInt16BE=function(offset$2,noAssert){offset$2>>>=0,noAssert||checkOffset(offset$2,2,this.length);let val=this[offset$2+1]|this[offset$2]<<8;return val&32768?val|4294901760:val},Buffer$2.prototype.readInt32LE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,4,this.length),this[offset$2]|this[offset$2+1]<<8|this[offset$2+2]<<16|this[offset$2+3]<<24},Buffer$2.prototype.readInt32BE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,4,this.length),this[offset$2]<<24|this[offset$2+1]<<16|this[offset$2+2]<<8|this[offset$2+3]},Buffer$2.prototype.readBigInt64LE=defineBigIntMethod(function(offset$2){offset$2>>>=0,validateNumber(offset$2,`offset`);let first=this[offset$2],last=this[offset$2+7];(first===void 0||last===void 0)&&boundsError(offset$2,this.length-8);let val=this[offset$2+4]+this[offset$2+5]*2**8+this[offset$2+6]*2**16+(last<<24);return(BigInt(val)<<BigInt(32))+BigInt(first+this[++offset$2]*2**8+this[++offset$2]*2**16+this[++offset$2]*2**24)}),Buffer$2.prototype.readBigInt64BE=defineBigIntMethod(function(offset$2){offset$2>>>=0,validateNumber(offset$2,`offset`);let first=this[offset$2],last=this[offset$2+7];(first===void 0||last===void 0)&&boundsError(offset$2,this.length-8);let val=(first<<24)+this[++offset$2]*2**16+this[++offset$2]*2**8+this[++offset$2];return(BigInt(val)<<BigInt(32))+BigInt(this[++offset$2]*2**24+this[++offset$2]*2**16+this[++offset$2]*2**8+last)}),Buffer$2.prototype.readFloatLE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,4,this.length),ieee754$1$1.read(this,offset$2,!0,23,4)},Buffer$2.prototype.readFloatBE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,4,this.length),ieee754$1$1.read(this,offset$2,!1,23,4)},Buffer$2.prototype.readDoubleLE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,8,this.length),ieee754$1$1.read(this,offset$2,!0,52,8)},Buffer$2.prototype.readDoubleBE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,8,this.length),ieee754$1$1.read(this,offset$2,!1,52,8)};function checkInt(buf,value,offset$2,ext,max$3,min$1){if(!Buffer$2.isBuffer(buf))throw TypeError(`"buffer" argument must be a Buffer instance`);if(value>max$3||value<min$1)throw RangeError(`"value" argument is out of bounds`);if(offset$2+ext>buf.length)throw RangeError(`Index out of range`)}Buffer$2.prototype.writeUintLE=Buffer$2.prototype.writeUIntLE=function(value,offset$2,byteLength$3,noAssert){if(value=+value,offset$2>>>=0,byteLength$3>>>=0,!noAssert){let maxBytes=2**(8*byteLength$3)-1;checkInt(this,value,offset$2,byteLength$3,maxBytes,0)}let mul=1,i$4=0;for(this[offset$2]=value&255;++i$4<byteLength$3&&(mul*=256);)this[offset$2+i$4]=value/mul&255;return offset$2+byteLength$3},Buffer$2.prototype.writeUintBE=Buffer$2.prototype.writeUIntBE=function(value,offset$2,byteLength$3,noAssert){if(value=+value,offset$2>>>=0,byteLength$3>>>=0,!noAssert){let maxBytes=2**(8*byteLength$3)-1;checkInt(this,value,offset$2,byteLength$3,maxBytes,0)}let i$4=byteLength$3-1,mul=1;for(this[offset$2+i$4]=value&255;--i$4>=0&&(mul*=256);)this[offset$2+i$4]=value/mul&255;return offset$2+byteLength$3},Buffer$2.prototype.writeUint8=Buffer$2.prototype.writeUInt8=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,1,255,0),this[offset$2]=value&255,offset$2+1},Buffer$2.prototype.writeUint16LE=Buffer$2.prototype.writeUInt16LE=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,2,65535,0),this[offset$2]=value&255,this[offset$2+1]=value>>>8,offset$2+2},Buffer$2.prototype.writeUint16BE=Buffer$2.prototype.writeUInt16BE=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,2,65535,0),this[offset$2]=value>>>8,this[offset$2+1]=value&255,offset$2+2},Buffer$2.prototype.writeUint32LE=Buffer$2.prototype.writeUInt32LE=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,4,4294967295,0),this[offset$2+3]=value>>>24,this[offset$2+2]=value>>>16,this[offset$2+1]=value>>>8,this[offset$2]=value&255,offset$2+4},Buffer$2.prototype.writeUint32BE=Buffer$2.prototype.writeUInt32BE=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,4,4294967295,0),this[offset$2]=value>>>24,this[offset$2+1]=value>>>16,this[offset$2+2]=value>>>8,this[offset$2+3]=value&255,offset$2+4};function wrtBigUInt64LE(buf,value,offset$2,min$1,max$3){checkIntBI(value,min$1,max$3,buf,offset$2,7);let lo=Number(value&BigInt(4294967295));buf[offset$2++]=lo,lo>>=8,buf[offset$2++]=lo,lo>>=8,buf[offset$2++]=lo,lo>>=8,buf[offset$2++]=lo;let hi=Number(value>>BigInt(32)&BigInt(4294967295));return buf[offset$2++]=hi,hi>>=8,buf[offset$2++]=hi,hi>>=8,buf[offset$2++]=hi,hi>>=8,buf[offset$2++]=hi,offset$2}function wrtBigUInt64BE(buf,value,offset$2,min$1,max$3){checkIntBI(value,min$1,max$3,buf,offset$2,7);let lo=Number(value&BigInt(4294967295));buf[offset$2+7]=lo,lo>>=8,buf[offset$2+6]=lo,lo>>=8,buf[offset$2+5]=lo,lo>>=8,buf[offset$2+4]=lo;let hi=Number(value>>BigInt(32)&BigInt(4294967295));return buf[offset$2+3]=hi,hi>>=8,buf[offset$2+2]=hi,hi>>=8,buf[offset$2+1]=hi,hi>>=8,buf[offset$2]=hi,offset$2+8}Buffer$2.prototype.writeBigUInt64LE=defineBigIntMethod(function(value,offset$2=0){return wrtBigUInt64LE(this,value,offset$2,BigInt(0),BigInt(`0xffffffffffffffff`))}),Buffer$2.prototype.writeBigUInt64BE=defineBigIntMethod(function(value,offset$2=0){return wrtBigUInt64BE(this,value,offset$2,BigInt(0),BigInt(`0xffffffffffffffff`))}),Buffer$2.prototype.writeIntLE=function(value,offset$2,byteLength$3,noAssert){if(value=+value,offset$2>>>=0,!noAssert){let limit=2**(8*byteLength$3-1);checkInt(this,value,offset$2,byteLength$3,limit-1,-limit)}let i$4=0,mul=1,sub=0;for(this[offset$2]=value&255;++i$4<byteLength$3&&(mul*=256);)value<0&&sub===0&&this[offset$2+i$4-1]!==0&&(sub=1),this[offset$2+i$4]=(value/mul>>0)-sub&255;return offset$2+byteLength$3},Buffer$2.prototype.writeIntBE=function(value,offset$2,byteLength$3,noAssert){if(value=+value,offset$2>>>=0,!noAssert){let limit=2**(8*byteLength$3-1);checkInt(this,value,offset$2,byteLength$3,limit-1,-limit)}let i$4=byteLength$3-1,mul=1,sub=0;for(this[offset$2+i$4]=value&255;--i$4>=0&&(mul*=256);)value<0&&sub===0&&this[offset$2+i$4+1]!==0&&(sub=1),this[offset$2+i$4]=(value/mul>>0)-sub&255;return offset$2+byteLength$3},Buffer$2.prototype.writeInt8=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,1,127,-128),value<0&&(value=255+value+1),this[offset$2]=value&255,offset$2+1},Buffer$2.prototype.writeInt16LE=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,2,32767,-32768),this[offset$2]=value&255,this[offset$2+1]=value>>>8,offset$2+2},Buffer$2.prototype.writeInt16BE=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,2,32767,-32768),this[offset$2]=value>>>8,this[offset$2+1]=value&255,offset$2+2},Buffer$2.prototype.writeInt32LE=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,4,2147483647,-2147483648),this[offset$2]=value&255,this[offset$2+1]=value>>>8,this[offset$2+2]=value>>>16,this[offset$2+3]=value>>>24,offset$2+4},Buffer$2.prototype.writeInt32BE=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,4,2147483647,-2147483648),value<0&&(value=4294967295+value+1),this[offset$2]=value>>>24,this[offset$2+1]=value>>>16,this[offset$2+2]=value>>>8,this[offset$2+3]=value&255,offset$2+4},Buffer$2.prototype.writeBigInt64LE=defineBigIntMethod(function(value,offset$2=0){return wrtBigUInt64LE(this,value,offset$2,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),Buffer$2.prototype.writeBigInt64BE=defineBigIntMethod(function(value,offset$2=0){return wrtBigUInt64BE(this,value,offset$2,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function checkIEEE754(buf,value,offset$2,ext,max$3,min$1){if(offset$2+ext>buf.length||offset$2<0)throw RangeError(`Index out of range`)}function writeFloat(buf,value,offset$2,littleEndian,noAssert){return value=+value,offset$2>>>=0,noAssert||checkIEEE754(buf,value,offset$2,4),ieee754$1$1.write(buf,value,offset$2,littleEndian,23,4),offset$2+4}Buffer$2.prototype.writeFloatLE=function(value,offset$2,noAssert){return writeFloat(this,value,offset$2,!0,noAssert)},Buffer$2.prototype.writeFloatBE=function(value,offset$2,noAssert){return writeFloat(this,value,offset$2,!1,noAssert)};function writeDouble(buf,value,offset$2,littleEndian,noAssert){return value=+value,offset$2>>>=0,noAssert||checkIEEE754(buf,value,offset$2,8),ieee754$1$1.write(buf,value,offset$2,littleEndian,52,8),offset$2+8}Buffer$2.prototype.writeDoubleLE=function(value,offset$2,noAssert){return writeDouble(this,value,offset$2,!0,noAssert)},Buffer$2.prototype.writeDoubleBE=function(value,offset$2,noAssert){return writeDouble(this,value,offset$2,!1,noAssert)},Buffer$2.prototype.copy=function(target,targetStart,start,end){if(!Buffer$2.isBuffer(target))throw TypeError(`argument should be a Buffer`);if(start||=0,!end&&end!==0&&(end=this.length),targetStart>=target.length&&(targetStart=target.length),targetStart||=0,end>0&&end<start&&(end=start),end===start||target.length===0||this.length===0)return 0;if(targetStart<0)throw RangeError(`targetStart out of bounds`);if(start<0||start>=this.length)throw RangeError(`Index out of range`);if(end<0)throw RangeError(`sourceEnd out of bounds`);end>this.length&&(end=this.length),target.length-targetStart<end-start&&(end=target.length-targetStart+start);let len$2=end-start;return this===target&&typeof GlobalUint8Array.prototype.copyWithin==`function`?this.copyWithin(targetStart,start,end):GlobalUint8Array.prototype.set.call(target,this.subarray(start,end),targetStart),len$2},Buffer$2.prototype.fill=function(val,start,end,encoding){if(typeof val==`string`){if(typeof start==`string`?(encoding=start,start=0,end=this.length):typeof end==`string`&&(encoding=end,end=this.length),encoding!==void 0&&typeof encoding!=`string`)throw TypeError(`encoding must be a string`);if(typeof encoding==`string`&&!Buffer$2.isEncoding(encoding))throw TypeError(`Unknown encoding: `+encoding);if(val.length===1){let code$2=val.charCodeAt(0);(encoding===`utf8`&&code$2<128||encoding===`latin1`)&&(val=code$2)}}else typeof val==`number`?val&=255:typeof val==`boolean`&&(val=Number(val));if(start<0||this.length<start||this.length<end)throw RangeError(`Out of range index`);if(end<=start)return this;start>>>=0,end=end===void 0?this.length:end>>>0,val||=0;let i$4;if(typeof val==`number`)for(i$4=start;i$4<end;++i$4)this[i$4]=val;else{let bytes=Buffer$2.isBuffer(val)?val:Buffer$2.from(val,encoding),len$2=bytes.length;if(len$2===0)throw TypeError(`The value "`+val+`" is invalid for argument "value"`);for(i$4=0;i$4<end-start;++i$4)this[i$4+start]=bytes[i$4%len$2]}return this};let errors={};function E(sym,getMessage,Base$1){errors[sym]=class extends Base$1{constructor(){super(),Object.defineProperty(this,`message`,{value:getMessage.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${sym}]`,this.stack,delete this.name}get code(){return sym}set code(value){Object.defineProperty(this,`code`,{configurable:!0,enumerable:!0,value,writable:!0})}toString(){return`${this.name} [${sym}]: ${this.message}`}}}E(`ERR_BUFFER_OUT_OF_BOUNDS`,function(name$1){return name$1?`${name$1} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),E(`ERR_INVALID_ARG_TYPE`,function(name$1,actual){return`The "${name$1}" argument must be of type number. Received type ${typeof actual}`},TypeError),E(`ERR_OUT_OF_RANGE`,function(str,range,input){let msg=`The value of "${str}" is out of range.`,received=input;return Number.isInteger(input)&&Math.abs(input)>2**32?received=addNumericalSeparator(String(input)):typeof input==`bigint`&&(received=String(input),(input>BigInt(2)**BigInt(32)||input<-(BigInt(2)**BigInt(32)))&&(received=addNumericalSeparator(received)),received+=`n`),msg+=` It must be ${range}. Received ${received}`,msg},RangeError);function addNumericalSeparator(val){let res=``,i$4=val.length,start=val[0]===`-`?1:0;for(;i$4>=start+4;i$4-=3)res=`_${val.slice(i$4-3,i$4)}${res}`;return`${val.slice(0,i$4)}${res}`}function checkBounds(buf,offset$2,byteLength$3){validateNumber(offset$2,`offset`),(buf[offset$2]===void 0||buf[offset$2+byteLength$3]===void 0)&&boundsError(offset$2,buf.length-(byteLength$3+1))}function checkIntBI(value,min$1,max$3,buf,offset$2,byteLength$3){if(value>max$3||value<min$1){let n$2=typeof min$1==`bigint`?`n`:``,range;throw range=byteLength$3>3?min$1===0||min$1===BigInt(0)?`>= 0${n$2} and < 2${n$2} ** ${(byteLength$3+1)*8}${n$2}`:`>= -(2${n$2} ** ${(byteLength$3+1)*8-1}${n$2}) and < 2 ** ${(byteLength$3+1)*8-1}${n$2}`:`>= ${min$1}${n$2} and <= ${max$3}${n$2}`,new errors.ERR_OUT_OF_RANGE(`value`,range,value)}checkBounds(buf,offset$2,byteLength$3)}function validateNumber(value,name$1){if(typeof value!=`number`)throw new errors.ERR_INVALID_ARG_TYPE(name$1,`number`,value)}function boundsError(value,length,type){throw Math.floor(value)===value?length<0?new errors.ERR_BUFFER_OUT_OF_BOUNDS:new errors.ERR_OUT_OF_RANGE(type||`offset`,`>= ${type?1:0} and <= ${length}`,value):(validateNumber(value,type),new errors.ERR_OUT_OF_RANGE(type||`offset`,`an integer`,value))}let INVALID_BASE64_RE=/[^+/0-9A-Za-z-_]/g;function base64clean(str){if(str=str.split(`=`)[0],str=str.trim().replace(INVALID_BASE64_RE,``),str.length<2)return``;for(;str.length%4!=0;)str+=`=`;return str}function utf8ToBytes(string,units){units||=1/0;let codePoint,length=string.length,leadSurrogate=null,bytes=[];for(let i$4=0;i$4<length;++i$4){if(codePoint=string.charCodeAt(i$4),codePoint>55295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}else if(i$4+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,codePoint<128){if(--units<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<1114112){if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else throw Error(`Invalid code point`)}return bytes}function asciiToBytes(str){let byteArray=[];for(let i$4=0;i$4<str.length;++i$4)byteArray.push(str.charCodeAt(i$4)&255);return byteArray}function utf16leToBytes(str,units){let c$1,hi,lo,byteArray=[];for(let i$4=0;i$4<str.length&&!((units-=2)<0);++i$4)c$1=str.charCodeAt(i$4),hi=c$1>>8,lo=c$1%256,byteArray.push(lo),byteArray.push(hi);return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src$1,dst,offset$2,length){let i$4;for(i$4=0;i$4<length&&!(i$4+offset$2>=dst.length||i$4>=src$1.length);++i$4)dst[i$4+offset$2]=src$1[i$4];return i$4}function isInstance(obj,type){return obj instanceof type||obj!=null&&obj.constructor!=null&&obj.constructor.name!=null&&obj.constructor.name===type.name}function numberIsNaN(obj){return obj!==obj}let hexSliceLookupTable=function(){let alphabet=`0123456789abcdef`,table=Array(256);for(let i$4=0;i$4<16;++i$4){let i16=i$4*16;for(let j$1=0;j$1<16;++j$1)table[i16+j$1]=alphabet[i$4]+alphabet[j$1]}return table}();function defineBigIntMethod(fn$1){return typeof BigInt>`u`?BufferBigIntNotDefined:fn$1}function BufferBigIntNotDefined(){throw Error(`BigInt not supported`)}}(buffer$1),Buffer$1=buffer$1.Buffer,Blob$1=buffer$1.Blob,BlobOptions=buffer$1.BlobOptions,Buffer$1$1=buffer$1.Buffer,File=buffer$1.File,FileOptions=buffer$1.FileOptions,INSPECT_MAX_BYTES=buffer$1.INSPECT_MAX_BYTES,SlowBuffer=buffer$1.SlowBuffer,TranscodeEncoding=buffer$1.TranscodeEncoding,atob$1=buffer$1.atob,btoa$1=buffer$1.btoa,constants$1=buffer$1.constants,isAscii=buffer$1.isAscii,isUtf8=buffer$1.isUtf8,kMaxLength=buffer$1.kMaxLength,kStringMaxLength=buffer$1.kStringMaxLength,resolveObjectURL=buffer$1.resolveObjectURL,transcode=buffer$1.transcode}),require_reach=__commonJSMin((exports,module)=>{let Assert$5=require_assert(),internals$40={};module.exports=function(obj,chain,options){if(chain===!1||chain==null)return obj;options||={},typeof options==`string`&&(options={separator:options});let isChainArray=Array.isArray(chain);Assert$5(!isChainArray||!options.separator,`Separator option is not valid for array-based chain`);let path=isChainArray?chain:chain.split(options.separator||`.`),ref=obj;for(let i$4=0;i$4<path.length;++i$4){let key=path[i$4],type=options.iterables&&internals$40.iterables(ref);if(Array.isArray(ref)||type===`set`){let number=Number(key);Number.isInteger(number)&&(key=number<0?ref.length+number:number)}if(!ref||typeof ref==`function`&&options.functions===!1||!type&&ref[key]===void 0){Assert$5(!options.strict||i$4+1===path.length,`Missing segment`,key,`in reach path `,chain),Assert$5(typeof ref==`object`||options.functions===!0||typeof ref!=`function`,`Invalid segment`,key,`in reach path `,chain),ref=options.default;break}ref=type?type===`set`?[...ref][key]:ref.get(key):ref[key]}return ref},internals$40.iterables=function(ref){if(ref instanceof Set)return`set`;if(ref instanceof Map)return`map`}}),require_types$1=__commonJSMin((exports,module)=>{init_dist$1();let internals$39={};exports=module.exports={array:Array.prototype,buffer:Buffer$1&&Buffer$1.prototype,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,url:URL.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},internals$39.typeMap=new Map([[`[object Error]`,exports.error],[`[object Map]`,exports.map],[`[object Promise]`,exports.promise],[`[object Set]`,exports.set],[`[object URL]`,exports.url],[`[object WeakMap]`,exports.weakMap],[`[object WeakSet]`,exports.weakSet]]),exports.getInternalProto=function(obj){if(Array.isArray(obj))return exports.array;if(Buffer$1&&obj instanceof Buffer$1)return exports.buffer;if(obj instanceof Date)return exports.date;if(obj instanceof RegExp)return exports.regex;if(obj instanceof Error)return exports.error;let objName=Object.prototype.toString.call(obj);return internals$39.typeMap.get(objName)||exports.generic}}),require_utils=__commonJSMin(exports=>{exports.keys=function(obj,options={}){return options.symbols===!1?Object.getOwnPropertyNames(obj):Reflect.ownKeys(obj)}}),require_clone=__commonJSMin((exports,module)=>{init_dist$1();let Reach$2=require_reach(),Types$1=require_types$1(),Utils$2=require_utils(),internals$38={needsProtoHack:new Set([Types$1.set,Types$1.map,Types$1.weakSet,Types$1.weakMap]),structuredCloneExists:typeof structuredClone==`function`};module.exports=internals$38.clone=function(obj,options={},_seen=null){if(typeof obj!=`object`||!obj)return obj;let clone$16=internals$38.clone,seen=_seen;if(options.shallow){if(options.shallow!==!0)return internals$38.cloneWithShallow(obj,options);clone$16=value=>value}else if(seen){let lookup$2=seen.get(obj);if(lookup$2)return lookup$2}else seen=new Map;let baseProto=Types$1.getInternalProto(obj);switch(baseProto){case Types$1.buffer:return Buffer$1?.from(obj);case Types$1.date:return new Date(obj.getTime());case Types$1.regex:case Types$1.url:return new baseProto.constructor(obj)}let newObj=internals$38.base(obj,baseProto,options);if(newObj===obj)return obj;if(seen&&seen.set(obj,newObj),baseProto===Types$1.set)for(let value of obj)newObj.add(clone$16(value,options,seen));else if(baseProto===Types$1.map)for(let[key,value]of obj)newObj.set(key,clone$16(value,options,seen));let keys=Utils$2.keys(obj,options);for(let key of keys){if(key===`__proto__`)continue;if(baseProto===Types$1.array&&key===`length`){newObj.length=obj.length;continue}if(internals$38.structuredCloneExists&&baseProto===Types$1.error&&key===`stack`)continue;let descriptor=Object.getOwnPropertyDescriptor(obj,key);descriptor?descriptor.get||descriptor.set?Object.defineProperty(newObj,key,descriptor):descriptor.enumerable?newObj[key]=clone$16(obj[key],options,seen):Object.defineProperty(newObj,key,{enumerable:!1,writable:!0,configurable:!0,value:clone$16(obj[key],options,seen)}):Object.defineProperty(newObj,key,{enumerable:!0,writable:!0,configurable:!0,value:clone$16(obj[key],options,seen)})}return newObj},internals$38.cloneWithShallow=function(source,options){let keys=options.shallow;options=Object.assign({},options),options.shallow=!1;let seen=new Map;for(let key of keys){let ref=Reach$2(source,key);(typeof ref==`object`||typeof ref==`function`)&&seen.set(ref,ref)}return internals$38.clone(source,options,seen)},internals$38.base=function(obj,baseProto,options){if(options.prototype===!1)return internals$38.needsProtoHack.has(baseProto)?new baseProto.constructor:baseProto===Types$1.array?[]:{};let proto=Object.getPrototypeOf(obj);if(proto&&proto.isImmutable)return obj;if(baseProto===Types$1.array){let newObj=[];return proto!==baseProto&&Object.setPrototypeOf(newObj,proto),newObj}else if(baseProto===Types$1.error&&internals$38.structuredCloneExists&&(proto===baseProto||Error.isPrototypeOf(proto.constructor))){let err$1=structuredClone(obj);return Object.getPrototypeOf(err$1)!==proto&&Object.setPrototypeOf(err$1,proto),err$1}if(internals$38.needsProtoHack.has(baseProto)){let newObj=new proto.constructor;return proto!==baseProto&&Object.setPrototypeOf(newObj,proto),newObj}return Object.create(proto)}}),require_merge=__commonJSMin((exports,module)=>{init_dist$1();let Assert$4=require_assert(),Clone$2=require_clone(),Utils$1=require_utils(),internals$37={};module.exports=internals$37.merge=function(target,source,options){if(Assert$4(target&&typeof target==`object`,`Invalid target value: must be an object`),Assert$4(source==null||typeof source==`object`,`Invalid source value: must be null, undefined, or an object`),!source)return target;if(options=Object.assign({nullOverride:!0,mergeArrays:!0},options),Array.isArray(source)){Assert$4(Array.isArray(target),`Cannot merge array onto an object`),options.mergeArrays||(target.length=0);for(let i$4=0;i$4<source.length;++i$4)target.push(Clone$2(source[i$4],{symbols:options.symbols}));return target}let keys=Utils$1.keys(source,options);for(let i$4=0;i$4<keys.length;++i$4){let key=keys[i$4];if(key===`__proto__`||!Object.prototype.propertyIsEnumerable.call(source,key))continue;let value=source[key];if(value&&typeof value==`object`){if(target[key]===value)continue;!target[key]||typeof target[key]!=`object`||Array.isArray(target[key])!==Array.isArray(value)||value instanceof Date||Buffer$1&&Buffer$1.isBuffer(value)||value instanceof RegExp?target[key]=Clone$2(value,{symbols:options.symbols}):internals$37.merge(target[key],value,options)}else value==null?options.nullOverride&&(target[key]=value):target[key]=value}return target}}),require_applyToDefaults=__commonJSMin((exports,module)=>{let Assert$3=require_assert(),Clone$1=require_clone(),Merge=require_merge(),Reach$1=require_reach(),internals$36={};module.exports=function(defaults,source,options={}){if(Assert$3(defaults&&typeof defaults==`object`,`Invalid defaults value: must be an object`),Assert$3(!source||source===!0||typeof source==`object`,`Invalid source value: must be true, falsy or an object`),Assert$3(typeof options==`object`,`Invalid options: must be an object`),!source)return null;if(options.shallow)return internals$36.applyToDefaultsWithShallow(defaults,source,options);let copy=Clone$1(defaults);if(source===!0)return copy;let nullOverride=options.nullOverride===void 0?!1:options.nullOverride;return Merge(copy,source,{nullOverride,mergeArrays:!1})},internals$36.applyToDefaultsWithShallow=function(defaults,source,options){let keys=options.shallow;Assert$3(Array.isArray(keys),`Invalid keys`);let seen=new Map,merge$3=source===!0?null:new Set;for(let key of keys){key=Array.isArray(key)?key:key.split(`.`);let ref=Reach$1(defaults,key);ref&&typeof ref==`object`?seen.set(ref,merge$3&&Reach$1(source,key)||ref):merge$3&&merge$3.add(key)}let copy=Clone$1(defaults,{},seen);if(!merge$3)return copy;for(let key of merge$3)internals$36.reachCopy(copy,source,key);let nullOverride=options.nullOverride===void 0?!1:options.nullOverride;return Merge(copy,source,{nullOverride,mergeArrays:!1})},internals$36.reachCopy=function(dst,src$1,path){for(let segment of path){if(!(segment in src$1))return;let val=src$1[segment];if(typeof val!=`object`||!val)return;src$1=val}let value=src$1,ref=dst;for(let i$4=0;i$4<path.length-1;++i$4){let segment=path[i$4];typeof ref[segment]!=`object`&&(ref[segment]={}),ref=ref[segment]}ref[path[path.length-1]]=value}});function getDefaultExportFromCjs(x$1){return x$1&&x$1.__esModule&&Object.prototype.hasOwnProperty.call(x$1,`default`)?x$1.default:x$1}function defaultSetTimout(){throw Error(`setTimeout has not been defined`)}function defaultClearTimeout(){throw Error(`clearTimeout has not been defined`)}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch{try{return cachedSetTimeout.call(null,fun,0)}catch{return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch{try{return cachedClearTimeout.call(null,marker)}catch{return cachedClearTimeout.call(this,marker)}}}function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len$2=queue.length;len$2;){for(currentQueue=queue,queue=[];++queueIndex<len$2;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,len$2=queue.length}currentQueue=null,draining=!1,runClearTimeout(timeout)}}function Item(fun,array){this.fun=fun,this.array=array}function noop(){}var browser$1,process,cachedSetTimeout,cachedClearTimeout,queue,draining,currentQueue,queueIndex,browserExports,process$1,init_dist=__esmMin(()=>{browser$1={exports:{}},process=browser$1.exports={},function(){try{cachedSetTimeout=typeof setTimeout==`function`?setTimeout:defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout=typeof clearTimeout==`function`?clearTimeout:defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}}(),queue=[],draining=!1,queueIndex=-1,process.nextTick=function(fun){var args$1=Array(arguments.length-1);if(arguments.length>1)for(var i$4=1;i$4<arguments.length;i$4++)args$1[i$4-1]=arguments[i$4];queue.push(new Item(fun,args$1)),queue.length===1&&!draining&&runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title=`browser`,process.browser=!0,process.env={},process.argv=[],process.version=``,process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(name$1){return[]},process.binding=function(name$1){throw Error(`process.binding is not supported`)},process.cwd=function(){return`/`},process.chdir=function(dir){throw Error(`process.chdir is not supported`)},process.umask=function(){return 0},browserExports=browser$1.exports,process$1=getDefaultExportFromCjs(browserExports)}),require_bench=__commonJSMin((exports,module)=>{init_dist();let internals$35={};module.exports=internals$35.Bench=class{constructor(){this.ts=0,this.reset()}reset(){this.ts=internals$35.Bench.now()}elapsed(){return internals$35.Bench.now()-this.ts}static now(){let ts=process$1.hrtime();return ts[0]*1e3+ts[1]/1e6}}}),require_ignore=__commonJSMin((exports,module)=>{module.exports=function(){}}),require_block=__commonJSMin((exports,module)=>{let Ignore=require_ignore();module.exports=function(){return new Promise(Ignore)}}),require_deepEqual=__commonJSMin((exports,module)=>{init_dist$1();let Types=require_types$1(),internals$34={mismatched:null};module.exports=function(obj,ref,options){return options=Object.assign({prototype:!0},options),!!internals$34.isDeepEqual(obj,ref,options,[])},internals$34.isDeepEqual=function(obj,ref,options,seen){if(obj===ref)return obj!==0||1/obj==1/ref;let type=typeof obj;if(type!==typeof ref||obj===null||ref===null)return!1;if(type===`function`){if(!options.deepFunction||obj.toString()!==ref.toString())return!1}else if(type!==`object`)return obj!==obj&&ref!==ref;let instanceType=internals$34.getSharedType(obj,ref,!!options.prototype);switch(instanceType){case Types.buffer:return Buffer$1&&Buffer$1.prototype.equals.call(obj,ref);case Types.promise:return obj===ref;case Types.regex:case Types.url:return obj.toString()===ref.toString();case internals$34.mismatched:return!1}for(let i$4=seen.length-1;i$4>=0;--i$4)if(seen[i$4].isSame(obj,ref))return!0;seen.push(new internals$34.SeenEntry(obj,ref));try{return!!internals$34.isDeepEqualObj(instanceType,obj,ref,options,seen)}finally{seen.pop()}},internals$34.getSharedType=function(obj,ref,checkPrototype){if(checkPrototype)return Object.getPrototypeOf(obj)===Object.getPrototypeOf(ref)?Types.getInternalProto(obj):internals$34.mismatched;let type=Types.getInternalProto(obj);return type===Types.getInternalProto(ref)?type:internals$34.mismatched},internals$34.valueOf=function(obj){let objValueOf=obj.valueOf;if(objValueOf===void 0)return obj;try{return objValueOf.call(obj)}catch(err$1){return err$1}},internals$34.hasOwnEnumerableProperty=function(obj,key){return Object.prototype.propertyIsEnumerable.call(obj,key)},internals$34.isSetSimpleEqual=function(obj,ref){for(let entry of Set.prototype.values.call(obj))if(!Set.prototype.has.call(ref,entry))return!1;return!0},internals$34.isDeepEqualObj=function(instanceType,obj,ref,options,seen){let{isDeepEqual,valueOf,hasOwnEnumerableProperty}=internals$34,{keys,getOwnPropertySymbols}=Object;if(instanceType===Types.array)if(options.part){for(let objValue of obj)for(let refValue of ref)if(isDeepEqual(objValue,refValue,options,seen))return!0}else{if(obj.length!==ref.length)return!1;for(let i$4=0;i$4<obj.length;++i$4)if(!isDeepEqual(obj[i$4],ref[i$4],options,seen))return!1;return!0}else if(instanceType===Types.set){if(obj.size!==ref.size)return!1;if(!internals$34.isSetSimpleEqual(obj,ref)){let ref2=new Set(Set.prototype.values.call(ref));for(let objEntry of Set.prototype.values.call(obj)){if(ref2.delete(objEntry))continue;let found=!1;for(let refEntry of ref2)if(isDeepEqual(objEntry,refEntry,options,seen)){ref2.delete(refEntry),found=!0;break}if(!found)return!1}}}else if(instanceType===Types.map){if(obj.size!==ref.size)return!1;for(let[key,value]of Map.prototype.entries.call(obj))if(value===void 0&&!Map.prototype.has.call(ref,key)||!isDeepEqual(value,Map.prototype.get.call(ref,key),options,seen))return!1}else if(instanceType===Types.error&&(obj.name!==ref.name||obj.message!==ref.message))return!1;let valueOfObj=valueOf(obj),valueOfRef=valueOf(ref);if((obj!==valueOfObj||ref!==valueOfRef)&&!isDeepEqual(valueOfObj,valueOfRef,options,seen))return!1;let objKeys=keys(obj);if(!options.part&&objKeys.length!==keys(ref).length&&!options.skip)return!1;let skipped=0;for(let key of objKeys){if(options.skip&&options.skip.includes(key)){ref[key]===void 0&&++skipped;continue}if(!hasOwnEnumerableProperty(ref,key)||!isDeepEqual(obj[key],ref[key],options,seen))return!1}if(!options.part&&objKeys.length-skipped!==keys(ref).length)return!1;if(options.symbols!==!1){let objSymbols=getOwnPropertySymbols(obj),refSymbols=new Set(getOwnPropertySymbols(ref));for(let key of objSymbols){if(!options.skip?.includes(key)){if(hasOwnEnumerableProperty(obj,key)){if(!hasOwnEnumerableProperty(ref,key)||!isDeepEqual(obj[key],ref[key],options,seen))return!1}else if(hasOwnEnumerableProperty(ref,key))return!1}refSymbols.delete(key)}for(let key of refSymbols)if(hasOwnEnumerableProperty(ref,key))return!1}return!0},internals$34.SeenEntry=class{constructor(obj,ref){this.obj=obj,this.ref=ref}isSame(obj,ref){return this.obj===obj&&this.ref===ref}}}),require_escapeRegex=__commonJSMin((exports,module)=>{module.exports=function(string){return string.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,`\\$&`)}}),require_contain=__commonJSMin((exports,module)=>{let Assert$2=require_assert(),DeepEqual=require_deepEqual(),EscapeRegex=require_escapeRegex(),Utils=require_utils(),internals$33={};module.exports=function(ref,values,options={}){return typeof values!=`object`&&(values=[values]),Assert$2(!Array.isArray(values)||values.length,`Values array cannot be empty`),typeof ref==`string`?internals$33.string(ref,values,options):Array.isArray(ref)?internals$33.array(ref,values,options):(Assert$2(typeof ref==`object`,`Reference must be string or an object`),internals$33.object(ref,values,options))},internals$33.array=function(ref,values,options){if(Array.isArray(values)||(values=[values]),!ref.length||options.only&&options.once&&ref.length!==values.length)return!1;let compare$14,map=new Map;for(let value of values)if(!options.deep||!value||typeof value!=`object`){let existing=map.get(value);existing?++existing.allowed:map.set(value,{allowed:1,hits:0})}else{compare$14??=internals$33.compare(options);let found=!1;for(let[key,existing]of map.entries())if(compare$14(key,value)){++existing.allowed,found=!0;break}found||map.set(value,{allowed:1,hits:0})}let hits=0;for(let item of ref){let match$2;if(!options.deep||!item||typeof item!=`object`)match$2=map.get(item);else{compare$14??=internals$33.compare(options);for(let[key,existing]of map.entries())if(compare$14(key,item)){match$2=existing;break}}if(match$2&&(++match$2.hits,++hits,options.once&&match$2.hits>match$2.allowed))return!1}if(options.only&&hits!==ref.length)return!1;for(let match$2 of map.values()){if(match$2.hits===match$2.allowed)continue;if(match$2.hits<match$2.allowed&&!options.part)return!1}return!!hits},internals$33.object=function(ref,values,options){Assert$2(options.once===void 0,`Cannot use option once with object`);let keys=Utils.keys(ref,options);if(!keys.length)return!1;if(Array.isArray(values))return internals$33.array(keys,values,options);let symbols=Object.getOwnPropertySymbols(values).filter(sym=>values.propertyIsEnumerable(sym)),targets=[...Object.keys(values),...symbols],compare$14=internals$33.compare(options),set=new Set(targets);for(let key of keys){if(!set.has(key)){if(options.only)return!1;continue}if(!compare$14(values[key],ref[key]))return!1;set.delete(key)}return set.size?options.part?set.size<targets.length:!1:!0},internals$33.string=function(ref,values,options){if(ref===``)return values.length===1&&values[0]===``||!options.once&&!values.some(v=>v!==``);let map=new Map,patterns=[];for(let value of values)if(Assert$2(typeof value==`string`,`Cannot compare string reference to non-string value`),value){let existing=map.get(value);existing?++existing.allowed:(map.set(value,{allowed:1,hits:0}),patterns.push(EscapeRegex(value)))}else if(options.once||options.only)return!1;if(!patterns.length)return!0;let regex=RegExp(`(${patterns.join(`|`)})`,`g`),leftovers=ref.replace(regex,($0,$1)=>(++map.get($1).hits,``));if(options.only&&leftovers)return!1;let any=!1;for(let match$2 of map.values()){if(match$2.hits&&(any=!0),match$2.hits===match$2.allowed)continue;if(match$2.hits<match$2.allowed&&!options.part||options.once)return!1}return!!any},internals$33.compare=function(options){if(!options.deep)return internals$33.shallow;let hasOnly=options.only!==void 0,hasPart=options.part!==void 0,flags={prototype:hasOnly?options.only:hasPart?!options.part:!1,part:hasOnly?!options.only:hasPart?options.part:!1};return(a,b)=>DeepEqual(a,b,flags)},internals$33.shallow=function(a,b){return a===b}}),require_escapeHeaderAttribute=__commonJSMin((exports,module)=>{let Assert$1=require_assert();module.exports=function(attribute){return Assert$1(/^[ \w\!#\$%&'\(\)\*\+,\-\.\/\:;<\=>\?@\[\]\^`\{\|\}~\"\\]*$/.test(attribute),`Bad attribute value (`+attribute+`)`),attribute.replace(/\\/g,`\\\\`).replace(/\"/g,`\\"`)}}),require_escapeHtml=__commonJSMin((exports,module)=>{let internals$32={};module.exports=function(input){if(!input)return``;let escaped=``;for(let i$4=0;i$4<input.length;++i$4){let charCode=input.charCodeAt(i$4);internals$32.isSafe(charCode)?escaped+=input[i$4]:escaped+=internals$32.escapeHtmlChar(charCode)}return escaped},internals$32.escapeHtmlChar=function(charCode){let namedEscape=internals$32.namedHtml.get(charCode);if(namedEscape)return namedEscape;if(charCode>=256)return`&#`+charCode+`;`;let hexValue=charCode.toString(16).padStart(2,`0`);return`&#x${hexValue};`},internals$32.isSafe=function(charCode){return internals$32.safeCharCodes.has(charCode)},internals$32.namedHtml=new Map([[38,`&amp;`],[60,`&lt;`],[62,`&gt;`],[34,`&quot;`],[160,`&nbsp;`],[162,`&cent;`],[163,`&pound;`],[164,`&curren;`],[169,`&copy;`],[174,`&reg;`]]),internals$32.safeCharCodes=function(){let safe=new Set;for(let i$4=32;i$4<123;++i$4)(i$4>=97||i$4>=65&&i$4<=90||i$4>=48&&i$4<=57||i$4===32||i$4===46||i$4===44||i$4===45||i$4===58||i$4===95)&&safe.add(i$4);return safe}()}),require_escapeJson=__commonJSMin((exports,module)=>{let internals$31={};module.exports=function(input){return input?input.replace(/[<>&\u2028\u2029]/g,internals$31.escape):``},internals$31.escape=function(char){return internals$31.replacements.get(char)},internals$31.replacements=new Map([[`<`,`\\u003c`],[`>`,`\\u003e`],[`&`,`\\u0026`],[`\u2028`,`\\u2028`],[`\u2029`,`\\u2029`]])}),require_flatten=__commonJSMin((exports,module)=>{let internals$30={};module.exports=internals$30.flatten=function(array,target){let result=target||[];for(let entry of array)Array.isArray(entry)?internals$30.flatten(entry,result):result.push(entry);return result}}),require_intersect=__commonJSMin((exports,module)=>{let internals$29={};module.exports=function(array1,array2,options={}){if(!array1||!array2)return options.first?null:[];let common=[],hash=Array.isArray(array1)?new Set(array1):array1,found=new Set;for(let value of array2)if(internals$29.has(hash,value)&&!found.has(value)){if(options.first)return value;common.push(value),found.add(value)}return options.first?null:common},internals$29.has=function(ref,key){return typeof ref.has==`function`?ref.has(key):ref[key]!==void 0}}),require_isPromise=__commonJSMin((exports,module)=>{module.exports=function(promise){return typeof promise?.then==`function`}}),require_once=__commonJSMin((exports,module)=>{let internals$28={wrapped:Symbol(`wrapped`)};module.exports=function(method){if(method[internals$28.wrapped])return method;let once$1=!1,wrappedFn=function(...args$1){once$1||(once$1=!0,method(...args$1))};return wrappedFn[internals$28.wrapped]=!0,wrappedFn}}),require_reachTemplate=__commonJSMin((exports,module)=>{let Reach=require_reach();module.exports=function(obj,template,options){return template.replace(/{([^{}]+)}/g,($0,chain)=>{let value=Reach(obj,chain,options);return value??``})}}),require_wait=__commonJSMin((exports,module)=>{let internals$27={maxTimer:2**31-1};module.exports=function(timeout,returnValue,options){if(typeof timeout==`bigint`&&(timeout=Number(timeout)),timeout>=2**53-1&&(timeout=1/0),typeof timeout!=`number`&&timeout!==void 0)throw TypeError(`Timeout must be a number or bigint`);return new Promise(resolve=>{let _setTimeout=options?options.setTimeout:setTimeout,activate=()=>{let time=Math.min(timeout,internals$27.maxTimer);timeout-=time,_setTimeout(()=>timeout>0?activate():resolve(returnValue),time)};timeout!==1/0&&activate()})}}),import_applyToDefaults,import_assert,import_bench,import_block,import_clone,import_contain,import_deepEqual,import_assertError,import_escapeHeaderAttribute,import_escapeHtml,import_escapeJson,import_escapeRegex,import_flatten,import_ignore,import_intersect,import_isPromise,import_merge,import_once,import_reach,import_reachTemplate,import_stringify,import_wait,init_lib=__esmMin(()=>{import_applyToDefaults=__toESM(require_applyToDefaults(),1),import_assert=__toESM(require_assert(),1),import_bench=__toESM(require_bench(),1),import_block=__toESM(require_block(),1),import_clone=__toESM(require_clone(),1),import_contain=__toESM(require_contain(),1),import_deepEqual=__toESM(require_deepEqual(),1),import_assertError=__toESM(require_assertError(),1),import_escapeHeaderAttribute=__toESM(require_escapeHeaderAttribute(),1),import_escapeHtml=__toESM(require_escapeHtml(),1),import_escapeJson=__toESM(require_escapeJson(),1),import_escapeRegex=__toESM(require_escapeRegex(),1),import_flatten=__toESM(require_flatten(),1),import_ignore=__toESM(require_ignore(),1),import_intersect=__toESM(require_intersect(),1),import_isPromise=__toESM(require_isPromise(),1),import_merge=__toESM(require_merge(),1),import_once=__toESM(require_once(),1),import_reach=__toESM(require_reach(),1),import_reachTemplate=__toESM(require_reachTemplate(),1),import_stringify=__toESM(require_stringify(),1),import_wait=__toESM(require_wait(),1)}),require_lib$4=__commonJSMin(exports=>{exports.applyToDefaults=require_applyToDefaults(),exports.assert=require_assert(),exports.AssertError=require_assertError(),exports.Bench=require_bench(),exports.block=require_block(),exports.clone=require_clone(),exports.contain=require_contain(),exports.deepEqual=require_deepEqual(),exports.escapeHeaderAttribute=require_escapeHeaderAttribute(),exports.escapeHtml=require_escapeHtml(),exports.escapeJson=require_escapeJson(),exports.escapeRegex=require_escapeRegex(),exports.flatten=require_flatten(),exports.ignore=require_ignore(),exports.intersect=require_intersect(),exports.isPromise=require_isPromise(),exports.merge=require_merge(),exports.once=require_once(),exports.reach=require_reach(),exports.reachTemplate=require_reachTemplate(),exports.stringify=require_stringify(),exports.wait=require_wait()}),package_exports={};__export(package_exports,{browser:()=>browser,default:()=>package_default,dependencies:()=>dependencies,description:()=>description,devDependencies:()=>devDependencies,engines:()=>engines,files:()=>files,keywords:()=>keywords,license:()=>license,main:()=>main,name:()=>name,repository:()=>repository,scripts:()=>scripts,types:()=>types,version:()=>version$2});var name,description,version$2,repository,engines,main,types,browser,files,keywords,dependencies,devDependencies,scripts,license,package_default,init_package=__esmMin(()=>{name=`joi`,description=`Object schema validation`,version$2=`18.0.1`,repository={url:`git://github.com/hapijs/joi`,type:`git`},engines={node:`>= 20`},main=`lib/index.js`,types=`lib/index.d.ts`,browser=`dist/joi-browser.min.js`,files=[`lib/**/*`,`dist/*`],keywords=[`schema`,`validation`],dependencies={"@hapi/address":`^5.1.1`,"@hapi/formula":`^3.0.2`,"@hapi/hoek":`^11.0.7`,"@hapi/pinpoint":`^2.0.1`,"@hapi/tlds":`^1.1.1`,"@hapi/topo":`^6.0.2`,"@standard-schema/spec":`^1.0.0`},devDependencies={"@hapi/bourne":`^3.0.0`,"@hapi/code":`^9.0.3`,"@hapi/eslint-plugin":`^7.0.0`,"@hapi/joi-legacy-test":`npm:@hapi/joi@15.x.x`,"@hapi/lab":`^26.0.0`,"@types/node":`^20.17.47`,typescript:`^5.8.3`},scripts={prepublishOnly:`cd browser && npm install && npm run build`,test:`lab -t 100 -a @hapi/code -L -Y`,"test-cov-html":`lab -r html -o coverage.html -a @hapi/code`},license=`BSD-3-Clause`,package_default={name,description,version:version$2,repository,engines,main,types,browser,files,keywords,dependencies,devDependencies,scripts,license}}),require_cache=__commonJSMin(exports=>{let{assert:assert$27,clone:clone$14}=require_lib$4(),Common$24=require_common(),internals$26={max:1e3,supported:new Set([`undefined`,`boolean`,`number`,`string`])};exports.provider={provision(options){return new internals$26.Cache(options)}},internals$26.Cache=class{constructor(options={}){Common$24.assertOptions(options,[`max`]),assert$27(options.max===void 0||options.max&&options.max>0&&isFinite(options.max),`Invalid max cache size`),this._max=options.max||internals$26.max,this._map=new Map,this._list=new internals$26.List}get length(){return this._map.size}set(key,value){if(key!==null&&!internals$26.supported.has(typeof key))return;let node=this._map.get(key);if(node){node.value=value,this._list.first(node);return}node=this._list.unshift({key,value}),this._map.set(key,node),this._compact()}get(key){let node=this._map.get(key);if(node)return this._list.first(node),clone$14(node.value)}_compact(){if(this._map.size>this._max){let node=this._list.pop();this._map.delete(node.key)}}},internals$26.List=class{constructor(){this.tail=null,this.head=null}unshift(node){return node.next=null,node.prev=this.head,this.head&&(this.head.next=node),this.head=node,this.tail||=node,node}first(node){node!==this.head&&(this._remove(node),this.unshift(node))}pop(){return this._remove(this.tail)}_remove(node){let{next,prev}=node;return next.prev=prev,prev&&(prev.next=next),node===this.tail&&(this.tail=next),node.prev=null,node.next=null,node}}}),require_compile=__commonJSMin(exports=>{let{assert:assert$26}=require_lib$4(),Common$23=require_common(),Ref$8=require_ref(),internals$25={};exports.schema=function(Joi$2,config,options={}){Common$23.assertOptions(options,[`appendPath`,`override`]);try{return internals$25.schema(Joi$2,config,options)}catch(err$1){throw options.appendPath&&err$1.path!==void 0&&(err$1.message=`${err$1.message} (${err$1.path})`),err$1}},internals$25.schema=function(Joi$2,config,options){assert$26(config!==void 0,`Invalid undefined schema`),Array.isArray(config)&&(assert$26(config.length,`Invalid empty array schema`),config.length===1&&(config=config[0]));let valid$2=(base,...values)=>options.override===!1?base.valid(...values):base.valid(Joi$2.override,...values);if(internals$25.simple(config))return valid$2(Joi$2,config);if(typeof config==`function`)return Joi$2.custom(config);if(assert$26(typeof config==`object`,`Invalid schema content:`,typeof config),Common$23.isResolvable(config))return valid$2(Joi$2,config);if(Common$23.isSchema(config))return config;if(Array.isArray(config)){for(let item of config)if(!internals$25.simple(item))return Joi$2.alternatives().try(...config);return valid$2(Joi$2,...config)}return config instanceof RegExp?Joi$2.string().regex(config):config instanceof Date?valid$2(Joi$2.date(),config):(assert$26(Object.getPrototypeOf(config)===Object.getPrototypeOf({}),`Schema can only contain plain objects`),Joi$2.object().keys(config))},exports.ref=function(id,options){return Ref$8.isRef(id)?id:Ref$8.create(id,options)},exports.compile=function(root,schema,options={}){Common$23.assertOptions(options,[`legacy`]);let any=schema&&schema[Common$23.symbols.any];if(any)return assert$26(options.legacy||any.version===Common$23.version,`Cannot mix different versions of joi schemas:`,any.version,Common$23.version),schema;if(typeof schema!=`object`||!options.legacy)return exports.schema(root,schema,{appendPath:!0});let compiler=internals$25.walk(schema);return compiler?compiler.compile(compiler.root,schema):exports.schema(root,schema,{appendPath:!0})},internals$25.walk=function(schema){if(typeof schema!=`object`)return null;if(Array.isArray(schema)){for(let item of schema){let compiler=internals$25.walk(item);if(compiler)return compiler}return null}let any=schema[Common$23.symbols.any];if(any)return{root:schema[any.root],compile:any.compile};for(let key in assert$26(Object.getPrototypeOf(schema)===Object.getPrototypeOf({}),`Schema can only contain plain objects`),schema){let compiler=internals$25.walk(schema[key]);if(compiler)return compiler}return null},internals$25.simple=function(value){return value===null||[`boolean`,`string`,`number`].includes(typeof value)},exports.when=function(schema,condition,options){if(options===void 0&&(assert$26(condition&&typeof condition==`object`,`Missing options`),options=condition,condition=Ref$8.create(`.`)),Array.isArray(options)&&(options={switch:options}),Common$23.assertOptions(options,[`is`,`not`,`then`,`otherwise`,`switch`,`break`]),Common$23.isSchema(condition))return assert$26(options.is===void 0,`"is" can not be used with a schema condition`),assert$26(options.not===void 0,`"not" can not be used with a schema condition`),assert$26(options.switch===void 0,`"switch" can not be used with a schema condition`),internals$25.condition(schema,{is:condition,then:options.then,otherwise:options.otherwise,break:options.break});if(assert$26(Ref$8.isRef(condition)||typeof condition==`string`,`Invalid condition:`,condition),assert$26(options.not===void 0||options.is===void 0,`Cannot combine "is" with "not"`),options.switch===void 0){let rule$1=options;options.not!==void 0&&(rule$1={is:options.not,then:options.otherwise,otherwise:options.then,break:options.break});let is=rule$1.is===void 0?schema.$_root.invalid(null,!1,0,``).required():schema.$_compile(rule$1.is);return assert$26(rule$1.then!==void 0||rule$1.otherwise!==void 0,`options must have at least one of "then", "otherwise", or "switch"`),assert$26(rule$1.break===void 0||rule$1.then===void 0||rule$1.otherwise===void 0,`Cannot specify then, otherwise, and break all together`),options.is!==void 0&&!Ref$8.isRef(options.is)&&!Common$23.isSchema(options.is)&&(is=is.required()),internals$25.condition(schema,{ref:exports.ref(condition),is,then:rule$1.then,otherwise:rule$1.otherwise,break:rule$1.break})}assert$26(Array.isArray(options.switch),`"switch" must be an array`),assert$26(options.is===void 0,`Cannot combine "switch" with "is"`),assert$26(options.not===void 0,`Cannot combine "switch" with "not"`),assert$26(options.then===void 0,`Cannot combine "switch" with "then"`);let rule={ref:exports.ref(condition),switch:[],break:options.break};for(let i$4=0;i$4<options.switch.length;++i$4){let test=options.switch[i$4],last=i$4===options.switch.length-1;Common$23.assertOptions(test,last?[`is`,`then`,`otherwise`]:[`is`,`then`]),assert$26(test.is!==void 0,`Switch statement missing "is"`),assert$26(test.then!==void 0,`Switch statement missing "then"`);let item={is:schema.$_compile(test.is),then:schema.$_compile(test.then)};if(!Ref$8.isRef(test.is)&&!Common$23.isSchema(test.is)&&(item.is=item.is.required()),last){assert$26(options.otherwise===void 0||test.otherwise===void 0,`Cannot specify "otherwise" inside and outside a "switch"`);let otherwise=options.otherwise===void 0?test.otherwise:options.otherwise;otherwise!==void 0&&(assert$26(rule.break===void 0,`Cannot specify both otherwise and break`),item.otherwise=schema.$_compile(otherwise))}rule.switch.push(item)}return rule},internals$25.condition=function(schema,condition){for(let key of[`then`,`otherwise`])condition[key]===void 0?delete condition[key]:condition[key]=schema.$_compile(condition[key]);return condition}}),require_annotate=__commonJSMin(exports=>{let{clone:clone$13}=require_lib$4(),Common$22=require_common(),internals$24={annotations:Symbol(`annotations`)};exports.error=function(stripColorCodes){if(!this._original||typeof this._original!=`object`)return this.details[0].message;let redFgEscape=stripColorCodes?``:`\x1B[31m`,redBgEscape=stripColorCodes?``:`\x1B[41m`,endColor=stripColorCodes?``:`\x1B[0m`,obj=clone$13(this._original);for(let i$4=this.details.length-1;i$4>=0;--i$4){let pos=i$4+1,error=this.details[i$4],path=error.path,node=obj;for(let j$1=0;;++j$1){let seg=path[j$1];if(Common$22.isSchema(node)&&(node=node.clone()),j$1+1<path.length&&typeof node[seg]!=`string`)node=node[seg];else{let refAnnotations=node[internals$24.annotations]||{errors:{},missing:{}};node[internals$24.annotations]=refAnnotations;let cacheKey=seg||error.context.key;node[seg]===void 0?refAnnotations.missing[cacheKey]=pos:(refAnnotations.errors[cacheKey]=refAnnotations.errors[cacheKey]||[],refAnnotations.errors[cacheKey].push(pos));break}}}let replacers={key:/_\$key\$_([, \d]+)_\$end\$_"/g,missing:/"_\$miss\$_([^|]+)\|(\d+)_\$end\$_": "__missing__"/g,arrayIndex:/\s*"_\$idx\$_([, \d]+)_\$end\$_",?\n(.*)/g,specials:/"\[(NaN|Symbol.*|-?Infinity|function.*|\(.*)]"/g},message=internals$24.safeStringify(obj,2).replace(replacers.key,($0,$1)=>`" ${redFgEscape}[${$1}]${endColor}`).replace(replacers.missing,($0,$1,$2)=>`${redBgEscape}"${$1}"${endColor}${redFgEscape} [${$2}]: -- missing --${endColor}`).replace(replacers.arrayIndex,($0,$1,$2)=>`\n${$2} ${redFgEscape}[${$1}]${endColor}`).replace(replacers.specials,($0,$1)=>$1);message=`${message}\n${redFgEscape}`;for(let i$4=0;i$4<this.details.length;++i$4){let pos=i$4+1;message=`${message}\n[${pos}] ${this.details[i$4].message}`}return message+=endColor,message},internals$24.safeStringify=function(obj,spaces){return JSON.stringify(obj,internals$24.serializer(),spaces)},internals$24.serializer=function(){let keys=[],stack=[],cycleReplacer=(key,value)=>stack[0]===value?`[Circular ~]`:`[Circular ~.`+keys.slice(0,stack.indexOf(value)).join(`.`)+`]`;return function(key,value){if(stack.length>0){let thisPos=stack.indexOf(this);~thisPos?(stack.length=thisPos+1,keys.length=thisPos+1,keys[thisPos]=key):(stack.push(this),keys.push(key)),~stack.indexOf(value)&&(value=cycleReplacer.call(this,key,value))}else stack.push(value);if(value){let annotations=value[internals$24.annotations];if(annotations){if(Array.isArray(value)){let annotated=[];for(let i$4=0;i$4<value.length;++i$4)annotations.errors[i$4]&&annotated.push(`_$idx$_${annotations.errors[i$4].sort().join(`, `)}_$end$_`),annotated.push(value[i$4]);value=annotated}else{for(let errorKey in annotations.errors)value[`${errorKey}_$key$_${annotations.errors[errorKey].sort().join(`, `)}_$end$_`]=value[errorKey],value[errorKey]=void 0;for(let missingKey in annotations.missing)value[`_$miss$_${missingKey}|${annotations.missing[missingKey]}_$end$_`]=`__missing__`}return value}}return value===1/0||value===-1/0||Number.isNaN(value)||typeof value==`function`||typeof value==`symbol`?`[`+value.toString()+`]`:value}}}),require_lib$3=__commonJSMin(exports=>{let internals$23={operators:[`!`,`^`,`*`,`/`,`%`,`+`,`-`,`<`,`<=`,`>`,`>=`,`==`,`!=`,`&&`,`||`,`??`],operatorCharacters:[`!`,`^`,`*`,`/`,`%`,`+`,`-`,`<`,`=`,`>`,`&`,`|`,`?`],operatorsOrder:[[`^`],[`*`,`/`,`%`],[`+`,`-`],[`<`,`<=`,`>`,`>=`],[`==`,`!=`],[`&&`],[`||`,`??`]],operatorsPrefix:[`!`,`n`],literals:{'"':`"`,"`":"`","'":`'`,"[":`]`},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol(`formula`),settings:Symbol(`settings`)};exports.Parser=class{constructor(string,options={}){if(!options[internals$23.settings]&&options.constants)for(let constant in options.constants){let value=options.constants[constant];if(value!==null&&![`boolean`,`number`,`string`].includes(typeof value))throw Error(`Formula constant ${constant} contains invalid ${typeof value} value type`)}this.settings=options[internals$23.settings]?options:Object.assign({[internals$23.settings]:!0,constants:{},functions:{}},options),this.single=null,this._parts=null,this._parse(string)}_parse(string){let parts=[],current=``,parenthesis=0,literal=!1,flush=inner=>{if(parenthesis)throw Error(`Formula missing closing parenthesis`);let last=parts.length?parts[parts.length-1]:null;if(!(!literal&&!current&&!inner)){if(last&&last.type===`reference`&&inner===`)`){last.type=`function`,last.value=this._subFormula(current,last.value),current=``;return}if(inner===`)`){let sub=new exports.Parser(current,this.settings);parts.push({type:`segment`,value:sub})}else if(literal){if(literal===`]`){parts.push({type:`reference`,value:current}),current=``;return}parts.push({type:`literal`,value:current})}else if(internals$23.operatorCharacters.includes(current))last&&last.type===`operator`&&internals$23.operators.includes(last.value+current)?last.value+=current:parts.push({type:`operator`,value:current});else if(current.match(internals$23.numberRx))parts.push({type:`constant`,value:parseFloat(current)});else if(this.settings.constants[current]!==void 0)parts.push({type:`constant`,value:this.settings.constants[current]});else{if(!current.match(internals$23.tokenRx))throw Error(`Formula contains invalid token: ${current}`);parts.push({type:`reference`,value:current})}current=``}};for(let c$1 of string)literal?c$1===literal?(flush(),literal=!1):current+=c$1:parenthesis?c$1===`(`?(current+=c$1,++parenthesis):c$1===`)`?(--parenthesis,parenthesis?current+=c$1:flush(c$1)):current+=c$1:c$1 in internals$23.literals?literal=internals$23.literals[c$1]:c$1===`(`?(flush(),++parenthesis):internals$23.operatorCharacters.includes(c$1)?(flush(),current=c$1,flush()):c$1===` `?flush():current+=c$1;flush(),parts=parts.map((part,i$4)=>part.type!==`operator`||part.value!==`-`||i$4&&parts[i$4-1].type!==`operator`?part:{type:`operator`,value:`n`});let operator=!1;for(let part of parts){if(part.type===`operator`){if(internals$23.operatorsPrefix.includes(part.value))continue;if(!operator)throw Error(`Formula contains an operator in invalid position`);if(!internals$23.operators.includes(part.value))throw Error(`Formula contains an unknown operator ${part.value}`)}else if(operator)throw Error(`Formula missing expected operator`);operator=!operator}if(!operator)throw Error(`Formula contains invalid trailing operator`);parts.length===1&&[`reference`,`literal`,`constant`].includes(parts[0].type)&&(this.single={type:parts[0].type===`reference`?`reference`:`value`,value:parts[0].value}),this._parts=parts.map(part=>{if(part.type===`operator`)return internals$23.operatorsPrefix.includes(part.value)?part:part.value;if(part.type!==`reference`)return part.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(part.value))throw Error(`Formula contains invalid reference ${part.value}`);return this.settings.reference?this.settings.reference(part.value):internals$23.reference(part.value)})}_subFormula(string,name$1){let method=this.settings.functions[name$1];if(typeof method!=`function`)throw Error(`Formula contains unknown function ${name$1}`);let args$1=[];if(string){let current=``,parenthesis=0,literal=!1,flush=()=>{if(!current)throw Error(`Formula contains function ${name$1} with invalid arguments ${string}`);args$1.push(current),current=``};for(let i$4=0;i$4<string.length;++i$4){let c$1=string[i$4];literal?(current+=c$1,c$1===literal&&(literal=!1)):c$1 in internals$23.literals&&!parenthesis?(current+=c$1,literal=internals$23.literals[c$1]):c$1===`,`&&!parenthesis?flush():(current+=c$1,c$1===`(`?++parenthesis:c$1===`)`&&--parenthesis)}flush()}return args$1=args$1.map(arg=>new exports.Parser(arg,this.settings)),function(context){let innerValues=[];for(let arg of args$1)innerValues.push(arg.evaluate(context));return method.call(context,...innerValues)}}evaluate(context){let parts=this._parts.slice();for(let i$4=parts.length-2;i$4>=0;--i$4){let part=parts[i$4];if(part&&part.type===`operator`){let current=parts[i$4+1];parts.splice(i$4+1,1);let value=internals$23.evaluate(current,context);parts[i$4]=internals$23.single(part.value,value)}}return internals$23.operatorsOrder.forEach(set=>{for(let i$4=1;i$4<parts.length-1;)if(set.includes(parts[i$4])){let operator=parts[i$4],left=internals$23.evaluate(parts[i$4-1],context),right=internals$23.evaluate(parts[i$4+1],context);parts.splice(i$4,2);let result=internals$23.calculate(operator,left,right);parts[i$4-1]=result===0?0:result}else i$4+=2}),internals$23.evaluate(parts[0],context)}},exports.Parser.prototype[internals$23.symbol]=!0,internals$23.reference=function(name$1){return function(context){return context&&context[name$1]!==void 0?context[name$1]:null}},internals$23.evaluate=function(part,context){return part===null?null:typeof part==`function`?part(context):part[internals$23.symbol]?part.evaluate(context):part},internals$23.single=function(operator,value){if(operator===`!`)return!value;let negative=-value;return negative===0?0:negative},internals$23.calculate=function(operator,left,right){if(operator===`??`)return internals$23.exists(left)?left:right;if(typeof left==`string`||typeof right==`string`){if(operator===`+`)return left=internals$23.exists(left)?left:``,right=internals$23.exists(right)?right:``,left+right}else switch(operator){case`^`:return left**+right;case`*`:return left*right;case`/`:return left/right;case`%`:return left%right;case`+`:return left+right;case`-`:return left-right}switch(operator){case`<`:return left<right;case`<=`:return left<=right;case`>`:return left>right;case`>=`:return left>=right;case`==`:return left===right;case`!=`:return left!==right;case`&&`:return left&&right;case`||`:return left||right}return null},internals$23.exists=function(value){return value!=null}}),require_template=__commonJSMin((exports,module)=>{let{assert:assert$25,clone:clone$12,escapeHtml}=require_lib$4(),Formula=require_lib$3(),Common$21=require_common(),Errors$8=require_errors(),Ref$7=require_ref(),internals$22={symbol:Symbol(`template`),opens:Array(1e3).join(`\0`),closes:Array(1e3).join(``),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};module.exports=exports=internals$22.Template=class{constructor(source,options){if(assert$25(typeof source==`string`,`Template source must be a string`),assert$25(!source.includes(`\0`)&&!source.includes(``),`Template source cannot contain reserved control characters`),this.source=source,this.rendered=source,this._template=null,options){let{functions,...opts}=options;this._settings=Object.keys(opts).length?clone$12(opts):void 0,this._functions=functions,this._functions&&(assert$25(Object.keys(this._functions).every(key=>typeof key==`string`),`Functions keys must be strings`),assert$25(Object.values(this._functions).every(key=>typeof key==`function`),`Functions values must be functions`))}else this._settings=void 0,this._functions=void 0;this._parse()}_parse(){if(!this.source.includes(`{`))return;let encoded=internals$22.encode(this.source),parts=internals$22.split(encoded),refs=!1,processed=[],head=parts.shift();head&&processed.push(head);for(let part of parts){let raw=part[0]!==`{`,ender=raw?`}`:`}}`,end=part.indexOf(ender);if(end===-1||part[1]===`{`){processed.push(`{${internals$22.decode(part)}`);continue}let variable=part.slice(raw?0:1,end),wrapped=variable[0]===`:`;wrapped&&(variable=variable.slice(1));let dynamic=this._ref(internals$22.decode(variable),{raw,wrapped});processed.push(dynamic),typeof dynamic!=`string`&&(refs=!0);let rest=part.slice(end+ender.length);rest&&processed.push(internals$22.decode(rest))}if(!refs){this.rendered=processed.join(``);return}this._template=processed}static date(date,prefs){return internals$22.dateFormat[prefs.dateFormat].call(date)}describe(options={}){if(!this._settings&&options.compact)return this.source;let desc$1={template:this.source};return this._settings&&(desc$1.options=this._settings),this._functions&&(desc$1.functions=this._functions),desc$1}static build(desc$1){return new internals$22.Template(desc$1.template,desc$1.options||desc$1.functions?{...desc$1.options,functions:desc$1.functions}:void 0)}isDynamic(){return!!this._template}static isTemplate(template){return template?!!template[Common$21.symbols.template]:!1}refs(){if(!this._template)return;let refs=[];for(let part of this._template)typeof part!=`string`&&refs.push(...part.refs);return refs}resolve(value,state,prefs,local){return this._template&&this._template.length===1?this._part(this._template[0],value,state,prefs,local,{}):this.render(value,state,prefs,local)}_part(part,...args$1){return part.ref?part.ref.resolve(...args$1):part.formula.evaluate(args$1)}render(value,state,prefs,local,options={}){if(!this.isDynamic())return this.rendered;let parts=[];for(let part of this._template)if(typeof part==`string`)parts.push(part);else{let rendered=this._part(part,value,state,prefs,local,options),string=internals$22.stringify(rendered,value,state,prefs,local,options);if(string!==void 0){let result=part.raw||(options.errors&&options.errors.escapeHtml)===!1?string:escapeHtml(string);parts.push(internals$22.wrap(result,part.wrapped&&prefs.errors.wrap.label))}}return parts.join(``)}_ref(content,{raw,wrapped}){let refs=[],reference=variable=>{let ref=Ref$7.create(variable,this._settings);return refs.push(ref),context=>{let resolved=ref.resolve(...context);return resolved===void 0?null:resolved}};try{let functions=this._functions?{...internals$22.functions,...this._functions}:internals$22.functions;var formula=new Formula.Parser(content,{reference,functions,constants:internals$22.constants})}catch(err$1){throw err$1.message=`Invalid template variable "${content}" fails due to: ${err$1.message}`,err$1}if(formula.single){if(formula.single.type===`reference`){let ref=refs[0];return{ref,raw,refs,wrapped:wrapped||ref.type===`local`&&ref.key===`label`}}return internals$22.stringify(formula.single.value)}return{formula,raw,refs}}toString(){return this.source}},internals$22.Template.prototype[Common$21.symbols.template]=!0,internals$22.Template.prototype.isImmutable=!0,internals$22.encode=function(string){return string.replace(/\\(\{+)/g,($0,$1)=>internals$22.opens.slice(0,$1.length)).replace(/\\(\}+)/g,($0,$1)=>internals$22.closes.slice(0,$1.length))},internals$22.decode=function(string){return string.replace(/\u0000/g,`{`).replace(/\u0001/g,`}`)},internals$22.split=function(string){let parts=[],current=``;for(let i$4=0;i$4<string.length;++i$4){let char=string[i$4];if(char===`{`){let next=``;for(;i$4+1<string.length&&string[i$4+1]===`{`;)next+=`{`,++i$4;parts.push(current),current=next}else current+=char}return parts.push(current),parts},internals$22.wrap=function(value,ends){return ends?ends.length===1?`${ends}${value}${ends}`:`${ends[0]}${value}${ends[1]}`:value},internals$22.stringify=function(value,original,state,prefs,local,options={}){let type=typeof value,wrap$1=prefs&&prefs.errors&&prefs.errors.wrap||{},skipWrap=!1;if(Ref$7.isRef(value)&&value.render&&(skipWrap=value.in,value=value.resolve(original,state,prefs,local,{in:value.in,...options})),value===null)return`null`;if(type===`string`)return internals$22.wrap(value,options.arrayItems&&wrap$1.string);if(type===`number`||type===`function`||type===`symbol`)return value.toString();if(type!==`object`)return JSON.stringify(value);if(value instanceof Date)return internals$22.Template.date(value,prefs);if(value instanceof Map){let pairs=[];for(let[key,sym]of value.entries())pairs.push(`${key.toString()} -> ${sym.toString()}`);value=pairs}if(!Array.isArray(value))return value.toString();let values=[];for(let item of value)values.push(internals$22.stringify(item,original,state,prefs,local,{arrayItems:!0,...options}));return internals$22.wrap(values.join(`, `),!skipWrap&&wrap$1.array)},internals$22.constants={true:!0,false:!1,null:null,second:1e3,minute:60*1e3,hour:60*60*1e3,day:24*60*60*1e3},internals$22.functions={if(condition,then,otherwise){return condition?then:otherwise},length(item){return typeof item==`string`?item.length:!item||typeof item!=`object`?null:Array.isArray(item)?item.length:Object.keys(item).length},msg(code$2){let[value,state,prefs,local,options]=this,messages$3=options.messages;if(!messages$3)return``;let template=Errors$8.template(value,messages$3[0],code$2,state,prefs)||Errors$8.template(value,messages$3[1],code$2,state,prefs);return template?template.render(value,state,prefs,local,options):``},number(value){return typeof value==`number`?value:typeof value==`string`?parseFloat(value):typeof value==`boolean`?value?1:0:value instanceof Date?value.getTime():null}}}),require_errors=__commonJSMin(exports=>{let Annotate=require_annotate(),Common$20=require_common(),Template$7=require_template();exports.Report=class{constructor(code$2,value,local,flags,messages$3,state,prefs){if(this.code=code$2,this.flags=flags,this.messages=messages$3,this.path=state.path,this.prefs=prefs,this.state=state,this.value=value,this.message=null,this.template=null,this.local=local||{},this.local.label=exports.label(this.flags,this.state,this.prefs,this.messages),this.value!==void 0&&!this.local.hasOwnProperty(`value`)&&(this.local.value=this.value),this.path.length){let key=this.path[this.path.length-1];typeof key!=`object`&&(this.local.key=key)}}_setTemplate(template){if(this.template=template,!this.flags.label&&this.path.length===0){let localized=this._template(this.template,`root`);localized&&(this.local.label=localized)}}toString(){if(this.message)return this.message;let code$2=this.code;if(!this.prefs.errors.render)return this.code;let template=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return template===void 0?`Error code "${code$2}" is not defined, your custom type is missing the correct messages definition`:(this.message=template.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,``).trim()),this.message)}_template(messages$3,code$2){return exports.template(this.value,messages$3,code$2||this.code,this.state,this.prefs)}},exports.path=function(path){let label=``;for(let segment of path){if(typeof segment==`object`)continue;typeof segment==`string`?(label&&(label+=`.`),label+=segment):label+=`[${segment}]`}return label},exports.template=function(value,messages$3,code$2,state,prefs){if(!messages$3)return;if(Template$7.isTemplate(messages$3))return code$2===`root`?null:messages$3;let lang=prefs.errors.language;if(Common$20.isResolvable(lang)&&(lang=lang.resolve(value,state,prefs)),lang&&messages$3[lang]){if(messages$3[lang][code$2]!==void 0)return messages$3[lang][code$2];if(messages$3[lang][`*`]!==void 0)return messages$3[lang][`*`]}return messages$3[code$2]?messages$3[code$2]:messages$3[`*`]},exports.label=function(flags,state,prefs,messages$3){if(!prefs.errors.label)return``;if(flags.label)return flags.label;let path=state.path;prefs.errors.label===`key`&&state.path.length>1&&(path=state.path.slice(-1));let normalized=exports.path(path);return normalized||exports.template(null,prefs.messages,`root`,state,prefs)||messages$3&&exports.template(null,messages$3,`root`,state,prefs)||`value`},exports.process=function(errors,original,prefs){if(!errors)return null;let{override,message,details}=exports.details(errors);if(override)return override;if(prefs.errors.stack)return new exports.ValidationError(message,details,original);let limit=Error.stackTraceLimit;Error.stackTraceLimit=0;let validationError=new exports.ValidationError(message,details,original);return Error.stackTraceLimit=limit,validationError},exports.details=function(errors,options={}){let messages$3=[],details=[];for(let item of errors){if(item instanceof Error){if(options.override!==!1)return{override:item};let message$1=item.toString();messages$3.push(message$1),details.push({message:message$1,type:`override`,context:{error:item}});continue}let message=item.toString();messages$3.push(message),details.push({message,path:item.path.filter(v=>typeof v!=`object`),type:item.code,context:item.local})}return messages$3.length>1&&(messages$3=[...new Set(messages$3)]),{message:messages$3.join(`. `),details}},exports.ValidationError=class extends Error{constructor(message,details,original){super(message),this._original=original,this.details=details}static isError(err$1){return err$1 instanceof exports.ValidationError}},exports.ValidationError.prototype.isJoi=!0,exports.ValidationError.prototype.name=`ValidationError`,exports.ValidationError.prototype.annotate=Annotate.error}),require_messages=__commonJSMin(exports=>{let{assert:assert$24,clone:clone$11}=require_lib$4(),Template$6=require_template();exports.compile=function(messages$3,target){if(typeof messages$3==`string`)return assert$24(!target,`Cannot set single message string`),new Template$6(messages$3);if(Template$6.isTemplate(messages$3))return assert$24(!target,`Cannot set single message template`),messages$3;for(let code$2 in assert$24(typeof messages$3==`object`&&!Array.isArray(messages$3),`Invalid message options`),target=target?clone$11(target):{},messages$3){let message=messages$3[code$2];if(code$2===`root`||Template$6.isTemplate(message)){target[code$2]=message;continue}if(typeof message==`string`){target[code$2]=new Template$6(message);continue}assert$24(typeof message==`object`&&!Array.isArray(message),`Invalid message for`,code$2);let language=code$2;for(code$2 in target[language]=target[language]||{},message){let localized=message[code$2];if(code$2===`root`||Template$6.isTemplate(localized)){target[language][code$2]=localized;continue}assert$24(typeof localized==`string`,`Invalid message for`,code$2,`in`,language),target[language][code$2]=new Template$6(localized)}}return target},exports.decompile=function(messages$3){let target={};for(let code$2 in messages$3){let message=messages$3[code$2];if(code$2===`root`){target.root=message;continue}if(Template$6.isTemplate(message)){target[code$2]=message.describe({compact:!0});continue}let language=code$2;for(code$2 in target[language]={},message){let localized=message[code$2];if(code$2===`root`){target[language].root=localized;continue}target[language][code$2]=localized.describe({compact:!0})}}return target},exports.merge=function(base,extended){if(!base)return exports.compile(extended);if(!extended)return base;if(typeof extended==`string`)return new Template$6(extended);if(Template$6.isTemplate(extended))return extended;let target=clone$11(base);for(let code$2 in extended){let message=extended[code$2];if(code$2===`root`||Template$6.isTemplate(message)){target[code$2]=message;continue}if(typeof message==`string`){target[code$2]=new Template$6(message);continue}assert$24(typeof message==`object`&&!Array.isArray(message),`Invalid message for`,code$2);let language=code$2;for(code$2 in target[language]=target[language]||{},message){let localized=message[code$2];if(code$2===`root`||Template$6.isTemplate(localized)){target[language][code$2]=localized;continue}assert$24(typeof localized==`string`,`Invalid message for`,code$2,`in`,language),target[language][code$2]=new Template$6(localized)}}return target}}),require_extend=__commonJSMin(exports=>{let{assert:assert$23,clone:clone$10}=require_lib$4(),Common$19=require_common(),Messages$5=require_messages(),internals$21={};exports.type=function(from,options){let base=Object.getPrototypeOf(from),prototype=clone$10(base),schema=from._assign(Object.create(prototype)),def=Object.assign({},options);delete def.base,prototype._definition=def;let parent=base._definition||{};def.messages=Messages$5.merge(parent.messages,def.messages),def.properties=Object.assign({},parent.properties,def.properties),schema.type=def.type,def.flags=Object.assign({},parent.flags,def.flags);let terms=Object.assign({},parent.terms);if(def.terms)for(let name$1 in def.terms){let term=def.terms[name$1];assert$23(schema.$_terms[name$1]===void 0,`Invalid term override for`,def.type,name$1),schema.$_terms[name$1]=term.init,terms[name$1]=term}def.terms=terms,def.args||=parent.args,def.prepare=internals$21.prepare(def.prepare,parent.prepare),def.coerce&&(typeof def.coerce==`function`&&(def.coerce={method:def.coerce}),def.coerce.from&&!Array.isArray(def.coerce.from)&&(def.coerce={method:def.coerce.method,from:[].concat(def.coerce.from)})),def.coerce=internals$21.coerce(def.coerce,parent.coerce),def.validate=internals$21.validate(def.validate,parent.validate);let rules=Object.assign({},parent.rules);if(def.rules)for(let name$1 in def.rules){let rule=def.rules[name$1];assert$23(typeof rule==`object`,`Invalid rule definition for`,def.type,name$1);let method=rule.method;if(method===void 0&&(method=function(){return this.$_addRule(name$1)}),method&&(assert$23(!prototype[name$1],`Rule conflict in`,def.type,name$1),prototype[name$1]=method),assert$23(!rules[name$1],`Rule conflict in`,def.type,name$1),rules[name$1]=rule,rule.alias){let aliases=[].concat(rule.alias);for(let alias of aliases)prototype[alias]=rule.method}rule.args&&(rule.argsByName=new Map,rule.args=rule.args.map(arg=>(typeof arg==`string`&&(arg={name:arg}),assert$23(!rule.argsByName.has(arg.name),`Duplicated argument name`,arg.name),Common$19.isSchema(arg.assert)&&(arg.assert=arg.assert.strict().label(arg.name)),rule.argsByName.set(arg.name,arg),arg)))}def.rules=rules;let modifiers=Object.assign({},parent.modifiers);if(def.modifiers)for(let name$1 in def.modifiers){assert$23(!prototype[name$1],`Rule conflict in`,def.type,name$1);let modifier=def.modifiers[name$1];assert$23(typeof modifier==`function`,`Invalid modifier definition for`,def.type,name$1);let method=function(arg){return this.rule({[name$1]:arg})};prototype[name$1]=method,modifiers[name$1]=modifier}if(def.modifiers=modifiers,def.overrides){for(let override in prototype._super=base,schema.$_super={},def.overrides)assert$23(base[override],`Cannot override missing`,override),def.overrides[override][Common$19.symbols.parent]=base[override],schema.$_super[override]=base[override].bind(schema);Object.assign(prototype,def.overrides)}def.cast=Object.assign({},parent.cast,def.cast);let manifest=Object.assign({},parent.manifest,def.manifest);return manifest.build=internals$21.build(def.manifest&&def.manifest.build,parent.manifest&&parent.manifest.build),def.manifest=manifest,def.rebuild=internals$21.rebuild(def.rebuild,parent.rebuild),schema},internals$21.build=function(child,parent){return!child||!parent?child||parent:function(obj,desc$1){return parent(child(obj,desc$1),desc$1)}},internals$21.coerce=function(child,parent){return!child||!parent?child||parent:{from:child.from&&parent.from?[...new Set([...child.from,...parent.from])]:null,method(value,helpers){let coerced;if((!parent.from||parent.from.includes(typeof value))&&(coerced=parent.method(value,helpers),coerced)){if(coerced.errors||coerced.value===void 0)return coerced;value=coerced.value}if(!child.from||child.from.includes(typeof value)){let own=child.method(value,helpers);if(own)return own}return coerced}}},internals$21.prepare=function(child,parent){return!child||!parent?child||parent:function(value,helpers){let prepared=child(value,helpers);if(prepared){if(prepared.errors||prepared.value===void 0)return prepared;value=prepared.value}return parent(value,helpers)||prepared}},internals$21.rebuild=function(child,parent){return!child||!parent?child||parent:function(schema){parent(schema),child(schema)}},internals$21.validate=function(child,parent){return!child||!parent?child||parent:function(value,helpers){let result=parent(value,helpers);if(result){if(result.errors&&(!Array.isArray(result.errors)||result.errors.length))return result;value=result.value}return child(value,helpers)||result}}}),require_manifest=__commonJSMin(exports=>{init_dist$1();let{assert:assert$22,clone:clone$9}=require_lib$4(),Common$18=require_common(),Messages$4=require_messages(),Ref$6=require_ref(),Template$5=require_template(),Schemas$3,internals$20={};exports.describe=function(schema){let def=schema._definition,desc$1={type:schema.type,flags:{},rules:[]};for(let flag in schema._flags)flag[0]!==`_`&&(desc$1.flags[flag]=internals$20.describe(schema._flags[flag]));Object.keys(desc$1.flags).length||delete desc$1.flags,schema._preferences&&(desc$1.preferences=clone$9(schema._preferences,{shallow:[`messages`]}),delete desc$1.preferences[Common$18.symbols.prefs],desc$1.preferences.messages&&(desc$1.preferences.messages=Messages$4.decompile(desc$1.preferences.messages))),schema._valids&&(desc$1.allow=schema._valids.describe()),schema._invalids&&(desc$1.invalid=schema._invalids.describe());for(let rule of schema._rules){let ruleDef=def.rules[rule.name];if(ruleDef.manifest===!1)continue;let item={name:rule.name};for(let custom in def.modifiers)rule[custom]!==void 0&&(item[custom]=internals$20.describe(rule[custom]));if(rule.args){for(let key in item.args={},rule.args){let arg=rule.args[key];if(key===`options`&&!Object.keys(arg).length)continue;item.args[key]=internals$20.describe(arg,{assign:key})}Object.keys(item.args).length||delete item.args}desc$1.rules.push(item)}for(let term in desc$1.rules.length||delete desc$1.rules,schema.$_terms){if(term[0]===`_`)continue;assert$22(!desc$1[term],`Cannot describe schema due to internal name conflict with`,term);let items=schema.$_terms[term];if(!items)continue;if(items instanceof Map){items.size&&(desc$1[term]=[...items.entries()]);continue}if(Common$18.isValues(items)){desc$1[term]=items.describe();continue}assert$22(def.terms[term],`Term`,term,`missing configuration`);let manifest=def.terms[term].manifest,mapped=typeof manifest==`object`;if(!items.length&&!mapped)continue;let normalized=[];for(let item of items)normalized.push(internals$20.describe(item));if(mapped){let{from,to}=manifest.mapped;desc$1[term]={};for(let item of normalized)desc$1[term][item[to]]=item[from];continue}if(manifest===`single`){assert$22(normalized.length===1,`Term`,term,`contains more than one item`),desc$1[term]=normalized[0];continue}desc$1[term]=normalized}return internals$20.validate(schema.$_root,desc$1),desc$1},internals$20.describe=function(item,options={}){if(Array.isArray(item))return item.map(internals$20.describe);if(item===Common$18.symbols.deepDefault)return{special:`deep`};if(typeof item!=`object`||!item)return item;if(options.assign===`options`)return clone$9(item);if(Buffer$1&&Buffer$1.isBuffer(item))return{buffer:item.toString(`binary`)};if(item instanceof Date)return item.toISOString();if(item instanceof Error)return item;if(item instanceof RegExp)return options.assign===`regex`?item.toString():{regex:item.toString()};if(item[Common$18.symbols.literal])return{function:item.literal};if(typeof item.describe==`function`)return options.assign===`ref`?item.describe().ref:item.describe();let normalized={};for(let key in item){let value=item[key];if(value===void 0)continue;normalized[key]=internals$20.describe(value,{assign:key})}return normalized},exports.build=function(joi,desc$1){let builder=new internals$20.Builder(joi);return builder.parse(desc$1)},internals$20.Builder=class{constructor(joi){this.joi=joi}parse(desc$1){internals$20.validate(this.joi,desc$1);let schema=this.joi[desc$1.type]()._bare(),def=schema._definition;if(desc$1.flags)for(let flag in desc$1.flags){let setter=def.flags[flag]&&def.flags[flag].setter||flag;assert$22(typeof schema[setter]==`function`,`Invalid flag`,flag,`for type`,desc$1.type),schema=schema[setter](this.build(desc$1.flags[flag]))}if(desc$1.preferences&&(schema=schema.preferences(this.build(desc$1.preferences))),desc$1.allow&&(schema=schema.allow(...this.build(desc$1.allow))),desc$1.invalid&&(schema=schema.invalid(...this.build(desc$1.invalid))),desc$1.rules)for(let rule of desc$1.rules){assert$22(typeof schema[rule.name]==`function`,`Invalid rule`,rule.name,`for type`,desc$1.type);let args$1=[];if(rule.args){let built={};for(let key in rule.args)built[key]=this.build(rule.args[key],{assign:key});let keys=Object.keys(built),definition=def.rules[rule.name].args;if(definition){assert$22(keys.length<=definition.length,`Invalid number of arguments for`,desc$1.type,rule.name,`(expected up to`,definition.length,`, found`,keys.length,`)`);for(let{name:name$1}of definition)args$1.push(built[name$1])}else assert$22(keys.length===1,`Invalid number of arguments for`,desc$1.type,rule.name,`(expected up to 1, found`,keys.length,`)`),args$1.push(built[keys[0]])}schema=schema[rule.name](...args$1);let options={};for(let custom in def.modifiers)rule[custom]!==void 0&&(options[custom]=this.build(rule[custom]));Object.keys(options).length&&(schema=schema.rule(options))}let terms={};for(let key in desc$1){if([`allow`,`flags`,`invalid`,`whens`,`preferences`,`rules`,`type`].includes(key))continue;assert$22(def.terms[key],`Term`,key,`missing configuration`);let manifest=def.terms[key].manifest;if(manifest===`schema`){terms[key]=desc$1[key].map(item=>this.parse(item));continue}if(manifest===`values`){terms[key]=desc$1[key].map(item=>this.build(item));continue}if(manifest===`single`){terms[key]=this.build(desc$1[key]);continue}if(typeof manifest==`object`){for(let name$1 in terms[key]={},desc$1[key]){let value=desc$1[key][name$1];terms[key][name$1]=this.parse(value)}continue}terms[key]=this.build(desc$1[key])}return desc$1.whens&&(terms.whens=desc$1.whens.map(when=>this.build(when))),schema=def.manifest.build(schema,terms),schema.$_temp.ruleset=!1,schema}build(desc$1,options={}){if(desc$1===null)return null;if(Array.isArray(desc$1))return desc$1.map(item=>this.build(item));if(desc$1 instanceof Error)return desc$1;if(options.assign===`options`)return clone$9(desc$1);if(options.assign===`regex`)return internals$20.regex(desc$1);if(options.assign===`ref`)return Ref$6.build(desc$1);if(typeof desc$1!=`object`)return desc$1;if(Object.keys(desc$1).length===1){if(desc$1.buffer)return assert$22(Buffer$1,`Buffers are not supported`),Buffer$1&&Buffer$1.from(desc$1.buffer,`binary`);if(desc$1.function)return{[Common$18.symbols.literal]:!0,literal:desc$1.function};if(desc$1.override)return Common$18.symbols.override;if(desc$1.ref)return Ref$6.build(desc$1.ref);if(desc$1.regex)return internals$20.regex(desc$1.regex);if(desc$1.special)return assert$22([`deep`].includes(desc$1.special),`Unknown special value`,desc$1.special),Common$18.symbols.deepDefault;if(desc$1.value)return clone$9(desc$1.value)}if(desc$1.type)return this.parse(desc$1);if(desc$1.template)return Template$5.build(desc$1);let normalized={};for(let key in desc$1)normalized[key]=this.build(desc$1[key],{assign:key});return normalized}},internals$20.regex=function(string){let end=string.lastIndexOf(`/`),exp=string.slice(1,end),flags=string.slice(end+1);return new RegExp(exp,flags)},internals$20.validate=function(joi,desc$1){Schemas$3||=require_schemas(),joi.assert(desc$1,Schemas$3.description)}}),require_lib$2=__commonJSMin(exports=>{exports.location=function(depth=0){let orig=Error.prepareStackTrace;Error.prepareStackTrace=(ignore$2,stack)=>stack;let capture={};Error.captureStackTrace(capture,this);let line=capture.stack[depth+1];return Error.prepareStackTrace=orig,{filename:line.getFileName(),line:line.getLineNumber()}}}),require_trace=__commonJSMin(exports=>{let{deepEqual:deepEqual$3}=require_lib$4(),Pinpoint=require_lib$2(),Errors$7=require_errors(),internals$19={codes:{error:1,pass:2,full:3},labels:{0:`never used`,1:`always error`,2:`always pass`}};exports.setup=function(root){let trace=function(){return root._tracer=root._tracer||new internals$19.Tracer,root._tracer};root.trace=trace,root[Symbol.for(`@hapi/lab/coverage/initialize`)]=trace,root.untrace=()=>{root._tracer=null}},exports.location=function(schema){return schema.$_setFlag(`_tracerLocation`,Pinpoint.location(2))},internals$19.Tracer=class{constructor(){this.name=`Joi`,this._schemas=new Map}_register(schema){let existing=this._schemas.get(schema);if(existing)return existing.store;let store=new internals$19.Store(schema),{filename,line}=schema._flags._tracerLocation||Pinpoint.location(5);return this._schemas.set(schema,{filename,line,store}),store}_combine(merged,sources){for(let{store}of this._schemas.values())store._combine(merged,sources)}report(file){let coverage=[];for(let{filename,line,store}of this._schemas.values()){if(file&&file!==filename)continue;let missing=[],skipped=[];for(let[schema,log]of store._sources.entries()){if(internals$19.sub(log.paths,skipped))continue;if(!log.entry){missing.push({status:`never reached`,paths:[...log.paths]}),skipped.push(...log.paths);continue}for(let type of[`valid`,`invalid`]){let set=schema[`_${type}s`];if(!set)continue;let values=new Set(set._values),refs=new Set(set._refs);for(let{value,ref}of log[type])values.delete(value),refs.delete(ref);(values.size||refs.size)&&missing.push({status:[...values,...[...refs].map(ref=>ref.display)],rule:`${type}s`})}let rules=schema._rules.map(rule=>rule.name);for(let type of[`default`,`failover`])schema._flags[type]!==void 0&&rules.push(type);for(let name$1 of rules){let status=internals$19.labels[log.rule[name$1]||0];if(status){let report={rule:name$1,status};log.paths.size&&(report.paths=[...log.paths]),missing.push(report)}}}missing.length&&coverage.push({filename,line,missing,severity:`error`,message:`Schema missing tests for ${missing.map(internals$19.message).join(`, `)}`})}return coverage.length?coverage:null}},internals$19.Store=class{constructor(schema){this.active=!0,this._sources=new Map,this._combos=new Map,this._scan(schema)}debug(state,source,name$1,result){state.mainstay.debug&&state.mainstay.debug.push({type:source,name:name$1,result,path:state.path})}entry(schema,state){internals$19.debug(state,{type:`entry`}),this._record(schema,log=>{log.entry=!0})}filter(schema,state,source,value){internals$19.debug(state,{type:source,...value}),this._record(schema,log=>{log[source].add(value)})}log(schema,state,source,name$1,result){internals$19.debug(state,{type:source,name:name$1,result:result===`full`?`pass`:result}),this._record(schema,log=>{log[source][name$1]=log[source][name$1]||0,log[source][name$1]|=internals$19.codes[result]})}resolve(state,ref,to){if(!state.mainstay.debug)return;let log={type:`resolve`,ref:ref.display,to,path:state.path};state.mainstay.debug.push(log)}value(state,by,from,to,name$1){if(!state.mainstay.debug||deepEqual$3(from,to))return;let log={type:`value`,by,from,to,path:state.path};name$1&&(log.name=name$1),state.mainstay.debug.push(log)}_record(schema,each){let log=this._sources.get(schema);if(log){each(log);return}let sources=this._combos.get(schema);for(let source of sources)this._record(source,each)}_scan(schema,_path){let path=_path||[],log=this._sources.get(schema);log||(log={paths:new Set,entry:!1,rule:{},valid:new Set,invalid:new Set},this._sources.set(schema,log)),path.length&&log.paths.add(path);let each=(sub,source)=>{let subId=internals$19.id(sub,source);this._scan(sub,path.concat(subId))};schema.$_modify({each,ref:!1})}_combine(merged,sources){this._combos.set(merged,sources)}},internals$19.message=function(item){let path=item.paths?Errors$7.path(item.paths[0])+(item.rule?`:`:``):``;return`${path}${item.rule||``} (${item.status})`},internals$19.id=function(schema,{source,name:name$1,path,key}){return schema._flags.id?schema._flags.id:key||(name$1=`@${name$1}`,source===`terms`?[name$1,path[Math.min(path.length-1,1)]]:name$1)},internals$19.sub=function(paths,skipped){for(let path of paths)for(let skip of skipped)if(deepEqual$3(path.slice(0,skip.length),skip))return!0;return!1},internals$19.debug=function(state,event){state.mainstay.debug&&(event.path=state.debug?[...state.path,state.debug]:state.path,state.mainstay.debug.push(event))}}),require_modify=__commonJSMin(exports=>{let{assert:assert$21}=require_lib$4(),Common$17=require_common(),Ref$5=require_ref(),internals$18={};exports.Ids=internals$18.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){let clone$16=new internals$18.Ids;return clone$16._byId=new Map(this._byId),clone$16._byKey=new Map(this._byKey),clone$16._schemaChain=this._schemaChain,clone$16}concat(source){source._schemaChain&&(this._schemaChain=!0);for(let[id,value]of source._byId.entries())assert$21(!this._byKey.has(id),`Schema id conflicts with existing key:`,id),this._byId.set(id,value);for(let[key,value]of source._byKey.entries())assert$21(!this._byId.has(key),`Schema key conflicts with existing id:`,key),this._byKey.set(key,value)}fork(path,adjuster,root){let chain=this._collect(path);chain.push({schema:root});let tail=chain.shift(),adjusted={id:tail.id,schema:adjuster(tail.schema)};assert$21(Common$17.isSchema(adjusted.schema),`adjuster function failed to return a joi schema type`);for(let node of chain)adjusted={id:node.id,schema:internals$18.fork(node.schema,adjusted.id,adjusted.schema)};return adjusted.schema}labels(path,behind=[]){let current=path[0],node=this._get(current);if(!node)return[...behind,...path].join(`.`);let forward=path.slice(1);return behind=[...behind,node.schema._flags.label||current],forward.length?node.schema._ids.labels(forward,behind):behind.join(`.`)}reach(path,behind=[]){let current=path[0],node=this._get(current);assert$21(node,`Schema does not contain path`,[...behind,...path].join(`.`));let forward=path.slice(1);return forward.length?node.schema._ids.reach(forward,[...behind,current]):node.schema}register(schema,{key}={}){if(!schema||!Common$17.isSchema(schema))return;(schema.$_property(`schemaChain`)||schema._ids._schemaChain)&&(this._schemaChain=!0);let id=schema._flags.id;if(id){let existing=this._byId.get(id);assert$21(!existing||existing.schema===schema,`Cannot add different schemas with the same id:`,id),assert$21(!this._byKey.has(id),`Schema id conflicts with existing key:`,id),this._byId.set(id,{schema,id})}key&&(assert$21(!this._byKey.has(key),`Schema already contains key:`,key),assert$21(!this._byId.has(key),`Schema key conflicts with existing id:`,key),this._byKey.set(key,{schema,id:key}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(path,behind=[],nodes=[]){let current=path[0],node=this._get(current);assert$21(node,`Schema does not contain path`,[...behind,...path].join(`.`)),nodes=[node,...nodes];let forward=path.slice(1);return forward.length?node.schema._ids._collect(forward,[...behind,current],nodes):nodes}_get(id){return this._byId.get(id)||this._byKey.get(id)}},internals$18.fork=function(schema,id,replacement){let each=(item,{key})=>{if(id===(item._flags.id||key))return replacement},obj=exports.schema(schema,{each,ref:!1});return obj?obj.$_mutateRebuild():schema},exports.schema=function(schema,options){let obj;for(let name$1 in schema._flags){if(name$1[0]===`_`)continue;let result=internals$18.scan(schema._flags[name$1],{source:`flags`,name:name$1},options);result!==void 0&&(obj||=schema.clone(),obj._flags[name$1]=result)}for(let i$4=0;i$4<schema._rules.length;++i$4){let rule=schema._rules[i$4],result=internals$18.scan(rule.args,{source:`rules`,name:rule.name},options);if(result!==void 0){obj||=schema.clone();let clone$16=Object.assign({},rule);clone$16.args=result,obj._rules[i$4]=clone$16;let existingUnique=obj._singleRules.get(rule.name);existingUnique===rule&&obj._singleRules.set(rule.name,clone$16)}}for(let name$1 in schema.$_terms){if(name$1[0]===`_`)continue;let result=internals$18.scan(schema.$_terms[name$1],{source:`terms`,name:name$1},options);result!==void 0&&(obj||=schema.clone(),obj.$_terms[name$1]=result)}return obj},internals$18.scan=function(item,source,options,_path,_key){let path=_path||[];if(typeof item!=`object`||!item)return;let clone$16;if(Array.isArray(item)){for(let i$4=0;i$4<item.length;++i$4){let key=source.source===`terms`&&source.name===`keys`&&item[i$4].key,result=internals$18.scan(item[i$4],source,options,[i$4,...path],key);result!==void 0&&(clone$16||=item.slice(),clone$16[i$4]=result)}return clone$16}if(options.schema!==!1&&Common$17.isSchema(item)||options.ref!==!1&&Ref$5.isRef(item)){let result=options.each(item,{...source,path,key:_key});return result===item?void 0:result}for(let key in item){if(key[0]===`_`)continue;let result=internals$18.scan(item[key],source,options,[key,...path],_key);result!==void 0&&(clone$16||=Object.assign({},item),clone$16[key]=result)}return clone$16}}),require_state=__commonJSMin((exports,module)=>{let{clone:clone$8,reach:reach$3}=require_lib$4(),Common$16=require_common(),internals$17={value:Symbol(`value`)};module.exports=internals$17.State=class{constructor(path,ancestors,state){this.path=path,this.ancestors=ancestors,this.mainstay=state.mainstay,this.schemas=state.schemas,this.debug=null}localize(path,ancestors=null,schema=null){let state=new internals$17.State(path,ancestors,this);return schema&&state.schemas&&(state.schemas=[internals$17.schemas(schema),...state.schemas]),state}nest(schema,debug$5){let state=new internals$17.State(this.path,this.ancestors,this);return state.schemas=state.schemas&&[internals$17.schemas(schema),...state.schemas],state.debug=debug$5,state}shadow(value,reason){this.mainstay.shadow=this.mainstay.shadow||new internals$17.Shadow,this.mainstay.shadow.set(this.path,value,reason)}snapshot(){this.mainstay.shadow&&(this._snapshot=clone$8(this.mainstay.shadow.node(this.path))),this.mainstay.snapshot()}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.restore()}commit(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.commit()}},internals$17.schemas=function(schema){return Common$16.isSchema(schema)?{schema}:schema},internals$17.Shadow=class{constructor(){this._values=null}set(path,value,reason){if(!path.length||reason===`strip`&&typeof path[path.length-1]==`number`)return;this._values=this._values||new Map;let node=this._values;for(let i$4=0;i$4<path.length;++i$4){let segment=path[i$4],next=node.get(segment);next||(next=new Map,node.set(segment,next)),node=next}node[internals$17.value]=value}get(path){let node=this.node(path);if(node)return node[internals$17.value]}node(path){if(this._values)return reach$3(this._values,path,{iterables:!0})}override(path,node){if(!this._values)return;let parents=path.slice(0,-1),own=path[path.length-1],parent=reach$3(this._values,parents,{iterables:!0});if(node){parent.set(own,node);return}parent&&parent.delete(own)}}}),require_validator=__commonJSMin(exports=>{let{assert:assert$20,clone:clone$7,ignore,reach:reach$2}=require_lib$4(),Common$15=require_common(),Errors$6=require_errors(),State=require_state(),internals$16={result:Symbol(`result`)};exports.entry=function(value,schema,prefs){let settings=Common$15.defaults;prefs&&(assert$20(prefs.warnings===void 0,`Cannot override warnings preference in synchronous validation`),assert$20(prefs.artifacts===void 0,`Cannot override artifacts preference in synchronous validation`),settings=Common$15.preferences(Common$15.defaults,prefs));let result=internals$16.entry(value,schema,settings);assert$20(!result.mainstay.externals.length,`Schema with external rules must use validateAsync()`);let outcome={value:result.value};return result.error&&(outcome.error=result.error),result.mainstay.warnings.length&&(outcome.warning=Errors$6.details(result.mainstay.warnings)),result.mainstay.debug&&(outcome.debug=result.mainstay.debug),result.mainstay.artifacts&&(outcome.artifacts=result.mainstay.artifacts),outcome},exports.entryAsync=async function(value,schema,prefs){let settings=Common$15.defaults;prefs&&(settings=Common$15.preferences(Common$15.defaults,prefs));let result=internals$16.entry(value,schema,settings),mainstay=result.mainstay;if(result.error)throw mainstay.debug&&(result.error.debug=mainstay.debug),result.error;if(mainstay.externals.length){let root=result.value,errors=[];for(let external of mainstay.externals){let path=external.state.path,linked=external.schema.type===`link`?mainstay.links.get(external.schema):null,node=root,key,parent,ancestors=path.length?[root]:[],original=path.length?reach$2(value,path):value;if(path.length){key=path[path.length-1];let current=root;for(let segment of path.slice(0,-1))current=current[segment],ancestors.unshift(current);parent=ancestors[0],node=parent[key]}try{let createError=(code$2,local)=>(linked||external.schema).$_createError(code$2,node,local,external.state,settings),output=await external.method(node,{schema:external.schema,linked,state:external.state,prefs,original,error:createError,errorsArray:internals$16.errorsArray,warn:(code$2,local)=>mainstay.warnings.push((linked||external.schema).$_createError(code$2,node,local,external.state,settings)),message:(messages$3,local)=>(linked||external.schema).$_createError(`external`,node,local,external.state,settings,{messages:messages$3})});if(output===void 0||output===node)continue;if(output instanceof Errors$6.Report){if(mainstay.tracer.log(external.schema,external.state,`rule`,`external`,`error`),errors.push(output),settings.abortEarly)break;continue}if(Array.isArray(output)&&output[Common$15.symbols.errors]){if(mainstay.tracer.log(external.schema,external.state,`rule`,`external`,`error`),errors.push(...output),settings.abortEarly)break;continue}parent?(mainstay.tracer.value(external.state,`rule`,node,output,`external`),parent[key]=output):(mainstay.tracer.value(external.state,`rule`,root,output,`external`),root=output)}catch(err$1){throw settings.errors.label&&(err$1.message+=` (${external.label})`),err$1}}if(result.value=root,errors.length)throw result.error=Errors$6.process(errors,value,settings),mainstay.debug&&(result.error.debug=mainstay.debug),result.error}if(!settings.warnings&&!settings.debug&&!settings.artifacts)return result.value;let outcome={value:result.value};return mainstay.warnings.length&&(outcome.warning=Errors$6.details(mainstay.warnings)),mainstay.debug&&(outcome.debug=mainstay.debug),mainstay.artifacts&&(outcome.artifacts=mainstay.artifacts),outcome},exports.standard=function(value,schema){return schema.isAsync()?exports.entryAsync(value,schema):exports.entry(value,schema)},internals$16.Mainstay=class{constructor(tracer,debug$5,links){this.externals=[],this.warnings=[],this.tracer=tracer,this.debug=debug$5,this.links=links,this.shadow=null,this.artifacts=null,this._snapshots=[]}snapshot(){this._snapshots.push({externals:this.externals.slice(),warnings:this.warnings.slice()})}restore(){let snapshot=this._snapshots.pop();this.externals=snapshot.externals,this.warnings=snapshot.warnings}commit(){this._snapshots.pop()}},internals$16.entry=function(value,schema,prefs){let{tracer,cleanup}=internals$16.tracer(schema,prefs),debug$5=prefs.debug?[]:null,links=schema._ids._schemaChain?new Map:null,mainstay=new internals$16.Mainstay(tracer,debug$5,links),schemas=schema._ids._schemaChain?[{schema}]:null,state=new State([],[],{mainstay,schemas}),result=exports.validate(value,schema,state,prefs);cleanup&&schema.$_root.untrace();let error=Errors$6.process(result.errors,value,prefs);return{value:result.value,error,mainstay}},internals$16.tracer=function(schema,prefs){return schema.$_root._tracer?{tracer:schema.$_root._tracer._register(schema)}:prefs.debug?(assert$20(schema.$_root.trace,`Debug mode not supported`),{tracer:schema.$_root.trace()._register(schema),cleanup:!0}):{tracer:internals$16.ignore}},exports.validate=function(value,schema,state,prefs,overrides={}){if(schema.$_terms.whens&&(schema=schema._generate(value,state,prefs).schema),schema._preferences&&(prefs=internals$16.prefs(schema,prefs)),schema._cache&&prefs.cache){let result=schema._cache.get(value);if(state.mainstay.tracer.debug(state,`validate`,`cached`,!!result),result)return result}let createError=(code$2,local,localState)=>schema.$_createError(code$2,value,local,localState||state,prefs),helpers={original:value,prefs,schema,state,error:createError,errorsArray:internals$16.errorsArray,warn:(code$2,local,localState)=>state.mainstay.warnings.push(createError(code$2,local,localState)),message:(messages$3,local)=>schema.$_createError(`custom`,value,local,state,prefs,{messages:messages$3})};state.mainstay.tracer.entry(schema,state);let def=schema._definition;if(def.prepare&&value!==void 0&&prefs.convert){let prepared=def.prepare(value,helpers);if(prepared){if(state.mainstay.tracer.value(state,`prepare`,value,prepared.value),prepared.errors)return internals$16.finalize(prepared.value,[].concat(prepared.errors),helpers);value=prepared.value}}if(def.coerce&&value!==void 0&&prefs.convert&&(!def.coerce.from||def.coerce.from.includes(typeof value))){let coerced=def.coerce.method(value,helpers);if(coerced){if(state.mainstay.tracer.value(state,`coerced`,value,coerced.value),coerced.errors)return internals$16.finalize(coerced.value,[].concat(coerced.errors),helpers);value=coerced.value}}let empty=schema._flags.empty;empty&&empty.$_match(internals$16.trim(value,schema),state.nest(empty),Common$15.defaults)&&(state.mainstay.tracer.value(state,`empty`,value,void 0),value=void 0);let presence=overrides.presence||schema._flags.presence||(schema._flags._endedSwitch?null:prefs.presence);if(value===void 0){if(presence===`forbidden`)return internals$16.finalize(value,null,helpers);if(presence===`required`)return internals$16.finalize(value,[schema.$_createError(`any.required`,value,null,state,prefs)],helpers);if(presence===`optional`){if(schema._flags.default!==Common$15.symbols.deepDefault)return internals$16.finalize(value,null,helpers);state.mainstay.tracer.value(state,`default`,value,{}),value={}}}else if(presence===`forbidden`)return internals$16.finalize(value,[schema.$_createError(`any.unknown`,value,null,state,prefs)],helpers);let errors=[];if(schema._valids){let match$2=schema._valids.get(value,state,prefs,schema._flags.insensitive);if(match$2)return prefs.convert&&(state.mainstay.tracer.value(state,`valids`,value,match$2.value),value=match$2.value),state.mainstay.tracer.filter(schema,state,`valid`,match$2),internals$16.finalize(value,null,helpers);if(schema._flags.only){let report=schema.$_createError(`any.only`,value,{valids:schema._valids.values({display:!0})},state,prefs);if(prefs.abortEarly)return internals$16.finalize(value,[report],helpers);errors.push(report)}}if(schema._invalids){let match$2=schema._invalids.get(value,state,prefs,schema._flags.insensitive);if(match$2){state.mainstay.tracer.filter(schema,state,`invalid`,match$2);let report=schema.$_createError(`any.invalid`,value,{invalids:schema._invalids.values({display:!0})},state,prefs);if(prefs.abortEarly)return internals$16.finalize(value,[report],helpers);errors.push(report)}}if(def.validate){let base=def.validate(value,helpers);if(base&&(state.mainstay.tracer.value(state,`base`,value,base.value),value=base.value,base.errors)){if(!Array.isArray(base.errors))return errors.push(base.errors),internals$16.finalize(value,errors,helpers);if(base.errors.length)return errors.push(...base.errors),internals$16.finalize(value,errors,helpers)}}return schema._rules.length?internals$16.rules(value,errors,helpers):internals$16.finalize(value,errors,helpers)},internals$16.rules=function(value,errors,helpers){let{schema,state,prefs}=helpers;for(let rule of schema._rules){let definition=schema._definition.rules[rule.method];if(definition.convert&&prefs.convert){state.mainstay.tracer.log(schema,state,`rule`,rule.name,`full`);continue}let ret,args$1=rule.args;if(rule._resolve.length){args$1=Object.assign({},args$1);for(let key of rule._resolve){let resolver=definition.argsByName.get(key),resolved=args$1[key].resolve(value,state,prefs),normalized=resolver.normalize?resolver.normalize(resolved):resolved,invalid$1=Common$15.validateArg(normalized,null,resolver);if(invalid$1){ret=schema.$_createError(`any.ref`,resolved,{arg:key,ref:args$1[key],reason:invalid$1},state,prefs);break}args$1[key]=normalized}}ret||=definition.validate(value,helpers,args$1,rule);let result=internals$16.rule(ret,rule);if(result.errors){if(state.mainstay.tracer.log(schema,state,`rule`,rule.name,`error`),rule.warn){state.mainstay.warnings.push(...result.errors);continue}if(prefs.abortEarly)return internals$16.finalize(value,result.errors,helpers);errors.push(...result.errors)}else state.mainstay.tracer.log(schema,state,`rule`,rule.name,`pass`),state.mainstay.tracer.value(state,`rule`,value,result.value,rule.name),value=result.value}return internals$16.finalize(value,errors,helpers)},internals$16.rule=function(ret,rule){return ret instanceof Errors$6.Report?(internals$16.error(ret,rule),{errors:[ret],value:null}):Array.isArray(ret)&&ret[Common$15.symbols.errors]?(ret.forEach(report=>internals$16.error(report,rule)),{errors:ret,value:null}):{errors:null,value:ret}},internals$16.error=function(report,rule){return rule.message&&report._setTemplate(rule.message),report},internals$16.finalize=function(value,errors,helpers){errors||=[];let{schema,state,prefs}=helpers;if(errors.length){let failover=internals$16.default(`failover`,void 0,errors,helpers);failover!==void 0&&(state.mainstay.tracer.value(state,`failover`,value,failover),value=failover,errors=[])}if(errors.length&&schema._flags.error)if(typeof schema._flags.error==`function`){errors=schema._flags.error(errors),Array.isArray(errors)||(errors=[errors]);for(let error of errors)assert$20(error instanceof Error||error instanceof Errors$6.Report,`error() must return an Error object`)}else errors=[schema._flags.error];if(value===void 0){let defaulted=internals$16.default(`default`,value,errors,helpers);state.mainstay.tracer.value(state,`default`,value,defaulted),value=defaulted}if(schema._flags.cast&&value!==void 0){let caster=schema._definition.cast[schema._flags.cast];if(caster.from(value)){let casted=caster.to(value,helpers);state.mainstay.tracer.value(state,`cast`,value,casted,schema._flags.cast),value=casted}}if(schema.$_terms.externals&&prefs.externals&&prefs._externals!==!1)for(let{method}of schema.$_terms.externals)state.mainstay.externals.push({method,schema,state,label:Errors$6.label(schema._flags,state,prefs)});let result={value,errors:errors.length?errors:null};return schema._flags.result&&(result.value=schema._flags.result===`strip`?void 0:helpers.original,state.mainstay.tracer.value(state,schema._flags.result,value,result.value),state.shadow(value,schema._flags.result)),schema._cache&&prefs.cache!==!1&&!schema._refs.length&&schema._cache.set(helpers.original,result),value!==void 0&&!result.errors&&schema._flags.artifact!==void 0&&(state.mainstay.artifacts=state.mainstay.artifacts||new Map,state.mainstay.artifacts.has(schema._flags.artifact)||state.mainstay.artifacts.set(schema._flags.artifact,[]),state.mainstay.artifacts.get(schema._flags.artifact).push(state.path)),result},internals$16.prefs=function(schema,prefs){let isDefaultOptions=prefs===Common$15.defaults;return isDefaultOptions&&schema._preferences[Common$15.symbols.prefs]?schema._preferences[Common$15.symbols.prefs]:(prefs=Common$15.preferences(prefs,schema._preferences),isDefaultOptions&&(schema._preferences[Common$15.symbols.prefs]=prefs),prefs)},internals$16.default=function(flag,value,errors,helpers){let{schema,state,prefs}=helpers,source=schema._flags[flag];if(prefs.noDefaults||source===void 0)return value;if(state.mainstay.tracer.log(schema,state,`rule`,flag,`full`),!source)return source;if(typeof source==`function`){let args$1=source.length?[clone$7(state.ancestors[0]),helpers]:[];try{return source(...args$1)}catch(err$1){errors.push(schema.$_createError(`any.${flag}`,null,{error:err$1},state,prefs));return}}return typeof source==`object`?source[Common$15.symbols.literal]?source.literal:Common$15.isResolvable(source)?source.resolve(value,state,prefs):clone$7(source):source},internals$16.trim=function(value,schema){if(typeof value!=`string`)return value;let trim=schema.$_getRule(`trim`);return!trim||!trim.args.enabled?value:value.trim()},internals$16.ignore={active:!1,debug:ignore,entry:ignore,filter:ignore,log:ignore,resolve:ignore,value:ignore},internals$16.errorsArray=function(){let errors=[];return errors[Common$15.symbols.errors]=!0,errors}}),require_values=__commonJSMin((exports,module)=>{let{assert:assert$19,deepEqual:deepEqual$2}=require_lib$4(),Common$14=require_common(),internals$15={};module.exports=internals$15.Values=class{constructor(values,refs){this._values=new Set(values),this._refs=new Set(refs),this._lowercase=internals$15.lowercases(values),this._override=!1}get length(){return this._values.size+this._refs.size}add(value,refs){if(Common$14.isResolvable(value)){this._refs.has(value)||(this._refs.add(value),refs&&refs.register(value));return}this.has(value,null,null,!1)||(this._values.add(value),typeof value==`string`&&this._lowercase.set(value.toLowerCase(),value))}static merge(target,source,remove){if(target||=new internals$15.Values,source){if(source._override)return source.clone();for(let item of[...source._values,...source._refs])target.add(item)}if(remove)for(let item of[...remove._values,...remove._refs])target.remove(item);return target.length?target:null}remove(value){if(Common$14.isResolvable(value)){this._refs.delete(value);return}this._values.delete(value),typeof value==`string`&&this._lowercase.delete(value.toLowerCase())}has(value,state,prefs,insensitive){return!!this.get(value,state,prefs,insensitive)}get(value,state,prefs,insensitive){if(!this.length)return!1;if(this._values.has(value))return{value};if(typeof value==`string`&&value&&insensitive){let found=this._lowercase.get(value.toLowerCase());if(found)return{value:found}}if(!this._refs.size&&typeof value!=`object`)return!1;if(typeof value==`object`){for(let item of this._values)if(deepEqual$2(item,value))return{value:item}}if(state)for(let ref of this._refs){let resolved=ref.resolve(value,state,prefs,null,{in:!0});if(resolved===void 0)continue;let items=!ref.in||typeof resolved!=`object`?[resolved]:Array.isArray(resolved)?resolved:Object.keys(resolved);for(let item of items){if(typeof item!=typeof value)continue;if(insensitive&&value&&typeof value==`string`){if(item.toLowerCase()===value.toLowerCase())return{value:item,ref}}else if(deepEqual$2(item,value))return{value:item,ref}}}return!1}override(){this._override=!0}values(options){if(options&&options.display){let values=[];for(let item of[...this._values,...this._refs])item!==void 0&&values.push(item);return values}return Array.from([...this._values,...this._refs])}clone(){let set=new internals$15.Values(this._values,this._refs);return set._override=this._override,set}concat(source){assert$19(!source._override,`Cannot concat override set of values`);let set=new internals$15.Values([...this._values,...source._values],[...this._refs,...source._refs]);return set._override=this._override,set}describe(){let normalized=[];this._override&&normalized.push({override:!0});for(let value of this._values.values())normalized.push(value&&typeof value==`object`?{value}:value);for(let value of this._refs.values())normalized.push(value.describe());return normalized}},internals$15.Values.prototype[Common$14.symbols.values]=!0,internals$15.Values.prototype.slice=internals$15.Values.prototype.clone,internals$15.lowercases=function(from){let map=new Map;if(from)for(let value of from)typeof value==`string`&&map.set(value.toLowerCase(),value);return map}}),require_base=__commonJSMin((exports,module)=>{let{assert:assert$18,clone:clone$6,deepEqual:deepEqual$1,merge:merge$1}=require_lib$4(),Cache$2=require_cache(),Common$13=require_common(),Compile$6=require_compile(),Errors$5=require_errors(),Extend$2=require_extend(),Manifest$2=require_manifest(),Messages$3=require_messages(),Modify=require_modify(),Ref$4=require_ref(),Trace$2=require_trace(),Validator=require_validator(),Values$1=require_values(),internals$14={};internals$14.Base=class{constructor(type){this.type=type,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new Modify.Ids,this._preferences=null,this._refs=new Ref$4.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return assert$18(typeof Manifest$2.describe==`function`,`Manifest functionality disabled`),Manifest$2.describe(this)}allow(...values){return Common$13.verifyFlat(values,`allow`),this._values(values,`_valids`)}alter(targets){assert$18(targets&&typeof targets==`object`&&!Array.isArray(targets),`Invalid targets argument`),assert$18(!this._inRuleset(),`Cannot set alterations inside a ruleset`);let obj=this.clone();for(let target in obj.$_terms.alterations=obj.$_terms.alterations||[],targets){let adjuster=targets[target];assert$18(typeof adjuster==`function`,`Alteration adjuster for`,target,`must be a function`),obj.$_terms.alterations.push({target,adjuster})}return obj.$_temp.ruleset=!1,obj}artifact(id){return assert$18(id!==void 0,`Artifact cannot be undefined`),assert$18(!this._cache,`Cannot set an artifact with a rule cache`),this.$_setFlag(`artifact`,id)}cast(to){return assert$18(to===!1||typeof to==`string`,`Invalid to value`),assert$18(to===!1||this._definition.cast[to],`Type`,this.type,`does not support casting to`,to),this.$_setFlag(`cast`,to===!1?void 0:to)}default(value,options){return this._default(`default`,value,options)}description(desc$1){return assert$18(desc$1&&typeof desc$1==`string`,`Description must be a non-empty string`),this.$_setFlag(`description`,desc$1)}empty(schema){let obj=this.clone();return schema!==void 0&&(schema=obj.$_compile(schema,{override:!1})),obj.$_setFlag(`empty`,schema,{clone:!1})}error(err$1){return assert$18(err$1,`Missing error`),assert$18(err$1 instanceof Error||typeof err$1==`function`,`Must provide a valid Error object or a function`),this.$_setFlag(`error`,err$1)}example(example,options={}){return assert$18(example!==void 0,`Missing example`),Common$13.assertOptions(options,[`override`]),this._inner(`examples`,example,{single:!0,override:options.override})}external(method,description$1){return typeof method==`object`&&(assert$18(!description$1,`Cannot combine options with description`),description$1=method.description,method=method.method),assert$18(typeof method==`function`,`Method must be a function`),assert$18(description$1===void 0||description$1&&typeof description$1==`string`,`Description must be a non-empty string`),this._inner(`externals`,{method,description:description$1},{single:!0})}failover(value,options){return this._default(`failover`,value,options)}forbidden(){return this.presence(`forbidden`)}id(id){return id?(assert$18(typeof id==`string`,`id must be a non-empty string`),assert$18(/^[^\.]+$/.test(id),`id cannot contain period character`),this.$_setFlag(`id`,id)):this.$_setFlag(`id`,void 0)}invalid(...values){return this._values(values,`_invalids`)}label(name$1){return assert$18(name$1&&typeof name$1==`string`,`Label name must be a non-empty string`),this.$_setFlag(`label`,name$1)}meta(meta){return assert$18(meta!==void 0,`Meta cannot be undefined`),this._inner(`metas`,meta,{single:!0})}note(...notes){assert$18(notes.length,`Missing notes`);for(let note of notes)assert$18(note&&typeof note==`string`,`Notes must be non-empty strings`);return this._inner(`notes`,notes)}only(mode=!0){return assert$18(typeof mode==`boolean`,`Invalid mode:`,mode),this.$_setFlag(`only`,mode)}optional(){return this.presence(`optional`)}prefs(prefs){assert$18(prefs,`Missing preferences`),assert$18(prefs.context===void 0,`Cannot override context`),assert$18(prefs.externals===void 0,`Cannot override externals`),assert$18(prefs.warnings===void 0,`Cannot override warnings`),assert$18(prefs.debug===void 0,`Cannot override debug`),Common$13.checkPreferences(prefs);let obj=this.clone();return obj._preferences=Common$13.preferences(obj._preferences,prefs),obj}presence(mode){return assert$18([`optional`,`required`,`forbidden`].includes(mode),`Unknown presence mode`,mode),this.$_setFlag(`presence`,mode)}raw(enabled=!0){return this.$_setFlag(`result`,enabled?`raw`:void 0)}result(mode){return assert$18([`raw`,`strip`].includes(mode),`Unknown result mode`,mode),this.$_setFlag(`result`,mode)}required(){return this.presence(`required`)}strict(enabled){let obj=this.clone(),convert=enabled===void 0?!1:!enabled;return obj._preferences=Common$13.preferences(obj._preferences,{convert}),obj}strip(enabled=!0){return this.$_setFlag(`result`,enabled?`strip`:void 0)}tag(...tags){assert$18(tags.length,`Missing tags`);for(let tag of tags)assert$18(tag&&typeof tag==`string`,`Tags must be non-empty strings`);return this._inner(`tags`,tags)}unit(name$1){return assert$18(name$1&&typeof name$1==`string`,`Unit name must be a non-empty string`),this.$_setFlag(`unit`,name$1)}valid(...values){Common$13.verifyFlat(values,`valid`);let obj=this.allow(...values);return obj.$_setFlag(`only`,!!obj._valids,{clone:!1}),obj}when(condition,options){let obj=this.clone();obj.$_terms.whens||(obj.$_terms.whens=[]);let when=Compile$6.when(obj,condition,options);if(![`any`,`link`].includes(obj.type)){let conditions=when.is?[when]:when.switch;for(let item of conditions)assert$18(!item.then||item.then.type===`any`||item.then.type===obj.type,`Cannot combine`,obj.type,`with`,item.then&&item.then.type),assert$18(!item.otherwise||item.otherwise.type===`any`||item.otherwise.type===obj.type,`Cannot combine`,obj.type,`with`,item.otherwise&&item.otherwise.type)}return obj.$_terms.whens.push(when),obj.$_mutateRebuild()}cache(cache$2){assert$18(!this._inRuleset(),`Cannot set caching inside a ruleset`),assert$18(!this._cache,`Cannot override schema cache`),assert$18(this._flags.artifact===void 0,`Cannot cache a rule with an artifact`);let obj=this.clone();return obj._cache=cache$2||Cache$2.provider.provision(),obj.$_temp.ruleset=!1,obj}clone(){let obj=Object.create(Object.getPrototypeOf(this));return this._assign(obj)}concat(source){assert$18(Common$13.isSchema(source),`Invalid schema object`),assert$18(this.type===`any`||source.type===`any`||source.type===this.type,`Cannot merge type`,this.type,`with another type:`,source.type),assert$18(!this._inRuleset(),`Cannot concatenate onto a schema with open ruleset`),assert$18(!source._inRuleset(),`Cannot concatenate a schema with open ruleset`);let obj=this.clone();if(this.type===`any`&&source.type!==`any`){let tmpObj=source.clone();for(let key of Object.keys(obj))key!==`type`&&(tmpObj[key]=obj[key]);obj=tmpObj}obj._ids.concat(source._ids),obj._refs.register(source,Ref$4.toSibling),obj._preferences=obj._preferences?Common$13.preferences(obj._preferences,source._preferences):source._preferences,obj._valids=Values$1.merge(obj._valids,source._valids,source._invalids),obj._invalids=Values$1.merge(obj._invalids,source._invalids,source._valids);for(let name$1 of source._singleRules.keys())obj._singleRules.has(name$1)&&(obj._rules=obj._rules.filter(target=>target.keep||target.name!==name$1),obj._singleRules.delete(name$1));for(let test of source._rules)source._definition.rules[test.method].multi||obj._singleRules.set(test.name,test),obj._rules.push(test);if(obj._flags.empty&&source._flags.empty){obj._flags.empty=obj._flags.empty.concat(source._flags.empty);let flags=Object.assign({},source._flags);delete flags.empty,merge$1(obj._flags,flags)}else if(source._flags.empty){obj._flags.empty=source._flags.empty;let flags=Object.assign({},source._flags);delete flags.empty,merge$1(obj._flags,flags)}else merge$1(obj._flags,source._flags);for(let key in source.$_terms){let terms=source.$_terms[key];if(!terms){obj.$_terms[key]||(obj.$_terms[key]=terms);continue}if(!obj.$_terms[key]){obj.$_terms[key]=terms.slice();continue}obj.$_terms[key]=obj.$_terms[key].concat(terms)}return this.$_root._tracer&&this.$_root._tracer._combine(obj,[this,source]),obj.$_mutateRebuild()}extend(options){return assert$18(!options.base,`Cannot extend type with another base`),Extend$2.type(this,options)}extract(path){return path=Array.isArray(path)?path:path.split(`.`),this._ids.reach(path)}fork(paths,adjuster){assert$18(!this._inRuleset(),`Cannot fork inside a ruleset`);let obj=this;for(let path of[].concat(paths))path=Array.isArray(path)?path:path.split(`.`),obj=obj._ids.fork(path,adjuster,obj);return obj.$_temp.ruleset=!1,obj}isAsync(){if(this.$_terms.externals?.length)return!0;if(this.$_terms.whens)for(let when of this.$_terms.whens){if(when.then?.isAsync()||when.otherwise?.isAsync())return!0;if(when.switch){for(let item of when.switch)if(item.then?.isAsync()||item.otherwise?.isAsync())return!0}}return!1}rule(options){let def=this._definition;Common$13.assertOptions(options,Object.keys(def.modifiers)),assert$18(this.$_temp.ruleset!==!1,`Cannot apply rules to empty ruleset or the last rule added does not support rule properties`);let start=this.$_temp.ruleset===null?this._rules.length-1:this.$_temp.ruleset;assert$18(start>=0&&start<this._rules.length,`Cannot apply rules to empty ruleset`);let obj=this.clone();for(let i$4=start;i$4<obj._rules.length;++i$4){let original=obj._rules[i$4],rule=clone$6(original);for(let name$1 in options)def.modifiers[name$1](rule,options[name$1]),assert$18(rule.name===original.name,`Cannot change rule name`);obj._rules[i$4]=rule,obj._singleRules.get(rule.name)===original&&obj._singleRules.set(rule.name,rule)}return obj.$_temp.ruleset=!1,obj.$_mutateRebuild()}get ruleset(){assert$18(!this._inRuleset(),`Cannot start a new ruleset without closing the previous one`);let obj=this.clone();return obj.$_temp.ruleset=obj._rules.length,obj}get $(){return this.ruleset}tailor(targets){targets=[].concat(targets),assert$18(!this._inRuleset(),`Cannot tailor inside a ruleset`);let obj=this;if(this.$_terms.alterations)for(let{target,adjuster}of this.$_terms.alterations)targets.includes(target)&&(obj=adjuster(obj),assert$18(Common$13.isSchema(obj),`Alteration adjuster for`,target,`failed to return a schema object`));return obj=obj.$_modify({each:item=>item.tailor(targets),ref:!1}),obj.$_temp.ruleset=!1,obj.$_mutateRebuild()}tracer(){return Trace$2.location?Trace$2.location(this):this}validate(value,options){return Validator.entry(value,this,options)}validateAsync(value,options){return Validator.entryAsync(value,this,options)}$_addRule(options){for(let key in typeof options==`string`&&(options={name:options}),assert$18(options&&typeof options==`object`,`Invalid options`),assert$18(options.name&&typeof options.name==`string`,`Invalid rule name`),options)assert$18(key[0]!==`_`,`Cannot set private rule properties`);let rule=Object.assign({},options);rule._resolve=[],rule.method=rule.method||rule.name;let definition=this._definition.rules[rule.method],args$1=rule.args;assert$18(definition,`Unknown rule`,rule.method);let obj=this.clone();if(args$1)for(let key in assert$18(Object.keys(args$1).length===1||Object.keys(args$1).length===this._definition.rules[rule.name].args.length,`Invalid rule definition for`,this.type,rule.name),args$1){let arg=args$1[key];if(definition.argsByName){let resolver=definition.argsByName.get(key);if(resolver.ref&&Common$13.isResolvable(arg))rule._resolve.push(key),obj.$_mutateRegister(arg);else if(resolver.normalize&&(arg=resolver.normalize(arg),args$1[key]=arg),resolver.assert){let error=Common$13.validateArg(arg,key,resolver);assert$18(!error,error,`or reference`)}}if(arg===void 0){delete args$1[key];continue}args$1[key]=arg}return definition.multi||(obj._ruleRemove(rule.name,{clone:!1}),obj._singleRules.set(rule.name,rule)),obj.$_temp.ruleset===!1&&(obj.$_temp.ruleset=null),definition.priority?obj._rules.unshift(rule):obj._rules.push(rule),obj}$_compile(schema,options){return Compile$6.schema(this.$_root,schema,options)}$_createError(code$2,value,local,state,prefs,options={}){let flags=options.flags===!1?{}:this._flags,messages$3=options.messages?Messages$3.merge(this._definition.messages,options.messages):this._definition.messages;return new Errors$5.Report(code$2,value,local,flags,messages$3,state,prefs)}$_getFlag(name$1){return this._flags[name$1]}$_getRule(name$1){return this._singleRules.get(name$1)}$_mapLabels(path){return path=Array.isArray(path)?path:path.split(`.`),this._ids.labels(path)}$_match(value,state,prefs,overrides){prefs=Object.assign({},prefs),prefs.abortEarly=!0,prefs._externals=!1,state.snapshot();let result=!Validator.validate(value,this,state,prefs,overrides).errors;return state.restore(),result}$_modify(options){return Common$13.assertOptions(options,[`each`,`once`,`ref`,`schema`]),Modify.schema(this,options)||this}$_mutateRebuild(){assert$18(!this._inRuleset(),`Cannot add this rule inside a ruleset`),this._refs.reset(),this._ids.reset();let each=(item,{source,name:name$1,path,key})=>{let family=this._definition[source][name$1]&&this._definition[source][name$1].register;family!==!1&&this.$_mutateRegister(item,{family,key})};return this.$_modify({each}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(schema,{family,key}={}){this._refs.register(schema,family),this._ids.register(schema,{key})}$_property(name$1){return this._definition.properties[name$1]}$_reach(path){return this._ids.reach(path)}$_rootReferences(){return this._refs.roots()}$_setFlag(name$1,value,options={}){assert$18(name$1[0]===`_`||!this._inRuleset(),`Cannot set flag inside a ruleset`);let flag=this._definition.flags[name$1]||{};if(deepEqual$1(value,flag.default)&&(value=void 0),deepEqual$1(value,this._flags[name$1]))return this;let obj=options.clone===!1?this:this.clone();return value===void 0?delete obj._flags[name$1]:(obj._flags[name$1]=value,obj.$_mutateRegister(value)),name$1[0]!==`_`&&(obj.$_temp.ruleset=!1),obj}$_parent(method,...args$1){return this[method][Common$13.symbols.parent].call(this,...args$1)}$_validate(value,state,prefs){return Validator.validate(value,this,state,prefs)}_assign(target){for(let key in target.type=this.type,target.$_root=this.$_root,target.$_temp=Object.assign({},this.$_temp),target.$_temp.whens={},target._ids=this._ids.clone(),target._preferences=this._preferences,target._valids=this._valids&&this._valids.clone(),target._invalids=this._invalids&&this._invalids.clone(),target._rules=this._rules.slice(),target._singleRules=clone$6(this._singleRules,{shallow:!0}),target._refs=this._refs.clone(),target._flags=Object.assign({},this._flags),target._cache=null,target.$_terms={},this.$_terms)target.$_terms[key]=this.$_terms[key]?this.$_terms[key].slice():null;for(let override in target.$_super={},this.$_super)target.$_super[override]=this._super[override].bind(target);return target}_bare(){let obj=this.clone();obj._reset();let terms=obj._definition.terms;for(let name$1 in terms){let term=terms[name$1];obj.$_terms[name$1]=term.init}return obj.$_mutateRebuild()}_default(flag,value,options={}){Common$13.assertOptions(options,`literal`),assert$18(value!==void 0,`Missing`,flag,`value`),assert$18(typeof value==`function`||!options.literal,`Only function value supports literal option`),typeof value==`function`&&options.literal&&(value={[Common$13.symbols.literal]:!0,literal:value});let obj=this.$_setFlag(flag,value);return obj}_generate(value,state,prefs){if(!this.$_terms.whens)return{schema:this};let whens=[],ids=[];for(let i$4=0;i$4<this.$_terms.whens.length;++i$4){let when=this.$_terms.whens[i$4];if(when.concat){whens.push(when.concat),ids.push(`${i$4}.concat`);continue}let input=when.ref?when.ref.resolve(value,state,prefs):value,tests=when.is?[when]:when.switch,before=ids.length;for(let j$1=0;j$1<tests.length;++j$1){let{is,then,otherwise}=tests[j$1],baseId=`${i$4}${when.switch?`.`+j$1:``}`;if(is.$_match(input,state.nest(is,`${baseId}.is`),prefs)){if(then){let localState=state.localize([...state.path,`${baseId}.then`],state.ancestors,state.schemas),{schema:generated,id:id$1}=then._generate(value,localState,prefs);whens.push(generated),ids.push(`${baseId}.then${id$1?`(${id$1})`:``}`);break}}else if(otherwise){let localState=state.localize([...state.path,`${baseId}.otherwise`],state.ancestors,state.schemas),{schema:generated,id:id$1}=otherwise._generate(value,localState,prefs);whens.push(generated),ids.push(`${baseId}.otherwise${id$1?`(${id$1})`:``}`);break}}if(when.break&&ids.length>before)break}let id=ids.join(`, `);if(state.mainstay.tracer.debug(state,`rule`,`when`,id),!id)return{schema:this};if(!state.mainstay.tracer.active&&this.$_temp.whens[id])return{schema:this.$_temp.whens[id],id};let obj=this;this._definition.generate&&(obj=this._definition.generate(this,value,state,prefs));for(let when of whens)obj=obj.concat(when);return this.$_root._tracer&&this.$_root._tracer._combine(obj,[this,...whens]),this.$_temp.whens[id]=obj,{schema:obj,id}}_inner(type,values,options={}){assert$18(!this._inRuleset(),`Cannot set ${type} inside a ruleset`);let obj=this.clone();return(!obj.$_terms[type]||options.override)&&(obj.$_terms[type]=[]),options.single?obj.$_terms[type].push(values):obj.$_terms[type].push(...values),obj.$_temp.ruleset=!1,obj}_inRuleset(){return this.$_temp.ruleset!==null&&this.$_temp.ruleset!==!1}_ruleRemove(name$1,options={}){if(!this._singleRules.has(name$1))return this;let obj=options.clone===!1?this:this.clone();obj._singleRules.delete(name$1);let filtered=[];for(let i$4=0;i$4<obj._rules.length;++i$4){let test=obj._rules[i$4];if(test.name===name$1&&!test.keep){obj._inRuleset()&&i$4<obj.$_temp.ruleset&&--obj.$_temp.ruleset;continue}filtered.push(test)}return obj._rules=filtered,obj}_values(values,key){Common$13.verifyFlat(values,key.slice(1,-1));let obj=this.clone(),override=values[0]===Common$13.symbols.override;if(override&&(values=values.slice(1)),!obj[key]&&values.length?obj[key]=new Values$1:override&&(obj[key]=values.length?new Values$1:null,obj.$_mutateRebuild()),!obj[key])return obj;override&&obj[key].override();for(let value of values){assert$18(value!==void 0,`Cannot call allow/valid/invalid with undefined`),assert$18(value!==Common$13.symbols.override,`Override must be the first value`);let other=key===`_invalids`?`_valids`:`_invalids`;obj[other]&&(obj[other].remove(value),obj[other].length||(assert$18(key===`_valids`||!obj._flags.only,`Setting invalid value`,value,`leaves schema rejecting all values due to previous valid rule`),obj[other]=null)),obj[key].add(value,obj._refs)}return obj}get"~standard"(){let mapToStandardError=error=>{let issues;return issues=Errors$5.ValidationError.isError(error)?error.details.map(({message,path})=>({message,path})):[{message:error.message}],{issues}},mapToStandardValue=value=>({value});return{version:1,vendor:`joi`,validate:value=>{let result=Validator.standard(value,this);return result instanceof Promise?result.then(mapToStandardValue,mapToStandardError):result.error?mapToStandardError(result.error):mapToStandardValue(result.value)}}}},internals$14.Base.prototype[Common$13.symbols.any]={version:Common$13.version,compile:Compile$6.compile,root:`$_root`},internals$14.Base.prototype.isImmutable=!0,internals$14.Base.prototype.deny=internals$14.Base.prototype.invalid,internals$14.Base.prototype.disallow=internals$14.Base.prototype.invalid,internals$14.Base.prototype.equal=internals$14.Base.prototype.valid,internals$14.Base.prototype.exist=internals$14.Base.prototype.required,internals$14.Base.prototype.not=internals$14.Base.prototype.invalid,internals$14.Base.prototype.options=internals$14.Base.prototype.prefs,internals$14.Base.prototype.preferences=internals$14.Base.prototype.prefs,module.exports=new internals$14.Base}),require_any=__commonJSMin((exports,module)=>{let{assert:assert$17}=require_lib$4(),Base=require_base(),Common$12=require_common(),Messages$2=require_messages();module.exports=Base.extend({type:`any`,flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(method,description$1){return assert$17(typeof method==`function`,`Method must be a function`),assert$17(description$1===void 0||description$1&&typeof description$1==`string`,`Description must be a non-empty string`),this.$_addRule({name:`custom`,args:{method,description:description$1}})},validate(value,helpers,{method}){try{return method(value,helpers)}catch(err$1){return helpers.error(`any.custom`,{error:err$1})}},args:[`method`,`description`],multi:!0},messages:{method(messages$3){return this.prefs({messages:messages$3})}},shared:{method(schema){assert$17(Common$12.isSchema(schema)&&schema._flags.id,`Schema must be a schema with an id`);let obj=this.clone();return obj.$_terms.shared=obj.$_terms.shared||[],obj.$_terms.shared.push(schema),obj.$_mutateRegister(schema),obj}},warning:{method(code$2,local){return assert$17(code$2&&typeof code$2==`string`,`Invalid warning code`),this.$_addRule({name:`warning`,args:{code:code$2,local},warn:!0})},validate(value,helpers,{code:code$2,local}){return helpers.error(code$2,local)},args:[`code`,`local`],multi:!0}},modifiers:{keep(rule,enabled=!0){rule.keep=enabled},message(rule,message){rule.message=Messages$2.compile(message)},warn(rule,enabled=!0){rule.warn=enabled}},manifest:{build(obj,desc$1){for(let key in desc$1){let values=desc$1[key];if([`examples`,`externals`,`metas`,`notes`,`tags`].includes(key)){for(let value of values)obj=obj[key.slice(0,-1)](value);continue}if(key===`alterations`){let alter={};for(let{target,adjuster}of values)alter[target]=adjuster;obj=obj.alter(alter);continue}if(key===`whens`){for(let value of values){let{ref,is,not,then,otherwise,concat}=value;obj=concat?obj.concat(concat):ref?obj.when(ref,{is,not,then,otherwise,switch:value.switch,break:value.break}):obj.when(is,{then,otherwise,break:value.break})}continue}if(key===`shared`)for(let value of values)obj=obj.shared(value)}return obj}},messages:{"any.custom":`{{#label}} failed custom validation because {{#error.message}}`,"any.default":`{{#label}} threw an error when running default method`,"any.failover":`{{#label}} threw an error when running failover method`,"any.invalid":`{{#label}} contains an invalid value`,"any.only":`{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}`,"any.ref":`{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}`,"any.required":`{{#label}} is required`,"any.unknown":`{{#label}} is not allowed`}})}),require_alternatives=__commonJSMin((exports,module)=>{let{assert:assert$16,merge}=require_lib$4(),Any$9=require_any(),Common$11=require_common(),Compile$5=require_compile(),Errors$4=require_errors(),Ref$3=require_ref(),internals$13={};module.exports=Any$9.extend({type:`alternatives`,flags:{match:{default:`any`}},terms:{matches:{init:[],register:Ref$3.toSibling}},args(schema,...schemas){return schemas.length===1&&Array.isArray(schemas[0])?schema.try(...schemas[0]):schema.try(...schemas)},validate(value,helpers){let{schema,error,state,prefs}=helpers;if(schema._flags.match){let matched=[],failed=[];for(let i$4=0;i$4<schema.$_terms.matches.length;++i$4){let item=schema.$_terms.matches[i$4],localState=state.nest(item.schema,`match.${i$4}`);localState.snapshot();let result=item.schema.$_validate(value,localState,prefs);result.errors?(failed.push(result.errors),localState.restore()):(matched.push(result.value),localState.commit())}if(matched.length===0){let context={details:failed.map(f=>Errors$4.details(f,{override:!1}))};return{errors:error(`alternatives.any`,context)}}if(schema._flags.match===`one`)return matched.length===1?{value:matched[0]}:{errors:error(`alternatives.one`)};if(matched.length!==schema.$_terms.matches.length){let context={details:failed.map(f=>Errors$4.details(f,{override:!1}))};return{errors:error(`alternatives.all`,context)}}let isAnyObj=alternative=>alternative.$_terms.matches.some(v=>v.schema.type===`object`||v.schema.type===`alternatives`&&isAnyObj(v.schema));return isAnyObj(schema)?{value:matched.reduce((acc,v)=>merge(acc,v,{mergeArrays:!1}))}:{value:matched[matched.length-1]}}let errors=[];for(let i$4=0;i$4<schema.$_terms.matches.length;++i$4){let item=schema.$_terms.matches[i$4];if(item.schema){let localState=state.nest(item.schema,`match.${i$4}`);localState.snapshot();let result=item.schema.$_validate(value,localState,prefs);if(!result.errors)return localState.commit(),result;localState.restore(),errors.push({schema:item.schema,reports:result.errors});continue}let input=item.ref?item.ref.resolve(value,state,prefs):value,tests=item.is?[item]:item.switch;for(let j$1=0;j$1<tests.length;++j$1){let test=tests[j$1],{is,then,otherwise}=test,id=`match.${i$4}${item.switch?`.`+j$1:``}`;if(is.$_match(input,state.nest(is,`${id}.is`),prefs)){if(then)return then.$_validate(value,state.nest(then,`${id}.then`),prefs)}else if(otherwise)return otherwise.$_validate(value,state.nest(otherwise,`${id}.otherwise`),prefs)}}return internals$13.errors(errors,helpers)},rules:{conditional:{method(condition,options){assert$16(!this._flags._endedSwitch,`Unreachable condition`),assert$16(!this._flags.match,`Cannot combine match mode`,this._flags.match,`with conditional rule`),assert$16(options.break===void 0,`Cannot use break option with alternatives conditional`);let obj=this.clone(),match$2=Compile$5.when(obj,condition,options),conditions=match$2.is?[match$2]:match$2.switch;for(let item of conditions)if(item.then&&item.otherwise){obj.$_setFlag(`_endedSwitch`,!0,{clone:!1});break}return obj.$_terms.matches.push(match$2),obj.$_mutateRebuild()}},match:{method(mode){if(assert$16([`any`,`one`,`all`].includes(mode),`Invalid alternatives match mode`,mode),mode!==`any`)for(let match$2 of this.$_terms.matches)assert$16(match$2.schema,`Cannot combine match mode`,mode,`with conditional rules`);return this.$_setFlag(`match`,mode)}},try:{method(...schemas){assert$16(schemas.length,`Missing alternative schemas`),Common$11.verifyFlat(schemas,`try`),assert$16(!this._flags._endedSwitch,`Unreachable condition`);let obj=this.clone();for(let schema of schemas)obj.$_terms.matches.push({schema:obj.$_compile(schema)});return obj.$_mutateRebuild()}}},overrides:{label(name$1){let obj=this.$_parent(`label`,name$1),each=(item,source)=>source.path[0]!==`is`&&typeof item._flags.label!=`string`?item.label(name$1):void 0;return obj.$_modify({each,ref:!1})},isAsync(){if(this.$_terms.externals?.length)return!0;for(let match$2 of this.$_terms.matches)if(match$2.schema?.isAsync()||match$2.then?.isAsync()||match$2.otherwise?.isAsync())return!0;return!1}},rebuild(schema){let each=item=>{Common$11.isSchema(item)&&item.type===`array`&&schema.$_setFlag(`_arrayItems`,!0,{clone:!1})};schema.$_modify({each})},manifest:{build(obj,desc$1){if(desc$1.matches)for(let match$2 of desc$1.matches){let{schema,ref,is,not,then,otherwise}=match$2;obj=schema?obj.try(schema):ref?obj.conditional(ref,{is,then,not,otherwise,switch:match$2.switch}):obj.conditional(is,{then,otherwise})}return obj}},messages:{"alternatives.all":`{{#label}} does not match all of the required types`,"alternatives.any":`{{#label}} does not match any of the allowed types`,"alternatives.match":`{{#label}} does not match any of the allowed types`,"alternatives.one":`{{#label}} matches more than one allowed type`,"alternatives.types":`{{#label}} must be one of {{#types}}`}}),internals$13.errors=function(failures,{error,state}){if(!failures.length)return{errors:error(`alternatives.any`)};if(failures.length===1)return{errors:failures[0].reports};let valids=new Set,complex=[];for(let{reports,schema}of failures){if(reports.length>1)return internals$13.unmatched(failures,error);let report=reports[0];if(!(report instanceof Errors$4.Report))return internals$13.unmatched(failures,error);if(report.state.path.length!==state.path.length){complex.push({type:schema.type,report});continue}if(report.code===`any.only`){for(let valid$2 of report.local.valids)valids.add(valid$2);continue}let[type,code$2]=report.code.split(`.`);code$2===`base`?report.code===`object.base`?valids.add(report.local.type):valids.add(type):complex.push({type:schema.type,report})}return complex.length?complex.length===1?{errors:complex[0].report}:internals$13.unmatched(failures,error):{errors:error(`alternatives.types`,{types:[...valids]})}},internals$13.unmatched=function(failures,error){let errors=[];for(let failure of failures)errors.push(...failure.reports);return{errors:error(`alternatives.match`,Errors$4.details(errors,{override:!1}))}}}),require_array=__commonJSMin((exports,module)=>{let{assert:assert$15,deepEqual,reach:reach$1}=require_lib$4(),Any$8=require_any(),Common$10=require_common(),Compile$4=require_compile(),internals$12={};module.exports=Any$8.extend({type:`array`,flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:`schema`},ordered:{init:[],manifest:`schema`},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:`object`,method(value,{schema,state,prefs}){if(!Array.isArray(value))return;let sort$2=schema.$_getRule(`sort`);if(sort$2)return internals$12.sort(schema,value,sort$2.args.options,state,prefs)}},validate(value,{schema,error}){if(!Array.isArray(value)){if(schema._flags.single){let single=[value];return single[Common$10.symbols.arraySingle]=!0,{value:single}}return{errors:error(`array.base`)}}if(!(!schema.$_getRule(`items`)&&!schema.$_terms.externals))return{value:value.slice()}},rules:{has:{method(schema){schema=this.$_compile(schema,{appendPath:!0});let obj=this.$_addRule({name:`has`,args:{schema}});return obj.$_mutateRegister(schema),obj},validate(value,{state,prefs,error},{schema:has}){let ancestors=[value,...state.ancestors];for(let i$4=0;i$4<value.length;++i$4){let localState=state.localize([...state.path,i$4],ancestors,has);if(has.$_match(value[i$4],localState,prefs))return value}let patternLabel=has._flags.label;return patternLabel?error(`array.hasKnown`,{patternLabel}):error(`array.hasUnknown`,null)},multi:!0},items:{method(...schemas){Common$10.verifyFlat(schemas,`items`);let obj=this.$_addRule(`items`);for(let i$4=0;i$4<schemas.length;++i$4){let type=Common$10.tryWithPath(()=>this.$_compile(schemas[i$4]),i$4,{append:!0});obj.$_terms.items.push(type)}return obj.$_mutateRebuild()},validate(value,{schema,error,state,prefs,errorsArray}){let requireds=schema.$_terms._requireds.slice(),ordereds=schema.$_terms.ordered.slice(),inclusions=[...schema.$_terms._inclusions,...requireds],wasArray=!value[Common$10.symbols.arraySingle];delete value[Common$10.symbols.arraySingle];let errors=errorsArray(),il=value.length;for(let i$4=0;i$4<il;++i$4){let item=value[i$4],errored=!1,isValid=!1,key=wasArray?i$4:new Number(i$4),path=[...state.path,key];if(!schema._flags.sparse&&item===void 0){if(errors.push(error(`array.sparse`,{key,path,pos:i$4,value:void 0},state.localize(path))),prefs.abortEarly)return errors;ordereds.shift();continue}let ancestors=[value,...state.ancestors];for(let exclusion of schema.$_terms._exclusions){if(!exclusion.$_match(item,state.localize(path,ancestors,exclusion),prefs,{presence:`ignore`}))continue;if(errors.push(error(`array.excludes`,{pos:i$4,value:item},state.localize(path))),prefs.abortEarly)return errors;errored=!0,ordereds.shift();break}if(errored)continue;if(schema.$_terms.ordered.length){if(ordereds.length){let ordered=ordereds.shift(),res=ordered.$_validate(item,state.localize(path,ancestors,ordered),prefs);if(res.errors){if(errors.push(...res.errors),prefs.abortEarly)return errors}else if(ordered._flags.result===`strip`)internals$12.fastSplice(value,i$4),--i$4,--il;else if(!schema._flags.sparse&&res.value===void 0){if(errors.push(error(`array.sparse`,{key,path,pos:i$4,value:void 0},state.localize(path))),prefs.abortEarly)return errors;continue}else value[i$4]=res.value;continue}else if(!schema.$_terms.items.length){if(errors.push(error(`array.orderedLength`,{pos:i$4,limit:schema.$_terms.ordered.length})),prefs.abortEarly)return errors;break}}let requiredChecks=[],jl=requireds.length;for(let j$1=0;j$1<jl;++j$1){let localState=state.localize(path,ancestors,requireds[j$1]);localState.snapshot();let res=requireds[j$1].$_validate(item,localState,prefs);if(requiredChecks[j$1]=res,!res.errors){if(localState.commit(),value[i$4]=res.value,isValid=!0,internals$12.fastSplice(requireds,j$1),--j$1,--jl,!schema._flags.sparse&&res.value===void 0&&(errors.push(error(`array.sparse`,{key,path,pos:i$4,value:void 0},state.localize(path))),prefs.abortEarly))return errors;break}localState.restore()}if(isValid)continue;let stripUnknown=prefs.stripUnknown&&!!prefs.stripUnknown.arrays||!1;jl=inclusions.length;for(let inclusion of inclusions){let res,previousCheck=requireds.indexOf(inclusion);if(previousCheck!==-1)res=requiredChecks[previousCheck];else{let localState=state.localize(path,ancestors,inclusion);if(localState.snapshot(),res=inclusion.$_validate(item,localState,prefs),!res.errors){localState.commit(),inclusion._flags.result===`strip`?(internals$12.fastSplice(value,i$4),--i$4,--il):!schema._flags.sparse&&res.value===void 0?(errors.push(error(`array.sparse`,{key,path,pos:i$4,value:void 0},state.localize(path))),errored=!0):value[i$4]=res.value,isValid=!0;break}localState.restore()}if(jl===1){if(stripUnknown){internals$12.fastSplice(value,i$4),--i$4,--il,isValid=!0;break}if(errors.push(...res.errors),prefs.abortEarly)return errors;errored=!0;break}}if(!errored&&(schema.$_terms._inclusions.length||schema.$_terms._requireds.length)&&!isValid){if(stripUnknown){internals$12.fastSplice(value,i$4),--i$4,--il;continue}if(errors.push(error(`array.includes`,{pos:i$4,value:item},state.localize(path))),prefs.abortEarly)return errors}}return requireds.length&&internals$12.fillMissedErrors(schema,errors,requireds,value,state,prefs),ordereds.length&&(internals$12.fillOrderedErrors(schema,errors,ordereds,value,state,prefs),errors.length||internals$12.fillDefault(ordereds,value,state,prefs)),errors.length?errors:value},priority:!0,manifest:!1},length:{method(limit){return this.$_addRule({name:`length`,args:{limit},operator:`=`})},validate(value,helpers,{limit},{name:name$1,operator,args:args$1}){return Common$10.compare(value.length,limit,operator)?value:helpers.error(`array.`+name$1,{limit:args$1.limit,value})},args:[{name:`limit`,ref:!0,assert:Common$10.limit,message:`must be a positive integer`}]},max:{method(limit){return this.$_addRule({name:`max`,method:`length`,args:{limit},operator:`<=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`length`,args:{limit},operator:`>=`})}},ordered:{method(...schemas){Common$10.verifyFlat(schemas,`ordered`);let obj=this.$_addRule(`items`);for(let i$4=0;i$4<schemas.length;++i$4){let type=Common$10.tryWithPath(()=>this.$_compile(schemas[i$4]),i$4,{append:!0});internals$12.validateSingle(type,obj),obj.$_mutateRegister(type),obj.$_terms.ordered.push(type)}return obj.$_mutateRebuild()}},single:{method(enabled){let value=enabled===void 0?!0:!!enabled;return assert$15(!value||!this._flags._arrayItems,`Cannot specify single rule when array has array items`),this.$_setFlag(`single`,value)}},sort:{method(options={}){Common$10.assertOptions(options,[`by`,`order`]);let settings={order:options.order||`ascending`};return options.by&&(settings.by=Compile$4.ref(options.by,{ancestor:0}),assert$15(!settings.by.ancestor,`Cannot sort by ancestor`)),this.$_addRule({name:`sort`,args:{options:settings}})},validate(value,{error,state,prefs,schema},{options}){let{value:sorted,errors}=internals$12.sort(schema,value,options,state,prefs);if(errors)return errors;for(let i$4=0;i$4<value.length;++i$4)if(value[i$4]!==sorted[i$4])return error(`array.sort`,{order:options.order,by:options.by?options.by.key:`value`});return value},convert:!0},sparse:{method(enabled){let value=enabled===void 0?!0:!!enabled;if(this._flags.sparse===value)return this;let obj=value?this.clone():this.$_addRule(`items`);return obj.$_setFlag(`sparse`,value,{clone:!1})}},unique:{method(comparator,options={}){assert$15(!comparator||typeof comparator==`function`||typeof comparator==`string`,`comparator must be a function or a string`),Common$10.assertOptions(options,[`ignoreUndefined`,`separator`]);let rule={name:`unique`,args:{options,comparator}};if(comparator)if(typeof comparator==`string`){let separator=Common$10.default(options.separator,`.`);rule.path=separator?comparator.split(separator):[comparator]}else rule.comparator=comparator;return this.$_addRule(rule)},validate(value,{state,error,schema},{comparator:raw,options},{comparator,path}){let found={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),bigint:Object.create(null),object:new Map,function:new Map,custom:new Map},compare$14=comparator||deepEqual,ignoreUndefined=options.ignoreUndefined;for(let i$4=0;i$4<value.length;++i$4){let item=path?reach$1(value[i$4],path):value[i$4],records=comparator?found.custom:found[typeof item];if(assert$15(records,`Failed to find unique map container for type`,typeof item),records instanceof Map){let entries=records.entries(),current;for(;!(current=entries.next()).done;)if(compare$14(current.value[0],item)){let localState=state.localize([...state.path,i$4],[value,...state.ancestors]),context={pos:i$4,value:value[i$4],dupePos:current.value[1],dupeValue:value[current.value[1]]};return path&&(context.path=raw),error(`array.unique`,context,localState)}records.set(item,i$4)}else{if((!ignoreUndefined||item!==void 0)&&records[item]!==void 0){let context={pos:i$4,value:value[i$4],dupePos:records[item],dupeValue:value[records[item]]};path&&(context.path=raw);let localState=state.localize([...state.path,i$4],[value,...state.ancestors]);return error(`array.unique`,context,localState)}records[item]=i$4}}return value},args:[`comparator`,`options`],multi:!0}},overrides:{isAsync(){if(this.$_terms.externals?.length)return!0;for(let item of this.$_terms.items)if(item.isAsync())return!0;for(let item of this.$_terms.ordered)if(item.isAsync())return!0;return!1}},cast:{set:{from:Array.isArray,to(value,helpers){return new Set(value)}}},rebuild(schema){schema.$_terms._inclusions=[],schema.$_terms._exclusions=[],schema.$_terms._requireds=[];for(let type of schema.$_terms.items)internals$12.validateSingle(type,schema),type._flags.presence===`required`?schema.$_terms._requireds.push(type):type._flags.presence===`forbidden`?schema.$_terms._exclusions.push(type):schema.$_terms._inclusions.push(type);for(let type of schema.$_terms.ordered)internals$12.validateSingle(type,schema)},manifest:{build(obj,desc$1){return desc$1.items&&(obj=obj.items(...desc$1.items)),desc$1.ordered&&(obj=obj.ordered(...desc$1.ordered)),obj}},messages:{"array.base":`{{#label}} must be an array`,"array.excludes":`{{#label}} contains an excluded value`,"array.hasKnown":`{{#label}} does not contain at least one required match for type {:#patternLabel}`,"array.hasUnknown":`{{#label}} does not contain at least one required match`,"array.includes":`{{#label}} does not match any of the allowed types`,"array.includesRequiredBoth":`{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)`,"array.includesRequiredKnowns":`{{#label}} does not contain {{#knownMisses}}`,"array.includesRequiredUnknowns":`{{#label}} does not contain {{#unknownMisses}} required value(s)`,"array.length":`{{#label}} must contain {{#limit}} items`,"array.max":`{{#label}} must contain less than or equal to {{#limit}} items`,"array.min":`{{#label}} must contain at least {{#limit}} items`,"array.orderedLength":`{{#label}} must contain at most {{#limit}} items`,"array.sort":`{{#label}} must be sorted in {#order} order by {{#by}}`,"array.sort.mismatching":`{{#label}} cannot be sorted due to mismatching types`,"array.sort.unsupported":`{{#label}} cannot be sorted due to unsupported type {#type}`,"array.sparse":`{{#label}} must not be a sparse array item`,"array.unique":`{{#label}} contains a duplicate value`}}),internals$12.fillMissedErrors=function(schema,errors,requireds,value,state,prefs){let knownMisses=[],unknownMisses=0;for(let required of requireds){let label=required._flags.label;label?knownMisses.push(label):++unknownMisses}knownMisses.length?unknownMisses?errors.push(schema.$_createError(`array.includesRequiredBoth`,value,{knownMisses,unknownMisses},state,prefs)):errors.push(schema.$_createError(`array.includesRequiredKnowns`,value,{knownMisses},state,prefs)):errors.push(schema.$_createError(`array.includesRequiredUnknowns`,value,{unknownMisses},state,prefs))},internals$12.fillOrderedErrors=function(schema,errors,ordereds,value,state,prefs){let requiredOrdereds=[];for(let ordered of ordereds)ordered._flags.presence===`required`&&requiredOrdereds.push(ordered);requiredOrdereds.length&&internals$12.fillMissedErrors(schema,errors,requiredOrdereds,value,state,prefs)},internals$12.fillDefault=function(ordereds,value,state,prefs){let overrides=[],trailingUndefined=!0;for(let i$4=ordereds.length-1;i$4>=0;--i$4){let ordered=ordereds[i$4],ancestors=[value,...state.ancestors],override=ordered.$_validate(void 0,state.localize(state.path,ancestors,ordered),prefs).value;if(trailingUndefined){if(override===void 0)continue;trailingUndefined=!1}overrides.unshift(override)}overrides.length&&value.push(...overrides)},internals$12.fastSplice=function(arr,i$4){let pos=i$4;for(;pos<arr.length;)arr[pos++]=arr[pos];--arr.length},internals$12.validateSingle=function(type,obj){(type.type===`array`||type._flags._arrayItems)&&(assert$15(!obj._flags.single,`Cannot specify array item with single rule enabled`),obj.$_setFlag(`_arrayItems`,!0,{clone:!1}))},internals$12.sort=function(schema,value,settings,state,prefs){let order=settings.order===`ascending`?1:-1,aFirst=-1*order,bFirst=order,sort$2=(a,b)=>{let compare$14=internals$12.compare(a,b,aFirst,bFirst);if(compare$14!==null||(settings.by&&(a=settings.by.resolve(a,state,prefs),b=settings.by.resolve(b,state,prefs)),compare$14=internals$12.compare(a,b,aFirst,bFirst),compare$14!==null))return compare$14;let type=typeof a;if(type!==typeof b)throw schema.$_createError(`array.sort.mismatching`,value,null,state,prefs);if(type!==`number`&&type!==`string`)throw schema.$_createError(`array.sort.unsupported`,value,{type},state,prefs);return type===`number`?(a-b)*order:a<b?aFirst:bFirst};try{return{value:value.slice().sort(sort$2)}}catch(err$1){return{errors:err$1}}},internals$12.compare=function(a,b,aFirst,bFirst){return a===b?0:a===void 0?1:b===void 0?-1:a===null?bFirst:b===null?aFirst:null}}),require_boolean=__commonJSMin((exports,module)=>{let{assert:assert$14}=require_lib$4(),Any$7=require_any(),Common$9=require_common(),Values=require_values(),internals$11={};internals$11.isBool=function(value){return typeof value==`boolean`},module.exports=Any$7.extend({type:`boolean`,flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:`values`},truthy:{init:null,manifest:`values`}},coerce(value,{schema}){if(typeof value!=`boolean`){if(typeof value==`string`){let normalized=schema._flags.sensitive?value:value.toLowerCase();value=normalized===`true`?!0:normalized===`false`?!1:value}return typeof value!=`boolean`&&(value=schema.$_terms.truthy&&schema.$_terms.truthy.has(value,null,null,!schema._flags.sensitive)||(schema.$_terms.falsy&&schema.$_terms.falsy.has(value,null,null,!schema._flags.sensitive)?!1:value)),{value}}},validate(value,{error}){if(typeof value!=`boolean`)return{value,errors:error(`boolean.base`)}},rules:{truthy:{method(...values){Common$9.verifyFlat(values,`truthy`);let obj=this.clone();obj.$_terms.truthy=obj.$_terms.truthy||new Values;for(let i$4=0;i$4<values.length;++i$4){let value=values[i$4];assert$14(value!==void 0,`Cannot call truthy with undefined`),obj.$_terms.truthy.add(value)}return obj}},falsy:{method(...values){Common$9.verifyFlat(values,`falsy`);let obj=this.clone();obj.$_terms.falsy=obj.$_terms.falsy||new Values;for(let i$4=0;i$4<values.length;++i$4){let value=values[i$4];assert$14(value!==void 0,`Cannot call falsy with undefined`),obj.$_terms.falsy.add(value)}return obj}},sensitive:{method(enabled=!0){return this.$_setFlag(`sensitive`,enabled)}}},cast:{number:{from:internals$11.isBool,to(value,helpers){return value?1:0}},string:{from:internals$11.isBool,to(value,helpers){return value?`true`:`false`}}},manifest:{build(obj,desc$1){return desc$1.truthy&&(obj=obj.truthy(...desc$1.truthy)),desc$1.falsy&&(obj=obj.falsy(...desc$1.falsy)),obj}},messages:{"boolean.base":`{{#label}} must be a boolean`}})}),require_date=__commonJSMin((exports,module)=>{let{assert:assert$13}=require_lib$4(),Any$6=require_any(),Common$8=require_common(),Template$4=require_template(),internals$10={};internals$10.isDate=function(value){return value instanceof Date},module.exports=Any$6.extend({type:`date`,coerce:{from:[`number`,`string`],method(value,{schema}){return{value:internals$10.parse(value,schema._flags.format)||value}}},validate(value,{schema,error,prefs}){if(value instanceof Date&&!isNaN(value.getTime()))return;let format=schema._flags.format;return!prefs.convert||!format||typeof value!=`string`?{value,errors:error(`date.base`)}:{value,errors:error(`date.format`,{format})}},rules:{compare:{method:!1,validate(value,helpers,{date},{name:name$1,operator,args:args$1}){let to=date===`now`?Date.now():date.getTime();return Common$8.compare(value.getTime(),to,operator)?value:helpers.error(`date.`+name$1,{limit:args$1.date,value})},args:[{name:`date`,ref:!0,normalize:date=>date===`now`?date:internals$10.parse(date),assert:date=>date!==null,message:`must have a valid date format`}]},format:{method(format){return assert$13([`iso`,`javascript`,`unix`].includes(format),`Unknown date format`,format),this.$_setFlag(`format`,format)}},greater:{method(date){return this.$_addRule({name:`greater`,method:`compare`,args:{date},operator:`>`})}},iso:{method(){return this.format(`iso`)}},less:{method(date){return this.$_addRule({name:`less`,method:`compare`,args:{date},operator:`<`})}},max:{method(date){return this.$_addRule({name:`max`,method:`compare`,args:{date},operator:`<=`})}},min:{method(date){return this.$_addRule({name:`min`,method:`compare`,args:{date},operator:`>=`})}},timestamp:{method(type=`javascript`){return assert$13([`javascript`,`unix`].includes(type),`"type" must be one of "javascript, unix"`),this.format(type)}}},cast:{number:{from:internals$10.isDate,to(value,helpers){return value.getTime()}},string:{from:internals$10.isDate,to(value,{prefs}){return Template$4.date(value,prefs)}}},messages:{"date.base":`{{#label}} must be a valid date`,"date.format":`{{#label}} must be in {msg("date.format." + #format) || #format} format`,"date.greater":`{{#label}} must be greater than {{:#limit}}`,"date.less":`{{#label}} must be less than {{:#limit}}`,"date.max":`{{#label}} must be less than or equal to {{:#limit}}`,"date.min":`{{#label}} must be greater than or equal to {{:#limit}}`,"date.format.iso":`ISO 8601 date`,"date.format.javascript":`timestamp or number of milliseconds`,"date.format.unix":`timestamp or number of seconds`}}),internals$10.parse=function(value,format){if(value instanceof Date)return value;if(typeof value!=`string`&&(isNaN(value)||!isFinite(value))||/^\s*$/.test(value))return null;if(format===`iso`)return Common$8.isIsoDate(value)?internals$10.date(value.toString()):null;let original=value;if(typeof value==`string`&&/^[+-]?\d+(\.\d+)?$/.test(value)&&(value=parseFloat(value)),format){if(format===`javascript`)return internals$10.date(1*value);if(format===`unix`)return internals$10.date(1e3*value);if(typeof original==`string`)return null}return internals$10.date(value)},internals$10.date=function(value){let date=new Date(value);return isNaN(date.getTime())?null:date}}),require_lib$1=__commonJSMin(exports=>{let{assert:assert$12}=require_lib$4(),internals$9={};exports.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(nodes,options){options??={};let before=[].concat(options.before??[]),after=[].concat(options.after??[]),group=options.group??`?`,sort$2=options.sort??0;assert$12(!before.includes(group),`Item cannot come before itself: ${group}`),assert$12(!before.includes(`?`),`Item cannot come before unassociated items`),assert$12(!after.includes(group),`Item cannot come after itself: ${group}`),assert$12(!after.includes(`?`),`Item cannot come after unassociated items`),Array.isArray(nodes)||(nodes=[nodes]);for(let node of nodes){let item={seq:this._items.length,sort:sort$2,before,after,group,node};this._items.push(item)}if(!options.manual){let valid$2=this._sort();assert$12(valid$2,`item`,group===`?`?``:`added into group ${group}`,`created a dependencies error`)}return this.nodes}merge(others){Array.isArray(others)||(others=[others]);for(let other of others)if(other)for(let item of other._items)this._items.push(Object.assign({},item));this._items.sort(internals$9.mergeSort);for(let i$4=0;i$4<this._items.length;++i$4)this._items[i$4].seq=i$4;let valid$2=this._sort();return assert$12(valid$2,`merge created a dependencies error`),this.nodes}sort(){let valid$2=this._sort();return assert$12(valid$2,`sort created a dependencies error`),this.nodes}_sort(){let graph={},graphAfters=Object.create(null),groups=Object.create(null);for(let item of this._items){let seq=item.seq,group=item.group;groups[group]=groups[group]??[],groups[group].push(seq),graph[seq]=item.before;for(let after of item.after)graphAfters[after]=graphAfters[after]??[],graphAfters[after].push(seq)}for(let node in graph){let expandedGroups=[];for(let graphNodeItem in graph[node]){let group=graph[node][graphNodeItem];groups[group]=groups[group]??[],expandedGroups.push(...groups[group])}graph[node]=expandedGroups}for(let group in graphAfters)if(groups[group])for(let node of groups[group])graph[node].push(...graphAfters[group]);let ancestors={};for(let node in graph){let children=graph[node];for(let child of children)ancestors[child]=ancestors[child]??[],ancestors[child].push(node)}let visited={},sorted=[];for(let i$4=0;i$4<this._items.length;++i$4){let next=i$4;if(ancestors[i$4]){next=null;for(let j$1=0;j$1<this._items.length;++j$1){if(visited[j$1]===!0)continue;ancestors[j$1]||(ancestors[j$1]=[]);let shouldSeeCount=ancestors[j$1].length,seenCount=0;for(let k=0;k<shouldSeeCount;++k)visited[ancestors[j$1][k]]&&++seenCount;if(seenCount===shouldSeeCount){next=j$1;break}}}next!==null&&(visited[next]=!0,sorted.push(next))}if(sorted.length!==this._items.length)return!1;let seqIndex={};for(let item of this._items)seqIndex[item.seq]=item;this._items=[],this.nodes=[];for(let value of sorted){let sortedItem=seqIndex[value];this.nodes.push(sortedItem.node),this._items.push(sortedItem)}return!0}},internals$9.mergeSort=(a,b)=>a.sort===b.sort?0:a.sort<b.sort?-1:1}),require_keys=__commonJSMin((exports,module)=>{let{applyToDefaults,assert:assert$11,clone:Clone}=require_lib$4(),Topo=require_lib$1(),Any$5=require_any(),Common$7=require_common(),Compile$3=require_compile(),Errors$3=require_errors(),Ref$2=require_ref(),Template$3=require_template(),internals$8={renameDefaults:{alias:!1,multiple:!1,override:!1}};module.exports=Any$5.extend({type:`_keys`,properties:{typeof:`object`},flags:{unknown:{default:void 0}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:`schema`,to:`key`}}},patterns:{init:null},renames:{init:null}},args(schema,keys){return schema.keys(keys)},validate(value,{schema,error,state,prefs}){if(!value||typeof value!==schema.$_property(`typeof`)||Array.isArray(value))return{value,errors:error(`object.base`,{type:schema.$_property(`typeof`)})};if(!schema.$_terms.renames&&!schema.$_terms.dependencies&&!schema.$_terms.keys&&!schema.$_terms.patterns&&!schema.$_terms.externals)return;value=internals$8.clone(value,prefs);let errors=[];if(schema.$_terms.renames&&!internals$8.rename(schema,value,state,prefs,errors)||!schema.$_terms.keys&&!schema.$_terms.patterns&&!schema.$_terms.dependencies)return{value,errors};let unprocessed=new Set(Object.keys(value));if(schema.$_terms.keys){let ancestors=[value,...state.ancestors];for(let child of schema.$_terms.keys){let key=child.key,item=value[key];unprocessed.delete(key);let localState=state.localize([...state.path,key],ancestors,child),result=child.schema.$_validate(item,localState,prefs);if(result.errors){if(prefs.abortEarly)return{value,errors:result.errors};result.value!==void 0&&(value[key]=result.value),errors.push(...result.errors)}else child.schema._flags.result===`strip`||result.value===void 0&&item!==void 0?delete value[key]:result.value!==void 0&&(value[key]=result.value)}}if(unprocessed.size||schema._flags._hasPatternMatch){let early=internals$8.unknown(schema,value,unprocessed,errors,state,prefs);if(early)return early}if(schema.$_terms.dependencies)for(let dep of schema.$_terms.dependencies){if(dep.key!==null&&internals$8.isPresent(dep.options)(dep.key.resolve(value,state,prefs,null,{shadow:!1}))===!1)continue;let failed=internals$8.dependencies[dep.rel](schema,dep,value,state,prefs);if(failed){let report=schema.$_createError(failed.code,value,failed.context,state,prefs);if(prefs.abortEarly)return{value,errors:report};errors.push(report)}}return{value,errors}},rules:{and:{method(...peers){return Common$7.verifyFlat(peers,`and`),internals$8.dependency(this,`and`,null,peers)}},append:{method(schema){return schema==null||Object.keys(schema).length===0?this:this.keys(schema)}},assert:{method(subject,schema,message){Template$3.isTemplate(subject)||(subject=Compile$3.ref(subject)),assert$11(message===void 0||typeof message==`string`,`Message must be a string`),schema=this.$_compile(schema,{appendPath:!0});let obj=this.$_addRule({name:`assert`,args:{subject,schema,message}});return obj.$_mutateRegister(subject),obj.$_mutateRegister(schema),obj},validate(value,{error,prefs,state},{subject,schema,message}){let about=subject.resolve(value,state,prefs),path=Ref$2.isRef(subject)?subject.absolute(state):[];return schema.$_match(about,state.localize(path,[value,...state.ancestors],schema),prefs)?value:error(`object.assert`,{subject,message})},args:[`subject`,`schema`,`message`],multi:!0},instance:{method(constructor,name$1){return assert$11(typeof constructor==`function`,`constructor must be a function`),name$1||=constructor.name,this.$_addRule({name:`instance`,args:{constructor,name:name$1}})},validate(value,helpers,{constructor,name:name$1}){return value instanceof constructor?value:helpers.error(`object.instance`,{type:name$1,value})},args:[`constructor`,`name`]},keys:{method(schema){assert$11(schema===void 0||typeof schema==`object`,`Object schema must be a valid object`),assert$11(!Common$7.isSchema(schema),`Object schema cannot be a joi schema`);let obj=this.clone();if(!schema)obj.$_terms.keys=null;else if(!Object.keys(schema).length)obj.$_terms.keys=new internals$8.Keys;else for(let key in obj.$_terms.keys=obj.$_terms.keys?obj.$_terms.keys.filter(child=>!schema.hasOwnProperty(child.key)):new internals$8.Keys,schema)Common$7.tryWithPath(()=>obj.$_terms.keys.push({key,schema:this.$_compile(schema[key])}),key);return obj.$_mutateRebuild()}},length:{method(limit){return this.$_addRule({name:`length`,args:{limit},operator:`=`})},validate(value,helpers,{limit},{name:name$1,operator,args:args$1}){return Common$7.compare(Object.keys(value).length,limit,operator)?value:helpers.error(`object.`+name$1,{limit:args$1.limit,value})},args:[{name:`limit`,ref:!0,assert:Common$7.limit,message:`must be a positive integer`}]},max:{method(limit){return this.$_addRule({name:`max`,method:`length`,args:{limit},operator:`<=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`length`,args:{limit},operator:`>=`})}},nand:{method(...peers){return Common$7.verifyFlat(peers,`nand`),internals$8.dependency(this,`nand`,null,peers)}},or:{method(...peers){return Common$7.verifyFlat(peers,`or`),internals$8.dependency(this,`or`,null,peers)}},oxor:{method(...peers){return internals$8.dependency(this,`oxor`,null,peers)}},pattern:{method(pattern,schema,options={}){let isRegExp$1=pattern instanceof RegExp;isRegExp$1||(pattern=this.$_compile(pattern,{appendPath:!0})),assert$11(schema!==void 0,`Invalid rule`),Common$7.assertOptions(options,[`fallthrough`,`matches`]),isRegExp$1&&assert$11(!pattern.flags.includes(`g`)&&!pattern.flags.includes(`y`),`pattern should not use global or sticky mode`),schema=this.$_compile(schema,{appendPath:!0});let obj=this.clone();obj.$_terms.patterns=obj.$_terms.patterns||[];let config={[isRegExp$1?`regex`:`schema`]:pattern,rule:schema};return options.matches&&(config.matches=this.$_compile(options.matches),config.matches.type!==`array`&&(config.matches=config.matches.$_root.array().items(config.matches)),obj.$_mutateRegister(config.matches),obj.$_setFlag(`_hasPatternMatch`,!0,{clone:!1})),options.fallthrough&&(config.fallthrough=!0),obj.$_terms.patterns.push(config),obj.$_mutateRegister(schema),obj}},ref:{method(){return this.$_addRule(`ref`)},validate(value,helpers){return Ref$2.isRef(value)?value:helpers.error(`object.refType`,{value})}},regex:{method(){return this.$_addRule(`regex`)},validate(value,helpers){return value instanceof RegExp?value:helpers.error(`object.regex`,{value})}},rename:{method(from,to,options={}){assert$11(typeof from==`string`||from instanceof RegExp,`Rename missing the from argument`),assert$11(typeof to==`string`||to instanceof Template$3,`Invalid rename to argument`),assert$11(to!==from,`Cannot rename key to same name:`,from),Common$7.assertOptions(options,[`alias`,`ignoreUndefined`,`override`,`multiple`]);let obj=this.clone();obj.$_terms.renames=obj.$_terms.renames||[];for(let rename of obj.$_terms.renames)assert$11(rename.from!==from,`Cannot rename the same key multiple times`);return to instanceof Template$3&&obj.$_mutateRegister(to),obj.$_terms.renames.push({from,to,options:applyToDefaults(internals$8.renameDefaults,options)}),obj}},schema:{method(type=`any`){return this.$_addRule({name:`schema`,args:{type}})},validate(value,helpers,{type}){return Common$7.isSchema(value)&&(type===`any`||value.type===type)?value:helpers.error(`object.schema`,{type})}},unknown:{method(allow){return this.$_setFlag(`unknown`,allow!==!1)}},with:{method(key,peers,options={}){return internals$8.dependency(this,`with`,key,peers,options)}},without:{method(key,peers,options={}){return internals$8.dependency(this,`without`,key,peers,options)}},xor:{method(...peers){return Common$7.verifyFlat(peers,`xor`),internals$8.dependency(this,`xor`,null,peers)}}},overrides:{default(value,options){return value===void 0&&(value=Common$7.symbols.deepDefault),this.$_parent(`default`,value,options)},isAsync(){if(this.$_terms.externals?.length)return!0;if(this.$_terms.keys?.length){for(let key of this.$_terms.keys)if(key.schema.isAsync())return!0}if(this.$_terms.patterns?.length){for(let pattern of this.$_terms.patterns)if(pattern.rule.isAsync())return!0}return!1}},rebuild(schema){if(schema.$_terms.keys){let topo=new Topo.Sorter;for(let child of schema.$_terms.keys)Common$7.tryWithPath(()=>topo.add(child,{after:child.schema.$_rootReferences(),group:child.key}),child.key);schema.$_terms.keys=new internals$8.Keys(...topo.nodes)}},manifest:{build(obj,desc$1){if(desc$1.keys&&(obj=obj.keys(desc$1.keys)),desc$1.dependencies)for(let{rel,key=null,peers,options}of desc$1.dependencies)obj=internals$8.dependency(obj,rel,key,peers,options);if(desc$1.patterns)for(let{regex,schema,rule,fallthrough,matches}of desc$1.patterns)obj=obj.pattern(regex||schema,rule,{fallthrough,matches});if(desc$1.renames)for(let{from,to,options}of desc$1.renames)obj=obj.rename(from,to,options);return obj}},messages:{"object.and":`{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}`,"object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":`{{#label}} must be of type {{#type}}`,"object.instance":`{{#label}} must be an instance of {{:#type}}`,"object.length":`{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}`,"object.max":`{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}`,"object.min":`{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}`,"object.missing":`{{#label}} must contain at least one of {{#peersWithLabels}}`,"object.nand":`{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}`,"object.oxor":`{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}`,"object.pattern.match":`{{#label}} keys failed to match pattern requirements`,"object.refType":`{{#label}} must be a Joi reference`,"object.regex":`{{#label}} must be a RegExp object`,"object.rename.multiple":`{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}`,"object.rename.override":`{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists`,"object.schema":`{{#label}} must be a Joi schema of {{#type}} type`,"object.unknown":`{{#label}} is not allowed`,"object.with":`{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}`,"object.without":`{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}`,"object.xor":`{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}`}}),internals$8.clone=function(value,prefs){if(typeof value==`object`){if(prefs.nonEnumerables)return Clone(value,{shallow:!0});let clone$17=Object.create(Object.getPrototypeOf(value));return Object.assign(clone$17,value),clone$17}let clone$16=function(...args$1){return value.apply(this,args$1)};return clone$16.prototype=Clone(value.prototype),Object.defineProperty(clone$16,`name`,{value:value.name,writable:!1}),Object.defineProperty(clone$16,`length`,{value:value.length,writable:!1}),Object.assign(clone$16,value),clone$16},internals$8.dependency=function(schema,rel,key,peers,options){assert$11(key===null||typeof key==`string`,rel,`key must be a strings`),options||=peers.length>1&&typeof peers[peers.length-1]==`object`?peers.pop():{},Common$7.assertOptions(options,[`separator`,`isPresent`]),peers=[].concat(peers);let separator=Common$7.default(options.separator,`.`),paths=[];for(let peer of peers)assert$11(typeof peer==`string`,rel,`peers must be strings`),paths.push(Compile$3.ref(peer,{separator,ancestor:0,prefix:!1}));key!==null&&(key=Compile$3.ref(key,{separator,ancestor:0,prefix:!1}));let obj=schema.clone();return obj.$_terms.dependencies=obj.$_terms.dependencies||[],obj.$_terms.dependencies.push(new internals$8.Dependency(rel,key,paths,peers,options)),obj},internals$8.dependencies={and(schema,dep,value,state,prefs){let missing=[],present=[],count=dep.peers.length,isPresent=internals$8.isPresent(dep.options);for(let peer of dep.peers)isPresent(peer.resolve(value,state,prefs,null,{shadow:!1}))===!1?missing.push(peer.key):present.push(peer.key);if(missing.length!==count&&present.length!==count)return{code:`object.and`,context:{present,presentWithLabels:internals$8.keysToLabels(schema,present),missing,missingWithLabels:internals$8.keysToLabels(schema,missing)}}},nand(schema,dep,value,state,prefs){let present=[],isPresent=internals$8.isPresent(dep.options);for(let peer of dep.peers)isPresent(peer.resolve(value,state,prefs,null,{shadow:!1}))&&present.push(peer.key);if(present.length!==dep.peers.length)return;let main$1=dep.paths[0],values=dep.paths.slice(1);return{code:`object.nand`,context:{main:main$1,mainWithLabel:internals$8.keysToLabels(schema,main$1),peers:values,peersWithLabels:internals$8.keysToLabels(schema,values)}}},or(schema,dep,value,state,prefs){let isPresent=internals$8.isPresent(dep.options);for(let peer of dep.peers)if(isPresent(peer.resolve(value,state,prefs,null,{shadow:!1})))return;return{code:`object.missing`,context:{peers:dep.paths,peersWithLabels:internals$8.keysToLabels(schema,dep.paths)}}},oxor(schema,dep,value,state,prefs){let present=[],isPresent=internals$8.isPresent(dep.options);for(let peer of dep.peers)isPresent(peer.resolve(value,state,prefs,null,{shadow:!1}))&&present.push(peer.key);if(!present.length||present.length===1)return;let context={peers:dep.paths,peersWithLabels:internals$8.keysToLabels(schema,dep.paths)};return context.present=present,context.presentWithLabels=internals$8.keysToLabels(schema,present),{code:`object.oxor`,context}},with(schema,dep,value,state,prefs){let isPresent=internals$8.isPresent(dep.options);for(let peer of dep.peers)if(isPresent(peer.resolve(value,state,prefs,null,{shadow:!1}))===!1)return{code:`object.with`,context:{main:dep.key.key,mainWithLabel:internals$8.keysToLabels(schema,dep.key.key),peer:peer.key,peerWithLabel:internals$8.keysToLabels(schema,peer.key)}}},without(schema,dep,value,state,prefs){let isPresent=internals$8.isPresent(dep.options);for(let peer of dep.peers)if(isPresent(peer.resolve(value,state,prefs,null,{shadow:!1})))return{code:`object.without`,context:{main:dep.key.key,mainWithLabel:internals$8.keysToLabels(schema,dep.key.key),peer:peer.key,peerWithLabel:internals$8.keysToLabels(schema,peer.key)}}},xor(schema,dep,value,state,prefs){let present=[],isPresent=internals$8.isPresent(dep.options);for(let peer of dep.peers)isPresent(peer.resolve(value,state,prefs,null,{shadow:!1}))&&present.push(peer.key);if(present.length===1)return;let context={peers:dep.paths,peersWithLabels:internals$8.keysToLabels(schema,dep.paths)};return present.length===0?{code:`object.missing`,context}:(context.present=present,context.presentWithLabels=internals$8.keysToLabels(schema,present),{code:`object.xor`,context})}},internals$8.keysToLabels=function(schema,keys){return Array.isArray(keys)?keys.map(key=>schema.$_mapLabels(key)):schema.$_mapLabels(keys)},internals$8.isPresent=function(options){return typeof options.isPresent==`function`?options.isPresent:resolved=>resolved!==void 0},internals$8.rename=function(schema,value,state,prefs,errors){let renamed={};for(let rename of schema.$_terms.renames){let matches=[],pattern=typeof rename.from!=`string`;if(!pattern)Object.prototype.hasOwnProperty.call(value,rename.from)&&(value[rename.from]!==void 0||!rename.options.ignoreUndefined)&&matches.push(rename);else for(let from in value){if(value[from]===void 0&&rename.options.ignoreUndefined||from===rename.to)continue;let match$2=rename.from.exec(from);if(!match$2)continue;matches.push({from,to:rename.to,match:match$2})}for(let match$2 of matches){let from=match$2.from,to=match$2.to;if(to instanceof Template$3&&(to=to.render(value,state,prefs,match$2.match)),from===to)continue;if(!rename.options.multiple&&renamed[to]&&(errors.push(schema.$_createError(`object.rename.multiple`,value,{from,to,pattern},state,prefs)),prefs.abortEarly)||Object.prototype.hasOwnProperty.call(value,to)&&!rename.options.override&&!renamed[to]&&(errors.push(schema.$_createError(`object.rename.override`,value,{from,to,pattern},state,prefs)),prefs.abortEarly))return!1;value[from]===void 0?delete value[to]:value[to]=value[from],renamed[to]=!0,rename.options.alias||delete value[from]}}return!0},internals$8.unknown=function(schema,value,unprocessed,errors,state,prefs){if(schema.$_terms.patterns){let hasMatches=!1,matches=schema.$_terms.patterns.map(pattern=>{if(pattern.matches)return hasMatches=!0,[]}),ancestors=[value,...state.ancestors];for(let key of unprocessed){let item=value[key],path=[...state.path,key];for(let i$4=0;i$4<schema.$_terms.patterns.length;++i$4){let pattern=schema.$_terms.patterns[i$4];if(pattern.regex){let match$2=pattern.regex.test(key);if(state.mainstay.tracer.debug(state,`rule`,`pattern.${i$4}`,match$2?`pass`:`error`),!match$2)continue}else if(!pattern.schema.$_match(key,state.nest(pattern.schema,`pattern.${i$4}`),prefs))continue;unprocessed.delete(key);let localState=state.localize(path,ancestors,{schema:pattern.rule,key}),result=pattern.rule.$_validate(item,localState,prefs);if(result.errors){if(prefs.abortEarly)return{value,errors:result.errors};errors.push(...result.errors)}if(pattern.matches&&matches[i$4].push(key),value[key]=result.value,!pattern.fallthrough)break}}if(hasMatches)for(let i$4=0;i$4<matches.length;++i$4){let match$2=matches[i$4];if(!match$2)continue;let stpm=schema.$_terms.patterns[i$4].matches,localState=state.localize(state.path,ancestors,stpm),result=stpm.$_validate(match$2,localState,prefs);if(result.errors){let details=Errors$3.details(result.errors,{override:!1});details.matches=match$2;let report=schema.$_createError(`object.pattern.match`,value,details,state,prefs);if(prefs.abortEarly)return{value,errors:report};errors.push(report)}}}if(!unprocessed.size||!schema.$_terms.keys&&!schema.$_terms.patterns)return;if(prefs.stripUnknown&&schema._flags.unknown===void 0||prefs.skipFunctions){let stripUnknown=prefs.stripUnknown?prefs.stripUnknown===!0?!0:!!prefs.stripUnknown.objects:!1;for(let key of unprocessed)stripUnknown?(delete value[key],unprocessed.delete(key)):typeof value[key]==`function`&&unprocessed.delete(key)}let forbidUnknown=!Common$7.default(schema._flags.unknown,prefs.allowUnknown);if(forbidUnknown)for(let unprocessedKey of unprocessed){let localState=state.localize([...state.path,unprocessedKey],[]),report=schema.$_createError(`object.unknown`,value[unprocessedKey],{child:unprocessedKey},localState,prefs,{flags:!1});if(prefs.abortEarly)return{value,errors:report};errors.push(report)}},internals$8.Dependency=class{constructor(rel,key,peers,paths,options){this.rel=rel,this.key=key,this.peers=peers,this.paths=paths,this.options=options}describe(){let desc$1={rel:this.rel,peers:this.paths};return this.key!==null&&(desc$1.key=this.key.key),this.peers[0].separator!==`.`&&(desc$1.options={...desc$1.options,separator:this.peers[0].separator}),this.options.isPresent&&(desc$1.options={...desc$1.options,isPresent:this.options.isPresent}),desc$1}},internals$8.Keys=class extends Array{concat(source){let result=this.slice(),keys=new Map;for(let i$4=0;i$4<result.length;++i$4)keys.set(result[i$4].key,i$4);for(let item of source){let key=item.key,pos=keys.get(key);pos===void 0?result.push(item):result[pos]={key,schema:result[pos].schema.concat(item.schema)}}return result}}}),require_function=__commonJSMin((exports,module)=>{let{assert:assert$10}=require_lib$4(),Keys$1=require_keys();module.exports=Keys$1.extend({type:`function`,properties:{typeof:`function`},rules:{arity:{method(n$2){return assert$10(Number.isSafeInteger(n$2)&&n$2>=0,`n must be a positive integer`),this.$_addRule({name:`arity`,args:{n:n$2}})},validate(value,helpers,{n:n$2}){return value.length===n$2?value:helpers.error(`function.arity`,{n:n$2})}},class:{method(){return this.$_addRule(`class`)},validate(value,helpers){return/^\s*class\s/.test(value.toString())?value:helpers.error(`function.class`,{value})}},minArity:{method(n$2){return assert$10(Number.isSafeInteger(n$2)&&n$2>0,`n must be a strict positive integer`),this.$_addRule({name:`minArity`,args:{n:n$2}})},validate(value,helpers,{n:n$2}){return value.length>=n$2?value:helpers.error(`function.minArity`,{n:n$2})}},maxArity:{method(n$2){return assert$10(Number.isSafeInteger(n$2)&&n$2>=0,`n must be a positive integer`),this.$_addRule({name:`maxArity`,args:{n:n$2}})},validate(value,helpers,{n:n$2}){return value.length<=n$2?value:helpers.error(`function.maxArity`,{n:n$2})}}},messages:{"function.arity":`{{#label}} must have an arity of {{#n}}`,"function.class":`{{#label}} must be a class`,"function.maxArity":`{{#label}} must have an arity lesser or equal to {{#n}}`,"function.minArity":`{{#label}} must have an arity greater or equal to {{#n}}`}})}),require_link=__commonJSMin((exports,module)=>{let{assert:assert$9}=require_lib$4(),Any$4=require_any(),Common$6=require_common(),Compile$2=require_compile(),Errors$2=require_errors(),internals$7={};module.exports=Any$4.extend({type:`link`,properties:{schemaChain:!0},terms:{link:{init:null,manifest:`single`,register:!1}},args(schema,ref){return schema.ref(ref)},validate(value,{schema,state,prefs}){assert$9(schema.$_terms.link,`Uninitialized link schema`);let linked=internals$7.generate(schema,value,state,prefs),ref=schema.$_terms.link[0].ref;return linked.$_validate(value,state.nest(linked,`link:${ref.display}:${linked.type}`),prefs)},generate(schema,value,state,prefs){return internals$7.generate(schema,value,state,prefs)},rules:{ref:{method(ref){assert$9(!this.$_terms.link,`Cannot reinitialize schema`),ref=Compile$2.ref(ref),assert$9(ref.type===`value`||ref.type===`local`,`Invalid reference type:`,ref.type),assert$9(ref.type===`local`||ref.ancestor===`root`||ref.ancestor>0,`Link cannot reference itself`);let obj=this.clone();return obj.$_terms.link=[{ref}],obj}},relative:{method(enabled=!0){return this.$_setFlag(`relative`,enabled)}}},overrides:{concat(source){assert$9(this.$_terms.link,`Uninitialized link schema`),assert$9(Common$6.isSchema(source),`Invalid schema object`),assert$9(source.type!==`link`,`Cannot merge type link with another link`);let obj=this.clone();return obj.$_terms.whens||(obj.$_terms.whens=[]),obj.$_terms.whens.push({concat:source}),obj.$_mutateRebuild()}},manifest:{build(obj,desc$1){return assert$9(desc$1.link,`Invalid link description missing link`),obj.ref(desc$1.link)}}}),internals$7.generate=function(schema,value,state,prefs){let linked=state.mainstay.links.get(schema);if(linked)return linked._generate(value,state,prefs).schema;let ref=schema.$_terms.link[0].ref,{perspective,path}=internals$7.perspective(ref,state);internals$7.assert(perspective,`which is outside of schema boundaries`,ref,schema,state,prefs);try{linked=path.length?perspective.$_reach(path):perspective}catch{internals$7.assert(!1,`to non-existing schema`,ref,schema,state,prefs)}return internals$7.assert(linked.type!==`link`,`which is another link`,ref,schema,state,prefs),schema._flags.relative||state.mainstay.links.set(schema,linked),linked._generate(value,state,prefs).schema},internals$7.perspective=function(ref,state){if(ref.type===`local`){for(let{schema,key}of state.schemas){let id=schema._flags.id||key;if(id===ref.path[0])return{perspective:schema,path:ref.path.slice(1)};if(schema.$_terms.shared){for(let shared of schema.$_terms.shared)if(shared._flags.id===ref.path[0])return{perspective:shared,path:ref.path.slice(1)}}}return{perspective:null,path:null}}return ref.ancestor===`root`?{perspective:state.schemas[state.schemas.length-1].schema,path:ref.path}:{perspective:state.schemas[ref.ancestor]&&state.schemas[ref.ancestor].schema,path:ref.path}},internals$7.assert=function(condition,message,ref,schema,state,prefs){condition||assert$9(!1,`"${Errors$2.label(schema._flags,state,prefs)}" contains link reference "${ref.display}" ${message}`)}}),require_number=__commonJSMin((exports,module)=>{let{assert:assert$8}=require_lib$4(),Any$3=require_any(),Common$5=require_common(),internals$6={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/,decimalPlaces(value){let str=value.toString(),dindex=str.indexOf(`.`),eindex=str.indexOf(`e`);return(dindex<0?0:(eindex<0?str.length:eindex)-dindex-1)+(eindex<0?0:Math.max(0,-parseInt(str.slice(eindex+1))))}};module.exports=Any$3.extend({type:`number`,flags:{unsafe:{default:!1}},coerce:{from:`string`,method(value,{schema,error}){let matches=value.match(internals$6.numberRx);if(!matches)return;value=value.trim();let result={value:parseFloat(value)};if(result.value===0&&(result.value=0),!schema._flags.unsafe)if(value.match(/e/i)){if(internals$6.extractSignificantDigits(value)!==internals$6.extractSignificantDigits(String(result.value)))return result.errors=error(`number.unsafe`),result}else{let string=result.value.toString();if(string.match(/e/i))return result;if(string!==internals$6.normalizeDecimal(value))return result.errors=error(`number.unsafe`),result}return result}},validate(value,{schema,error,prefs}){if(value===1/0||value===-1/0)return{value,errors:error(`number.infinity`)};if(!Common$5.isNumber(value))return{value,errors:error(`number.base`)};let result={value};if(prefs.convert){let rule=schema.$_getRule(`precision`);if(rule){let precision=10**rule.args.limit;result.value=Math.round(result.value*precision)/precision}}return result.value===0&&(result.value=0),!schema._flags.unsafe&&(value>2**53-1||value<-(2**53-1))&&(result.errors=error(`number.unsafe`)),result},rules:{compare:{method:!1,validate(value,helpers,{limit},{name:name$1,operator,args:args$1}){return Common$5.compare(value,limit,operator)?value:helpers.error(`number.`+name$1,{limit:args$1.limit,value})},args:[{name:`limit`,ref:!0,assert:Common$5.isNumber,message:`must be a number`}]},greater:{method(limit){return this.$_addRule({name:`greater`,method:`compare`,args:{limit},operator:`>`})}},integer:{method(){return this.$_addRule(`integer`)},validate(value,helpers){return Math.trunc(value)-value===0?value:helpers.error(`number.integer`)}},less:{method(limit){return this.$_addRule({name:`less`,method:`compare`,args:{limit},operator:`<`})}},max:{method(limit){return this.$_addRule({name:`max`,method:`compare`,args:{limit},operator:`<=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`compare`,args:{limit},operator:`>=`})}},multiple:{method(base){let baseDecimalPlace=typeof base==`number`?internals$6.decimalPlaces(base):null,pfactor=10**baseDecimalPlace;return this.$_addRule({name:`multiple`,args:{base,baseDecimalPlace,pfactor}})},validate(value,helpers,{base,baseDecimalPlace,pfactor},options){let valueDecimalPlace=internals$6.decimalPlaces(value);return valueDecimalPlace>baseDecimalPlace?helpers.error(`number.multiple`,{multiple:options.args.base,value}):Math.round(pfactor*value)%Math.round(pfactor*base)===0?value:helpers.error(`number.multiple`,{multiple:options.args.base,value})},args:[{name:`base`,ref:!0,assert:value=>typeof value==`number`&&isFinite(value)&&value>0,message:`must be a positive number`},`baseDecimalPlace`,`pfactor`],multi:!0},negative:{method(){return this.sign(`negative`)}},port:{method(){return this.$_addRule(`port`)},validate(value,helpers){return Number.isSafeInteger(value)&&value>=0&&value<=65535?value:helpers.error(`number.port`)}},positive:{method(){return this.sign(`positive`)}},precision:{method(limit){return assert$8(Number.isSafeInteger(limit),`limit must be an integer`),this.$_addRule({name:`precision`,args:{limit}})},validate(value,helpers,{limit}){let places=value.toString().match(internals$6.precisionRx),decimals=Math.max((places[1]?places[1].length:0)-(places[2]?parseInt(places[2],10):0),0);return decimals<=limit?value:helpers.error(`number.precision`,{limit,value})},convert:!0},sign:{method(sign$1){return assert$8([`negative`,`positive`].includes(sign$1),`Invalid sign`,sign$1),this.$_addRule({name:`sign`,args:{sign:sign$1}})},validate(value,helpers,{sign:sign$1}){return sign$1===`negative`&&value<0||sign$1===`positive`&&value>0?value:helpers.error(`number.${sign$1}`)}},unsafe:{method(enabled=!0){return assert$8(typeof enabled==`boolean`,`enabled must be a boolean`),this.$_setFlag(`unsafe`,enabled)}}},cast:{string:{from:value=>typeof value==`number`,to(value,helpers){return value.toString()}}},messages:{"number.base":`{{#label}} must be a number`,"number.greater":`{{#label}} must be greater than {{#limit}}`,"number.infinity":`{{#label}} cannot be infinity`,"number.integer":`{{#label}} must be an integer`,"number.less":`{{#label}} must be less than {{#limit}}`,"number.max":`{{#label}} must be less than or equal to {{#limit}}`,"number.min":`{{#label}} must be greater than or equal to {{#limit}}`,"number.multiple":`{{#label}} must be a multiple of {{#multiple}}`,"number.negative":`{{#label}} must be a negative number`,"number.port":`{{#label}} must be a valid port`,"number.positive":`{{#label}} must be a positive number`,"number.precision":`{{#label}} must have no more than {{#limit}} decimal places`,"number.unsafe":`{{#label}} must be a safe number`}}),internals$6.extractSignificantDigits=function(value){return value.replace(internals$6.exponentialPartRegex,``).replace(internals$6.dotRegex,``).replace(internals$6.trailingZerosRegex,``).replace(internals$6.leadingSignAndZerosRegex,``)},internals$6.normalizeDecimal=function(str){return str=str.replace(/^\+/,``).replace(/\.0*$/,``).replace(/^(-?)\.([^\.]*)$/,`$10.$2`).replace(/^(-?)0+([0-9])/,`$1$2`),str.includes(`.`)&&str.endsWith(`0`)&&(str=str.replace(/0+$/,``)),str===`-0`?`0`:str}}),require_object=__commonJSMin((exports,module)=>{let Keys=require_keys();module.exports=Keys.extend({type:`object`,cast:{map:{from:value=>value&&typeof value==`object`,to(value,helpers){return new Map(Object.entries(value))}}}})});function toErr(msg,code$2,err$1){throw err$1=TypeError(msg),err$1.code=code$2,err$1}function invalid(str){toErr(`Invalid URL: `+str,`ERR_INVALID_URL`)}function args(both,len$2,x$1,y){x$1=`The "name" `,y=`argument`,both&&(x$1+=`and "value" `,y+=`s`),len$2<++both&&toErr(x$1+y+` must be specified`,`ERR_MISSING_ARGS`)}function toIter(arr,supported){var val,j$1=0,iter={next:function(){return val=arr[j$1++],{value:val,done:j$1>arr.length}}};return supported&&(iter[Symbol.iterator]=function(){return iter}),iter}function URLSearchParams(init,ref){var k,i$4,x$1,supp,tmp,$=this,list=[];try{supp=!!Symbol.iterator}catch{supp=!1}if(init){if(init.keys&&init.getAll)init.forEach(function(v,k$1){toAppend(k$1,v)});else if(init.pop)for(i$4=0;i$4<init.length;i$4++)toAppend.apply(0,init[i$4]);else if(typeof init==`object`)for(k in init)toSet(k,init[k]);else if(typeof init==`string`)for(init[0]==`?`&&(init=init.substring(1)),x$1=decodeURIComponent(init).split(`&`);k=x$1.shift();)i$4=k.indexOf(`=`),~i$4||(i$4=k.length),toAppend(k.substring(0,i$4),k.substring(++i$4))}function toSet(key,val){for(args(1,arguments.length),val=String(val),x$1=!1,i$4=list.length;i$4--;)tmp=list[i$4],tmp[0]==key&&(x$1?list.splice(i$4,1):(tmp[1]=val,x$1=!0));x$1||list.push([key,val]),cascade()}function toAppend(key,val){args(1,arguments.length),list.push([key,String(val)]),cascade()}function toStr$4(){for(tmp=``,i$4=0;i$4<list.length;i$4++)tmp&&(tmp+=`&`),tmp+=encodeURIComponent(list[i$4][0])+`=`+encodeURIComponent(list[i$4][1]);return tmp.replace(/%20/g,`+`)}function cascade(){ref&&(ref.search=list.length?`?`+toStr$4().replace(/=$/,``):``)}return $.append=toAppend,$.delete=function(key){for(args(0,arguments.length),i$4=list.length;i$4--;)list[i$4][0]==key&&list.splice(i$4,1);cascade()},$.entries=function(){return toIter(list,supp)},$.forEach=function(fn$1){for(typeof fn$1!=`function`&&toErr(`Callback must be a function`,`ERR_INVALID_CALLBACK`),i$4=0;i$4<list.length;i$4++)fn$1(list[i$4][1],list[i$4][0])},$.get=function(key){for(args(0,arguments.length),i$4=0;i$4<list.length;i$4++)if(list[i$4][0]==key)return list[i$4][1];return null},$.getAll=function(key){for(args(0,arguments.length),tmp=[],i$4=0;i$4<list.length;i$4++)list[i$4][0]==key&&tmp.push(list[i$4][1]);return tmp},$.has=function(key){for(args(0,arguments.length),i$4=0;i$4<list.length;i$4++)if(list[i$4][0]==key)return!0;return!1},$.keys=function(){for(tmp=[],i$4=0;i$4<list.length;i$4++)tmp.push(list[i$4][0]);return toIter(tmp,supp)},$.set=toSet,$.sort=function(){for(x$1=[],tmp=[],i$4=0;i$4<list.length;x$1.push(list[i$4++][0]));for(x$1.sort();k=x$1.shift();)for(i$4=0;i$4<list.length;i$4++)if(list[i$4][0]==k){tmp.push(list.splice(i$4,1).shift());break}list=tmp,cascade()},$.toString=toStr$4,$.values=function(){for(tmp=[],i$4=0;i$4<list.length;i$4++)tmp.push(list[i$4][1]);return toIter(tmp,supp)},supp&&($[Symbol.iterator]=$.entries),$}function URL$1(url,base){var tmp=document.createElement(`a`),link=document.createElement(`a`),input=document.createElement(`input`),segs,usp,$=this,rgx=/(blob|ftp|wss?|https?):/;if(input.type=`url`,base=String(base||``).trim(),(input.value=base)&&!input.checkValidity())return invalid(base);if(url=String(url).trim(),input.value=url||0,input.checkValidity())link.href=url;else if(base)link.href=base,url&&(usp=url.match(/^\/+/),usp&&usp[0].length==2?link.href=link.protocol+url:/[?#]/.test(url[0])?link.href+=url:url[0]==`/`||link.pathname==`/`?link.href=link.origin+`/`+url.replace(/^\/+/,``):(segs=link.pathname.split(`/`),base=url.replace(/^(\.\/)?/,``).split(`../`),link.href=link.origin+segs.slice(0,Math.max(1,segs.length-base.length)).concat(base.pop()).join(`/`)));else return invalid(url);function proxy(key){return tmp.href=link.href,tmp.protocol=`http:`,key==`protocol`||key==`href`||rgx.test(link.protocol)?link[key]:key==`origin`?rgx.test(link.protocol)?link[key]:`null`:tmp[key]}function block$1(key,readonly,getter,out){return out={enumerable:!0},readonly||(out.set=function(val){val!=null&&(link[key]=String(val),(key==`href`||key==`search`)&&(usp=new URLSearchParams(link.search,link)))}),out.get=getter||function(){return proxy(key)},out}return usp=new URLSearchParams(link.search,link),$.toString=$.toJSON=link.toString.bind(link),Object.defineProperties($,{href:block$1(`href`),protocol:block$1(`protocol`),username:block$1(`username`),password:block$1(`password`),hostname:block$1(`hostname`),host:block$1(`host`),port:block$1(`port`),search:block$1(`search`),hash:block$1(`hash`),pathname:block$1(`pathname`),origin:block$1(`origin`,1),searchParams:block$1(`searchParams`,1,function(){return usp})})}const errorCodes={EMPTY_STRING:`Address must be a non-empty string`,FORBIDDEN_UNICODE:`Address contains forbidden Unicode characters`,MULTIPLE_AT_CHAR:`Address cannot contain more than one @ character`,MISSING_AT_CHAR:`Address must contain one @ character`,EMPTY_LOCAL:`Address local part cannot be empty`,ADDRESS_TOO_LONG:`Address too long`,LOCAL_TOO_LONG:`Address local part too long`,EMPTY_LOCAL_SEGMENT:`Address local part contains empty dot-separated segment`,INVALID_LOCAL_CHARS:`Address local part contains invalid character`,DOMAIN_NON_EMPTY_STRING:`Domain must be a non-empty string`,DOMAIN_TOO_LONG:`Domain too long`,DOMAIN_INVALID_UNICODE_CHARS:`Domain contains forbidden Unicode characters`,DOMAIN_INVALID_CHARS:`Domain contains invalid character`,DOMAIN_INVALID_TLDS_CHARS:`Domain contains invalid tld character`,DOMAIN_SEGMENTS_COUNT:`Domain lacks the minimum required number of segments`,DOMAIN_SEGMENTS_COUNT_MAX:`Domain contains too many segments`,DOMAIN_FORBIDDEN_TLDS:`Domain uses forbidden TLD`,DOMAIN_EMPTY_SEGMENT:`Domain contains empty dot-separated segment`,DOMAIN_LONG_SEGMENT:`Domain contains dot-separated segment that is too long`};function errorCode(code$2){return{code:code$2,error:errorCodes[code$2]}}function isTldsAllow(tlds$1){return!!tlds$1.allow}function analyzeDomain(domain,options={}){if(!domain)return errorCode(`DOMAIN_NON_EMPTY_STRING`);if(typeof domain!=`string`)throw Error(`Invalid input: domain must be a string`);if(domain.length>256)return errorCode(`DOMAIN_TOO_LONG`);let ascii$2=!NON_ASCII_RX$1.test(domain);if(!ascii$2){if(options.allowUnicode===!1)return errorCode(`DOMAIN_INVALID_UNICODE_CHARS`);domain=domain.normalize(`NFC`)}if(DOMAIN_CONTROL_RX.test(domain))return errorCode(`DOMAIN_INVALID_CHARS`);domain=punycode(domain),options.allowFullyQualified&&domain[domain.length-1]===`.`&&(domain=domain.slice(0,-1));let minDomainSegments=options.minDomainSegments||MIN_DOMAIN_SEGMENTS,segments=domain.split(`.`);if(segments.length<minDomainSegments)return errorCode(`DOMAIN_SEGMENTS_COUNT`);if(options.maxDomainSegments&&segments.length>options.maxDomainSegments)return errorCode(`DOMAIN_SEGMENTS_COUNT_MAX`);let tlds$1=options.tlds;if(tlds$1){let tld=segments[segments.length-1].toLowerCase();if(isTldsAllow(tlds$1)){if(!tlds$1.allow.has(tld))return errorCode(`DOMAIN_FORBIDDEN_TLDS`)}else if(tlds$1.deny.has(tld))return errorCode(`DOMAIN_FORBIDDEN_TLDS`)}for(let i$4=0;i$4<segments.length;++i$4){let segment=segments[i$4];if(!segment.length)return errorCode(`DOMAIN_EMPTY_SEGMENT`);if(segment.length>63)return errorCode(`DOMAIN_LONG_SEGMENT`);if(i$4<segments.length-1){if(options.allowUnderscore){if(!DOMAIN_UNDERSCORE_SEGMENT_RX.test(segment))return errorCode(`DOMAIN_INVALID_CHARS`)}else if(!DOMAIN_SEGMENT_RX.test(segment))return errorCode(`DOMAIN_INVALID_CHARS`)}else if(!TLD_SEGMENT_RX.test(segment))return errorCode(`DOMAIN_INVALID_TLDS_CHARS`)}return null}function isDomainValid$1(domain,options){return!analyzeDomain(domain,options)}function punycode(domain){domain.includes(`%`)&&(domain=domain.replace(/%/g,`%25`));try{return new URL_IMPL(`http://${domain}`).host}catch{return domain}}function validateDomainOptions(options){if(options){if(typeof options.tlds!=`object`)throw Error(`Invalid options: tlds must be a boolean or an object`);if(isTldsAllow(options.tlds)){if(!(options.tlds.allow instanceof Set))throw Error(`Invalid options: tlds.allow must be a Set object or true`);if(options.tlds.deny)throw Error(`Invalid options: cannot specify both tlds.allow and tlds.deny lists`)}else if(!(options.tlds.deny instanceof Set))throw Error(`Invalid options: tlds.deny must be a Set object`)}}var MIN_DOMAIN_SEGMENTS,NON_ASCII_RX$1,DOMAIN_CONTROL_RX,TLD_SEGMENT_RX,DOMAIN_SEGMENT_RX,DOMAIN_UNDERSCORE_SEGMENT_RX,URL_IMPL,init_domain=__esmMin(()=>{MIN_DOMAIN_SEGMENTS=2,NON_ASCII_RX$1=/[^\x00-\x7f]/,DOMAIN_CONTROL_RX=/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,TLD_SEGMENT_RX=/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,DOMAIN_SEGMENT_RX=/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,DOMAIN_UNDERSCORE_SEGMENT_RX=/^[a-zA-Z0-9_](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL_IMPL=URL$1||URL}),require_shams$1=__commonJSMin((exports,module)=>{module.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var obj={},sym=Symbol(`test`),symObj=Object(sym);if(typeof sym==`string`||Object.prototype.toString.call(sym)!==`[object Symbol]`||Object.prototype.toString.call(symObj)!==`[object Symbol]`)return!1;var symVal=42;for(var _ in obj[sym]=symVal,obj)return!1;if(typeof Object.keys==`function`&&Object.keys(obj).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(obj).length!==0)return!1;var syms=Object.getOwnPropertySymbols(obj);if(syms.length!==1||syms[0]!==sym||!Object.prototype.propertyIsEnumerable.call(obj,sym))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var descriptor=Object.getOwnPropertyDescriptor(obj,sym);if(descriptor.value!==symVal||descriptor.enumerable!==!0)return!1}return!0}}),require_shams=__commonJSMin((exports,module)=>{var hasSymbols$1=require_shams$1();module.exports=function(){return hasSymbols$1()&&!!Symbol.toStringTag}}),require_es_object_atoms=__commonJSMin((exports,module)=>{module.exports=Object}),require_es_errors=__commonJSMin((exports,module)=>{module.exports=Error}),require_eval=__commonJSMin((exports,module)=>{module.exports=EvalError}),require_range$1=__commonJSMin((exports,module)=>{module.exports=RangeError}),require_ref$1=__commonJSMin((exports,module)=>{module.exports=ReferenceError}),require_syntax=__commonJSMin((exports,module)=>{module.exports=SyntaxError}),require_type=__commonJSMin((exports,module)=>{module.exports=TypeError}),require_uri=__commonJSMin((exports,module)=>{module.exports=URIError}),require_abs=__commonJSMin((exports,module)=>{module.exports=Math.abs}),require_floor=__commonJSMin((exports,module)=>{module.exports=Math.floor}),require_max=__commonJSMin((exports,module)=>{module.exports=Math.max}),require_min=__commonJSMin((exports,module)=>{module.exports=Math.min}),require_pow=__commonJSMin((exports,module)=>{module.exports=Math.pow}),require_round=__commonJSMin((exports,module)=>{module.exports=Math.round}),require_isNaN=__commonJSMin((exports,module)=>{module.exports=Number.isNaN||function(a){return a!==a}}),require_sign=__commonJSMin((exports,module)=>{var $isNaN=require_isNaN();module.exports=function(number){return $isNaN(number)||number===0?number:number<0?-1:1}}),require_gOPD=__commonJSMin((exports,module)=>{module.exports=Object.getOwnPropertyDescriptor}),require_gopd=__commonJSMin((exports,module)=>{var $gOPD$1=require_gOPD();if($gOPD$1)try{$gOPD$1([],`length`)}catch{$gOPD$1=null}module.exports=$gOPD$1}),require_es_define_property=__commonJSMin((exports,module)=>{var $defineProperty$4=Object.defineProperty||!1;if($defineProperty$4)try{$defineProperty$4({},`a`,{value:1})}catch{$defineProperty$4=!1}module.exports=$defineProperty$4}),require_has_symbols=__commonJSMin((exports,module)=>{var origSymbol=typeof Symbol<`u`&&Symbol,hasSymbolSham=require_shams$1();module.exports=function(){return typeof origSymbol!=`function`||typeof Symbol!=`function`||typeof origSymbol(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:hasSymbolSham()}}),require_Reflect_getPrototypeOf=__commonJSMin((exports,module)=>{module.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}),require_Object_getPrototypeOf=__commonJSMin((exports,module)=>{var $Object$2=require_es_object_atoms();module.exports=$Object$2.getPrototypeOf||null}),require_implementation=__commonJSMin((exports,module)=>{var ERROR_MESSAGE=`Function.prototype.bind called on incompatible `,toStr$3=Object.prototype.toString,max$2=Math.max,funcType=`[object Function]`,concatty=function(a,b){for(var arr=[],i$4=0;i$4<a.length;i$4+=1)arr[i$4]=a[i$4];for(var j$1=0;j$1<b.length;j$1+=1)arr[j$1+a.length]=b[j$1];return arr},slicy=function(arrLike,offset$2){for(var arr=[],i$4=offset$2||0,j$1=0;i$4<arrLike.length;i$4+=1,j$1+=1)arr[j$1]=arrLike[i$4];return arr},joiny=function(arr,joiner){for(var str=``,i$4=0;i$4<arr.length;i$4+=1)str+=arr[i$4],i$4+1<arr.length&&(str+=joiner);return str};module.exports=function(that){var target=this;if(typeof target!=`function`||toStr$3.apply(target)!==funcType)throw TypeError(ERROR_MESSAGE+target);for(var args$1=slicy(arguments,1),bound,binder=function(){if(this instanceof bound){var result=target.apply(this,concatty(args$1,arguments));return Object(result)===result?result:this}return target.apply(that,concatty(args$1,arguments))},boundLength=max$2(0,target.length-args$1.length),boundArgs=[],i$4=0;i$4<boundLength;i$4++)boundArgs[i$4]=`$`+i$4;if(bound=Function(`binder`,`return function (`+joiny(boundArgs,`,`)+`){ return binder.apply(this,arguments); }`)(binder),target.prototype){var Empty=function(){};Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null}return bound}}),require_function_bind=__commonJSMin((exports,module)=>{var implementation=require_implementation();module.exports=Function.prototype.bind||implementation}),require_functionCall=__commonJSMin((exports,module)=>{module.exports=Function.prototype.call}),require_functionApply=__commonJSMin((exports,module)=>{module.exports=Function.prototype.apply}),require_reflectApply=__commonJSMin((exports,module)=>{module.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}),require_actualApply=__commonJSMin((exports,module)=>{var bind$4=require_function_bind(),$apply$2=require_functionApply(),$call$2=require_functionCall(),$reflectApply=require_reflectApply();module.exports=$reflectApply||bind$4.call($call$2,$apply$2)}),require_call_bind_apply_helpers=__commonJSMin((exports,module)=>{var bind$3=require_function_bind(),$TypeError$4=require_type(),$call$1=require_functionCall(),$actualApply=require_actualApply();module.exports=function(args$1){if(args$1.length<1||typeof args$1[0]!=`function`)throw new $TypeError$4(`a function is required`);return $actualApply(bind$3,$call$1,args$1)}}),require_get=__commonJSMin((exports,module)=>{var callBind$1=require_call_bind_apply_helpers(),gOPD$3=require_gopd(),hasProtoAccessor;try{hasProtoAccessor=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var desc=!!hasProtoAccessor&&gOPD$3&&gOPD$3(Object.prototype,`__proto__`),$Object$1=Object,$getPrototypeOf=$Object$1.getPrototypeOf;module.exports=desc&&typeof desc.get==`function`?callBind$1([desc.get]):typeof $getPrototypeOf==`function`?function(value){return $getPrototypeOf(value==null?value:$Object$1(value))}:!1}),require_get_proto=__commonJSMin((exports,module)=>{var reflectGetProto=require_Reflect_getPrototypeOf(),originalGetProto=require_Object_getPrototypeOf(),getDunderProto=require_get();module.exports=reflectGetProto?function(O){return reflectGetProto(O)}:originalGetProto?function(O){if(!O||typeof O!=`object`&&typeof O!=`function`)throw TypeError(`getProto: not an object`);return originalGetProto(O)}:getDunderProto?function(O){return getDunderProto(O)}:null}),require_hasown=__commonJSMin((exports,module)=>{var call=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind$2=require_function_bind();module.exports=bind$2.call(call,$hasOwn)}),require_get_intrinsic=__commonJSMin((exports,module)=>{var undefined$1,$Object=require_es_object_atoms(),$Error=require_es_errors(),$EvalError=require_eval(),$RangeError=require_range$1(),$ReferenceError=require_ref$1(),$SyntaxError$1=require_syntax(),$TypeError$3=require_type(),$URIError=require_uri(),abs=require_abs(),floor=require_floor(),max$1=require_max(),min=require_min(),pow=require_pow(),round$1=require_round(),sign=require_sign(),$Function=Function,getEvalledConstructor=function(expressionSyntax){try{return $Function(`"use strict"; return (`+expressionSyntax+`).constructor;`)()}catch{}},$gOPD=require_gopd(),$defineProperty$3=require_es_define_property(),throwTypeError=function(){throw new $TypeError$3},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,`callee`).get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=require_has_symbols()(),getProto$2=require_get_proto(),$ObjectGPO=require_Object_getPrototypeOf(),$ReflectGPO=require_Reflect_getPrototypeOf(),$apply$1=require_functionApply(),$call=require_functionCall(),needsEval={},TypedArray=typeof Uint8Array>`u`||!getProto$2?undefined$1:getProto$2(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto$2?getProto$2([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>`u`?undefined$1:Atomics,"%BigInt%":typeof BigInt>`u`?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float16Array%":typeof Float16Array>`u`?undefined$1:Float16Array,"%Float32Array%":typeof Float32Array>`u`?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>`u`?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>`u`?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>`u`?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>`u`?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto$2?getProto$2(getProto$2([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON==`object`?JSON:undefined$1,"%Map%":typeof Map>`u`?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>`u`||!hasSymbols||!getProto$2?undefined$1:getProto$2(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":$Object,"%Object.getOwnPropertyDescriptor%":$gOPD,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?undefined$1:Promise,"%Proxy%":typeof Proxy>`u`?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>`u`?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>`u`||!hasSymbols||!getProto$2?undefined$1:getProto$2(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto$2?getProto$2(``[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$3,"%Uint8Array%":typeof Uint8Array>`u`?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>`u`?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>`u`?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>`u`?undefined$1:WeakSet,"%Function.prototype.call%":$call,"%Function.prototype.apply%":$apply$1,"%Object.defineProperty%":$defineProperty$3,"%Object.getPrototypeOf%":$ObjectGPO,"%Math.abs%":abs,"%Math.floor%":floor,"%Math.max%":max$1,"%Math.min%":min,"%Math.pow%":pow,"%Math.round%":round$1,"%Math.sign%":sign,"%Reflect.getPrototypeOf%":$ReflectGPO};if(getProto$2)try{null.error}catch(e){var errorProto=getProto$2(getProto$2(e));INTRINSICS[`%Error.prototype%`]=errorProto}var doEval=function doEval$1(name$1){var value;if(name$1===`%AsyncFunction%`)value=getEvalledConstructor(`async function () {}`);else if(name$1===`%GeneratorFunction%`)value=getEvalledConstructor(`function* () {}`);else if(name$1===`%AsyncGeneratorFunction%`)value=getEvalledConstructor(`async function* () {}`);else if(name$1===`%AsyncGenerator%`){var fn$1=doEval$1(`%AsyncGeneratorFunction%`);fn$1&&(value=fn$1.prototype)}else if(name$1===`%AsyncIteratorPrototype%`){var gen=doEval$1(`%AsyncGenerator%`);gen&&getProto$2&&(value=getProto$2(gen.prototype))}return INTRINSICS[name$1]=value,value},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},bind$1=require_function_bind(),hasOwn$1=require_hasown(),$concat=bind$1.call($call,Array.prototype.concat),$spliceApply=bind$1.call($apply$1,Array.prototype.splice),$replace=bind$1.call($call,String.prototype.replace),$strSlice=bind$1.call($call,String.prototype.slice),$exec$2=bind$1.call($call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(string){var first=$strSlice(string,0,1),last=$strSlice(string,-1);if(first===`%`&&last!==`%`)throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(last===`%`&&first!==`%`)throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var result=[];return $replace(string,rePropName,function(match$2,number,quote,subString){result[result.length]=quote?$replace(subString,reEscapeChar,`$1`):number||match$2}),result},getBaseIntrinsic=function(name$1,allowMissing){var intrinsicName=name$1,alias;if(hasOwn$1(LEGACY_ALIASES,intrinsicName)&&(alias=LEGACY_ALIASES[intrinsicName],intrinsicName=`%`+alias[0]+`%`),hasOwn$1(INTRINSICS,intrinsicName)){var value=INTRINSICS[intrinsicName];if(value===needsEval&&(value=doEval(intrinsicName)),value===void 0&&!allowMissing)throw new $TypeError$3(`intrinsic `+name$1+` exists, but is not available. Please file an issue!`);return{alias,name:intrinsicName,value}}throw new $SyntaxError$1(`intrinsic `+name$1+` does not exist!`)};module.exports=function(name$1,allowMissing){if(typeof name$1!=`string`||name$1.length===0)throw new $TypeError$3(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof allowMissing!=`boolean`)throw new $TypeError$3(`"allowMissing" argument must be a boolean`);if($exec$2(/^%?[^%]*%?$/,name$1)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var parts=stringToPath(name$1),intrinsicBaseName=parts.length>0?parts[0]:``,intrinsic=getBaseIntrinsic(`%`+intrinsicBaseName+`%`,allowMissing),intrinsicRealName=intrinsic.name,value=intrinsic.value,skipFurtherCaching=!1,alias=intrinsic.alias;alias&&(intrinsicBaseName=alias[0],$spliceApply(parts,$concat([0,1],alias)));for(var i$4=1,isOwn=!0;i$4<parts.length;i$4+=1){var part=parts[i$4],first=$strSlice(part,0,1),last=$strSlice(part,-1);if((first===`"`||first===`'`||first==="`"||last===`"`||last===`'`||last==="`")&&first!==last)throw new $SyntaxError$1(`property names with quotes must have matching quotes`);if((part===`constructor`||!isOwn)&&(skipFurtherCaching=!0),intrinsicBaseName+=`.`+part,intrinsicRealName=`%`+intrinsicBaseName+`%`,hasOwn$1(INTRINSICS,intrinsicRealName))value=INTRINSICS[intrinsicRealName];else if(value!=null){if(!(part in value)){if(!allowMissing)throw new $TypeError$3(`base intrinsic for `+name$1+` exists, but the property is not available.`);return}if($gOPD&&i$4+1>=parts.length){var desc$1=$gOPD(value,part);isOwn=!!desc$1,value=isOwn&&`get`in desc$1&&!(`originalValue`in desc$1.get)?desc$1.get:value[part]}else isOwn=hasOwn$1(value,part),value=value[part];isOwn&&!skipFurtherCaching&&(INTRINSICS[intrinsicRealName]=value)}}return value}}),require_call_bound=__commonJSMin((exports,module)=>{var GetIntrinsic$1=require_get_intrinsic(),callBindBasic$1=require_call_bind_apply_helpers(),$indexOf$1=callBindBasic$1([GetIntrinsic$1(`%String.prototype.indexOf%`)]);module.exports=function(name$1,allowMissing){var intrinsic=GetIntrinsic$1(name$1,!!allowMissing);return typeof intrinsic==`function`&&$indexOf$1(name$1,`.prototype.`)>-1?callBindBasic$1([intrinsic]):intrinsic}}),require_is_arguments=__commonJSMin((exports,module)=>{var hasToStringTag$4=require_shams()(),callBound$4=require_call_bound(),$toString$2=callBound$4(`Object.prototype.toString`),isStandardArguments=function(value){return hasToStringTag$4&&value&&typeof value==`object`&&Symbol.toStringTag in value?!1:$toString$2(value)===`[object Arguments]`},isLegacyArguments=function(value){return isStandardArguments(value)?!0:typeof value==`object`&&!!value&&`length`in value&&typeof value.length==`number`&&value.length>=0&&$toString$2(value)!==`[object Array]`&&`callee`in value&&$toString$2(value.callee)===`[object Function]`},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments,module.exports=supportsStandardArguments?isStandardArguments:isLegacyArguments}),require_is_regex=__commonJSMin((exports,module)=>{var callBound$3=require_call_bound(),hasToStringTag$3=require_shams()(),hasOwn=require_hasown(),gOPD$2=require_gopd(),fn;if(hasToStringTag$3){var $exec$1=callBound$3(`RegExp.prototype.exec`),isRegexMarker={},throwRegexMarker=function(){throw isRegexMarker},badStringifier={toString:throwRegexMarker,valueOf:throwRegexMarker};typeof Symbol.toPrimitive==`symbol`&&(badStringifier[Symbol.toPrimitive]=throwRegexMarker),fn=function(value){if(!value||typeof value!=`object`)return!1;var descriptor=gOPD$2(value,`lastIndex`),hasLastIndexDataProperty=descriptor&&hasOwn(descriptor,`value`);if(!hasLastIndexDataProperty)return!1;try{$exec$1(value,badStringifier)}catch(e){return e===isRegexMarker}}}else{var $toString$1=callBound$3(`Object.prototype.toString`),regexClass=`[object RegExp]`;fn=function(value){return!value||typeof value!=`object`&&typeof value!=`function`?!1:$toString$1(value)===regexClass}}module.exports=fn}),require_safe_regex_test=__commonJSMin((exports,module)=>{var callBound$2=require_call_bound(),isRegex=require_is_regex(),$exec=callBound$2(`RegExp.prototype.exec`),$TypeError$2=require_type();module.exports=function(regex){if(!isRegex(regex))throw new $TypeError$2("`regex` must be a RegExp");return function(s$2){return $exec(regex,s$2)!==null}}}),require_is_generator_function=__commonJSMin((exports,module)=>{var callBound$1=require_call_bound(),safeRegexTest=require_safe_regex_test(),isFnRegex=safeRegexTest(/^\s*(?:function)?\*/),hasToStringTag$2=require_shams()(),getProto$1=require_get_proto(),toStr$2=callBound$1(`Object.prototype.toString`),fnToStr$1=callBound$1(`Function.prototype.toString`),getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function(`return function*() {}`)()}catch{}},GeneratorFunction;module.exports=function(fn$1){if(typeof fn$1!=`function`)return!1;if(isFnRegex(fnToStr$1(fn$1)))return!0;if(!hasToStringTag$2){var str=toStr$2(fn$1);return str===`[object GeneratorFunction]`}if(!getProto$1)return!1;if(GeneratorFunction===void 0){var generatorFunc=getGeneratorFunc();GeneratorFunction=generatorFunc?getProto$1(generatorFunc):!1}return getProto$1(fn$1)===GeneratorFunction}}),require_is_callable=__commonJSMin((exports,module)=>{var fnToStr=Function.prototype.toString,reflectApply=typeof Reflect==`object`&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply==`function`&&typeof Object.defineProperty==`function`)try{badArrayLike=Object.defineProperty({},`length`,{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(_){_!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(value){try{var fnStr=fnToStr.call(value);return constructorRegex.test(fnStr)}catch{return!1}},tryFunctionObject=function(value){try{return isES6ClassFn(value)?!1:(fnToStr.call(value),!0)}catch{return!1}},toStr$1=Object.prototype.toString,objectClass=`[object Object]`,fnClass=`[object Function]`,genClass=`[object GeneratorFunction]`,ddaClass=`[object HTMLAllCollection]`,ddaClass2=`[object HTML document.all class]`,ddaClass3=`[object HTMLCollection]`,hasToStringTag$1=typeof Symbol==`function`&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document==`object`){var all=document.all;toStr$1.call(all)===toStr$1.call(document.all)&&(isDDA=function(value){if((isIE68||!value)&&(value===void 0||typeof value==`object`))try{var str=toStr$1.call(value);return(str===ddaClass||str===ddaClass2||str===ddaClass3||str===objectClass)&&value(``)==null}catch{}return!1})}module.exports=reflectApply?function(value){if(isDDA(value))return!0;if(!value||typeof value!=`function`&&typeof value!=`object`)return!1;try{reflectApply(value,null,badArrayLike)}catch(e){if(e!==isCallableMarker)return!1}return!isES6ClassFn(value)&&tryFunctionObject(value)}:function(value){if(isDDA(value))return!0;if(!value||typeof value!=`function`&&typeof value!=`object`)return!1;if(hasToStringTag$1)return tryFunctionObject(value);if(isES6ClassFn(value))return!1;var strClass=toStr$1.call(value);return strClass!==fnClass&&strClass!==genClass&&!/^\[object HTML/.test(strClass)?!1:tryFunctionObject(value)}}),require_for_each=__commonJSMin((exports,module)=>{var isCallable=require_is_callable(),toStr=Object.prototype.toString,hasOwnProperty$3=Object.prototype.hasOwnProperty,forEachArray=function(array,iterator,receiver){for(var i$4=0,len$2=array.length;i$4<len$2;i$4++)hasOwnProperty$3.call(array,i$4)&&(receiver==null?iterator(array[i$4],i$4,array):iterator.call(receiver,array[i$4],i$4,array))},forEachString=function(string,iterator,receiver){for(var i$4=0,len$2=string.length;i$4<len$2;i$4++)receiver==null?iterator(string.charAt(i$4),i$4,string):iterator.call(receiver,string.charAt(i$4),i$4,string)},forEachObject=function(object,iterator,receiver){for(var k in object)hasOwnProperty$3.call(object,k)&&(receiver==null?iterator(object[k],k,object):iterator.call(receiver,object[k],k,object))};function isArray$1(x$1){return toStr.call(x$1)===`[object Array]`}module.exports=function(list,iterator,thisArg){if(!isCallable(iterator))throw TypeError(`iterator must be a function`);var receiver;arguments.length>=3&&(receiver=thisArg),isArray$1(list)?forEachArray(list,iterator,receiver):typeof list==`string`?forEachString(list,iterator,receiver):forEachObject(list,iterator,receiver)}}),require_possible_typed_array_names=__commonJSMin((exports,module)=>{module.exports=[`Float16Array`,`Float32Array`,`Float64Array`,`Int8Array`,`Int16Array`,`Int32Array`,`Uint8Array`,`Uint8ClampedArray`,`Uint16Array`,`Uint32Array`,`BigInt64Array`,`BigUint64Array`]}),require_available_typed_arrays=__commonJSMin((exports,module)=>{var possibleNames=require_possible_typed_array_names(),g$1=typeof globalThis>`u`?global:globalThis;module.exports=function(){for(var out=[],i$4=0;i$4<possibleNames.length;i$4++)typeof g$1[possibleNames[i$4]]==`function`&&(out[out.length]=possibleNames[i$4]);return out}}),require_define_data_property=__commonJSMin((exports,module)=>{var $defineProperty$2=require_es_define_property(),$SyntaxError=require_syntax(),$TypeError$1=require_type(),gopd=require_gopd();module.exports=function(obj,property,value){if(!obj||typeof obj!=`object`&&typeof obj!=`function`)throw new $TypeError$1("`obj` must be an object or a function`");if(typeof property!=`string`&&typeof property!=`symbol`)throw new $TypeError$1("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=`boolean`&&arguments[3]!==null)throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=`boolean`&&arguments[4]!==null)throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=`boolean`&&arguments[5]!==null)throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=`boolean`)throw new $TypeError$1("`loose`, if provided, must be a boolean");var nonEnumerable=arguments.length>3?arguments[3]:null,nonWritable=arguments.length>4?arguments[4]:null,nonConfigurable=arguments.length>5?arguments[5]:null,loose=arguments.length>6?arguments[6]:!1,desc$1=!!gopd&&gopd(obj,property);if($defineProperty$2)$defineProperty$2(obj,property,{configurable:nonConfigurable===null&&desc$1?desc$1.configurable:!nonConfigurable,enumerable:nonEnumerable===null&&desc$1?desc$1.enumerable:!nonEnumerable,value,writable:nonWritable===null&&desc$1?desc$1.writable:!nonWritable});else if(loose||!nonEnumerable&&!nonWritable&&!nonConfigurable)obj[property]=value;else throw new $SyntaxError(`This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.`)}}),require_has_property_descriptors=__commonJSMin((exports,module)=>{var $defineProperty$1=require_es_define_property(),hasPropertyDescriptors=function(){return!!$defineProperty$1};hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!$defineProperty$1)return null;try{return $defineProperty$1([],`length`,{value:1}).length!==1}catch{return!0}},module.exports=hasPropertyDescriptors}),require_set_function_length=__commonJSMin((exports,module)=>{var GetIntrinsic=require_get_intrinsic(),define$1=require_define_data_property(),hasDescriptors=require_has_property_descriptors()(),gOPD$1=require_gopd(),$TypeError=require_type(),$floor=GetIntrinsic(`%Math.floor%`);module.exports=function(fn$1,length){if(typeof fn$1!=`function`)throw new $TypeError("`fn` is not a function");if(typeof length!=`number`||length<0||length>4294967295||$floor(length)!==length)throw new $TypeError("`length` must be a positive 32-bit integer");var loose=arguments.length>2&&!!arguments[2],functionLengthIsConfigurable=!0,functionLengthIsWritable=!0;if(`length`in fn$1&&gOPD$1){var desc$1=gOPD$1(fn$1,`length`);desc$1&&!desc$1.configurable&&(functionLengthIsConfigurable=!1),desc$1&&!desc$1.writable&&(functionLengthIsWritable=!1)}return(functionLengthIsConfigurable||functionLengthIsWritable||!loose)&&(hasDescriptors?define$1(fn$1,`length`,length,!0,!0):define$1(fn$1,`length`,length)),fn$1}}),require_applyBind=__commonJSMin((exports,module)=>{var bind=require_function_bind(),$apply=require_functionApply(),actualApply=require_actualApply();module.exports=function(){return actualApply(bind,$apply,arguments)}}),require_call_bind=__commonJSMin((exports,module)=>{var setFunctionLength=require_set_function_length(),$defineProperty=require_es_define_property(),callBindBasic=require_call_bind_apply_helpers(),applyBind=require_applyBind();module.exports=function(originalFunction){var func=callBindBasic(arguments),adjustedLength=originalFunction.length-(arguments.length-1);return setFunctionLength(func,1+(adjustedLength>0?adjustedLength:0),!0)},$defineProperty?$defineProperty(module.exports,`apply`,{value:applyBind}):module.exports.apply=applyBind}),require_which_typed_array=__commonJSMin((exports,module)=>{var forEach=require_for_each(),availableTypedArrays=require_available_typed_arrays(),callBind=require_call_bind(),callBound=require_call_bound(),gOPD=require_gopd(),getProto=require_get_proto(),$toString=callBound(`Object.prototype.toString`),hasToStringTag=require_shams()(),g=typeof globalThis>`u`?global:globalThis,typedArrays=availableTypedArrays(),$slice=callBound(`String.prototype.slice`),$indexOf=callBound(`Array.prototype.indexOf`,!0)||function(array,value){for(var i$4=0;i$4<array.length;i$4+=1)if(array[i$4]===value)return i$4;return-1},cache$1={__proto__:null};hasToStringTag&&gOPD&&getProto?forEach(typedArrays,function(typedArray){var arr=new g[typedArray];if(Symbol.toStringTag in arr&&getProto){var proto=getProto(arr),descriptor=gOPD(proto,Symbol.toStringTag);if(!descriptor&&proto){var superProto=getProto(proto);descriptor=gOPD(superProto,Symbol.toStringTag)}cache$1[`$`+typedArray]=callBind(descriptor.get)}}):forEach(typedArrays,function(typedArray){var arr=new g[typedArray],fn$1=arr.slice||arr.set;fn$1&&(cache$1[`$`+typedArray]=callBind(fn$1))});var tryTypedArrays=function(value){var found=!1;return forEach(cache$1,function(getter,typedArray){if(!found)try{`$`+getter(value)===typedArray&&(found=$slice(typedArray,1))}catch{}}),found},trySlices=function(value){var found=!1;return forEach(cache$1,function(getter,name$1){if(!found)try{getter(value),found=$slice(name$1,1)}catch{}}),found};module.exports=function(value){if(!value||typeof value!=`object`)return!1;if(!hasToStringTag){var tag=$slice($toString(value),8,-1);return $indexOf(typedArrays,tag)>-1?tag:tag===`Object`?trySlices(value):!1}return gOPD?tryTypedArrays(value):null}}),require_is_typed_array=__commonJSMin((exports,module)=>{var whichTypedArray$1=require_which_typed_array();module.exports=function(value){return!!whichTypedArray$1(value)}}),require_types=__commonJSMin(exports=>{var isArgumentsObject=require_is_arguments(),isGeneratorFunction=require_is_generator_function(),whichTypedArray=require_which_typed_array(),isTypedArray=require_is_typed_array();function uncurryThis(f){return f.call.bind(f)}var BigIntSupported=typeof BigInt<`u`,SymbolSupported=typeof Symbol<`u`,ObjectToString=uncurryThis(Object.prototype.toString),numberValue=uncurryThis(Number.prototype.valueOf),stringValue=uncurryThis(String.prototype.valueOf),booleanValue=uncurryThis(Boolean.prototype.valueOf);if(BigIntSupported)var bigIntValue=uncurryThis(BigInt.prototype.valueOf);if(SymbolSupported)var symbolValue=uncurryThis(Symbol.prototype.valueOf);function checkBoxedPrimitive(value,prototypeValueOf){if(typeof value!=`object`)return!1;try{return prototypeValueOf(value),!0}catch{return!1}}exports.isArgumentsObject=isArgumentsObject,exports.isGeneratorFunction=isGeneratorFunction,exports.isTypedArray=isTypedArray;function isPromise(input){return typeof Promise<`u`&&input instanceof Promise||typeof input==`object`&&!!input&&typeof input.then==`function`&&typeof input.catch==`function`}exports.isPromise=isPromise;function isArrayBufferView(value){return typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(value):isTypedArray(value)||isDataView(value)}exports.isArrayBufferView=isArrayBufferView;function isUint8Array(value){return whichTypedArray(value)===`Uint8Array`}exports.isUint8Array=isUint8Array;function isUint8ClampedArray(value){return whichTypedArray(value)===`Uint8ClampedArray`}exports.isUint8ClampedArray=isUint8ClampedArray;function isUint16Array(value){return whichTypedArray(value)===`Uint16Array`}exports.isUint16Array=isUint16Array;function isUint32Array(value){return whichTypedArray(value)===`Uint32Array`}exports.isUint32Array=isUint32Array;function isInt8Array(value){return whichTypedArray(value)===`Int8Array`}exports.isInt8Array=isInt8Array;function isInt16Array(value){return whichTypedArray(value)===`Int16Array`}exports.isInt16Array=isInt16Array;function isInt32Array(value){return whichTypedArray(value)===`Int32Array`}exports.isInt32Array=isInt32Array;function isFloat32Array(value){return whichTypedArray(value)===`Float32Array`}exports.isFloat32Array=isFloat32Array;function isFloat64Array(value){return whichTypedArray(value)===`Float64Array`}exports.isFloat64Array=isFloat64Array;function isBigInt64Array(value){return whichTypedArray(value)===`BigInt64Array`}exports.isBigInt64Array=isBigInt64Array;function isBigUint64Array(value){return whichTypedArray(value)===`BigUint64Array`}exports.isBigUint64Array=isBigUint64Array;function isMapToString(value){return ObjectToString(value)===`[object Map]`}isMapToString.working=typeof Map<`u`&&isMapToString(new Map);function isMap(value){return typeof Map>`u`?!1:isMapToString.working?isMapToString(value):value instanceof Map}exports.isMap=isMap;function isSetToString(value){return ObjectToString(value)===`[object Set]`}isSetToString.working=typeof Set<`u`&&isSetToString(new Set);function isSet(value){return typeof Set>`u`?!1:isSetToString.working?isSetToString(value):value instanceof Set}exports.isSet=isSet;function isWeakMapToString(value){return ObjectToString(value)===`[object WeakMap]`}isWeakMapToString.working=typeof WeakMap<`u`&&isWeakMapToString(new WeakMap);function isWeakMap(value){return typeof WeakMap>`u`?!1:isWeakMapToString.working?isWeakMapToString(value):value instanceof WeakMap}exports.isWeakMap=isWeakMap;function isWeakSetToString(value){return ObjectToString(value)===`[object WeakSet]`}isWeakSetToString.working=typeof WeakSet<`u`&&isWeakSetToString(new WeakSet);function isWeakSet(value){return isWeakSetToString(value)}exports.isWeakSet=isWeakSet;function isArrayBufferToString(value){return ObjectToString(value)===`[object ArrayBuffer]`}isArrayBufferToString.working=typeof ArrayBuffer<`u`&&isArrayBufferToString(new ArrayBuffer);function isArrayBuffer(value){return typeof ArrayBuffer>`u`?!1:isArrayBufferToString.working?isArrayBufferToString(value):value instanceof ArrayBuffer}exports.isArrayBuffer=isArrayBuffer;function isDataViewToString(value){return ObjectToString(value)===`[object DataView]`}isDataViewToString.working=typeof ArrayBuffer<`u`&&typeof DataView<`u`&&isDataViewToString(new DataView(new ArrayBuffer(1),0,1));function isDataView(value){return typeof DataView>`u`?!1:isDataViewToString.working?isDataViewToString(value):value instanceof DataView}exports.isDataView=isDataView;var SharedArrayBufferCopy=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:void 0;function isSharedArrayBufferToString(value){return ObjectToString(value)===`[object SharedArrayBuffer]`}function isSharedArrayBuffer(value){return SharedArrayBufferCopy===void 0?!1:(isSharedArrayBufferToString.working===void 0&&(isSharedArrayBufferToString.working=isSharedArrayBufferToString(new SharedArrayBufferCopy)),isSharedArrayBufferToString.working?isSharedArrayBufferToString(value):value instanceof SharedArrayBufferCopy)}exports.isSharedArrayBuffer=isSharedArrayBuffer;function isAsyncFunction(value){return ObjectToString(value)===`[object AsyncFunction]`}exports.isAsyncFunction=isAsyncFunction;function isMapIterator(value){return ObjectToString(value)===`[object Map Iterator]`}exports.isMapIterator=isMapIterator;function isSetIterator(value){return ObjectToString(value)===`[object Set Iterator]`}exports.isSetIterator=isSetIterator;function isGeneratorObject(value){return ObjectToString(value)===`[object Generator]`}exports.isGeneratorObject=isGeneratorObject;function isWebAssemblyCompiledModule(value){return ObjectToString(value)===`[object WebAssembly.Module]`}exports.isWebAssemblyCompiledModule=isWebAssemblyCompiledModule;function isNumberObject(value){return checkBoxedPrimitive(value,numberValue)}exports.isNumberObject=isNumberObject;function isStringObject(value){return checkBoxedPrimitive(value,stringValue)}exports.isStringObject=isStringObject;function isBooleanObject(value){return checkBoxedPrimitive(value,booleanValue)}exports.isBooleanObject=isBooleanObject;function isBigIntObject(value){return BigIntSupported&&checkBoxedPrimitive(value,bigIntValue)}exports.isBigIntObject=isBigIntObject;function isSymbolObject(value){return SymbolSupported&&checkBoxedPrimitive(value,symbolValue)}exports.isSymbolObject=isSymbolObject;function isBoxedPrimitive(value){return isNumberObject(value)||isStringObject(value)||isBooleanObject(value)||isBigIntObject(value)||isSymbolObject(value)}exports.isBoxedPrimitive=isBoxedPrimitive;function isAnyArrayBuffer(value){return typeof Uint8Array<`u`&&(isArrayBuffer(value)||isSharedArrayBuffer(value))}exports.isAnyArrayBuffer=isAnyArrayBuffer,[`isProxy`,`isExternal`,`isModuleNamespaceObject`].forEach(function(method){Object.defineProperty(exports,method,{enumerable:!1,value:function(){throw Error(method+` is not supported in userland`)}})})}),require_isBuffer=__commonJSMin((exports,module)=>{init_dist$1(),module.exports=function(arg){return arg instanceof Buffer$1}}),require_inherits_browser=__commonJSMin((exports,module)=>{typeof Object.create==`function`?module.exports=function(ctor,superCtor){superCtor&&(ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}}))}:module.exports=function(ctor,superCtor){if(superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}}}),require_inherits=__commonJSMin((exports,module)=>{try{var util=require_util();if(typeof util.inherits!=`function`)throw``;module.exports=util.inherits}catch{module.exports=require_inherits_browser()}}),require_util=__commonJSMin(exports=>{init_dist();var getOwnPropertyDescriptors=Object.getOwnPropertyDescriptors||function(obj){for(var keys=Object.keys(obj),descriptors={},i$4=0;i$4<keys.length;i$4++)descriptors[keys[i$4]]=Object.getOwnPropertyDescriptor(obj,keys[i$4]);return descriptors},formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString$2(f)){for(var objects=[],i$4=0;i$4<arguments.length;i$4++)objects.push(inspect(arguments[i$4]));return objects.join(` `)}for(var i$4=1,args$1=arguments,len$2=args$1.length,str=String(f).replace(formatRegExp,function(x$2){if(x$2===`%%`)return`%`;if(i$4>=len$2)return x$2;switch(x$2){case`%s`:return String(args$1[i$4++]);case`%d`:return Number(args$1[i$4++]);case`%j`:try{return JSON.stringify(args$1[i$4++])}catch{return`[Circular]`}default:return x$2}}),x$1=args$1[i$4];i$4<len$2;x$1=args$1[++i$4])isNull(x$1)||!isObject(x$1)?str+=` `+x$1:str+=` `+inspect(x$1);return str},exports.deprecate=function(fn$1,msg){if(process$1!==void 0&&process$1.noDeprecation===!0)return fn$1;if(process$1===void 0)return function(){return exports.deprecate(fn$1,msg).apply(this,arguments)};var warned=!1;function deprecated(){if(!warned){if(process$1.throwDeprecation)throw Error(msg);process$1.traceDeprecation?console.trace(msg):console.error(msg),warned=!0}return fn$1.apply(this,arguments)}return deprecated};var debugs={},debugEnvRegex=/^$/;if(process$1.env.NODE_DEBUG){var debugEnv=process$1.env.NODE_DEBUG;debugEnv=debugEnv.replace(/[|\\{}()[\]^$+?.]/g,`\\$&`).replace(/\*/g,`.*`).replace(/,/g,`$|^`).toUpperCase(),debugEnvRegex=RegExp(`^`+debugEnv+`$`,`i`)}exports.debuglog=function(set){if(set=set.toUpperCase(),!debugs[set])if(debugEnvRegex.test(set)){var pid=process$1.pid;debugs[set]=function(){var msg=exports.format.apply(exports,arguments);console.error(`%s %d: %s`,set,pid,msg)}}else debugs[set]=function(){};return debugs[set]};function inspect(obj,opts){var ctx={seen:[],stylize:stylizeNoColor};return arguments.length>=3&&(ctx.depth=arguments[2]),arguments.length>=4&&(ctx.colors=arguments[3]),isBoolean(opts)?ctx.showHidden=opts:opts&&exports._extend(ctx,opts),isUndefined$2(ctx.showHidden)&&(ctx.showHidden=!1),isUndefined$2(ctx.depth)&&(ctx.depth=2),isUndefined$2(ctx.colors)&&(ctx.colors=!1),isUndefined$2(ctx.customInspect)&&(ctx.customInspect=!0),ctx.colors&&(ctx.stylize=stylizeWithColor),formatValue(ctx,obj,ctx.depth)}exports.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:`cyan`,number:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,date:`magenta`,regexp:`red`};function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];return style?`\x1B[`+inspect.colors[style][0]+`m`+str+`\x1B[`+inspect.colors[style][1]+`m`:str}function stylizeNoColor(str,styleType){return str}function arrayToHash(array){var hash={};return array.forEach(function(val,idx){hash[val]=!0}),hash}function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&!(value.constructor&&value.constructor.prototype===value)){var ret=value.inspect(recurseTimes,ctx);return isString$2(ret)||(ret=formatValue(ctx,ret,recurseTimes)),ret}var primitive=formatPrimitive(ctx,value);if(primitive)return primitive;var keys=Object.keys(value),visibleKeys=arrayToHash(keys);if(ctx.showHidden&&(keys=Object.getOwnPropertyNames(value)),isError(value)&&(keys.indexOf(`message`)>=0||keys.indexOf(`description`)>=0))return formatError(value);if(keys.length===0){if(isFunction(value)){var name$1=value.name?`: `+value.name:``;return ctx.stylize(`[Function`+name$1+`]`,`special`)}if(isRegExp(value))return ctx.stylize(RegExp.prototype.toString.call(value),`regexp`);if(isDate$2(value))return ctx.stylize(Date.prototype.toString.call(value),`date`);if(isError(value))return formatError(value)}var base=``,array=!1,braces=[`{`,`}`];if(isArray(value)&&(array=!0,braces=[`[`,`]`]),isFunction(value)){var n$2=value.name?`: `+value.name:``;base=` [Function`+n$2+`]`}if(isRegExp(value)&&(base=` `+RegExp.prototype.toString.call(value)),isDate$2(value)&&(base=` `+Date.prototype.toUTCString.call(value)),isError(value)&&(base=` `+formatError(value)),keys.length===0&&(!array||value.length==0))return braces[0]+base+braces[1];if(recurseTimes<0)return isRegExp(value)?ctx.stylize(RegExp.prototype.toString.call(value),`regexp`):ctx.stylize(`[Object]`,`special`);ctx.seen.push(value);var output;return output=array?formatArray(ctx,value,recurseTimes,visibleKeys,keys):keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array)}),ctx.seen.pop(),reduceToSingleString(output,base,braces)}function formatPrimitive(ctx,value){if(isUndefined$2(value))return ctx.stylize(`undefined`,`undefined`);if(isString$2(value)){var simple$2=`'`+JSON.stringify(value).replace(/^"|"$/g,``).replace(/'/g,`\\'`).replace(/\\"/g,`"`)+`'`;return ctx.stylize(simple$2,`string`)}if(isNumber$2(value))return ctx.stylize(``+value,`number`);if(isBoolean(value))return ctx.stylize(``+value,`boolean`);if(isNull(value))return ctx.stylize(`null`,`null`)}function formatError(value){return`[`+Error.prototype.toString.call(value)+`]`}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){for(var output=[],i$4=0,l$2=value.length;i$4<l$2;++i$4)hasOwnProperty$2(value,String(i$4))?output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,String(i$4),!0)):output.push(``);return keys.forEach(function(key){key.match(/^\d+$/)||output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,key,!0))}),output}function formatProperty(ctx,value,recurseTimes,visibleKeys,key,array){var name$1,str,desc$1;if(desc$1=Object.getOwnPropertyDescriptor(value,key)||{value:value[key]},desc$1.get?str=desc$1.set?ctx.stylize(`[Getter/Setter]`,`special`):ctx.stylize(`[Getter]`,`special`):desc$1.set&&(str=ctx.stylize(`[Setter]`,`special`)),hasOwnProperty$2(visibleKeys,key)||(name$1=`[`+key+`]`),str||(ctx.seen.indexOf(desc$1.value)<0?(str=isNull(recurseTimes)?formatValue(ctx,desc$1.value,null):formatValue(ctx,desc$1.value,recurseTimes-1),str.indexOf(`
1
+ import vitePluginRequire_1761728761605_47468118 from"knex";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__esmMin=(fn$1,res)=>()=>(fn$1&&(res=fn$1(fn$1=0)),res),__commonJSMin=(cb,mod)=>()=>(mod||cb((mod={exports:{}}).exports,mod),mod.exports),__export=(target,all$1)=>{for(var name$1 in all$1)__defProp(target,name$1,{get:all$1[name$1],enumerable:!0})},__copyProps=(to,from,except,desc$1)=>{if(from&&typeof from==`object`||typeof from==`function`)for(var keys=__getOwnPropNames(from),i$4=0,n$2=keys.length,key;i$4<n$2;i$4++)key=keys[i$4],!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:(k=>from[k]).bind(null,key),enumerable:!(desc$1=__getOwnPropDesc(from,key))||desc$1.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod==null?{}:__create(__getProtoOf(mod)),__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,`default`,{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},`__esModule`,{value:!0}),mod);const json=root=>root;var require_assertError=__commonJSMin((exports,module)=>{module.exports=class extends Error{name=`AssertError`;constructor(message,ctor){super(message||`Unknown error`),typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,ctor)}}}),require_stringify=__commonJSMin((exports,module)=>{module.exports=function(...args$1){try{return JSON.stringify(...args$1)}catch(err$1){return`[Cannot display object: `+err$1.message+`]`}}}),require_assert=__commonJSMin((exports,module)=>{let AssertError$2=require_assertError(),Stringify=require_stringify(),assert$29=module.exports=function(condition,...args$1){if(condition)return;if(args$1.length===1&&args$1[0]instanceof Error)throw args$1[0];let msgs=args$1.filter(arg=>arg!==``).map(arg=>typeof arg==`string`?arg:arg instanceof Error?arg.message:Stringify(arg));throw new AssertError$2(msgs.join(` `),assert$29)}});function getLens$1(b64){var len$2=b64.length;if(len$2%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var validLen=b64.indexOf(`=`);validLen===-1&&(validLen=len$2);var placeHoldersLen=validLen===len$2?0:4-validLen%4;return[validLen,placeHoldersLen]}function byteLength$1(b64){var lens=getLens$1(b64),validLen=lens[0],placeHoldersLen=lens[1];return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function _byteLength$1(b64,validLen,placeHoldersLen){return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function toByteArray$1(b64){var tmp,lens=getLens$1(b64),validLen=lens[0],placeHoldersLen=lens[1],arr=new Arr$1(_byteLength$1(b64,validLen,placeHoldersLen)),curByte=0,len$2=placeHoldersLen>0?validLen-4:validLen,i$4;for(i$4=0;i$4<len$2;i$4+=4)tmp=revLookup$1[b64.charCodeAt(i$4)]<<18|revLookup$1[b64.charCodeAt(i$4+1)]<<12|revLookup$1[b64.charCodeAt(i$4+2)]<<6|revLookup$1[b64.charCodeAt(i$4+3)],arr[curByte++]=tmp>>16&255,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255;return placeHoldersLen===2&&(tmp=revLookup$1[b64.charCodeAt(i$4)]<<2|revLookup$1[b64.charCodeAt(i$4+1)]>>4,arr[curByte++]=tmp&255),placeHoldersLen===1&&(tmp=revLookup$1[b64.charCodeAt(i$4)]<<10|revLookup$1[b64.charCodeAt(i$4+1)]<<4|revLookup$1[b64.charCodeAt(i$4+2)]>>2,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255),arr}function tripletToBase64$1(num){return lookup$1[num>>18&63]+lookup$1[num>>12&63]+lookup$1[num>>6&63]+lookup$1[num&63]}function encodeChunk$1(uint8,start,end){for(var tmp,output=[],i$4=start;i$4<end;i$4+=3)tmp=(uint8[i$4]<<16&16711680)+(uint8[i$4+1]<<8&65280)+(uint8[i$4+2]&255),output.push(tripletToBase64$1(tmp));return output.join(``)}function fromByteArray$1(uint8){for(var tmp,len$2=uint8.length,extraBytes=len$2%3,parts=[],maxChunkLength=16383,i$4=0,len2=len$2-extraBytes;i$4<len2;i$4+=maxChunkLength)parts.push(encodeChunk$1(uint8,i$4,i$4+maxChunkLength>len2?len2:i$4+maxChunkLength));return extraBytes===1?(tmp=uint8[len$2-1],parts.push(lookup$1[tmp>>2]+lookup$1[tmp<<4&63]+`==`)):extraBytes===2&&(tmp=(uint8[len$2-2]<<8)+uint8[len$2-1],parts.push(lookup$1[tmp>>10]+lookup$1[tmp>>4&63]+lookup$1[tmp<<2&63]+`=`)),parts.join(``)}var buffer$1,base64Js$1,lookup$1,revLookup$1,Arr$1,code$1,ieee754$1,Buffer$1,Blob$1,BlobOptions,Buffer$1$1,File,FileOptions,INSPECT_MAX_BYTES,SlowBuffer,TranscodeEncoding,atob$1,btoa$1,constants$1,isAscii,isUtf8,kMaxLength,kStringMaxLength,resolveObjectURL,transcode,init_dist$1=__esmMin(()=>{buffer$1={},base64Js$1={},base64Js$1.byteLength=byteLength$1,base64Js$1.toByteArray=toByteArray$1,base64Js$1.fromByteArray=fromByteArray$1,lookup$1=[],revLookup$1=[],Arr$1=typeof Uint8Array<`u`?Uint8Array:Array,code$1=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;for(var i$3=0,len$1=code$1.length;i$3<len$1;++i$3)lookup$1[i$3]=code$1[i$3],revLookup$1[code$1.charCodeAt(i$3)]=i$3;revLookup$1[45]=62,revLookup$1[95]=63,ieee754$1={},ieee754$1.read=function(buffer$2,offset$2,isLE,mLen,nBytes){var e,m,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=-7,i$4=isLE?nBytes-1:0,d=isLE?-1:1,s$2=buffer$2[offset$2+i$4];for(i$4+=d,e=s$2&(1<<-nBits)-1,s$2>>=-nBits,nBits+=eLen;nBits>0;e=e*256+buffer$2[offset$2+i$4],i$4+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=m*256+buffer$2[offset$2+i$4],i$4+=d,nBits-=8);if(e===0)e=1-eBias;else if(e===eMax)return m?NaN:(s$2?-1:1)*(1/0);else m+=2**mLen,e-=eBias;return(s$2?-1:1)*m*2**(e-mLen)},ieee754$1.write=function(buffer$2,value,offset$2,isLE,mLen,nBytes){var e,m,c$1,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=mLen===23?2**-24-2**-77:0,i$4=isLE?0:nBytes-1,d=isLE?1:-1,s$2=value<0||value===0&&1/value<0?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c$1=2**-e)<1&&(e--,c$1*=2),e+eBias>=1?value+=rt/c$1:value+=rt*2**(1-eBias),value*c$1>=2&&(e++,c$1/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c$1-1)*2**mLen,e+=eBias):(m=value*2**(eBias-1)*2**mLen,e=0));mLen>=8;buffer$2[offset$2+i$4]=m&255,i$4+=d,m/=256,mLen-=8);for(e=e<<mLen|m,eLen+=mLen;eLen>0;buffer$2[offset$2+i$4]=e&255,i$4+=d,e/=256,eLen-=8);buffer$2[offset$2+i$4-d]|=s$2*128},function(exports$1){let base64=base64Js$1,ieee754$1$1=ieee754$1,customInspectSymbol=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;exports$1.Buffer=Buffer$2,exports$1.SlowBuffer=SlowBuffer$1,exports$1.INSPECT_MAX_BYTES=50;let K_MAX_LENGTH=2147483647;exports$1.kMaxLength=K_MAX_LENGTH;let{Uint8Array:GlobalUint8Array,ArrayBuffer:GlobalArrayBuffer,SharedArrayBuffer:GlobalSharedArrayBuffer}=globalThis;Buffer$2.TYPED_ARRAY_SUPPORT=typedArraySupport(),!Buffer$2.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function typedArraySupport(){try{let arr=new GlobalUint8Array(1),proto={foo:function(){return 42}};return Object.setPrototypeOf(proto,GlobalUint8Array.prototype),Object.setPrototypeOf(arr,proto),arr.foo()===42}catch{return!1}}Object.defineProperty(Buffer$2.prototype,`parent`,{enumerable:!0,get:function(){if(Buffer$2.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer$2.prototype,`offset`,{enumerable:!0,get:function(){if(Buffer$2.isBuffer(this))return this.byteOffset}});function createBuffer(length){if(length>K_MAX_LENGTH)throw RangeError(`The value "`+length+`" is invalid for option "size"`);let buf=new GlobalUint8Array(length);return Object.setPrototypeOf(buf,Buffer$2.prototype),buf}function Buffer$2(arg,encodingOrOffset,length){if(typeof arg==`number`){if(typeof encodingOrOffset==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return allocUnsafe(arg)}return from(arg,encodingOrOffset,length)}Buffer$2.poolSize=8192;function from(value,encodingOrOffset,length){if(typeof value==`string`)return fromString(value,encodingOrOffset);if(GlobalArrayBuffer.isView(value))return fromArrayView(value);if(value==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof value);if(isInstance(value,GlobalArrayBuffer)||value&&isInstance(value.buffer,GlobalArrayBuffer)||GlobalSharedArrayBuffer!==void 0&&(isInstance(value,GlobalSharedArrayBuffer)||value&&isInstance(value.buffer,GlobalSharedArrayBuffer)))return fromArrayBuffer(value,encodingOrOffset,length);if(typeof value==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let valueOf=value.valueOf&&value.valueOf();if(valueOf!=null&&valueOf!==value)return Buffer$2.from(valueOf,encodingOrOffset,length);let b=fromObject(value);if(b)return b;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof value[Symbol.toPrimitive]==`function`)return Buffer$2.from(value[Symbol.toPrimitive](`string`),encodingOrOffset,length);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof value)}Buffer$2.from=function(value,encodingOrOffset,length){return from(value,encodingOrOffset,length)},Object.setPrototypeOf(Buffer$2.prototype,GlobalUint8Array.prototype),Object.setPrototypeOf(Buffer$2,GlobalUint8Array);function assertSize(size){if(typeof size!=`number`)throw TypeError(`"size" argument must be of type number`);if(size<0)throw RangeError(`The value "`+size+`" is invalid for option "size"`)}function alloc(size,fill,encoding){return assertSize(size),size<=0||fill===void 0?createBuffer(size):typeof encoding==`string`?createBuffer(size).fill(fill,encoding):createBuffer(size).fill(fill)}Buffer$2.alloc=function(size,fill,encoding){return alloc(size,fill,encoding)};function allocUnsafe(size){return assertSize(size),createBuffer(size<0?0:checked(size)|0)}Buffer$2.allocUnsafe=function(size){return allocUnsafe(size)},Buffer$2.allocUnsafeSlow=function(size){return allocUnsafe(size)};function fromString(string,encoding){if((typeof encoding!=`string`||encoding===``)&&(encoding=`utf8`),!Buffer$2.isEncoding(encoding))throw TypeError(`Unknown encoding: `+encoding);let length=byteLength$2(string,encoding)|0,buf=createBuffer(length),actual=buf.write(string,encoding);return actual!==length&&(buf=buf.slice(0,actual)),buf}function fromArrayLike(array){let length=array.length<0?0:checked(array.length)|0,buf=createBuffer(length);for(let i$4=0;i$4<length;i$4+=1)buf[i$4]=array[i$4]&255;return buf}function fromArrayView(arrayView){if(isInstance(arrayView,GlobalUint8Array)){let copy=new GlobalUint8Array(arrayView);return fromArrayBuffer(copy.buffer,copy.byteOffset,copy.byteLength)}return fromArrayLike(arrayView)}function fromArrayBuffer(array,byteOffset,length){if(byteOffset<0||array.byteLength<byteOffset)throw RangeError(`"offset" is outside of buffer bounds`);if(array.byteLength<byteOffset+(length||0))throw RangeError(`"length" is outside of buffer bounds`);let buf;return buf=byteOffset===void 0&&length===void 0?new GlobalUint8Array(array):length===void 0?new GlobalUint8Array(array,byteOffset):new GlobalUint8Array(array,byteOffset,length),Object.setPrototypeOf(buf,Buffer$2.prototype),buf}function fromObject(obj){if(Buffer$2.isBuffer(obj)){let len$2=checked(obj.length)|0,buf=createBuffer(len$2);return buf.length===0||obj.copy(buf,0,0,len$2),buf}if(obj.length!==void 0)return typeof obj.length!=`number`||numberIsNaN(obj.length)?createBuffer(0):fromArrayLike(obj);if(obj.type===`Buffer`&&Array.isArray(obj.data))return fromArrayLike(obj.data)}function checked(length){if(length>=K_MAX_LENGTH)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+K_MAX_LENGTH.toString(16)+` bytes`);return length|0}function SlowBuffer$1(length){return+length!=length&&(length=0),Buffer$2.alloc(+length)}Buffer$2.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==Buffer$2.prototype},Buffer$2.compare=function(a,b){if(isInstance(a,GlobalUint8Array)&&(a=Buffer$2.from(a,a.offset,a.byteLength)),isInstance(b,GlobalUint8Array)&&(b=Buffer$2.from(b,b.offset,b.byteLength)),!Buffer$2.isBuffer(a)||!Buffer$2.isBuffer(b))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(a===b)return 0;let x$1=a.length,y=b.length;for(let i$4=0,len$2=Math.min(x$1,y);i$4<len$2;++i$4)if(a[i$4]!==b[i$4]){x$1=a[i$4],y=b[i$4];break}return x$1<y?-1:y<x$1?1:0},Buffer$2.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},Buffer$2.concat=function(list,length){if(!Array.isArray(list))throw TypeError(`"list" argument must be an Array of Buffers`);if(list.length===0)return Buffer$2.alloc(0);let i$4;if(length===void 0)for(length=0,i$4=0;i$4<list.length;++i$4)length+=list[i$4].length;let buffer$2=Buffer$2.allocUnsafe(length),pos=0;for(i$4=0;i$4<list.length;++i$4){let buf=list[i$4];if(isInstance(buf,GlobalUint8Array))pos+buf.length>buffer$2.length?(Buffer$2.isBuffer(buf)||(buf=Buffer$2.from(buf)),buf.copy(buffer$2,pos)):GlobalUint8Array.prototype.set.call(buffer$2,buf,pos);else if(Buffer$2.isBuffer(buf))buf.copy(buffer$2,pos);else throw TypeError(`"list" argument must be an Array of Buffers`);pos+=buf.length}return buffer$2};function byteLength$2(string,encoding){if(Buffer$2.isBuffer(string))return string.length;if(GlobalArrayBuffer.isView(string)||isInstance(string,GlobalArrayBuffer))return string.byteLength;if(typeof string!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof string);let len$2=string.length,mustMatch=arguments.length>2&&arguments[2]===!0;if(!mustMatch&&len$2===0)return 0;let loweredCase=!1;for(;;)switch(encoding){case`ascii`:case`latin1`:case`binary`:return len$2;case`utf8`:case`utf-8`:return utf8ToBytes(string).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return len$2*2;case`hex`:return len$2>>>1;case`base64`:return base64ToBytes(string).length;default:if(loweredCase)return mustMatch?-1:utf8ToBytes(string).length;encoding=(``+encoding).toLowerCase(),loweredCase=!0}}Buffer$2.byteLength=byteLength$2;function slowToString(encoding,start,end){let loweredCase=!1;if((start===void 0||start<0)&&(start=0),start>this.length||((end===void 0||end>this.length)&&(end=this.length),end<=0)||(end>>>=0,start>>>=0,end<=start))return``;for(encoding||=`utf8`;;)switch(encoding){case`hex`:return hexSlice(this,start,end);case`utf8`:case`utf-8`:return utf8Slice(this,start,end);case`ascii`:return asciiSlice(this,start,end);case`latin1`:case`binary`:return latin1Slice(this,start,end);case`base64`:return base64Slice(this,start,end);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return utf16leSlice(this,start,end);default:if(loweredCase)throw TypeError(`Unknown encoding: `+encoding);encoding=(encoding+``).toLowerCase(),loweredCase=!0}}Buffer$2.prototype._isBuffer=!0;function swap(b,n$2,m){let i$4=b[n$2];b[n$2]=b[m],b[m]=i$4}Buffer$2.prototype.swap16=function(){let len$2=this.length;if(len$2%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let i$4=0;i$4<len$2;i$4+=2)swap(this,i$4,i$4+1);return this},Buffer$2.prototype.swap32=function(){let len$2=this.length;if(len$2%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let i$4=0;i$4<len$2;i$4+=4)swap(this,i$4,i$4+3),swap(this,i$4+1,i$4+2);return this},Buffer$2.prototype.swap64=function(){let len$2=this.length;if(len$2%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let i$4=0;i$4<len$2;i$4+=8)swap(this,i$4,i$4+7),swap(this,i$4+1,i$4+6),swap(this,i$4+2,i$4+5),swap(this,i$4+3,i$4+4);return this},Buffer$2.prototype.toString=function(){let length=this.length;return length===0?``:arguments.length===0?utf8Slice(this,0,length):slowToString.apply(this,arguments)},Buffer$2.prototype.toLocaleString=Buffer$2.prototype.toString,Buffer$2.prototype.equals=function(b){if(!Buffer$2.isBuffer(b))throw TypeError(`Argument must be a Buffer`);return this===b?!0:Buffer$2.compare(this,b)===0},Buffer$2.prototype.inspect=function(){let str=``,max$3=exports$1.INSPECT_MAX_BYTES;return str=this.toString(`hex`,0,max$3).replace(/(.{2})/g,`$1 `).trim(),this.length>max$3&&(str+=` ... `),`<Buffer `+str+`>`},customInspectSymbol&&(Buffer$2.prototype[customInspectSymbol]=Buffer$2.prototype.inspect),Buffer$2.prototype.compare=function(target,start,end,thisStart,thisEnd){if(isInstance(target,GlobalUint8Array)&&(target=Buffer$2.from(target,target.offset,target.byteLength)),!Buffer$2.isBuffer(target))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof target);if(start===void 0&&(start=0),end===void 0&&(end=target?target.length:0),thisStart===void 0&&(thisStart=0),thisEnd===void 0&&(thisEnd=this.length),start<0||end>target.length||thisStart<0||thisEnd>this.length)throw RangeError(`out of range index`);if(thisStart>=thisEnd&&start>=end)return 0;if(thisStart>=thisEnd)return-1;if(start>=end)return 1;if(start>>>=0,end>>>=0,thisStart>>>=0,thisEnd>>>=0,this===target)return 0;let x$1=thisEnd-thisStart,y=end-start,len$2=Math.min(x$1,y),thisCopy=this.slice(thisStart,thisEnd),targetCopy=target.slice(start,end);for(let i$4=0;i$4<len$2;++i$4)if(thisCopy[i$4]!==targetCopy[i$4]){x$1=thisCopy[i$4],y=targetCopy[i$4];break}return x$1<y?-1:y<x$1?1:0};function bidirectionalIndexOf(buffer$2,val,byteOffset,encoding,dir){if(buffer$2.length===0)return-1;if(typeof byteOffset==`string`?(encoding=byteOffset,byteOffset=0):byteOffset>2147483647?byteOffset=2147483647:byteOffset<-2147483648&&(byteOffset=-2147483648),byteOffset=+byteOffset,numberIsNaN(byteOffset)&&(byteOffset=dir?0:buffer$2.length-1),byteOffset<0&&(byteOffset=buffer$2.length+byteOffset),byteOffset>=buffer$2.length){if(dir)return-1;byteOffset=buffer$2.length-1}else if(byteOffset<0)if(dir)byteOffset=0;else return-1;if(typeof val==`string`&&(val=Buffer$2.from(val,encoding)),Buffer$2.isBuffer(val))return val.length===0?-1:arrayIndexOf(buffer$2,val,byteOffset,encoding,dir);if(typeof val==`number`)return val&=255,typeof GlobalUint8Array.prototype.indexOf==`function`?dir?GlobalUint8Array.prototype.indexOf.call(buffer$2,val,byteOffset):GlobalUint8Array.prototype.lastIndexOf.call(buffer$2,val,byteOffset):arrayIndexOf(buffer$2,[val],byteOffset,encoding,dir);throw TypeError(`val must be string, number or Buffer`)}function arrayIndexOf(arr,val,byteOffset,encoding,dir){let indexSize=1,arrLength=arr.length,valLength=val.length;if(encoding!==void 0&&(encoding=String(encoding).toLowerCase(),encoding===`ucs2`||encoding===`ucs-2`||encoding===`utf16le`||encoding===`utf-16le`)){if(arr.length<2||val.length<2)return-1;indexSize=2,arrLength/=2,valLength/=2,byteOffset/=2}function read(buf,i$5){return indexSize===1?buf[i$5]:buf.readUInt16BE(i$5*indexSize)}let i$4;if(dir){let foundIndex=-1;for(i$4=byteOffset;i$4<arrLength;i$4++)if(read(arr,i$4)===read(val,foundIndex===-1?0:i$4-foundIndex)){if(foundIndex===-1&&(foundIndex=i$4),i$4-foundIndex+1===valLength)return foundIndex*indexSize}else foundIndex!==-1&&(i$4-=i$4-foundIndex),foundIndex=-1}else for(byteOffset+valLength>arrLength&&(byteOffset=arrLength-valLength),i$4=byteOffset;i$4>=0;i$4--){let found=!0;for(let j$1=0;j$1<valLength;j$1++)if(read(arr,i$4+j$1)!==read(val,j$1)){found=!1;break}if(found)return i$4}return-1}Buffer$2.prototype.includes=function(val,byteOffset,encoding){return this.indexOf(val,byteOffset,encoding)!==-1},Buffer$2.prototype.indexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!0)},Buffer$2.prototype.lastIndexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!1)};function hexWrite(buf,string,offset$2,length){offset$2=Number(offset$2)||0;let remaining=buf.length-offset$2;length?(length=Number(length),length>remaining&&(length=remaining)):length=remaining;let strLen=string.length;length>strLen/2&&(length=strLen/2);let i$4;for(i$4=0;i$4<length;++i$4){let parsed=parseInt(string.substr(i$4*2,2),16);if(numberIsNaN(parsed))return i$4;buf[offset$2+i$4]=parsed}return i$4}function utf8Write(buf,string,offset$2,length){return blitBuffer(utf8ToBytes(string,buf.length-offset$2),buf,offset$2,length)}function asciiWrite(buf,string,offset$2,length){return blitBuffer(asciiToBytes(string),buf,offset$2,length)}function base64Write(buf,string,offset$2,length){return blitBuffer(base64ToBytes(string),buf,offset$2,length)}function ucs2Write(buf,string,offset$2,length){return blitBuffer(utf16leToBytes(string,buf.length-offset$2),buf,offset$2,length)}Buffer$2.prototype.write=function(string,offset$2,length,encoding){if(offset$2===void 0)encoding=`utf8`,length=this.length,offset$2=0;else if(length===void 0&&typeof offset$2==`string`)encoding=offset$2,length=this.length,offset$2=0;else if(isFinite(offset$2))offset$2>>>=0,isFinite(length)?(length>>>=0,encoding===void 0&&(encoding=`utf8`)):(encoding=length,length=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let remaining=this.length-offset$2;if((length===void 0||length>remaining)&&(length=remaining),string.length>0&&(length<0||offset$2<0)||offset$2>this.length)throw RangeError(`Attempt to write outside buffer bounds`);encoding||=`utf8`;let loweredCase=!1;for(;;)switch(encoding){case`hex`:return hexWrite(this,string,offset$2,length);case`utf8`:case`utf-8`:return utf8Write(this,string,offset$2,length);case`ascii`:case`latin1`:case`binary`:return asciiWrite(this,string,offset$2,length);case`base64`:return base64Write(this,string,offset$2,length);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return ucs2Write(this,string,offset$2,length);default:if(loweredCase)throw TypeError(`Unknown encoding: `+encoding);encoding=(``+encoding).toLowerCase(),loweredCase=!0}},Buffer$2.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(buf,start,end){return start===0&&end===buf.length?base64.fromByteArray(buf):base64.fromByteArray(buf.slice(start,end))}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);let res=[],i$4=start;for(;i$4<end;){let firstByte=buf[i$4],codePoint=null,bytesPerSequence=firstByte>239?4:firstByte>223?3:firstByte>191?2:1;if(i$4+bytesPerSequence<=end){let secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:firstByte<128&&(codePoint=firstByte);break;case 2:secondByte=buf[i$4+1],(secondByte&192)==128&&(tempCodePoint=(firstByte&31)<<6|secondByte&63,tempCodePoint>127&&(codePoint=tempCodePoint));break;case 3:secondByte=buf[i$4+1],thirdByte=buf[i$4+2],(secondByte&192)==128&&(thirdByte&192)==128&&(tempCodePoint=(firstByte&15)<<12|(secondByte&63)<<6|thirdByte&63,tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)&&(codePoint=tempCodePoint));break;case 4:secondByte=buf[i$4+1],thirdByte=buf[i$4+2],fourthByte=buf[i$4+3],(secondByte&192)==128&&(thirdByte&192)==128&&(fourthByte&192)==128&&(tempCodePoint=(firstByte&15)<<18|(secondByte&63)<<12|(thirdByte&63)<<6|fourthByte&63,tempCodePoint>65535&&tempCodePoint<1114112&&(codePoint=tempCodePoint))}}codePoint===null?(codePoint=65533,bytesPerSequence=1):codePoint>65535&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|codePoint&1023),res.push(codePoint),i$4+=bytesPerSequence}return decodeCodePointsArray(res)}let MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(codePoints){let len$2=codePoints.length;if(len$2<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,codePoints);let res=``,i$4=0;for(;i$4<len$2;)res+=String.fromCharCode.apply(String,codePoints.slice(i$4,i$4+=MAX_ARGUMENTS_LENGTH));return res}function asciiSlice(buf,start,end){let ret=``;end=Math.min(buf.length,end);for(let i$4=start;i$4<end;++i$4)ret+=String.fromCharCode(buf[i$4]&127);return ret}function latin1Slice(buf,start,end){let ret=``;end=Math.min(buf.length,end);for(let i$4=start;i$4<end;++i$4)ret+=String.fromCharCode(buf[i$4]);return ret}function hexSlice(buf,start,end){let len$2=buf.length;(!start||start<0)&&(start=0),(!end||end<0||end>len$2)&&(end=len$2);let out=``;for(let i$4=start;i$4<end;++i$4)out+=hexSliceLookupTable[buf[i$4]];return out}function utf16leSlice(buf,start,end){let bytes=buf.slice(start,end),res=``;for(let i$4=0;i$4<bytes.length-1;i$4+=2)res+=String.fromCharCode(bytes[i$4]+bytes[i$4+1]*256);return res}Buffer$2.prototype.slice=function(start,end){let len$2=this.length;start=~~start,end=end===void 0?len$2:~~end,start<0?(start+=len$2,start<0&&(start=0)):start>len$2&&(start=len$2),end<0?(end+=len$2,end<0&&(end=0)):end>len$2&&(end=len$2),end<start&&(end=start);let newBuf=this.subarray(start,end);return Object.setPrototypeOf(newBuf,Buffer$2.prototype),newBuf};function checkOffset(offset$2,ext,length){if(offset$2%1!=0||offset$2<0)throw RangeError(`offset is not uint`);if(offset$2+ext>length)throw RangeError(`Trying to access beyond buffer length`)}Buffer$2.prototype.readUintLE=Buffer$2.prototype.readUIntLE=function(offset$2,byteLength$3,noAssert){offset$2>>>=0,byteLength$3>>>=0,noAssert||checkOffset(offset$2,byteLength$3,this.length);let val=this[offset$2],mul=1,i$4=0;for(;++i$4<byteLength$3&&(mul*=256);)val+=this[offset$2+i$4]*mul;return val},Buffer$2.prototype.readUintBE=Buffer$2.prototype.readUIntBE=function(offset$2,byteLength$3,noAssert){offset$2>>>=0,byteLength$3>>>=0,noAssert||checkOffset(offset$2,byteLength$3,this.length);let val=this[offset$2+--byteLength$3],mul=1;for(;byteLength$3>0&&(mul*=256);)val+=this[offset$2+--byteLength$3]*mul;return val},Buffer$2.prototype.readUint8=Buffer$2.prototype.readUInt8=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,1,this.length),this[offset$2]},Buffer$2.prototype.readUint16LE=Buffer$2.prototype.readUInt16LE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,2,this.length),this[offset$2]|this[offset$2+1]<<8},Buffer$2.prototype.readUint16BE=Buffer$2.prototype.readUInt16BE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,2,this.length),this[offset$2]<<8|this[offset$2+1]},Buffer$2.prototype.readUint32LE=Buffer$2.prototype.readUInt32LE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,4,this.length),(this[offset$2]|this[offset$2+1]<<8|this[offset$2+2]<<16)+this[offset$2+3]*16777216},Buffer$2.prototype.readUint32BE=Buffer$2.prototype.readUInt32BE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,4,this.length),this[offset$2]*16777216+(this[offset$2+1]<<16|this[offset$2+2]<<8|this[offset$2+3])},Buffer$2.prototype.readBigUInt64LE=defineBigIntMethod(function(offset$2){offset$2>>>=0,validateNumber(offset$2,`offset`);let first=this[offset$2],last=this[offset$2+7];(first===void 0||last===void 0)&&boundsError(offset$2,this.length-8);let lo=first+this[++offset$2]*2**8+this[++offset$2]*2**16+this[++offset$2]*2**24,hi=this[++offset$2]+this[++offset$2]*2**8+this[++offset$2]*2**16+last*2**24;return BigInt(lo)+(BigInt(hi)<<BigInt(32))}),Buffer$2.prototype.readBigUInt64BE=defineBigIntMethod(function(offset$2){offset$2>>>=0,validateNumber(offset$2,`offset`);let first=this[offset$2],last=this[offset$2+7];(first===void 0||last===void 0)&&boundsError(offset$2,this.length-8);let hi=first*2**24+this[++offset$2]*2**16+this[++offset$2]*2**8+this[++offset$2],lo=this[++offset$2]*2**24+this[++offset$2]*2**16+this[++offset$2]*2**8+last;return(BigInt(hi)<<BigInt(32))+BigInt(lo)}),Buffer$2.prototype.readIntLE=function(offset$2,byteLength$3,noAssert){offset$2>>>=0,byteLength$3>>>=0,noAssert||checkOffset(offset$2,byteLength$3,this.length);let val=this[offset$2],mul=1,i$4=0;for(;++i$4<byteLength$3&&(mul*=256);)val+=this[offset$2+i$4]*mul;return mul*=128,val>=mul&&(val-=2**(8*byteLength$3)),val},Buffer$2.prototype.readIntBE=function(offset$2,byteLength$3,noAssert){offset$2>>>=0,byteLength$3>>>=0,noAssert||checkOffset(offset$2,byteLength$3,this.length);let i$4=byteLength$3,mul=1,val=this[offset$2+--i$4];for(;i$4>0&&(mul*=256);)val+=this[offset$2+--i$4]*mul;return mul*=128,val>=mul&&(val-=2**(8*byteLength$3)),val},Buffer$2.prototype.readInt8=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,1,this.length),this[offset$2]&128?(255-this[offset$2]+1)*-1:this[offset$2]},Buffer$2.prototype.readInt16LE=function(offset$2,noAssert){offset$2>>>=0,noAssert||checkOffset(offset$2,2,this.length);let val=this[offset$2]|this[offset$2+1]<<8;return val&32768?val|4294901760:val},Buffer$2.prototype.readInt16BE=function(offset$2,noAssert){offset$2>>>=0,noAssert||checkOffset(offset$2,2,this.length);let val=this[offset$2+1]|this[offset$2]<<8;return val&32768?val|4294901760:val},Buffer$2.prototype.readInt32LE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,4,this.length),this[offset$2]|this[offset$2+1]<<8|this[offset$2+2]<<16|this[offset$2+3]<<24},Buffer$2.prototype.readInt32BE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,4,this.length),this[offset$2]<<24|this[offset$2+1]<<16|this[offset$2+2]<<8|this[offset$2+3]},Buffer$2.prototype.readBigInt64LE=defineBigIntMethod(function(offset$2){offset$2>>>=0,validateNumber(offset$2,`offset`);let first=this[offset$2],last=this[offset$2+7];(first===void 0||last===void 0)&&boundsError(offset$2,this.length-8);let val=this[offset$2+4]+this[offset$2+5]*2**8+this[offset$2+6]*2**16+(last<<24);return(BigInt(val)<<BigInt(32))+BigInt(first+this[++offset$2]*2**8+this[++offset$2]*2**16+this[++offset$2]*2**24)}),Buffer$2.prototype.readBigInt64BE=defineBigIntMethod(function(offset$2){offset$2>>>=0,validateNumber(offset$2,`offset`);let first=this[offset$2],last=this[offset$2+7];(first===void 0||last===void 0)&&boundsError(offset$2,this.length-8);let val=(first<<24)+this[++offset$2]*2**16+this[++offset$2]*2**8+this[++offset$2];return(BigInt(val)<<BigInt(32))+BigInt(this[++offset$2]*2**24+this[++offset$2]*2**16+this[++offset$2]*2**8+last)}),Buffer$2.prototype.readFloatLE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,4,this.length),ieee754$1$1.read(this,offset$2,!0,23,4)},Buffer$2.prototype.readFloatBE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,4,this.length),ieee754$1$1.read(this,offset$2,!1,23,4)},Buffer$2.prototype.readDoubleLE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,8,this.length),ieee754$1$1.read(this,offset$2,!0,52,8)},Buffer$2.prototype.readDoubleBE=function(offset$2,noAssert){return offset$2>>>=0,noAssert||checkOffset(offset$2,8,this.length),ieee754$1$1.read(this,offset$2,!1,52,8)};function checkInt(buf,value,offset$2,ext,max$3,min$1){if(!Buffer$2.isBuffer(buf))throw TypeError(`"buffer" argument must be a Buffer instance`);if(value>max$3||value<min$1)throw RangeError(`"value" argument is out of bounds`);if(offset$2+ext>buf.length)throw RangeError(`Index out of range`)}Buffer$2.prototype.writeUintLE=Buffer$2.prototype.writeUIntLE=function(value,offset$2,byteLength$3,noAssert){if(value=+value,offset$2>>>=0,byteLength$3>>>=0,!noAssert){let maxBytes=2**(8*byteLength$3)-1;checkInt(this,value,offset$2,byteLength$3,maxBytes,0)}let mul=1,i$4=0;for(this[offset$2]=value&255;++i$4<byteLength$3&&(mul*=256);)this[offset$2+i$4]=value/mul&255;return offset$2+byteLength$3},Buffer$2.prototype.writeUintBE=Buffer$2.prototype.writeUIntBE=function(value,offset$2,byteLength$3,noAssert){if(value=+value,offset$2>>>=0,byteLength$3>>>=0,!noAssert){let maxBytes=2**(8*byteLength$3)-1;checkInt(this,value,offset$2,byteLength$3,maxBytes,0)}let i$4=byteLength$3-1,mul=1;for(this[offset$2+i$4]=value&255;--i$4>=0&&(mul*=256);)this[offset$2+i$4]=value/mul&255;return offset$2+byteLength$3},Buffer$2.prototype.writeUint8=Buffer$2.prototype.writeUInt8=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,1,255,0),this[offset$2]=value&255,offset$2+1},Buffer$2.prototype.writeUint16LE=Buffer$2.prototype.writeUInt16LE=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,2,65535,0),this[offset$2]=value&255,this[offset$2+1]=value>>>8,offset$2+2},Buffer$2.prototype.writeUint16BE=Buffer$2.prototype.writeUInt16BE=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,2,65535,0),this[offset$2]=value>>>8,this[offset$2+1]=value&255,offset$2+2},Buffer$2.prototype.writeUint32LE=Buffer$2.prototype.writeUInt32LE=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,4,4294967295,0),this[offset$2+3]=value>>>24,this[offset$2+2]=value>>>16,this[offset$2+1]=value>>>8,this[offset$2]=value&255,offset$2+4},Buffer$2.prototype.writeUint32BE=Buffer$2.prototype.writeUInt32BE=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,4,4294967295,0),this[offset$2]=value>>>24,this[offset$2+1]=value>>>16,this[offset$2+2]=value>>>8,this[offset$2+3]=value&255,offset$2+4};function wrtBigUInt64LE(buf,value,offset$2,min$1,max$3){checkIntBI(value,min$1,max$3,buf,offset$2,7);let lo=Number(value&BigInt(4294967295));buf[offset$2++]=lo,lo>>=8,buf[offset$2++]=lo,lo>>=8,buf[offset$2++]=lo,lo>>=8,buf[offset$2++]=lo;let hi=Number(value>>BigInt(32)&BigInt(4294967295));return buf[offset$2++]=hi,hi>>=8,buf[offset$2++]=hi,hi>>=8,buf[offset$2++]=hi,hi>>=8,buf[offset$2++]=hi,offset$2}function wrtBigUInt64BE(buf,value,offset$2,min$1,max$3){checkIntBI(value,min$1,max$3,buf,offset$2,7);let lo=Number(value&BigInt(4294967295));buf[offset$2+7]=lo,lo>>=8,buf[offset$2+6]=lo,lo>>=8,buf[offset$2+5]=lo,lo>>=8,buf[offset$2+4]=lo;let hi=Number(value>>BigInt(32)&BigInt(4294967295));return buf[offset$2+3]=hi,hi>>=8,buf[offset$2+2]=hi,hi>>=8,buf[offset$2+1]=hi,hi>>=8,buf[offset$2]=hi,offset$2+8}Buffer$2.prototype.writeBigUInt64LE=defineBigIntMethod(function(value,offset$2=0){return wrtBigUInt64LE(this,value,offset$2,BigInt(0),BigInt(`0xffffffffffffffff`))}),Buffer$2.prototype.writeBigUInt64BE=defineBigIntMethod(function(value,offset$2=0){return wrtBigUInt64BE(this,value,offset$2,BigInt(0),BigInt(`0xffffffffffffffff`))}),Buffer$2.prototype.writeIntLE=function(value,offset$2,byteLength$3,noAssert){if(value=+value,offset$2>>>=0,!noAssert){let limit=2**(8*byteLength$3-1);checkInt(this,value,offset$2,byteLength$3,limit-1,-limit)}let i$4=0,mul=1,sub=0;for(this[offset$2]=value&255;++i$4<byteLength$3&&(mul*=256);)value<0&&sub===0&&this[offset$2+i$4-1]!==0&&(sub=1),this[offset$2+i$4]=(value/mul>>0)-sub&255;return offset$2+byteLength$3},Buffer$2.prototype.writeIntBE=function(value,offset$2,byteLength$3,noAssert){if(value=+value,offset$2>>>=0,!noAssert){let limit=2**(8*byteLength$3-1);checkInt(this,value,offset$2,byteLength$3,limit-1,-limit)}let i$4=byteLength$3-1,mul=1,sub=0;for(this[offset$2+i$4]=value&255;--i$4>=0&&(mul*=256);)value<0&&sub===0&&this[offset$2+i$4+1]!==0&&(sub=1),this[offset$2+i$4]=(value/mul>>0)-sub&255;return offset$2+byteLength$3},Buffer$2.prototype.writeInt8=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,1,127,-128),value<0&&(value=255+value+1),this[offset$2]=value&255,offset$2+1},Buffer$2.prototype.writeInt16LE=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,2,32767,-32768),this[offset$2]=value&255,this[offset$2+1]=value>>>8,offset$2+2},Buffer$2.prototype.writeInt16BE=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,2,32767,-32768),this[offset$2]=value>>>8,this[offset$2+1]=value&255,offset$2+2},Buffer$2.prototype.writeInt32LE=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,4,2147483647,-2147483648),this[offset$2]=value&255,this[offset$2+1]=value>>>8,this[offset$2+2]=value>>>16,this[offset$2+3]=value>>>24,offset$2+4},Buffer$2.prototype.writeInt32BE=function(value,offset$2,noAssert){return value=+value,offset$2>>>=0,noAssert||checkInt(this,value,offset$2,4,2147483647,-2147483648),value<0&&(value=4294967295+value+1),this[offset$2]=value>>>24,this[offset$2+1]=value>>>16,this[offset$2+2]=value>>>8,this[offset$2+3]=value&255,offset$2+4},Buffer$2.prototype.writeBigInt64LE=defineBigIntMethod(function(value,offset$2=0){return wrtBigUInt64LE(this,value,offset$2,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),Buffer$2.prototype.writeBigInt64BE=defineBigIntMethod(function(value,offset$2=0){return wrtBigUInt64BE(this,value,offset$2,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function checkIEEE754(buf,value,offset$2,ext,max$3,min$1){if(offset$2+ext>buf.length||offset$2<0)throw RangeError(`Index out of range`)}function writeFloat(buf,value,offset$2,littleEndian,noAssert){return value=+value,offset$2>>>=0,noAssert||checkIEEE754(buf,value,offset$2,4),ieee754$1$1.write(buf,value,offset$2,littleEndian,23,4),offset$2+4}Buffer$2.prototype.writeFloatLE=function(value,offset$2,noAssert){return writeFloat(this,value,offset$2,!0,noAssert)},Buffer$2.prototype.writeFloatBE=function(value,offset$2,noAssert){return writeFloat(this,value,offset$2,!1,noAssert)};function writeDouble(buf,value,offset$2,littleEndian,noAssert){return value=+value,offset$2>>>=0,noAssert||checkIEEE754(buf,value,offset$2,8),ieee754$1$1.write(buf,value,offset$2,littleEndian,52,8),offset$2+8}Buffer$2.prototype.writeDoubleLE=function(value,offset$2,noAssert){return writeDouble(this,value,offset$2,!0,noAssert)},Buffer$2.prototype.writeDoubleBE=function(value,offset$2,noAssert){return writeDouble(this,value,offset$2,!1,noAssert)},Buffer$2.prototype.copy=function(target,targetStart,start,end){if(!Buffer$2.isBuffer(target))throw TypeError(`argument should be a Buffer`);if(start||=0,!end&&end!==0&&(end=this.length),targetStart>=target.length&&(targetStart=target.length),targetStart||=0,end>0&&end<start&&(end=start),end===start||target.length===0||this.length===0)return 0;if(targetStart<0)throw RangeError(`targetStart out of bounds`);if(start<0||start>=this.length)throw RangeError(`Index out of range`);if(end<0)throw RangeError(`sourceEnd out of bounds`);end>this.length&&(end=this.length),target.length-targetStart<end-start&&(end=target.length-targetStart+start);let len$2=end-start;return this===target&&typeof GlobalUint8Array.prototype.copyWithin==`function`?this.copyWithin(targetStart,start,end):GlobalUint8Array.prototype.set.call(target,this.subarray(start,end),targetStart),len$2},Buffer$2.prototype.fill=function(val,start,end,encoding){if(typeof val==`string`){if(typeof start==`string`?(encoding=start,start=0,end=this.length):typeof end==`string`&&(encoding=end,end=this.length),encoding!==void 0&&typeof encoding!=`string`)throw TypeError(`encoding must be a string`);if(typeof encoding==`string`&&!Buffer$2.isEncoding(encoding))throw TypeError(`Unknown encoding: `+encoding);if(val.length===1){let code$2=val.charCodeAt(0);(encoding===`utf8`&&code$2<128||encoding===`latin1`)&&(val=code$2)}}else typeof val==`number`?val&=255:typeof val==`boolean`&&(val=Number(val));if(start<0||this.length<start||this.length<end)throw RangeError(`Out of range index`);if(end<=start)return this;start>>>=0,end=end===void 0?this.length:end>>>0,val||=0;let i$4;if(typeof val==`number`)for(i$4=start;i$4<end;++i$4)this[i$4]=val;else{let bytes=Buffer$2.isBuffer(val)?val:Buffer$2.from(val,encoding),len$2=bytes.length;if(len$2===0)throw TypeError(`The value "`+val+`" is invalid for argument "value"`);for(i$4=0;i$4<end-start;++i$4)this[i$4+start]=bytes[i$4%len$2]}return this};let errors={};function E(sym,getMessage,Base$1){errors[sym]=class extends Base$1{constructor(){super(),Object.defineProperty(this,`message`,{value:getMessage.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${sym}]`,this.stack,delete this.name}get code(){return sym}set code(value){Object.defineProperty(this,`code`,{configurable:!0,enumerable:!0,value,writable:!0})}toString(){return`${this.name} [${sym}]: ${this.message}`}}}E(`ERR_BUFFER_OUT_OF_BOUNDS`,function(name$1){return name$1?`${name$1} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),E(`ERR_INVALID_ARG_TYPE`,function(name$1,actual){return`The "${name$1}" argument must be of type number. Received type ${typeof actual}`},TypeError),E(`ERR_OUT_OF_RANGE`,function(str,range,input){let msg=`The value of "${str}" is out of range.`,received=input;return Number.isInteger(input)&&Math.abs(input)>2**32?received=addNumericalSeparator(String(input)):typeof input==`bigint`&&(received=String(input),(input>BigInt(2)**BigInt(32)||input<-(BigInt(2)**BigInt(32)))&&(received=addNumericalSeparator(received)),received+=`n`),msg+=` It must be ${range}. Received ${received}`,msg},RangeError);function addNumericalSeparator(val){let res=``,i$4=val.length,start=val[0]===`-`?1:0;for(;i$4>=start+4;i$4-=3)res=`_${val.slice(i$4-3,i$4)}${res}`;return`${val.slice(0,i$4)}${res}`}function checkBounds(buf,offset$2,byteLength$3){validateNumber(offset$2,`offset`),(buf[offset$2]===void 0||buf[offset$2+byteLength$3]===void 0)&&boundsError(offset$2,buf.length-(byteLength$3+1))}function checkIntBI(value,min$1,max$3,buf,offset$2,byteLength$3){if(value>max$3||value<min$1){let n$2=typeof min$1==`bigint`?`n`:``,range;throw range=byteLength$3>3?min$1===0||min$1===BigInt(0)?`>= 0${n$2} and < 2${n$2} ** ${(byteLength$3+1)*8}${n$2}`:`>= -(2${n$2} ** ${(byteLength$3+1)*8-1}${n$2}) and < 2 ** ${(byteLength$3+1)*8-1}${n$2}`:`>= ${min$1}${n$2} and <= ${max$3}${n$2}`,new errors.ERR_OUT_OF_RANGE(`value`,range,value)}checkBounds(buf,offset$2,byteLength$3)}function validateNumber(value,name$1){if(typeof value!=`number`)throw new errors.ERR_INVALID_ARG_TYPE(name$1,`number`,value)}function boundsError(value,length,type){throw Math.floor(value)===value?length<0?new errors.ERR_BUFFER_OUT_OF_BOUNDS:new errors.ERR_OUT_OF_RANGE(type||`offset`,`>= ${type?1:0} and <= ${length}`,value):(validateNumber(value,type),new errors.ERR_OUT_OF_RANGE(type||`offset`,`an integer`,value))}let INVALID_BASE64_RE=/[^+/0-9A-Za-z-_]/g;function base64clean(str){if(str=str.split(`=`)[0],str=str.trim().replace(INVALID_BASE64_RE,``),str.length<2)return``;for(;str.length%4!=0;)str+=`=`;return str}function utf8ToBytes(string,units){units||=1/0;let codePoint,length=string.length,leadSurrogate=null,bytes=[];for(let i$4=0;i$4<length;++i$4){if(codePoint=string.charCodeAt(i$4),codePoint>55295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}else if(i$4+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,codePoint<128){if(--units<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<1114112){if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else throw Error(`Invalid code point`)}return bytes}function asciiToBytes(str){let byteArray=[];for(let i$4=0;i$4<str.length;++i$4)byteArray.push(str.charCodeAt(i$4)&255);return byteArray}function utf16leToBytes(str,units){let c$1,hi,lo,byteArray=[];for(let i$4=0;i$4<str.length&&!((units-=2)<0);++i$4)c$1=str.charCodeAt(i$4),hi=c$1>>8,lo=c$1%256,byteArray.push(lo),byteArray.push(hi);return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src$1,dst,offset$2,length){let i$4;for(i$4=0;i$4<length&&!(i$4+offset$2>=dst.length||i$4>=src$1.length);++i$4)dst[i$4+offset$2]=src$1[i$4];return i$4}function isInstance(obj,type){return obj instanceof type||obj!=null&&obj.constructor!=null&&obj.constructor.name!=null&&obj.constructor.name===type.name}function numberIsNaN(obj){return obj!==obj}let hexSliceLookupTable=function(){let alphabet=`0123456789abcdef`,table=Array(256);for(let i$4=0;i$4<16;++i$4){let i16=i$4*16;for(let j$1=0;j$1<16;++j$1)table[i16+j$1]=alphabet[i$4]+alphabet[j$1]}return table}();function defineBigIntMethod(fn$1){return typeof BigInt>`u`?BufferBigIntNotDefined:fn$1}function BufferBigIntNotDefined(){throw Error(`BigInt not supported`)}}(buffer$1),Buffer$1=buffer$1.Buffer,Blob$1=buffer$1.Blob,BlobOptions=buffer$1.BlobOptions,Buffer$1$1=buffer$1.Buffer,File=buffer$1.File,FileOptions=buffer$1.FileOptions,INSPECT_MAX_BYTES=buffer$1.INSPECT_MAX_BYTES,SlowBuffer=buffer$1.SlowBuffer,TranscodeEncoding=buffer$1.TranscodeEncoding,atob$1=buffer$1.atob,btoa$1=buffer$1.btoa,constants$1=buffer$1.constants,isAscii=buffer$1.isAscii,isUtf8=buffer$1.isUtf8,kMaxLength=buffer$1.kMaxLength,kStringMaxLength=buffer$1.kStringMaxLength,resolveObjectURL=buffer$1.resolveObjectURL,transcode=buffer$1.transcode}),require_reach=__commonJSMin((exports,module)=>{let Assert$5=require_assert(),internals$40={};module.exports=function(obj,chain,options){if(chain===!1||chain==null)return obj;options||={},typeof options==`string`&&(options={separator:options});let isChainArray=Array.isArray(chain);Assert$5(!isChainArray||!options.separator,`Separator option is not valid for array-based chain`);let path=isChainArray?chain:chain.split(options.separator||`.`),ref=obj;for(let i$4=0;i$4<path.length;++i$4){let key=path[i$4],type=options.iterables&&internals$40.iterables(ref);if(Array.isArray(ref)||type===`set`){let number=Number(key);Number.isInteger(number)&&(key=number<0?ref.length+number:number)}if(!ref||typeof ref==`function`&&options.functions===!1||!type&&ref[key]===void 0){Assert$5(!options.strict||i$4+1===path.length,`Missing segment`,key,`in reach path `,chain),Assert$5(typeof ref==`object`||options.functions===!0||typeof ref!=`function`,`Invalid segment`,key,`in reach path `,chain),ref=options.default;break}ref=type?type===`set`?[...ref][key]:ref.get(key):ref[key]}return ref},internals$40.iterables=function(ref){if(ref instanceof Set)return`set`;if(ref instanceof Map)return`map`}}),require_types$1=__commonJSMin((exports,module)=>{init_dist$1();let internals$39={};exports=module.exports={array:Array.prototype,buffer:Buffer$1&&Buffer$1.prototype,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,url:URL.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},internals$39.typeMap=new Map([[`[object Error]`,exports.error],[`[object Map]`,exports.map],[`[object Promise]`,exports.promise],[`[object Set]`,exports.set],[`[object URL]`,exports.url],[`[object WeakMap]`,exports.weakMap],[`[object WeakSet]`,exports.weakSet]]),exports.getInternalProto=function(obj){if(Array.isArray(obj))return exports.array;if(Buffer$1&&obj instanceof Buffer$1)return exports.buffer;if(obj instanceof Date)return exports.date;if(obj instanceof RegExp)return exports.regex;if(obj instanceof Error)return exports.error;let objName=Object.prototype.toString.call(obj);return internals$39.typeMap.get(objName)||exports.generic}}),require_utils=__commonJSMin(exports=>{exports.keys=function(obj,options={}){return options.symbols===!1?Object.getOwnPropertyNames(obj):Reflect.ownKeys(obj)}}),require_clone=__commonJSMin((exports,module)=>{init_dist$1();let Reach$2=require_reach(),Types$1=require_types$1(),Utils$2=require_utils(),internals$38={needsProtoHack:new Set([Types$1.set,Types$1.map,Types$1.weakSet,Types$1.weakMap]),structuredCloneExists:typeof structuredClone==`function`};module.exports=internals$38.clone=function(obj,options={},_seen=null){if(typeof obj!=`object`||!obj)return obj;let clone$16=internals$38.clone,seen=_seen;if(options.shallow){if(options.shallow!==!0)return internals$38.cloneWithShallow(obj,options);clone$16=value=>value}else if(seen){let lookup$2=seen.get(obj);if(lookup$2)return lookup$2}else seen=new Map;let baseProto=Types$1.getInternalProto(obj);switch(baseProto){case Types$1.buffer:return Buffer$1?.from(obj);case Types$1.date:return new Date(obj.getTime());case Types$1.regex:case Types$1.url:return new baseProto.constructor(obj)}let newObj=internals$38.base(obj,baseProto,options);if(newObj===obj)return obj;if(seen&&seen.set(obj,newObj),baseProto===Types$1.set)for(let value of obj)newObj.add(clone$16(value,options,seen));else if(baseProto===Types$1.map)for(let[key,value]of obj)newObj.set(key,clone$16(value,options,seen));let keys=Utils$2.keys(obj,options);for(let key of keys){if(key===`__proto__`)continue;if(baseProto===Types$1.array&&key===`length`){newObj.length=obj.length;continue}if(internals$38.structuredCloneExists&&baseProto===Types$1.error&&key===`stack`)continue;let descriptor=Object.getOwnPropertyDescriptor(obj,key);descriptor?descriptor.get||descriptor.set?Object.defineProperty(newObj,key,descriptor):descriptor.enumerable?newObj[key]=clone$16(obj[key],options,seen):Object.defineProperty(newObj,key,{enumerable:!1,writable:!0,configurable:!0,value:clone$16(obj[key],options,seen)}):Object.defineProperty(newObj,key,{enumerable:!0,writable:!0,configurable:!0,value:clone$16(obj[key],options,seen)})}return newObj},internals$38.cloneWithShallow=function(source,options){let keys=options.shallow;options=Object.assign({},options),options.shallow=!1;let seen=new Map;for(let key of keys){let ref=Reach$2(source,key);(typeof ref==`object`||typeof ref==`function`)&&seen.set(ref,ref)}return internals$38.clone(source,options,seen)},internals$38.base=function(obj,baseProto,options){if(options.prototype===!1)return internals$38.needsProtoHack.has(baseProto)?new baseProto.constructor:baseProto===Types$1.array?[]:{};let proto=Object.getPrototypeOf(obj);if(proto&&proto.isImmutable)return obj;if(baseProto===Types$1.array){let newObj=[];return proto!==baseProto&&Object.setPrototypeOf(newObj,proto),newObj}else if(baseProto===Types$1.error&&internals$38.structuredCloneExists&&(proto===baseProto||Error.isPrototypeOf(proto.constructor))){let err$1=structuredClone(obj);return Object.getPrototypeOf(err$1)!==proto&&Object.setPrototypeOf(err$1,proto),err$1}if(internals$38.needsProtoHack.has(baseProto)){let newObj=new proto.constructor;return proto!==baseProto&&Object.setPrototypeOf(newObj,proto),newObj}return Object.create(proto)}}),require_merge=__commonJSMin((exports,module)=>{init_dist$1();let Assert$4=require_assert(),Clone$2=require_clone(),Utils$1=require_utils(),internals$37={};module.exports=internals$37.merge=function(target,source,options){if(Assert$4(target&&typeof target==`object`,`Invalid target value: must be an object`),Assert$4(source==null||typeof source==`object`,`Invalid source value: must be null, undefined, or an object`),!source)return target;if(options=Object.assign({nullOverride:!0,mergeArrays:!0},options),Array.isArray(source)){Assert$4(Array.isArray(target),`Cannot merge array onto an object`),options.mergeArrays||(target.length=0);for(let i$4=0;i$4<source.length;++i$4)target.push(Clone$2(source[i$4],{symbols:options.symbols}));return target}let keys=Utils$1.keys(source,options);for(let i$4=0;i$4<keys.length;++i$4){let key=keys[i$4];if(key===`__proto__`||!Object.prototype.propertyIsEnumerable.call(source,key))continue;let value=source[key];if(value&&typeof value==`object`){if(target[key]===value)continue;!target[key]||typeof target[key]!=`object`||Array.isArray(target[key])!==Array.isArray(value)||value instanceof Date||Buffer$1&&Buffer$1.isBuffer(value)||value instanceof RegExp?target[key]=Clone$2(value,{symbols:options.symbols}):internals$37.merge(target[key],value,options)}else value==null?options.nullOverride&&(target[key]=value):target[key]=value}return target}}),require_applyToDefaults=__commonJSMin((exports,module)=>{let Assert$3=require_assert(),Clone$1=require_clone(),Merge=require_merge(),Reach$1=require_reach(),internals$36={};module.exports=function(defaults,source,options={}){if(Assert$3(defaults&&typeof defaults==`object`,`Invalid defaults value: must be an object`),Assert$3(!source||source===!0||typeof source==`object`,`Invalid source value: must be true, falsy or an object`),Assert$3(typeof options==`object`,`Invalid options: must be an object`),!source)return null;if(options.shallow)return internals$36.applyToDefaultsWithShallow(defaults,source,options);let copy=Clone$1(defaults);if(source===!0)return copy;let nullOverride=options.nullOverride===void 0?!1:options.nullOverride;return Merge(copy,source,{nullOverride,mergeArrays:!1})},internals$36.applyToDefaultsWithShallow=function(defaults,source,options){let keys=options.shallow;Assert$3(Array.isArray(keys),`Invalid keys`);let seen=new Map,merge$3=source===!0?null:new Set;for(let key of keys){key=Array.isArray(key)?key:key.split(`.`);let ref=Reach$1(defaults,key);ref&&typeof ref==`object`?seen.set(ref,merge$3&&Reach$1(source,key)||ref):merge$3&&merge$3.add(key)}let copy=Clone$1(defaults,{},seen);if(!merge$3)return copy;for(let key of merge$3)internals$36.reachCopy(copy,source,key);let nullOverride=options.nullOverride===void 0?!1:options.nullOverride;return Merge(copy,source,{nullOverride,mergeArrays:!1})},internals$36.reachCopy=function(dst,src$1,path){for(let segment of path){if(!(segment in src$1))return;let val=src$1[segment];if(typeof val!=`object`||!val)return;src$1=val}let value=src$1,ref=dst;for(let i$4=0;i$4<path.length-1;++i$4){let segment=path[i$4];typeof ref[segment]!=`object`&&(ref[segment]={}),ref=ref[segment]}ref[path[path.length-1]]=value}});function getDefaultExportFromCjs(x$1){return x$1&&x$1.__esModule&&Object.prototype.hasOwnProperty.call(x$1,`default`)?x$1.default:x$1}function defaultSetTimout(){throw Error(`setTimeout has not been defined`)}function defaultClearTimeout(){throw Error(`clearTimeout has not been defined`)}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch{try{return cachedSetTimeout.call(null,fun,0)}catch{return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch{try{return cachedClearTimeout.call(null,marker)}catch{return cachedClearTimeout.call(this,marker)}}}function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len$2=queue.length;len$2;){for(currentQueue=queue,queue=[];++queueIndex<len$2;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,len$2=queue.length}currentQueue=null,draining=!1,runClearTimeout(timeout)}}function Item(fun,array){this.fun=fun,this.array=array}function noop(){}var browser$1,process,cachedSetTimeout,cachedClearTimeout,queue,draining,currentQueue,queueIndex,browserExports,process$1,init_dist=__esmMin(()=>{browser$1={exports:{}},process=browser$1.exports={},function(){try{cachedSetTimeout=typeof setTimeout==`function`?setTimeout:defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout=typeof clearTimeout==`function`?clearTimeout:defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}}(),queue=[],draining=!1,queueIndex=-1,process.nextTick=function(fun){var args$1=Array(arguments.length-1);if(arguments.length>1)for(var i$4=1;i$4<arguments.length;i$4++)args$1[i$4-1]=arguments[i$4];queue.push(new Item(fun,args$1)),queue.length===1&&!draining&&runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title=`browser`,process.browser=!0,process.env={},process.argv=[],process.version=``,process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(name$1){return[]},process.binding=function(name$1){throw Error(`process.binding is not supported`)},process.cwd=function(){return`/`},process.chdir=function(dir){throw Error(`process.chdir is not supported`)},process.umask=function(){return 0},browserExports=browser$1.exports,process$1=getDefaultExportFromCjs(browserExports)}),require_bench=__commonJSMin((exports,module)=>{init_dist();let internals$35={};module.exports=internals$35.Bench=class{constructor(){this.ts=0,this.reset()}reset(){this.ts=internals$35.Bench.now()}elapsed(){return internals$35.Bench.now()-this.ts}static now(){let ts=process$1.hrtime();return ts[0]*1e3+ts[1]/1e6}}}),require_ignore=__commonJSMin((exports,module)=>{module.exports=function(){}}),require_block=__commonJSMin((exports,module)=>{let Ignore=require_ignore();module.exports=function(){return new Promise(Ignore)}}),require_deepEqual=__commonJSMin((exports,module)=>{init_dist$1();let Types=require_types$1(),internals$34={mismatched:null};module.exports=function(obj,ref,options){return options=Object.assign({prototype:!0},options),!!internals$34.isDeepEqual(obj,ref,options,[])},internals$34.isDeepEqual=function(obj,ref,options,seen){if(obj===ref)return obj!==0||1/obj==1/ref;let type=typeof obj;if(type!==typeof ref||obj===null||ref===null)return!1;if(type===`function`){if(!options.deepFunction||obj.toString()!==ref.toString())return!1}else if(type!==`object`)return obj!==obj&&ref!==ref;let instanceType=internals$34.getSharedType(obj,ref,!!options.prototype);switch(instanceType){case Types.buffer:return Buffer$1&&Buffer$1.prototype.equals.call(obj,ref);case Types.promise:return obj===ref;case Types.regex:case Types.url:return obj.toString()===ref.toString();case internals$34.mismatched:return!1}for(let i$4=seen.length-1;i$4>=0;--i$4)if(seen[i$4].isSame(obj,ref))return!0;seen.push(new internals$34.SeenEntry(obj,ref));try{return!!internals$34.isDeepEqualObj(instanceType,obj,ref,options,seen)}finally{seen.pop()}},internals$34.getSharedType=function(obj,ref,checkPrototype){if(checkPrototype)return Object.getPrototypeOf(obj)===Object.getPrototypeOf(ref)?Types.getInternalProto(obj):internals$34.mismatched;let type=Types.getInternalProto(obj);return type===Types.getInternalProto(ref)?type:internals$34.mismatched},internals$34.valueOf=function(obj){let objValueOf=obj.valueOf;if(objValueOf===void 0)return obj;try{return objValueOf.call(obj)}catch(err$1){return err$1}},internals$34.hasOwnEnumerableProperty=function(obj,key){return Object.prototype.propertyIsEnumerable.call(obj,key)},internals$34.isSetSimpleEqual=function(obj,ref){for(let entry of Set.prototype.values.call(obj))if(!Set.prototype.has.call(ref,entry))return!1;return!0},internals$34.isDeepEqualObj=function(instanceType,obj,ref,options,seen){let{isDeepEqual,valueOf,hasOwnEnumerableProperty}=internals$34,{keys,getOwnPropertySymbols}=Object;if(instanceType===Types.array)if(options.part){for(let objValue of obj)for(let refValue of ref)if(isDeepEqual(objValue,refValue,options,seen))return!0}else{if(obj.length!==ref.length)return!1;for(let i$4=0;i$4<obj.length;++i$4)if(!isDeepEqual(obj[i$4],ref[i$4],options,seen))return!1;return!0}else if(instanceType===Types.set){if(obj.size!==ref.size)return!1;if(!internals$34.isSetSimpleEqual(obj,ref)){let ref2=new Set(Set.prototype.values.call(ref));for(let objEntry of Set.prototype.values.call(obj)){if(ref2.delete(objEntry))continue;let found=!1;for(let refEntry of ref2)if(isDeepEqual(objEntry,refEntry,options,seen)){ref2.delete(refEntry),found=!0;break}if(!found)return!1}}}else if(instanceType===Types.map){if(obj.size!==ref.size)return!1;for(let[key,value]of Map.prototype.entries.call(obj))if(value===void 0&&!Map.prototype.has.call(ref,key)||!isDeepEqual(value,Map.prototype.get.call(ref,key),options,seen))return!1}else if(instanceType===Types.error&&(obj.name!==ref.name||obj.message!==ref.message))return!1;let valueOfObj=valueOf(obj),valueOfRef=valueOf(ref);if((obj!==valueOfObj||ref!==valueOfRef)&&!isDeepEqual(valueOfObj,valueOfRef,options,seen))return!1;let objKeys=keys(obj);if(!options.part&&objKeys.length!==keys(ref).length&&!options.skip)return!1;let skipped=0;for(let key of objKeys){if(options.skip&&options.skip.includes(key)){ref[key]===void 0&&++skipped;continue}if(!hasOwnEnumerableProperty(ref,key)||!isDeepEqual(obj[key],ref[key],options,seen))return!1}if(!options.part&&objKeys.length-skipped!==keys(ref).length)return!1;if(options.symbols!==!1){let objSymbols=getOwnPropertySymbols(obj),refSymbols=new Set(getOwnPropertySymbols(ref));for(let key of objSymbols){if(!options.skip?.includes(key)){if(hasOwnEnumerableProperty(obj,key)){if(!hasOwnEnumerableProperty(ref,key)||!isDeepEqual(obj[key],ref[key],options,seen))return!1}else if(hasOwnEnumerableProperty(ref,key))return!1}refSymbols.delete(key)}for(let key of refSymbols)if(hasOwnEnumerableProperty(ref,key))return!1}return!0},internals$34.SeenEntry=class{constructor(obj,ref){this.obj=obj,this.ref=ref}isSame(obj,ref){return this.obj===obj&&this.ref===ref}}}),require_escapeRegex=__commonJSMin((exports,module)=>{module.exports=function(string){return string.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,`\\$&`)}}),require_contain=__commonJSMin((exports,module)=>{let Assert$2=require_assert(),DeepEqual=require_deepEqual(),EscapeRegex=require_escapeRegex(),Utils=require_utils(),internals$33={};module.exports=function(ref,values,options={}){return typeof values!=`object`&&(values=[values]),Assert$2(!Array.isArray(values)||values.length,`Values array cannot be empty`),typeof ref==`string`?internals$33.string(ref,values,options):Array.isArray(ref)?internals$33.array(ref,values,options):(Assert$2(typeof ref==`object`,`Reference must be string or an object`),internals$33.object(ref,values,options))},internals$33.array=function(ref,values,options){if(Array.isArray(values)||(values=[values]),!ref.length||options.only&&options.once&&ref.length!==values.length)return!1;let compare$14,map=new Map;for(let value of values)if(!options.deep||!value||typeof value!=`object`){let existing=map.get(value);existing?++existing.allowed:map.set(value,{allowed:1,hits:0})}else{compare$14??=internals$33.compare(options);let found=!1;for(let[key,existing]of map.entries())if(compare$14(key,value)){++existing.allowed,found=!0;break}found||map.set(value,{allowed:1,hits:0})}let hits=0;for(let item of ref){let match$2;if(!options.deep||!item||typeof item!=`object`)match$2=map.get(item);else{compare$14??=internals$33.compare(options);for(let[key,existing]of map.entries())if(compare$14(key,item)){match$2=existing;break}}if(match$2&&(++match$2.hits,++hits,options.once&&match$2.hits>match$2.allowed))return!1}if(options.only&&hits!==ref.length)return!1;for(let match$2 of map.values()){if(match$2.hits===match$2.allowed)continue;if(match$2.hits<match$2.allowed&&!options.part)return!1}return!!hits},internals$33.object=function(ref,values,options){Assert$2(options.once===void 0,`Cannot use option once with object`);let keys=Utils.keys(ref,options);if(!keys.length)return!1;if(Array.isArray(values))return internals$33.array(keys,values,options);let symbols=Object.getOwnPropertySymbols(values).filter(sym=>values.propertyIsEnumerable(sym)),targets=[...Object.keys(values),...symbols],compare$14=internals$33.compare(options),set=new Set(targets);for(let key of keys){if(!set.has(key)){if(options.only)return!1;continue}if(!compare$14(values[key],ref[key]))return!1;set.delete(key)}return set.size?options.part?set.size<targets.length:!1:!0},internals$33.string=function(ref,values,options){if(ref===``)return values.length===1&&values[0]===``||!options.once&&!values.some(v=>v!==``);let map=new Map,patterns=[];for(let value of values)if(Assert$2(typeof value==`string`,`Cannot compare string reference to non-string value`),value){let existing=map.get(value);existing?++existing.allowed:(map.set(value,{allowed:1,hits:0}),patterns.push(EscapeRegex(value)))}else if(options.once||options.only)return!1;if(!patterns.length)return!0;let regex=RegExp(`(${patterns.join(`|`)})`,`g`),leftovers=ref.replace(regex,($0,$1)=>(++map.get($1).hits,``));if(options.only&&leftovers)return!1;let any=!1;for(let match$2 of map.values()){if(match$2.hits&&(any=!0),match$2.hits===match$2.allowed)continue;if(match$2.hits<match$2.allowed&&!options.part||options.once)return!1}return!!any},internals$33.compare=function(options){if(!options.deep)return internals$33.shallow;let hasOnly=options.only!==void 0,hasPart=options.part!==void 0,flags={prototype:hasOnly?options.only:hasPart?!options.part:!1,part:hasOnly?!options.only:hasPart?options.part:!1};return(a,b)=>DeepEqual(a,b,flags)},internals$33.shallow=function(a,b){return a===b}}),require_escapeHeaderAttribute=__commonJSMin((exports,module)=>{let Assert$1=require_assert();module.exports=function(attribute){return Assert$1(/^[ \w\!#\$%&'\(\)\*\+,\-\.\/\:;<\=>\?@\[\]\^`\{\|\}~\"\\]*$/.test(attribute),`Bad attribute value (`+attribute+`)`),attribute.replace(/\\/g,`\\\\`).replace(/\"/g,`\\"`)}}),require_escapeHtml=__commonJSMin((exports,module)=>{let internals$32={};module.exports=function(input){if(!input)return``;let escaped=``;for(let i$4=0;i$4<input.length;++i$4){let charCode=input.charCodeAt(i$4);internals$32.isSafe(charCode)?escaped+=input[i$4]:escaped+=internals$32.escapeHtmlChar(charCode)}return escaped},internals$32.escapeHtmlChar=function(charCode){let namedEscape=internals$32.namedHtml.get(charCode);if(namedEscape)return namedEscape;if(charCode>=256)return`&#`+charCode+`;`;let hexValue=charCode.toString(16).padStart(2,`0`);return`&#x${hexValue};`},internals$32.isSafe=function(charCode){return internals$32.safeCharCodes.has(charCode)},internals$32.namedHtml=new Map([[38,`&amp;`],[60,`&lt;`],[62,`&gt;`],[34,`&quot;`],[160,`&nbsp;`],[162,`&cent;`],[163,`&pound;`],[164,`&curren;`],[169,`&copy;`],[174,`&reg;`]]),internals$32.safeCharCodes=function(){let safe=new Set;for(let i$4=32;i$4<123;++i$4)(i$4>=97||i$4>=65&&i$4<=90||i$4>=48&&i$4<=57||i$4===32||i$4===46||i$4===44||i$4===45||i$4===58||i$4===95)&&safe.add(i$4);return safe}()}),require_escapeJson=__commonJSMin((exports,module)=>{let internals$31={};module.exports=function(input){return input?input.replace(/[<>&\u2028\u2029]/g,internals$31.escape):``},internals$31.escape=function(char){return internals$31.replacements.get(char)},internals$31.replacements=new Map([[`<`,`\\u003c`],[`>`,`\\u003e`],[`&`,`\\u0026`],[`\u2028`,`\\u2028`],[`\u2029`,`\\u2029`]])}),require_flatten=__commonJSMin((exports,module)=>{let internals$30={};module.exports=internals$30.flatten=function(array,target){let result=target||[];for(let entry of array)Array.isArray(entry)?internals$30.flatten(entry,result):result.push(entry);return result}}),require_intersect=__commonJSMin((exports,module)=>{let internals$29={};module.exports=function(array1,array2,options={}){if(!array1||!array2)return options.first?null:[];let common=[],hash=Array.isArray(array1)?new Set(array1):array1,found=new Set;for(let value of array2)if(internals$29.has(hash,value)&&!found.has(value)){if(options.first)return value;common.push(value),found.add(value)}return options.first?null:common},internals$29.has=function(ref,key){return typeof ref.has==`function`?ref.has(key):ref[key]!==void 0}}),require_isPromise=__commonJSMin((exports,module)=>{module.exports=function(promise){return typeof promise?.then==`function`}}),require_once=__commonJSMin((exports,module)=>{let internals$28={wrapped:Symbol(`wrapped`)};module.exports=function(method){if(method[internals$28.wrapped])return method;let once$1=!1,wrappedFn=function(...args$1){once$1||(once$1=!0,method(...args$1))};return wrappedFn[internals$28.wrapped]=!0,wrappedFn}}),require_reachTemplate=__commonJSMin((exports,module)=>{let Reach=require_reach();module.exports=function(obj,template,options){return template.replace(/{([^{}]+)}/g,($0,chain)=>{let value=Reach(obj,chain,options);return value??``})}}),require_wait=__commonJSMin((exports,module)=>{let internals$27={maxTimer:2**31-1};module.exports=function(timeout,returnValue,options){if(typeof timeout==`bigint`&&(timeout=Number(timeout)),timeout>=2**53-1&&(timeout=1/0),typeof timeout!=`number`&&timeout!==void 0)throw TypeError(`Timeout must be a number or bigint`);return new Promise(resolve=>{let _setTimeout=options?options.setTimeout:setTimeout,activate=()=>{let time=Math.min(timeout,internals$27.maxTimer);timeout-=time,_setTimeout(()=>timeout>0?activate():resolve(returnValue),time)};timeout!==1/0&&activate()})}}),import_applyToDefaults,import_assert,import_bench,import_block,import_clone,import_contain,import_deepEqual,import_assertError,import_escapeHeaderAttribute,import_escapeHtml,import_escapeJson,import_escapeRegex,import_flatten,import_ignore,import_intersect,import_isPromise,import_merge,import_once,import_reach,import_reachTemplate,import_stringify,import_wait,init_lib=__esmMin(()=>{import_applyToDefaults=__toESM(require_applyToDefaults(),1),import_assert=__toESM(require_assert(),1),import_bench=__toESM(require_bench(),1),import_block=__toESM(require_block(),1),import_clone=__toESM(require_clone(),1),import_contain=__toESM(require_contain(),1),import_deepEqual=__toESM(require_deepEqual(),1),import_assertError=__toESM(require_assertError(),1),import_escapeHeaderAttribute=__toESM(require_escapeHeaderAttribute(),1),import_escapeHtml=__toESM(require_escapeHtml(),1),import_escapeJson=__toESM(require_escapeJson(),1),import_escapeRegex=__toESM(require_escapeRegex(),1),import_flatten=__toESM(require_flatten(),1),import_ignore=__toESM(require_ignore(),1),import_intersect=__toESM(require_intersect(),1),import_isPromise=__toESM(require_isPromise(),1),import_merge=__toESM(require_merge(),1),import_once=__toESM(require_once(),1),import_reach=__toESM(require_reach(),1),import_reachTemplate=__toESM(require_reachTemplate(),1),import_stringify=__toESM(require_stringify(),1),import_wait=__toESM(require_wait(),1)}),require_lib$4=__commonJSMin(exports=>{exports.applyToDefaults=require_applyToDefaults(),exports.assert=require_assert(),exports.AssertError=require_assertError(),exports.Bench=require_bench(),exports.block=require_block(),exports.clone=require_clone(),exports.contain=require_contain(),exports.deepEqual=require_deepEqual(),exports.escapeHeaderAttribute=require_escapeHeaderAttribute(),exports.escapeHtml=require_escapeHtml(),exports.escapeJson=require_escapeJson(),exports.escapeRegex=require_escapeRegex(),exports.flatten=require_flatten(),exports.ignore=require_ignore(),exports.intersect=require_intersect(),exports.isPromise=require_isPromise(),exports.merge=require_merge(),exports.once=require_once(),exports.reach=require_reach(),exports.reachTemplate=require_reachTemplate(),exports.stringify=require_stringify(),exports.wait=require_wait()}),package_exports={};__export(package_exports,{browser:()=>browser,default:()=>package_default,dependencies:()=>dependencies,description:()=>description,devDependencies:()=>devDependencies,engines:()=>engines,files:()=>files,keywords:()=>keywords,license:()=>license,main:()=>main,name:()=>name,repository:()=>repository,scripts:()=>scripts,types:()=>types,version:()=>version$2});var name,description,version$2,repository,engines,main,types,browser,files,keywords,dependencies,devDependencies,scripts,license,package_default,init_package=__esmMin(()=>{name=`joi`,description=`Object schema validation`,version$2=`18.0.1`,repository={url:`git://github.com/hapijs/joi`,type:`git`},engines={node:`>= 20`},main=`lib/index.js`,types=`lib/index.d.ts`,browser=`dist/joi-browser.min.js`,files=[`lib/**/*`,`dist/*`],keywords=[`schema`,`validation`],dependencies={"@hapi/address":`^5.1.1`,"@hapi/formula":`^3.0.2`,"@hapi/hoek":`^11.0.7`,"@hapi/pinpoint":`^2.0.1`,"@hapi/tlds":`^1.1.1`,"@hapi/topo":`^6.0.2`,"@standard-schema/spec":`^1.0.0`},devDependencies={"@hapi/bourne":`^3.0.0`,"@hapi/code":`^9.0.3`,"@hapi/eslint-plugin":`^7.0.0`,"@hapi/joi-legacy-test":`npm:@hapi/joi@15.x.x`,"@hapi/lab":`^26.0.0`,"@types/node":`^20.17.47`,typescript:`^5.8.3`},scripts={prepublishOnly:`cd browser && npm install && npm run build`,test:`lab -t 100 -a @hapi/code -L -Y`,"test-cov-html":`lab -r html -o coverage.html -a @hapi/code`},license=`BSD-3-Clause`,package_default={name,description,version:version$2,repository,engines,main,types,browser,files,keywords,dependencies,devDependencies,scripts,license}}),require_cache=__commonJSMin(exports=>{let{assert:assert$27,clone:clone$14}=require_lib$4(),Common$24=require_common(),internals$26={max:1e3,supported:new Set([`undefined`,`boolean`,`number`,`string`])};exports.provider={provision(options){return new internals$26.Cache(options)}},internals$26.Cache=class{constructor(options={}){Common$24.assertOptions(options,[`max`]),assert$27(options.max===void 0||options.max&&options.max>0&&isFinite(options.max),`Invalid max cache size`),this._max=options.max||internals$26.max,this._map=new Map,this._list=new internals$26.List}get length(){return this._map.size}set(key,value){if(key!==null&&!internals$26.supported.has(typeof key))return;let node=this._map.get(key);if(node){node.value=value,this._list.first(node);return}node=this._list.unshift({key,value}),this._map.set(key,node),this._compact()}get(key){let node=this._map.get(key);if(node)return this._list.first(node),clone$14(node.value)}_compact(){if(this._map.size>this._max){let node=this._list.pop();this._map.delete(node.key)}}},internals$26.List=class{constructor(){this.tail=null,this.head=null}unshift(node){return node.next=null,node.prev=this.head,this.head&&(this.head.next=node),this.head=node,this.tail||=node,node}first(node){node!==this.head&&(this._remove(node),this.unshift(node))}pop(){return this._remove(this.tail)}_remove(node){let{next,prev}=node;return next.prev=prev,prev&&(prev.next=next),node===this.tail&&(this.tail=next),node.prev=null,node.next=null,node}}}),require_compile=__commonJSMin(exports=>{let{assert:assert$26}=require_lib$4(),Common$23=require_common(),Ref$8=require_ref(),internals$25={};exports.schema=function(Joi$2,config,options={}){Common$23.assertOptions(options,[`appendPath`,`override`]);try{return internals$25.schema(Joi$2,config,options)}catch(err$1){throw options.appendPath&&err$1.path!==void 0&&(err$1.message=`${err$1.message} (${err$1.path})`),err$1}},internals$25.schema=function(Joi$2,config,options){assert$26(config!==void 0,`Invalid undefined schema`),Array.isArray(config)&&(assert$26(config.length,`Invalid empty array schema`),config.length===1&&(config=config[0]));let valid$2=(base,...values)=>options.override===!1?base.valid(...values):base.valid(Joi$2.override,...values);if(internals$25.simple(config))return valid$2(Joi$2,config);if(typeof config==`function`)return Joi$2.custom(config);if(assert$26(typeof config==`object`,`Invalid schema content:`,typeof config),Common$23.isResolvable(config))return valid$2(Joi$2,config);if(Common$23.isSchema(config))return config;if(Array.isArray(config)){for(let item of config)if(!internals$25.simple(item))return Joi$2.alternatives().try(...config);return valid$2(Joi$2,...config)}return config instanceof RegExp?Joi$2.string().regex(config):config instanceof Date?valid$2(Joi$2.date(),config):(assert$26(Object.getPrototypeOf(config)===Object.getPrototypeOf({}),`Schema can only contain plain objects`),Joi$2.object().keys(config))},exports.ref=function(id,options){return Ref$8.isRef(id)?id:Ref$8.create(id,options)},exports.compile=function(root,schema,options={}){Common$23.assertOptions(options,[`legacy`]);let any=schema&&schema[Common$23.symbols.any];if(any)return assert$26(options.legacy||any.version===Common$23.version,`Cannot mix different versions of joi schemas:`,any.version,Common$23.version),schema;if(typeof schema!=`object`||!options.legacy)return exports.schema(root,schema,{appendPath:!0});let compiler=internals$25.walk(schema);return compiler?compiler.compile(compiler.root,schema):exports.schema(root,schema,{appendPath:!0})},internals$25.walk=function(schema){if(typeof schema!=`object`)return null;if(Array.isArray(schema)){for(let item of schema){let compiler=internals$25.walk(item);if(compiler)return compiler}return null}let any=schema[Common$23.symbols.any];if(any)return{root:schema[any.root],compile:any.compile};for(let key in assert$26(Object.getPrototypeOf(schema)===Object.getPrototypeOf({}),`Schema can only contain plain objects`),schema){let compiler=internals$25.walk(schema[key]);if(compiler)return compiler}return null},internals$25.simple=function(value){return value===null||[`boolean`,`string`,`number`].includes(typeof value)},exports.when=function(schema,condition,options){if(options===void 0&&(assert$26(condition&&typeof condition==`object`,`Missing options`),options=condition,condition=Ref$8.create(`.`)),Array.isArray(options)&&(options={switch:options}),Common$23.assertOptions(options,[`is`,`not`,`then`,`otherwise`,`switch`,`break`]),Common$23.isSchema(condition))return assert$26(options.is===void 0,`"is" can not be used with a schema condition`),assert$26(options.not===void 0,`"not" can not be used with a schema condition`),assert$26(options.switch===void 0,`"switch" can not be used with a schema condition`),internals$25.condition(schema,{is:condition,then:options.then,otherwise:options.otherwise,break:options.break});if(assert$26(Ref$8.isRef(condition)||typeof condition==`string`,`Invalid condition:`,condition),assert$26(options.not===void 0||options.is===void 0,`Cannot combine "is" with "not"`),options.switch===void 0){let rule$1=options;options.not!==void 0&&(rule$1={is:options.not,then:options.otherwise,otherwise:options.then,break:options.break});let is=rule$1.is===void 0?schema.$_root.invalid(null,!1,0,``).required():schema.$_compile(rule$1.is);return assert$26(rule$1.then!==void 0||rule$1.otherwise!==void 0,`options must have at least one of "then", "otherwise", or "switch"`),assert$26(rule$1.break===void 0||rule$1.then===void 0||rule$1.otherwise===void 0,`Cannot specify then, otherwise, and break all together`),options.is!==void 0&&!Ref$8.isRef(options.is)&&!Common$23.isSchema(options.is)&&(is=is.required()),internals$25.condition(schema,{ref:exports.ref(condition),is,then:rule$1.then,otherwise:rule$1.otherwise,break:rule$1.break})}assert$26(Array.isArray(options.switch),`"switch" must be an array`),assert$26(options.is===void 0,`Cannot combine "switch" with "is"`),assert$26(options.not===void 0,`Cannot combine "switch" with "not"`),assert$26(options.then===void 0,`Cannot combine "switch" with "then"`);let rule={ref:exports.ref(condition),switch:[],break:options.break};for(let i$4=0;i$4<options.switch.length;++i$4){let test=options.switch[i$4],last=i$4===options.switch.length-1;Common$23.assertOptions(test,last?[`is`,`then`,`otherwise`]:[`is`,`then`]),assert$26(test.is!==void 0,`Switch statement missing "is"`),assert$26(test.then!==void 0,`Switch statement missing "then"`);let item={is:schema.$_compile(test.is),then:schema.$_compile(test.then)};if(!Ref$8.isRef(test.is)&&!Common$23.isSchema(test.is)&&(item.is=item.is.required()),last){assert$26(options.otherwise===void 0||test.otherwise===void 0,`Cannot specify "otherwise" inside and outside a "switch"`);let otherwise=options.otherwise===void 0?test.otherwise:options.otherwise;otherwise!==void 0&&(assert$26(rule.break===void 0,`Cannot specify both otherwise and break`),item.otherwise=schema.$_compile(otherwise))}rule.switch.push(item)}return rule},internals$25.condition=function(schema,condition){for(let key of[`then`,`otherwise`])condition[key]===void 0?delete condition[key]:condition[key]=schema.$_compile(condition[key]);return condition}}),require_annotate=__commonJSMin(exports=>{let{clone:clone$13}=require_lib$4(),Common$22=require_common(),internals$24={annotations:Symbol(`annotations`)};exports.error=function(stripColorCodes){if(!this._original||typeof this._original!=`object`)return this.details[0].message;let redFgEscape=stripColorCodes?``:`\x1B[31m`,redBgEscape=stripColorCodes?``:`\x1B[41m`,endColor=stripColorCodes?``:`\x1B[0m`,obj=clone$13(this._original);for(let i$4=this.details.length-1;i$4>=0;--i$4){let pos=i$4+1,error=this.details[i$4],path=error.path,node=obj;for(let j$1=0;;++j$1){let seg=path[j$1];if(Common$22.isSchema(node)&&(node=node.clone()),j$1+1<path.length&&typeof node[seg]!=`string`)node=node[seg];else{let refAnnotations=node[internals$24.annotations]||{errors:{},missing:{}};node[internals$24.annotations]=refAnnotations;let cacheKey=seg||error.context.key;node[seg]===void 0?refAnnotations.missing[cacheKey]=pos:(refAnnotations.errors[cacheKey]=refAnnotations.errors[cacheKey]||[],refAnnotations.errors[cacheKey].push(pos));break}}}let replacers={key:/_\$key\$_([, \d]+)_\$end\$_"/g,missing:/"_\$miss\$_([^|]+)\|(\d+)_\$end\$_": "__missing__"/g,arrayIndex:/\s*"_\$idx\$_([, \d]+)_\$end\$_",?\n(.*)/g,specials:/"\[(NaN|Symbol.*|-?Infinity|function.*|\(.*)]"/g},message=internals$24.safeStringify(obj,2).replace(replacers.key,($0,$1)=>`" ${redFgEscape}[${$1}]${endColor}`).replace(replacers.missing,($0,$1,$2)=>`${redBgEscape}"${$1}"${endColor}${redFgEscape} [${$2}]: -- missing --${endColor}`).replace(replacers.arrayIndex,($0,$1,$2)=>`\n${$2} ${redFgEscape}[${$1}]${endColor}`).replace(replacers.specials,($0,$1)=>$1);message=`${message}\n${redFgEscape}`;for(let i$4=0;i$4<this.details.length;++i$4){let pos=i$4+1;message=`${message}\n[${pos}] ${this.details[i$4].message}`}return message+=endColor,message},internals$24.safeStringify=function(obj,spaces){return JSON.stringify(obj,internals$24.serializer(),spaces)},internals$24.serializer=function(){let keys=[],stack=[],cycleReplacer=(key,value)=>stack[0]===value?`[Circular ~]`:`[Circular ~.`+keys.slice(0,stack.indexOf(value)).join(`.`)+`]`;return function(key,value){if(stack.length>0){let thisPos=stack.indexOf(this);~thisPos?(stack.length=thisPos+1,keys.length=thisPos+1,keys[thisPos]=key):(stack.push(this),keys.push(key)),~stack.indexOf(value)&&(value=cycleReplacer.call(this,key,value))}else stack.push(value);if(value){let annotations=value[internals$24.annotations];if(annotations){if(Array.isArray(value)){let annotated=[];for(let i$4=0;i$4<value.length;++i$4)annotations.errors[i$4]&&annotated.push(`_$idx$_${annotations.errors[i$4].sort().join(`, `)}_$end$_`),annotated.push(value[i$4]);value=annotated}else{for(let errorKey in annotations.errors)value[`${errorKey}_$key$_${annotations.errors[errorKey].sort().join(`, `)}_$end$_`]=value[errorKey],value[errorKey]=void 0;for(let missingKey in annotations.missing)value[`_$miss$_${missingKey}|${annotations.missing[missingKey]}_$end$_`]=`__missing__`}return value}}return value===1/0||value===-1/0||Number.isNaN(value)||typeof value==`function`||typeof value==`symbol`?`[`+value.toString()+`]`:value}}}),require_lib$3=__commonJSMin(exports=>{let internals$23={operators:[`!`,`^`,`*`,`/`,`%`,`+`,`-`,`<`,`<=`,`>`,`>=`,`==`,`!=`,`&&`,`||`,`??`],operatorCharacters:[`!`,`^`,`*`,`/`,`%`,`+`,`-`,`<`,`=`,`>`,`&`,`|`,`?`],operatorsOrder:[[`^`],[`*`,`/`,`%`],[`+`,`-`],[`<`,`<=`,`>`,`>=`],[`==`,`!=`],[`&&`],[`||`,`??`]],operatorsPrefix:[`!`,`n`],literals:{'"':`"`,"`":"`","'":`'`,"[":`]`},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol(`formula`),settings:Symbol(`settings`)};exports.Parser=class{constructor(string,options={}){if(!options[internals$23.settings]&&options.constants)for(let constant in options.constants){let value=options.constants[constant];if(value!==null&&![`boolean`,`number`,`string`].includes(typeof value))throw Error(`Formula constant ${constant} contains invalid ${typeof value} value type`)}this.settings=options[internals$23.settings]?options:Object.assign({[internals$23.settings]:!0,constants:{},functions:{}},options),this.single=null,this._parts=null,this._parse(string)}_parse(string){let parts=[],current=``,parenthesis=0,literal=!1,flush=inner=>{if(parenthesis)throw Error(`Formula missing closing parenthesis`);let last=parts.length?parts[parts.length-1]:null;if(!(!literal&&!current&&!inner)){if(last&&last.type===`reference`&&inner===`)`){last.type=`function`,last.value=this._subFormula(current,last.value),current=``;return}if(inner===`)`){let sub=new exports.Parser(current,this.settings);parts.push({type:`segment`,value:sub})}else if(literal){if(literal===`]`){parts.push({type:`reference`,value:current}),current=``;return}parts.push({type:`literal`,value:current})}else if(internals$23.operatorCharacters.includes(current))last&&last.type===`operator`&&internals$23.operators.includes(last.value+current)?last.value+=current:parts.push({type:`operator`,value:current});else if(current.match(internals$23.numberRx))parts.push({type:`constant`,value:parseFloat(current)});else if(this.settings.constants[current]!==void 0)parts.push({type:`constant`,value:this.settings.constants[current]});else{if(!current.match(internals$23.tokenRx))throw Error(`Formula contains invalid token: ${current}`);parts.push({type:`reference`,value:current})}current=``}};for(let c$1 of string)literal?c$1===literal?(flush(),literal=!1):current+=c$1:parenthesis?c$1===`(`?(current+=c$1,++parenthesis):c$1===`)`?(--parenthesis,parenthesis?current+=c$1:flush(c$1)):current+=c$1:c$1 in internals$23.literals?literal=internals$23.literals[c$1]:c$1===`(`?(flush(),++parenthesis):internals$23.operatorCharacters.includes(c$1)?(flush(),current=c$1,flush()):c$1===` `?flush():current+=c$1;flush(),parts=parts.map((part,i$4)=>part.type!==`operator`||part.value!==`-`||i$4&&parts[i$4-1].type!==`operator`?part:{type:`operator`,value:`n`});let operator=!1;for(let part of parts){if(part.type===`operator`){if(internals$23.operatorsPrefix.includes(part.value))continue;if(!operator)throw Error(`Formula contains an operator in invalid position`);if(!internals$23.operators.includes(part.value))throw Error(`Formula contains an unknown operator ${part.value}`)}else if(operator)throw Error(`Formula missing expected operator`);operator=!operator}if(!operator)throw Error(`Formula contains invalid trailing operator`);parts.length===1&&[`reference`,`literal`,`constant`].includes(parts[0].type)&&(this.single={type:parts[0].type===`reference`?`reference`:`value`,value:parts[0].value}),this._parts=parts.map(part=>{if(part.type===`operator`)return internals$23.operatorsPrefix.includes(part.value)?part:part.value;if(part.type!==`reference`)return part.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(part.value))throw Error(`Formula contains invalid reference ${part.value}`);return this.settings.reference?this.settings.reference(part.value):internals$23.reference(part.value)})}_subFormula(string,name$1){let method=this.settings.functions[name$1];if(typeof method!=`function`)throw Error(`Formula contains unknown function ${name$1}`);let args$1=[];if(string){let current=``,parenthesis=0,literal=!1,flush=()=>{if(!current)throw Error(`Formula contains function ${name$1} with invalid arguments ${string}`);args$1.push(current),current=``};for(let i$4=0;i$4<string.length;++i$4){let c$1=string[i$4];literal?(current+=c$1,c$1===literal&&(literal=!1)):c$1 in internals$23.literals&&!parenthesis?(current+=c$1,literal=internals$23.literals[c$1]):c$1===`,`&&!parenthesis?flush():(current+=c$1,c$1===`(`?++parenthesis:c$1===`)`&&--parenthesis)}flush()}return args$1=args$1.map(arg=>new exports.Parser(arg,this.settings)),function(context){let innerValues=[];for(let arg of args$1)innerValues.push(arg.evaluate(context));return method.call(context,...innerValues)}}evaluate(context){let parts=this._parts.slice();for(let i$4=parts.length-2;i$4>=0;--i$4){let part=parts[i$4];if(part&&part.type===`operator`){let current=parts[i$4+1];parts.splice(i$4+1,1);let value=internals$23.evaluate(current,context);parts[i$4]=internals$23.single(part.value,value)}}return internals$23.operatorsOrder.forEach(set=>{for(let i$4=1;i$4<parts.length-1;)if(set.includes(parts[i$4])){let operator=parts[i$4],left=internals$23.evaluate(parts[i$4-1],context),right=internals$23.evaluate(parts[i$4+1],context);parts.splice(i$4,2);let result=internals$23.calculate(operator,left,right);parts[i$4-1]=result===0?0:result}else i$4+=2}),internals$23.evaluate(parts[0],context)}},exports.Parser.prototype[internals$23.symbol]=!0,internals$23.reference=function(name$1){return function(context){return context&&context[name$1]!==void 0?context[name$1]:null}},internals$23.evaluate=function(part,context){return part===null?null:typeof part==`function`?part(context):part[internals$23.symbol]?part.evaluate(context):part},internals$23.single=function(operator,value){if(operator===`!`)return!value;let negative=-value;return negative===0?0:negative},internals$23.calculate=function(operator,left,right){if(operator===`??`)return internals$23.exists(left)?left:right;if(typeof left==`string`||typeof right==`string`){if(operator===`+`)return left=internals$23.exists(left)?left:``,right=internals$23.exists(right)?right:``,left+right}else switch(operator){case`^`:return left**+right;case`*`:return left*right;case`/`:return left/right;case`%`:return left%right;case`+`:return left+right;case`-`:return left-right}switch(operator){case`<`:return left<right;case`<=`:return left<=right;case`>`:return left>right;case`>=`:return left>=right;case`==`:return left===right;case`!=`:return left!==right;case`&&`:return left&&right;case`||`:return left||right}return null},internals$23.exists=function(value){return value!=null}}),require_template=__commonJSMin((exports,module)=>{let{assert:assert$25,clone:clone$12,escapeHtml}=require_lib$4(),Formula=require_lib$3(),Common$21=require_common(),Errors$8=require_errors(),Ref$7=require_ref(),internals$22={symbol:Symbol(`template`),opens:Array(1e3).join(`\0`),closes:Array(1e3).join(``),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};module.exports=exports=internals$22.Template=class{constructor(source,options){if(assert$25(typeof source==`string`,`Template source must be a string`),assert$25(!source.includes(`\0`)&&!source.includes(``),`Template source cannot contain reserved control characters`),this.source=source,this.rendered=source,this._template=null,options){let{functions,...opts}=options;this._settings=Object.keys(opts).length?clone$12(opts):void 0,this._functions=functions,this._functions&&(assert$25(Object.keys(this._functions).every(key=>typeof key==`string`),`Functions keys must be strings`),assert$25(Object.values(this._functions).every(key=>typeof key==`function`),`Functions values must be functions`))}else this._settings=void 0,this._functions=void 0;this._parse()}_parse(){if(!this.source.includes(`{`))return;let encoded=internals$22.encode(this.source),parts=internals$22.split(encoded),refs=!1,processed=[],head=parts.shift();head&&processed.push(head);for(let part of parts){let raw=part[0]!==`{`,ender=raw?`}`:`}}`,end=part.indexOf(ender);if(end===-1||part[1]===`{`){processed.push(`{${internals$22.decode(part)}`);continue}let variable=part.slice(raw?0:1,end),wrapped=variable[0]===`:`;wrapped&&(variable=variable.slice(1));let dynamic=this._ref(internals$22.decode(variable),{raw,wrapped});processed.push(dynamic),typeof dynamic!=`string`&&(refs=!0);let rest=part.slice(end+ender.length);rest&&processed.push(internals$22.decode(rest))}if(!refs){this.rendered=processed.join(``);return}this._template=processed}static date(date,prefs){return internals$22.dateFormat[prefs.dateFormat].call(date)}describe(options={}){if(!this._settings&&options.compact)return this.source;let desc$1={template:this.source};return this._settings&&(desc$1.options=this._settings),this._functions&&(desc$1.functions=this._functions),desc$1}static build(desc$1){return new internals$22.Template(desc$1.template,desc$1.options||desc$1.functions?{...desc$1.options,functions:desc$1.functions}:void 0)}isDynamic(){return!!this._template}static isTemplate(template){return template?!!template[Common$21.symbols.template]:!1}refs(){if(!this._template)return;let refs=[];for(let part of this._template)typeof part!=`string`&&refs.push(...part.refs);return refs}resolve(value,state,prefs,local){return this._template&&this._template.length===1?this._part(this._template[0],value,state,prefs,local,{}):this.render(value,state,prefs,local)}_part(part,...args$1){return part.ref?part.ref.resolve(...args$1):part.formula.evaluate(args$1)}render(value,state,prefs,local,options={}){if(!this.isDynamic())return this.rendered;let parts=[];for(let part of this._template)if(typeof part==`string`)parts.push(part);else{let rendered=this._part(part,value,state,prefs,local,options),string=internals$22.stringify(rendered,value,state,prefs,local,options);if(string!==void 0){let result=part.raw||(options.errors&&options.errors.escapeHtml)===!1?string:escapeHtml(string);parts.push(internals$22.wrap(result,part.wrapped&&prefs.errors.wrap.label))}}return parts.join(``)}_ref(content,{raw,wrapped}){let refs=[],reference=variable=>{let ref=Ref$7.create(variable,this._settings);return refs.push(ref),context=>{let resolved=ref.resolve(...context);return resolved===void 0?null:resolved}};try{let functions=this._functions?{...internals$22.functions,...this._functions}:internals$22.functions;var formula=new Formula.Parser(content,{reference,functions,constants:internals$22.constants})}catch(err$1){throw err$1.message=`Invalid template variable "${content}" fails due to: ${err$1.message}`,err$1}if(formula.single){if(formula.single.type===`reference`){let ref=refs[0];return{ref,raw,refs,wrapped:wrapped||ref.type===`local`&&ref.key===`label`}}return internals$22.stringify(formula.single.value)}return{formula,raw,refs}}toString(){return this.source}},internals$22.Template.prototype[Common$21.symbols.template]=!0,internals$22.Template.prototype.isImmutable=!0,internals$22.encode=function(string){return string.replace(/\\(\{+)/g,($0,$1)=>internals$22.opens.slice(0,$1.length)).replace(/\\(\}+)/g,($0,$1)=>internals$22.closes.slice(0,$1.length))},internals$22.decode=function(string){return string.replace(/\u0000/g,`{`).replace(/\u0001/g,`}`)},internals$22.split=function(string){let parts=[],current=``;for(let i$4=0;i$4<string.length;++i$4){let char=string[i$4];if(char===`{`){let next=``;for(;i$4+1<string.length&&string[i$4+1]===`{`;)next+=`{`,++i$4;parts.push(current),current=next}else current+=char}return parts.push(current),parts},internals$22.wrap=function(value,ends){return ends?ends.length===1?`${ends}${value}${ends}`:`${ends[0]}${value}${ends[1]}`:value},internals$22.stringify=function(value,original,state,prefs,local,options={}){let type=typeof value,wrap$1=prefs&&prefs.errors&&prefs.errors.wrap||{},skipWrap=!1;if(Ref$7.isRef(value)&&value.render&&(skipWrap=value.in,value=value.resolve(original,state,prefs,local,{in:value.in,...options})),value===null)return`null`;if(type===`string`)return internals$22.wrap(value,options.arrayItems&&wrap$1.string);if(type===`number`||type===`function`||type===`symbol`)return value.toString();if(type!==`object`)return JSON.stringify(value);if(value instanceof Date)return internals$22.Template.date(value,prefs);if(value instanceof Map){let pairs=[];for(let[key,sym]of value.entries())pairs.push(`${key.toString()} -> ${sym.toString()}`);value=pairs}if(!Array.isArray(value))return value.toString();let values=[];for(let item of value)values.push(internals$22.stringify(item,original,state,prefs,local,{arrayItems:!0,...options}));return internals$22.wrap(values.join(`, `),!skipWrap&&wrap$1.array)},internals$22.constants={true:!0,false:!1,null:null,second:1e3,minute:60*1e3,hour:60*60*1e3,day:24*60*60*1e3},internals$22.functions={if(condition,then,otherwise){return condition?then:otherwise},length(item){return typeof item==`string`?item.length:!item||typeof item!=`object`?null:Array.isArray(item)?item.length:Object.keys(item).length},msg(code$2){let[value,state,prefs,local,options]=this,messages$3=options.messages;if(!messages$3)return``;let template=Errors$8.template(value,messages$3[0],code$2,state,prefs)||Errors$8.template(value,messages$3[1],code$2,state,prefs);return template?template.render(value,state,prefs,local,options):``},number(value){return typeof value==`number`?value:typeof value==`string`?parseFloat(value):typeof value==`boolean`?value?1:0:value instanceof Date?value.getTime():null}}}),require_errors=__commonJSMin(exports=>{let Annotate=require_annotate(),Common$20=require_common(),Template$7=require_template();exports.Report=class{constructor(code$2,value,local,flags,messages$3,state,prefs){if(this.code=code$2,this.flags=flags,this.messages=messages$3,this.path=state.path,this.prefs=prefs,this.state=state,this.value=value,this.message=null,this.template=null,this.local=local||{},this.local.label=exports.label(this.flags,this.state,this.prefs,this.messages),this.value!==void 0&&!this.local.hasOwnProperty(`value`)&&(this.local.value=this.value),this.path.length){let key=this.path[this.path.length-1];typeof key!=`object`&&(this.local.key=key)}}_setTemplate(template){if(this.template=template,!this.flags.label&&this.path.length===0){let localized=this._template(this.template,`root`);localized&&(this.local.label=localized)}}toString(){if(this.message)return this.message;let code$2=this.code;if(!this.prefs.errors.render)return this.code;let template=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return template===void 0?`Error code "${code$2}" is not defined, your custom type is missing the correct messages definition`:(this.message=template.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,``).trim()),this.message)}_template(messages$3,code$2){return exports.template(this.value,messages$3,code$2||this.code,this.state,this.prefs)}},exports.path=function(path){let label=``;for(let segment of path){if(typeof segment==`object`)continue;typeof segment==`string`?(label&&(label+=`.`),label+=segment):label+=`[${segment}]`}return label},exports.template=function(value,messages$3,code$2,state,prefs){if(!messages$3)return;if(Template$7.isTemplate(messages$3))return code$2===`root`?null:messages$3;let lang=prefs.errors.language;if(Common$20.isResolvable(lang)&&(lang=lang.resolve(value,state,prefs)),lang&&messages$3[lang]){if(messages$3[lang][code$2]!==void 0)return messages$3[lang][code$2];if(messages$3[lang][`*`]!==void 0)return messages$3[lang][`*`]}return messages$3[code$2]?messages$3[code$2]:messages$3[`*`]},exports.label=function(flags,state,prefs,messages$3){if(!prefs.errors.label)return``;if(flags.label)return flags.label;let path=state.path;prefs.errors.label===`key`&&state.path.length>1&&(path=state.path.slice(-1));let normalized=exports.path(path);return normalized||exports.template(null,prefs.messages,`root`,state,prefs)||messages$3&&exports.template(null,messages$3,`root`,state,prefs)||`value`},exports.process=function(errors,original,prefs){if(!errors)return null;let{override,message,details}=exports.details(errors);if(override)return override;if(prefs.errors.stack)return new exports.ValidationError(message,details,original);let limit=Error.stackTraceLimit;Error.stackTraceLimit=0;let validationError=new exports.ValidationError(message,details,original);return Error.stackTraceLimit=limit,validationError},exports.details=function(errors,options={}){let messages$3=[],details=[];for(let item of errors){if(item instanceof Error){if(options.override!==!1)return{override:item};let message$1=item.toString();messages$3.push(message$1),details.push({message:message$1,type:`override`,context:{error:item}});continue}let message=item.toString();messages$3.push(message),details.push({message,path:item.path.filter(v=>typeof v!=`object`),type:item.code,context:item.local})}return messages$3.length>1&&(messages$3=[...new Set(messages$3)]),{message:messages$3.join(`. `),details}},exports.ValidationError=class extends Error{constructor(message,details,original){super(message),this._original=original,this.details=details}static isError(err$1){return err$1 instanceof exports.ValidationError}},exports.ValidationError.prototype.isJoi=!0,exports.ValidationError.prototype.name=`ValidationError`,exports.ValidationError.prototype.annotate=Annotate.error}),require_messages=__commonJSMin(exports=>{let{assert:assert$24,clone:clone$11}=require_lib$4(),Template$6=require_template();exports.compile=function(messages$3,target){if(typeof messages$3==`string`)return assert$24(!target,`Cannot set single message string`),new Template$6(messages$3);if(Template$6.isTemplate(messages$3))return assert$24(!target,`Cannot set single message template`),messages$3;for(let code$2 in assert$24(typeof messages$3==`object`&&!Array.isArray(messages$3),`Invalid message options`),target=target?clone$11(target):{},messages$3){let message=messages$3[code$2];if(code$2===`root`||Template$6.isTemplate(message)){target[code$2]=message;continue}if(typeof message==`string`){target[code$2]=new Template$6(message);continue}assert$24(typeof message==`object`&&!Array.isArray(message),`Invalid message for`,code$2);let language=code$2;for(code$2 in target[language]=target[language]||{},message){let localized=message[code$2];if(code$2===`root`||Template$6.isTemplate(localized)){target[language][code$2]=localized;continue}assert$24(typeof localized==`string`,`Invalid message for`,code$2,`in`,language),target[language][code$2]=new Template$6(localized)}}return target},exports.decompile=function(messages$3){let target={};for(let code$2 in messages$3){let message=messages$3[code$2];if(code$2===`root`){target.root=message;continue}if(Template$6.isTemplate(message)){target[code$2]=message.describe({compact:!0});continue}let language=code$2;for(code$2 in target[language]={},message){let localized=message[code$2];if(code$2===`root`){target[language].root=localized;continue}target[language][code$2]=localized.describe({compact:!0})}}return target},exports.merge=function(base,extended){if(!base)return exports.compile(extended);if(!extended)return base;if(typeof extended==`string`)return new Template$6(extended);if(Template$6.isTemplate(extended))return extended;let target=clone$11(base);for(let code$2 in extended){let message=extended[code$2];if(code$2===`root`||Template$6.isTemplate(message)){target[code$2]=message;continue}if(typeof message==`string`){target[code$2]=new Template$6(message);continue}assert$24(typeof message==`object`&&!Array.isArray(message),`Invalid message for`,code$2);let language=code$2;for(code$2 in target[language]=target[language]||{},message){let localized=message[code$2];if(code$2===`root`||Template$6.isTemplate(localized)){target[language][code$2]=localized;continue}assert$24(typeof localized==`string`,`Invalid message for`,code$2,`in`,language),target[language][code$2]=new Template$6(localized)}}return target}}),require_extend=__commonJSMin(exports=>{let{assert:assert$23,clone:clone$10}=require_lib$4(),Common$19=require_common(),Messages$5=require_messages(),internals$21={};exports.type=function(from,options){let base=Object.getPrototypeOf(from),prototype=clone$10(base),schema=from._assign(Object.create(prototype)),def=Object.assign({},options);delete def.base,prototype._definition=def;let parent=base._definition||{};def.messages=Messages$5.merge(parent.messages,def.messages),def.properties=Object.assign({},parent.properties,def.properties),schema.type=def.type,def.flags=Object.assign({},parent.flags,def.flags);let terms=Object.assign({},parent.terms);if(def.terms)for(let name$1 in def.terms){let term=def.terms[name$1];assert$23(schema.$_terms[name$1]===void 0,`Invalid term override for`,def.type,name$1),schema.$_terms[name$1]=term.init,terms[name$1]=term}def.terms=terms,def.args||=parent.args,def.prepare=internals$21.prepare(def.prepare,parent.prepare),def.coerce&&(typeof def.coerce==`function`&&(def.coerce={method:def.coerce}),def.coerce.from&&!Array.isArray(def.coerce.from)&&(def.coerce={method:def.coerce.method,from:[].concat(def.coerce.from)})),def.coerce=internals$21.coerce(def.coerce,parent.coerce),def.validate=internals$21.validate(def.validate,parent.validate);let rules=Object.assign({},parent.rules);if(def.rules)for(let name$1 in def.rules){let rule=def.rules[name$1];assert$23(typeof rule==`object`,`Invalid rule definition for`,def.type,name$1);let method=rule.method;if(method===void 0&&(method=function(){return this.$_addRule(name$1)}),method&&(assert$23(!prototype[name$1],`Rule conflict in`,def.type,name$1),prototype[name$1]=method),assert$23(!rules[name$1],`Rule conflict in`,def.type,name$1),rules[name$1]=rule,rule.alias){let aliases=[].concat(rule.alias);for(let alias of aliases)prototype[alias]=rule.method}rule.args&&(rule.argsByName=new Map,rule.args=rule.args.map(arg=>(typeof arg==`string`&&(arg={name:arg}),assert$23(!rule.argsByName.has(arg.name),`Duplicated argument name`,arg.name),Common$19.isSchema(arg.assert)&&(arg.assert=arg.assert.strict().label(arg.name)),rule.argsByName.set(arg.name,arg),arg)))}def.rules=rules;let modifiers=Object.assign({},parent.modifiers);if(def.modifiers)for(let name$1 in def.modifiers){assert$23(!prototype[name$1],`Rule conflict in`,def.type,name$1);let modifier=def.modifiers[name$1];assert$23(typeof modifier==`function`,`Invalid modifier definition for`,def.type,name$1);let method=function(arg){return this.rule({[name$1]:arg})};prototype[name$1]=method,modifiers[name$1]=modifier}if(def.modifiers=modifiers,def.overrides){for(let override in prototype._super=base,schema.$_super={},def.overrides)assert$23(base[override],`Cannot override missing`,override),def.overrides[override][Common$19.symbols.parent]=base[override],schema.$_super[override]=base[override].bind(schema);Object.assign(prototype,def.overrides)}def.cast=Object.assign({},parent.cast,def.cast);let manifest=Object.assign({},parent.manifest,def.manifest);return manifest.build=internals$21.build(def.manifest&&def.manifest.build,parent.manifest&&parent.manifest.build),def.manifest=manifest,def.rebuild=internals$21.rebuild(def.rebuild,parent.rebuild),schema},internals$21.build=function(child,parent){return!child||!parent?child||parent:function(obj,desc$1){return parent(child(obj,desc$1),desc$1)}},internals$21.coerce=function(child,parent){return!child||!parent?child||parent:{from:child.from&&parent.from?[...new Set([...child.from,...parent.from])]:null,method(value,helpers){let coerced;if((!parent.from||parent.from.includes(typeof value))&&(coerced=parent.method(value,helpers),coerced)){if(coerced.errors||coerced.value===void 0)return coerced;value=coerced.value}if(!child.from||child.from.includes(typeof value)){let own=child.method(value,helpers);if(own)return own}return coerced}}},internals$21.prepare=function(child,parent){return!child||!parent?child||parent:function(value,helpers){let prepared=child(value,helpers);if(prepared){if(prepared.errors||prepared.value===void 0)return prepared;value=prepared.value}return parent(value,helpers)||prepared}},internals$21.rebuild=function(child,parent){return!child||!parent?child||parent:function(schema){parent(schema),child(schema)}},internals$21.validate=function(child,parent){return!child||!parent?child||parent:function(value,helpers){let result=parent(value,helpers);if(result){if(result.errors&&(!Array.isArray(result.errors)||result.errors.length))return result;value=result.value}return child(value,helpers)||result}}}),require_manifest=__commonJSMin(exports=>{init_dist$1();let{assert:assert$22,clone:clone$9}=require_lib$4(),Common$18=require_common(),Messages$4=require_messages(),Ref$6=require_ref(),Template$5=require_template(),Schemas$3,internals$20={};exports.describe=function(schema){let def=schema._definition,desc$1={type:schema.type,flags:{},rules:[]};for(let flag in schema._flags)flag[0]!==`_`&&(desc$1.flags[flag]=internals$20.describe(schema._flags[flag]));Object.keys(desc$1.flags).length||delete desc$1.flags,schema._preferences&&(desc$1.preferences=clone$9(schema._preferences,{shallow:[`messages`]}),delete desc$1.preferences[Common$18.symbols.prefs],desc$1.preferences.messages&&(desc$1.preferences.messages=Messages$4.decompile(desc$1.preferences.messages))),schema._valids&&(desc$1.allow=schema._valids.describe()),schema._invalids&&(desc$1.invalid=schema._invalids.describe());for(let rule of schema._rules){let ruleDef=def.rules[rule.name];if(ruleDef.manifest===!1)continue;let item={name:rule.name};for(let custom in def.modifiers)rule[custom]!==void 0&&(item[custom]=internals$20.describe(rule[custom]));if(rule.args){for(let key in item.args={},rule.args){let arg=rule.args[key];if(key===`options`&&!Object.keys(arg).length)continue;item.args[key]=internals$20.describe(arg,{assign:key})}Object.keys(item.args).length||delete item.args}desc$1.rules.push(item)}for(let term in desc$1.rules.length||delete desc$1.rules,schema.$_terms){if(term[0]===`_`)continue;assert$22(!desc$1[term],`Cannot describe schema due to internal name conflict with`,term);let items=schema.$_terms[term];if(!items)continue;if(items instanceof Map){items.size&&(desc$1[term]=[...items.entries()]);continue}if(Common$18.isValues(items)){desc$1[term]=items.describe();continue}assert$22(def.terms[term],`Term`,term,`missing configuration`);let manifest=def.terms[term].manifest,mapped=typeof manifest==`object`;if(!items.length&&!mapped)continue;let normalized=[];for(let item of items)normalized.push(internals$20.describe(item));if(mapped){let{from,to}=manifest.mapped;desc$1[term]={};for(let item of normalized)desc$1[term][item[to]]=item[from];continue}if(manifest===`single`){assert$22(normalized.length===1,`Term`,term,`contains more than one item`),desc$1[term]=normalized[0];continue}desc$1[term]=normalized}return internals$20.validate(schema.$_root,desc$1),desc$1},internals$20.describe=function(item,options={}){if(Array.isArray(item))return item.map(internals$20.describe);if(item===Common$18.symbols.deepDefault)return{special:`deep`};if(typeof item!=`object`||!item)return item;if(options.assign===`options`)return clone$9(item);if(Buffer$1&&Buffer$1.isBuffer(item))return{buffer:item.toString(`binary`)};if(item instanceof Date)return item.toISOString();if(item instanceof Error)return item;if(item instanceof RegExp)return options.assign===`regex`?item.toString():{regex:item.toString()};if(item[Common$18.symbols.literal])return{function:item.literal};if(typeof item.describe==`function`)return options.assign===`ref`?item.describe().ref:item.describe();let normalized={};for(let key in item){let value=item[key];if(value===void 0)continue;normalized[key]=internals$20.describe(value,{assign:key})}return normalized},exports.build=function(joi,desc$1){let builder=new internals$20.Builder(joi);return builder.parse(desc$1)},internals$20.Builder=class{constructor(joi){this.joi=joi}parse(desc$1){internals$20.validate(this.joi,desc$1);let schema=this.joi[desc$1.type]()._bare(),def=schema._definition;if(desc$1.flags)for(let flag in desc$1.flags){let setter=def.flags[flag]&&def.flags[flag].setter||flag;assert$22(typeof schema[setter]==`function`,`Invalid flag`,flag,`for type`,desc$1.type),schema=schema[setter](this.build(desc$1.flags[flag]))}if(desc$1.preferences&&(schema=schema.preferences(this.build(desc$1.preferences))),desc$1.allow&&(schema=schema.allow(...this.build(desc$1.allow))),desc$1.invalid&&(schema=schema.invalid(...this.build(desc$1.invalid))),desc$1.rules)for(let rule of desc$1.rules){assert$22(typeof schema[rule.name]==`function`,`Invalid rule`,rule.name,`for type`,desc$1.type);let args$1=[];if(rule.args){let built={};for(let key in rule.args)built[key]=this.build(rule.args[key],{assign:key});let keys=Object.keys(built),definition=def.rules[rule.name].args;if(definition){assert$22(keys.length<=definition.length,`Invalid number of arguments for`,desc$1.type,rule.name,`(expected up to`,definition.length,`, found`,keys.length,`)`);for(let{name:name$1}of definition)args$1.push(built[name$1])}else assert$22(keys.length===1,`Invalid number of arguments for`,desc$1.type,rule.name,`(expected up to 1, found`,keys.length,`)`),args$1.push(built[keys[0]])}schema=schema[rule.name](...args$1);let options={};for(let custom in def.modifiers)rule[custom]!==void 0&&(options[custom]=this.build(rule[custom]));Object.keys(options).length&&(schema=schema.rule(options))}let terms={};for(let key in desc$1){if([`allow`,`flags`,`invalid`,`whens`,`preferences`,`rules`,`type`].includes(key))continue;assert$22(def.terms[key],`Term`,key,`missing configuration`);let manifest=def.terms[key].manifest;if(manifest===`schema`){terms[key]=desc$1[key].map(item=>this.parse(item));continue}if(manifest===`values`){terms[key]=desc$1[key].map(item=>this.build(item));continue}if(manifest===`single`){terms[key]=this.build(desc$1[key]);continue}if(typeof manifest==`object`){for(let name$1 in terms[key]={},desc$1[key]){let value=desc$1[key][name$1];terms[key][name$1]=this.parse(value)}continue}terms[key]=this.build(desc$1[key])}return desc$1.whens&&(terms.whens=desc$1.whens.map(when=>this.build(when))),schema=def.manifest.build(schema,terms),schema.$_temp.ruleset=!1,schema}build(desc$1,options={}){if(desc$1===null)return null;if(Array.isArray(desc$1))return desc$1.map(item=>this.build(item));if(desc$1 instanceof Error)return desc$1;if(options.assign===`options`)return clone$9(desc$1);if(options.assign===`regex`)return internals$20.regex(desc$1);if(options.assign===`ref`)return Ref$6.build(desc$1);if(typeof desc$1!=`object`)return desc$1;if(Object.keys(desc$1).length===1){if(desc$1.buffer)return assert$22(Buffer$1,`Buffers are not supported`),Buffer$1&&Buffer$1.from(desc$1.buffer,`binary`);if(desc$1.function)return{[Common$18.symbols.literal]:!0,literal:desc$1.function};if(desc$1.override)return Common$18.symbols.override;if(desc$1.ref)return Ref$6.build(desc$1.ref);if(desc$1.regex)return internals$20.regex(desc$1.regex);if(desc$1.special)return assert$22([`deep`].includes(desc$1.special),`Unknown special value`,desc$1.special),Common$18.symbols.deepDefault;if(desc$1.value)return clone$9(desc$1.value)}if(desc$1.type)return this.parse(desc$1);if(desc$1.template)return Template$5.build(desc$1);let normalized={};for(let key in desc$1)normalized[key]=this.build(desc$1[key],{assign:key});return normalized}},internals$20.regex=function(string){let end=string.lastIndexOf(`/`),exp=string.slice(1,end),flags=string.slice(end+1);return new RegExp(exp,flags)},internals$20.validate=function(joi,desc$1){Schemas$3||=require_schemas(),joi.assert(desc$1,Schemas$3.description)}}),require_lib$2=__commonJSMin(exports=>{exports.location=function(depth=0){let orig=Error.prepareStackTrace;Error.prepareStackTrace=(ignore$2,stack)=>stack;let capture={};Error.captureStackTrace(capture,this);let line=capture.stack[depth+1];return Error.prepareStackTrace=orig,{filename:line.getFileName(),line:line.getLineNumber()}}}),require_trace=__commonJSMin(exports=>{let{deepEqual:deepEqual$3}=require_lib$4(),Pinpoint=require_lib$2(),Errors$7=require_errors(),internals$19={codes:{error:1,pass:2,full:3},labels:{0:`never used`,1:`always error`,2:`always pass`}};exports.setup=function(root){let trace=function(){return root._tracer=root._tracer||new internals$19.Tracer,root._tracer};root.trace=trace,root[Symbol.for(`@hapi/lab/coverage/initialize`)]=trace,root.untrace=()=>{root._tracer=null}},exports.location=function(schema){return schema.$_setFlag(`_tracerLocation`,Pinpoint.location(2))},internals$19.Tracer=class{constructor(){this.name=`Joi`,this._schemas=new Map}_register(schema){let existing=this._schemas.get(schema);if(existing)return existing.store;let store=new internals$19.Store(schema),{filename,line}=schema._flags._tracerLocation||Pinpoint.location(5);return this._schemas.set(schema,{filename,line,store}),store}_combine(merged,sources){for(let{store}of this._schemas.values())store._combine(merged,sources)}report(file){let coverage=[];for(let{filename,line,store}of this._schemas.values()){if(file&&file!==filename)continue;let missing=[],skipped=[];for(let[schema,log]of store._sources.entries()){if(internals$19.sub(log.paths,skipped))continue;if(!log.entry){missing.push({status:`never reached`,paths:[...log.paths]}),skipped.push(...log.paths);continue}for(let type of[`valid`,`invalid`]){let set=schema[`_${type}s`];if(!set)continue;let values=new Set(set._values),refs=new Set(set._refs);for(let{value,ref}of log[type])values.delete(value),refs.delete(ref);(values.size||refs.size)&&missing.push({status:[...values,...[...refs].map(ref=>ref.display)],rule:`${type}s`})}let rules=schema._rules.map(rule=>rule.name);for(let type of[`default`,`failover`])schema._flags[type]!==void 0&&rules.push(type);for(let name$1 of rules){let status=internals$19.labels[log.rule[name$1]||0];if(status){let report={rule:name$1,status};log.paths.size&&(report.paths=[...log.paths]),missing.push(report)}}}missing.length&&coverage.push({filename,line,missing,severity:`error`,message:`Schema missing tests for ${missing.map(internals$19.message).join(`, `)}`})}return coverage.length?coverage:null}},internals$19.Store=class{constructor(schema){this.active=!0,this._sources=new Map,this._combos=new Map,this._scan(schema)}debug(state,source,name$1,result){state.mainstay.debug&&state.mainstay.debug.push({type:source,name:name$1,result,path:state.path})}entry(schema,state){internals$19.debug(state,{type:`entry`}),this._record(schema,log=>{log.entry=!0})}filter(schema,state,source,value){internals$19.debug(state,{type:source,...value}),this._record(schema,log=>{log[source].add(value)})}log(schema,state,source,name$1,result){internals$19.debug(state,{type:source,name:name$1,result:result===`full`?`pass`:result}),this._record(schema,log=>{log[source][name$1]=log[source][name$1]||0,log[source][name$1]|=internals$19.codes[result]})}resolve(state,ref,to){if(!state.mainstay.debug)return;let log={type:`resolve`,ref:ref.display,to,path:state.path};state.mainstay.debug.push(log)}value(state,by,from,to,name$1){if(!state.mainstay.debug||deepEqual$3(from,to))return;let log={type:`value`,by,from,to,path:state.path};name$1&&(log.name=name$1),state.mainstay.debug.push(log)}_record(schema,each){let log=this._sources.get(schema);if(log){each(log);return}let sources=this._combos.get(schema);for(let source of sources)this._record(source,each)}_scan(schema,_path){let path=_path||[],log=this._sources.get(schema);log||(log={paths:new Set,entry:!1,rule:{},valid:new Set,invalid:new Set},this._sources.set(schema,log)),path.length&&log.paths.add(path);let each=(sub,source)=>{let subId=internals$19.id(sub,source);this._scan(sub,path.concat(subId))};schema.$_modify({each,ref:!1})}_combine(merged,sources){this._combos.set(merged,sources)}},internals$19.message=function(item){let path=item.paths?Errors$7.path(item.paths[0])+(item.rule?`:`:``):``;return`${path}${item.rule||``} (${item.status})`},internals$19.id=function(schema,{source,name:name$1,path,key}){return schema._flags.id?schema._flags.id:key||(name$1=`@${name$1}`,source===`terms`?[name$1,path[Math.min(path.length-1,1)]]:name$1)},internals$19.sub=function(paths,skipped){for(let path of paths)for(let skip of skipped)if(deepEqual$3(path.slice(0,skip.length),skip))return!0;return!1},internals$19.debug=function(state,event){state.mainstay.debug&&(event.path=state.debug?[...state.path,state.debug]:state.path,state.mainstay.debug.push(event))}}),require_modify=__commonJSMin(exports=>{let{assert:assert$21}=require_lib$4(),Common$17=require_common(),Ref$5=require_ref(),internals$18={};exports.Ids=internals$18.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){let clone$16=new internals$18.Ids;return clone$16._byId=new Map(this._byId),clone$16._byKey=new Map(this._byKey),clone$16._schemaChain=this._schemaChain,clone$16}concat(source){source._schemaChain&&(this._schemaChain=!0);for(let[id,value]of source._byId.entries())assert$21(!this._byKey.has(id),`Schema id conflicts with existing key:`,id),this._byId.set(id,value);for(let[key,value]of source._byKey.entries())assert$21(!this._byId.has(key),`Schema key conflicts with existing id:`,key),this._byKey.set(key,value)}fork(path,adjuster,root){let chain=this._collect(path);chain.push({schema:root});let tail=chain.shift(),adjusted={id:tail.id,schema:adjuster(tail.schema)};assert$21(Common$17.isSchema(adjusted.schema),`adjuster function failed to return a joi schema type`);for(let node of chain)adjusted={id:node.id,schema:internals$18.fork(node.schema,adjusted.id,adjusted.schema)};return adjusted.schema}labels(path,behind=[]){let current=path[0],node=this._get(current);if(!node)return[...behind,...path].join(`.`);let forward=path.slice(1);return behind=[...behind,node.schema._flags.label||current],forward.length?node.schema._ids.labels(forward,behind):behind.join(`.`)}reach(path,behind=[]){let current=path[0],node=this._get(current);assert$21(node,`Schema does not contain path`,[...behind,...path].join(`.`));let forward=path.slice(1);return forward.length?node.schema._ids.reach(forward,[...behind,current]):node.schema}register(schema,{key}={}){if(!schema||!Common$17.isSchema(schema))return;(schema.$_property(`schemaChain`)||schema._ids._schemaChain)&&(this._schemaChain=!0);let id=schema._flags.id;if(id){let existing=this._byId.get(id);assert$21(!existing||existing.schema===schema,`Cannot add different schemas with the same id:`,id),assert$21(!this._byKey.has(id),`Schema id conflicts with existing key:`,id),this._byId.set(id,{schema,id})}key&&(assert$21(!this._byKey.has(key),`Schema already contains key:`,key),assert$21(!this._byId.has(key),`Schema key conflicts with existing id:`,key),this._byKey.set(key,{schema,id:key}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(path,behind=[],nodes=[]){let current=path[0],node=this._get(current);assert$21(node,`Schema does not contain path`,[...behind,...path].join(`.`)),nodes=[node,...nodes];let forward=path.slice(1);return forward.length?node.schema._ids._collect(forward,[...behind,current],nodes):nodes}_get(id){return this._byId.get(id)||this._byKey.get(id)}},internals$18.fork=function(schema,id,replacement){let each=(item,{key})=>{if(id===(item._flags.id||key))return replacement},obj=exports.schema(schema,{each,ref:!1});return obj?obj.$_mutateRebuild():schema},exports.schema=function(schema,options){let obj;for(let name$1 in schema._flags){if(name$1[0]===`_`)continue;let result=internals$18.scan(schema._flags[name$1],{source:`flags`,name:name$1},options);result!==void 0&&(obj||=schema.clone(),obj._flags[name$1]=result)}for(let i$4=0;i$4<schema._rules.length;++i$4){let rule=schema._rules[i$4],result=internals$18.scan(rule.args,{source:`rules`,name:rule.name},options);if(result!==void 0){obj||=schema.clone();let clone$16=Object.assign({},rule);clone$16.args=result,obj._rules[i$4]=clone$16;let existingUnique=obj._singleRules.get(rule.name);existingUnique===rule&&obj._singleRules.set(rule.name,clone$16)}}for(let name$1 in schema.$_terms){if(name$1[0]===`_`)continue;let result=internals$18.scan(schema.$_terms[name$1],{source:`terms`,name:name$1},options);result!==void 0&&(obj||=schema.clone(),obj.$_terms[name$1]=result)}return obj},internals$18.scan=function(item,source,options,_path,_key){let path=_path||[];if(typeof item!=`object`||!item)return;let clone$16;if(Array.isArray(item)){for(let i$4=0;i$4<item.length;++i$4){let key=source.source===`terms`&&source.name===`keys`&&item[i$4].key,result=internals$18.scan(item[i$4],source,options,[i$4,...path],key);result!==void 0&&(clone$16||=item.slice(),clone$16[i$4]=result)}return clone$16}if(options.schema!==!1&&Common$17.isSchema(item)||options.ref!==!1&&Ref$5.isRef(item)){let result=options.each(item,{...source,path,key:_key});return result===item?void 0:result}for(let key in item){if(key[0]===`_`)continue;let result=internals$18.scan(item[key],source,options,[key,...path],_key);result!==void 0&&(clone$16||=Object.assign({},item),clone$16[key]=result)}return clone$16}}),require_state=__commonJSMin((exports,module)=>{let{clone:clone$8,reach:reach$3}=require_lib$4(),Common$16=require_common(),internals$17={value:Symbol(`value`)};module.exports=internals$17.State=class{constructor(path,ancestors,state){this.path=path,this.ancestors=ancestors,this.mainstay=state.mainstay,this.schemas=state.schemas,this.debug=null}localize(path,ancestors=null,schema=null){let state=new internals$17.State(path,ancestors,this);return schema&&state.schemas&&(state.schemas=[internals$17.schemas(schema),...state.schemas]),state}nest(schema,debug$5){let state=new internals$17.State(this.path,this.ancestors,this);return state.schemas=state.schemas&&[internals$17.schemas(schema),...state.schemas],state.debug=debug$5,state}shadow(value,reason){this.mainstay.shadow=this.mainstay.shadow||new internals$17.Shadow,this.mainstay.shadow.set(this.path,value,reason)}snapshot(){this.mainstay.shadow&&(this._snapshot=clone$8(this.mainstay.shadow.node(this.path))),this.mainstay.snapshot()}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.restore()}commit(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.commit()}},internals$17.schemas=function(schema){return Common$16.isSchema(schema)?{schema}:schema},internals$17.Shadow=class{constructor(){this._values=null}set(path,value,reason){if(!path.length||reason===`strip`&&typeof path[path.length-1]==`number`)return;this._values=this._values||new Map;let node=this._values;for(let i$4=0;i$4<path.length;++i$4){let segment=path[i$4],next=node.get(segment);next||(next=new Map,node.set(segment,next)),node=next}node[internals$17.value]=value}get(path){let node=this.node(path);if(node)return node[internals$17.value]}node(path){if(this._values)return reach$3(this._values,path,{iterables:!0})}override(path,node){if(!this._values)return;let parents=path.slice(0,-1),own=path[path.length-1],parent=reach$3(this._values,parents,{iterables:!0});if(node){parent.set(own,node);return}parent&&parent.delete(own)}}}),require_validator=__commonJSMin(exports=>{let{assert:assert$20,clone:clone$7,ignore,reach:reach$2}=require_lib$4(),Common$15=require_common(),Errors$6=require_errors(),State=require_state(),internals$16={result:Symbol(`result`)};exports.entry=function(value,schema,prefs){let settings=Common$15.defaults;prefs&&(assert$20(prefs.warnings===void 0,`Cannot override warnings preference in synchronous validation`),assert$20(prefs.artifacts===void 0,`Cannot override artifacts preference in synchronous validation`),settings=Common$15.preferences(Common$15.defaults,prefs));let result=internals$16.entry(value,schema,settings);assert$20(!result.mainstay.externals.length,`Schema with external rules must use validateAsync()`);let outcome={value:result.value};return result.error&&(outcome.error=result.error),result.mainstay.warnings.length&&(outcome.warning=Errors$6.details(result.mainstay.warnings)),result.mainstay.debug&&(outcome.debug=result.mainstay.debug),result.mainstay.artifacts&&(outcome.artifacts=result.mainstay.artifacts),outcome},exports.entryAsync=async function(value,schema,prefs){let settings=Common$15.defaults;prefs&&(settings=Common$15.preferences(Common$15.defaults,prefs));let result=internals$16.entry(value,schema,settings),mainstay=result.mainstay;if(result.error)throw mainstay.debug&&(result.error.debug=mainstay.debug),result.error;if(mainstay.externals.length){let root=result.value,errors=[];for(let external of mainstay.externals){let path=external.state.path,linked=external.schema.type===`link`?mainstay.links.get(external.schema):null,node=root,key,parent,ancestors=path.length?[root]:[],original=path.length?reach$2(value,path):value;if(path.length){key=path[path.length-1];let current=root;for(let segment of path.slice(0,-1))current=current[segment],ancestors.unshift(current);parent=ancestors[0],node=parent[key]}try{let createError=(code$2,local)=>(linked||external.schema).$_createError(code$2,node,local,external.state,settings),output=await external.method(node,{schema:external.schema,linked,state:external.state,prefs,original,error:createError,errorsArray:internals$16.errorsArray,warn:(code$2,local)=>mainstay.warnings.push((linked||external.schema).$_createError(code$2,node,local,external.state,settings)),message:(messages$3,local)=>(linked||external.schema).$_createError(`external`,node,local,external.state,settings,{messages:messages$3})});if(output===void 0||output===node)continue;if(output instanceof Errors$6.Report){if(mainstay.tracer.log(external.schema,external.state,`rule`,`external`,`error`),errors.push(output),settings.abortEarly)break;continue}if(Array.isArray(output)&&output[Common$15.symbols.errors]){if(mainstay.tracer.log(external.schema,external.state,`rule`,`external`,`error`),errors.push(...output),settings.abortEarly)break;continue}parent?(mainstay.tracer.value(external.state,`rule`,node,output,`external`),parent[key]=output):(mainstay.tracer.value(external.state,`rule`,root,output,`external`),root=output)}catch(err$1){throw settings.errors.label&&(err$1.message+=` (${external.label})`),err$1}}if(result.value=root,errors.length)throw result.error=Errors$6.process(errors,value,settings),mainstay.debug&&(result.error.debug=mainstay.debug),result.error}if(!settings.warnings&&!settings.debug&&!settings.artifacts)return result.value;let outcome={value:result.value};return mainstay.warnings.length&&(outcome.warning=Errors$6.details(mainstay.warnings)),mainstay.debug&&(outcome.debug=mainstay.debug),mainstay.artifacts&&(outcome.artifacts=mainstay.artifacts),outcome},exports.standard=function(value,schema){return schema.isAsync()?exports.entryAsync(value,schema):exports.entry(value,schema)},internals$16.Mainstay=class{constructor(tracer,debug$5,links){this.externals=[],this.warnings=[],this.tracer=tracer,this.debug=debug$5,this.links=links,this.shadow=null,this.artifacts=null,this._snapshots=[]}snapshot(){this._snapshots.push({externals:this.externals.slice(),warnings:this.warnings.slice()})}restore(){let snapshot=this._snapshots.pop();this.externals=snapshot.externals,this.warnings=snapshot.warnings}commit(){this._snapshots.pop()}},internals$16.entry=function(value,schema,prefs){let{tracer,cleanup}=internals$16.tracer(schema,prefs),debug$5=prefs.debug?[]:null,links=schema._ids._schemaChain?new Map:null,mainstay=new internals$16.Mainstay(tracer,debug$5,links),schemas=schema._ids._schemaChain?[{schema}]:null,state=new State([],[],{mainstay,schemas}),result=exports.validate(value,schema,state,prefs);cleanup&&schema.$_root.untrace();let error=Errors$6.process(result.errors,value,prefs);return{value:result.value,error,mainstay}},internals$16.tracer=function(schema,prefs){return schema.$_root._tracer?{tracer:schema.$_root._tracer._register(schema)}:prefs.debug?(assert$20(schema.$_root.trace,`Debug mode not supported`),{tracer:schema.$_root.trace()._register(schema),cleanup:!0}):{tracer:internals$16.ignore}},exports.validate=function(value,schema,state,prefs,overrides={}){if(schema.$_terms.whens&&(schema=schema._generate(value,state,prefs).schema),schema._preferences&&(prefs=internals$16.prefs(schema,prefs)),schema._cache&&prefs.cache){let result=schema._cache.get(value);if(state.mainstay.tracer.debug(state,`validate`,`cached`,!!result),result)return result}let createError=(code$2,local,localState)=>schema.$_createError(code$2,value,local,localState||state,prefs),helpers={original:value,prefs,schema,state,error:createError,errorsArray:internals$16.errorsArray,warn:(code$2,local,localState)=>state.mainstay.warnings.push(createError(code$2,local,localState)),message:(messages$3,local)=>schema.$_createError(`custom`,value,local,state,prefs,{messages:messages$3})};state.mainstay.tracer.entry(schema,state);let def=schema._definition;if(def.prepare&&value!==void 0&&prefs.convert){let prepared=def.prepare(value,helpers);if(prepared){if(state.mainstay.tracer.value(state,`prepare`,value,prepared.value),prepared.errors)return internals$16.finalize(prepared.value,[].concat(prepared.errors),helpers);value=prepared.value}}if(def.coerce&&value!==void 0&&prefs.convert&&(!def.coerce.from||def.coerce.from.includes(typeof value))){let coerced=def.coerce.method(value,helpers);if(coerced){if(state.mainstay.tracer.value(state,`coerced`,value,coerced.value),coerced.errors)return internals$16.finalize(coerced.value,[].concat(coerced.errors),helpers);value=coerced.value}}let empty=schema._flags.empty;empty&&empty.$_match(internals$16.trim(value,schema),state.nest(empty),Common$15.defaults)&&(state.mainstay.tracer.value(state,`empty`,value,void 0),value=void 0);let presence=overrides.presence||schema._flags.presence||(schema._flags._endedSwitch?null:prefs.presence);if(value===void 0){if(presence===`forbidden`)return internals$16.finalize(value,null,helpers);if(presence===`required`)return internals$16.finalize(value,[schema.$_createError(`any.required`,value,null,state,prefs)],helpers);if(presence===`optional`){if(schema._flags.default!==Common$15.symbols.deepDefault)return internals$16.finalize(value,null,helpers);state.mainstay.tracer.value(state,`default`,value,{}),value={}}}else if(presence===`forbidden`)return internals$16.finalize(value,[schema.$_createError(`any.unknown`,value,null,state,prefs)],helpers);let errors=[];if(schema._valids){let match$2=schema._valids.get(value,state,prefs,schema._flags.insensitive);if(match$2)return prefs.convert&&(state.mainstay.tracer.value(state,`valids`,value,match$2.value),value=match$2.value),state.mainstay.tracer.filter(schema,state,`valid`,match$2),internals$16.finalize(value,null,helpers);if(schema._flags.only){let report=schema.$_createError(`any.only`,value,{valids:schema._valids.values({display:!0})},state,prefs);if(prefs.abortEarly)return internals$16.finalize(value,[report],helpers);errors.push(report)}}if(schema._invalids){let match$2=schema._invalids.get(value,state,prefs,schema._flags.insensitive);if(match$2){state.mainstay.tracer.filter(schema,state,`invalid`,match$2);let report=schema.$_createError(`any.invalid`,value,{invalids:schema._invalids.values({display:!0})},state,prefs);if(prefs.abortEarly)return internals$16.finalize(value,[report],helpers);errors.push(report)}}if(def.validate){let base=def.validate(value,helpers);if(base&&(state.mainstay.tracer.value(state,`base`,value,base.value),value=base.value,base.errors)){if(!Array.isArray(base.errors))return errors.push(base.errors),internals$16.finalize(value,errors,helpers);if(base.errors.length)return errors.push(...base.errors),internals$16.finalize(value,errors,helpers)}}return schema._rules.length?internals$16.rules(value,errors,helpers):internals$16.finalize(value,errors,helpers)},internals$16.rules=function(value,errors,helpers){let{schema,state,prefs}=helpers;for(let rule of schema._rules){let definition=schema._definition.rules[rule.method];if(definition.convert&&prefs.convert){state.mainstay.tracer.log(schema,state,`rule`,rule.name,`full`);continue}let ret,args$1=rule.args;if(rule._resolve.length){args$1=Object.assign({},args$1);for(let key of rule._resolve){let resolver=definition.argsByName.get(key),resolved=args$1[key].resolve(value,state,prefs),normalized=resolver.normalize?resolver.normalize(resolved):resolved,invalid$1=Common$15.validateArg(normalized,null,resolver);if(invalid$1){ret=schema.$_createError(`any.ref`,resolved,{arg:key,ref:args$1[key],reason:invalid$1},state,prefs);break}args$1[key]=normalized}}ret||=definition.validate(value,helpers,args$1,rule);let result=internals$16.rule(ret,rule);if(result.errors){if(state.mainstay.tracer.log(schema,state,`rule`,rule.name,`error`),rule.warn){state.mainstay.warnings.push(...result.errors);continue}if(prefs.abortEarly)return internals$16.finalize(value,result.errors,helpers);errors.push(...result.errors)}else state.mainstay.tracer.log(schema,state,`rule`,rule.name,`pass`),state.mainstay.tracer.value(state,`rule`,value,result.value,rule.name),value=result.value}return internals$16.finalize(value,errors,helpers)},internals$16.rule=function(ret,rule){return ret instanceof Errors$6.Report?(internals$16.error(ret,rule),{errors:[ret],value:null}):Array.isArray(ret)&&ret[Common$15.symbols.errors]?(ret.forEach(report=>internals$16.error(report,rule)),{errors:ret,value:null}):{errors:null,value:ret}},internals$16.error=function(report,rule){return rule.message&&report._setTemplate(rule.message),report},internals$16.finalize=function(value,errors,helpers){errors||=[];let{schema,state,prefs}=helpers;if(errors.length){let failover=internals$16.default(`failover`,void 0,errors,helpers);failover!==void 0&&(state.mainstay.tracer.value(state,`failover`,value,failover),value=failover,errors=[])}if(errors.length&&schema._flags.error)if(typeof schema._flags.error==`function`){errors=schema._flags.error(errors),Array.isArray(errors)||(errors=[errors]);for(let error of errors)assert$20(error instanceof Error||error instanceof Errors$6.Report,`error() must return an Error object`)}else errors=[schema._flags.error];if(value===void 0){let defaulted=internals$16.default(`default`,value,errors,helpers);state.mainstay.tracer.value(state,`default`,value,defaulted),value=defaulted}if(schema._flags.cast&&value!==void 0){let caster=schema._definition.cast[schema._flags.cast];if(caster.from(value)){let casted=caster.to(value,helpers);state.mainstay.tracer.value(state,`cast`,value,casted,schema._flags.cast),value=casted}}if(schema.$_terms.externals&&prefs.externals&&prefs._externals!==!1)for(let{method}of schema.$_terms.externals)state.mainstay.externals.push({method,schema,state,label:Errors$6.label(schema._flags,state,prefs)});let result={value,errors:errors.length?errors:null};return schema._flags.result&&(result.value=schema._flags.result===`strip`?void 0:helpers.original,state.mainstay.tracer.value(state,schema._flags.result,value,result.value),state.shadow(value,schema._flags.result)),schema._cache&&prefs.cache!==!1&&!schema._refs.length&&schema._cache.set(helpers.original,result),value!==void 0&&!result.errors&&schema._flags.artifact!==void 0&&(state.mainstay.artifacts=state.mainstay.artifacts||new Map,state.mainstay.artifacts.has(schema._flags.artifact)||state.mainstay.artifacts.set(schema._flags.artifact,[]),state.mainstay.artifacts.get(schema._flags.artifact).push(state.path)),result},internals$16.prefs=function(schema,prefs){let isDefaultOptions=prefs===Common$15.defaults;return isDefaultOptions&&schema._preferences[Common$15.symbols.prefs]?schema._preferences[Common$15.symbols.prefs]:(prefs=Common$15.preferences(prefs,schema._preferences),isDefaultOptions&&(schema._preferences[Common$15.symbols.prefs]=prefs),prefs)},internals$16.default=function(flag,value,errors,helpers){let{schema,state,prefs}=helpers,source=schema._flags[flag];if(prefs.noDefaults||source===void 0)return value;if(state.mainstay.tracer.log(schema,state,`rule`,flag,`full`),!source)return source;if(typeof source==`function`){let args$1=source.length?[clone$7(state.ancestors[0]),helpers]:[];try{return source(...args$1)}catch(err$1){errors.push(schema.$_createError(`any.${flag}`,null,{error:err$1},state,prefs));return}}return typeof source==`object`?source[Common$15.symbols.literal]?source.literal:Common$15.isResolvable(source)?source.resolve(value,state,prefs):clone$7(source):source},internals$16.trim=function(value,schema){if(typeof value!=`string`)return value;let trim=schema.$_getRule(`trim`);return!trim||!trim.args.enabled?value:value.trim()},internals$16.ignore={active:!1,debug:ignore,entry:ignore,filter:ignore,log:ignore,resolve:ignore,value:ignore},internals$16.errorsArray=function(){let errors=[];return errors[Common$15.symbols.errors]=!0,errors}}),require_values=__commonJSMin((exports,module)=>{let{assert:assert$19,deepEqual:deepEqual$2}=require_lib$4(),Common$14=require_common(),internals$15={};module.exports=internals$15.Values=class{constructor(values,refs){this._values=new Set(values),this._refs=new Set(refs),this._lowercase=internals$15.lowercases(values),this._override=!1}get length(){return this._values.size+this._refs.size}add(value,refs){if(Common$14.isResolvable(value)){this._refs.has(value)||(this._refs.add(value),refs&&refs.register(value));return}this.has(value,null,null,!1)||(this._values.add(value),typeof value==`string`&&this._lowercase.set(value.toLowerCase(),value))}static merge(target,source,remove){if(target||=new internals$15.Values,source){if(source._override)return source.clone();for(let item of[...source._values,...source._refs])target.add(item)}if(remove)for(let item of[...remove._values,...remove._refs])target.remove(item);return target.length?target:null}remove(value){if(Common$14.isResolvable(value)){this._refs.delete(value);return}this._values.delete(value),typeof value==`string`&&this._lowercase.delete(value.toLowerCase())}has(value,state,prefs,insensitive){return!!this.get(value,state,prefs,insensitive)}get(value,state,prefs,insensitive){if(!this.length)return!1;if(this._values.has(value))return{value};if(typeof value==`string`&&value&&insensitive){let found=this._lowercase.get(value.toLowerCase());if(found)return{value:found}}if(!this._refs.size&&typeof value!=`object`)return!1;if(typeof value==`object`){for(let item of this._values)if(deepEqual$2(item,value))return{value:item}}if(state)for(let ref of this._refs){let resolved=ref.resolve(value,state,prefs,null,{in:!0});if(resolved===void 0)continue;let items=!ref.in||typeof resolved!=`object`?[resolved]:Array.isArray(resolved)?resolved:Object.keys(resolved);for(let item of items){if(typeof item!=typeof value)continue;if(insensitive&&value&&typeof value==`string`){if(item.toLowerCase()===value.toLowerCase())return{value:item,ref}}else if(deepEqual$2(item,value))return{value:item,ref}}}return!1}override(){this._override=!0}values(options){if(options&&options.display){let values=[];for(let item of[...this._values,...this._refs])item!==void 0&&values.push(item);return values}return Array.from([...this._values,...this._refs])}clone(){let set=new internals$15.Values(this._values,this._refs);return set._override=this._override,set}concat(source){assert$19(!source._override,`Cannot concat override set of values`);let set=new internals$15.Values([...this._values,...source._values],[...this._refs,...source._refs]);return set._override=this._override,set}describe(){let normalized=[];this._override&&normalized.push({override:!0});for(let value of this._values.values())normalized.push(value&&typeof value==`object`?{value}:value);for(let value of this._refs.values())normalized.push(value.describe());return normalized}},internals$15.Values.prototype[Common$14.symbols.values]=!0,internals$15.Values.prototype.slice=internals$15.Values.prototype.clone,internals$15.lowercases=function(from){let map=new Map;if(from)for(let value of from)typeof value==`string`&&map.set(value.toLowerCase(),value);return map}}),require_base=__commonJSMin((exports,module)=>{let{assert:assert$18,clone:clone$6,deepEqual:deepEqual$1,merge:merge$1}=require_lib$4(),Cache$2=require_cache(),Common$13=require_common(),Compile$6=require_compile(),Errors$5=require_errors(),Extend$2=require_extend(),Manifest$2=require_manifest(),Messages$3=require_messages(),Modify=require_modify(),Ref$4=require_ref(),Trace$2=require_trace(),Validator=require_validator(),Values$1=require_values(),internals$14={};internals$14.Base=class{constructor(type){this.type=type,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new Modify.Ids,this._preferences=null,this._refs=new Ref$4.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return assert$18(typeof Manifest$2.describe==`function`,`Manifest functionality disabled`),Manifest$2.describe(this)}allow(...values){return Common$13.verifyFlat(values,`allow`),this._values(values,`_valids`)}alter(targets){assert$18(targets&&typeof targets==`object`&&!Array.isArray(targets),`Invalid targets argument`),assert$18(!this._inRuleset(),`Cannot set alterations inside a ruleset`);let obj=this.clone();for(let target in obj.$_terms.alterations=obj.$_terms.alterations||[],targets){let adjuster=targets[target];assert$18(typeof adjuster==`function`,`Alteration adjuster for`,target,`must be a function`),obj.$_terms.alterations.push({target,adjuster})}return obj.$_temp.ruleset=!1,obj}artifact(id){return assert$18(id!==void 0,`Artifact cannot be undefined`),assert$18(!this._cache,`Cannot set an artifact with a rule cache`),this.$_setFlag(`artifact`,id)}cast(to){return assert$18(to===!1||typeof to==`string`,`Invalid to value`),assert$18(to===!1||this._definition.cast[to],`Type`,this.type,`does not support casting to`,to),this.$_setFlag(`cast`,to===!1?void 0:to)}default(value,options){return this._default(`default`,value,options)}description(desc$1){return assert$18(desc$1&&typeof desc$1==`string`,`Description must be a non-empty string`),this.$_setFlag(`description`,desc$1)}empty(schema){let obj=this.clone();return schema!==void 0&&(schema=obj.$_compile(schema,{override:!1})),obj.$_setFlag(`empty`,schema,{clone:!1})}error(err$1){return assert$18(err$1,`Missing error`),assert$18(err$1 instanceof Error||typeof err$1==`function`,`Must provide a valid Error object or a function`),this.$_setFlag(`error`,err$1)}example(example,options={}){return assert$18(example!==void 0,`Missing example`),Common$13.assertOptions(options,[`override`]),this._inner(`examples`,example,{single:!0,override:options.override})}external(method,description$1){return typeof method==`object`&&(assert$18(!description$1,`Cannot combine options with description`),description$1=method.description,method=method.method),assert$18(typeof method==`function`,`Method must be a function`),assert$18(description$1===void 0||description$1&&typeof description$1==`string`,`Description must be a non-empty string`),this._inner(`externals`,{method,description:description$1},{single:!0})}failover(value,options){return this._default(`failover`,value,options)}forbidden(){return this.presence(`forbidden`)}id(id){return id?(assert$18(typeof id==`string`,`id must be a non-empty string`),assert$18(/^[^\.]+$/.test(id),`id cannot contain period character`),this.$_setFlag(`id`,id)):this.$_setFlag(`id`,void 0)}invalid(...values){return this._values(values,`_invalids`)}label(name$1){return assert$18(name$1&&typeof name$1==`string`,`Label name must be a non-empty string`),this.$_setFlag(`label`,name$1)}meta(meta){return assert$18(meta!==void 0,`Meta cannot be undefined`),this._inner(`metas`,meta,{single:!0})}note(...notes){assert$18(notes.length,`Missing notes`);for(let note of notes)assert$18(note&&typeof note==`string`,`Notes must be non-empty strings`);return this._inner(`notes`,notes)}only(mode=!0){return assert$18(typeof mode==`boolean`,`Invalid mode:`,mode),this.$_setFlag(`only`,mode)}optional(){return this.presence(`optional`)}prefs(prefs){assert$18(prefs,`Missing preferences`),assert$18(prefs.context===void 0,`Cannot override context`),assert$18(prefs.externals===void 0,`Cannot override externals`),assert$18(prefs.warnings===void 0,`Cannot override warnings`),assert$18(prefs.debug===void 0,`Cannot override debug`),Common$13.checkPreferences(prefs);let obj=this.clone();return obj._preferences=Common$13.preferences(obj._preferences,prefs),obj}presence(mode){return assert$18([`optional`,`required`,`forbidden`].includes(mode),`Unknown presence mode`,mode),this.$_setFlag(`presence`,mode)}raw(enabled=!0){return this.$_setFlag(`result`,enabled?`raw`:void 0)}result(mode){return assert$18([`raw`,`strip`].includes(mode),`Unknown result mode`,mode),this.$_setFlag(`result`,mode)}required(){return this.presence(`required`)}strict(enabled){let obj=this.clone(),convert=enabled===void 0?!1:!enabled;return obj._preferences=Common$13.preferences(obj._preferences,{convert}),obj}strip(enabled=!0){return this.$_setFlag(`result`,enabled?`strip`:void 0)}tag(...tags){assert$18(tags.length,`Missing tags`);for(let tag of tags)assert$18(tag&&typeof tag==`string`,`Tags must be non-empty strings`);return this._inner(`tags`,tags)}unit(name$1){return assert$18(name$1&&typeof name$1==`string`,`Unit name must be a non-empty string`),this.$_setFlag(`unit`,name$1)}valid(...values){Common$13.verifyFlat(values,`valid`);let obj=this.allow(...values);return obj.$_setFlag(`only`,!!obj._valids,{clone:!1}),obj}when(condition,options){let obj=this.clone();obj.$_terms.whens||(obj.$_terms.whens=[]);let when=Compile$6.when(obj,condition,options);if(![`any`,`link`].includes(obj.type)){let conditions=when.is?[when]:when.switch;for(let item of conditions)assert$18(!item.then||item.then.type===`any`||item.then.type===obj.type,`Cannot combine`,obj.type,`with`,item.then&&item.then.type),assert$18(!item.otherwise||item.otherwise.type===`any`||item.otherwise.type===obj.type,`Cannot combine`,obj.type,`with`,item.otherwise&&item.otherwise.type)}return obj.$_terms.whens.push(when),obj.$_mutateRebuild()}cache(cache$2){assert$18(!this._inRuleset(),`Cannot set caching inside a ruleset`),assert$18(!this._cache,`Cannot override schema cache`),assert$18(this._flags.artifact===void 0,`Cannot cache a rule with an artifact`);let obj=this.clone();return obj._cache=cache$2||Cache$2.provider.provision(),obj.$_temp.ruleset=!1,obj}clone(){let obj=Object.create(Object.getPrototypeOf(this));return this._assign(obj)}concat(source){assert$18(Common$13.isSchema(source),`Invalid schema object`),assert$18(this.type===`any`||source.type===`any`||source.type===this.type,`Cannot merge type`,this.type,`with another type:`,source.type),assert$18(!this._inRuleset(),`Cannot concatenate onto a schema with open ruleset`),assert$18(!source._inRuleset(),`Cannot concatenate a schema with open ruleset`);let obj=this.clone();if(this.type===`any`&&source.type!==`any`){let tmpObj=source.clone();for(let key of Object.keys(obj))key!==`type`&&(tmpObj[key]=obj[key]);obj=tmpObj}obj._ids.concat(source._ids),obj._refs.register(source,Ref$4.toSibling),obj._preferences=obj._preferences?Common$13.preferences(obj._preferences,source._preferences):source._preferences,obj._valids=Values$1.merge(obj._valids,source._valids,source._invalids),obj._invalids=Values$1.merge(obj._invalids,source._invalids,source._valids);for(let name$1 of source._singleRules.keys())obj._singleRules.has(name$1)&&(obj._rules=obj._rules.filter(target=>target.keep||target.name!==name$1),obj._singleRules.delete(name$1));for(let test of source._rules)source._definition.rules[test.method].multi||obj._singleRules.set(test.name,test),obj._rules.push(test);if(obj._flags.empty&&source._flags.empty){obj._flags.empty=obj._flags.empty.concat(source._flags.empty);let flags=Object.assign({},source._flags);delete flags.empty,merge$1(obj._flags,flags)}else if(source._flags.empty){obj._flags.empty=source._flags.empty;let flags=Object.assign({},source._flags);delete flags.empty,merge$1(obj._flags,flags)}else merge$1(obj._flags,source._flags);for(let key in source.$_terms){let terms=source.$_terms[key];if(!terms){obj.$_terms[key]||(obj.$_terms[key]=terms);continue}if(!obj.$_terms[key]){obj.$_terms[key]=terms.slice();continue}obj.$_terms[key]=obj.$_terms[key].concat(terms)}return this.$_root._tracer&&this.$_root._tracer._combine(obj,[this,source]),obj.$_mutateRebuild()}extend(options){return assert$18(!options.base,`Cannot extend type with another base`),Extend$2.type(this,options)}extract(path){return path=Array.isArray(path)?path:path.split(`.`),this._ids.reach(path)}fork(paths,adjuster){assert$18(!this._inRuleset(),`Cannot fork inside a ruleset`);let obj=this;for(let path of[].concat(paths))path=Array.isArray(path)?path:path.split(`.`),obj=obj._ids.fork(path,adjuster,obj);return obj.$_temp.ruleset=!1,obj}isAsync(){if(this.$_terms.externals?.length)return!0;if(this.$_terms.whens)for(let when of this.$_terms.whens){if(when.then?.isAsync()||when.otherwise?.isAsync())return!0;if(when.switch){for(let item of when.switch)if(item.then?.isAsync()||item.otherwise?.isAsync())return!0}}return!1}rule(options){let def=this._definition;Common$13.assertOptions(options,Object.keys(def.modifiers)),assert$18(this.$_temp.ruleset!==!1,`Cannot apply rules to empty ruleset or the last rule added does not support rule properties`);let start=this.$_temp.ruleset===null?this._rules.length-1:this.$_temp.ruleset;assert$18(start>=0&&start<this._rules.length,`Cannot apply rules to empty ruleset`);let obj=this.clone();for(let i$4=start;i$4<obj._rules.length;++i$4){let original=obj._rules[i$4],rule=clone$6(original);for(let name$1 in options)def.modifiers[name$1](rule,options[name$1]),assert$18(rule.name===original.name,`Cannot change rule name`);obj._rules[i$4]=rule,obj._singleRules.get(rule.name)===original&&obj._singleRules.set(rule.name,rule)}return obj.$_temp.ruleset=!1,obj.$_mutateRebuild()}get ruleset(){assert$18(!this._inRuleset(),`Cannot start a new ruleset without closing the previous one`);let obj=this.clone();return obj.$_temp.ruleset=obj._rules.length,obj}get $(){return this.ruleset}tailor(targets){targets=[].concat(targets),assert$18(!this._inRuleset(),`Cannot tailor inside a ruleset`);let obj=this;if(this.$_terms.alterations)for(let{target,adjuster}of this.$_terms.alterations)targets.includes(target)&&(obj=adjuster(obj),assert$18(Common$13.isSchema(obj),`Alteration adjuster for`,target,`failed to return a schema object`));return obj=obj.$_modify({each:item=>item.tailor(targets),ref:!1}),obj.$_temp.ruleset=!1,obj.$_mutateRebuild()}tracer(){return Trace$2.location?Trace$2.location(this):this}validate(value,options){return Validator.entry(value,this,options)}validateAsync(value,options){return Validator.entryAsync(value,this,options)}$_addRule(options){for(let key in typeof options==`string`&&(options={name:options}),assert$18(options&&typeof options==`object`,`Invalid options`),assert$18(options.name&&typeof options.name==`string`,`Invalid rule name`),options)assert$18(key[0]!==`_`,`Cannot set private rule properties`);let rule=Object.assign({},options);rule._resolve=[],rule.method=rule.method||rule.name;let definition=this._definition.rules[rule.method],args$1=rule.args;assert$18(definition,`Unknown rule`,rule.method);let obj=this.clone();if(args$1)for(let key in assert$18(Object.keys(args$1).length===1||Object.keys(args$1).length===this._definition.rules[rule.name].args.length,`Invalid rule definition for`,this.type,rule.name),args$1){let arg=args$1[key];if(definition.argsByName){let resolver=definition.argsByName.get(key);if(resolver.ref&&Common$13.isResolvable(arg))rule._resolve.push(key),obj.$_mutateRegister(arg);else if(resolver.normalize&&(arg=resolver.normalize(arg),args$1[key]=arg),resolver.assert){let error=Common$13.validateArg(arg,key,resolver);assert$18(!error,error,`or reference`)}}if(arg===void 0){delete args$1[key];continue}args$1[key]=arg}return definition.multi||(obj._ruleRemove(rule.name,{clone:!1}),obj._singleRules.set(rule.name,rule)),obj.$_temp.ruleset===!1&&(obj.$_temp.ruleset=null),definition.priority?obj._rules.unshift(rule):obj._rules.push(rule),obj}$_compile(schema,options){return Compile$6.schema(this.$_root,schema,options)}$_createError(code$2,value,local,state,prefs,options={}){let flags=options.flags===!1?{}:this._flags,messages$3=options.messages?Messages$3.merge(this._definition.messages,options.messages):this._definition.messages;return new Errors$5.Report(code$2,value,local,flags,messages$3,state,prefs)}$_getFlag(name$1){return this._flags[name$1]}$_getRule(name$1){return this._singleRules.get(name$1)}$_mapLabels(path){return path=Array.isArray(path)?path:path.split(`.`),this._ids.labels(path)}$_match(value,state,prefs,overrides){prefs=Object.assign({},prefs),prefs.abortEarly=!0,prefs._externals=!1,state.snapshot();let result=!Validator.validate(value,this,state,prefs,overrides).errors;return state.restore(),result}$_modify(options){return Common$13.assertOptions(options,[`each`,`once`,`ref`,`schema`]),Modify.schema(this,options)||this}$_mutateRebuild(){assert$18(!this._inRuleset(),`Cannot add this rule inside a ruleset`),this._refs.reset(),this._ids.reset();let each=(item,{source,name:name$1,path,key})=>{let family=this._definition[source][name$1]&&this._definition[source][name$1].register;family!==!1&&this.$_mutateRegister(item,{family,key})};return this.$_modify({each}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(schema,{family,key}={}){this._refs.register(schema,family),this._ids.register(schema,{key})}$_property(name$1){return this._definition.properties[name$1]}$_reach(path){return this._ids.reach(path)}$_rootReferences(){return this._refs.roots()}$_setFlag(name$1,value,options={}){assert$18(name$1[0]===`_`||!this._inRuleset(),`Cannot set flag inside a ruleset`);let flag=this._definition.flags[name$1]||{};if(deepEqual$1(value,flag.default)&&(value=void 0),deepEqual$1(value,this._flags[name$1]))return this;let obj=options.clone===!1?this:this.clone();return value===void 0?delete obj._flags[name$1]:(obj._flags[name$1]=value,obj.$_mutateRegister(value)),name$1[0]!==`_`&&(obj.$_temp.ruleset=!1),obj}$_parent(method,...args$1){return this[method][Common$13.symbols.parent].call(this,...args$1)}$_validate(value,state,prefs){return Validator.validate(value,this,state,prefs)}_assign(target){for(let key in target.type=this.type,target.$_root=this.$_root,target.$_temp=Object.assign({},this.$_temp),target.$_temp.whens={},target._ids=this._ids.clone(),target._preferences=this._preferences,target._valids=this._valids&&this._valids.clone(),target._invalids=this._invalids&&this._invalids.clone(),target._rules=this._rules.slice(),target._singleRules=clone$6(this._singleRules,{shallow:!0}),target._refs=this._refs.clone(),target._flags=Object.assign({},this._flags),target._cache=null,target.$_terms={},this.$_terms)target.$_terms[key]=this.$_terms[key]?this.$_terms[key].slice():null;for(let override in target.$_super={},this.$_super)target.$_super[override]=this._super[override].bind(target);return target}_bare(){let obj=this.clone();obj._reset();let terms=obj._definition.terms;for(let name$1 in terms){let term=terms[name$1];obj.$_terms[name$1]=term.init}return obj.$_mutateRebuild()}_default(flag,value,options={}){Common$13.assertOptions(options,`literal`),assert$18(value!==void 0,`Missing`,flag,`value`),assert$18(typeof value==`function`||!options.literal,`Only function value supports literal option`),typeof value==`function`&&options.literal&&(value={[Common$13.symbols.literal]:!0,literal:value});let obj=this.$_setFlag(flag,value);return obj}_generate(value,state,prefs){if(!this.$_terms.whens)return{schema:this};let whens=[],ids=[];for(let i$4=0;i$4<this.$_terms.whens.length;++i$4){let when=this.$_terms.whens[i$4];if(when.concat){whens.push(when.concat),ids.push(`${i$4}.concat`);continue}let input=when.ref?when.ref.resolve(value,state,prefs):value,tests=when.is?[when]:when.switch,before=ids.length;for(let j$1=0;j$1<tests.length;++j$1){let{is,then,otherwise}=tests[j$1],baseId=`${i$4}${when.switch?`.`+j$1:``}`;if(is.$_match(input,state.nest(is,`${baseId}.is`),prefs)){if(then){let localState=state.localize([...state.path,`${baseId}.then`],state.ancestors,state.schemas),{schema:generated,id:id$1}=then._generate(value,localState,prefs);whens.push(generated),ids.push(`${baseId}.then${id$1?`(${id$1})`:``}`);break}}else if(otherwise){let localState=state.localize([...state.path,`${baseId}.otherwise`],state.ancestors,state.schemas),{schema:generated,id:id$1}=otherwise._generate(value,localState,prefs);whens.push(generated),ids.push(`${baseId}.otherwise${id$1?`(${id$1})`:``}`);break}}if(when.break&&ids.length>before)break}let id=ids.join(`, `);if(state.mainstay.tracer.debug(state,`rule`,`when`,id),!id)return{schema:this};if(!state.mainstay.tracer.active&&this.$_temp.whens[id])return{schema:this.$_temp.whens[id],id};let obj=this;this._definition.generate&&(obj=this._definition.generate(this,value,state,prefs));for(let when of whens)obj=obj.concat(when);return this.$_root._tracer&&this.$_root._tracer._combine(obj,[this,...whens]),this.$_temp.whens[id]=obj,{schema:obj,id}}_inner(type,values,options={}){assert$18(!this._inRuleset(),`Cannot set ${type} inside a ruleset`);let obj=this.clone();return(!obj.$_terms[type]||options.override)&&(obj.$_terms[type]=[]),options.single?obj.$_terms[type].push(values):obj.$_terms[type].push(...values),obj.$_temp.ruleset=!1,obj}_inRuleset(){return this.$_temp.ruleset!==null&&this.$_temp.ruleset!==!1}_ruleRemove(name$1,options={}){if(!this._singleRules.has(name$1))return this;let obj=options.clone===!1?this:this.clone();obj._singleRules.delete(name$1);let filtered=[];for(let i$4=0;i$4<obj._rules.length;++i$4){let test=obj._rules[i$4];if(test.name===name$1&&!test.keep){obj._inRuleset()&&i$4<obj.$_temp.ruleset&&--obj.$_temp.ruleset;continue}filtered.push(test)}return obj._rules=filtered,obj}_values(values,key){Common$13.verifyFlat(values,key.slice(1,-1));let obj=this.clone(),override=values[0]===Common$13.symbols.override;if(override&&(values=values.slice(1)),!obj[key]&&values.length?obj[key]=new Values$1:override&&(obj[key]=values.length?new Values$1:null,obj.$_mutateRebuild()),!obj[key])return obj;override&&obj[key].override();for(let value of values){assert$18(value!==void 0,`Cannot call allow/valid/invalid with undefined`),assert$18(value!==Common$13.symbols.override,`Override must be the first value`);let other=key===`_invalids`?`_valids`:`_invalids`;obj[other]&&(obj[other].remove(value),obj[other].length||(assert$18(key===`_valids`||!obj._flags.only,`Setting invalid value`,value,`leaves schema rejecting all values due to previous valid rule`),obj[other]=null)),obj[key].add(value,obj._refs)}return obj}get"~standard"(){let mapToStandardError=error=>{let issues;return issues=Errors$5.ValidationError.isError(error)?error.details.map(({message,path})=>({message,path})):[{message:error.message}],{issues}},mapToStandardValue=value=>({value});return{version:1,vendor:`joi`,validate:value=>{let result=Validator.standard(value,this);return result instanceof Promise?result.then(mapToStandardValue,mapToStandardError):result.error?mapToStandardError(result.error):mapToStandardValue(result.value)}}}},internals$14.Base.prototype[Common$13.symbols.any]={version:Common$13.version,compile:Compile$6.compile,root:`$_root`},internals$14.Base.prototype.isImmutable=!0,internals$14.Base.prototype.deny=internals$14.Base.prototype.invalid,internals$14.Base.prototype.disallow=internals$14.Base.prototype.invalid,internals$14.Base.prototype.equal=internals$14.Base.prototype.valid,internals$14.Base.prototype.exist=internals$14.Base.prototype.required,internals$14.Base.prototype.not=internals$14.Base.prototype.invalid,internals$14.Base.prototype.options=internals$14.Base.prototype.prefs,internals$14.Base.prototype.preferences=internals$14.Base.prototype.prefs,module.exports=new internals$14.Base}),require_any=__commonJSMin((exports,module)=>{let{assert:assert$17}=require_lib$4(),Base=require_base(),Common$12=require_common(),Messages$2=require_messages();module.exports=Base.extend({type:`any`,flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(method,description$1){return assert$17(typeof method==`function`,`Method must be a function`),assert$17(description$1===void 0||description$1&&typeof description$1==`string`,`Description must be a non-empty string`),this.$_addRule({name:`custom`,args:{method,description:description$1}})},validate(value,helpers,{method}){try{return method(value,helpers)}catch(err$1){return helpers.error(`any.custom`,{error:err$1})}},args:[`method`,`description`],multi:!0},messages:{method(messages$3){return this.prefs({messages:messages$3})}},shared:{method(schema){assert$17(Common$12.isSchema(schema)&&schema._flags.id,`Schema must be a schema with an id`);let obj=this.clone();return obj.$_terms.shared=obj.$_terms.shared||[],obj.$_terms.shared.push(schema),obj.$_mutateRegister(schema),obj}},warning:{method(code$2,local){return assert$17(code$2&&typeof code$2==`string`,`Invalid warning code`),this.$_addRule({name:`warning`,args:{code:code$2,local},warn:!0})},validate(value,helpers,{code:code$2,local}){return helpers.error(code$2,local)},args:[`code`,`local`],multi:!0}},modifiers:{keep(rule,enabled=!0){rule.keep=enabled},message(rule,message){rule.message=Messages$2.compile(message)},warn(rule,enabled=!0){rule.warn=enabled}},manifest:{build(obj,desc$1){for(let key in desc$1){let values=desc$1[key];if([`examples`,`externals`,`metas`,`notes`,`tags`].includes(key)){for(let value of values)obj=obj[key.slice(0,-1)](value);continue}if(key===`alterations`){let alter={};for(let{target,adjuster}of values)alter[target]=adjuster;obj=obj.alter(alter);continue}if(key===`whens`){for(let value of values){let{ref,is,not,then,otherwise,concat}=value;obj=concat?obj.concat(concat):ref?obj.when(ref,{is,not,then,otherwise,switch:value.switch,break:value.break}):obj.when(is,{then,otherwise,break:value.break})}continue}if(key===`shared`)for(let value of values)obj=obj.shared(value)}return obj}},messages:{"any.custom":`{{#label}} failed custom validation because {{#error.message}}`,"any.default":`{{#label}} threw an error when running default method`,"any.failover":`{{#label}} threw an error when running failover method`,"any.invalid":`{{#label}} contains an invalid value`,"any.only":`{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}`,"any.ref":`{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}`,"any.required":`{{#label}} is required`,"any.unknown":`{{#label}} is not allowed`}})}),require_alternatives=__commonJSMin((exports,module)=>{let{assert:assert$16,merge}=require_lib$4(),Any$9=require_any(),Common$11=require_common(),Compile$5=require_compile(),Errors$4=require_errors(),Ref$3=require_ref(),internals$13={};module.exports=Any$9.extend({type:`alternatives`,flags:{match:{default:`any`}},terms:{matches:{init:[],register:Ref$3.toSibling}},args(schema,...schemas){return schemas.length===1&&Array.isArray(schemas[0])?schema.try(...schemas[0]):schema.try(...schemas)},validate(value,helpers){let{schema,error,state,prefs}=helpers;if(schema._flags.match){let matched=[],failed=[];for(let i$4=0;i$4<schema.$_terms.matches.length;++i$4){let item=schema.$_terms.matches[i$4],localState=state.nest(item.schema,`match.${i$4}`);localState.snapshot();let result=item.schema.$_validate(value,localState,prefs);result.errors?(failed.push(result.errors),localState.restore()):(matched.push(result.value),localState.commit())}if(matched.length===0){let context={details:failed.map(f=>Errors$4.details(f,{override:!1}))};return{errors:error(`alternatives.any`,context)}}if(schema._flags.match===`one`)return matched.length===1?{value:matched[0]}:{errors:error(`alternatives.one`)};if(matched.length!==schema.$_terms.matches.length){let context={details:failed.map(f=>Errors$4.details(f,{override:!1}))};return{errors:error(`alternatives.all`,context)}}let isAnyObj=alternative=>alternative.$_terms.matches.some(v=>v.schema.type===`object`||v.schema.type===`alternatives`&&isAnyObj(v.schema));return isAnyObj(schema)?{value:matched.reduce((acc,v)=>merge(acc,v,{mergeArrays:!1}))}:{value:matched[matched.length-1]}}let errors=[];for(let i$4=0;i$4<schema.$_terms.matches.length;++i$4){let item=schema.$_terms.matches[i$4];if(item.schema){let localState=state.nest(item.schema,`match.${i$4}`);localState.snapshot();let result=item.schema.$_validate(value,localState,prefs);if(!result.errors)return localState.commit(),result;localState.restore(),errors.push({schema:item.schema,reports:result.errors});continue}let input=item.ref?item.ref.resolve(value,state,prefs):value,tests=item.is?[item]:item.switch;for(let j$1=0;j$1<tests.length;++j$1){let test=tests[j$1],{is,then,otherwise}=test,id=`match.${i$4}${item.switch?`.`+j$1:``}`;if(is.$_match(input,state.nest(is,`${id}.is`),prefs)){if(then)return then.$_validate(value,state.nest(then,`${id}.then`),prefs)}else if(otherwise)return otherwise.$_validate(value,state.nest(otherwise,`${id}.otherwise`),prefs)}}return internals$13.errors(errors,helpers)},rules:{conditional:{method(condition,options){assert$16(!this._flags._endedSwitch,`Unreachable condition`),assert$16(!this._flags.match,`Cannot combine match mode`,this._flags.match,`with conditional rule`),assert$16(options.break===void 0,`Cannot use break option with alternatives conditional`);let obj=this.clone(),match$2=Compile$5.when(obj,condition,options),conditions=match$2.is?[match$2]:match$2.switch;for(let item of conditions)if(item.then&&item.otherwise){obj.$_setFlag(`_endedSwitch`,!0,{clone:!1});break}return obj.$_terms.matches.push(match$2),obj.$_mutateRebuild()}},match:{method(mode){if(assert$16([`any`,`one`,`all`].includes(mode),`Invalid alternatives match mode`,mode),mode!==`any`)for(let match$2 of this.$_terms.matches)assert$16(match$2.schema,`Cannot combine match mode`,mode,`with conditional rules`);return this.$_setFlag(`match`,mode)}},try:{method(...schemas){assert$16(schemas.length,`Missing alternative schemas`),Common$11.verifyFlat(schemas,`try`),assert$16(!this._flags._endedSwitch,`Unreachable condition`);let obj=this.clone();for(let schema of schemas)obj.$_terms.matches.push({schema:obj.$_compile(schema)});return obj.$_mutateRebuild()}}},overrides:{label(name$1){let obj=this.$_parent(`label`,name$1),each=(item,source)=>source.path[0]!==`is`&&typeof item._flags.label!=`string`?item.label(name$1):void 0;return obj.$_modify({each,ref:!1})},isAsync(){if(this.$_terms.externals?.length)return!0;for(let match$2 of this.$_terms.matches)if(match$2.schema?.isAsync()||match$2.then?.isAsync()||match$2.otherwise?.isAsync())return!0;return!1}},rebuild(schema){let each=item=>{Common$11.isSchema(item)&&item.type===`array`&&schema.$_setFlag(`_arrayItems`,!0,{clone:!1})};schema.$_modify({each})},manifest:{build(obj,desc$1){if(desc$1.matches)for(let match$2 of desc$1.matches){let{schema,ref,is,not,then,otherwise}=match$2;obj=schema?obj.try(schema):ref?obj.conditional(ref,{is,then,not,otherwise,switch:match$2.switch}):obj.conditional(is,{then,otherwise})}return obj}},messages:{"alternatives.all":`{{#label}} does not match all of the required types`,"alternatives.any":`{{#label}} does not match any of the allowed types`,"alternatives.match":`{{#label}} does not match any of the allowed types`,"alternatives.one":`{{#label}} matches more than one allowed type`,"alternatives.types":`{{#label}} must be one of {{#types}}`}}),internals$13.errors=function(failures,{error,state}){if(!failures.length)return{errors:error(`alternatives.any`)};if(failures.length===1)return{errors:failures[0].reports};let valids=new Set,complex=[];for(let{reports,schema}of failures){if(reports.length>1)return internals$13.unmatched(failures,error);let report=reports[0];if(!(report instanceof Errors$4.Report))return internals$13.unmatched(failures,error);if(report.state.path.length!==state.path.length){complex.push({type:schema.type,report});continue}if(report.code===`any.only`){for(let valid$2 of report.local.valids)valids.add(valid$2);continue}let[type,code$2]=report.code.split(`.`);code$2===`base`?report.code===`object.base`?valids.add(report.local.type):valids.add(type):complex.push({type:schema.type,report})}return complex.length?complex.length===1?{errors:complex[0].report}:internals$13.unmatched(failures,error):{errors:error(`alternatives.types`,{types:[...valids]})}},internals$13.unmatched=function(failures,error){let errors=[];for(let failure of failures)errors.push(...failure.reports);return{errors:error(`alternatives.match`,Errors$4.details(errors,{override:!1}))}}}),require_array=__commonJSMin((exports,module)=>{let{assert:assert$15,deepEqual,reach:reach$1}=require_lib$4(),Any$8=require_any(),Common$10=require_common(),Compile$4=require_compile(),internals$12={};module.exports=Any$8.extend({type:`array`,flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:`schema`},ordered:{init:[],manifest:`schema`},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:`object`,method(value,{schema,state,prefs}){if(!Array.isArray(value))return;let sort$2=schema.$_getRule(`sort`);if(sort$2)return internals$12.sort(schema,value,sort$2.args.options,state,prefs)}},validate(value,{schema,error}){if(!Array.isArray(value)){if(schema._flags.single){let single=[value];return single[Common$10.symbols.arraySingle]=!0,{value:single}}return{errors:error(`array.base`)}}if(!(!schema.$_getRule(`items`)&&!schema.$_terms.externals))return{value:value.slice()}},rules:{has:{method(schema){schema=this.$_compile(schema,{appendPath:!0});let obj=this.$_addRule({name:`has`,args:{schema}});return obj.$_mutateRegister(schema),obj},validate(value,{state,prefs,error},{schema:has}){let ancestors=[value,...state.ancestors];for(let i$4=0;i$4<value.length;++i$4){let localState=state.localize([...state.path,i$4],ancestors,has);if(has.$_match(value[i$4],localState,prefs))return value}let patternLabel=has._flags.label;return patternLabel?error(`array.hasKnown`,{patternLabel}):error(`array.hasUnknown`,null)},multi:!0},items:{method(...schemas){Common$10.verifyFlat(schemas,`items`);let obj=this.$_addRule(`items`);for(let i$4=0;i$4<schemas.length;++i$4){let type=Common$10.tryWithPath(()=>this.$_compile(schemas[i$4]),i$4,{append:!0});obj.$_terms.items.push(type)}return obj.$_mutateRebuild()},validate(value,{schema,error,state,prefs,errorsArray}){let requireds=schema.$_terms._requireds.slice(),ordereds=schema.$_terms.ordered.slice(),inclusions=[...schema.$_terms._inclusions,...requireds],wasArray=!value[Common$10.symbols.arraySingle];delete value[Common$10.symbols.arraySingle];let errors=errorsArray(),il=value.length;for(let i$4=0;i$4<il;++i$4){let item=value[i$4],errored=!1,isValid=!1,key=wasArray?i$4:new Number(i$4),path=[...state.path,key];if(!schema._flags.sparse&&item===void 0){if(errors.push(error(`array.sparse`,{key,path,pos:i$4,value:void 0},state.localize(path))),prefs.abortEarly)return errors;ordereds.shift();continue}let ancestors=[value,...state.ancestors];for(let exclusion of schema.$_terms._exclusions){if(!exclusion.$_match(item,state.localize(path,ancestors,exclusion),prefs,{presence:`ignore`}))continue;if(errors.push(error(`array.excludes`,{pos:i$4,value:item},state.localize(path))),prefs.abortEarly)return errors;errored=!0,ordereds.shift();break}if(errored)continue;if(schema.$_terms.ordered.length){if(ordereds.length){let ordered=ordereds.shift(),res=ordered.$_validate(item,state.localize(path,ancestors,ordered),prefs);if(res.errors){if(errors.push(...res.errors),prefs.abortEarly)return errors}else if(ordered._flags.result===`strip`)internals$12.fastSplice(value,i$4),--i$4,--il;else if(!schema._flags.sparse&&res.value===void 0){if(errors.push(error(`array.sparse`,{key,path,pos:i$4,value:void 0},state.localize(path))),prefs.abortEarly)return errors;continue}else value[i$4]=res.value;continue}else if(!schema.$_terms.items.length){if(errors.push(error(`array.orderedLength`,{pos:i$4,limit:schema.$_terms.ordered.length})),prefs.abortEarly)return errors;break}}let requiredChecks=[],jl=requireds.length;for(let j$1=0;j$1<jl;++j$1){let localState=state.localize(path,ancestors,requireds[j$1]);localState.snapshot();let res=requireds[j$1].$_validate(item,localState,prefs);if(requiredChecks[j$1]=res,!res.errors){if(localState.commit(),value[i$4]=res.value,isValid=!0,internals$12.fastSplice(requireds,j$1),--j$1,--jl,!schema._flags.sparse&&res.value===void 0&&(errors.push(error(`array.sparse`,{key,path,pos:i$4,value:void 0},state.localize(path))),prefs.abortEarly))return errors;break}localState.restore()}if(isValid)continue;let stripUnknown=prefs.stripUnknown&&!!prefs.stripUnknown.arrays||!1;jl=inclusions.length;for(let inclusion of inclusions){let res,previousCheck=requireds.indexOf(inclusion);if(previousCheck!==-1)res=requiredChecks[previousCheck];else{let localState=state.localize(path,ancestors,inclusion);if(localState.snapshot(),res=inclusion.$_validate(item,localState,prefs),!res.errors){localState.commit(),inclusion._flags.result===`strip`?(internals$12.fastSplice(value,i$4),--i$4,--il):!schema._flags.sparse&&res.value===void 0?(errors.push(error(`array.sparse`,{key,path,pos:i$4,value:void 0},state.localize(path))),errored=!0):value[i$4]=res.value,isValid=!0;break}localState.restore()}if(jl===1){if(stripUnknown){internals$12.fastSplice(value,i$4),--i$4,--il,isValid=!0;break}if(errors.push(...res.errors),prefs.abortEarly)return errors;errored=!0;break}}if(!errored&&(schema.$_terms._inclusions.length||schema.$_terms._requireds.length)&&!isValid){if(stripUnknown){internals$12.fastSplice(value,i$4),--i$4,--il;continue}if(errors.push(error(`array.includes`,{pos:i$4,value:item},state.localize(path))),prefs.abortEarly)return errors}}return requireds.length&&internals$12.fillMissedErrors(schema,errors,requireds,value,state,prefs),ordereds.length&&(internals$12.fillOrderedErrors(schema,errors,ordereds,value,state,prefs),errors.length||internals$12.fillDefault(ordereds,value,state,prefs)),errors.length?errors:value},priority:!0,manifest:!1},length:{method(limit){return this.$_addRule({name:`length`,args:{limit},operator:`=`})},validate(value,helpers,{limit},{name:name$1,operator,args:args$1}){return Common$10.compare(value.length,limit,operator)?value:helpers.error(`array.`+name$1,{limit:args$1.limit,value})},args:[{name:`limit`,ref:!0,assert:Common$10.limit,message:`must be a positive integer`}]},max:{method(limit){return this.$_addRule({name:`max`,method:`length`,args:{limit},operator:`<=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`length`,args:{limit},operator:`>=`})}},ordered:{method(...schemas){Common$10.verifyFlat(schemas,`ordered`);let obj=this.$_addRule(`items`);for(let i$4=0;i$4<schemas.length;++i$4){let type=Common$10.tryWithPath(()=>this.$_compile(schemas[i$4]),i$4,{append:!0});internals$12.validateSingle(type,obj),obj.$_mutateRegister(type),obj.$_terms.ordered.push(type)}return obj.$_mutateRebuild()}},single:{method(enabled){let value=enabled===void 0?!0:!!enabled;return assert$15(!value||!this._flags._arrayItems,`Cannot specify single rule when array has array items`),this.$_setFlag(`single`,value)}},sort:{method(options={}){Common$10.assertOptions(options,[`by`,`order`]);let settings={order:options.order||`ascending`};return options.by&&(settings.by=Compile$4.ref(options.by,{ancestor:0}),assert$15(!settings.by.ancestor,`Cannot sort by ancestor`)),this.$_addRule({name:`sort`,args:{options:settings}})},validate(value,{error,state,prefs,schema},{options}){let{value:sorted,errors}=internals$12.sort(schema,value,options,state,prefs);if(errors)return errors;for(let i$4=0;i$4<value.length;++i$4)if(value[i$4]!==sorted[i$4])return error(`array.sort`,{order:options.order,by:options.by?options.by.key:`value`});return value},convert:!0},sparse:{method(enabled){let value=enabled===void 0?!0:!!enabled;if(this._flags.sparse===value)return this;let obj=value?this.clone():this.$_addRule(`items`);return obj.$_setFlag(`sparse`,value,{clone:!1})}},unique:{method(comparator,options={}){assert$15(!comparator||typeof comparator==`function`||typeof comparator==`string`,`comparator must be a function or a string`),Common$10.assertOptions(options,[`ignoreUndefined`,`separator`]);let rule={name:`unique`,args:{options,comparator}};if(comparator)if(typeof comparator==`string`){let separator=Common$10.default(options.separator,`.`);rule.path=separator?comparator.split(separator):[comparator]}else rule.comparator=comparator;return this.$_addRule(rule)},validate(value,{state,error,schema},{comparator:raw,options},{comparator,path}){let found={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),bigint:Object.create(null),object:new Map,function:new Map,custom:new Map},compare$14=comparator||deepEqual,ignoreUndefined=options.ignoreUndefined;for(let i$4=0;i$4<value.length;++i$4){let item=path?reach$1(value[i$4],path):value[i$4],records=comparator?found.custom:found[typeof item];if(assert$15(records,`Failed to find unique map container for type`,typeof item),records instanceof Map){let entries=records.entries(),current;for(;!(current=entries.next()).done;)if(compare$14(current.value[0],item)){let localState=state.localize([...state.path,i$4],[value,...state.ancestors]),context={pos:i$4,value:value[i$4],dupePos:current.value[1],dupeValue:value[current.value[1]]};return path&&(context.path=raw),error(`array.unique`,context,localState)}records.set(item,i$4)}else{if((!ignoreUndefined||item!==void 0)&&records[item]!==void 0){let context={pos:i$4,value:value[i$4],dupePos:records[item],dupeValue:value[records[item]]};path&&(context.path=raw);let localState=state.localize([...state.path,i$4],[value,...state.ancestors]);return error(`array.unique`,context,localState)}records[item]=i$4}}return value},args:[`comparator`,`options`],multi:!0}},overrides:{isAsync(){if(this.$_terms.externals?.length)return!0;for(let item of this.$_terms.items)if(item.isAsync())return!0;for(let item of this.$_terms.ordered)if(item.isAsync())return!0;return!1}},cast:{set:{from:Array.isArray,to(value,helpers){return new Set(value)}}},rebuild(schema){schema.$_terms._inclusions=[],schema.$_terms._exclusions=[],schema.$_terms._requireds=[];for(let type of schema.$_terms.items)internals$12.validateSingle(type,schema),type._flags.presence===`required`?schema.$_terms._requireds.push(type):type._flags.presence===`forbidden`?schema.$_terms._exclusions.push(type):schema.$_terms._inclusions.push(type);for(let type of schema.$_terms.ordered)internals$12.validateSingle(type,schema)},manifest:{build(obj,desc$1){return desc$1.items&&(obj=obj.items(...desc$1.items)),desc$1.ordered&&(obj=obj.ordered(...desc$1.ordered)),obj}},messages:{"array.base":`{{#label}} must be an array`,"array.excludes":`{{#label}} contains an excluded value`,"array.hasKnown":`{{#label}} does not contain at least one required match for type {:#patternLabel}`,"array.hasUnknown":`{{#label}} does not contain at least one required match`,"array.includes":`{{#label}} does not match any of the allowed types`,"array.includesRequiredBoth":`{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)`,"array.includesRequiredKnowns":`{{#label}} does not contain {{#knownMisses}}`,"array.includesRequiredUnknowns":`{{#label}} does not contain {{#unknownMisses}} required value(s)`,"array.length":`{{#label}} must contain {{#limit}} items`,"array.max":`{{#label}} must contain less than or equal to {{#limit}} items`,"array.min":`{{#label}} must contain at least {{#limit}} items`,"array.orderedLength":`{{#label}} must contain at most {{#limit}} items`,"array.sort":`{{#label}} must be sorted in {#order} order by {{#by}}`,"array.sort.mismatching":`{{#label}} cannot be sorted due to mismatching types`,"array.sort.unsupported":`{{#label}} cannot be sorted due to unsupported type {#type}`,"array.sparse":`{{#label}} must not be a sparse array item`,"array.unique":`{{#label}} contains a duplicate value`}}),internals$12.fillMissedErrors=function(schema,errors,requireds,value,state,prefs){let knownMisses=[],unknownMisses=0;for(let required of requireds){let label=required._flags.label;label?knownMisses.push(label):++unknownMisses}knownMisses.length?unknownMisses?errors.push(schema.$_createError(`array.includesRequiredBoth`,value,{knownMisses,unknownMisses},state,prefs)):errors.push(schema.$_createError(`array.includesRequiredKnowns`,value,{knownMisses},state,prefs)):errors.push(schema.$_createError(`array.includesRequiredUnknowns`,value,{unknownMisses},state,prefs))},internals$12.fillOrderedErrors=function(schema,errors,ordereds,value,state,prefs){let requiredOrdereds=[];for(let ordered of ordereds)ordered._flags.presence===`required`&&requiredOrdereds.push(ordered);requiredOrdereds.length&&internals$12.fillMissedErrors(schema,errors,requiredOrdereds,value,state,prefs)},internals$12.fillDefault=function(ordereds,value,state,prefs){let overrides=[],trailingUndefined=!0;for(let i$4=ordereds.length-1;i$4>=0;--i$4){let ordered=ordereds[i$4],ancestors=[value,...state.ancestors],override=ordered.$_validate(void 0,state.localize(state.path,ancestors,ordered),prefs).value;if(trailingUndefined){if(override===void 0)continue;trailingUndefined=!1}overrides.unshift(override)}overrides.length&&value.push(...overrides)},internals$12.fastSplice=function(arr,i$4){let pos=i$4;for(;pos<arr.length;)arr[pos++]=arr[pos];--arr.length},internals$12.validateSingle=function(type,obj){(type.type===`array`||type._flags._arrayItems)&&(assert$15(!obj._flags.single,`Cannot specify array item with single rule enabled`),obj.$_setFlag(`_arrayItems`,!0,{clone:!1}))},internals$12.sort=function(schema,value,settings,state,prefs){let order=settings.order===`ascending`?1:-1,aFirst=-1*order,bFirst=order,sort$2=(a,b)=>{let compare$14=internals$12.compare(a,b,aFirst,bFirst);if(compare$14!==null||(settings.by&&(a=settings.by.resolve(a,state,prefs),b=settings.by.resolve(b,state,prefs)),compare$14=internals$12.compare(a,b,aFirst,bFirst),compare$14!==null))return compare$14;let type=typeof a;if(type!==typeof b)throw schema.$_createError(`array.sort.mismatching`,value,null,state,prefs);if(type!==`number`&&type!==`string`)throw schema.$_createError(`array.sort.unsupported`,value,{type},state,prefs);return type===`number`?(a-b)*order:a<b?aFirst:bFirst};try{return{value:value.slice().sort(sort$2)}}catch(err$1){return{errors:err$1}}},internals$12.compare=function(a,b,aFirst,bFirst){return a===b?0:a===void 0?1:b===void 0?-1:a===null?bFirst:b===null?aFirst:null}}),require_boolean=__commonJSMin((exports,module)=>{let{assert:assert$14}=require_lib$4(),Any$7=require_any(),Common$9=require_common(),Values=require_values(),internals$11={};internals$11.isBool=function(value){return typeof value==`boolean`},module.exports=Any$7.extend({type:`boolean`,flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:`values`},truthy:{init:null,manifest:`values`}},coerce(value,{schema}){if(typeof value!=`boolean`){if(typeof value==`string`){let normalized=schema._flags.sensitive?value:value.toLowerCase();value=normalized===`true`?!0:normalized===`false`?!1:value}return typeof value!=`boolean`&&(value=schema.$_terms.truthy&&schema.$_terms.truthy.has(value,null,null,!schema._flags.sensitive)||(schema.$_terms.falsy&&schema.$_terms.falsy.has(value,null,null,!schema._flags.sensitive)?!1:value)),{value}}},validate(value,{error}){if(typeof value!=`boolean`)return{value,errors:error(`boolean.base`)}},rules:{truthy:{method(...values){Common$9.verifyFlat(values,`truthy`);let obj=this.clone();obj.$_terms.truthy=obj.$_terms.truthy||new Values;for(let i$4=0;i$4<values.length;++i$4){let value=values[i$4];assert$14(value!==void 0,`Cannot call truthy with undefined`),obj.$_terms.truthy.add(value)}return obj}},falsy:{method(...values){Common$9.verifyFlat(values,`falsy`);let obj=this.clone();obj.$_terms.falsy=obj.$_terms.falsy||new Values;for(let i$4=0;i$4<values.length;++i$4){let value=values[i$4];assert$14(value!==void 0,`Cannot call falsy with undefined`),obj.$_terms.falsy.add(value)}return obj}},sensitive:{method(enabled=!0){return this.$_setFlag(`sensitive`,enabled)}}},cast:{number:{from:internals$11.isBool,to(value,helpers){return value?1:0}},string:{from:internals$11.isBool,to(value,helpers){return value?`true`:`false`}}},manifest:{build(obj,desc$1){return desc$1.truthy&&(obj=obj.truthy(...desc$1.truthy)),desc$1.falsy&&(obj=obj.falsy(...desc$1.falsy)),obj}},messages:{"boolean.base":`{{#label}} must be a boolean`}})}),require_date=__commonJSMin((exports,module)=>{let{assert:assert$13}=require_lib$4(),Any$6=require_any(),Common$8=require_common(),Template$4=require_template(),internals$10={};internals$10.isDate=function(value){return value instanceof Date},module.exports=Any$6.extend({type:`date`,coerce:{from:[`number`,`string`],method(value,{schema}){return{value:internals$10.parse(value,schema._flags.format)||value}}},validate(value,{schema,error,prefs}){if(value instanceof Date&&!isNaN(value.getTime()))return;let format=schema._flags.format;return!prefs.convert||!format||typeof value!=`string`?{value,errors:error(`date.base`)}:{value,errors:error(`date.format`,{format})}},rules:{compare:{method:!1,validate(value,helpers,{date},{name:name$1,operator,args:args$1}){let to=date===`now`?Date.now():date.getTime();return Common$8.compare(value.getTime(),to,operator)?value:helpers.error(`date.`+name$1,{limit:args$1.date,value})},args:[{name:`date`,ref:!0,normalize:date=>date===`now`?date:internals$10.parse(date),assert:date=>date!==null,message:`must have a valid date format`}]},format:{method(format){return assert$13([`iso`,`javascript`,`unix`].includes(format),`Unknown date format`,format),this.$_setFlag(`format`,format)}},greater:{method(date){return this.$_addRule({name:`greater`,method:`compare`,args:{date},operator:`>`})}},iso:{method(){return this.format(`iso`)}},less:{method(date){return this.$_addRule({name:`less`,method:`compare`,args:{date},operator:`<`})}},max:{method(date){return this.$_addRule({name:`max`,method:`compare`,args:{date},operator:`<=`})}},min:{method(date){return this.$_addRule({name:`min`,method:`compare`,args:{date},operator:`>=`})}},timestamp:{method(type=`javascript`){return assert$13([`javascript`,`unix`].includes(type),`"type" must be one of "javascript, unix"`),this.format(type)}}},cast:{number:{from:internals$10.isDate,to(value,helpers){return value.getTime()}},string:{from:internals$10.isDate,to(value,{prefs}){return Template$4.date(value,prefs)}}},messages:{"date.base":`{{#label}} must be a valid date`,"date.format":`{{#label}} must be in {msg("date.format." + #format) || #format} format`,"date.greater":`{{#label}} must be greater than {{:#limit}}`,"date.less":`{{#label}} must be less than {{:#limit}}`,"date.max":`{{#label}} must be less than or equal to {{:#limit}}`,"date.min":`{{#label}} must be greater than or equal to {{:#limit}}`,"date.format.iso":`ISO 8601 date`,"date.format.javascript":`timestamp or number of milliseconds`,"date.format.unix":`timestamp or number of seconds`}}),internals$10.parse=function(value,format){if(value instanceof Date)return value;if(typeof value!=`string`&&(isNaN(value)||!isFinite(value))||/^\s*$/.test(value))return null;if(format===`iso`)return Common$8.isIsoDate(value)?internals$10.date(value.toString()):null;let original=value;if(typeof value==`string`&&/^[+-]?\d+(\.\d+)?$/.test(value)&&(value=parseFloat(value)),format){if(format===`javascript`)return internals$10.date(1*value);if(format===`unix`)return internals$10.date(1e3*value);if(typeof original==`string`)return null}return internals$10.date(value)},internals$10.date=function(value){let date=new Date(value);return isNaN(date.getTime())?null:date}}),require_lib$1=__commonJSMin(exports=>{let{assert:assert$12}=require_lib$4(),internals$9={};exports.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(nodes,options){options??={};let before=[].concat(options.before??[]),after=[].concat(options.after??[]),group=options.group??`?`,sort$2=options.sort??0;assert$12(!before.includes(group),`Item cannot come before itself: ${group}`),assert$12(!before.includes(`?`),`Item cannot come before unassociated items`),assert$12(!after.includes(group),`Item cannot come after itself: ${group}`),assert$12(!after.includes(`?`),`Item cannot come after unassociated items`),Array.isArray(nodes)||(nodes=[nodes]);for(let node of nodes){let item={seq:this._items.length,sort:sort$2,before,after,group,node};this._items.push(item)}if(!options.manual){let valid$2=this._sort();assert$12(valid$2,`item`,group===`?`?``:`added into group ${group}`,`created a dependencies error`)}return this.nodes}merge(others){Array.isArray(others)||(others=[others]);for(let other of others)if(other)for(let item of other._items)this._items.push(Object.assign({},item));this._items.sort(internals$9.mergeSort);for(let i$4=0;i$4<this._items.length;++i$4)this._items[i$4].seq=i$4;let valid$2=this._sort();return assert$12(valid$2,`merge created a dependencies error`),this.nodes}sort(){let valid$2=this._sort();return assert$12(valid$2,`sort created a dependencies error`),this.nodes}_sort(){let graph={},graphAfters=Object.create(null),groups=Object.create(null);for(let item of this._items){let seq=item.seq,group=item.group;groups[group]=groups[group]??[],groups[group].push(seq),graph[seq]=item.before;for(let after of item.after)graphAfters[after]=graphAfters[after]??[],graphAfters[after].push(seq)}for(let node in graph){let expandedGroups=[];for(let graphNodeItem in graph[node]){let group=graph[node][graphNodeItem];groups[group]=groups[group]??[],expandedGroups.push(...groups[group])}graph[node]=expandedGroups}for(let group in graphAfters)if(groups[group])for(let node of groups[group])graph[node].push(...graphAfters[group]);let ancestors={};for(let node in graph){let children=graph[node];for(let child of children)ancestors[child]=ancestors[child]??[],ancestors[child].push(node)}let visited={},sorted=[];for(let i$4=0;i$4<this._items.length;++i$4){let next=i$4;if(ancestors[i$4]){next=null;for(let j$1=0;j$1<this._items.length;++j$1){if(visited[j$1]===!0)continue;ancestors[j$1]||(ancestors[j$1]=[]);let shouldSeeCount=ancestors[j$1].length,seenCount=0;for(let k=0;k<shouldSeeCount;++k)visited[ancestors[j$1][k]]&&++seenCount;if(seenCount===shouldSeeCount){next=j$1;break}}}next!==null&&(visited[next]=!0,sorted.push(next))}if(sorted.length!==this._items.length)return!1;let seqIndex={};for(let item of this._items)seqIndex[item.seq]=item;this._items=[],this.nodes=[];for(let value of sorted){let sortedItem=seqIndex[value];this.nodes.push(sortedItem.node),this._items.push(sortedItem)}return!0}},internals$9.mergeSort=(a,b)=>a.sort===b.sort?0:a.sort<b.sort?-1:1}),require_keys=__commonJSMin((exports,module)=>{let{applyToDefaults,assert:assert$11,clone:Clone}=require_lib$4(),Topo=require_lib$1(),Any$5=require_any(),Common$7=require_common(),Compile$3=require_compile(),Errors$3=require_errors(),Ref$2=require_ref(),Template$3=require_template(),internals$8={renameDefaults:{alias:!1,multiple:!1,override:!1}};module.exports=Any$5.extend({type:`_keys`,properties:{typeof:`object`},flags:{unknown:{default:void 0}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:`schema`,to:`key`}}},patterns:{init:null},renames:{init:null}},args(schema,keys){return schema.keys(keys)},validate(value,{schema,error,state,prefs}){if(!value||typeof value!==schema.$_property(`typeof`)||Array.isArray(value))return{value,errors:error(`object.base`,{type:schema.$_property(`typeof`)})};if(!schema.$_terms.renames&&!schema.$_terms.dependencies&&!schema.$_terms.keys&&!schema.$_terms.patterns&&!schema.$_terms.externals)return;value=internals$8.clone(value,prefs);let errors=[];if(schema.$_terms.renames&&!internals$8.rename(schema,value,state,prefs,errors)||!schema.$_terms.keys&&!schema.$_terms.patterns&&!schema.$_terms.dependencies)return{value,errors};let unprocessed=new Set(Object.keys(value));if(schema.$_terms.keys){let ancestors=[value,...state.ancestors];for(let child of schema.$_terms.keys){let key=child.key,item=value[key];unprocessed.delete(key);let localState=state.localize([...state.path,key],ancestors,child),result=child.schema.$_validate(item,localState,prefs);if(result.errors){if(prefs.abortEarly)return{value,errors:result.errors};result.value!==void 0&&(value[key]=result.value),errors.push(...result.errors)}else child.schema._flags.result===`strip`||result.value===void 0&&item!==void 0?delete value[key]:result.value!==void 0&&(value[key]=result.value)}}if(unprocessed.size||schema._flags._hasPatternMatch){let early=internals$8.unknown(schema,value,unprocessed,errors,state,prefs);if(early)return early}if(schema.$_terms.dependencies)for(let dep of schema.$_terms.dependencies){if(dep.key!==null&&internals$8.isPresent(dep.options)(dep.key.resolve(value,state,prefs,null,{shadow:!1}))===!1)continue;let failed=internals$8.dependencies[dep.rel](schema,dep,value,state,prefs);if(failed){let report=schema.$_createError(failed.code,value,failed.context,state,prefs);if(prefs.abortEarly)return{value,errors:report};errors.push(report)}}return{value,errors}},rules:{and:{method(...peers){return Common$7.verifyFlat(peers,`and`),internals$8.dependency(this,`and`,null,peers)}},append:{method(schema){return schema==null||Object.keys(schema).length===0?this:this.keys(schema)}},assert:{method(subject,schema,message){Template$3.isTemplate(subject)||(subject=Compile$3.ref(subject)),assert$11(message===void 0||typeof message==`string`,`Message must be a string`),schema=this.$_compile(schema,{appendPath:!0});let obj=this.$_addRule({name:`assert`,args:{subject,schema,message}});return obj.$_mutateRegister(subject),obj.$_mutateRegister(schema),obj},validate(value,{error,prefs,state},{subject,schema,message}){let about=subject.resolve(value,state,prefs),path=Ref$2.isRef(subject)?subject.absolute(state):[];return schema.$_match(about,state.localize(path,[value,...state.ancestors],schema),prefs)?value:error(`object.assert`,{subject,message})},args:[`subject`,`schema`,`message`],multi:!0},instance:{method(constructor,name$1){return assert$11(typeof constructor==`function`,`constructor must be a function`),name$1||=constructor.name,this.$_addRule({name:`instance`,args:{constructor,name:name$1}})},validate(value,helpers,{constructor,name:name$1}){return value instanceof constructor?value:helpers.error(`object.instance`,{type:name$1,value})},args:[`constructor`,`name`]},keys:{method(schema){assert$11(schema===void 0||typeof schema==`object`,`Object schema must be a valid object`),assert$11(!Common$7.isSchema(schema),`Object schema cannot be a joi schema`);let obj=this.clone();if(!schema)obj.$_terms.keys=null;else if(!Object.keys(schema).length)obj.$_terms.keys=new internals$8.Keys;else for(let key in obj.$_terms.keys=obj.$_terms.keys?obj.$_terms.keys.filter(child=>!schema.hasOwnProperty(child.key)):new internals$8.Keys,schema)Common$7.tryWithPath(()=>obj.$_terms.keys.push({key,schema:this.$_compile(schema[key])}),key);return obj.$_mutateRebuild()}},length:{method(limit){return this.$_addRule({name:`length`,args:{limit},operator:`=`})},validate(value,helpers,{limit},{name:name$1,operator,args:args$1}){return Common$7.compare(Object.keys(value).length,limit,operator)?value:helpers.error(`object.`+name$1,{limit:args$1.limit,value})},args:[{name:`limit`,ref:!0,assert:Common$7.limit,message:`must be a positive integer`}]},max:{method(limit){return this.$_addRule({name:`max`,method:`length`,args:{limit},operator:`<=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`length`,args:{limit},operator:`>=`})}},nand:{method(...peers){return Common$7.verifyFlat(peers,`nand`),internals$8.dependency(this,`nand`,null,peers)}},or:{method(...peers){return Common$7.verifyFlat(peers,`or`),internals$8.dependency(this,`or`,null,peers)}},oxor:{method(...peers){return internals$8.dependency(this,`oxor`,null,peers)}},pattern:{method(pattern,schema,options={}){let isRegExp$1=pattern instanceof RegExp;isRegExp$1||(pattern=this.$_compile(pattern,{appendPath:!0})),assert$11(schema!==void 0,`Invalid rule`),Common$7.assertOptions(options,[`fallthrough`,`matches`]),isRegExp$1&&assert$11(!pattern.flags.includes(`g`)&&!pattern.flags.includes(`y`),`pattern should not use global or sticky mode`),schema=this.$_compile(schema,{appendPath:!0});let obj=this.clone();obj.$_terms.patterns=obj.$_terms.patterns||[];let config={[isRegExp$1?`regex`:`schema`]:pattern,rule:schema};return options.matches&&(config.matches=this.$_compile(options.matches),config.matches.type!==`array`&&(config.matches=config.matches.$_root.array().items(config.matches)),obj.$_mutateRegister(config.matches),obj.$_setFlag(`_hasPatternMatch`,!0,{clone:!1})),options.fallthrough&&(config.fallthrough=!0),obj.$_terms.patterns.push(config),obj.$_mutateRegister(schema),obj}},ref:{method(){return this.$_addRule(`ref`)},validate(value,helpers){return Ref$2.isRef(value)?value:helpers.error(`object.refType`,{value})}},regex:{method(){return this.$_addRule(`regex`)},validate(value,helpers){return value instanceof RegExp?value:helpers.error(`object.regex`,{value})}},rename:{method(from,to,options={}){assert$11(typeof from==`string`||from instanceof RegExp,`Rename missing the from argument`),assert$11(typeof to==`string`||to instanceof Template$3,`Invalid rename to argument`),assert$11(to!==from,`Cannot rename key to same name:`,from),Common$7.assertOptions(options,[`alias`,`ignoreUndefined`,`override`,`multiple`]);let obj=this.clone();obj.$_terms.renames=obj.$_terms.renames||[];for(let rename of obj.$_terms.renames)assert$11(rename.from!==from,`Cannot rename the same key multiple times`);return to instanceof Template$3&&obj.$_mutateRegister(to),obj.$_terms.renames.push({from,to,options:applyToDefaults(internals$8.renameDefaults,options)}),obj}},schema:{method(type=`any`){return this.$_addRule({name:`schema`,args:{type}})},validate(value,helpers,{type}){return Common$7.isSchema(value)&&(type===`any`||value.type===type)?value:helpers.error(`object.schema`,{type})}},unknown:{method(allow){return this.$_setFlag(`unknown`,allow!==!1)}},with:{method(key,peers,options={}){return internals$8.dependency(this,`with`,key,peers,options)}},without:{method(key,peers,options={}){return internals$8.dependency(this,`without`,key,peers,options)}},xor:{method(...peers){return Common$7.verifyFlat(peers,`xor`),internals$8.dependency(this,`xor`,null,peers)}}},overrides:{default(value,options){return value===void 0&&(value=Common$7.symbols.deepDefault),this.$_parent(`default`,value,options)},isAsync(){if(this.$_terms.externals?.length)return!0;if(this.$_terms.keys?.length){for(let key of this.$_terms.keys)if(key.schema.isAsync())return!0}if(this.$_terms.patterns?.length){for(let pattern of this.$_terms.patterns)if(pattern.rule.isAsync())return!0}return!1}},rebuild(schema){if(schema.$_terms.keys){let topo=new Topo.Sorter;for(let child of schema.$_terms.keys)Common$7.tryWithPath(()=>topo.add(child,{after:child.schema.$_rootReferences(),group:child.key}),child.key);schema.$_terms.keys=new internals$8.Keys(...topo.nodes)}},manifest:{build(obj,desc$1){if(desc$1.keys&&(obj=obj.keys(desc$1.keys)),desc$1.dependencies)for(let{rel,key=null,peers,options}of desc$1.dependencies)obj=internals$8.dependency(obj,rel,key,peers,options);if(desc$1.patterns)for(let{regex,schema,rule,fallthrough,matches}of desc$1.patterns)obj=obj.pattern(regex||schema,rule,{fallthrough,matches});if(desc$1.renames)for(let{from,to,options}of desc$1.renames)obj=obj.rename(from,to,options);return obj}},messages:{"object.and":`{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}`,"object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":`{{#label}} must be of type {{#type}}`,"object.instance":`{{#label}} must be an instance of {{:#type}}`,"object.length":`{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}`,"object.max":`{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}`,"object.min":`{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}`,"object.missing":`{{#label}} must contain at least one of {{#peersWithLabels}}`,"object.nand":`{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}`,"object.oxor":`{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}`,"object.pattern.match":`{{#label}} keys failed to match pattern requirements`,"object.refType":`{{#label}} must be a Joi reference`,"object.regex":`{{#label}} must be a RegExp object`,"object.rename.multiple":`{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}`,"object.rename.override":`{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists`,"object.schema":`{{#label}} must be a Joi schema of {{#type}} type`,"object.unknown":`{{#label}} is not allowed`,"object.with":`{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}`,"object.without":`{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}`,"object.xor":`{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}`}}),internals$8.clone=function(value,prefs){if(typeof value==`object`){if(prefs.nonEnumerables)return Clone(value,{shallow:!0});let clone$17=Object.create(Object.getPrototypeOf(value));return Object.assign(clone$17,value),clone$17}let clone$16=function(...args$1){return value.apply(this,args$1)};return clone$16.prototype=Clone(value.prototype),Object.defineProperty(clone$16,`name`,{value:value.name,writable:!1}),Object.defineProperty(clone$16,`length`,{value:value.length,writable:!1}),Object.assign(clone$16,value),clone$16},internals$8.dependency=function(schema,rel,key,peers,options){assert$11(key===null||typeof key==`string`,rel,`key must be a strings`),options||=peers.length>1&&typeof peers[peers.length-1]==`object`?peers.pop():{},Common$7.assertOptions(options,[`separator`,`isPresent`]),peers=[].concat(peers);let separator=Common$7.default(options.separator,`.`),paths=[];for(let peer of peers)assert$11(typeof peer==`string`,rel,`peers must be strings`),paths.push(Compile$3.ref(peer,{separator,ancestor:0,prefix:!1}));key!==null&&(key=Compile$3.ref(key,{separator,ancestor:0,prefix:!1}));let obj=schema.clone();return obj.$_terms.dependencies=obj.$_terms.dependencies||[],obj.$_terms.dependencies.push(new internals$8.Dependency(rel,key,paths,peers,options)),obj},internals$8.dependencies={and(schema,dep,value,state,prefs){let missing=[],present=[],count=dep.peers.length,isPresent=internals$8.isPresent(dep.options);for(let peer of dep.peers)isPresent(peer.resolve(value,state,prefs,null,{shadow:!1}))===!1?missing.push(peer.key):present.push(peer.key);if(missing.length!==count&&present.length!==count)return{code:`object.and`,context:{present,presentWithLabels:internals$8.keysToLabels(schema,present),missing,missingWithLabels:internals$8.keysToLabels(schema,missing)}}},nand(schema,dep,value,state,prefs){let present=[],isPresent=internals$8.isPresent(dep.options);for(let peer of dep.peers)isPresent(peer.resolve(value,state,prefs,null,{shadow:!1}))&&present.push(peer.key);if(present.length!==dep.peers.length)return;let main$1=dep.paths[0],values=dep.paths.slice(1);return{code:`object.nand`,context:{main:main$1,mainWithLabel:internals$8.keysToLabels(schema,main$1),peers:values,peersWithLabels:internals$8.keysToLabels(schema,values)}}},or(schema,dep,value,state,prefs){let isPresent=internals$8.isPresent(dep.options);for(let peer of dep.peers)if(isPresent(peer.resolve(value,state,prefs,null,{shadow:!1})))return;return{code:`object.missing`,context:{peers:dep.paths,peersWithLabels:internals$8.keysToLabels(schema,dep.paths)}}},oxor(schema,dep,value,state,prefs){let present=[],isPresent=internals$8.isPresent(dep.options);for(let peer of dep.peers)isPresent(peer.resolve(value,state,prefs,null,{shadow:!1}))&&present.push(peer.key);if(!present.length||present.length===1)return;let context={peers:dep.paths,peersWithLabels:internals$8.keysToLabels(schema,dep.paths)};return context.present=present,context.presentWithLabels=internals$8.keysToLabels(schema,present),{code:`object.oxor`,context}},with(schema,dep,value,state,prefs){let isPresent=internals$8.isPresent(dep.options);for(let peer of dep.peers)if(isPresent(peer.resolve(value,state,prefs,null,{shadow:!1}))===!1)return{code:`object.with`,context:{main:dep.key.key,mainWithLabel:internals$8.keysToLabels(schema,dep.key.key),peer:peer.key,peerWithLabel:internals$8.keysToLabels(schema,peer.key)}}},without(schema,dep,value,state,prefs){let isPresent=internals$8.isPresent(dep.options);for(let peer of dep.peers)if(isPresent(peer.resolve(value,state,prefs,null,{shadow:!1})))return{code:`object.without`,context:{main:dep.key.key,mainWithLabel:internals$8.keysToLabels(schema,dep.key.key),peer:peer.key,peerWithLabel:internals$8.keysToLabels(schema,peer.key)}}},xor(schema,dep,value,state,prefs){let present=[],isPresent=internals$8.isPresent(dep.options);for(let peer of dep.peers)isPresent(peer.resolve(value,state,prefs,null,{shadow:!1}))&&present.push(peer.key);if(present.length===1)return;let context={peers:dep.paths,peersWithLabels:internals$8.keysToLabels(schema,dep.paths)};return present.length===0?{code:`object.missing`,context}:(context.present=present,context.presentWithLabels=internals$8.keysToLabels(schema,present),{code:`object.xor`,context})}},internals$8.keysToLabels=function(schema,keys){return Array.isArray(keys)?keys.map(key=>schema.$_mapLabels(key)):schema.$_mapLabels(keys)},internals$8.isPresent=function(options){return typeof options.isPresent==`function`?options.isPresent:resolved=>resolved!==void 0},internals$8.rename=function(schema,value,state,prefs,errors){let renamed={};for(let rename of schema.$_terms.renames){let matches=[],pattern=typeof rename.from!=`string`;if(!pattern)Object.prototype.hasOwnProperty.call(value,rename.from)&&(value[rename.from]!==void 0||!rename.options.ignoreUndefined)&&matches.push(rename);else for(let from in value){if(value[from]===void 0&&rename.options.ignoreUndefined||from===rename.to)continue;let match$2=rename.from.exec(from);if(!match$2)continue;matches.push({from,to:rename.to,match:match$2})}for(let match$2 of matches){let from=match$2.from,to=match$2.to;if(to instanceof Template$3&&(to=to.render(value,state,prefs,match$2.match)),from===to)continue;if(!rename.options.multiple&&renamed[to]&&(errors.push(schema.$_createError(`object.rename.multiple`,value,{from,to,pattern},state,prefs)),prefs.abortEarly)||Object.prototype.hasOwnProperty.call(value,to)&&!rename.options.override&&!renamed[to]&&(errors.push(schema.$_createError(`object.rename.override`,value,{from,to,pattern},state,prefs)),prefs.abortEarly))return!1;value[from]===void 0?delete value[to]:value[to]=value[from],renamed[to]=!0,rename.options.alias||delete value[from]}}return!0},internals$8.unknown=function(schema,value,unprocessed,errors,state,prefs){if(schema.$_terms.patterns){let hasMatches=!1,matches=schema.$_terms.patterns.map(pattern=>{if(pattern.matches)return hasMatches=!0,[]}),ancestors=[value,...state.ancestors];for(let key of unprocessed){let item=value[key],path=[...state.path,key];for(let i$4=0;i$4<schema.$_terms.patterns.length;++i$4){let pattern=schema.$_terms.patterns[i$4];if(pattern.regex){let match$2=pattern.regex.test(key);if(state.mainstay.tracer.debug(state,`rule`,`pattern.${i$4}`,match$2?`pass`:`error`),!match$2)continue}else if(!pattern.schema.$_match(key,state.nest(pattern.schema,`pattern.${i$4}`),prefs))continue;unprocessed.delete(key);let localState=state.localize(path,ancestors,{schema:pattern.rule,key}),result=pattern.rule.$_validate(item,localState,prefs);if(result.errors){if(prefs.abortEarly)return{value,errors:result.errors};errors.push(...result.errors)}if(pattern.matches&&matches[i$4].push(key),value[key]=result.value,!pattern.fallthrough)break}}if(hasMatches)for(let i$4=0;i$4<matches.length;++i$4){let match$2=matches[i$4];if(!match$2)continue;let stpm=schema.$_terms.patterns[i$4].matches,localState=state.localize(state.path,ancestors,stpm),result=stpm.$_validate(match$2,localState,prefs);if(result.errors){let details=Errors$3.details(result.errors,{override:!1});details.matches=match$2;let report=schema.$_createError(`object.pattern.match`,value,details,state,prefs);if(prefs.abortEarly)return{value,errors:report};errors.push(report)}}}if(!unprocessed.size||!schema.$_terms.keys&&!schema.$_terms.patterns)return;if(prefs.stripUnknown&&schema._flags.unknown===void 0||prefs.skipFunctions){let stripUnknown=prefs.stripUnknown?prefs.stripUnknown===!0?!0:!!prefs.stripUnknown.objects:!1;for(let key of unprocessed)stripUnknown?(delete value[key],unprocessed.delete(key)):typeof value[key]==`function`&&unprocessed.delete(key)}let forbidUnknown=!Common$7.default(schema._flags.unknown,prefs.allowUnknown);if(forbidUnknown)for(let unprocessedKey of unprocessed){let localState=state.localize([...state.path,unprocessedKey],[]),report=schema.$_createError(`object.unknown`,value[unprocessedKey],{child:unprocessedKey},localState,prefs,{flags:!1});if(prefs.abortEarly)return{value,errors:report};errors.push(report)}},internals$8.Dependency=class{constructor(rel,key,peers,paths,options){this.rel=rel,this.key=key,this.peers=peers,this.paths=paths,this.options=options}describe(){let desc$1={rel:this.rel,peers:this.paths};return this.key!==null&&(desc$1.key=this.key.key),this.peers[0].separator!==`.`&&(desc$1.options={...desc$1.options,separator:this.peers[0].separator}),this.options.isPresent&&(desc$1.options={...desc$1.options,isPresent:this.options.isPresent}),desc$1}},internals$8.Keys=class extends Array{concat(source){let result=this.slice(),keys=new Map;for(let i$4=0;i$4<result.length;++i$4)keys.set(result[i$4].key,i$4);for(let item of source){let key=item.key,pos=keys.get(key);pos===void 0?result.push(item):result[pos]={key,schema:result[pos].schema.concat(item.schema)}}return result}}}),require_function=__commonJSMin((exports,module)=>{let{assert:assert$10}=require_lib$4(),Keys$1=require_keys();module.exports=Keys$1.extend({type:`function`,properties:{typeof:`function`},rules:{arity:{method(n$2){return assert$10(Number.isSafeInteger(n$2)&&n$2>=0,`n must be a positive integer`),this.$_addRule({name:`arity`,args:{n:n$2}})},validate(value,helpers,{n:n$2}){return value.length===n$2?value:helpers.error(`function.arity`,{n:n$2})}},class:{method(){return this.$_addRule(`class`)},validate(value,helpers){return/^\s*class\s/.test(value.toString())?value:helpers.error(`function.class`,{value})}},minArity:{method(n$2){return assert$10(Number.isSafeInteger(n$2)&&n$2>0,`n must be a strict positive integer`),this.$_addRule({name:`minArity`,args:{n:n$2}})},validate(value,helpers,{n:n$2}){return value.length>=n$2?value:helpers.error(`function.minArity`,{n:n$2})}},maxArity:{method(n$2){return assert$10(Number.isSafeInteger(n$2)&&n$2>=0,`n must be a positive integer`),this.$_addRule({name:`maxArity`,args:{n:n$2}})},validate(value,helpers,{n:n$2}){return value.length<=n$2?value:helpers.error(`function.maxArity`,{n:n$2})}}},messages:{"function.arity":`{{#label}} must have an arity of {{#n}}`,"function.class":`{{#label}} must be a class`,"function.maxArity":`{{#label}} must have an arity lesser or equal to {{#n}}`,"function.minArity":`{{#label}} must have an arity greater or equal to {{#n}}`}})}),require_link=__commonJSMin((exports,module)=>{let{assert:assert$9}=require_lib$4(),Any$4=require_any(),Common$6=require_common(),Compile$2=require_compile(),Errors$2=require_errors(),internals$7={};module.exports=Any$4.extend({type:`link`,properties:{schemaChain:!0},terms:{link:{init:null,manifest:`single`,register:!1}},args(schema,ref){return schema.ref(ref)},validate(value,{schema,state,prefs}){assert$9(schema.$_terms.link,`Uninitialized link schema`);let linked=internals$7.generate(schema,value,state,prefs),ref=schema.$_terms.link[0].ref;return linked.$_validate(value,state.nest(linked,`link:${ref.display}:${linked.type}`),prefs)},generate(schema,value,state,prefs){return internals$7.generate(schema,value,state,prefs)},rules:{ref:{method(ref){assert$9(!this.$_terms.link,`Cannot reinitialize schema`),ref=Compile$2.ref(ref),assert$9(ref.type===`value`||ref.type===`local`,`Invalid reference type:`,ref.type),assert$9(ref.type===`local`||ref.ancestor===`root`||ref.ancestor>0,`Link cannot reference itself`);let obj=this.clone();return obj.$_terms.link=[{ref}],obj}},relative:{method(enabled=!0){return this.$_setFlag(`relative`,enabled)}}},overrides:{concat(source){assert$9(this.$_terms.link,`Uninitialized link schema`),assert$9(Common$6.isSchema(source),`Invalid schema object`),assert$9(source.type!==`link`,`Cannot merge type link with another link`);let obj=this.clone();return obj.$_terms.whens||(obj.$_terms.whens=[]),obj.$_terms.whens.push({concat:source}),obj.$_mutateRebuild()}},manifest:{build(obj,desc$1){return assert$9(desc$1.link,`Invalid link description missing link`),obj.ref(desc$1.link)}}}),internals$7.generate=function(schema,value,state,prefs){let linked=state.mainstay.links.get(schema);if(linked)return linked._generate(value,state,prefs).schema;let ref=schema.$_terms.link[0].ref,{perspective,path}=internals$7.perspective(ref,state);internals$7.assert(perspective,`which is outside of schema boundaries`,ref,schema,state,prefs);try{linked=path.length?perspective.$_reach(path):perspective}catch{internals$7.assert(!1,`to non-existing schema`,ref,schema,state,prefs)}return internals$7.assert(linked.type!==`link`,`which is another link`,ref,schema,state,prefs),schema._flags.relative||state.mainstay.links.set(schema,linked),linked._generate(value,state,prefs).schema},internals$7.perspective=function(ref,state){if(ref.type===`local`){for(let{schema,key}of state.schemas){let id=schema._flags.id||key;if(id===ref.path[0])return{perspective:schema,path:ref.path.slice(1)};if(schema.$_terms.shared){for(let shared of schema.$_terms.shared)if(shared._flags.id===ref.path[0])return{perspective:shared,path:ref.path.slice(1)}}}return{perspective:null,path:null}}return ref.ancestor===`root`?{perspective:state.schemas[state.schemas.length-1].schema,path:ref.path}:{perspective:state.schemas[ref.ancestor]&&state.schemas[ref.ancestor].schema,path:ref.path}},internals$7.assert=function(condition,message,ref,schema,state,prefs){condition||assert$9(!1,`"${Errors$2.label(schema._flags,state,prefs)}" contains link reference "${ref.display}" ${message}`)}}),require_number=__commonJSMin((exports,module)=>{let{assert:assert$8}=require_lib$4(),Any$3=require_any(),Common$5=require_common(),internals$6={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/,decimalPlaces(value){let str=value.toString(),dindex=str.indexOf(`.`),eindex=str.indexOf(`e`);return(dindex<0?0:(eindex<0?str.length:eindex)-dindex-1)+(eindex<0?0:Math.max(0,-parseInt(str.slice(eindex+1))))}};module.exports=Any$3.extend({type:`number`,flags:{unsafe:{default:!1}},coerce:{from:`string`,method(value,{schema,error}){let matches=value.match(internals$6.numberRx);if(!matches)return;value=value.trim();let result={value:parseFloat(value)};if(result.value===0&&(result.value=0),!schema._flags.unsafe)if(value.match(/e/i)){if(internals$6.extractSignificantDigits(value)!==internals$6.extractSignificantDigits(String(result.value)))return result.errors=error(`number.unsafe`),result}else{let string=result.value.toString();if(string.match(/e/i))return result;if(string!==internals$6.normalizeDecimal(value))return result.errors=error(`number.unsafe`),result}return result}},validate(value,{schema,error,prefs}){if(value===1/0||value===-1/0)return{value,errors:error(`number.infinity`)};if(!Common$5.isNumber(value))return{value,errors:error(`number.base`)};let result={value};if(prefs.convert){let rule=schema.$_getRule(`precision`);if(rule){let precision=10**rule.args.limit;result.value=Math.round(result.value*precision)/precision}}return result.value===0&&(result.value=0),!schema._flags.unsafe&&(value>2**53-1||value<-(2**53-1))&&(result.errors=error(`number.unsafe`)),result},rules:{compare:{method:!1,validate(value,helpers,{limit},{name:name$1,operator,args:args$1}){return Common$5.compare(value,limit,operator)?value:helpers.error(`number.`+name$1,{limit:args$1.limit,value})},args:[{name:`limit`,ref:!0,assert:Common$5.isNumber,message:`must be a number`}]},greater:{method(limit){return this.$_addRule({name:`greater`,method:`compare`,args:{limit},operator:`>`})}},integer:{method(){return this.$_addRule(`integer`)},validate(value,helpers){return Math.trunc(value)-value===0?value:helpers.error(`number.integer`)}},less:{method(limit){return this.$_addRule({name:`less`,method:`compare`,args:{limit},operator:`<`})}},max:{method(limit){return this.$_addRule({name:`max`,method:`compare`,args:{limit},operator:`<=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`compare`,args:{limit},operator:`>=`})}},multiple:{method(base){let baseDecimalPlace=typeof base==`number`?internals$6.decimalPlaces(base):null,pfactor=10**baseDecimalPlace;return this.$_addRule({name:`multiple`,args:{base,baseDecimalPlace,pfactor}})},validate(value,helpers,{base,baseDecimalPlace,pfactor},options){let valueDecimalPlace=internals$6.decimalPlaces(value);return valueDecimalPlace>baseDecimalPlace?helpers.error(`number.multiple`,{multiple:options.args.base,value}):Math.round(pfactor*value)%Math.round(pfactor*base)===0?value:helpers.error(`number.multiple`,{multiple:options.args.base,value})},args:[{name:`base`,ref:!0,assert:value=>typeof value==`number`&&isFinite(value)&&value>0,message:`must be a positive number`},`baseDecimalPlace`,`pfactor`],multi:!0},negative:{method(){return this.sign(`negative`)}},port:{method(){return this.$_addRule(`port`)},validate(value,helpers){return Number.isSafeInteger(value)&&value>=0&&value<=65535?value:helpers.error(`number.port`)}},positive:{method(){return this.sign(`positive`)}},precision:{method(limit){return assert$8(Number.isSafeInteger(limit),`limit must be an integer`),this.$_addRule({name:`precision`,args:{limit}})},validate(value,helpers,{limit}){let places=value.toString().match(internals$6.precisionRx),decimals=Math.max((places[1]?places[1].length:0)-(places[2]?parseInt(places[2],10):0),0);return decimals<=limit?value:helpers.error(`number.precision`,{limit,value})},convert:!0},sign:{method(sign$1){return assert$8([`negative`,`positive`].includes(sign$1),`Invalid sign`,sign$1),this.$_addRule({name:`sign`,args:{sign:sign$1}})},validate(value,helpers,{sign:sign$1}){return sign$1===`negative`&&value<0||sign$1===`positive`&&value>0?value:helpers.error(`number.${sign$1}`)}},unsafe:{method(enabled=!0){return assert$8(typeof enabled==`boolean`,`enabled must be a boolean`),this.$_setFlag(`unsafe`,enabled)}}},cast:{string:{from:value=>typeof value==`number`,to(value,helpers){return value.toString()}}},messages:{"number.base":`{{#label}} must be a number`,"number.greater":`{{#label}} must be greater than {{#limit}}`,"number.infinity":`{{#label}} cannot be infinity`,"number.integer":`{{#label}} must be an integer`,"number.less":`{{#label}} must be less than {{#limit}}`,"number.max":`{{#label}} must be less than or equal to {{#limit}}`,"number.min":`{{#label}} must be greater than or equal to {{#limit}}`,"number.multiple":`{{#label}} must be a multiple of {{#multiple}}`,"number.negative":`{{#label}} must be a negative number`,"number.port":`{{#label}} must be a valid port`,"number.positive":`{{#label}} must be a positive number`,"number.precision":`{{#label}} must have no more than {{#limit}} decimal places`,"number.unsafe":`{{#label}} must be a safe number`}}),internals$6.extractSignificantDigits=function(value){return value.replace(internals$6.exponentialPartRegex,``).replace(internals$6.dotRegex,``).replace(internals$6.trailingZerosRegex,``).replace(internals$6.leadingSignAndZerosRegex,``)},internals$6.normalizeDecimal=function(str){return str=str.replace(/^\+/,``).replace(/\.0*$/,``).replace(/^(-?)\.([^\.]*)$/,`$10.$2`).replace(/^(-?)0+([0-9])/,`$1$2`),str.includes(`.`)&&str.endsWith(`0`)&&(str=str.replace(/0+$/,``)),str===`-0`?`0`:str}}),require_object=__commonJSMin((exports,module)=>{let Keys=require_keys();module.exports=Keys.extend({type:`object`,cast:{map:{from:value=>value&&typeof value==`object`,to(value,helpers){return new Map(Object.entries(value))}}}})});function toErr(msg,code$2,err$1){throw err$1=TypeError(msg),err$1.code=code$2,err$1}function invalid(str){toErr(`Invalid URL: `+str,`ERR_INVALID_URL`)}function args(both,len$2,x$1,y){x$1=`The "name" `,y=`argument`,both&&(x$1+=`and "value" `,y+=`s`),len$2<++both&&toErr(x$1+y+` must be specified`,`ERR_MISSING_ARGS`)}function toIter(arr,supported){var val,j$1=0,iter={next:function(){return val=arr[j$1++],{value:val,done:j$1>arr.length}}};return supported&&(iter[Symbol.iterator]=function(){return iter}),iter}function URLSearchParams(init,ref){var k,i$4,x$1,supp,tmp,$=this,list=[];try{supp=!!Symbol.iterator}catch{supp=!1}if(init){if(init.keys&&init.getAll)init.forEach(function(v,k$1){toAppend(k$1,v)});else if(init.pop)for(i$4=0;i$4<init.length;i$4++)toAppend.apply(0,init[i$4]);else if(typeof init==`object`)for(k in init)toSet(k,init[k]);else if(typeof init==`string`)for(init[0]==`?`&&(init=init.substring(1)),x$1=decodeURIComponent(init).split(`&`);k=x$1.shift();)i$4=k.indexOf(`=`),~i$4||(i$4=k.length),toAppend(k.substring(0,i$4),k.substring(++i$4))}function toSet(key,val){for(args(1,arguments.length),val=String(val),x$1=!1,i$4=list.length;i$4--;)tmp=list[i$4],tmp[0]==key&&(x$1?list.splice(i$4,1):(tmp[1]=val,x$1=!0));x$1||list.push([key,val]),cascade()}function toAppend(key,val){args(1,arguments.length),list.push([key,String(val)]),cascade()}function toStr$4(){for(tmp=``,i$4=0;i$4<list.length;i$4++)tmp&&(tmp+=`&`),tmp+=encodeURIComponent(list[i$4][0])+`=`+encodeURIComponent(list[i$4][1]);return tmp.replace(/%20/g,`+`)}function cascade(){ref&&(ref.search=list.length?`?`+toStr$4().replace(/=$/,``):``)}return $.append=toAppend,$.delete=function(key){for(args(0,arguments.length),i$4=list.length;i$4--;)list[i$4][0]==key&&list.splice(i$4,1);cascade()},$.entries=function(){return toIter(list,supp)},$.forEach=function(fn$1){for(typeof fn$1!=`function`&&toErr(`Callback must be a function`,`ERR_INVALID_CALLBACK`),i$4=0;i$4<list.length;i$4++)fn$1(list[i$4][1],list[i$4][0])},$.get=function(key){for(args(0,arguments.length),i$4=0;i$4<list.length;i$4++)if(list[i$4][0]==key)return list[i$4][1];return null},$.getAll=function(key){for(args(0,arguments.length),tmp=[],i$4=0;i$4<list.length;i$4++)list[i$4][0]==key&&tmp.push(list[i$4][1]);return tmp},$.has=function(key){for(args(0,arguments.length),i$4=0;i$4<list.length;i$4++)if(list[i$4][0]==key)return!0;return!1},$.keys=function(){for(tmp=[],i$4=0;i$4<list.length;i$4++)tmp.push(list[i$4][0]);return toIter(tmp,supp)},$.set=toSet,$.sort=function(){for(x$1=[],tmp=[],i$4=0;i$4<list.length;x$1.push(list[i$4++][0]));for(x$1.sort();k=x$1.shift();)for(i$4=0;i$4<list.length;i$4++)if(list[i$4][0]==k){tmp.push(list.splice(i$4,1).shift());break}list=tmp,cascade()},$.toString=toStr$4,$.values=function(){for(tmp=[],i$4=0;i$4<list.length;i$4++)tmp.push(list[i$4][1]);return toIter(tmp,supp)},supp&&($[Symbol.iterator]=$.entries),$}function URL$1(url,base){var tmp=document.createElement(`a`),link=document.createElement(`a`),input=document.createElement(`input`),segs,usp,$=this,rgx=/(blob|ftp|wss?|https?):/;if(input.type=`url`,base=String(base||``).trim(),(input.value=base)&&!input.checkValidity())return invalid(base);if(url=String(url).trim(),input.value=url||0,input.checkValidity())link.href=url;else if(base)link.href=base,url&&(usp=url.match(/^\/+/),usp&&usp[0].length==2?link.href=link.protocol+url:/[?#]/.test(url[0])?link.href+=url:url[0]==`/`||link.pathname==`/`?link.href=link.origin+`/`+url.replace(/^\/+/,``):(segs=link.pathname.split(`/`),base=url.replace(/^(\.\/)?/,``).split(`../`),link.href=link.origin+segs.slice(0,Math.max(1,segs.length-base.length)).concat(base.pop()).join(`/`)));else return invalid(url);function proxy(key){return tmp.href=link.href,tmp.protocol=`http:`,key==`protocol`||key==`href`||rgx.test(link.protocol)?link[key]:key==`origin`?rgx.test(link.protocol)?link[key]:`null`:tmp[key]}function block$1(key,readonly,getter,out){return out={enumerable:!0},readonly||(out.set=function(val){val!=null&&(link[key]=String(val),(key==`href`||key==`search`)&&(usp=new URLSearchParams(link.search,link)))}),out.get=getter||function(){return proxy(key)},out}return usp=new URLSearchParams(link.search,link),$.toString=$.toJSON=link.toString.bind(link),Object.defineProperties($,{href:block$1(`href`),protocol:block$1(`protocol`),username:block$1(`username`),password:block$1(`password`),hostname:block$1(`hostname`),host:block$1(`host`),port:block$1(`port`),search:block$1(`search`),hash:block$1(`hash`),pathname:block$1(`pathname`),origin:block$1(`origin`,1),searchParams:block$1(`searchParams`,1,function(){return usp})})}const errorCodes={EMPTY_STRING:`Address must be a non-empty string`,FORBIDDEN_UNICODE:`Address contains forbidden Unicode characters`,MULTIPLE_AT_CHAR:`Address cannot contain more than one @ character`,MISSING_AT_CHAR:`Address must contain one @ character`,EMPTY_LOCAL:`Address local part cannot be empty`,ADDRESS_TOO_LONG:`Address too long`,LOCAL_TOO_LONG:`Address local part too long`,EMPTY_LOCAL_SEGMENT:`Address local part contains empty dot-separated segment`,INVALID_LOCAL_CHARS:`Address local part contains invalid character`,DOMAIN_NON_EMPTY_STRING:`Domain must be a non-empty string`,DOMAIN_TOO_LONG:`Domain too long`,DOMAIN_INVALID_UNICODE_CHARS:`Domain contains forbidden Unicode characters`,DOMAIN_INVALID_CHARS:`Domain contains invalid character`,DOMAIN_INVALID_TLDS_CHARS:`Domain contains invalid tld character`,DOMAIN_SEGMENTS_COUNT:`Domain lacks the minimum required number of segments`,DOMAIN_SEGMENTS_COUNT_MAX:`Domain contains too many segments`,DOMAIN_FORBIDDEN_TLDS:`Domain uses forbidden TLD`,DOMAIN_EMPTY_SEGMENT:`Domain contains empty dot-separated segment`,DOMAIN_LONG_SEGMENT:`Domain contains dot-separated segment that is too long`};function errorCode(code$2){return{code:code$2,error:errorCodes[code$2]}}function isTldsAllow(tlds$1){return!!tlds$1.allow}function analyzeDomain(domain,options={}){if(!domain)return errorCode(`DOMAIN_NON_EMPTY_STRING`);if(typeof domain!=`string`)throw Error(`Invalid input: domain must be a string`);if(domain.length>256)return errorCode(`DOMAIN_TOO_LONG`);let ascii$2=!NON_ASCII_RX$1.test(domain);if(!ascii$2){if(options.allowUnicode===!1)return errorCode(`DOMAIN_INVALID_UNICODE_CHARS`);domain=domain.normalize(`NFC`)}if(DOMAIN_CONTROL_RX.test(domain))return errorCode(`DOMAIN_INVALID_CHARS`);domain=punycode(domain),options.allowFullyQualified&&domain[domain.length-1]===`.`&&(domain=domain.slice(0,-1));let minDomainSegments=options.minDomainSegments||MIN_DOMAIN_SEGMENTS,segments=domain.split(`.`);if(segments.length<minDomainSegments)return errorCode(`DOMAIN_SEGMENTS_COUNT`);if(options.maxDomainSegments&&segments.length>options.maxDomainSegments)return errorCode(`DOMAIN_SEGMENTS_COUNT_MAX`);let tlds$1=options.tlds;if(tlds$1){let tld=segments[segments.length-1].toLowerCase();if(isTldsAllow(tlds$1)){if(!tlds$1.allow.has(tld))return errorCode(`DOMAIN_FORBIDDEN_TLDS`)}else if(tlds$1.deny.has(tld))return errorCode(`DOMAIN_FORBIDDEN_TLDS`)}for(let i$4=0;i$4<segments.length;++i$4){let segment=segments[i$4];if(!segment.length)return errorCode(`DOMAIN_EMPTY_SEGMENT`);if(segment.length>63)return errorCode(`DOMAIN_LONG_SEGMENT`);if(i$4<segments.length-1){if(options.allowUnderscore){if(!DOMAIN_UNDERSCORE_SEGMENT_RX.test(segment))return errorCode(`DOMAIN_INVALID_CHARS`)}else if(!DOMAIN_SEGMENT_RX.test(segment))return errorCode(`DOMAIN_INVALID_CHARS`)}else if(!TLD_SEGMENT_RX.test(segment))return errorCode(`DOMAIN_INVALID_TLDS_CHARS`)}return null}function isDomainValid$1(domain,options){return!analyzeDomain(domain,options)}function punycode(domain){domain.includes(`%`)&&(domain=domain.replace(/%/g,`%25`));try{return new URL_IMPL(`http://${domain}`).host}catch{return domain}}function validateDomainOptions(options){if(options){if(typeof options.tlds!=`object`)throw Error(`Invalid options: tlds must be a boolean or an object`);if(isTldsAllow(options.tlds)){if(!(options.tlds.allow instanceof Set))throw Error(`Invalid options: tlds.allow must be a Set object or true`);if(options.tlds.deny)throw Error(`Invalid options: cannot specify both tlds.allow and tlds.deny lists`)}else if(!(options.tlds.deny instanceof Set))throw Error(`Invalid options: tlds.deny must be a Set object`)}}var MIN_DOMAIN_SEGMENTS,NON_ASCII_RX$1,DOMAIN_CONTROL_RX,TLD_SEGMENT_RX,DOMAIN_SEGMENT_RX,DOMAIN_UNDERSCORE_SEGMENT_RX,URL_IMPL,init_domain=__esmMin(()=>{MIN_DOMAIN_SEGMENTS=2,NON_ASCII_RX$1=/[^\x00-\x7f]/,DOMAIN_CONTROL_RX=/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,TLD_SEGMENT_RX=/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,DOMAIN_SEGMENT_RX=/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,DOMAIN_UNDERSCORE_SEGMENT_RX=/^[a-zA-Z0-9_](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL_IMPL=URL$1||URL}),require_shams$1=__commonJSMin((exports,module)=>{module.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var obj={},sym=Symbol(`test`),symObj=Object(sym);if(typeof sym==`string`||Object.prototype.toString.call(sym)!==`[object Symbol]`||Object.prototype.toString.call(symObj)!==`[object Symbol]`)return!1;var symVal=42;for(var _ in obj[sym]=symVal,obj)return!1;if(typeof Object.keys==`function`&&Object.keys(obj).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(obj).length!==0)return!1;var syms=Object.getOwnPropertySymbols(obj);if(syms.length!==1||syms[0]!==sym||!Object.prototype.propertyIsEnumerable.call(obj,sym))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var descriptor=Object.getOwnPropertyDescriptor(obj,sym);if(descriptor.value!==symVal||descriptor.enumerable!==!0)return!1}return!0}}),require_shams=__commonJSMin((exports,module)=>{var hasSymbols$1=require_shams$1();module.exports=function(){return hasSymbols$1()&&!!Symbol.toStringTag}}),require_es_object_atoms=__commonJSMin((exports,module)=>{module.exports=Object}),require_es_errors=__commonJSMin((exports,module)=>{module.exports=Error}),require_eval=__commonJSMin((exports,module)=>{module.exports=EvalError}),require_range$1=__commonJSMin((exports,module)=>{module.exports=RangeError}),require_ref$1=__commonJSMin((exports,module)=>{module.exports=ReferenceError}),require_syntax=__commonJSMin((exports,module)=>{module.exports=SyntaxError}),require_type=__commonJSMin((exports,module)=>{module.exports=TypeError}),require_uri=__commonJSMin((exports,module)=>{module.exports=URIError}),require_abs=__commonJSMin((exports,module)=>{module.exports=Math.abs}),require_floor=__commonJSMin((exports,module)=>{module.exports=Math.floor}),require_max=__commonJSMin((exports,module)=>{module.exports=Math.max}),require_min=__commonJSMin((exports,module)=>{module.exports=Math.min}),require_pow=__commonJSMin((exports,module)=>{module.exports=Math.pow}),require_round=__commonJSMin((exports,module)=>{module.exports=Math.round}),require_isNaN=__commonJSMin((exports,module)=>{module.exports=Number.isNaN||function(a){return a!==a}}),require_sign=__commonJSMin((exports,module)=>{var $isNaN=require_isNaN();module.exports=function(number){return $isNaN(number)||number===0?number:number<0?-1:1}}),require_gOPD=__commonJSMin((exports,module)=>{module.exports=Object.getOwnPropertyDescriptor}),require_gopd=__commonJSMin((exports,module)=>{var $gOPD$1=require_gOPD();if($gOPD$1)try{$gOPD$1([],`length`)}catch{$gOPD$1=null}module.exports=$gOPD$1}),require_es_define_property=__commonJSMin((exports,module)=>{var $defineProperty$4=Object.defineProperty||!1;if($defineProperty$4)try{$defineProperty$4({},`a`,{value:1})}catch{$defineProperty$4=!1}module.exports=$defineProperty$4}),require_has_symbols=__commonJSMin((exports,module)=>{var origSymbol=typeof Symbol<`u`&&Symbol,hasSymbolSham=require_shams$1();module.exports=function(){return typeof origSymbol!=`function`||typeof Symbol!=`function`||typeof origSymbol(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:hasSymbolSham()}}),require_Reflect_getPrototypeOf=__commonJSMin((exports,module)=>{module.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}),require_Object_getPrototypeOf=__commonJSMin((exports,module)=>{var $Object$2=require_es_object_atoms();module.exports=$Object$2.getPrototypeOf||null}),require_implementation=__commonJSMin((exports,module)=>{var ERROR_MESSAGE=`Function.prototype.bind called on incompatible `,toStr$3=Object.prototype.toString,max$2=Math.max,funcType=`[object Function]`,concatty=function(a,b){for(var arr=[],i$4=0;i$4<a.length;i$4+=1)arr[i$4]=a[i$4];for(var j$1=0;j$1<b.length;j$1+=1)arr[j$1+a.length]=b[j$1];return arr},slicy=function(arrLike,offset$2){for(var arr=[],i$4=offset$2||0,j$1=0;i$4<arrLike.length;i$4+=1,j$1+=1)arr[j$1]=arrLike[i$4];return arr},joiny=function(arr,joiner){for(var str=``,i$4=0;i$4<arr.length;i$4+=1)str+=arr[i$4],i$4+1<arr.length&&(str+=joiner);return str};module.exports=function(that){var target=this;if(typeof target!=`function`||toStr$3.apply(target)!==funcType)throw TypeError(ERROR_MESSAGE+target);for(var args$1=slicy(arguments,1),bound,binder=function(){if(this instanceof bound){var result=target.apply(this,concatty(args$1,arguments));return Object(result)===result?result:this}return target.apply(that,concatty(args$1,arguments))},boundLength=max$2(0,target.length-args$1.length),boundArgs=[],i$4=0;i$4<boundLength;i$4++)boundArgs[i$4]=`$`+i$4;if(bound=Function(`binder`,`return function (`+joiny(boundArgs,`,`)+`){ return binder.apply(this,arguments); }`)(binder),target.prototype){var Empty=function(){};Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null}return bound}}),require_function_bind=__commonJSMin((exports,module)=>{var implementation=require_implementation();module.exports=Function.prototype.bind||implementation}),require_functionCall=__commonJSMin((exports,module)=>{module.exports=Function.prototype.call}),require_functionApply=__commonJSMin((exports,module)=>{module.exports=Function.prototype.apply}),require_reflectApply=__commonJSMin((exports,module)=>{module.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}),require_actualApply=__commonJSMin((exports,module)=>{var bind$4=require_function_bind(),$apply$2=require_functionApply(),$call$2=require_functionCall(),$reflectApply=require_reflectApply();module.exports=$reflectApply||bind$4.call($call$2,$apply$2)}),require_call_bind_apply_helpers=__commonJSMin((exports,module)=>{var bind$3=require_function_bind(),$TypeError$4=require_type(),$call$1=require_functionCall(),$actualApply=require_actualApply();module.exports=function(args$1){if(args$1.length<1||typeof args$1[0]!=`function`)throw new $TypeError$4(`a function is required`);return $actualApply(bind$3,$call$1,args$1)}}),require_get=__commonJSMin((exports,module)=>{var callBind$1=require_call_bind_apply_helpers(),gOPD$3=require_gopd(),hasProtoAccessor;try{hasProtoAccessor=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var desc=!!hasProtoAccessor&&gOPD$3&&gOPD$3(Object.prototype,`__proto__`),$Object$1=Object,$getPrototypeOf=$Object$1.getPrototypeOf;module.exports=desc&&typeof desc.get==`function`?callBind$1([desc.get]):typeof $getPrototypeOf==`function`?function(value){return $getPrototypeOf(value==null?value:$Object$1(value))}:!1}),require_get_proto=__commonJSMin((exports,module)=>{var reflectGetProto=require_Reflect_getPrototypeOf(),originalGetProto=require_Object_getPrototypeOf(),getDunderProto=require_get();module.exports=reflectGetProto?function(O){return reflectGetProto(O)}:originalGetProto?function(O){if(!O||typeof O!=`object`&&typeof O!=`function`)throw TypeError(`getProto: not an object`);return originalGetProto(O)}:getDunderProto?function(O){return getDunderProto(O)}:null}),require_hasown=__commonJSMin((exports,module)=>{var call=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind$2=require_function_bind();module.exports=bind$2.call(call,$hasOwn)}),require_get_intrinsic=__commonJSMin((exports,module)=>{var undefined$1,$Object=require_es_object_atoms(),$Error=require_es_errors(),$EvalError=require_eval(),$RangeError=require_range$1(),$ReferenceError=require_ref$1(),$SyntaxError$1=require_syntax(),$TypeError$3=require_type(),$URIError=require_uri(),abs=require_abs(),floor=require_floor(),max$1=require_max(),min=require_min(),pow=require_pow(),round$1=require_round(),sign=require_sign(),$Function=Function,getEvalledConstructor=function(expressionSyntax){try{return $Function(`"use strict"; return (`+expressionSyntax+`).constructor;`)()}catch{}},$gOPD=require_gopd(),$defineProperty$3=require_es_define_property(),throwTypeError=function(){throw new $TypeError$3},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,`callee`).get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=require_has_symbols()(),getProto$2=require_get_proto(),$ObjectGPO=require_Object_getPrototypeOf(),$ReflectGPO=require_Reflect_getPrototypeOf(),$apply$1=require_functionApply(),$call=require_functionCall(),needsEval={},TypedArray=typeof Uint8Array>`u`||!getProto$2?undefined$1:getProto$2(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto$2?getProto$2([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>`u`?undefined$1:Atomics,"%BigInt%":typeof BigInt>`u`?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float16Array%":typeof Float16Array>`u`?undefined$1:Float16Array,"%Float32Array%":typeof Float32Array>`u`?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>`u`?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>`u`?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>`u`?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>`u`?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto$2?getProto$2(getProto$2([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON==`object`?JSON:undefined$1,"%Map%":typeof Map>`u`?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>`u`||!hasSymbols||!getProto$2?undefined$1:getProto$2(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":$Object,"%Object.getOwnPropertyDescriptor%":$gOPD,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?undefined$1:Promise,"%Proxy%":typeof Proxy>`u`?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>`u`?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>`u`||!hasSymbols||!getProto$2?undefined$1:getProto$2(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto$2?getProto$2(``[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$3,"%Uint8Array%":typeof Uint8Array>`u`?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>`u`?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>`u`?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>`u`?undefined$1:WeakSet,"%Function.prototype.call%":$call,"%Function.prototype.apply%":$apply$1,"%Object.defineProperty%":$defineProperty$3,"%Object.getPrototypeOf%":$ObjectGPO,"%Math.abs%":abs,"%Math.floor%":floor,"%Math.max%":max$1,"%Math.min%":min,"%Math.pow%":pow,"%Math.round%":round$1,"%Math.sign%":sign,"%Reflect.getPrototypeOf%":$ReflectGPO};if(getProto$2)try{null.error}catch(e){var errorProto=getProto$2(getProto$2(e));INTRINSICS[`%Error.prototype%`]=errorProto}var doEval=function doEval$1(name$1){var value;if(name$1===`%AsyncFunction%`)value=getEvalledConstructor(`async function () {}`);else if(name$1===`%GeneratorFunction%`)value=getEvalledConstructor(`function* () {}`);else if(name$1===`%AsyncGeneratorFunction%`)value=getEvalledConstructor(`async function* () {}`);else if(name$1===`%AsyncGenerator%`){var fn$1=doEval$1(`%AsyncGeneratorFunction%`);fn$1&&(value=fn$1.prototype)}else if(name$1===`%AsyncIteratorPrototype%`){var gen=doEval$1(`%AsyncGenerator%`);gen&&getProto$2&&(value=getProto$2(gen.prototype))}return INTRINSICS[name$1]=value,value},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},bind$1=require_function_bind(),hasOwn$1=require_hasown(),$concat=bind$1.call($call,Array.prototype.concat),$spliceApply=bind$1.call($apply$1,Array.prototype.splice),$replace=bind$1.call($call,String.prototype.replace),$strSlice=bind$1.call($call,String.prototype.slice),$exec$2=bind$1.call($call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(string){var first=$strSlice(string,0,1),last=$strSlice(string,-1);if(first===`%`&&last!==`%`)throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(last===`%`&&first!==`%`)throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var result=[];return $replace(string,rePropName,function(match$2,number,quote,subString){result[result.length]=quote?$replace(subString,reEscapeChar,`$1`):number||match$2}),result},getBaseIntrinsic=function(name$1,allowMissing){var intrinsicName=name$1,alias;if(hasOwn$1(LEGACY_ALIASES,intrinsicName)&&(alias=LEGACY_ALIASES[intrinsicName],intrinsicName=`%`+alias[0]+`%`),hasOwn$1(INTRINSICS,intrinsicName)){var value=INTRINSICS[intrinsicName];if(value===needsEval&&(value=doEval(intrinsicName)),value===void 0&&!allowMissing)throw new $TypeError$3(`intrinsic `+name$1+` exists, but is not available. Please file an issue!`);return{alias,name:intrinsicName,value}}throw new $SyntaxError$1(`intrinsic `+name$1+` does not exist!`)};module.exports=function(name$1,allowMissing){if(typeof name$1!=`string`||name$1.length===0)throw new $TypeError$3(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof allowMissing!=`boolean`)throw new $TypeError$3(`"allowMissing" argument must be a boolean`);if($exec$2(/^%?[^%]*%?$/,name$1)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var parts=stringToPath(name$1),intrinsicBaseName=parts.length>0?parts[0]:``,intrinsic=getBaseIntrinsic(`%`+intrinsicBaseName+`%`,allowMissing),intrinsicRealName=intrinsic.name,value=intrinsic.value,skipFurtherCaching=!1,alias=intrinsic.alias;alias&&(intrinsicBaseName=alias[0],$spliceApply(parts,$concat([0,1],alias)));for(var i$4=1,isOwn=!0;i$4<parts.length;i$4+=1){var part=parts[i$4],first=$strSlice(part,0,1),last=$strSlice(part,-1);if((first===`"`||first===`'`||first==="`"||last===`"`||last===`'`||last==="`")&&first!==last)throw new $SyntaxError$1(`property names with quotes must have matching quotes`);if((part===`constructor`||!isOwn)&&(skipFurtherCaching=!0),intrinsicBaseName+=`.`+part,intrinsicRealName=`%`+intrinsicBaseName+`%`,hasOwn$1(INTRINSICS,intrinsicRealName))value=INTRINSICS[intrinsicRealName];else if(value!=null){if(!(part in value)){if(!allowMissing)throw new $TypeError$3(`base intrinsic for `+name$1+` exists, but the property is not available.`);return}if($gOPD&&i$4+1>=parts.length){var desc$1=$gOPD(value,part);isOwn=!!desc$1,value=isOwn&&`get`in desc$1&&!(`originalValue`in desc$1.get)?desc$1.get:value[part]}else isOwn=hasOwn$1(value,part),value=value[part];isOwn&&!skipFurtherCaching&&(INTRINSICS[intrinsicRealName]=value)}}return value}}),require_call_bound=__commonJSMin((exports,module)=>{var GetIntrinsic$1=require_get_intrinsic(),callBindBasic$1=require_call_bind_apply_helpers(),$indexOf$1=callBindBasic$1([GetIntrinsic$1(`%String.prototype.indexOf%`)]);module.exports=function(name$1,allowMissing){var intrinsic=GetIntrinsic$1(name$1,!!allowMissing);return typeof intrinsic==`function`&&$indexOf$1(name$1,`.prototype.`)>-1?callBindBasic$1([intrinsic]):intrinsic}}),require_is_arguments=__commonJSMin((exports,module)=>{var hasToStringTag$4=require_shams()(),callBound$4=require_call_bound(),$toString$2=callBound$4(`Object.prototype.toString`),isStandardArguments=function(value){return hasToStringTag$4&&value&&typeof value==`object`&&Symbol.toStringTag in value?!1:$toString$2(value)===`[object Arguments]`},isLegacyArguments=function(value){return isStandardArguments(value)?!0:typeof value==`object`&&!!value&&`length`in value&&typeof value.length==`number`&&value.length>=0&&$toString$2(value)!==`[object Array]`&&`callee`in value&&$toString$2(value.callee)===`[object Function]`},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments,module.exports=supportsStandardArguments?isStandardArguments:isLegacyArguments}),require_is_regex=__commonJSMin((exports,module)=>{var callBound$3=require_call_bound(),hasToStringTag$3=require_shams()(),hasOwn=require_hasown(),gOPD$2=require_gopd(),fn;if(hasToStringTag$3){var $exec$1=callBound$3(`RegExp.prototype.exec`),isRegexMarker={},throwRegexMarker=function(){throw isRegexMarker},badStringifier={toString:throwRegexMarker,valueOf:throwRegexMarker};typeof Symbol.toPrimitive==`symbol`&&(badStringifier[Symbol.toPrimitive]=throwRegexMarker),fn=function(value){if(!value||typeof value!=`object`)return!1;var descriptor=gOPD$2(value,`lastIndex`),hasLastIndexDataProperty=descriptor&&hasOwn(descriptor,`value`);if(!hasLastIndexDataProperty)return!1;try{$exec$1(value,badStringifier)}catch(e){return e===isRegexMarker}}}else{var $toString$1=callBound$3(`Object.prototype.toString`),regexClass=`[object RegExp]`;fn=function(value){return!value||typeof value!=`object`&&typeof value!=`function`?!1:$toString$1(value)===regexClass}}module.exports=fn}),require_safe_regex_test=__commonJSMin((exports,module)=>{var callBound$2=require_call_bound(),isRegex=require_is_regex(),$exec=callBound$2(`RegExp.prototype.exec`),$TypeError$2=require_type();module.exports=function(regex){if(!isRegex(regex))throw new $TypeError$2("`regex` must be a RegExp");return function(s$2){return $exec(regex,s$2)!==null}}}),require_is_generator_function=__commonJSMin((exports,module)=>{var callBound$1=require_call_bound(),safeRegexTest=require_safe_regex_test(),isFnRegex=safeRegexTest(/^\s*(?:function)?\*/),hasToStringTag$2=require_shams()(),getProto$1=require_get_proto(),toStr$2=callBound$1(`Object.prototype.toString`),fnToStr$1=callBound$1(`Function.prototype.toString`),getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function(`return function*() {}`)()}catch{}},GeneratorFunction;module.exports=function(fn$1){if(typeof fn$1!=`function`)return!1;if(isFnRegex(fnToStr$1(fn$1)))return!0;if(!hasToStringTag$2){var str=toStr$2(fn$1);return str===`[object GeneratorFunction]`}if(!getProto$1)return!1;if(GeneratorFunction===void 0){var generatorFunc=getGeneratorFunc();GeneratorFunction=generatorFunc?getProto$1(generatorFunc):!1}return getProto$1(fn$1)===GeneratorFunction}}),require_is_callable=__commonJSMin((exports,module)=>{var fnToStr=Function.prototype.toString,reflectApply=typeof Reflect==`object`&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply==`function`&&typeof Object.defineProperty==`function`)try{badArrayLike=Object.defineProperty({},`length`,{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(_){_!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(value){try{var fnStr=fnToStr.call(value);return constructorRegex.test(fnStr)}catch{return!1}},tryFunctionObject=function(value){try{return isES6ClassFn(value)?!1:(fnToStr.call(value),!0)}catch{return!1}},toStr$1=Object.prototype.toString,objectClass=`[object Object]`,fnClass=`[object Function]`,genClass=`[object GeneratorFunction]`,ddaClass=`[object HTMLAllCollection]`,ddaClass2=`[object HTML document.all class]`,ddaClass3=`[object HTMLCollection]`,hasToStringTag$1=typeof Symbol==`function`&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document==`object`){var all=document.all;toStr$1.call(all)===toStr$1.call(document.all)&&(isDDA=function(value){if((isIE68||!value)&&(value===void 0||typeof value==`object`))try{var str=toStr$1.call(value);return(str===ddaClass||str===ddaClass2||str===ddaClass3||str===objectClass)&&value(``)==null}catch{}return!1})}module.exports=reflectApply?function(value){if(isDDA(value))return!0;if(!value||typeof value!=`function`&&typeof value!=`object`)return!1;try{reflectApply(value,null,badArrayLike)}catch(e){if(e!==isCallableMarker)return!1}return!isES6ClassFn(value)&&tryFunctionObject(value)}:function(value){if(isDDA(value))return!0;if(!value||typeof value!=`function`&&typeof value!=`object`)return!1;if(hasToStringTag$1)return tryFunctionObject(value);if(isES6ClassFn(value))return!1;var strClass=toStr$1.call(value);return strClass!==fnClass&&strClass!==genClass&&!/^\[object HTML/.test(strClass)?!1:tryFunctionObject(value)}}),require_for_each=__commonJSMin((exports,module)=>{var isCallable=require_is_callable(),toStr=Object.prototype.toString,hasOwnProperty$3=Object.prototype.hasOwnProperty,forEachArray=function(array,iterator,receiver){for(var i$4=0,len$2=array.length;i$4<len$2;i$4++)hasOwnProperty$3.call(array,i$4)&&(receiver==null?iterator(array[i$4],i$4,array):iterator.call(receiver,array[i$4],i$4,array))},forEachString=function(string,iterator,receiver){for(var i$4=0,len$2=string.length;i$4<len$2;i$4++)receiver==null?iterator(string.charAt(i$4),i$4,string):iterator.call(receiver,string.charAt(i$4),i$4,string)},forEachObject=function(object,iterator,receiver){for(var k in object)hasOwnProperty$3.call(object,k)&&(receiver==null?iterator(object[k],k,object):iterator.call(receiver,object[k],k,object))};function isArray$1(x$1){return toStr.call(x$1)===`[object Array]`}module.exports=function(list,iterator,thisArg){if(!isCallable(iterator))throw TypeError(`iterator must be a function`);var receiver;arguments.length>=3&&(receiver=thisArg),isArray$1(list)?forEachArray(list,iterator,receiver):typeof list==`string`?forEachString(list,iterator,receiver):forEachObject(list,iterator,receiver)}}),require_possible_typed_array_names=__commonJSMin((exports,module)=>{module.exports=[`Float16Array`,`Float32Array`,`Float64Array`,`Int8Array`,`Int16Array`,`Int32Array`,`Uint8Array`,`Uint8ClampedArray`,`Uint16Array`,`Uint32Array`,`BigInt64Array`,`BigUint64Array`]}),require_available_typed_arrays=__commonJSMin((exports,module)=>{var possibleNames=require_possible_typed_array_names(),g$1=typeof globalThis>`u`?global:globalThis;module.exports=function(){for(var out=[],i$4=0;i$4<possibleNames.length;i$4++)typeof g$1[possibleNames[i$4]]==`function`&&(out[out.length]=possibleNames[i$4]);return out}}),require_define_data_property=__commonJSMin((exports,module)=>{var $defineProperty$2=require_es_define_property(),$SyntaxError=require_syntax(),$TypeError$1=require_type(),gopd=require_gopd();module.exports=function(obj,property,value){if(!obj||typeof obj!=`object`&&typeof obj!=`function`)throw new $TypeError$1("`obj` must be an object or a function`");if(typeof property!=`string`&&typeof property!=`symbol`)throw new $TypeError$1("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=`boolean`&&arguments[3]!==null)throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=`boolean`&&arguments[4]!==null)throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=`boolean`&&arguments[5]!==null)throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=`boolean`)throw new $TypeError$1("`loose`, if provided, must be a boolean");var nonEnumerable=arguments.length>3?arguments[3]:null,nonWritable=arguments.length>4?arguments[4]:null,nonConfigurable=arguments.length>5?arguments[5]:null,loose=arguments.length>6?arguments[6]:!1,desc$1=!!gopd&&gopd(obj,property);if($defineProperty$2)$defineProperty$2(obj,property,{configurable:nonConfigurable===null&&desc$1?desc$1.configurable:!nonConfigurable,enumerable:nonEnumerable===null&&desc$1?desc$1.enumerable:!nonEnumerable,value,writable:nonWritable===null&&desc$1?desc$1.writable:!nonWritable});else if(loose||!nonEnumerable&&!nonWritable&&!nonConfigurable)obj[property]=value;else throw new $SyntaxError(`This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.`)}}),require_has_property_descriptors=__commonJSMin((exports,module)=>{var $defineProperty$1=require_es_define_property(),hasPropertyDescriptors=function(){return!!$defineProperty$1};hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!$defineProperty$1)return null;try{return $defineProperty$1([],`length`,{value:1}).length!==1}catch{return!0}},module.exports=hasPropertyDescriptors}),require_set_function_length=__commonJSMin((exports,module)=>{var GetIntrinsic=require_get_intrinsic(),define$1=require_define_data_property(),hasDescriptors=require_has_property_descriptors()(),gOPD$1=require_gopd(),$TypeError=require_type(),$floor=GetIntrinsic(`%Math.floor%`);module.exports=function(fn$1,length){if(typeof fn$1!=`function`)throw new $TypeError("`fn` is not a function");if(typeof length!=`number`||length<0||length>4294967295||$floor(length)!==length)throw new $TypeError("`length` must be a positive 32-bit integer");var loose=arguments.length>2&&!!arguments[2],functionLengthIsConfigurable=!0,functionLengthIsWritable=!0;if(`length`in fn$1&&gOPD$1){var desc$1=gOPD$1(fn$1,`length`);desc$1&&!desc$1.configurable&&(functionLengthIsConfigurable=!1),desc$1&&!desc$1.writable&&(functionLengthIsWritable=!1)}return(functionLengthIsConfigurable||functionLengthIsWritable||!loose)&&(hasDescriptors?define$1(fn$1,`length`,length,!0,!0):define$1(fn$1,`length`,length)),fn$1}}),require_applyBind=__commonJSMin((exports,module)=>{var bind=require_function_bind(),$apply=require_functionApply(),actualApply=require_actualApply();module.exports=function(){return actualApply(bind,$apply,arguments)}}),require_call_bind=__commonJSMin((exports,module)=>{var setFunctionLength=require_set_function_length(),$defineProperty=require_es_define_property(),callBindBasic=require_call_bind_apply_helpers(),applyBind=require_applyBind();module.exports=function(originalFunction){var func=callBindBasic(arguments),adjustedLength=originalFunction.length-(arguments.length-1);return setFunctionLength(func,1+(adjustedLength>0?adjustedLength:0),!0)},$defineProperty?$defineProperty(module.exports,`apply`,{value:applyBind}):module.exports.apply=applyBind}),require_which_typed_array=__commonJSMin((exports,module)=>{var forEach=require_for_each(),availableTypedArrays=require_available_typed_arrays(),callBind=require_call_bind(),callBound=require_call_bound(),gOPD=require_gopd(),getProto=require_get_proto(),$toString=callBound(`Object.prototype.toString`),hasToStringTag=require_shams()(),g=typeof globalThis>`u`?global:globalThis,typedArrays=availableTypedArrays(),$slice=callBound(`String.prototype.slice`),$indexOf=callBound(`Array.prototype.indexOf`,!0)||function(array,value){for(var i$4=0;i$4<array.length;i$4+=1)if(array[i$4]===value)return i$4;return-1},cache$1={__proto__:null};hasToStringTag&&gOPD&&getProto?forEach(typedArrays,function(typedArray){var arr=new g[typedArray];if(Symbol.toStringTag in arr&&getProto){var proto=getProto(arr),descriptor=gOPD(proto,Symbol.toStringTag);if(!descriptor&&proto){var superProto=getProto(proto);descriptor=gOPD(superProto,Symbol.toStringTag)}cache$1[`$`+typedArray]=callBind(descriptor.get)}}):forEach(typedArrays,function(typedArray){var arr=new g[typedArray],fn$1=arr.slice||arr.set;fn$1&&(cache$1[`$`+typedArray]=callBind(fn$1))});var tryTypedArrays=function(value){var found=!1;return forEach(cache$1,function(getter,typedArray){if(!found)try{`$`+getter(value)===typedArray&&(found=$slice(typedArray,1))}catch{}}),found},trySlices=function(value){var found=!1;return forEach(cache$1,function(getter,name$1){if(!found)try{getter(value),found=$slice(name$1,1)}catch{}}),found};module.exports=function(value){if(!value||typeof value!=`object`)return!1;if(!hasToStringTag){var tag=$slice($toString(value),8,-1);return $indexOf(typedArrays,tag)>-1?tag:tag===`Object`?trySlices(value):!1}return gOPD?tryTypedArrays(value):null}}),require_is_typed_array=__commonJSMin((exports,module)=>{var whichTypedArray$1=require_which_typed_array();module.exports=function(value){return!!whichTypedArray$1(value)}}),require_types=__commonJSMin(exports=>{var isArgumentsObject=require_is_arguments(),isGeneratorFunction=require_is_generator_function(),whichTypedArray=require_which_typed_array(),isTypedArray=require_is_typed_array();function uncurryThis(f){return f.call.bind(f)}var BigIntSupported=typeof BigInt<`u`,SymbolSupported=typeof Symbol<`u`,ObjectToString=uncurryThis(Object.prototype.toString),numberValue=uncurryThis(Number.prototype.valueOf),stringValue=uncurryThis(String.prototype.valueOf),booleanValue=uncurryThis(Boolean.prototype.valueOf);if(BigIntSupported)var bigIntValue=uncurryThis(BigInt.prototype.valueOf);if(SymbolSupported)var symbolValue=uncurryThis(Symbol.prototype.valueOf);function checkBoxedPrimitive(value,prototypeValueOf){if(typeof value!=`object`)return!1;try{return prototypeValueOf(value),!0}catch{return!1}}exports.isArgumentsObject=isArgumentsObject,exports.isGeneratorFunction=isGeneratorFunction,exports.isTypedArray=isTypedArray;function isPromise(input){return typeof Promise<`u`&&input instanceof Promise||typeof input==`object`&&!!input&&typeof input.then==`function`&&typeof input.catch==`function`}exports.isPromise=isPromise;function isArrayBufferView(value){return typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(value):isTypedArray(value)||isDataView(value)}exports.isArrayBufferView=isArrayBufferView;function isUint8Array(value){return whichTypedArray(value)===`Uint8Array`}exports.isUint8Array=isUint8Array;function isUint8ClampedArray(value){return whichTypedArray(value)===`Uint8ClampedArray`}exports.isUint8ClampedArray=isUint8ClampedArray;function isUint16Array(value){return whichTypedArray(value)===`Uint16Array`}exports.isUint16Array=isUint16Array;function isUint32Array(value){return whichTypedArray(value)===`Uint32Array`}exports.isUint32Array=isUint32Array;function isInt8Array(value){return whichTypedArray(value)===`Int8Array`}exports.isInt8Array=isInt8Array;function isInt16Array(value){return whichTypedArray(value)===`Int16Array`}exports.isInt16Array=isInt16Array;function isInt32Array(value){return whichTypedArray(value)===`Int32Array`}exports.isInt32Array=isInt32Array;function isFloat32Array(value){return whichTypedArray(value)===`Float32Array`}exports.isFloat32Array=isFloat32Array;function isFloat64Array(value){return whichTypedArray(value)===`Float64Array`}exports.isFloat64Array=isFloat64Array;function isBigInt64Array(value){return whichTypedArray(value)===`BigInt64Array`}exports.isBigInt64Array=isBigInt64Array;function isBigUint64Array(value){return whichTypedArray(value)===`BigUint64Array`}exports.isBigUint64Array=isBigUint64Array;function isMapToString(value){return ObjectToString(value)===`[object Map]`}isMapToString.working=typeof Map<`u`&&isMapToString(new Map);function isMap(value){return typeof Map>`u`?!1:isMapToString.working?isMapToString(value):value instanceof Map}exports.isMap=isMap;function isSetToString(value){return ObjectToString(value)===`[object Set]`}isSetToString.working=typeof Set<`u`&&isSetToString(new Set);function isSet(value){return typeof Set>`u`?!1:isSetToString.working?isSetToString(value):value instanceof Set}exports.isSet=isSet;function isWeakMapToString(value){return ObjectToString(value)===`[object WeakMap]`}isWeakMapToString.working=typeof WeakMap<`u`&&isWeakMapToString(new WeakMap);function isWeakMap(value){return typeof WeakMap>`u`?!1:isWeakMapToString.working?isWeakMapToString(value):value instanceof WeakMap}exports.isWeakMap=isWeakMap;function isWeakSetToString(value){return ObjectToString(value)===`[object WeakSet]`}isWeakSetToString.working=typeof WeakSet<`u`&&isWeakSetToString(new WeakSet);function isWeakSet(value){return isWeakSetToString(value)}exports.isWeakSet=isWeakSet;function isArrayBufferToString(value){return ObjectToString(value)===`[object ArrayBuffer]`}isArrayBufferToString.working=typeof ArrayBuffer<`u`&&isArrayBufferToString(new ArrayBuffer);function isArrayBuffer(value){return typeof ArrayBuffer>`u`?!1:isArrayBufferToString.working?isArrayBufferToString(value):value instanceof ArrayBuffer}exports.isArrayBuffer=isArrayBuffer;function isDataViewToString(value){return ObjectToString(value)===`[object DataView]`}isDataViewToString.working=typeof ArrayBuffer<`u`&&typeof DataView<`u`&&isDataViewToString(new DataView(new ArrayBuffer(1),0,1));function isDataView(value){return typeof DataView>`u`?!1:isDataViewToString.working?isDataViewToString(value):value instanceof DataView}exports.isDataView=isDataView;var SharedArrayBufferCopy=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:void 0;function isSharedArrayBufferToString(value){return ObjectToString(value)===`[object SharedArrayBuffer]`}function isSharedArrayBuffer(value){return SharedArrayBufferCopy===void 0?!1:(isSharedArrayBufferToString.working===void 0&&(isSharedArrayBufferToString.working=isSharedArrayBufferToString(new SharedArrayBufferCopy)),isSharedArrayBufferToString.working?isSharedArrayBufferToString(value):value instanceof SharedArrayBufferCopy)}exports.isSharedArrayBuffer=isSharedArrayBuffer;function isAsyncFunction(value){return ObjectToString(value)===`[object AsyncFunction]`}exports.isAsyncFunction=isAsyncFunction;function isMapIterator(value){return ObjectToString(value)===`[object Map Iterator]`}exports.isMapIterator=isMapIterator;function isSetIterator(value){return ObjectToString(value)===`[object Set Iterator]`}exports.isSetIterator=isSetIterator;function isGeneratorObject(value){return ObjectToString(value)===`[object Generator]`}exports.isGeneratorObject=isGeneratorObject;function isWebAssemblyCompiledModule(value){return ObjectToString(value)===`[object WebAssembly.Module]`}exports.isWebAssemblyCompiledModule=isWebAssemblyCompiledModule;function isNumberObject(value){return checkBoxedPrimitive(value,numberValue)}exports.isNumberObject=isNumberObject;function isStringObject(value){return checkBoxedPrimitive(value,stringValue)}exports.isStringObject=isStringObject;function isBooleanObject(value){return checkBoxedPrimitive(value,booleanValue)}exports.isBooleanObject=isBooleanObject;function isBigIntObject(value){return BigIntSupported&&checkBoxedPrimitive(value,bigIntValue)}exports.isBigIntObject=isBigIntObject;function isSymbolObject(value){return SymbolSupported&&checkBoxedPrimitive(value,symbolValue)}exports.isSymbolObject=isSymbolObject;function isBoxedPrimitive(value){return isNumberObject(value)||isStringObject(value)||isBooleanObject(value)||isBigIntObject(value)||isSymbolObject(value)}exports.isBoxedPrimitive=isBoxedPrimitive;function isAnyArrayBuffer(value){return typeof Uint8Array<`u`&&(isArrayBuffer(value)||isSharedArrayBuffer(value))}exports.isAnyArrayBuffer=isAnyArrayBuffer,[`isProxy`,`isExternal`,`isModuleNamespaceObject`].forEach(function(method){Object.defineProperty(exports,method,{enumerable:!1,value:function(){throw Error(method+` is not supported in userland`)}})})}),require_isBuffer=__commonJSMin((exports,module)=>{init_dist$1(),module.exports=function(arg){return arg instanceof Buffer$1}}),require_inherits_browser=__commonJSMin((exports,module)=>{typeof Object.create==`function`?module.exports=function(ctor,superCtor){superCtor&&(ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}}))}:module.exports=function(ctor,superCtor){if(superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}}}),require_inherits=__commonJSMin((exports,module)=>{try{var util=require_util();if(typeof util.inherits!=`function`)throw``;module.exports=util.inherits}catch{module.exports=require_inherits_browser()}}),require_util=__commonJSMin(exports=>{init_dist();var getOwnPropertyDescriptors=Object.getOwnPropertyDescriptors||function(obj){for(var keys=Object.keys(obj),descriptors={},i$4=0;i$4<keys.length;i$4++)descriptors[keys[i$4]]=Object.getOwnPropertyDescriptor(obj,keys[i$4]);return descriptors},formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString$2(f)){for(var objects=[],i$4=0;i$4<arguments.length;i$4++)objects.push(inspect(arguments[i$4]));return objects.join(` `)}for(var i$4=1,args$1=arguments,len$2=args$1.length,str=String(f).replace(formatRegExp,function(x$2){if(x$2===`%%`)return`%`;if(i$4>=len$2)return x$2;switch(x$2){case`%s`:return String(args$1[i$4++]);case`%d`:return Number(args$1[i$4++]);case`%j`:try{return JSON.stringify(args$1[i$4++])}catch{return`[Circular]`}default:return x$2}}),x$1=args$1[i$4];i$4<len$2;x$1=args$1[++i$4])isNull(x$1)||!isObject(x$1)?str+=` `+x$1:str+=` `+inspect(x$1);return str},exports.deprecate=function(fn$1,msg){if(process$1!==void 0&&process$1.noDeprecation===!0)return fn$1;if(process$1===void 0)return function(){return exports.deprecate(fn$1,msg).apply(this,arguments)};var warned=!1;function deprecated(){if(!warned){if(process$1.throwDeprecation)throw Error(msg);process$1.traceDeprecation?console.trace(msg):console.error(msg),warned=!0}return fn$1.apply(this,arguments)}return deprecated};var debugs={},debugEnvRegex=/^$/;if(process$1.env.NODE_DEBUG){var debugEnv=process$1.env.NODE_DEBUG;debugEnv=debugEnv.replace(/[|\\{}()[\]^$+?.]/g,`\\$&`).replace(/\*/g,`.*`).replace(/,/g,`$|^`).toUpperCase(),debugEnvRegex=RegExp(`^`+debugEnv+`$`,`i`)}exports.debuglog=function(set){if(set=set.toUpperCase(),!debugs[set])if(debugEnvRegex.test(set)){var pid=process$1.pid;debugs[set]=function(){var msg=exports.format.apply(exports,arguments);console.error(`%s %d: %s`,set,pid,msg)}}else debugs[set]=function(){};return debugs[set]};function inspect(obj,opts){var ctx={seen:[],stylize:stylizeNoColor};return arguments.length>=3&&(ctx.depth=arguments[2]),arguments.length>=4&&(ctx.colors=arguments[3]),isBoolean(opts)?ctx.showHidden=opts:opts&&exports._extend(ctx,opts),isUndefined$2(ctx.showHidden)&&(ctx.showHidden=!1),isUndefined$2(ctx.depth)&&(ctx.depth=2),isUndefined$2(ctx.colors)&&(ctx.colors=!1),isUndefined$2(ctx.customInspect)&&(ctx.customInspect=!0),ctx.colors&&(ctx.stylize=stylizeWithColor),formatValue(ctx,obj,ctx.depth)}exports.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:`cyan`,number:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,date:`magenta`,regexp:`red`};function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];return style?`\x1B[`+inspect.colors[style][0]+`m`+str+`\x1B[`+inspect.colors[style][1]+`m`:str}function stylizeNoColor(str,styleType){return str}function arrayToHash(array){var hash={};return array.forEach(function(val,idx){hash[val]=!0}),hash}function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&!(value.constructor&&value.constructor.prototype===value)){var ret=value.inspect(recurseTimes,ctx);return isString$2(ret)||(ret=formatValue(ctx,ret,recurseTimes)),ret}var primitive=formatPrimitive(ctx,value);if(primitive)return primitive;var keys=Object.keys(value),visibleKeys=arrayToHash(keys);if(ctx.showHidden&&(keys=Object.getOwnPropertyNames(value)),isError(value)&&(keys.indexOf(`message`)>=0||keys.indexOf(`description`)>=0))return formatError(value);if(keys.length===0){if(isFunction(value)){var name$1=value.name?`: `+value.name:``;return ctx.stylize(`[Function`+name$1+`]`,`special`)}if(isRegExp(value))return ctx.stylize(RegExp.prototype.toString.call(value),`regexp`);if(isDate$2(value))return ctx.stylize(Date.prototype.toString.call(value),`date`);if(isError(value))return formatError(value)}var base=``,array=!1,braces=[`{`,`}`];if(isArray(value)&&(array=!0,braces=[`[`,`]`]),isFunction(value)){var n$2=value.name?`: `+value.name:``;base=` [Function`+n$2+`]`}if(isRegExp(value)&&(base=` `+RegExp.prototype.toString.call(value)),isDate$2(value)&&(base=` `+Date.prototype.toUTCString.call(value)),isError(value)&&(base=` `+formatError(value)),keys.length===0&&(!array||value.length==0))return braces[0]+base+braces[1];if(recurseTimes<0)return isRegExp(value)?ctx.stylize(RegExp.prototype.toString.call(value),`regexp`):ctx.stylize(`[Object]`,`special`);ctx.seen.push(value);var output;return output=array?formatArray(ctx,value,recurseTimes,visibleKeys,keys):keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array)}),ctx.seen.pop(),reduceToSingleString(output,base,braces)}function formatPrimitive(ctx,value){if(isUndefined$2(value))return ctx.stylize(`undefined`,`undefined`);if(isString$2(value)){var simple$2=`'`+JSON.stringify(value).replace(/^"|"$/g,``).replace(/'/g,`\\'`).replace(/\\"/g,`"`)+`'`;return ctx.stylize(simple$2,`string`)}if(isNumber$2(value))return ctx.stylize(``+value,`number`);if(isBoolean(value))return ctx.stylize(``+value,`boolean`);if(isNull(value))return ctx.stylize(`null`,`null`)}function formatError(value){return`[`+Error.prototype.toString.call(value)+`]`}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){for(var output=[],i$4=0,l$2=value.length;i$4<l$2;++i$4)hasOwnProperty$2(value,String(i$4))?output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,String(i$4),!0)):output.push(``);return keys.forEach(function(key){key.match(/^\d+$/)||output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,key,!0))}),output}function formatProperty(ctx,value,recurseTimes,visibleKeys,key,array){var name$1,str,desc$1;if(desc$1=Object.getOwnPropertyDescriptor(value,key)||{value:value[key]},desc$1.get?str=desc$1.set?ctx.stylize(`[Getter/Setter]`,`special`):ctx.stylize(`[Getter]`,`special`):desc$1.set&&(str=ctx.stylize(`[Setter]`,`special`)),hasOwnProperty$2(visibleKeys,key)||(name$1=`[`+key+`]`),str||(ctx.seen.indexOf(desc$1.value)<0?(str=isNull(recurseTimes)?formatValue(ctx,desc$1.value,null):formatValue(ctx,desc$1.value,recurseTimes-1),str.indexOf(`
2
2
  `)>-1&&(str=array?str.split(`
3
3
  `).map(function(line){return` `+line}).join(`
4
4
  `).slice(2):`
@@ -7,7 +7,7 @@ import vitePluginRequire_1761673929235_17376597 from"knex";var __create=Object.c
7
7
  `))):str=ctx.stylize(`[Circular]`,`special`)),isUndefined$2(name$1)){if(array&&key.match(/^\d+$/))return str;name$1=JSON.stringify(``+key),name$1.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(name$1=name$1.slice(1,-1),name$1=ctx.stylize(name$1,`name`)):(name$1=name$1.replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`),name$1=ctx.stylize(name$1,`string`))}return name$1+`: `+str}function reduceToSingleString(output,base,braces){var numLinesEst=0,length=output.reduce(function(prev,cur){return numLinesEst++,cur.indexOf(`
8
8
  `)>=0&&numLinesEst++,prev+cur.replace(/\u001b\[\d\d?m/g,``).length+1},0);return length>60?braces[0]+(base===``?``:base+`
9
9
  `)+` `+output.join(`,
10
- `)+` `+braces[1]:braces[0]+base+` `+output.join(`, `)+` `+braces[1]}exports.types=require_types();function isArray(ar){return Array.isArray(ar)}exports.isArray=isArray;function isBoolean(arg){return typeof arg==`boolean`}exports.isBoolean=isBoolean;function isNull(arg){return arg===null}exports.isNull=isNull;function isNullOrUndefined(arg){return arg==null}exports.isNullOrUndefined=isNullOrUndefined;function isNumber$2(arg){return typeof arg==`number`}exports.isNumber=isNumber$2;function isString$2(arg){return typeof arg==`string`}exports.isString=isString$2;function isSymbol(arg){return typeof arg==`symbol`}exports.isSymbol=isSymbol;function isUndefined$2(arg){return arg===void 0}exports.isUndefined=isUndefined$2;function isRegExp(re$5){return isObject(re$5)&&objectToString(re$5)===`[object RegExp]`}exports.isRegExp=isRegExp,exports.types.isRegExp=isRegExp;function isObject(arg){return typeof arg==`object`&&!!arg}exports.isObject=isObject;function isDate$2(d){return isObject(d)&&objectToString(d)===`[object Date]`}exports.isDate=isDate$2,exports.types.isDate=isDate$2;function isError(e){return isObject(e)&&(objectToString(e)===`[object Error]`||e instanceof Error)}exports.isError=isError,exports.types.isNativeError=isError;function isFunction(arg){return typeof arg==`function`}exports.isFunction=isFunction;function isPrimitive(arg){return arg===null||typeof arg==`boolean`||typeof arg==`number`||typeof arg==`string`||typeof arg==`symbol`||arg===void 0}exports.isPrimitive=isPrimitive,exports.isBuffer=require_isBuffer();function objectToString(o){return Object.prototype.toString.call(o)}function pad(n$2){return n$2<10?`0`+n$2.toString(10):n$2.toString(10)}var months$2=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function timestamp(){var d=new Date,time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(`:`);return[d.getDate(),months$2[d.getMonth()],time].join(` `)}exports.log=function(){console.log(`%s - %s`,timestamp(),exports.format.apply(exports,arguments))},exports.inherits=require_inherits(),exports._extend=function(origin,add){if(!add||!isObject(add))return origin;for(var keys=Object.keys(add),i$4=keys.length;i$4--;)origin[keys[i$4]]=add[keys[i$4]];return origin};function hasOwnProperty$2(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}var kCustomPromisifiedSymbol=typeof Symbol<`u`?Symbol(`util.promisify.custom`):void 0;exports.promisify=function(original){if(typeof original!=`function`)throw TypeError(`The "original" argument must be of type Function`);if(kCustomPromisifiedSymbol&&original[kCustomPromisifiedSymbol]){var fn$1=original[kCustomPromisifiedSymbol];if(typeof fn$1!=`function`)throw TypeError(`The "util.promisify.custom" argument must be of type Function`);return Object.defineProperty(fn$1,kCustomPromisifiedSymbol,{value:fn$1,enumerable:!1,writable:!1,configurable:!0}),fn$1}function fn$1(){for(var promiseResolve,promiseReject,promise=new Promise(function(resolve,reject){promiseResolve=resolve,promiseReject=reject}),args$1=[],i$4=0;i$4<arguments.length;i$4++)args$1.push(arguments[i$4]);args$1.push(function(err$1,value){err$1?promiseReject(err$1):promiseResolve(value)});try{original.apply(this,args$1)}catch(err$1){promiseReject(err$1)}return promise}return Object.setPrototypeOf(fn$1,Object.getPrototypeOf(original)),kCustomPromisifiedSymbol&&Object.defineProperty(fn$1,kCustomPromisifiedSymbol,{value:fn$1,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(fn$1,getOwnPropertyDescriptors(original))},exports.promisify.custom=kCustomPromisifiedSymbol;function callbackifyOnRejected(reason,cb){if(!reason){var newReason=Error(`Promise was rejected with a falsy value`);newReason.reason=reason,reason=newReason}return cb(reason)}function callbackify(original){if(typeof original!=`function`)throw TypeError(`The "original" argument must be of type Function`);function callbackified(){for(var args$1=[],i$4=0;i$4<arguments.length;i$4++)args$1.push(arguments[i$4]);var maybeCb=args$1.pop();if(typeof maybeCb!=`function`)throw TypeError(`The last argument must be of type Function`);var self$1=this,cb=function(){return maybeCb.apply(self$1,arguments)};original.apply(this,args$1).then(function(ret){process$1.nextTick(cb.bind(null,null,ret))},function(rej){process$1.nextTick(callbackifyOnRejected.bind(null,rej,cb))})}return Object.setPrototypeOf(callbackified,Object.getPrototypeOf(original)),Object.defineProperties(callbackified,getOwnPropertyDescriptors(original)),callbackified}exports.callbackify=callbackify});function analyzeEmail(email,options){return validateEmail(email,options)}function isEmailValid$1(email,options){return!validateEmail(email,options)}function validateEmail(email,options={}){if(typeof email!=`string`)throw Error(`Invalid input: email must be a string`);if(!email)return errorCode(`EMPTY_STRING`);let ascii$2=!NON_ASCII_RX.test(email);if(!ascii$2){if(options.allowUnicode===!1)return errorCode(`FORBIDDEN_UNICODE`);email=email.normalize(`NFC`)}let parts=email.split(`@`);if(parts.length!==2)return parts.length>2?errorCode(`MULTIPLE_AT_CHAR`):errorCode(`MISSING_AT_CHAR`);let[local,domain]=parts;if(!local)return errorCode(`EMPTY_LOCAL`);if(!options.ignoreLength){if(email.length>254)return errorCode(`ADDRESS_TOO_LONG`);if(ENCODER_IMPL.encode(local).length>64)return errorCode(`LOCAL_TOO_LONG`)}return validateLocal(local,ascii$2)||analyzeDomain(domain,options)}function validateLocal(local,ascii$2){let segments=local.split(`.`);for(let segment of segments){if(!segment.length)return errorCode(`EMPTY_LOCAL_SEGMENT`);if(ascii$2){if(!ATEXT_RX.test(segment))return errorCode(`INVALID_LOCAL_CHARS`);continue}for(let char of segment){if(ATEXT_RX.test(char))continue;let binary=toBinary(char);if(!ATOM_RX.test(binary))return errorCode(`INVALID_LOCAL_CHARS`)}}return null}function toBinary(char){return Array.from(ENCODER_IMPL.encode(char),v=>String.fromCharCode(v)).join(``)}var import_util,NON_ASCII_RX,ENCODER_IMPL,ATEXT_RX,ATOM_RX,init_email=__esmMin(()=>{import_util=__toESM(require_util()),init_domain(),NON_ASCII_RX=/[^\x00-\x7f]/,ENCODER_IMPL=new(import_util.TextEncoder||TextEncoder),ATEXT_RX=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,ATOM_RX=new RegExp([`(?:[\\xc2-\\xdf][\\x80-\\xbf])`,`(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})`,`(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})`].join(`|`))});function generate$1(){let rfc3986$1={},hexDigit=`\\dA-Fa-f`,hexDigitOnly=`[`+hexDigit+`]`,unreserved=`\\w-\\.~`,subDelims=`!\\$&'\\(\\)\\*\\+,;=`,pctEncoded=`%`+hexDigit,pchar=unreserved+pctEncoded+subDelims+`:@`,pcharOnly=`[`+pchar+`]`,decOctect=`(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])`;rfc3986$1.ipv4address=`(?:`+decOctect+`\\.){3}(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])`;let h16=hexDigitOnly+`{1,4}`,ls32=`(?:`+h16+`:[\\dA-Fa-f]{1,4}|`+rfc3986$1.ipv4address+`)`,IPv6SixHex=`(?:`+h16+`:){6}`+ls32,IPv6FiveHex=`::(?:`+h16+`:){5}`+ls32,IPv6FourHex=`(?:`+h16+`)?::(?:[\\dA-Fa-f]{1,4}:){4}`+ls32,IPv6ThreeHex=`(?:(?:`+h16+`:){0,1}[\\dA-Fa-f]{1,4})?::(?:[\\dA-Fa-f]{1,4}:){3}`+ls32,IPv6TwoHex=`(?:(?:`+h16+`:){0,2}[\\dA-Fa-f]{1,4})?::(?:[\\dA-Fa-f]{1,4}:){2}`+ls32,IPv6OneHex=`(?:(?:`+h16+`:){0,3}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}:`+ls32,IPv6NoneHex=`(?:(?:`+h16+`:){0,4}[\\dA-Fa-f]{1,4})?::`+ls32,IPv6NoneHex2=`(?:(?:`+h16+`:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}`,IPv6NoneHex3=`(?:(?:`+h16+`:){0,6}[\\dA-Fa-f]{1,4})?::`;rfc3986$1.ipv4Cidr=`(?:\\d|[1-2]\\d|3[0-2])`,rfc3986$1.ipv6Cidr=`(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])`,rfc3986$1.ipv6address=`(?:`+IPv6SixHex+`|`+IPv6FiveHex+`|`+IPv6FourHex+`|`+IPv6ThreeHex+`|`+IPv6TwoHex+`|`+IPv6OneHex+`|`+IPv6NoneHex+`|(?:(?:[\\dA-Fa-f]{1,4}:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}|(?:(?:[\\dA-Fa-f]{1,4}:){0,6}[\\dA-Fa-f]{1,4})?::)`,rfc3986$1.ipvFuture=`v`+hexDigitOnly+`+\\.[\\w-\\.~!\\$&'\\(\\)\\*\\+,;=:]+`,rfc3986$1.scheme=`[a-zA-Z][a-zA-Z\\d+-\\.]*`,rfc3986$1.schemeRegex=new RegExp(rfc3986$1.scheme);let userinfo=`[`+unreserved+pctEncoded+subDelims+`:]*`,IPLiteral=`\\[(?:`+rfc3986$1.ipv6address+`|`+rfc3986$1.ipvFuture+`)\\]`,regName=`[`+unreserved+pctEncoded+subDelims+`]{1,255}`,host=`(?:`+IPLiteral+`|`+rfc3986$1.ipv4address+`|[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=]{1,255})`,port=`\\d*`,authority=`(?:`+userinfo+`@)?`+host+`(?::\\d*)?`,authorityCapture=`(?:`+userinfo+`@)?(`+host+`)(?::\\d*)?`,segment=pcharOnly+`*`,segmentNz=pcharOnly+`+`,segmentNzNc=`[`+unreserved+pctEncoded+subDelims+`@]+`,pathEmpty=``,pathAbEmpty=`(?:\\/`+segment+`)*`,pathAbsolute=`\\/(?:`+segmentNz+pathAbEmpty+`)?`,pathRootless=segmentNz+pathAbEmpty,pathNoScheme=segmentNzNc+pathAbEmpty,pathAbNoAuthority=`(?:\\/\\/\\/`+segment+pathAbEmpty+`)`;return rfc3986$1.hierPart=`(?:(?:\\/\\/`+authority+pathAbEmpty+`)|`+pathAbsolute+`|`+pathRootless+`|`+pathAbNoAuthority+`)`,rfc3986$1.hierPartCapture=`(?:(?:\\/\\/`+authorityCapture+pathAbEmpty+`)|`+pathAbsolute+`|`+pathRootless+`)`,rfc3986$1.relativeRef=`(?:(?:\\/\\/`+authority+pathAbEmpty+`)|`+pathAbsolute+`|`+pathNoScheme+`|)`,rfc3986$1.relativeRefCapture=`(?:(?:\\/\\/`+authorityCapture+pathAbEmpty+`)|`+pathAbsolute+`|`+pathNoScheme+`|)`,rfc3986$1.query=`[`+pchar+`\\/\\?]*(?=#|$)`,rfc3986$1.queryWithSquareBrackets=`[`+pchar+`\\[\\]\\/\\?]*(?=#|$)`,rfc3986$1.fragment=`[`+pchar+`\\/\\?]*`,rfc3986$1}function createRegex(options){let rfc=rfc3986,query=options.allowQuerySquareBrackets?rfc.queryWithSquareBrackets:rfc.query,suffix=`(?:\\?`+query+`)?(?:#`+rfc.fragment+`)?`,relative=options.domain?rfc.relativeRefCapture:rfc.relativeRef;if(options.relativeOnly)return wrap(relative+suffix);let customScheme=``;if(options.scheme){(0,import_assert.default)(options.scheme instanceof RegExp||typeof options.scheme==`string`||Array.isArray(options.scheme),`scheme must be a RegExp, String, or Array`);let schemes=[].concat(options.scheme);(0,import_assert.default)(schemes.length>=1,`scheme must have at least 1 scheme specified`);let selections=[];for(let i$4=0;i$4<schemes.length;++i$4){let scheme$1=schemes[i$4];(0,import_assert.default)(scheme$1 instanceof RegExp||typeof scheme$1==`string`,`scheme at position `+i$4+` must be a RegExp or String`),scheme$1 instanceof RegExp?selections.push(scheme$1.source.toString()):((0,import_assert.default)(rfc.schemeRegex.test(scheme$1),`scheme at position `+i$4+` must be a valid scheme`),selections.push((0,import_escapeRegex.default)(scheme$1)))}customScheme=selections.join(`|`)}let scheme=customScheme?`(?:`+customScheme+`)`:rfc.scheme,absolute=`(?:`+scheme+`:`+(options.domain?rfc.hierPartCapture:rfc.hierPart)+`)`,prefix=options.allowRelative?`(?:`+absolute+`|`+relative+`)`:absolute;return wrap(prefix+suffix,customScheme)}function wrap(raw,scheme=null){return raw=`(?=.)(?!https?\:/(?:$|[^/]))(?!https?\:///)(?!https?\:[^/])${raw}`,{raw,regex:RegExp(`^${raw}$`),scheme}}function uriRegex$1(options={}){return options.scheme||options.allowRelative||options.relativeOnly||options.allowQuerySquareBrackets||options.domain?createRegex(options):genericUriRegex}var rfc3986,ipVersions,genericUriRegex,init_uri=__esmMin(()=>{init_lib(),rfc3986=generate$1(),ipVersions={v4Cidr:rfc3986.ipv4Cidr,v6Cidr:rfc3986.ipv6Cidr,ipv4:rfc3986.ipv4address,ipv6:rfc3986.ipv6address,ipvfuture:rfc3986.ipvFuture},genericUriRegex=createRegex({})});function ipRegex$1(options={}){let cidr=options.cidr||`optional`;(0,import_assert.default)([`required`,`optional`,`forbidden`].includes(cidr),`options.cidr must be one of required, optional, forbidden`),(0,import_assert.default)(options.version===void 0||typeof options.version==`string`||Array.isArray(options.version),`options.version must be a string or an array of string`);let versions=options.version||[`ipv4`,`ipv6`,`ipvfuture`];Array.isArray(versions)||(versions=[versions]),(0,import_assert.default)(versions.length>=1,`options.version must have at least 1 version specified`);for(let version$3 of versions)(0,import_assert.default)(typeof version$3==`string`&&version$3===version$3.toLowerCase(),`Invalid options.version value`),(0,import_assert.default)([`ipv4`,`ipv6`,`ipvfuture`].includes(version$3),`options.version contains unknown version `+version$3+` - must be one of ipv4, ipv6, ipvfuture`);versions=Array.from(new Set(versions));let parts=versions.map(version$3=>{if(cidr===`forbidden`)return ipVersions[version$3];let cidrpart=`\\/${version$3===`ipv4`?ipVersions.v4Cidr:ipVersions.v6Cidr}`;return cidr===`required`?`${ipVersions[version$3]}${cidrpart}`:`${ipVersions[version$3]}(?:${cidrpart})?`}),raw=`(?:${parts.join(`|`)})`,regex=RegExp(`^${raw}$`);return{cidr,versions,regex,raw}}var init_ip=__esmMin(()=>{init_lib(),init_uri()});const HEX={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},UTF8={accept:12,reject:0,data:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7]};function uriDecode(string){let percentPos=string.indexOf(`%`);if(percentPos===-1)return string;let decoded=``,last=0,codepoint=0,startOfOctets=percentPos,state=UTF8.accept;for(;percentPos>-1&&percentPos<string.length;){let high=resolveHex(string[percentPos+1],4),low=resolveHex(string[percentPos+2],0),byte=high|low,type=UTF8.data[byte];if(state=UTF8.data[256+state+type],codepoint=codepoint<<6|byte&UTF8.data[364+type],state===UTF8.accept){decoded+=string.slice(last,startOfOctets),decoded+=codepoint<=65535?String.fromCharCode(codepoint):String.fromCharCode(55232+(codepoint>>10),56320+(codepoint&1023)),codepoint=0,last=percentPos+3,percentPos=string.indexOf(`%`,last),startOfOctets=percentPos;continue}if(state===UTF8.reject||(percentPos+=3,percentPos>=string.length||string[percentPos]!==`%`))return null}return decoded+string.slice(last)}function resolveHex(char,shift){let i$4=HEX[char];return i$4===void 0?255:i$4<<shift}var esm_exports={};__export(esm_exports,{analyzeDomain:()=>analyzeDomain,analyzeEmail:()=>analyzeEmail,errorCodes:()=>errorCodes,ipRegex:()=>ipRegex$1,isDomainValid:()=>isDomainValid$1,isEmailValid:()=>isEmailValid$1,uriDecode:()=>uriDecode,uriRegex:()=>uriRegex$1,validateDomainOptions:()=>validateDomainOptions});var init_esm=__esmMin(()=>{init_domain(),init_email(),init_ip(),init_uri()}),require_tlds=__commonJSMin(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.TLDS=`AAA.AARP.ABB.ABBOTT.ABBVIE.ABC.ABLE.ABOGADO.ABUDHABI.AC.ACADEMY.ACCENTURE.ACCOUNTANT.ACCOUNTANTS.ACO.ACTOR.AD.ADS.ADULT.AE.AEG.AERO.AETNA.AF.AFL.AFRICA.AG.AGAKHAN.AGENCY.AI.AIG.AIRBUS.AIRFORCE.AIRTEL.AKDN.AL.ALIBABA.ALIPAY.ALLFINANZ.ALLSTATE.ALLY.ALSACE.ALSTOM.AM.AMAZON.AMERICANEXPRESS.AMERICANFAMILY.AMEX.AMFAM.AMICA.AMSTERDAM.ANALYTICS.ANDROID.ANQUAN.ANZ.AO.AOL.APARTMENTS.APP.APPLE.AQ.AQUARELLE.AR.ARAB.ARAMCO.ARCHI.ARMY.ARPA.ART.ARTE.AS.ASDA.ASIA.ASSOCIATES.AT.ATHLETA.ATTORNEY.AU.AUCTION.AUDI.AUDIBLE.AUDIO.AUSPOST.AUTHOR.AUTO.AUTOS.AW.AWS.AX.AXA.AZ.AZURE.BA.BABY.BAIDU.BANAMEX.BAND.BANK.BAR.BARCELONA.BARCLAYCARD.BARCLAYS.BAREFOOT.BARGAINS.BASEBALL.BASKETBALL.BAUHAUS.BAYERN.BB.BBC.BBT.BBVA.BCG.BCN.BD.BE.BEATS.BEAUTY.BEER.BERLIN.BEST.BESTBUY.BET.BF.BG.BH.BHARTI.BI.BIBLE.BID.BIKE.BING.BINGO.BIO.BIZ.BJ.BLACK.BLACKFRIDAY.BLOCKBUSTER.BLOG.BLOOMBERG.BLUE.BM.BMS.BMW.BN.BNPPARIBAS.BO.BOATS.BOEHRINGER.BOFA.BOM.BOND.BOO.BOOK.BOOKING.BOSCH.BOSTIK.BOSTON.BOT.BOUTIQUE.BOX.BR.BRADESCO.BRIDGESTONE.BROADWAY.BROKER.BROTHER.BRUSSELS.BS.BT.BUILD.BUILDERS.BUSINESS.BUY.BUZZ.BV.BW.BY.BZ.BZH.CA.CAB.CAFE.CAL.CALL.CALVINKLEIN.CAM.CAMERA.CAMP.CANON.CAPETOWN.CAPITAL.CAPITALONE.CAR.CARAVAN.CARDS.CARE.CAREER.CAREERS.CARS.CASA.CASE.CASH.CASINO.CAT.CATERING.CATHOLIC.CBA.CBN.CBRE.CC.CD.CENTER.CEO.CERN.CF.CFA.CFD.CG.CH.CHANEL.CHANNEL.CHARITY.CHASE.CHAT.CHEAP.CHINTAI.CHRISTMAS.CHROME.CHURCH.CI.CIPRIANI.CIRCLE.CISCO.CITADEL.CITI.CITIC.CITY.CK.CL.CLAIMS.CLEANING.CLICK.CLINIC.CLINIQUE.CLOTHING.CLOUD.CLUB.CLUBMED.CM.CN.CO.COACH.CODES.COFFEE.COLLEGE.COLOGNE.COM.COMMBANK.COMMUNITY.COMPANY.COMPARE.COMPUTER.COMSEC.CONDOS.CONSTRUCTION.CONSULTING.CONTACT.CONTRACTORS.COOKING.COOL.COOP.CORSICA.COUNTRY.COUPON.COUPONS.COURSES.CPA.CR.CREDIT.CREDITCARD.CREDITUNION.CRICKET.CROWN.CRS.CRUISE.CRUISES.CU.CUISINELLA.CV.CW.CX.CY.CYMRU.CYOU.CZ.DAD.DANCE.DATA.DATE.DATING.DATSUN.DAY.DCLK.DDS.DE.DEAL.DEALER.DEALS.DEGREE.DELIVERY.DELL.DELOITTE.DELTA.DEMOCRAT.DENTAL.DENTIST.DESI.DESIGN.DEV.DHL.DIAMONDS.DIET.DIGITAL.DIRECT.DIRECTORY.DISCOUNT.DISCOVER.DISH.DIY.DJ.DK.DM.DNP.DO.DOCS.DOCTOR.DOG.DOMAINS.DOT.DOWNLOAD.DRIVE.DTV.DUBAI.DUPONT.DURBAN.DVAG.DVR.DZ.EARTH.EAT.EC.ECO.EDEKA.EDU.EDUCATION.EE.EG.EMAIL.EMERCK.ENERGY.ENGINEER.ENGINEERING.ENTERPRISES.EPSON.EQUIPMENT.ER.ERICSSON.ERNI.ES.ESQ.ESTATE.ET.EU.EUROVISION.EUS.EVENTS.EXCHANGE.EXPERT.EXPOSED.EXPRESS.EXTRASPACE.FAGE.FAIL.FAIRWINDS.FAITH.FAMILY.FAN.FANS.FARM.FARMERS.FASHION.FAST.FEDEX.FEEDBACK.FERRARI.FERRERO.FI.FIDELITY.FIDO.FILM.FINAL.FINANCE.FINANCIAL.FIRE.FIRESTONE.FIRMDALE.FISH.FISHING.FIT.FITNESS.FJ.FK.FLICKR.FLIGHTS.FLIR.FLORIST.FLOWERS.FLY.FM.FO.FOO.FOOD.FOOTBALL.FORD.FOREX.FORSALE.FORUM.FOUNDATION.FOX.FR.FREE.FRESENIUS.FRL.FROGANS.FRONTIER.FTR.FUJITSU.FUN.FUND.FURNITURE.FUTBOL.FYI.GA.GAL.GALLERY.GALLO.GALLUP.GAME.GAMES.GAP.GARDEN.GAY.GB.GBIZ.GD.GDN.GE.GEA.GENT.GENTING.GEORGE.GF.GG.GGEE.GH.GI.GIFT.GIFTS.GIVES.GIVING.GL.GLASS.GLE.GLOBAL.GLOBO.GM.GMAIL.GMBH.GMO.GMX.GN.GODADDY.GOLD.GOLDPOINT.GOLF.GOO.GOODYEAR.GOOG.GOOGLE.GOP.GOT.GOV.GP.GQ.GR.GRAINGER.GRAPHICS.GRATIS.GREEN.GRIPE.GROCERY.GROUP.GS.GT.GU.GUCCI.GUGE.GUIDE.GUITARS.GURU.GW.GY.HAIR.HAMBURG.HANGOUT.HAUS.HBO.HDFC.HDFCBANK.HEALTH.HEALTHCARE.HELP.HELSINKI.HERE.HERMES.HIPHOP.HISAMITSU.HITACHI.HIV.HK.HKT.HM.HN.HOCKEY.HOLDINGS.HOLIDAY.HOMEDEPOT.HOMEGOODS.HOMES.HOMESENSE.HONDA.HORSE.HOSPITAL.HOST.HOSTING.HOT.HOTELS.HOTMAIL.HOUSE.HOW.HR.HSBC.HT.HU.HUGHES.HYATT.HYUNDAI.IBM.ICBC.ICE.ICU.ID.IE.IEEE.IFM.IKANO.IL.IM.IMAMAT.IMDB.IMMO.IMMOBILIEN.IN.INC.INDUSTRIES.INFINITI.INFO.ING.INK.INSTITUTE.INSURANCE.INSURE.INT.INTERNATIONAL.INTUIT.INVESTMENTS.IO.IPIRANGA.IQ.IR.IRISH.IS.ISMAILI.IST.ISTANBUL.IT.ITAU.ITV.JAGUAR.JAVA.JCB.JE.JEEP.JETZT.JEWELRY.JIO.JLL.JM.JMP.JNJ.JO.JOBS.JOBURG.JOT.JOY.JP.JPMORGAN.JPRS.JUEGOS.JUNIPER.KAUFEN.KDDI.KE.KERRYHOTELS.KERRYPROPERTIES.KFH.KG.KH.KI.KIA.KIDS.KIM.KINDLE.KITCHEN.KIWI.KM.KN.KOELN.KOMATSU.KOSHER.KP.KPMG.KPN.KR.KRD.KRED.KUOKGROUP.KW.KY.KYOTO.KZ.LA.LACAIXA.LAMBORGHINI.LAMER.LAND.LANDROVER.LANXESS.LASALLE.LAT.LATINO.LATROBE.LAW.LAWYER.LB.LC.LDS.LEASE.LECLERC.LEFRAK.LEGAL.LEGO.LEXUS.LGBT.LI.LIDL.LIFE.LIFEINSURANCE.LIFESTYLE.LIGHTING.LIKE.LILLY.LIMITED.LIMO.LINCOLN.LINK.LIVE.LIVING.LK.LLC.LLP.LOAN.LOANS.LOCKER.LOCUS.LOL.LONDON.LOTTE.LOTTO.LOVE.LPL.LPLFINANCIAL.LR.LS.LT.LTD.LTDA.LU.LUNDBECK.LUXE.LUXURY.LV.LY.MA.MADRID.MAIF.MAISON.MAKEUP.MAN.MANAGEMENT.MANGO.MAP.MARKET.MARKETING.MARKETS.MARRIOTT.MARSHALLS.MATTEL.MBA.MC.MCKINSEY.MD.ME.MED.MEDIA.MEET.MELBOURNE.MEME.MEMORIAL.MEN.MENU.MERCKMSD.MG.MH.MIAMI.MICROSOFT.MIL.MINI.MINT.MIT.MITSUBISHI.MK.ML.MLB.MLS.MM.MMA.MN.MO.MOBI.MOBILE.MODA.MOE.MOI.MOM.MONASH.MONEY.MONSTER.MORMON.MORTGAGE.MOSCOW.MOTO.MOTORCYCLES.MOV.MOVIE.MP.MQ.MR.MS.MSD.MT.MTN.MTR.MU.MUSEUM.MUSIC.MV.MW.MX.MY.MZ.NA.NAB.NAGOYA.NAME.NAVY.NBA.NC.NE.NEC.NET.NETBANK.NETFLIX.NETWORK.NEUSTAR.NEW.NEWS.NEXT.NEXTDIRECT.NEXUS.NF.NFL.NG.NGO.NHK.NI.NICO.NIKE.NIKON.NINJA.NISSAN.NISSAY.NL.NO.NOKIA.NORTON.NOW.NOWRUZ.NOWTV.NP.NR.NRA.NRW.NTT.NU.NYC.NZ.OBI.OBSERVER.OFFICE.OKINAWA.OLAYAN.OLAYANGROUP.OLLO.OM.OMEGA.ONE.ONG.ONL.ONLINE.OOO.OPEN.ORACLE.ORANGE.ORG.ORGANIC.ORIGINS.OSAKA.OTSUKA.OTT.OVH.PA.PAGE.PANASONIC.PARIS.PARS.PARTNERS.PARTS.PARTY.PAY.PCCW.PE.PET.PF.PFIZER.PG.PH.PHARMACY.PHD.PHILIPS.PHONE.PHOTO.PHOTOGRAPHY.PHOTOS.PHYSIO.PICS.PICTET.PICTURES.PID.PIN.PING.PINK.PIONEER.PIZZA.PK.PL.PLACE.PLAY.PLAYSTATION.PLUMBING.PLUS.PM.PN.PNC.POHL.POKER.POLITIE.PORN.POST.PR.PRAXI.PRESS.PRIME.PRO.PROD.PRODUCTIONS.PROF.PROGRESSIVE.PROMO.PROPERTIES.PROPERTY.PROTECTION.PRU.PRUDENTIAL.PS.PT.PUB.PW.PWC.PY.QA.QPON.QUEBEC.QUEST.RACING.RADIO.RE.READ.REALESTATE.REALTOR.REALTY.RECIPES.RED.REDUMBRELLA.REHAB.REISE.REISEN.REIT.RELIANCE.REN.RENT.RENTALS.REPAIR.REPORT.REPUBLICAN.REST.RESTAURANT.REVIEW.REVIEWS.REXROTH.RICH.RICHARDLI.RICOH.RIL.RIO.RIP.RO.ROCKS.RODEO.ROGERS.ROOM.RS.RSVP.RU.RUGBY.RUHR.RUN.RW.RWE.RYUKYU.SA.SAARLAND.SAFE.SAFETY.SAKURA.SALE.SALON.SAMSCLUB.SAMSUNG.SANDVIK.SANDVIKCOROMANT.SANOFI.SAP.SARL.SAS.SAVE.SAXO.SB.SBI.SBS.SC.SCB.SCHAEFFLER.SCHMIDT.SCHOLARSHIPS.SCHOOL.SCHULE.SCHWARZ.SCIENCE.SCOT.SD.SE.SEARCH.SEAT.SECURE.SECURITY.SEEK.SELECT.SENER.SERVICES.SEVEN.SEW.SEX.SEXY.SFR.SG.SH.SHANGRILA.SHARP.SHELL.SHIA.SHIKSHA.SHOES.SHOP.SHOPPING.SHOUJI.SHOW.SI.SILK.SINA.SINGLES.SITE.SJ.SK.SKI.SKIN.SKY.SKYPE.SL.SLING.SM.SMART.SMILE.SN.SNCF.SO.SOCCER.SOCIAL.SOFTBANK.SOFTWARE.SOHU.SOLAR.SOLUTIONS.SONG.SONY.SOY.SPA.SPACE.SPORT.SPOT.SR.SRL.SS.ST.STADA.STAPLES.STAR.STATEBANK.STATEFARM.STC.STCGROUP.STOCKHOLM.STORAGE.STORE.STREAM.STUDIO.STUDY.STYLE.SU.SUCKS.SUPPLIES.SUPPLY.SUPPORT.SURF.SURGERY.SUZUKI.SV.SWATCH.SWISS.SX.SY.SYDNEY.SYSTEMS.SZ.TAB.TAIPEI.TALK.TAOBAO.TARGET.TATAMOTORS.TATAR.TATTOO.TAX.TAXI.TC.TCI.TD.TDK.TEAM.TECH.TECHNOLOGY.TEL.TEMASEK.TENNIS.TEVA.TF.TG.TH.THD.THEATER.THEATRE.TIAA.TICKETS.TIENDA.TIPS.TIRES.TIROL.TJ.TJMAXX.TJX.TK.TKMAXX.TL.TM.TMALL.TN.TO.TODAY.TOKYO.TOOLS.TOP.TORAY.TOSHIBA.TOTAL.TOURS.TOWN.TOYOTA.TOYS.TR.TRADE.TRADING.TRAINING.TRAVEL.TRAVELERS.TRAVELERSINSURANCE.TRUST.TRV.TT.TUBE.TUI.TUNES.TUSHU.TV.TVS.TW.TZ.UA.UBANK.UBS.UG.UK.UNICOM.UNIVERSITY.UNO.UOL.UPS.US.UY.UZ.VA.VACATIONS.VANA.VANGUARD.VC.VE.VEGAS.VENTURES.VERISIGN.VERSICHERUNG.VET.VG.VI.VIAJES.VIDEO.VIG.VIKING.VILLAS.VIN.VIP.VIRGIN.VISA.VISION.VIVA.VIVO.VLAANDEREN.VN.VODKA.VOLVO.VOTE.VOTING.VOTO.VOYAGE.VU.WALES.WALMART.WALTER.WANG.WANGGOU.WATCH.WATCHES.WEATHER.WEATHERCHANNEL.WEBCAM.WEBER.WEBSITE.WED.WEDDING.WEIBO.WEIR.WF.WHOSWHO.WIEN.WIKI.WILLIAMHILL.WIN.WINDOWS.WINE.WINNERS.WME.WOLTERSKLUWER.WOODSIDE.WORK.WORKS.WORLD.WOW.WS.WTC.WTF.XBOX.XEROX.XIHUAN.XIN.XN--11B4C3D.XN--1CK2E1B.XN--1QQW23A.XN--2SCRJ9C.XN--30RR7Y.XN--3BST00M.XN--3DS443G.XN--3E0B707E.XN--3HCRJ9C.XN--3PXU8K.XN--42C2D9A.XN--45BR5CYL.XN--45BRJ9C.XN--45Q11C.XN--4DBRK0CE.XN--4GBRIM.XN--54B7FTA0CC.XN--55QW42G.XN--55QX5D.XN--5SU34J936BGSG.XN--5TZM5G.XN--6FRZ82G.XN--6QQ986B3XL.XN--80ADXHKS.XN--80AO21A.XN--80AQECDR1A.XN--80ASEHDB.XN--80ASWG.XN--8Y0A063A.XN--90A3AC.XN--90AE.XN--90AIS.XN--9DBQ2A.XN--9ET52U.XN--9KRT00A.XN--B4W605FERD.XN--BCK1B9A5DRE4C.XN--C1AVG.XN--C2BR7G.XN--CCK2B3B.XN--CCKWCXETD.XN--CG4BKI.XN--CLCHC0EA0B2G2A9GCD.XN--CZR694B.XN--CZRS0T.XN--CZRU2D.XN--D1ACJ3B.XN--D1ALF.XN--E1A4C.XN--ECKVDTC9D.XN--EFVY88H.XN--FCT429K.XN--FHBEI.XN--FIQ228C5HS.XN--FIQ64B.XN--FIQS8S.XN--FIQZ9S.XN--FJQ720A.XN--FLW351E.XN--FPCRJ9C3D.XN--FZC2C9E2C.XN--FZYS8D69UVGM.XN--G2XX48C.XN--GCKR3F0F.XN--GECRJ9C.XN--GK3AT1E.XN--H2BREG3EVE.XN--H2BRJ9C.XN--H2BRJ9C8C.XN--HXT814E.XN--I1B6B1A6A2E.XN--IMR513N.XN--IO0A7I.XN--J1AEF.XN--J1AMH.XN--J6W193G.XN--JLQ480N2RG.XN--JVR189M.XN--KCRX77D1X4A.XN--KPRW13D.XN--KPRY57D.XN--KPUT3I.XN--L1ACC.XN--LGBBAT1AD8J.XN--MGB9AWBF.XN--MGBA3A3EJT.XN--MGBA3A4F16A.XN--MGBA7C0BBN0A.XN--MGBAAM7A8H.XN--MGBAB2BD.XN--MGBAH1A3HJKRD.XN--MGBAI9AZGQP6J.XN--MGBAYH7GPA.XN--MGBBH1A.XN--MGBBH1A71E.XN--MGBC0A9AZCG.XN--MGBCA7DZDO.XN--MGBCPQ6GPA1A.XN--MGBERP4A5D4AR.XN--MGBGU82A.XN--MGBI4ECEXP.XN--MGBPL2FH.XN--MGBT3DHD.XN--MGBTX2B.XN--MGBX4CD0AB.XN--MIX891F.XN--MK1BU44C.XN--MXTQ1M.XN--NGBC5AZD.XN--NGBE9E0A.XN--NGBRX.XN--NODE.XN--NQV7F.XN--NQV7FS00EMA.XN--NYQY26A.XN--O3CW4H.XN--OGBPF8FL.XN--OTU796D.XN--P1ACF.XN--P1AI.XN--PGBS0DH.XN--PSSY2U.XN--Q7CE6A.XN--Q9JYB4C.XN--QCKA1PMC.XN--QXA6A.XN--QXAM.XN--RHQV96G.XN--ROVU88B.XN--RVC1E0AM3E.XN--S9BRJ9C.XN--SES554G.XN--T60B56A.XN--TCKWE.XN--TIQ49XQYJ.XN--UNUP4Y.XN--VERMGENSBERATER-CTB.XN--VERMGENSBERATUNG-PWB.XN--VHQUV.XN--VUQ861B.XN--W4R85EL8FHU5DNRA.XN--W4RS40L.XN--WGBH1C.XN--WGBL6A.XN--XHQ521B.XN--XKC2AL3HYE2A.XN--XKC2DL3A5EE0H.XN--Y9A3AQ.XN--YFRO4I67O.XN--YGBI2AMMX.XN--ZFR164B.XXX.XYZ.YACHTS.YAHOO.YAMAXUN.YANDEX.YE.YODOBASHI.YOGA.YOKOHAMA.YOU.YOUTUBE.YT.YUN.ZA.ZAPPOS.ZARA.ZERO.ZIP.ZM.ZONE.ZUERICH.ZW`.split(`.`)}),require_commonjs=__commonJSMin(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0});let tlds_js_1=require_tlds();exports.tlds=new Set(tlds_js_1.TLDS.map(tld=>tld.toLowerCase()))}),require_string=__commonJSMin((exports,module)=>{init_dist$1();let{assert:assert$5,escapeRegex}=require_lib$4(),{isDomainValid,isEmailValid,ipRegex,uriRegex}=(init_esm(),__toCommonJS(esm_exports)),Tlds=require_commonjs(),Any$2=require_any(),Common$4=require_common(),internals$5={tlds:Tlds.tlds instanceof Set?{tlds:{allow:Tlds.tlds,deny:null}}:!1,base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:{withPrefix:/^0x[0-9a-f]+$/i,withOptionalPrefix:/^(?:0x)?[0-9a-f]+$/i,withoutPrefix:/^[0-9a-f]+$/i},ipRegex:ipRegex({cidr:`forbidden`}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":`}`,"[":`]`,"(":`)`,"":``},guidVersions:{uuidv1:`1`,uuidv2:`2`,uuidv3:`3`,uuidv4:`4`,uuidv5:`5`,uuidv6:`6`,uuidv7:`7`,uuidv8:`8`},guidSeparators:new Set([void 0,!0,!1,`-`,`:`]),normalizationForms:[`NFC`,`NFD`,`NFKC`,`NFKD`]};module.exports=Any$2.extend({type:`string`,flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:`string`,method(value,{schema,state,prefs}){let normalize=schema.$_getRule(`normalize`);normalize&&(value=value.normalize(normalize.args.form));let casing=schema.$_getRule(`case`);casing&&(value=casing.args.direction===`upper`?value.toLocaleUpperCase():value.toLocaleLowerCase());let trim=schema.$_getRule(`trim`);if(trim&&trim.args.enabled&&(value=value.trim()),schema.$_terms.replacements)for(let replacement of schema.$_terms.replacements)value=value.replace(replacement.pattern,replacement.replacement);let hex=schema.$_getRule(`hex`);if(hex&&hex.args.options.byteAligned&&value.length%2!=0&&(value=`0${value}`),schema.$_getRule(`isoDate`)){let iso=internals$5.isoDate(value);iso&&(value=iso)}if(schema._flags.truncate){let rule=schema.$_getRule(`max`);if(rule){let limit=rule.args.limit;if(Common$4.isResolvable(limit)&&(limit=limit.resolve(value,state,prefs),!Common$4.limit(limit)))return{value,errors:schema.$_createError(`any.ref`,limit,{ref:rule.args.limit,arg:`limit`,reason:`must be a positive integer`},state,prefs)};value=value.slice(0,limit)}}return{value}}},validate(value,{schema,error}){if(typeof value!=`string`)return{value,errors:error(`string.base`)};if(value===``){let min$1=schema.$_getRule(`min`);return min$1&&min$1.args.limit===0?void 0:{value,errors:error(`string.empty`)}}},rules:{alphanum:{method(){return this.$_addRule(`alphanum`)},validate(value,helpers){return/^[a-zA-Z0-9]+$/.test(value)?value:helpers.error(`string.alphanum`)}},base64:{method(options={}){return Common$4.assertOptions(options,[`paddingRequired`,`urlSafe`]),options={urlSafe:!1,paddingRequired:!0,...options},assert$5(typeof options.paddingRequired==`boolean`,`paddingRequired must be boolean`),assert$5(typeof options.urlSafe==`boolean`,`urlSafe must be boolean`),this.$_addRule({name:`base64`,args:{options}})},validate(value,helpers,{options}){let regex=internals$5.base64Regex[options.paddingRequired][options.urlSafe];return regex.test(value)?value:helpers.error(`string.base64`)}},case:{method(direction){return assert$5([`lower`,`upper`].includes(direction),`Invalid case:`,direction),this.$_addRule({name:`case`,args:{direction}})},validate(value,helpers,{direction}){return direction===`lower`&&value===value.toLocaleLowerCase()||direction===`upper`&&value===value.toLocaleUpperCase()?value:helpers.error(`string.${direction}case`)},convert:!0},creditCard:{method(){return this.$_addRule(`creditCard`)},validate(value,helpers){let i$4=value.length,sum=0,mul=1;for(;i$4--;){let char=value.charAt(i$4)*mul;sum+=char-(char>9)*9,mul^=3}return sum>0&&sum%10==0?value:helpers.error(`string.creditCard`)}},dataUri:{method(options={}){return Common$4.assertOptions(options,[`paddingRequired`]),options={paddingRequired:!0,...options},assert$5(typeof options.paddingRequired==`boolean`,`paddingRequired must be boolean`),this.$_addRule({name:`dataUri`,args:{options}})},validate(value,helpers,{options}){let matches=value.match(internals$5.dataUriRegex);if(matches){if(!matches[2]||matches[2]!==`base64`)return value;let base64regex=internals$5.base64Regex[options.paddingRequired].false;if(base64regex.test(matches[3]))return value}return helpers.error(`string.dataUri`)}},domain:{method(options){options&&Common$4.assertOptions(options,[`allowFullyQualified`,`allowUnicode`,`allowUnderscore`,`maxDomainSegments`,`minDomainSegments`,`tlds`]);let address=internals$5.addressOptions(options);return this.$_addRule({name:`domain`,args:{options},address})},validate(value,helpers,args$1,{address}){return isDomainValid(value,address)?value:helpers.error(`string.domain`)}},email:{method(options={}){Common$4.assertOptions(options,[`allowFullyQualified`,`allowUnicode`,`ignoreLength`,`maxDomainSegments`,`minDomainSegments`,`multiple`,`separator`,`tlds`]),assert$5(options.multiple===void 0||typeof options.multiple==`boolean`,`multiple option must be an boolean`);let address=internals$5.addressOptions(options),regex=RegExp(`\\s*[${options.separator?escapeRegex(options.separator):`,`}]\\s*`);return this.$_addRule({name:`email`,args:{options},regex,address})},validate(value,helpers,{options},{regex,address}){let emails=options.multiple?value.split(regex):[value],invalids=[];for(let email of emails)isEmailValid(email,address)||invalids.push(email);return invalids.length?helpers.error(`string.email`,{value,invalids}):value}},guid:{alias:`uuid`,method(options={}){Common$4.assertOptions(options,[`version`,`separator`,`wrapper`]),assert$5(options.wrapper===void 0||typeof options.wrapper==`boolean`||typeof options.wrapper==`string`&&typeof internals$5.guidBrackets[options.wrapper]==`string`,`"wrapper" must be true, false, or one of "${Object.keys(internals$5.guidBrackets).filter(Boolean).join(`", "`)}"`);let versionNumbers=``;if(options.version){let versions=[].concat(options.version);assert$5(versions.length>=1,`version must have at least 1 valid version specified`);let set=new Set;for(let i$4=0;i$4<versions.length;++i$4){let version$3=versions[i$4];assert$5(typeof version$3==`string`,`version at position `+i$4+` must be a string`);let versionNumber=internals$5.guidVersions[version$3.toLowerCase()];assert$5(versionNumber,`version at position `+i$4+` must be one of `+Object.keys(internals$5.guidVersions).join(`, `)),assert$5(!set.has(versionNumber),`version at position `+i$4+` must not be a duplicate`),versionNumbers+=versionNumber,set.add(versionNumber)}}assert$5(internals$5.guidSeparators.has(options.separator),`separator must be one of true, false, "-", or ":"`);let separator=options.separator===void 0?`[:-]?`:options.separator===!0?`[:-]`:options.separator===!1?`[]?`:`\\${options.separator}`,wrapperStart,wrapperEnd;options.wrapper===void 0?(wrapperStart=`[\\[{\\(]?`,wrapperEnd=`[\\]}\\)]?`):options.wrapper===!0?(wrapperStart=`[\\[{\\(]`,wrapperEnd=`[\\]}\\)]`):options.wrapper===!1?(wrapperStart=``,wrapperEnd=``):(wrapperStart=escapeRegex(options.wrapper),wrapperEnd=escapeRegex(internals$5.guidBrackets[options.wrapper]));let regex=RegExp(`^(${wrapperStart})[0-9A-F]{8}(${separator})[0-9A-F]{4}\\2?[${versionNumbers||`0-9A-F`}][0-9A-F]{3}\\2?[${versionNumbers?`89AB`:`0-9A-F`}][0-9A-F]{3}\\2?[0-9A-F]{12}(${wrapperEnd})$`,`i`);return this.$_addRule({name:`guid`,args:{options},regex})},validate(value,helpers,args$1,{regex}){let results=regex.exec(value);if(!results)return helpers.error(`string.guid`);let open=results[1],close=results[results.length-1];return(open||close)&&internals$5.guidBrackets[open]!==close?helpers.error(`string.guid`):value}},hex:{method(options={}){return Common$4.assertOptions(options,[`byteAligned`,`prefix`]),options={byteAligned:!1,prefix:!1,...options},assert$5(typeof options.byteAligned==`boolean`,`byteAligned must be boolean`),assert$5(typeof options.prefix==`boolean`||options.prefix===`optional`,`prefix must be boolean or "optional"`),this.$_addRule({name:`hex`,args:{options}})},validate(value,helpers,{options}){let re$5=options.prefix===`optional`?internals$5.hexRegex.withOptionalPrefix:options.prefix===!0?internals$5.hexRegex.withPrefix:internals$5.hexRegex.withoutPrefix;return re$5.test(value)?options.byteAligned&&value.length%2!=0?helpers.error(`string.hexAlign`):value:helpers.error(`string.hex`)}},hostname:{method(){return this.$_addRule(`hostname`)},validate(value,helpers){return isDomainValid(value,{minDomainSegments:1})||internals$5.ipRegex.test(value)?value:helpers.error(`string.hostname`)}},insensitive:{method(){return this.$_setFlag(`insensitive`,!0)}},ip:{method(options={}){Common$4.assertOptions(options,[`cidr`,`version`]);let{cidr,versions,regex}=ipRegex(options),version$3=options.version?versions:void 0;return this.$_addRule({name:`ip`,args:{options:{cidr,version:version$3}},regex})},validate(value,helpers,{options},{regex}){return regex.test(value)?value:options.version?helpers.error(`string.ipVersion`,{value,cidr:options.cidr,version:options.version}):helpers.error(`string.ip`,{value,cidr:options.cidr})}},isoDate:{method(){return this.$_addRule(`isoDate`)},validate(value,{error}){return internals$5.isoDate(value)?value:error(`string.isoDate`)}},isoDuration:{method(){return this.$_addRule(`isoDuration`)},validate(value,helpers){return internals$5.isoDurationRegex.test(value)?value:helpers.error(`string.isoDuration`)}},length:{method(limit,encoding){return internals$5.length(this,`length`,limit,`=`,encoding)},validate(value,helpers,{limit,encoding},{name:name$1,operator,args:args$1}){let length=encoding?Buffer$1&&Buffer$1.byteLength(value,encoding):value.length;return Common$4.compare(length,limit,operator)?value:helpers.error(`string.`+name$1,{limit:args$1.limit,value,encoding})},args:[{name:`limit`,ref:!0,assert:Common$4.limit,message:`must be a positive integer`},`encoding`]},lowercase:{method(){return this.case(`lower`)}},max:{method(limit,encoding){return internals$5.length(this,`max`,limit,`<=`,encoding)},args:[`limit`,`encoding`]},min:{method(limit,encoding){return internals$5.length(this,`min`,limit,`>=`,encoding)},args:[`limit`,`encoding`]},normalize:{method(form=`NFC`){return assert$5(internals$5.normalizationForms.includes(form),`normalization form must be one of `+internals$5.normalizationForms.join(`, `)),this.$_addRule({name:`normalize`,args:{form}})},validate(value,{error},{form}){return value===value.normalize(form)?value:error(`string.normalize`,{value,form})},convert:!0},pattern:{alias:`regex`,method(regex,options={}){assert$5(regex instanceof RegExp,`regex must be a RegExp`),assert$5(!regex.flags.includes(`g`)&&!regex.flags.includes(`y`),`regex should not use global or sticky mode`),typeof options==`string`&&(options={name:options}),Common$4.assertOptions(options,[`invert`,`name`]);let errorCode$1=[`string.pattern`,options.invert?`.invert`:``,options.name?`.name`:`.base`].join(``);return this.$_addRule({name:`pattern`,args:{regex,options},errorCode:errorCode$1})},validate(value,helpers,{regex,options},{errorCode:errorCode$1}){let patternMatch=regex.test(value);return patternMatch^options.invert?value:helpers.error(errorCode$1,{name:options.name,regex,value})},args:[`regex`,`options`],multi:!0},replace:{method(pattern,replacement){typeof pattern==`string`&&(pattern=new RegExp(escapeRegex(pattern),`g`)),assert$5(pattern instanceof RegExp,`pattern must be a RegExp`),assert$5(typeof replacement==`string`,`replacement must be a String`);let obj=this.clone();return obj.$_terms.replacements||(obj.$_terms.replacements=[]),obj.$_terms.replacements.push({pattern,replacement}),obj}},token:{method(){return this.$_addRule(`token`)},validate(value,helpers){return/^\w+$/.test(value)?value:helpers.error(`string.token`)}},trim:{method(enabled=!0){return assert$5(typeof enabled==`boolean`,`enabled must be a boolean`),this.$_addRule({name:`trim`,args:{enabled}})},validate(value,helpers,{enabled}){return!enabled||value===value.trim()?value:helpers.error(`string.trim`)},convert:!0},truncate:{method(enabled=!0){return assert$5(typeof enabled==`boolean`,`enabled must be a boolean`),this.$_setFlag(`truncate`,enabled)}},uppercase:{method(){return this.case(`upper`)}},uri:{method(options={}){Common$4.assertOptions(options,[`allowRelative`,`allowQuerySquareBrackets`,`domain`,`relativeOnly`,`scheme`,`encodeUri`]),options.domain&&Common$4.assertOptions(options.domain,[`allowFullyQualified`,`allowUnicode`,`maxDomainSegments`,`minDomainSegments`,`tlds`]);let{regex,scheme}=uriRegex(options),domain=options.domain?internals$5.addressOptions(options.domain):null;return this.$_addRule({name:`uri`,args:{options},regex,domain,scheme})},validate(value,helpers,{options},{regex,domain,scheme}){if([`http:/`,`https:/`].includes(value))return helpers.error(`string.uri`);let match$2=regex.exec(value);if(!match$2&&helpers.prefs.convert&&options.encodeUri){let encoded=encodeURI(value);match$2=regex.exec(encoded),match$2&&(value=encoded)}if(match$2){let matched=match$2[1]||match$2[2];return domain&&(!options.allowRelative||matched)&&!isDomainValid(matched,domain)?helpers.error(`string.domain`,{value:matched}):value}return options.relativeOnly?helpers.error(`string.uriRelativeOnly`):options.scheme?helpers.error(`string.uriCustomScheme`,{scheme,value}):helpers.error(`string.uri`)}}},manifest:{build(obj,desc$1){if(desc$1.replacements)for(let{pattern,replacement}of desc$1.replacements)obj=obj.replace(pattern,replacement);return obj}},messages:{"string.alphanum":`{{#label}} must only contain alpha-numeric characters`,"string.base":`{{#label}} must be a string`,"string.base64":`{{#label}} must be a valid base64 string`,"string.creditCard":`{{#label}} must be a credit card`,"string.dataUri":`{{#label}} must be a valid dataUri string`,"string.domain":`{{#label}} must contain a valid domain name`,"string.email":`{{#label}} must be a valid email`,"string.empty":`{{#label}} is not allowed to be empty`,"string.guid":`{{#label}} must be a valid GUID`,"string.hex":`{{#label}} must only contain hexadecimal characters`,"string.hexAlign":`{{#label}} hex decoded representation must be byte aligned`,"string.hostname":`{{#label}} must be a valid hostname`,"string.ip":`{{#label}} must be a valid ip address with a {{#cidr}} CIDR`,"string.ipVersion":`{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR`,"string.isoDate":`{{#label}} must be in iso format`,"string.isoDuration":`{{#label}} must be a valid ISO 8601 duration`,"string.length":`{{#label}} length must be {{#limit}} characters long`,"string.lowercase":`{{#label}} must only contain lowercase characters`,"string.max":`{{#label}} length must be less than or equal to {{#limit}} characters long`,"string.min":`{{#label}} length must be at least {{#limit}} characters long`,"string.normalize":`{{#label}} must be unicode normalized in the {{#form}} form`,"string.token":`{{#label}} must only contain alpha-numeric and underscore characters`,"string.pattern.base":`{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}`,"string.pattern.name":`{{#label}} with value {:[.]} fails to match the {{#name}} pattern`,"string.pattern.invert.base":`{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}`,"string.pattern.invert.name":`{{#label}} with value {:[.]} matches the inverted {{#name}} pattern`,"string.trim":`{{#label}} must not have leading or trailing whitespace`,"string.uri":`{{#label}} must be a valid uri`,"string.uriCustomScheme":`{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern`,"string.uriRelativeOnly":`{{#label}} must be a valid relative uri`,"string.uppercase":`{{#label}} must only contain uppercase characters`}}),internals$5.addressOptions=function(options){if(!options)return internals$5.tlds||options;if(assert$5(options.minDomainSegments===void 0||Number.isSafeInteger(options.minDomainSegments)&&options.minDomainSegments>0,`minDomainSegments must be a positive integer`),assert$5(options.maxDomainSegments===void 0||Number.isSafeInteger(options.maxDomainSegments)&&options.maxDomainSegments>0,`maxDomainSegments must be a positive integer`),options.tlds===!1)return options;if(options.tlds===!0||options.tlds===void 0)return assert$5(internals$5.tlds,`Built-in TLD list disabled`),Object.assign({},options,internals$5.tlds);assert$5(typeof options.tlds==`object`,`tlds must be true, false, or an object`);let deny=options.tlds.deny;if(deny)return Array.isArray(deny)&&(options=Object.assign({},options,{tlds:{deny:new Set(deny)}})),assert$5(options.tlds.deny instanceof Set,`tlds.deny must be an array, Set, or boolean`),assert$5(!options.tlds.allow,`Cannot specify both tlds.allow and tlds.deny lists`),internals$5.validateTlds(options.tlds.deny,`tlds.deny`),options;let allow=options.tlds.allow;return allow?allow===!0?(assert$5(internals$5.tlds,`Built-in TLD list disabled`),Object.assign({},options,internals$5.tlds)):(Array.isArray(allow)&&(options=Object.assign({},options,{tlds:{allow:new Set(allow)}})),assert$5(options.tlds.allow instanceof Set,`tlds.allow must be an array, Set, or boolean`),internals$5.validateTlds(options.tlds.allow,`tlds.allow`),options):{...options,tlds:!1}},internals$5.validateTlds=function(set,source){for(let tld of set)assert$5(isDomainValid(tld,{minDomainSegments:1,maxDomainSegments:1}),`${source} must contain valid top level domain names`)},internals$5.isoDate=function(value){if(!Common$4.isIsoDate(value))return null;/.*T.*[+-]\d\d$/.test(value)&&(value+=`00`);let date=new Date(value);return isNaN(date.getTime())?null:date.toISOString()},internals$5.length=function(schema,name$1,limit,operator,encoding){return assert$5(!encoding||Buffer$1&&Buffer$1.isEncoding(encoding),`Invalid encoding:`,encoding),schema.$_addRule({name:name$1,method:`length`,args:{limit,encoding},operator})}}),require_symbol=__commonJSMin((exports,module)=>{let{assert:assert$4}=require_lib$4(),Any$1=require_any(),internals$4={};internals$4.Map=class extends Map{slice(){return new internals$4.Map(this)}},module.exports=Any$1.extend({type:`symbol`,terms:{map:{init:new internals$4.Map}},coerce:{method(value,{schema,error}){let lookup$2=schema.$_terms.map.get(value);return lookup$2&&(value=lookup$2),!schema._flags.only||typeof value==`symbol`?{value}:{value,errors:error(`symbol.map`,{map:schema.$_terms.map})}}},validate(value,{error}){if(typeof value!=`symbol`)return{value,errors:error(`symbol.base`)}},rules:{map:{method(iterable){iterable&&!iterable[Symbol.iterator]&&typeof iterable==`object`&&(iterable=Object.entries(iterable)),assert$4(iterable&&iterable[Symbol.iterator],`Iterable must be an iterable or object`);let obj=this.clone(),symbols=[];for(let entry of iterable){assert$4(entry&&entry[Symbol.iterator],`Entry must be an iterable`);let[key,value]=entry;assert$4(typeof key!=`object`&&typeof key!=`function`&&typeof key!=`symbol`,`Key must not be of type object, function, or Symbol`),assert$4(typeof value==`symbol`,`Value must be a Symbol`),obj.$_terms.map.set(key,value),symbols.push(value)}return obj.valid(...symbols)}}},manifest:{build(obj,desc$1){return desc$1.map&&(obj=obj.map(desc$1.map)),obj}},messages:{"symbol.base":`{{#label}} must be a symbol`,"symbol.map":`{{#label}} must be one of {{#map}}`}})}),require_binary=__commonJSMin((exports,module)=>{init_dist$1();let{assert:assert$3}=require_lib$4(),Any=require_any(),Common$3=require_common();module.exports=Any.extend({type:`binary`,coerce:{from:[`string`,`object`],method(value,{schema}){if(typeof value==`string`||value!==null&&value.type===`Buffer`)try{return{value:Buffer$1.from(value,schema._flags.encoding)}}catch{}}},validate(value,{error}){if(!Buffer$1.isBuffer(value))return{value,errors:error(`binary.base`)}},rules:{encoding:{method(encoding){return assert$3(Buffer$1.isEncoding(encoding),`Invalid encoding:`,encoding),this.$_setFlag(`encoding`,encoding)}},length:{method(limit){return this.$_addRule({name:`length`,method:`length`,args:{limit},operator:`=`})},validate(value,helpers,{limit},{name:name$1,operator,args:args$1}){return Common$3.compare(value.length,limit,operator)?value:helpers.error(`binary.`+name$1,{limit:args$1.limit,value})},args:[{name:`limit`,ref:!0,assert:Common$3.limit,message:`must be a positive integer`}]},max:{method(limit){return this.$_addRule({name:`max`,method:`length`,args:{limit},operator:`<=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`length`,args:{limit},operator:`>=`})}}},cast:{string:{from:value=>Buffer$1.isBuffer(value),to(value,helpers){return value.toString()}}},messages:{"binary.base":`{{#label}} must be a buffer or a string`,"binary.length":`{{#label}} must be {{#limit}} bytes`,"binary.max":`{{#label}} must be less than or equal to {{#limit}} bytes`,"binary.min":`{{#label}} must be at least {{#limit}} bytes`}})}),require_lib=__commonJSMin((exports,module)=>{init_dist$1();let{assert:assert$2,clone:clone$5}=require_lib$4(),Cache$1=require_cache(),Common$2=require_common(),Compile$1=require_compile(),Errors$1=require_errors(),Extend$1=require_extend(),Manifest$1=require_manifest(),Ref$1=require_ref(),Template$2=require_template(),Trace$1=require_trace(),Schemas$2,internals$3={types:{alternatives:require_alternatives(),any:require_any(),array:require_array(),boolean:require_boolean(),date:require_date(),function:require_function(),link:require_link(),number:require_number(),object:require_object(),string:require_string(),symbol:require_symbol()},aliases:{alt:`alternatives`,bool:`boolean`,func:`function`}};Buffer$1&&(internals$3.types.binary=require_binary()),internals$3.root=function(){let root={_types:new Set(Object.keys(internals$3.types))};for(let type of root._types)root[type]=function(...args$1){return assert$2(!args$1.length||[`alternatives`,`link`,`object`].includes(type),`The`,type,`type does not allow arguments`),internals$3.generate(this,internals$3.types[type],args$1)};for(let method of[`allow`,`custom`,`disallow`,`equal`,`exist`,`forbidden`,`invalid`,`not`,`only`,`optional`,`options`,`prefs`,`preferences`,`required`,`strip`,`valid`,`when`])root[method]=function(...args$1){return this.any()[method](...args$1)};for(let alias in Object.assign(root,internals$3.methods),internals$3.aliases){let target=internals$3.aliases[alias];root[alias]=root[target]}return root.x=root.expression,Trace$1.setup&&Trace$1.setup(root),root},internals$3.methods={ValidationError:Errors$1.ValidationError,version:Common$2.version,cache:Cache$1.provider,assert(value,schema,...args$1){internals$3.assert(value,schema,!0,args$1)},attempt(value,schema,...args$1){return internals$3.assert(value,schema,!1,args$1)},build(desc$1){return assert$2(typeof Manifest$1.build==`function`,`Manifest functionality disabled`),Manifest$1.build(this,desc$1)},checkPreferences(prefs){Common$2.checkPreferences(prefs)},compile(schema,options){return Compile$1.compile(this,schema,options)},defaults(modifier){assert$2(typeof modifier==`function`,`modifier must be a function`);let joi=Object.assign({},this);for(let type of joi._types){let schema=modifier(joi[type]());assert$2(Common$2.isSchema(schema),`modifier must return a valid schema object`),joi[type]=function(...args$1){return internals$3.generate(this,schema,args$1)}}return joi},expression(...args$1){return new Template$2(...args$1)},extend(...extensions){Common$2.verifyFlat(extensions,`extend`),Schemas$2||=require_schemas(),assert$2(extensions.length,`You need to provide at least one extension`),this.assert(extensions,Schemas$2.extensions);let joi=Object.assign({},this);joi._types=new Set(joi._types);for(let extension of extensions){typeof extension==`function`&&(extension=extension(joi)),this.assert(extension,Schemas$2.extension);let expanded=internals$3.expandExtension(extension,joi);for(let item of expanded){assert$2(joi[item.type]===void 0||joi._types.has(item.type),`Cannot override name`,item.type);let base=item.base||this.any(),schema=Extend$1.type(base,item);joi._types.add(item.type),joi[item.type]=function(...args$1){return internals$3.generate(this,schema,args$1)}}}return joi},isError:Errors$1.ValidationError.isError,isExpression:Template$2.isTemplate,isRef:Ref$1.isRef,isSchema:Common$2.isSchema,in(...args$1){return Ref$1.in(...args$1)},override:Common$2.symbols.override,ref(...args$1){return Ref$1.create(...args$1)},types(){let types$1={};for(let type of this._types)types$1[type]=this[type]();for(let target in internals$3.aliases)types$1[target]=this[target]();return types$1}},internals$3.assert=function(value,schema,annotate,args$1){let message=args$1[0]instanceof Error||typeof args$1[0]==`string`?args$1[0]:null,options=message===null?args$1[0]:args$1[1],result=schema.validate(value,Common$2.preferences({errors:{stack:!0}},options||{})),error=result.error;if(!error)return result.value;if(message instanceof Error)throw message;let display=annotate&&typeof error.annotate==`function`?error.annotate():error.message;throw error instanceof Errors$1.ValidationError||(error=clone$5(error)),error.message=message?`${message} ${display}`:display,error},internals$3.generate=function(root,schema,args$1){return assert$2(root,`Must be invoked on a Joi instance.`),schema.$_root=root,!schema._definition.args||!args$1.length?schema:schema._definition.args(schema,...args$1)},internals$3.expandExtension=function(extension,joi){if(typeof extension.type==`string`)return[extension];let extended=[];for(let type of joi._types)if(extension.type.test(type)){let item=Object.assign({},extension);item.type=type,item.base=joi[type](),extended.push(item)}return extended},module.exports=internals$3.root()}),require_schemas=__commonJSMin(exports=>{let Joi$1=require_lib(),internals$2={};internals$2.wrap=Joi$1.string().min(1).max(2).allow(!1),exports.preferences=Joi$1.object({allowUnknown:Joi$1.boolean(),abortEarly:Joi$1.boolean(),artifacts:Joi$1.boolean(),cache:Joi$1.boolean(),context:Joi$1.object(),convert:Joi$1.boolean(),dateFormat:Joi$1.valid(`date`,`iso`,`string`,`time`,`utc`),debug:Joi$1.boolean(),errors:{escapeHtml:Joi$1.boolean(),label:Joi$1.valid(`path`,`key`,!1),language:[Joi$1.string(),Joi$1.object().ref()],render:Joi$1.boolean(),stack:Joi$1.boolean(),wrap:{label:internals$2.wrap,array:internals$2.wrap,string:internals$2.wrap}},externals:Joi$1.boolean(),messages:Joi$1.object(),noDefaults:Joi$1.boolean(),nonEnumerables:Joi$1.boolean(),presence:Joi$1.valid(`required`,`optional`,`forbidden`),skipFunctions:Joi$1.boolean(),stripUnknown:Joi$1.object({arrays:Joi$1.boolean(),objects:Joi$1.boolean()}).or(`arrays`,`objects`).allow(!0,!1),warnings:Joi$1.boolean()}).strict(),internals$2.nameRx=/^[a-zA-Z0-9]\w*$/,internals$2.rule=Joi$1.object({alias:Joi$1.array().items(Joi$1.string().pattern(internals$2.nameRx)).single(),args:Joi$1.array().items(Joi$1.string(),Joi$1.object({name:Joi$1.string().pattern(internals$2.nameRx).required(),ref:Joi$1.boolean(),assert:Joi$1.alternatives([Joi$1.function(),Joi$1.object().schema()]).conditional(`ref`,{is:!0,then:Joi$1.required()}),normalize:Joi$1.function(),message:Joi$1.string().when(`assert`,{is:Joi$1.function(),then:Joi$1.required()})})),convert:Joi$1.boolean(),manifest:Joi$1.boolean(),method:Joi$1.function().allow(!1),multi:Joi$1.boolean(),validate:Joi$1.function()}),exports.extension=Joi$1.object({type:Joi$1.alternatives([Joi$1.string(),Joi$1.object().regex()]).required(),args:Joi$1.function(),cast:Joi$1.object().pattern(internals$2.nameRx,Joi$1.object({from:Joi$1.function().maxArity(1).required(),to:Joi$1.function().minArity(1).maxArity(2).required()})),base:Joi$1.object().schema().when(`type`,{is:Joi$1.object().regex(),then:Joi$1.forbidden()}),coerce:[Joi$1.function().maxArity(3),Joi$1.object({method:Joi$1.function().maxArity(3).required(),from:Joi$1.array().items(Joi$1.string()).single()})],flags:Joi$1.object().pattern(internals$2.nameRx,Joi$1.object({setter:Joi$1.string(),default:Joi$1.any()})),manifest:{build:Joi$1.function().arity(2)},messages:[Joi$1.object(),Joi$1.string()],modifiers:Joi$1.object().pattern(internals$2.nameRx,Joi$1.function().minArity(1).maxArity(2)),overrides:Joi$1.object().pattern(internals$2.nameRx,Joi$1.function()),prepare:Joi$1.function().maxArity(3),rebuild:Joi$1.function().arity(1),rules:Joi$1.object().pattern(internals$2.nameRx,internals$2.rule),terms:Joi$1.object().pattern(internals$2.nameRx,Joi$1.object({init:Joi$1.array().allow(null).required(),manifest:Joi$1.object().pattern(/.+/,[Joi$1.valid(`schema`,`single`),Joi$1.object({mapped:Joi$1.object({from:Joi$1.string().required(),to:Joi$1.string().required()}).required()})])})),validate:Joi$1.function().maxArity(3)}).strict(),exports.extensions=Joi$1.array().items(Joi$1.object(),Joi$1.function().arity(1)).strict(),internals$2.desc={buffer:Joi$1.object({buffer:Joi$1.string()}),func:Joi$1.object({function:Joi$1.function().required(),options:{literal:!0}}),override:Joi$1.object({override:!0}),ref:Joi$1.object({ref:Joi$1.object({type:Joi$1.valid(`value`,`global`,`local`),path:Joi$1.array().required(),separator:Joi$1.string().length(1).allow(!1),ancestor:Joi$1.number().min(0).integer().allow(`root`),map:Joi$1.array().items(Joi$1.array().length(2)).min(1),adjust:Joi$1.function(),iterables:Joi$1.boolean(),in:Joi$1.boolean(),render:Joi$1.boolean()}).required()}),regex:Joi$1.object({regex:Joi$1.string().min(3)}),special:Joi$1.object({special:Joi$1.valid(`deep`).required()}),template:Joi$1.object({template:Joi$1.string().required(),options:Joi$1.object()}),value:Joi$1.object({value:Joi$1.alternatives([Joi$1.object(),Joi$1.array()]).required()})},internals$2.desc.entity=Joi$1.alternatives([Joi$1.array().items(Joi$1.link(`...`)),Joi$1.boolean(),Joi$1.function(),Joi$1.number(),Joi$1.string(),internals$2.desc.buffer,internals$2.desc.func,internals$2.desc.ref,internals$2.desc.regex,internals$2.desc.special,internals$2.desc.template,internals$2.desc.value,Joi$1.link(`/`)]),internals$2.desc.values=Joi$1.array().items(null,Joi$1.boolean(),Joi$1.function(),Joi$1.number().allow(1/0,-1/0),Joi$1.string().allow(``),Joi$1.symbol(),internals$2.desc.buffer,internals$2.desc.func,internals$2.desc.override,internals$2.desc.ref,internals$2.desc.regex,internals$2.desc.template,internals$2.desc.value),internals$2.desc.messages=Joi$1.object().pattern(/.+/,[Joi$1.string(),internals$2.desc.template,Joi$1.object().pattern(/.+/,[Joi$1.string(),internals$2.desc.template])]),exports.description=Joi$1.object({type:Joi$1.string().required(),flags:Joi$1.object({cast:Joi$1.string(),default:Joi$1.any(),description:Joi$1.string(),empty:Joi$1.link(`/`),failover:internals$2.desc.entity,id:Joi$1.string(),label:Joi$1.string(),only:!0,presence:[`optional`,`required`,`forbidden`],result:[`raw`,`strip`],strip:Joi$1.boolean(),unit:Joi$1.string()}).unknown(),preferences:{allowUnknown:Joi$1.boolean(),abortEarly:Joi$1.boolean(),artifacts:Joi$1.boolean(),cache:Joi$1.boolean(),convert:Joi$1.boolean(),dateFormat:[`date`,`iso`,`string`,`time`,`utc`],errors:{escapeHtml:Joi$1.boolean(),label:[`path`,`key`],language:[Joi$1.string(),internals$2.desc.ref],wrap:{label:internals$2.wrap,array:internals$2.wrap}},externals:Joi$1.boolean(),messages:internals$2.desc.messages,noDefaults:Joi$1.boolean(),nonEnumerables:Joi$1.boolean(),presence:[`required`,`optional`,`forbidden`],skipFunctions:Joi$1.boolean(),stripUnknown:Joi$1.object({arrays:Joi$1.boolean(),objects:Joi$1.boolean()}).or(`arrays`,`objects`).allow(!0,!1),warnings:Joi$1.boolean()},allow:internals$2.desc.values,invalid:internals$2.desc.values,rules:Joi$1.array().min(1).items({name:Joi$1.string().required(),args:Joi$1.object().min(1),keep:Joi$1.boolean(),message:[Joi$1.string(),internals$2.desc.messages],warn:Joi$1.boolean()}),keys:Joi$1.object().pattern(/.*/,Joi$1.link(`/`)),link:internals$2.desc.ref}).pattern(/^[a-z]\w*$/,Joi$1.any())}),require_common=__commonJSMin(exports=>{let{assert:Assert,AssertError}=require_lib$4(),Pkg=(init_package(),__toCommonJS(package_exports).default),Messages$1,Schemas$1,internals$1={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};exports.version=Pkg.version,exports.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:`iso`,errors:{escapeHtml:!1,label:`path`,language:null,render:!0,stack:!1,wrap:{label:`"`,array:`[]`}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:`optional`,skipFunctions:!1,stripUnknown:!1,warnings:!1},exports.symbols={any:Symbol.for(`@hapi/joi/schema`),arraySingle:Symbol(`arraySingle`),deepDefault:Symbol(`deepDefault`),errors:Symbol(`errors`),literal:Symbol(`literal`),override:Symbol(`override`),parent:Symbol(`parent`),prefs:Symbol(`prefs`),ref:Symbol(`ref`),template:Symbol(`template`),values:Symbol(`values`)},exports.assertOptions=function(options,keys,name$1=`Options`){Assert(options&&typeof options==`object`&&!Array.isArray(options),`Options must be of type object`);let unknownKeys=Object.keys(options).filter(k=>!keys.includes(k));Assert(unknownKeys.length===0,`${name$1} contain unknown keys: ${unknownKeys}`)},exports.checkPreferences=function(prefs){Schemas$1||=require_schemas();let result=Schemas$1.preferences.validate(prefs);if(result.error)throw new AssertError([result.error.details[0].message])},exports.compare=function(a,b,operator){switch(operator){case`=`:return a===b;case`>`:return a>b;case`<`:return a<b;case`>=`:return a>=b;case`<=`:return a<=b}},exports.default=function(value,defaultValue){return value===void 0?defaultValue:value},exports.isIsoDate=function(date){return internals$1.isoDate.test(date)},exports.isNumber=function(value){return typeof value==`number`&&!isNaN(value)},exports.isResolvable=function(obj){return obj?obj[exports.symbols.ref]||obj[exports.symbols.template]:!1},exports.isSchema=function(schema,options={}){let any=schema&&schema[exports.symbols.any];return any?(Assert(options.legacy||any.version===exports.version,`Cannot mix different versions of joi schemas`),!0):!1},exports.isValues=function(obj){return obj[exports.symbols.values]},exports.limit=function(value){return Number.isSafeInteger(value)&&value>=0},exports.preferences=function(target,source){Messages$1||=require_messages(),target||={},source||={};let merged=Object.assign({},target,source);return source.errors&&target.errors&&(merged.errors=Object.assign({},target.errors,source.errors),merged.errors.wrap=Object.assign({},target.errors.wrap,source.errors.wrap)),source.messages&&(merged.messages=Messages$1.compile(source.messages,target.messages)),delete merged[exports.symbols.prefs],merged},exports.tryWithPath=function(fn$1,key,options={}){try{return fn$1()}catch(err$1){throw err$1.path===void 0?err$1.path=key:err$1.path=key+`.`+err$1.path,options.append&&(err$1.message=`${err$1.message} (${err$1.path})`),err$1}},exports.validateArg=function(value,label,{assert:assert$30,message}){if(exports.isSchema(assert$30)){let result=assert$30.validate(value);return result.error?result.error.message:void 0}else if(!assert$30(value))return label?`${label} ${message}`:message},exports.verifyFlat=function(args$1,method){for(let arg of args$1)Assert(!Array.isArray(arg),`Method no longer accepts array arguments:`,method)}}),require_ref=__commonJSMin(exports=>{let{assert:assert$1,clone:clone$4,reach}=require_lib$4(),Common$1=require_common(),Template$1,internals={symbol:Symbol(`ref`),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:`.`,type:`value`}};exports.create=function(key,options={}){assert$1(typeof key==`string`,`Invalid reference key:`,key),Common$1.assertOptions(options,[`adjust`,`ancestor`,`in`,`iterables`,`map`,`prefix`,`render`,`separator`]),assert$1(!options.prefix||typeof options.prefix==`object`,`options.prefix must be of type object`);let ref=Object.assign({},internals.defaults,options);delete ref.prefix;let separator=ref.separator,context=internals.context(key,separator,options.prefix);if(ref.type=context.type,key=context.key,ref.type===`value`)if(context.root&&(assert$1(!separator||key[0]!==separator,`Cannot specify relative path with root prefix`),ref.ancestor=`root`,key||=null),separator&&separator===key)key=null,ref.ancestor=0;else if(ref.ancestor!==void 0)assert$1(!separator||!key||key[0]!==separator,`Cannot combine prefix with ancestor option`);else{let[ancestor,slice]=internals.ancestor(key,separator);slice&&(key=key.slice(slice),key===``&&(key=null)),ref.ancestor=ancestor}return ref.path=separator?key===null?[]:key.split(separator):[key],new internals.Ref(ref)},exports.in=function(key,options={}){return exports.create(key,{...options,in:!0})},exports.isRef=function(ref){return ref?!!ref[Common$1.symbols.ref]:!1},internals.Ref=class{constructor(options){assert$1(typeof options==`object`,`Invalid reference construction`),Common$1.assertOptions(options,[`adjust`,`ancestor`,`in`,`iterables`,`map`,`path`,`render`,`separator`,`type`,`depth`,`key`,`root`,`display`]),assert$1([!1,void 0].includes(options.separator)||typeof options.separator==`string`&&options.separator.length===1,`Invalid separator`),assert$1(!options.adjust||typeof options.adjust==`function`,`options.adjust must be a function`),assert$1(!options.map||Array.isArray(options.map),`options.map must be an array`),assert$1(!options.map||!options.adjust,`Cannot set both map and adjust options`),Object.assign(this,internals.defaults,options),assert$1(this.type===`value`||this.ancestor===void 0,`Non-value references cannot reference ancestors`),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(value,state,prefs,local,options={}){return assert$1(!this.in||options.in,`Invalid in() reference usage`),this.type===`global`?this._resolve(prefs.context,state,options):this.type===`local`?this._resolve(local,state,options):this.ancestor?this.ancestor===`root`?this._resolve(state.ancestors[state.ancestors.length-1],state,options):(assert$1(this.ancestor<=state.ancestors.length,`Invalid reference exceeds the schema root:`,this.display),this._resolve(state.ancestors[this.ancestor-1],state,options)):this._resolve(value,state,options)}_resolve(target,state,options){let resolved;if(this.type===`value`&&state.mainstay.shadow&&options.shadow!==!1&&(resolved=state.mainstay.shadow.get(this.absolute(state))),resolved===void 0&&(resolved=reach(target,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(resolved=this.adjust(resolved)),this.map){let mapped=this.map.get(resolved);mapped!==void 0&&(resolved=mapped)}return state.mainstay&&state.mainstay.tracer.resolve(state,this,resolved),resolved}toString(){return this.display}absolute(state){return[...state.path.slice(0,-this.ancestor),...this.path]}clone(){return new internals.Ref(this)}describe(){let ref={path:this.path};this.type!==`value`&&(ref.type=this.type),this.separator!==`.`&&(ref.separator=this.separator),this.type===`value`&&this.ancestor!==1&&(ref.ancestor=this.ancestor),this.map&&(ref.map=[...this.map]);for(let key of[`adjust`,`iterables`,`render`])this[key]!==null&&this[key]!==void 0&&(ref[key]=this[key]);return this.in!==!1&&(ref.in=!0),{ref}}updateDisplay(){let key=this.key===null?``:this.key;if(this.type!==`value`){this.display=`ref:${this.type}:${key}`;return}if(!this.separator){this.display=`ref:${key}`;return}if(!this.ancestor){this.display=`ref:${this.separator}${key}`;return}if(this.ancestor===`root`){this.display=`ref:root:${key}`;return}if(this.ancestor===1){this.display=`ref:${key||`..`}`;return}let lead=Array(this.ancestor+1).fill(this.separator).join(``);this.display=`ref:${lead}${key||``}`}},internals.Ref.prototype[Common$1.symbols.ref]=!0,exports.build=function(desc$1){return desc$1=Object.assign({},internals.defaults,desc$1),desc$1.type===`value`&&desc$1.ancestor===void 0&&(desc$1.ancestor=1),new internals.Ref(desc$1)},internals.context=function(key,separator,prefix={}){if(key=key.trim(),prefix){let globalp=prefix.global===void 0?`$`:prefix.global;if(globalp!==separator&&key.startsWith(globalp))return{key:key.slice(globalp.length),type:`global`};let local=prefix.local===void 0?`#`:prefix.local;if(local!==separator&&key.startsWith(local))return{key:key.slice(local.length),type:`local`};let root=prefix.root===void 0?`/`:prefix.root;if(root!==separator&&key.startsWith(root))return{key:key.slice(root.length),type:`value`,root:!0}}return{key,type:`value`}},internals.ancestor=function(key,separator){if(!separator||key[0]!==separator)return[1,0];if(key[1]!==separator)return[0,1];let i$4=2;for(;key[i$4]===separator;)++i$4;return[i$4-1,i$4]},exports.toSibling=0,exports.toParent=1,exports.Manager=class{constructor(){this.refs=[]}register(source,target){if(source){if(target=target===void 0?exports.toParent:target,Array.isArray(source)){for(let ref of source)this.register(ref,target);return}if(Common$1.isSchema(source)){for(let item of source._refs.refs)item.ancestor-target>=0&&this.refs.push({ancestor:item.ancestor-target,root:item.root});return}exports.isRef(source)&&source.type===`value`&&source.ancestor-target>=0&&this.refs.push({ancestor:source.ancestor-target,root:source.root}),Template$1||=require_template(),Template$1.isTemplate(source)&&this.register(source.refs(),target)}}get length(){return this.refs.length}clone(){let copy=new exports.Manager;return copy.refs=clone$4(this.refs),copy}reset(){this.refs=[]}roots(){return this.refs.filter(ref=>!ref.ancestor).map(ref=>ref.root)}}});init_lib();var import_ref=__toESM(require_ref()),import_cache=__toESM(require_cache()),import_trace=__toESM(require_trace()),import_common=__toESM(require_common()),import_errors=__toESM(require_errors()),import_extend=__toESM(require_extend()),import_compile=__toESM(require_compile()),import_schemas=__toESM(require_schemas()),import_manifest=__toESM(require_manifest()),import_template=__toESM(require_template()),import_any=__toESM(require_any()),import_date=__toESM(require_date()),import_link=__toESM(require_link()),import_array=__toESM(require_array()),import_number=__toESM(require_number()),import_object=__toESM(require_object()),import_string=__toESM(require_string()),import_symbol=__toESM(require_symbol()),import_binary=__toESM(require_binary()),import_boolean=__toESM(require_boolean()),import_function=__toESM(require_function()),import_alternatives=__toESM(require_alternatives()),RootFactory=class RootFactory{static types={alternatives:import_alternatives.default,any:import_any.default,array:import_array.default,boolean:import_boolean.default,date:import_date.default,function:import_function.default,link:import_link.default,number:import_number.default,object:import_object.default,string:import_string.default,symbol:import_symbol.default,binary:import_binary.default};static aliases={alt:`alternatives`,bool:`boolean`,func:`function`};static assertValue(value,schema,annotate,args$1){let message=args$1[0]instanceof Error||typeof args$1[0]==`string`?args$1[0]:null,options=message===null?args$1[0]:args$1[1],result=schema.validate(value,import_common.preferences({errors:{stack:!0}},options||{})),error=result.error;if(!error)return result.value;if(message instanceof Error)throw message;let display=annotate&&typeof error.annotate==`function`?error.annotate():error.message;throw error instanceof import_errors.ValidationError||(error=(0,import_clone.default)(error)),error.message=message?`${message} ${display}`:display,error}static generate(root,schema,args$1){return(0,import_assert.default)(root,`Must be invoked on a Joi instance.`),schema.$_root=root,!schema._definition.args||!args$1.length?schema:schema._definition.args(schema,...args$1)}static expandExtension(extension,joi){if(typeof extension.type==`string`)return[extension];let extended=[];for(let type of joi._types)if(extension.type.test(type)){let item={...extension};item.type=type,item.base=joi[type](),extended.push(item)}return extended}static getMethods(){return{ValidationError:import_errors.ValidationError,version:import_common.version,cache:import_cache.provider,assert(value,schema,...args$1){RootFactory.assertValue(value,schema,!0,args$1)},attempt(value,schema,...args$1){return RootFactory.assertValue(value,schema,!1,args$1)},build(desc$1){return(0,import_assert.default)(typeof import_manifest.build==`function`,`Manifest functionality disabled`),import_manifest.build(this,desc$1)},checkPreferences(prefs){import_common.checkPreferences(prefs)},compile(schema,options){return import_compile.compile(this,schema,options)},defaults(modifier){(0,import_assert.default)(typeof modifier==`function`,`modifier must be a function`);let joi={...this};for(let type of joi._types){let schema=modifier(joi[type]());(0,import_assert.default)(import_common.isSchema(schema),`modifier must return a valid schema object`),joi[type]=function(...args$1){return RootFactory.generate(this,schema,args$1)}}return joi},expression(...args$1){return new import_template.default(...args$1)},extend(...extensions){import_common.verifyFlat(extensions,`extend`),(0,import_assert.default)(extensions.length,`You need to provide at least one extension`),this.assert(extensions,import_schemas.extensions);let joi={...this};joi._types=new Set(joi._types);for(let extension of extensions){typeof extension==`function`&&(extension=extension(joi)),this.assert(extension,import_schemas.extension);let expanded=RootFactory.expandExtension(extension,joi);for(let item of expanded){(0,import_assert.default)(joi[item.type]===void 0||joi._types.has(item.type),`Cannot override name`,item.type);let base=item.base||this.any(),schema=import_extend.type(base,item);joi._types.add(item.type),joi[item.type]=function(...args$1){return RootFactory.generate(this,schema,args$1)}}}return joi},isError:import_errors.ValidationError.isError,isExpression:import_template.default.isTemplate,isRef:import_ref.isRef,isSchema:import_common.isSchema,in(...args$1){return import_ref.in(...args$1)},override:import_common.symbols.override,ref(...args$1){return import_ref.create(...args$1)},types(){let result={};for(let type of this._types)result[type]=this[type]();for(let target in RootFactory.aliases)result[target]=this[target]();return result}}}static create(options={}){let instance={_types:new Set(Object.keys(RootFactory.types))};for(let type of instance._types)instance[type]=function(...args$1){(0,import_assert.default)(!args$1.length||[`alternatives`,`link`,`object`].includes(type),`The`,type,`type does not allow arguments`);let schema=RootFactory.types[type];if(options.schemaTypeModifiers?.length)for(let modifier of options.schemaTypeModifiers)schema=modifier(schema,this,args$1);return RootFactory.generate(this,schema,args$1)};let shortcuts=[`allow`,`custom`,`disallow`,`equal`,`exist`,`forbidden`,`invalid`,`not`,`only`,`optional`,`options`,`prefs`,`preferences`,`required`,`strip`,`valid`,`when`];if(options.shortcutsModifiers?.length)for(let modifier of options.shortcutsModifiers)shortcuts=modifier(shortcuts);for(let method of shortcuts)instance[method]=function(...args$1){return this.any()[method](...args$1)};Object.assign(instance,RootFactory.getMethods());for(let[alias,original]of Object.entries(RootFactory.aliases))instance[alias]=instance[original];return instance.x=instance.expression,import_trace.setup&&import_trace.setup(instance),instance}},import_messages=__toESM(require_messages());const knexMessages={"knex.unique":`The {{#label}} has already been taken`,"knex.exists":`The selected {{#label}} is invalid`,"knex.missingConnection":`Database connection not provided for {{#label}}`,"knex.invalidTable":`Invalid table for {{#label}}`,"knex.invalidColumn":`Invalid column for {{#label}}`,"knex.internal":`Database validation error on {{#label}}`},knexClientCache=new WeakMap,isReference=(obj,root)=>root.isRef(obj),resolveKnex=connection=>{let db=vitePluginRequire_1761673929235_17376597;if(typeof connection!=`function`&&!(typeof connection==`object`&&connection&&!Array.isArray(connection)))throw Error(`Invalid Knex connection or QueryClientContract instance`);if(typeof connection.getReadClient==`function`)return connection.getReadClient();if(typeof connection.ref==`function`)return connection;if(typeof connection==`object`&&connection&&`client`in connection&&`connection`in connection){let cached=knexClientCache.get(connection);if(cached)return cached;let config={client:connection.client,dialect:connection.dialect,connection:connection.connection,jsonbSupport:connection.jsonbSupport,version:connection.version,postProcessResponse:connection.postProcessResponse,wrapIdentifier:connection.wrapIdentifier,acquireConnectionTimeout:connection.acquireConnectionTimeout,useNullAsDefault:connection.useNullAsDefault,searchPath:connection.searchPath,fetchAsString:connection.fetchAsString,pool:connection.pool},conn=db(config);return knexClientCache.set(connection,conn),conn}throw Error(`Invalid Knex connection or QueryClientContract instance`)},resolveQueryBuilder=(connection,table)=>{let conn=resolveKnex(connection);return{client:conn,query:conn.table(table)}},getMergableMessages=schema=>{if(`_definition`in schema){let def=schema._definition;if(`messages`in def&&def.messages)return typeof def.messages==`string`?{}:def.messages}return{}};function setKnexConnection(connection){`keys`in this.$_terms&&this.$_terms.keys.forEach((item,index)=>{this.$_terms.keys[index].schema=setKnexConnection.call(item.schema,connection)});let toSet=this.$_knex||this.$_getFlag(`knexConnection`)||connection;return this.$_knex=toSet,this.$_setFlag(`knexConnection`,toSet)}function findKnexConnection(){if(this.$_knex)return this.$_knex;let connection=this.$_getFlag?.(`knexConnection`);if(connection)return connection;let current=this;for(;current&&`$_super`in current&&current.$_super;)if(current=current.$_super,connection=current.$_getFlag?.(`knexConnection`),connection)return connection}const knex=(schema,root,args$1)=>{let prototype=Object.getPrototypeOf(schema),originalMessages=getMergableMessages(schema),mergedMessages=import_messages.merge(originalMessages,knexMessages);return prototype._definition.messages=mergedMessages,prototype.knex||=function(connection){return setKnexConnection.call(this,connection)},prototype.db||=function(connection){return setKnexConnection.call(this,connection)},prototype.uniqueInDb||=function(table,column,options){let opts={caseInsensitive:!1,filter:()=>{},...options},connection=findKnexConnection.call(this);return this.external(async(value,helpers)=>{let{prefs,state,error,schema:localSchema}=helpers;if(!connection&&localSchema._flags&&(connection=localSchema._flags.knexConnection),!connection)return error(`knex.missingConnection`,{value});let resolvedTable=isReference(table,root)?table.resolve(value,state,prefs):table,resolvedColumn=isReference(column,root)?column.resolve(value,state,prefs):column;if(!resolvedTable||typeof resolvedTable!=`string`)return error(`knex.invalidTable`,{value,table:resolvedTable,column:resolvedColumn});if(!resolvedColumn||typeof resolvedColumn!=`string`)return error(`knex.invalidColumn`,{value,table:resolvedTable,column:resolvedColumn});if(value==null)return value;try{let{client,query}=resolveQueryBuilder(connection,resolvedTable);if(query.select(resolvedColumn).limit(1),opts.caseInsensitive?query.whereRaw(`lower(${resolvedColumn}) = ?`,[client.raw(`lower(?)`,[value])]):query.where(resolvedColumn,value),opts.filter){let{error:errorFn,warn:warnFn,message:messageFn,...safeHelpers}=helpers;await opts.filter(query,value,resolvedColumn,safeHelpers)}let row=await query.first();return row?error(`knex.unique`,{value,table:resolvedTable,column:resolvedColumn}):value}catch(err$1){return error(`knex.internal`,{value,table:resolvedTable,column:resolvedColumn,error:err$1})}},`uniqueInDb`)},prototype.existsInDb||=function(table,column,options){let opts={caseInsensitive:!1,filter:()=>{},...options},connection=findKnexConnection.call(this);return this.external(async(value,helpers)=>{let{prefs,state,error,schema:localSchema}=helpers;if(!connection&&localSchema._flags&&(connection=localSchema._flags.knexConnection),!connection)return error(`knex.missingConnection`,{value});let resolvedTable=isReference(table,root)?table.resolve(value,state,prefs):table,resolvedColumn=isReference(column,root)?column.resolve(value,state,prefs):column;if(!resolvedTable||typeof resolvedTable!=`string`)return error(`knex.invalidTable`,{value,table:resolvedTable,column:resolvedColumn});if(!resolvedColumn||typeof resolvedColumn!=`string`)return error(`knex.invalidColumn`,{value,table:resolvedTable,column:resolvedColumn});if(value==null)return value;try{let{client,query}=resolveQueryBuilder(connection,resolvedTable);if(query.select(resolvedColumn).limit(1),opts.caseInsensitive?query.whereRaw(`lower(${resolvedColumn}) = ?`,[client.raw(`lower(?)`,[value])]):query.where(resolvedColumn,value),opts.filter){let{error:errorFn,warn:warnFn,message:messageFn,...safeHelpers}=helpers;await opts.filter(query,value,resolvedColumn,safeHelpers)}let row=await query.first();return row?value:error(`knex.exists`,{value,table:resolvedTable,column:resolvedColumn})}catch(err$1){return error(`knex.internal`,{value,table:resolvedTable,column:resolvedColumn,error:err$1})}},`existsInDb`)},RootFactory.generate(root,schema,args$1)};var De=t$5=>{throw TypeError(t$5)},Ne=(t$5,o,r)=>o.has(t$5)||De(`Cannot `+r),M=(t$5,o,r)=>(Ne(t$5,o,`read from private field`),r?r.call(t$5):o.get(t$5)),ee=(t$5,o,r)=>o.has(t$5)?De(`Cannot add the same private member more than once`):o instanceof WeakSet?o.add(t$5):o.set(t$5,r),X=(t$5,o,r,u)=>(Ne(t$5,o,`write to private field`),u?u.call(t$5,r):o.set(t$5,r),r),ne=(t$5,o,r)=>(Ne(t$5,o,`access private method`),r),LuxonError$1=class extends Error{},InvalidDateTimeError$1=class extends LuxonError$1{constructor(o){super(`Invalid DateTime: ${o.toMessage()}`)}},InvalidIntervalError$1=class extends LuxonError$1{constructor(o){super(`Invalid Interval: ${o.toMessage()}`)}},InvalidDurationError$1=class extends LuxonError$1{constructor(o){super(`Invalid Duration: ${o.toMessage()}`)}},ConflictingSpecificationError$1=class extends LuxonError$1{},InvalidUnitError$1=class extends LuxonError$1{constructor(o){super(`Invalid unit ${o}`)}},InvalidArgumentError$1=class extends LuxonError$1{},ZoneIsAbstractError$1=class extends LuxonError$1{constructor(){super(`Zone is an abstract class`)}};const n$1=`numeric`,s$1=`short`,l$1=`long`,DATE_SHORT$1={year:n$1,month:n$1,day:n$1},DATE_MED$1={year:n$1,month:s$1,day:n$1},DATE_MED_WITH_WEEKDAY$1={year:n$1,month:s$1,day:n$1,weekday:s$1},DATE_FULL$1={year:n$1,month:l$1,day:n$1},DATE_HUGE$1={year:n$1,month:l$1,day:n$1,weekday:l$1},TIME_SIMPLE$1={hour:n$1,minute:n$1},TIME_WITH_SECONDS$1={hour:n$1,minute:n$1,second:n$1},TIME_WITH_SHORT_OFFSET$1={hour:n$1,minute:n$1,second:n$1,timeZoneName:s$1},TIME_WITH_LONG_OFFSET$1={hour:n$1,minute:n$1,second:n$1,timeZoneName:l$1},TIME_24_SIMPLE$1={hour:n$1,minute:n$1,hourCycle:`h23`},TIME_24_WITH_SECONDS$1={hour:n$1,minute:n$1,second:n$1,hourCycle:`h23`},TIME_24_WITH_SHORT_OFFSET$1={hour:n$1,minute:n$1,second:n$1,hourCycle:`h23`,timeZoneName:s$1},TIME_24_WITH_LONG_OFFSET$1={hour:n$1,minute:n$1,second:n$1,hourCycle:`h23`,timeZoneName:l$1},DATETIME_SHORT$1={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1},DATETIME_SHORT_WITH_SECONDS$1={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED$1={year:n$1,month:s$1,day:n$1,hour:n$1,minute:n$1},DATETIME_MED_WITH_SECONDS$1={year:n$1,month:s$1,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED_WITH_WEEKDAY$1={year:n$1,month:s$1,day:n$1,weekday:s$1,hour:n$1,minute:n$1},DATETIME_FULL$1={year:n$1,month:l$1,day:n$1,hour:n$1,minute:n$1,timeZoneName:s$1},DATETIME_FULL_WITH_SECONDS$1={year:n$1,month:l$1,day:n$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:s$1},DATETIME_HUGE$1={year:n$1,month:l$1,day:n$1,weekday:l$1,hour:n$1,minute:n$1,timeZoneName:l$1},DATETIME_HUGE_WITH_SECONDS$1={year:n$1,month:l$1,day:n$1,weekday:l$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:l$1};var Zone$1=class{get type(){throw new ZoneIsAbstractError$1}get name(){throw new ZoneIsAbstractError$1}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError$1}offsetName(o,r){throw new ZoneIsAbstractError$1}formatOffset(o,r){throw new ZoneIsAbstractError$1}offset(o){throw new ZoneIsAbstractError$1}equals(o){throw new ZoneIsAbstractError$1}get isValid(){throw new ZoneIsAbstractError$1}};let singleton$1$1=null;var SystemZone$1=class SystemZone$1 extends Zone$1{static get instance(){return singleton$1$1===null&&(singleton$1$1=new SystemZone$1),singleton$1$1}get type(){return`system`}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(o,{format:r,locale:u}){return parseZoneInfo$1(o,r,u)}formatOffset(o,r){return formatOffset$1(this.offset(o),r)}offset(o){return-new Date(o).getTimezoneOffset()}equals(o){return o.type===`system`}get isValid(){return!0}};const dtfCache$1=new Map;function makeDTF$1(t$5){let o=dtfCache$1.get(t$5);return o===void 0&&(o=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:t$5,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,era:`short`}),dtfCache$1.set(t$5,o)),o}const typeToPos$1={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset$1(t$5,o){let r=t$5.format(o).replace(/\u200E/g,``),u=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,h,m,y,S,_,C,O]=u;return[y,h,m,S,_,C,O]}function partsOffset$1(t$5,o){let r=t$5.formatToParts(o),u=[];for(let h=0;h<r.length;h++){let{type:m,value:y}=r[h],S=typeToPos$1[m];m===`era`?u[S]=y:isUndefined$1(S)||(u[S]=parseInt(y,10))}return u}const ianaZoneCache$1=new Map;var IANAZone$1=class IANAZone$1 extends Zone$1{static create(o){let r=ianaZoneCache$1.get(o);return r===void 0&&ianaZoneCache$1.set(o,r=new IANAZone$1(o)),r}static resetCache(){ianaZoneCache$1.clear(),dtfCache$1.clear()}static isValidSpecifier(o){return this.isValidZone(o)}static isValidZone(o){if(!o)return!1;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:o}).format(),!0}catch{return!1}}constructor(o){super(),this.zoneName=o,this.valid=IANAZone$1.isValidZone(o)}get type(){return`iana`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(o,{format:r,locale:u}){return parseZoneInfo$1(o,r,u,this.name)}formatOffset(o,r){return formatOffset$1(this.offset(o),r)}offset(o){if(!this.valid)return NaN;let r=new Date(o);if(isNaN(r))return NaN;let u=makeDTF$1(this.name),[h,m,y,S,_,C,O]=u.formatToParts?partsOffset$1(u,r):hackyOffset$1(u,r);S===`BC`&&(h=-Math.abs(h)+1);let R$1=objToLocalTS$1({year:h,month:m,day:y,hour:_===24?0:_,minute:C,second:O,millisecond:0}),U=+r,F=U%1e3;return U-=F>=0?F:1e3+F,(R$1-U)/(60*1e3)}equals(o){return o.type===`iana`&&o.name===this.name}get isValid(){return this.valid}};let intlLFCache$1={};function getCachedLF$1(t$5,o={}){let r=JSON.stringify([t$5,o]),u=intlLFCache$1[r];return u||(u=new Intl.ListFormat(t$5,o),intlLFCache$1[r]=u),u}const intlDTCache$1=new Map;function getCachedDTF$1(t$5,o={}){let r=JSON.stringify([t$5,o]),u=intlDTCache$1.get(r);return u===void 0&&(u=new Intl.DateTimeFormat(t$5,o),intlDTCache$1.set(r,u)),u}const intlNumCache$1=new Map;function getCachedINF$1(t$5,o={}){let r=JSON.stringify([t$5,o]),u=intlNumCache$1.get(r);return u===void 0&&(u=new Intl.NumberFormat(t$5,o),intlNumCache$1.set(r,u)),u}const intlRelCache$1=new Map;function getCachedRTF$1(t$5,o={}){let{base:r,...u}=o,h=JSON.stringify([t$5,u]),m=intlRelCache$1.get(h);return m===void 0&&(m=new Intl.RelativeTimeFormat(t$5,o),intlRelCache$1.set(h,m)),m}let sysLocaleCache$1=null;function systemLocale$1(){return sysLocaleCache$1||(sysLocaleCache$1=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache$1)}const intlResolvedOptionsCache$1=new Map;function getCachedIntResolvedOptions$1(t$5){let o=intlResolvedOptionsCache$1.get(t$5);return o===void 0&&(o=new Intl.DateTimeFormat(t$5).resolvedOptions(),intlResolvedOptionsCache$1.set(t$5,o)),o}const weekInfoCache$1=new Map;function getCachedWeekInfo$1(t$5){let o=weekInfoCache$1.get(t$5);if(!o){let r=new Intl.Locale(t$5);o=`getWeekInfo`in r?r.getWeekInfo():r.weekInfo,`minimalDays`in o||(o={...fallbackWeekSettings$1,...o}),weekInfoCache$1.set(t$5,o)}return o}function parseLocaleString$1(t$5){let o=t$5.indexOf(`-x-`);o!==-1&&(t$5=t$5.substring(0,o));let r=t$5.indexOf(`-u-`);if(r===-1)return[t$5];{let u,h;try{u=getCachedDTF$1(t$5).resolvedOptions(),h=t$5}catch{let _=t$5.substring(0,r);u=getCachedDTF$1(_).resolvedOptions(),h=_}let{numberingSystem:m,calendar:y}=u;return[h,m,y]}}function intlConfigString$1(t$5,o,r){return(r||o)&&(t$5.includes(`-u-`)||(t$5+=`-u`),r&&(t$5+=`-ca-${r}`),o&&(t$5+=`-nu-${o}`)),t$5}function mapMonths$1(t$5){let o=[];for(let r=1;r<=12;r++){let u=DateTime$1.utc(2009,r,1);o.push(t$5(u))}return o}function mapWeekdays$1(t$5){let o=[];for(let r=1;r<=7;r++){let u=DateTime$1.utc(2016,11,13+r);o.push(t$5(u))}return o}function listStuff$1(t$5,o,r,u){let h=t$5.listingMode();return h===`error`?null:h===`en`?r(o):u(o)}function supportsFastNumbers$1(t$5){return t$5.numberingSystem&&t$5.numberingSystem!==`latn`?!1:t$5.numberingSystem===`latn`||!t$5.locale||t$5.locale.startsWith(`en`)||getCachedIntResolvedOptions$1(t$5.locale).numberingSystem===`latn`}var PolyNumberFormatter$1=class{constructor(o,r,u){this.padTo=u.padTo||0,this.floor=u.floor||!1;let{padTo:h,floor:m,...y}=u;if(!r||Object.keys(y).length>0){let S={useGrouping:!1,...u};u.padTo>0&&(S.minimumIntegerDigits=u.padTo),this.inf=getCachedINF$1(o,S)}}format(o){if(this.inf){let r=this.floor?Math.floor(o):o;return this.inf.format(r)}else{let r=this.floor?Math.floor(o):roundTo$1(o,3);return padStart$1(r,this.padTo)}}},PolyDateFormatter$1=class{constructor(o,r,u){this.opts=u,this.originalZone=void 0;let h;if(this.opts.timeZone)this.dt=o;else if(o.zone.type===`fixed`){let y=-1*(o.offset/60),S=y>=0?`Etc/GMT+${y}`:`Etc/GMT${y}`;o.offset!==0&&IANAZone$1.create(S).valid?(h=S,this.dt=o):(h=`UTC`,this.dt=o.offset===0?o:o.setZone(`UTC`).plus({minutes:o.offset}),this.originalZone=o.zone)}else o.zone.type===`system`?this.dt=o:o.zone.type===`iana`?(this.dt=o,h=o.zone.name):(h=`UTC`,this.dt=o.setZone(`UTC`).plus({minutes:o.offset}),this.originalZone=o.zone);let m={...this.opts};m.timeZone=m.timeZone||h,this.dtf=getCachedDTF$1(r,m)}format(){return this.originalZone?this.formatToParts().map(({value:o})=>o).join(``):this.dtf.format(this.dt.toJSDate())}formatToParts(){let o=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?o.map(r=>{if(r.type===`timeZoneName`){let u=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:u}}else return r}):o}resolvedOptions(){return this.dtf.resolvedOptions()}},PolyRelFormatter$1=class{constructor(o,r,u){this.opts={style:`long`,...u},!r&&hasRelative$1()&&(this.rtf=getCachedRTF$1(o,u))}format(o,r){return this.rtf?this.rtf.format(o,r):formatRelativeTime$1(r,o,this.opts.numeric,this.opts.style!==`long`)}formatToParts(o,r){return this.rtf?this.rtf.formatToParts(o,r):[]}};const fallbackWeekSettings$1={firstDay:1,minimalDays:4,weekend:[6,7]};var Locale$1=class Locale$1{static fromOpts(o){return Locale$1.create(o.locale,o.numberingSystem,o.outputCalendar,o.weekSettings,o.defaultToEN)}static create(o,r,u,h,m=!1){let y=o||Settings$1.defaultLocale,S=y||(m?`en-US`:systemLocale$1()),_=r||Settings$1.defaultNumberingSystem,C=u||Settings$1.defaultOutputCalendar,O=validateWeekSettings$1(h)||Settings$1.defaultWeekSettings;return new Locale$1(S,_,C,O,y)}static resetCache(){sysLocaleCache$1=null,intlDTCache$1.clear(),intlNumCache$1.clear(),intlRelCache$1.clear(),intlResolvedOptionsCache$1.clear(),weekInfoCache$1.clear()}static fromObject({locale:o,numberingSystem:r,outputCalendar:u,weekSettings:h}={}){return Locale$1.create(o,r,u,h)}constructor(o,r,u,h,m){let[y,S,_]=parseLocaleString$1(o);this.locale=y,this.numberingSystem=r||S||null,this.outputCalendar=u||_||null,this.weekSettings=h,this.intl=intlConfigString$1(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=m,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached??=supportsFastNumbers$1(this),this.fastNumbersCached}listingMode(){let o=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem===`latn`)&&(this.outputCalendar===null||this.outputCalendar===`gregory`);return o&&r?`en`:`intl`}clone(o){return!o||Object.getOwnPropertyNames(o).length===0?this:Locale$1.create(o.locale||this.specifiedLocale,o.numberingSystem||this.numberingSystem,o.outputCalendar||this.outputCalendar,validateWeekSettings$1(o.weekSettings)||this.weekSettings,o.defaultToEN||!1)}redefaultToEN(o={}){return this.clone({...o,defaultToEN:!0})}redefaultToSystem(o={}){return this.clone({...o,defaultToEN:!1})}months(o,r=!1){return listStuff$1(this,o,months$1,()=>{let u=r?{month:o,day:`numeric`}:{month:o},h=r?`format`:`standalone`;return this.monthsCache[h][o]||(this.monthsCache[h][o]=mapMonths$1(m=>this.extract(m,u,`month`))),this.monthsCache[h][o]})}weekdays(o,r=!1){return listStuff$1(this,o,weekdays$1,()=>{let u=r?{weekday:o,year:`numeric`,month:`long`,day:`numeric`}:{weekday:o},h=r?`format`:`standalone`;return this.weekdaysCache[h][o]||(this.weekdaysCache[h][o]=mapWeekdays$1(m=>this.extract(m,u,`weekday`))),this.weekdaysCache[h][o]})}meridiems(){return listStuff$1(this,void 0,()=>meridiems$1,()=>{if(!this.meridiemCache){let o={hour:`numeric`,hourCycle:`h12`};this.meridiemCache=[DateTime$1.utc(2016,11,13,9),DateTime$1.utc(2016,11,13,19)].map(r=>this.extract(r,o,`dayperiod`))}return this.meridiemCache})}eras(o){return listStuff$1(this,o,eras$1,()=>{let r={era:o};return this.eraCache[o]||(this.eraCache[o]=[DateTime$1.utc(-40,1,1),DateTime$1.utc(2017,1,1)].map(u=>this.extract(u,r,`era`))),this.eraCache[o]})}extract(o,r,u){let h=this.dtFormatter(o,r),m=h.formatToParts(),y=m.find(S=>S.type.toLowerCase()===u);return y?y.value:null}numberFormatter(o={}){return new PolyNumberFormatter$1(this.intl,o.forceSimple||this.fastNumbers,o)}dtFormatter(o,r={}){return new PolyDateFormatter$1(o,this.intl,r)}relFormatter(o={}){return new PolyRelFormatter$1(this.intl,this.isEnglish(),o)}listFormatter(o={}){return getCachedLF$1(this.intl,o)}isEnglish(){return this.locale===`en`||this.locale.toLowerCase()===`en-us`||getCachedIntResolvedOptions$1(this.intl).locale.startsWith(`en-us`)}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo$1()?getCachedWeekInfo$1(this.locale):fallbackWeekSettings$1}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(o){return this.locale===o.locale&&this.numberingSystem===o.numberingSystem&&this.outputCalendar===o.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};let singleton$2=null;var FixedOffsetZone$1=class FixedOffsetZone$1 extends Zone$1{static get utcInstance(){return singleton$2===null&&(singleton$2=new FixedOffsetZone$1(0)),singleton$2}static instance(o){return o===0?FixedOffsetZone$1.utcInstance:new FixedOffsetZone$1(o)}static parseSpecifier(o){if(o){let r=o.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new FixedOffsetZone$1(signedOffset$1(r[1],r[2]))}return null}constructor(o){super(),this.fixed=o}get type(){return`fixed`}get name(){return this.fixed===0?`UTC`:`UTC${formatOffset$1(this.fixed,`narrow`)}`}get ianaName(){return this.fixed===0?`Etc/UTC`:`Etc/GMT${formatOffset$1(-this.fixed,`narrow`)}`}offsetName(){return this.name}formatOffset(o,r){return formatOffset$1(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(o){return o.type===`fixed`&&o.fixed===this.fixed}get isValid(){return!0}},InvalidZone$1=class extends Zone$1{constructor(o){super(),this.zoneName=o}get type(){return`invalid`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return``}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function normalizeZone$1(t$5,o){if(isUndefined$1(t$5)||t$5===null)return o;if(t$5 instanceof Zone$1)return t$5;if(isString$1(t$5)){let r=t$5.toLowerCase();return r===`default`?o:r===`local`||r===`system`?SystemZone$1.instance:r===`utc`||r===`gmt`?FixedOffsetZone$1.utcInstance:FixedOffsetZone$1.parseSpecifier(r)||IANAZone$1.create(t$5)}else return isNumber$1(t$5)?FixedOffsetZone$1.instance(t$5):typeof t$5==`object`&&`offset`in t$5&&typeof t$5.offset==`function`?t$5:new InvalidZone$1(t$5)}const numberingSystems$1={arab:`[٠-٩]`,arabext:`[۰-۹]`,bali:`[᭐-᭙]`,beng:`[০-৯]`,deva:`[०-९]`,fullwide:`[0-9]`,gujr:`[૦-૯]`,hanidec:`[〇|一|二|三|四|五|六|七|八|九]`,khmr:`[០-៩]`,knda:`[೦-೯]`,laoo:`[໐-໙]`,limb:`[᥆-᥏]`,mlym:`[൦-൯]`,mong:`[᠐-᠙]`,mymr:`[၀-၉]`,orya:`[୦-୯]`,tamldec:`[௦-௯]`,telu:`[౦-౯]`,thai:`[๐-๙]`,tibt:`[༠-༩]`,latn:`\\d`},numberingSystemsUTF16$1={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars$1=numberingSystems$1.hanidec.replace(/[\[|\]]/g,``).split(``);function parseDigits$1(t$5){let o=parseInt(t$5,10);if(isNaN(o)){o=``;for(let r=0;r<t$5.length;r++){let u=t$5.charCodeAt(r);if(t$5[r].search(numberingSystems$1.hanidec)!==-1)o+=hanidecChars$1.indexOf(t$5[r]);else for(let h in numberingSystemsUTF16$1){let[m,y]=numberingSystemsUTF16$1[h];u>=m&&u<=y&&(o+=u-m)}}return parseInt(o,10)}else return o}const digitRegexCache$1=new Map;function resetDigitRegexCache$1(){digitRegexCache$1.clear()}function digitRegex$1({numberingSystem:t$5},o=``){let r=t$5||`latn`,u=digitRegexCache$1.get(r);u===void 0&&(u=new Map,digitRegexCache$1.set(r,u));let h=u.get(o);return h===void 0&&(h=RegExp(`${numberingSystems$1[r]}${o}`),u.set(o,h)),h}let now$1=()=>Date.now(),defaultZone$1=`system`,defaultLocale$1=null,defaultNumberingSystem$1=null,defaultOutputCalendar$1=null,twoDigitCutoffYear$1=60,throwOnInvalid$1,defaultWeekSettings$1=null;var Settings$1=class{static get now(){return now$1}static set now(o){now$1=o}static set defaultZone(o){defaultZone$1=o}static get defaultZone(){return normalizeZone$1(defaultZone$1,SystemZone$1.instance)}static get defaultLocale(){return defaultLocale$1}static set defaultLocale(o){defaultLocale$1=o}static get defaultNumberingSystem(){return defaultNumberingSystem$1}static set defaultNumberingSystem(o){defaultNumberingSystem$1=o}static get defaultOutputCalendar(){return defaultOutputCalendar$1}static set defaultOutputCalendar(o){defaultOutputCalendar$1=o}static get defaultWeekSettings(){return defaultWeekSettings$1}static set defaultWeekSettings(o){defaultWeekSettings$1=validateWeekSettings$1(o)}static get twoDigitCutoffYear(){return twoDigitCutoffYear$1}static set twoDigitCutoffYear(o){twoDigitCutoffYear$1=o%100}static get throwOnInvalid(){return throwOnInvalid$1}static set throwOnInvalid(o){throwOnInvalid$1=o}static resetCaches(){Locale$1.resetCache(),IANAZone$1.resetCache(),DateTime$1.resetCache(),resetDigitRegexCache$1()}},Invalid$1=class{constructor(o,r){this.reason=o,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const nonLeapLadder$1=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder$1=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange$1(t$5,o){return new Invalid$1(`unit out of range`,`you specified ${o} (of type ${typeof o}) as a ${t$5}, which is invalid`)}function dayOfWeek$1(t$5,o,r){let u=new Date(Date.UTC(t$5,o-1,r));t$5<100&&t$5>=0&&u.setUTCFullYear(u.getUTCFullYear()-1900);let h=u.getUTCDay();return h===0?7:h}function computeOrdinal$1(t$5,o,r){return r+(isLeapYear$1(t$5)?leapLadder$1:nonLeapLadder$1)[o-1]}function uncomputeOrdinal$1(t$5,o){let r=isLeapYear$1(t$5)?leapLadder$1:nonLeapLadder$1,u=r.findIndex(m=>m<o),h=o-r[u];return{month:u+1,day:h}}function isoWeekdayToLocal$1(t$5,o){return(t$5-o+7)%7+1}function gregorianToWeek$1(t$5,o=4,r=1){let{year:u,month:h,day:m}=t$5,y=computeOrdinal$1(u,h,m),S=isoWeekdayToLocal$1(dayOfWeek$1(u,h,m),r),_=Math.floor((y-S+14-o)/7),C;return _<1?(C=u-1,_=weeksInWeekYear$1(C,o,r)):_>weeksInWeekYear$1(u,o,r)?(C=u+1,_=1):C=u,{weekYear:C,weekNumber:_,weekday:S,...timeObject$1(t$5)}}function weekToGregorian$1(t$5,o=4,r=1){let{weekYear:u,weekNumber:h,weekday:m}=t$5,y=isoWeekdayToLocal$1(dayOfWeek$1(u,1,o),r),S=daysInYear$1(u),_=h*7+m-y-7+o,C;_<1?(C=u-1,_+=daysInYear$1(C)):_>S?(C=u+1,_-=daysInYear$1(u)):C=u;let{month:O,day:I}=uncomputeOrdinal$1(C,_);return{year:C,month:O,day:I,...timeObject$1(t$5)}}function gregorianToOrdinal$1(t$5){let{year:o,month:r,day:u}=t$5,h=computeOrdinal$1(o,r,u);return{year:o,ordinal:h,...timeObject$1(t$5)}}function ordinalToGregorian$1(t$5){let{year:o,ordinal:r}=t$5,{month:u,day:h}=uncomputeOrdinal$1(o,r);return{year:o,month:u,day:h,...timeObject$1(t$5)}}function usesLocalWeekValues$1(t$5,o){if(!isUndefined$1(t$5.localWeekday)||!isUndefined$1(t$5.localWeekNumber)||!isUndefined$1(t$5.localWeekYear)){if(!isUndefined$1(t$5.weekday)||!isUndefined$1(t$5.weekNumber)||!isUndefined$1(t$5.weekYear))throw new ConflictingSpecificationError$1(`Cannot mix locale-based week fields with ISO-based week fields`);return isUndefined$1(t$5.localWeekday)||(t$5.weekday=t$5.localWeekday),isUndefined$1(t$5.localWeekNumber)||(t$5.weekNumber=t$5.localWeekNumber),isUndefined$1(t$5.localWeekYear)||(t$5.weekYear=t$5.localWeekYear),delete t$5.localWeekday,delete t$5.localWeekNumber,delete t$5.localWeekYear,{minDaysInFirstWeek:o.getMinDaysInFirstWeek(),startOfWeek:o.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData$1(t$5,o=4,r=1){let u=isInteger$1(t$5.weekYear),h=integerBetween$1(t$5.weekNumber,1,weeksInWeekYear$1(t$5.weekYear,o,r)),m=integerBetween$1(t$5.weekday,1,7);return u?h?m?!1:unitOutOfRange$1(`weekday`,t$5.weekday):unitOutOfRange$1(`week`,t$5.weekNumber):unitOutOfRange$1(`weekYear`,t$5.weekYear)}function hasInvalidOrdinalData$1(t$5){let o=isInteger$1(t$5.year),r=integerBetween$1(t$5.ordinal,1,daysInYear$1(t$5.year));return o?r?!1:unitOutOfRange$1(`ordinal`,t$5.ordinal):unitOutOfRange$1(`year`,t$5.year)}function hasInvalidGregorianData$1(t$5){let o=isInteger$1(t$5.year),r=integerBetween$1(t$5.month,1,12),u=integerBetween$1(t$5.day,1,daysInMonth$1(t$5.year,t$5.month));return o?r?u?!1:unitOutOfRange$1(`day`,t$5.day):unitOutOfRange$1(`month`,t$5.month):unitOutOfRange$1(`year`,t$5.year)}function hasInvalidTimeData$1(t$5){let{hour:o,minute:r,second:u,millisecond:h}=t$5,m=integerBetween$1(o,0,23)||o===24&&r===0&&u===0&&h===0,y=integerBetween$1(r,0,59),S=integerBetween$1(u,0,59),_=integerBetween$1(h,0,999);return m?y?S?_?!1:unitOutOfRange$1(`millisecond`,h):unitOutOfRange$1(`second`,u):unitOutOfRange$1(`minute`,r):unitOutOfRange$1(`hour`,o)}function isUndefined$1(t$5){return typeof t$5>`u`}function isNumber$1(t$5){return typeof t$5==`number`}function isInteger$1(t$5){return typeof t$5==`number`&&t$5%1==0}function isString$1(t$5){return typeof t$5==`string`}function isDate$1(t$5){return Object.prototype.toString.call(t$5)===`[object Date]`}function hasRelative$1(){try{return typeof Intl<`u`&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo$1(){try{return typeof Intl<`u`&&!!Intl.Locale&&(`weekInfo`in Intl.Locale.prototype||`getWeekInfo`in Intl.Locale.prototype)}catch{return!1}}function maybeArray$1(t$5){return Array.isArray(t$5)?t$5:[t$5]}function bestBy$1(t$5,o,r){if(t$5.length!==0)return t$5.reduce((u,h)=>{let m=[o(h),h];return u&&r(u[0],m[0])===u[0]?u:m},null)[1]}function pick$1(t$5,o){return o.reduce((r,u)=>(r[u]=t$5[u],r),{})}function hasOwnProperty$1(t$5,o){return Object.prototype.hasOwnProperty.call(t$5,o)}function validateWeekSettings$1(t$5){if(t$5==null)return null;if(typeof t$5!=`object`)throw new InvalidArgumentError$1(`Week settings must be an object`);if(!integerBetween$1(t$5.firstDay,1,7)||!integerBetween$1(t$5.minimalDays,1,7)||!Array.isArray(t$5.weekend)||t$5.weekend.some(o=>!integerBetween$1(o,1,7)))throw new InvalidArgumentError$1(`Invalid week settings`);return{firstDay:t$5.firstDay,minimalDays:t$5.minimalDays,weekend:Array.from(t$5.weekend)}}function integerBetween$1(t$5,o,r){return isInteger$1(t$5)&&t$5>=o&&t$5<=r}function floorMod$1(t$5,o){return t$5-o*Math.floor(t$5/o)}function padStart$1(t$5,o=2){let r=t$5<0,u;return u=r?`-`+(``+-t$5).padStart(o,`0`):(``+t$5).padStart(o,`0`),u}function parseInteger$1(t$5){if(!(isUndefined$1(t$5)||t$5===null||t$5===``))return parseInt(t$5,10)}function parseFloating$1(t$5){if(!(isUndefined$1(t$5)||t$5===null||t$5===``))return parseFloat(t$5)}function parseMillis$1(t$5){if(!(isUndefined$1(t$5)||t$5===null||t$5===``)){let o=parseFloat(`0.`+t$5)*1e3;return Math.floor(o)}}function roundTo$1(t$5,o,r=!1){let u=10**o;return(r?Math.trunc:Math.round)(t$5*u)/u}function isLeapYear$1(t$5){return t$5%4==0&&(t$5%100!=0||t$5%400==0)}function daysInYear$1(t$5){return isLeapYear$1(t$5)?366:365}function daysInMonth$1(t$5,o){let r=floorMod$1(o-1,12)+1,u=t$5+(o-r)/12;return r===2?isLeapYear$1(u)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function objToLocalTS$1(t$5){let o=Date.UTC(t$5.year,t$5.month-1,t$5.day,t$5.hour,t$5.minute,t$5.second,t$5.millisecond);return t$5.year<100&&t$5.year>=0&&(o=new Date(o),o.setUTCFullYear(t$5.year,t$5.month-1,t$5.day)),+o}function firstWeekOffset$1(t$5,o,r){return-isoWeekdayToLocal$1(dayOfWeek$1(t$5,1,o),r)+o-1}function weeksInWeekYear$1(t$5,o=4,r=1){let u=firstWeekOffset$1(t$5,o,r),h=firstWeekOffset$1(t$5+1,o,r);return(daysInYear$1(t$5)-u+h)/7}function untruncateYear$1(t$5){return t$5>99?t$5:t$5>Settings$1.twoDigitCutoffYear?1900+t$5:2e3+t$5}function parseZoneInfo$1(t$5,o,r,u=null){let h=new Date(t$5),m={hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`};u&&(m.timeZone=u);let y={timeZoneName:o,...m},S=new Intl.DateTimeFormat(r,y).formatToParts(h).find(_=>_.type.toLowerCase()===`timezonename`);return S?S.value:null}function signedOffset$1(t$5,o){let r=parseInt(t$5,10);Number.isNaN(r)&&(r=0);let u=parseInt(o,10)||0,h=r<0||Object.is(r,-0)?-u:u;return r*60+h}function asNumber$1(t$5){let o=Number(t$5);if(typeof t$5==`boolean`||t$5===``||Number.isNaN(o))throw new InvalidArgumentError$1(`Invalid unit value ${t$5}`);return o}function normalizeObject$1(t$5,o){let r={};for(let u in t$5)if(hasOwnProperty$1(t$5,u)){let h=t$5[u];if(h==null)continue;r[o(u)]=asNumber$1(h)}return r}function formatOffset$1(t$5,o){let r=Math.trunc(Math.abs(t$5/60)),u=Math.trunc(Math.abs(t$5%60)),h=t$5>=0?`+`:`-`;switch(o){case`short`:return`${h}${padStart$1(r,2)}:${padStart$1(u,2)}`;case`narrow`:return`${h}${r}${u>0?`:${u}`:``}`;case`techie`:return`${h}${padStart$1(r,2)}${padStart$1(u,2)}`;default:throw RangeError(`Value format ${o} is out of range for property format`)}}function timeObject$1(t$5){return pick$1(t$5,[`hour`,`minute`,`second`,`millisecond`])}const monthsLong$1=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort$1=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],monthsNarrow$1=[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`];function months$1(t$5){switch(t$5){case`narrow`:return[...monthsNarrow$1];case`short`:return[...monthsShort$1];case`long`:return[...monthsLong$1];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`];case`2-digit`:return[`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`,`12`];default:return null}}const weekdaysLong$1=[`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],weekdaysShort$1=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],weekdaysNarrow$1=[`M`,`T`,`W`,`T`,`F`,`S`,`S`];function weekdays$1(t$5){switch(t$5){case`narrow`:return[...weekdaysNarrow$1];case`short`:return[...weekdaysShort$1];case`long`:return[...weekdaysLong$1];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`];default:return null}}const meridiems$1=[`AM`,`PM`],erasLong$1=[`Before Christ`,`Anno Domini`],erasShort$1=[`BC`,`AD`],erasNarrow$1=[`B`,`A`];function eras$1(t$5){switch(t$5){case`narrow`:return[...erasNarrow$1];case`short`:return[...erasShort$1];case`long`:return[...erasLong$1];default:return null}}function meridiemForDateTime$1(t$5){return meridiems$1[t$5.hour<12?0:1]}function weekdayForDateTime$1(t$5,o){return weekdays$1(o)[t$5.weekday-1]}function monthForDateTime$1(t$5,o){return months$1(o)[t$5.month-1]}function eraForDateTime$1(t$5,o){return eras$1(o)[t$5.year<0?0:1]}function formatRelativeTime$1(t$5,o,r=`always`,u=!1){let h={years:[`year`,`yr.`],quarters:[`quarter`,`qtr.`],months:[`month`,`mo.`],weeks:[`week`,`wk.`],days:[`day`,`day`,`days`],hours:[`hour`,`hr.`],minutes:[`minute`,`min.`],seconds:[`second`,`sec.`]},m=[`hours`,`minutes`,`seconds`].indexOf(t$5)===-1;if(r===`auto`&&m){let I=t$5===`days`;switch(o){case 1:return I?`tomorrow`:`next ${h[t$5][0]}`;case-1:return I?`yesterday`:`last ${h[t$5][0]}`;case 0:return I?`today`:`this ${h[t$5][0]}`}}let y=Object.is(o,-0)||o<0,S=Math.abs(o),_=S===1,C=h[t$5],O=u?_?C[1]:C[2]||C[1]:_?h[t$5][0]:t$5;return y?`${S} ${O} ago`:`in ${S} ${O}`}function stringifyTokens$1(t$5,o){let r=``;for(let u of t$5)u.literal?r+=u.val:r+=o(u.val);return r}const macroTokenToFormatOpts$1={D:DATE_SHORT$1,DD:DATE_MED$1,DDD:DATE_FULL$1,DDDD:DATE_HUGE$1,t:TIME_SIMPLE$1,tt:TIME_WITH_SECONDS$1,ttt:TIME_WITH_SHORT_OFFSET$1,tttt:TIME_WITH_LONG_OFFSET$1,T:TIME_24_SIMPLE$1,TT:TIME_24_WITH_SECONDS$1,TTT:TIME_24_WITH_SHORT_OFFSET$1,TTTT:TIME_24_WITH_LONG_OFFSET$1,f:DATETIME_SHORT$1,ff:DATETIME_MED$1,fff:DATETIME_FULL$1,ffff:DATETIME_HUGE$1,F:DATETIME_SHORT_WITH_SECONDS$1,FF:DATETIME_MED_WITH_SECONDS$1,FFF:DATETIME_FULL_WITH_SECONDS$1,FFFF:DATETIME_HUGE_WITH_SECONDS$1};var Formatter$1=class Formatter$1{static create(o,r={}){return new Formatter$1(o,r)}static parseFormat(o){let r=null,u=``,h=!1,m=[];for(let y=0;y<o.length;y++){let S=o.charAt(y);S===`'`?(u.length>0&&m.push({literal:h||/^\s+$/.test(u),val:u}),r=null,u=``,h=!h):h||S===r?u+=S:(u.length>0&&m.push({literal:/^\s+$/.test(u),val:u}),u=S,r=S)}return u.length>0&&m.push({literal:h||/^\s+$/.test(u),val:u}),m}static macroTokenToFormatOpts(o){return macroTokenToFormatOpts$1[o]}constructor(o,r){this.opts=r,this.loc=o,this.systemLoc=null}formatWithSystemDefault(o,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(o,{...this.opts,...r}).format()}dtFormatter(o,r={}){return this.loc.dtFormatter(o,{...this.opts,...r})}formatDateTime(o,r){return this.dtFormatter(o,r).format()}formatDateTimeParts(o,r){return this.dtFormatter(o,r).formatToParts()}formatInterval(o,r){return this.dtFormatter(o.start,r).dtf.formatRange(o.start.toJSDate(),o.end.toJSDate())}resolvedOptions(o,r){return this.dtFormatter(o,r).resolvedOptions()}num(o,r=0){if(this.opts.forceSimple)return padStart$1(o,r);let u={...this.opts};return r>0&&(u.padTo=r),this.loc.numberFormatter(u).format(o)}formatDateTimeFromString(o,r){let u=this.loc.listingMode()===`en`,h=this.loc.outputCalendar&&this.loc.outputCalendar!==`gregory`,m=(U,F)=>this.loc.extract(o,U,F),y=U=>o.isOffsetFixed&&o.offset===0&&U.allowZ?`Z`:o.isValid?o.zone.formatOffset(o.ts,U.format):``,S=()=>u?meridiemForDateTime$1(o):m({hour:`numeric`,hourCycle:`h12`},`dayperiod`),_=(U,F)=>u?monthForDateTime$1(o,U):m(F?{month:U}:{month:U,day:`numeric`},`month`),C=(U,F)=>u?weekdayForDateTime$1(o,U):m(F?{weekday:U}:{weekday:U,month:`long`,day:`numeric`},`weekday`),O=U=>{let F=Formatter$1.macroTokenToFormatOpts(U);return F?this.formatWithSystemDefault(o,F):U},I=U=>u?eraForDateTime$1(o,U):m({era:U},`era`),R$1=U=>{switch(U){case`S`:return this.num(o.millisecond);case`u`:case`SSS`:return this.num(o.millisecond,3);case`s`:return this.num(o.second);case`ss`:return this.num(o.second,2);case`uu`:return this.num(Math.floor(o.millisecond/10),2);case`uuu`:return this.num(Math.floor(o.millisecond/100));case`m`:return this.num(o.minute);case`mm`:return this.num(o.minute,2);case`h`:return this.num(o.hour%12==0?12:o.hour%12);case`hh`:return this.num(o.hour%12==0?12:o.hour%12,2);case`H`:return this.num(o.hour);case`HH`:return this.num(o.hour,2);case`Z`:return y({format:`narrow`,allowZ:this.opts.allowZ});case`ZZ`:return y({format:`short`,allowZ:this.opts.allowZ});case`ZZZ`:return y({format:`techie`,allowZ:this.opts.allowZ});case`ZZZZ`:return o.zone.offsetName(o.ts,{format:`short`,locale:this.loc.locale});case`ZZZZZ`:return o.zone.offsetName(o.ts,{format:`long`,locale:this.loc.locale});case`z`:return o.zoneName;case`a`:return S();case`d`:return h?m({day:`numeric`},`day`):this.num(o.day);case`dd`:return h?m({day:`2-digit`},`day`):this.num(o.day,2);case`c`:return this.num(o.weekday);case`ccc`:return C(`short`,!0);case`cccc`:return C(`long`,!0);case`ccccc`:return C(`narrow`,!0);case`E`:return this.num(o.weekday);case`EEE`:return C(`short`,!1);case`EEEE`:return C(`long`,!1);case`EEEEE`:return C(`narrow`,!1);case`L`:return h?m({month:`numeric`,day:`numeric`},`month`):this.num(o.month);case`LL`:return h?m({month:`2-digit`,day:`numeric`},`month`):this.num(o.month,2);case`LLL`:return _(`short`,!0);case`LLLL`:return _(`long`,!0);case`LLLLL`:return _(`narrow`,!0);case`M`:return h?m({month:`numeric`},`month`):this.num(o.month);case`MM`:return h?m({month:`2-digit`},`month`):this.num(o.month,2);case`MMM`:return _(`short`,!1);case`MMMM`:return _(`long`,!1);case`MMMMM`:return _(`narrow`,!1);case`y`:return h?m({year:`numeric`},`year`):this.num(o.year);case`yy`:return h?m({year:`2-digit`},`year`):this.num(o.year.toString().slice(-2),2);case`yyyy`:return h?m({year:`numeric`},`year`):this.num(o.year,4);case`yyyyyy`:return h?m({year:`numeric`},`year`):this.num(o.year,6);case`G`:return I(`short`);case`GG`:return I(`long`);case`GGGGG`:return I(`narrow`);case`kk`:return this.num(o.weekYear.toString().slice(-2),2);case`kkkk`:return this.num(o.weekYear,4);case`W`:return this.num(o.weekNumber);case`WW`:return this.num(o.weekNumber,2);case`n`:return this.num(o.localWeekNumber);case`nn`:return this.num(o.localWeekNumber,2);case`ii`:return this.num(o.localWeekYear.toString().slice(-2),2);case`iiii`:return this.num(o.localWeekYear,4);case`o`:return this.num(o.ordinal);case`ooo`:return this.num(o.ordinal,3);case`q`:return this.num(o.quarter);case`qq`:return this.num(o.quarter,2);case`X`:return this.num(Math.floor(o.ts/1e3));case`x`:return this.num(o.ts);default:return O(U)}};return stringifyTokens$1(Formatter$1.parseFormat(r),R$1)}formatDurationFromString(o,r){let u=_=>{switch(_[0]){case`S`:return`millisecond`;case`s`:return`second`;case`m`:return`minute`;case`h`:return`hour`;case`d`:return`day`;case`w`:return`week`;case`M`:return`month`;case`y`:return`year`;default:return null}},h=_=>C=>{let O=u(C);return O?this.num(_.get(O),C.length):C},m=Formatter$1.parseFormat(r),y=m.reduce((_,{literal:C,val:O})=>C?_:_.concat(O),[]),S=o.shiftTo(...y.map(u).filter(_=>_));return stringifyTokens$1(m,h(S))}};const ianaRegex$1=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes$1(...t$5){let o=t$5.reduce((r,u)=>r+u.source,``);return RegExp(`^${o}$`)}function combineExtractors$1(...t$5){return o=>t$5.reduce(([r,u,h],m)=>{let[y,S,_]=m(o,h);return[{...r,...y},S||u,_]},[{},null,1]).slice(0,2)}function parse$9(t$5,...o){if(t$5==null)return[null,null];for(let[r,u]of o){let h=r.exec(t$5);if(h)return u(h)}return[null,null]}function simpleParse$1(...t$5){return(o,r)=>{let u={},h;for(h=0;h<t$5.length;h++)u[t$5[h]]=parseInteger$1(o[r+h]);return[u,null,r+h]}}const offsetRegex$1=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone$1=`(?:${offsetRegex$1.source}?(?:\\[(${ianaRegex$1.source})\\])?)?`,isoTimeBaseRegex$1=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex$1=RegExp(`${isoTimeBaseRegex$1.source}${isoExtendedZone$1}`),isoTimeExtensionRegex$1=RegExp(`(?:T${isoTimeRegex$1.source})?`),isoYmdRegex$1=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex$1=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex$1=/(\d{4})-?(\d{3})/,extractISOWeekData$1=simpleParse$1(`weekYear`,`weekNumber`,`weekDay`),extractISOOrdinalData$1=simpleParse$1(`year`,`ordinal`),sqlYmdRegex$1=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex$1=RegExp(`${isoTimeBaseRegex$1.source} ?(?:${offsetRegex$1.source}|(${ianaRegex$1.source}))?`),sqlTimeExtensionRegex$1=RegExp(`(?: ${sqlTimeRegex$1.source})?`);function int$1(t$5,o,r){let u=t$5[o];return isUndefined$1(u)?r:parseInteger$1(u)}function extractISOYmd$1(t$5,o){return[{year:int$1(t$5,o),month:int$1(t$5,o+1,1),day:int$1(t$5,o+2,1)},null,o+3]}function extractISOTime$1(t$5,o){return[{hours:int$1(t$5,o,0),minutes:int$1(t$5,o+1,0),seconds:int$1(t$5,o+2,0),milliseconds:parseMillis$1(t$5[o+3])},null,o+4]}function extractISOOffset$1(t$5,o){let r=!t$5[o]&&!t$5[o+1],u=signedOffset$1(t$5[o+1],t$5[o+2]),h=r?null:FixedOffsetZone$1.instance(u);return[{},h,o+3]}function extractIANAZone$1(t$5,o){let r=t$5[o]?IANAZone$1.create(t$5[o]):null;return[{},r,o+1]}const isoTimeOnly$1=RegExp(`^T?${isoTimeBaseRegex$1.source}$`),isoDuration$1=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration$1(t$5){let[o,r,u,h,m,y,S,_,C]=t$5,O=o[0]===`-`,I=_&&_[0]===`-`,R$1=(U,F=!1)=>U!==void 0&&(F||U&&O)?-U:U;return[{years:R$1(parseFloating$1(r)),months:R$1(parseFloating$1(u)),weeks:R$1(parseFloating$1(h)),days:R$1(parseFloating$1(m)),hours:R$1(parseFloating$1(y)),minutes:R$1(parseFloating$1(S)),seconds:R$1(parseFloating$1(_),_===`-0`),milliseconds:R$1(parseMillis$1(C),I)}]}const obsOffsets$1={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings$1(t$5,o,r,u,h,m,y){let S={year:o.length===2?untruncateYear$1(parseInteger$1(o)):parseInteger$1(o),month:monthsShort$1.indexOf(r)+1,day:parseInteger$1(u),hour:parseInteger$1(h),minute:parseInteger$1(m)};return y&&(S.second=parseInteger$1(y)),t$5&&(S.weekday=t$5.length>3?weekdaysLong$1.indexOf(t$5)+1:weekdaysShort$1.indexOf(t$5)+1),S}const rfc2822$1=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822$1(t$5){let[,o,r,u,h,m,y,S,_,C,O,I]=t$5,R$1=fromStrings$1(o,h,u,r,m,y,S),U;return U=_?obsOffsets$1[_]:C?0:signedOffset$1(O,I),[R$1,new FixedOffsetZone$1(U)]}function preprocessRFC2822$1(t$5){return t$5.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).trim()}const rfc1123$1=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850$1=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii$1=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850$1(t$5){let[,o,r,u,h,m,y,S]=t$5;return[fromStrings$1(o,h,u,r,m,y,S),FixedOffsetZone$1.utcInstance]}function extractASCII$1(t$5){let[,o,r,u,h,m,y,S]=t$5;return[fromStrings$1(o,S,r,u,h,m,y),FixedOffsetZone$1.utcInstance]}const isoYmdWithTimeExtensionRegex$1=combineRegexes$1(isoYmdRegex$1,isoTimeExtensionRegex$1),isoWeekWithTimeExtensionRegex$1=combineRegexes$1(isoWeekRegex$1,isoTimeExtensionRegex$1),isoOrdinalWithTimeExtensionRegex$1=combineRegexes$1(isoOrdinalRegex$1,isoTimeExtensionRegex$1),isoTimeCombinedRegex$1=combineRegexes$1(isoTimeRegex$1),extractISOYmdTimeAndOffset$1=combineExtractors$1(extractISOYmd$1,extractISOTime$1,extractISOOffset$1,extractIANAZone$1),extractISOWeekTimeAndOffset$1=combineExtractors$1(extractISOWeekData$1,extractISOTime$1,extractISOOffset$1,extractIANAZone$1),extractISOOrdinalDateAndTime$1=combineExtractors$1(extractISOOrdinalData$1,extractISOTime$1,extractISOOffset$1,extractIANAZone$1),extractISOTimeAndOffset$1=combineExtractors$1(extractISOTime$1,extractISOOffset$1,extractIANAZone$1);function parseISODate$1(t$5){return parse$9(t$5,[isoYmdWithTimeExtensionRegex$1,extractISOYmdTimeAndOffset$1],[isoWeekWithTimeExtensionRegex$1,extractISOWeekTimeAndOffset$1],[isoOrdinalWithTimeExtensionRegex$1,extractISOOrdinalDateAndTime$1],[isoTimeCombinedRegex$1,extractISOTimeAndOffset$1])}function parseRFC2822Date$1(t$5){return parse$9(preprocessRFC2822$1(t$5),[rfc2822$1,extractRFC2822$1])}function parseHTTPDate$1(t$5){return parse$9(t$5,[rfc1123$1,extractRFC1123Or850$1],[rfc850$1,extractRFC1123Or850$1],[ascii$1,extractASCII$1])}function parseISODuration$1(t$5){return parse$9(t$5,[isoDuration$1,extractISODuration$1])}const extractISOTimeOnly$1=combineExtractors$1(extractISOTime$1);function parseISOTimeOnly$1(t$5){return parse$9(t$5,[isoTimeOnly$1,extractISOTimeOnly$1])}const sqlYmdWithTimeExtensionRegex$1=combineRegexes$1(sqlYmdRegex$1,sqlTimeExtensionRegex$1),sqlTimeCombinedRegex$1=combineRegexes$1(sqlTimeRegex$1),extractISOTimeOffsetAndIANAZone$1=combineExtractors$1(extractISOTime$1,extractISOOffset$1,extractIANAZone$1);function parseSQL$1(t$5){return parse$9(t$5,[sqlYmdWithTimeExtensionRegex$1,extractISOYmdTimeAndOffset$1],[sqlTimeCombinedRegex$1,extractISOTimeOffsetAndIANAZone$1])}const INVALID$2$2=`Invalid Duration`,lowOrderMatrix$1={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},casualMatrix$1={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...lowOrderMatrix$1},daysInYearAccurate$1=146097/400,daysInMonthAccurate$1=146097/4800,accurateMatrix$1={years:{quarters:4,months:12,weeks:daysInYearAccurate$1/7,days:daysInYearAccurate$1,hours:daysInYearAccurate$1*24,minutes:daysInYearAccurate$1*24*60,seconds:daysInYearAccurate$1*24*60*60,milliseconds:daysInYearAccurate$1*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate$1/28,days:daysInYearAccurate$1/4,hours:daysInYearAccurate$1*24/4,minutes:daysInYearAccurate$1*24*60/4,seconds:daysInYearAccurate$1*24*60*60/4,milliseconds:daysInYearAccurate$1*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate$1/7,days:daysInMonthAccurate$1,hours:daysInMonthAccurate$1*24,minutes:daysInMonthAccurate$1*24*60,seconds:daysInMonthAccurate$1*24*60*60,milliseconds:daysInMonthAccurate$1*24*60*60*1e3},...lowOrderMatrix$1},orderedUnits$1$1=[`years`,`quarters`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`],reverseUnits$1=orderedUnits$1$1.slice(0).reverse();function clone$1$1(t$5,o,r=!1){let u={values:r?o.values:{...t$5.values,...o.values||{}},loc:t$5.loc.clone(o.loc),conversionAccuracy:o.conversionAccuracy||t$5.conversionAccuracy,matrix:o.matrix||t$5.matrix};return new Duration$1(u)}function durationToMillis$1(t$5,o){let r=o.milliseconds??0;for(let u of reverseUnits$1.slice(1))o[u]&&(r+=o[u]*t$5[u].milliseconds);return r}function normalizeValues$1(t$5,o){let r=durationToMillis$1(t$5,o)<0?-1:1;orderedUnits$1$1.reduceRight((u,h)=>{if(isUndefined$1(o[h]))return u;if(u){let m=o[u]*r,y=t$5[h][u],S=Math.floor(m/y);o[h]+=S*r,o[u]-=S*y*r}return h},null),orderedUnits$1$1.reduce((u,h)=>{if(isUndefined$1(o[h]))return u;if(u){let m=o[u]%1;o[u]-=m,o[h]+=m*t$5[u][h]}return h},null)}function removeZeroes$1(t$5){let o={};for(let[r,u]of Object.entries(t$5))u!==0&&(o[r]=u);return o}var Duration$1=class Duration$1{constructor(o){let r=o.conversionAccuracy===`longterm`||!1,u=r?accurateMatrix$1:casualMatrix$1;o.matrix&&(u=o.matrix),this.values=o.values,this.loc=o.loc||Locale$1.create(),this.conversionAccuracy=r?`longterm`:`casual`,this.invalid=o.invalid||null,this.matrix=u,this.isLuxonDuration=!0}static fromMillis(o,r){return Duration$1.fromObject({milliseconds:o},r)}static fromObject(o,r={}){if(typeof o!=`object`||!o)throw new InvalidArgumentError$1(`Duration.fromObject: argument expected to be an object, got ${o===null?`null`:typeof o}`);return new Duration$1({values:normalizeObject$1(o,Duration$1.normalizeUnit),loc:Locale$1.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(o){if(isNumber$1(o))return Duration$1.fromMillis(o);if(Duration$1.isDuration(o))return o;if(typeof o==`object`)return Duration$1.fromObject(o);throw new InvalidArgumentError$1(`Unknown duration argument ${o} of type ${typeof o}`)}static fromISO(o,r){let[u]=parseISODuration$1(o);return u?Duration$1.fromObject(u,r):Duration$1.invalid(`unparsable`,`the input "${o}" can't be parsed as ISO 8601`)}static fromISOTime(o,r){let[u]=parseISOTimeOnly$1(o);return u?Duration$1.fromObject(u,r):Duration$1.invalid(`unparsable`,`the input "${o}" can't be parsed as ISO 8601`)}static invalid(o,r=null){if(!o)throw new InvalidArgumentError$1(`need to specify a reason the Duration is invalid`);let u=o instanceof Invalid$1?o:new Invalid$1(o,r);if(Settings$1.throwOnInvalid)throw new InvalidDurationError$1(u);return new Duration$1({invalid:u})}static normalizeUnit(o){let r={year:`years`,years:`years`,quarter:`quarters`,quarters:`quarters`,month:`months`,months:`months`,week:`weeks`,weeks:`weeks`,day:`days`,days:`days`,hour:`hours`,hours:`hours`,minute:`minutes`,minutes:`minutes`,second:`seconds`,seconds:`seconds`,millisecond:`milliseconds`,milliseconds:`milliseconds`}[o&&o.toLowerCase()];if(!r)throw new InvalidUnitError$1(o);return r}static isDuration(o){return o&&o.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(o,r={}){let u={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?Formatter$1.create(this.loc,u).formatDurationFromString(this,o):INVALID$2$2}toHuman(o={}){if(!this.isValid)return INVALID$2$2;let r=orderedUnits$1$1.map(u=>{let h=this.values[u];return isUndefined$1(h)?null:this.loc.numberFormatter({style:`unit`,unitDisplay:`long`,...o,unit:u.slice(0,-1)}).format(h)}).filter(u=>u);return this.loc.listFormatter({type:`conjunction`,style:o.listStyle||`narrow`,...o}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let o=`P`;return this.years!==0&&(o+=this.years+`Y`),(this.months!==0||this.quarters!==0)&&(o+=this.months+this.quarters*3+`M`),this.weeks!==0&&(o+=this.weeks+`W`),this.days!==0&&(o+=this.days+`D`),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(o+=`T`),this.hours!==0&&(o+=this.hours+`H`),this.minutes!==0&&(o+=this.minutes+`M`),(this.seconds!==0||this.milliseconds!==0)&&(o+=roundTo$1(this.seconds+this.milliseconds/1e3,3)+`S`),o===`P`&&(o+=`T0S`),o}toISOTime(o={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(o={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:`extended`,...o,includeOffset:!1},DateTime$1.fromMillis(r,{zone:`UTC`}).toISOTime(o))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?durationToMillis$1(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(o){if(!this.isValid)return this;let r=Duration$1.fromDurationLike(o),u={};for(let h of orderedUnits$1$1)(hasOwnProperty$1(r.values,h)||hasOwnProperty$1(this.values,h))&&(u[h]=r.get(h)+this.get(h));return clone$1$1(this,{values:u},!0)}minus(o){if(!this.isValid)return this;let r=Duration$1.fromDurationLike(o);return this.plus(r.negate())}mapUnits(o){if(!this.isValid)return this;let r={};for(let u of Object.keys(this.values))r[u]=asNumber$1(o(this.values[u],u));return clone$1$1(this,{values:r},!0)}get(o){return this[Duration$1.normalizeUnit(o)]}set(o){if(!this.isValid)return this;let r={...this.values,...normalizeObject$1(o,Duration$1.normalizeUnit)};return clone$1$1(this,{values:r})}reconfigure({locale:o,numberingSystem:r,conversionAccuracy:u,matrix:h}={}){let y={loc:this.loc.clone({locale:o,numberingSystem:r}),matrix:h,conversionAccuracy:u};return clone$1$1(this,y)}as(o){return this.isValid?this.shiftTo(o).get(o):NaN}normalize(){if(!this.isValid)return this;let o=this.toObject();return normalizeValues$1(this.matrix,o),clone$1$1(this,{values:o},!0)}rescale(){if(!this.isValid)return this;let o=removeZeroes$1(this.normalize().shiftToAll().toObject());return clone$1$1(this,{values:o},!0)}shiftTo(...o){if(!this.isValid||o.length===0)return this;o=o.map(y=>Duration$1.normalizeUnit(y));let r={},u={},h=this.toObject(),m;for(let y of orderedUnits$1$1)if(o.indexOf(y)>=0){m=y;let S=0;for(let C in u)S+=this.matrix[C][y]*u[C],u[C]=0;isNumber$1(h[y])&&(S+=h[y]);let _=Math.trunc(S);r[y]=_,u[y]=(S*1e3-_*1e3)/1e3}else isNumber$1(h[y])&&(u[y]=h[y]);for(let y in u)u[y]!==0&&(r[m]+=y===m?u[y]:u[y]/this.matrix[m][y]);return normalizeValues$1(this.matrix,r),clone$1$1(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo(`years`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`):this}negate(){if(!this.isValid)return this;let o={};for(let r of Object.keys(this.values))o[r]=this.values[r]===0?0:-this.values[r];return clone$1$1(this,{values:o},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(o){if(!this.isValid||!o.isValid||!this.loc.equals(o.loc))return!1;function r(u,h){return u===void 0||u===0?h===void 0||h===0:u===h}for(let u of orderedUnits$1$1)if(!r(this.values[u],o.values[u]))return!1;return!0}};const INVALID$1$4=`Invalid Interval`;function validateStartEnd$1(t$5,o){return!t$5||!t$5.isValid?Interval$1.invalid(`missing or invalid start`):!o||!o.isValid?Interval$1.invalid(`missing or invalid end`):o<t$5?Interval$1.invalid(`end before start`,`The end of an interval must be after its start, but you had start=${t$5.toISO()} and end=${o.toISO()}`):null}var Interval$1=class Interval$1{constructor(o){this.s=o.start,this.e=o.end,this.invalid=o.invalid||null,this.isLuxonInterval=!0}static invalid(o,r=null){if(!o)throw new InvalidArgumentError$1(`need to specify a reason the Interval is invalid`);let u=o instanceof Invalid$1?o:new Invalid$1(o,r);if(Settings$1.throwOnInvalid)throw new InvalidIntervalError$1(u);return new Interval$1({invalid:u})}static fromDateTimes(o,r){let u=friendlyDateTime$1(o),h=friendlyDateTime$1(r),m=validateStartEnd$1(u,h);return m??new Interval$1({start:u,end:h})}static after(o,r){let u=Duration$1.fromDurationLike(r),h=friendlyDateTime$1(o);return Interval$1.fromDateTimes(h,h.plus(u))}static before(o,r){let u=Duration$1.fromDurationLike(r),h=friendlyDateTime$1(o);return Interval$1.fromDateTimes(h.minus(u),h)}static fromISO(o,r){let[u,h]=(o||``).split(`/`,2);if(u&&h){let m,y;try{m=DateTime$1.fromISO(u,r),y=m.isValid}catch{y=!1}let S,_;try{S=DateTime$1.fromISO(h,r),_=S.isValid}catch{_=!1}if(y&&_)return Interval$1.fromDateTimes(m,S);if(y){let C=Duration$1.fromISO(h,r);if(C.isValid)return Interval$1.after(m,C)}else if(_){let C=Duration$1.fromISO(u,r);if(C.isValid)return Interval$1.before(S,C)}}return Interval$1.invalid(`unparsable`,`the input "${o}" can't be parsed as ISO 8601`)}static isInterval(o){return o&&o.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(o=`milliseconds`){return this.isValid?this.toDuration(o).get(o):NaN}count(o=`milliseconds`,r){if(!this.isValid)return NaN;let u=this.start.startOf(o,r),h;return h=r!=null&&r.useLocaleWeeks?this.end.reconfigure({locale:u.locale}):this.end,h=h.startOf(o,r),Math.floor(h.diff(u,o).get(o))+(h.valueOf()!==this.end.valueOf())}hasSame(o){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,o):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(o){return this.isValid?this.s>o:!1}isBefore(o){return this.isValid?this.e<=o:!1}contains(o){return this.isValid?this.s<=o&&this.e>o:!1}set({start:o,end:r}={}){return this.isValid?Interval$1.fromDateTimes(o||this.s,r||this.e):this}splitAt(...o){if(!this.isValid)return[];let r=o.map(friendlyDateTime$1).filter(y=>this.contains(y)).sort((y,S)=>y.toMillis()-S.toMillis()),u=[],{s:h}=this,m=0;for(;h<this.e;){let y=r[m]||this.e,S=+y>+this.e?this.e:y;u.push(Interval$1.fromDateTimes(h,S)),h=S,m+=1}return u}splitBy(o){let r=Duration$1.fromDurationLike(o);if(!this.isValid||!r.isValid||r.as(`milliseconds`)===0)return[];let{s:u}=this,h=1,m,y=[];for(;u<this.e;){let S=this.start.plus(r.mapUnits(_=>_*h));m=+S>+this.e?this.e:S,y.push(Interval$1.fromDateTimes(u,m)),u=m,h+=1}return y}divideEqually(o){return this.isValid?this.splitBy(this.length()/o).slice(0,o):[]}overlaps(o){return this.e>o.s&&this.s<o.e}abutsStart(o){return this.isValid?+this.e==+o.s:!1}abutsEnd(o){return this.isValid?+o.e==+this.s:!1}engulfs(o){return this.isValid?this.s<=o.s&&this.e>=o.e:!1}equals(o){return!this.isValid||!o.isValid?!1:this.s.equals(o.s)&&this.e.equals(o.e)}intersection(o){if(!this.isValid)return this;let r=this.s>o.s?this.s:o.s,u=this.e<o.e?this.e:o.e;return r>=u?null:Interval$1.fromDateTimes(r,u)}union(o){if(!this.isValid)return this;let r=this.s<o.s?this.s:o.s,u=this.e>o.e?this.e:o.e;return Interval$1.fromDateTimes(r,u)}static merge(o){let[r,u]=o.sort((h,m)=>h.s-m.s).reduce(([h,m],y)=>m?m.overlaps(y)||m.abutsStart(y)?[h,m.union(y)]:[h.concat([m]),y]:[h,y],[[],null]);return u&&r.push(u),r}static xor(o){let r=null,u=0,h=[],m=o.map(_=>[{time:_.s,type:`s`},{time:_.e,type:`e`}]),y=Array.prototype.concat(...m),S=y.sort((_,C)=>_.time-C.time);for(let _ of S)u+=_.type===`s`?1:-1,u===1?r=_.time:(r&&+r!=+_.time&&h.push(Interval$1.fromDateTimes(r,_.time)),r=null);return Interval$1.merge(h)}difference(...o){return Interval$1.xor([this].concat(o)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1$4}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(o=DATE_SHORT$1,r={}){return this.isValid?Formatter$1.create(this.s.loc.clone(r),o).formatInterval(this):INVALID$1$4}toISO(o){return this.isValid?`${this.s.toISO(o)}/${this.e.toISO(o)}`:INVALID$1$4}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1$4}toISOTime(o){return this.isValid?`${this.s.toISOTime(o)}/${this.e.toISOTime(o)}`:INVALID$1$4}toFormat(o,{separator:r=` – `}={}){return this.isValid?`${this.s.toFormat(o)}${r}${this.e.toFormat(o)}`:INVALID$1$4}toDuration(o,r){return this.isValid?this.e.diff(this.s,o,r):Duration$1.invalid(this.invalidReason)}mapEndpoints(o){return Interval$1.fromDateTimes(o(this.s),o(this.e))}},Info$1=class{static hasDST(o=Settings$1.defaultZone){let r=DateTime$1.now().setZone(o).set({month:12});return!o.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(o){return IANAZone$1.isValidZone(o)}static normalizeZone(o){return normalizeZone$1(o,Settings$1.defaultZone)}static getStartOfWeek({locale:o=null,locObj:r=null}={}){return(r||Locale$1.create(o)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:o=null,locObj:r=null}={}){return(r||Locale$1.create(o)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:o=null,locObj:r=null}={}){return(r||Locale$1.create(o)).getWeekendDays().slice()}static months(o=`long`,{locale:r=null,numberingSystem:u=null,locObj:h=null,outputCalendar:m=`gregory`}={}){return(h||Locale$1.create(r,u,m)).months(o)}static monthsFormat(o=`long`,{locale:r=null,numberingSystem:u=null,locObj:h=null,outputCalendar:m=`gregory`}={}){return(h||Locale$1.create(r,u,m)).months(o,!0)}static weekdays(o=`long`,{locale:r=null,numberingSystem:u=null,locObj:h=null}={}){return(h||Locale$1.create(r,u,null)).weekdays(o)}static weekdaysFormat(o=`long`,{locale:r=null,numberingSystem:u=null,locObj:h=null}={}){return(h||Locale$1.create(r,u,null)).weekdays(o,!0)}static meridiems({locale:o=null}={}){return Locale$1.create(o).meridiems()}static eras(o=`short`,{locale:r=null}={}){return Locale$1.create(r,null,`gregory`).eras(o)}static features(){return{relative:hasRelative$1(),localeWeek:hasLocaleWeekInfo$1()}}};function dayDiff$1(t$5,o){let r=h=>h.toUTC(0,{keepLocalTime:!0}).startOf(`day`).valueOf(),u=r(o)-r(t$5);return Math.floor(Duration$1.fromMillis(u).as(`days`))}function highOrderDiffs$1(t$5,o,r){let u=[[`years`,(_,C)=>C.year-_.year],[`quarters`,(_,C)=>C.quarter-_.quarter+(C.year-_.year)*4],[`months`,(_,C)=>C.month-_.month+(C.year-_.year)*12],[`weeks`,(_,C)=>{let O=dayDiff$1(_,C);return(O-O%7)/7}],[`days`,dayDiff$1]],h={},m=t$5,y,S;for(let[_,C]of u)r.indexOf(_)>=0&&(y=_,h[_]=C(t$5,o),S=m.plus(h),S>o?(h[_]--,t$5=m.plus(h),t$5>o&&(S=t$5,h[_]--,t$5=m.plus(h))):t$5=S);return[t$5,h,S,y]}function diff$3(t$5,o,r,u){let[h,m,y,S]=highOrderDiffs$1(t$5,o,r),_=o-h,C=r.filter(I=>[`hours`,`minutes`,`seconds`,`milliseconds`].indexOf(I)>=0);C.length===0&&(y<o&&(y=h.plus({[S]:1})),y!==h&&(m[S]=(m[S]||0)+_/(y-h)));let O=Duration$1.fromObject(m,u);return C.length>0?Duration$1.fromMillis(_,u).shiftTo(...C).plus(O):O}const MISSING_FTP$1=`missing Intl.DateTimeFormat.formatToParts support`;function intUnit$1(t$5,o=r=>r){return{regex:t$5,deser:([r])=>o(parseDigits$1(r))}}const NBSP$1=`\xA0`,spaceOrNBSP$1=`[ ${NBSP$1}]`,spaceOrNBSPRegExp$1=new RegExp(spaceOrNBSP$1,`g`);function fixListRegex$1(t$5){return t$5.replace(/\./g,`\\.?`).replace(spaceOrNBSPRegExp$1,spaceOrNBSP$1)}function stripInsensitivities$1(t$5){return t$5.replace(/\./g,``).replace(spaceOrNBSPRegExp$1,` `).toLowerCase()}function oneOf$1(t$5,o){return t$5===null?null:{regex:RegExp(t$5.map(fixListRegex$1).join(`|`)),deser:([r])=>t$5.findIndex(u=>stripInsensitivities$1(r)===stripInsensitivities$1(u))+o}}function offset$1(t$5,o){return{regex:t$5,deser:([,r,u])=>signedOffset$1(r,u),groups:o}}function simple$1(t$5){return{regex:t$5,deser:([o])=>o}}function escapeToken$1(t$5){return t$5.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,`\\$&`)}function unitForToken$1(t$5,o){let r=digitRegex$1(o),u=digitRegex$1(o,`{2}`),h=digitRegex$1(o,`{3}`),m=digitRegex$1(o,`{4}`),y=digitRegex$1(o,`{6}`),S=digitRegex$1(o,`{1,2}`),_=digitRegex$1(o,`{1,3}`),C=digitRegex$1(o,`{1,6}`),O=digitRegex$1(o,`{1,9}`),I=digitRegex$1(o,`{2,4}`),R$1=digitRegex$1(o,`{4,6}`),U=Y=>({regex:RegExp(escapeToken$1(Y.val)),deser:([K])=>K,literal:!0}),G=(Y=>{if(t$5.literal)return U(Y);switch(Y.val){case`G`:return oneOf$1(o.eras(`short`),0);case`GG`:return oneOf$1(o.eras(`long`),0);case`y`:return intUnit$1(C);case`yy`:return intUnit$1(I,untruncateYear$1);case`yyyy`:return intUnit$1(m);case`yyyyy`:return intUnit$1(R$1);case`yyyyyy`:return intUnit$1(y);case`M`:return intUnit$1(S);case`MM`:return intUnit$1(u);case`MMM`:return oneOf$1(o.months(`short`,!0),1);case`MMMM`:return oneOf$1(o.months(`long`,!0),1);case`L`:return intUnit$1(S);case`LL`:return intUnit$1(u);case`LLL`:return oneOf$1(o.months(`short`,!1),1);case`LLLL`:return oneOf$1(o.months(`long`,!1),1);case`d`:return intUnit$1(S);case`dd`:return intUnit$1(u);case`o`:return intUnit$1(_);case`ooo`:return intUnit$1(h);case`HH`:return intUnit$1(u);case`H`:return intUnit$1(S);case`hh`:return intUnit$1(u);case`h`:return intUnit$1(S);case`mm`:return intUnit$1(u);case`m`:return intUnit$1(S);case`q`:return intUnit$1(S);case`qq`:return intUnit$1(u);case`s`:return intUnit$1(S);case`ss`:return intUnit$1(u);case`S`:return intUnit$1(_);case`SSS`:return intUnit$1(h);case`u`:return simple$1(O);case`uu`:return simple$1(S);case`uuu`:return intUnit$1(r);case`a`:return oneOf$1(o.meridiems(),0);case`kkkk`:return intUnit$1(m);case`kk`:return intUnit$1(I,untruncateYear$1);case`W`:return intUnit$1(S);case`WW`:return intUnit$1(u);case`E`:case`c`:return intUnit$1(r);case`EEE`:return oneOf$1(o.weekdays(`short`,!1),1);case`EEEE`:return oneOf$1(o.weekdays(`long`,!1),1);case`ccc`:return oneOf$1(o.weekdays(`short`,!0),1);case`cccc`:return oneOf$1(o.weekdays(`long`,!0),1);case`Z`:case`ZZ`:return offset$1(RegExp(`([+-]${S.source})(?::(${u.source}))?`),2);case`ZZZ`:return offset$1(RegExp(`([+-]${S.source})(${u.source})?`),2);case`z`:return simple$1(/[a-z_+-/]{1,256}?/i);case` `:return simple$1(/[^\S\n\r]/);default:return U(Y)}})(t$5)||{invalidReason:MISSING_FTP$1};return G.token=t$5,G}const partTypeStyleToTokenVal$1={year:{"2-digit":`yy`,numeric:`yyyyy`},month:{numeric:`M`,"2-digit":`MM`,short:`MMM`,long:`MMMM`},day:{numeric:`d`,"2-digit":`dd`},weekday:{short:`EEE`,long:`EEEE`},dayperiod:`a`,dayPeriod:`a`,hour12:{numeric:`h`,"2-digit":`hh`},hour24:{numeric:`H`,"2-digit":`HH`},minute:{numeric:`m`,"2-digit":`mm`},second:{numeric:`s`,"2-digit":`ss`},timeZoneName:{long:`ZZZZZ`,short:`ZZZ`}};function tokenForPart$1(t$5,o,r){let{type:u,value:h}=t$5;if(u===`literal`){let _=/^\s+$/.test(h);return{literal:!_,val:_?` `:h}}let m=o[u],y=u;u===`hour`&&(y=o.hour12==null?o.hourCycle==null?r.hour12?`hour12`:`hour24`:o.hourCycle===`h11`||o.hourCycle===`h12`?`hour12`:`hour24`:o.hour12?`hour12`:`hour24`);let S=partTypeStyleToTokenVal$1[y];if(typeof S==`object`&&(S=S[m]),S)return{literal:!1,val:S}}function buildRegex$1(t$5){return[`^${t$5.map(r=>r.regex).reduce((r,u)=>`${r}(${u.source})`,``)}$`,t$5]}function match$1(t$5,o,r){let u=t$5.match(o);if(u){let h={},m=1;for(let y in r)if(hasOwnProperty$1(r,y)){let S=r[y],_=S.groups?S.groups+1:1;!S.literal&&S.token&&(h[S.token.val[0]]=S.deser(u.slice(m,m+_))),m+=_}return[u,h]}else return[u,{}]}function dateTimeFromMatches$1(t$5){let o=m=>{switch(m){case`S`:return`millisecond`;case`s`:return`second`;case`m`:return`minute`;case`h`:case`H`:return`hour`;case`d`:return`day`;case`o`:return`ordinal`;case`L`:case`M`:return`month`;case`y`:return`year`;case`E`:case`c`:return`weekday`;case`W`:return`weekNumber`;case`k`:return`weekYear`;case`q`:return`quarter`;default:return null}},r=null,u;return isUndefined$1(t$5.z)||(r=IANAZone$1.create(t$5.z)),isUndefined$1(t$5.Z)||(r||=new FixedOffsetZone$1(t$5.Z),u=t$5.Z),isUndefined$1(t$5.q)||(t$5.M=(t$5.q-1)*3+1),isUndefined$1(t$5.h)||(t$5.h<12&&t$5.a===1?t$5.h+=12:t$5.h===12&&t$5.a===0&&(t$5.h=0)),t$5.G===0&&t$5.y&&(t$5.y=-t$5.y),isUndefined$1(t$5.u)||(t$5.S=parseMillis$1(t$5.u)),[Object.keys(t$5).reduce((m,y)=>{let S=o(y);return S&&(m[S]=t$5[y]),m},{}),r,u]}let dummyDateTimeCache$1=null;function getDummyDateTime$1(){return dummyDateTimeCache$1||=DateTime$1.fromMillis(1555555555555),dummyDateTimeCache$1}function maybeExpandMacroToken$1(t$5,o){if(t$5.literal)return t$5;let r=Formatter$1.macroTokenToFormatOpts(t$5.val),u=formatOptsToTokens$1(r,o);return u==null||u.includes(void 0)?t$5:u}function expandMacroTokens$1(t$5,o){return Array.prototype.concat(...t$5.map(r=>maybeExpandMacroToken$1(r,o)))}var TokenParser$1=class{constructor(o,r){if(this.locale=o,this.format=r,this.tokens=expandMacroTokens$1(Formatter$1.parseFormat(r),o),this.units=this.tokens.map(u=>unitForToken$1(u,o)),this.disqualifyingUnit=this.units.find(u=>u.invalidReason),!this.disqualifyingUnit){let[u,h]=buildRegex$1(this.units);this.regex=RegExp(u,`i`),this.handlers=h}}explainFromTokens(o){if(this.isValid){let[r,u]=match$1(o,this.regex,this.handlers),[h,m,y]=u?dateTimeFromMatches$1(u):[null,null,void 0];if(hasOwnProperty$1(u,`a`)&&hasOwnProperty$1(u,`H`))throw new ConflictingSpecificationError$1(`Can't include meridiem when specifying 24-hour format`);return{input:o,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:u,result:h,zone:m,specificOffset:y}}else return{input:o,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function explainFromTokens$1(t$5,o,r){return new TokenParser$1(t$5,r).explainFromTokens(o)}function parseFromTokens$1(t$5,o,r){let{result:u,zone:h,specificOffset:m,invalidReason:y}=explainFromTokens$1(t$5,o,r);return[u,h,m,y]}function formatOptsToTokens$1(t$5,o){if(!t$5)return null;let u=Formatter$1.create(o,t$5).dtFormatter(getDummyDateTime$1()),h=u.formatToParts(),m=u.resolvedOptions();return h.map(y=>tokenForPart$1(y,t$5,m))}const INVALID$5=`Invalid DateTime`,MAX_DATE$1=864e13;function unsupportedZone$1(t$5){return new Invalid$1(`unsupported zone`,`the zone "${t$5.name}" is not supported`)}function possiblyCachedWeekData$1(t$5){return t$5.weekData===null&&(t$5.weekData=gregorianToWeek$1(t$5.c)),t$5.weekData}function possiblyCachedLocalWeekData$1(t$5){return t$5.localWeekData===null&&(t$5.localWeekData=gregorianToWeek$1(t$5.c,t$5.loc.getMinDaysInFirstWeek(),t$5.loc.getStartOfWeek())),t$5.localWeekData}function clone$2(t$5,o){let r={ts:t$5.ts,zone:t$5.zone,c:t$5.c,o:t$5.o,loc:t$5.loc,invalid:t$5.invalid};return new DateTime$1({...r,...o,old:r})}function fixOffset$1(t$5,o,r){let u=t$5-o*60*1e3,h=r.offset(u);if(o===h)return[u,o];u-=(h-o)*60*1e3;let m=r.offset(u);return h===m?[u,h]:[t$5-Math.min(h,m)*60*1e3,Math.max(h,m)]}function tsToObj$1(t$5,o){t$5+=o*60*1e3;let r=new Date(t$5);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS$1(t$5,o,r){return fixOffset$1(objToLocalTS$1(t$5),o,r)}function adjustTime$1(t$5,o){let r=t$5.o,u=t$5.c.year+Math.trunc(o.years),h=t$5.c.month+Math.trunc(o.months)+Math.trunc(o.quarters)*3,m={...t$5.c,year:u,month:h,day:Math.min(t$5.c.day,daysInMonth$1(u,h))+Math.trunc(o.days)+Math.trunc(o.weeks)*7},y=Duration$1.fromObject({years:o.years-Math.trunc(o.years),quarters:o.quarters-Math.trunc(o.quarters),months:o.months-Math.trunc(o.months),weeks:o.weeks-Math.trunc(o.weeks),days:o.days-Math.trunc(o.days),hours:o.hours,minutes:o.minutes,seconds:o.seconds,milliseconds:o.milliseconds}).as(`milliseconds`),S=objToLocalTS$1(m),[_,C]=fixOffset$1(S,r,t$5.zone);return y!==0&&(_+=y,C=t$5.zone.offset(_)),{ts:_,o:C}}function parseDataToDateTime$1(t$5,o,r,u,h,m){let{setZone:y,zone:S}=r;if(t$5&&Object.keys(t$5).length!==0||o){let _=o||S,C=DateTime$1.fromObject(t$5,{...r,zone:_,specificOffset:m});return y?C:C.setZone(S)}else return DateTime$1.invalid(new Invalid$1(`unparsable`,`the input "${h}" can't be parsed as ${u}`))}function toTechFormat$1(t$5,o,r=!0){return t$5.isValid?Formatter$1.create(Locale$1.create(`en-US`),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t$5,o):null}function toISODate$1(t$5,o){let r=t$5.c.year>9999||t$5.c.year<0,u=``;return r&&t$5.c.year>=0&&(u+=`+`),u+=padStart$1(t$5.c.year,r?6:4),o?(u+=`-`,u+=padStart$1(t$5.c.month),u+=`-`,u+=padStart$1(t$5.c.day)):(u+=padStart$1(t$5.c.month),u+=padStart$1(t$5.c.day)),u}function toISOTime$1(t$5,o,r,u,h,m){let y=padStart$1(t$5.c.hour);return o?(y+=`:`,y+=padStart$1(t$5.c.minute),(t$5.c.millisecond!==0||t$5.c.second!==0||!r)&&(y+=`:`)):y+=padStart$1(t$5.c.minute),(t$5.c.millisecond!==0||t$5.c.second!==0||!r)&&(y+=padStart$1(t$5.c.second),(t$5.c.millisecond!==0||!u)&&(y+=`.`,y+=padStart$1(t$5.c.millisecond,3))),h&&(t$5.isOffsetFixed&&t$5.offset===0&&!m?y+=`Z`:t$5.o<0?(y+=`-`,y+=padStart$1(Math.trunc(-t$5.o/60)),y+=`:`,y+=padStart$1(Math.trunc(-t$5.o%60))):(y+=`+`,y+=padStart$1(Math.trunc(t$5.o/60)),y+=`:`,y+=padStart$1(Math.trunc(t$5.o%60)))),m&&(y+=`[`+t$5.zone.ianaName+`]`),y}const defaultUnitValues$1={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues$1={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues$1={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits$2=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],orderedWeekUnits$1=[`weekYear`,`weekNumber`,`weekday`,`hour`,`minute`,`second`,`millisecond`],orderedOrdinalUnits$1=[`year`,`ordinal`,`hour`,`minute`,`second`,`millisecond`];function normalizeUnit$1(t$5){let o={year:`year`,years:`year`,month:`month`,months:`month`,day:`day`,days:`day`,hour:`hour`,hours:`hour`,minute:`minute`,minutes:`minute`,quarter:`quarter`,quarters:`quarter`,second:`second`,seconds:`second`,millisecond:`millisecond`,milliseconds:`millisecond`,weekday:`weekday`,weekdays:`weekday`,weeknumber:`weekNumber`,weeksnumber:`weekNumber`,weeknumbers:`weekNumber`,weekyear:`weekYear`,weekyears:`weekYear`,ordinal:`ordinal`}[t$5.toLowerCase()];if(!o)throw new InvalidUnitError$1(t$5);return o}function normalizeUnitWithLocalWeeks$1(t$5){switch(t$5.toLowerCase()){case`localweekday`:case`localweekdays`:return`localWeekday`;case`localweeknumber`:case`localweeknumbers`:return`localWeekNumber`;case`localweekyear`:case`localweekyears`:return`localWeekYear`;default:return normalizeUnit$1(t$5)}}function guessOffsetForZone$1(t$5){if(zoneOffsetTs$1===void 0&&(zoneOffsetTs$1=Settings$1.now()),t$5.type!==`iana`)return t$5.offset(zoneOffsetTs$1);let o=t$5.name,r=zoneOffsetGuessCache$1.get(o);return r===void 0&&(r=t$5.offset(zoneOffsetTs$1),zoneOffsetGuessCache$1.set(o,r)),r}function quickDT$1(t$5,o){let r=normalizeZone$1(o.zone,Settings$1.defaultZone);if(!r.isValid)return DateTime$1.invalid(unsupportedZone$1(r));let u=Locale$1.fromObject(o),h,m;if(isUndefined$1(t$5.year))h=Settings$1.now();else{for(let _ of orderedUnits$2)isUndefined$1(t$5[_])&&(t$5[_]=defaultUnitValues$1[_]);let y=hasInvalidGregorianData$1(t$5)||hasInvalidTimeData$1(t$5);if(y)return DateTime$1.invalid(y);let S=guessOffsetForZone$1(r);[h,m]=objToTS$1(t$5,S,r)}return new DateTime$1({ts:h,zone:r,loc:u,o:m})}function diffRelative$1(t$5,o,r){let u=isUndefined$1(r.round)?!0:r.round,h=(y,S)=>(y=roundTo$1(y,u||r.calendary?0:2,!0),o.loc.clone(r).relFormatter(r).format(y,S)),m=y=>r.calendary?o.hasSame(t$5,y)?0:o.startOf(y).diff(t$5.startOf(y),y).get(y):o.diff(t$5,y).get(y);if(r.unit)return h(m(r.unit),r.unit);for(let y of r.units){let S=m(y);if(Math.abs(S)>=1)return h(S,y)}return h(t$5>o?-0:0,r.units[r.units.length-1])}function lastOpts$1(t$5){let o={},r;return t$5.length>0&&typeof t$5[t$5.length-1]==`object`?(o=t$5[t$5.length-1],r=Array.from(t$5).slice(0,t$5.length-1)):r=Array.from(t$5),[o,r]}let zoneOffsetTs$1;const zoneOffsetGuessCache$1=new Map;var DateTime$1=class DateTime$1{constructor(o){let r=o.zone||Settings$1.defaultZone,u=o.invalid||(Number.isNaN(o.ts)?new Invalid$1(`invalid input`):null)||(r.isValid?null:unsupportedZone$1(r));this.ts=isUndefined$1(o.ts)?Settings$1.now():o.ts;let h=null,m=null;if(!u)if(o.old&&o.old.ts===this.ts&&o.old.zone.equals(r))[h,m]=[o.old.c,o.old.o];else{let S=isNumber$1(o.o)&&!o.old?o.o:r.offset(this.ts);h=tsToObj$1(this.ts,S),u=Number.isNaN(h.year)?new Invalid$1(`invalid input`):null,h=u?null:h,m=u?null:S}this._zone=r,this.loc=o.loc||Locale$1.create(),this.invalid=u,this.weekData=null,this.localWeekData=null,this.c=h,this.o=m,this.isLuxonDateTime=!0}static now(){return new DateTime$1({})}static local(){let[o,r]=lastOpts$1(arguments),[u,h,m,y,S,_,C]=r;return quickDT$1({year:u,month:h,day:m,hour:y,minute:S,second:_,millisecond:C},o)}static utc(){let[o,r]=lastOpts$1(arguments),[u,h,m,y,S,_,C]=r;return o.zone=FixedOffsetZone$1.utcInstance,quickDT$1({year:u,month:h,day:m,hour:y,minute:S,second:_,millisecond:C},o)}static fromJSDate(o,r={}){let u=isDate$1(o)?o.valueOf():NaN;if(Number.isNaN(u))return DateTime$1.invalid(`invalid input`);let h=normalizeZone$1(r.zone,Settings$1.defaultZone);return h.isValid?new DateTime$1({ts:u,zone:h,loc:Locale$1.fromObject(r)}):DateTime$1.invalid(unsupportedZone$1(h))}static fromMillis(o,r={}){if(isNumber$1(o))return o<-MAX_DATE$1||o>MAX_DATE$1?DateTime$1.invalid(`Timestamp out of range`):new DateTime$1({ts:o,zone:normalizeZone$1(r.zone,Settings$1.defaultZone),loc:Locale$1.fromObject(r)});throw new InvalidArgumentError$1(`fromMillis requires a numerical input, but received a ${typeof o} with value ${o}`)}static fromSeconds(o,r={}){if(isNumber$1(o))return new DateTime$1({ts:o*1e3,zone:normalizeZone$1(r.zone,Settings$1.defaultZone),loc:Locale$1.fromObject(r)});throw new InvalidArgumentError$1(`fromSeconds requires a numerical input`)}static fromObject(o,r={}){o||={};let u=normalizeZone$1(r.zone,Settings$1.defaultZone);if(!u.isValid)return DateTime$1.invalid(unsupportedZone$1(u));let h=Locale$1.fromObject(r),m=normalizeObject$1(o,normalizeUnitWithLocalWeeks$1),{minDaysInFirstWeek:y,startOfWeek:S}=usesLocalWeekValues$1(m,h),_=Settings$1.now(),C=isUndefined$1(r.specificOffset)?u.offset(_):r.specificOffset,O=!isUndefined$1(m.ordinal),I=!isUndefined$1(m.year),R$1=!isUndefined$1(m.month)||!isUndefined$1(m.day),U=I||R$1,F=m.weekYear||m.weekNumber;if((U||O)&&F)throw new ConflictingSpecificationError$1(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(R$1&&O)throw new ConflictingSpecificationError$1(`Can't mix ordinal dates with month/day`);let G=F||m.weekday&&!U,Y,K,te$1=tsToObj$1(_,C);G?(Y=orderedWeekUnits$1,K=defaultWeekUnitValues$1,te$1=gregorianToWeek$1(te$1,y,S)):O?(Y=orderedOrdinalUnits$1,K=defaultOrdinalUnitValues$1,te$1=gregorianToOrdinal$1(te$1)):(Y=orderedUnits$2,K=defaultUnitValues$1);let de=!1;for(let re$5 of Y){let fe=m[re$5];isUndefined$1(fe)?de?m[re$5]=K[re$5]:m[re$5]=te$1[re$5]:de=!0}let me=G?hasInvalidWeekData$1(m,y,S):O?hasInvalidOrdinalData$1(m):hasInvalidGregorianData$1(m),q=me||hasInvalidTimeData$1(m);if(q)return DateTime$1.invalid(q);let ge=G?weekToGregorian$1(m,y,S):O?ordinalToGregorian$1(m):m,[ce,pe]=objToTS$1(ge,C,u),oe=new DateTime$1({ts:ce,zone:u,o:pe,loc:h});return m.weekday&&U&&o.weekday!==oe.weekday?DateTime$1.invalid(`mismatched weekday`,`you can't specify both a weekday of ${m.weekday} and a date of ${oe.toISO()}`):oe.isValid?oe:DateTime$1.invalid(oe.invalid)}static fromISO(o,r={}){let[u,h]=parseISODate$1(o);return parseDataToDateTime$1(u,h,r,`ISO 8601`,o)}static fromRFC2822(o,r={}){let[u,h]=parseRFC2822Date$1(o);return parseDataToDateTime$1(u,h,r,`RFC 2822`,o)}static fromHTTP(o,r={}){let[u,h]=parseHTTPDate$1(o);return parseDataToDateTime$1(u,h,r,`HTTP`,r)}static fromFormat(o,r,u={}){if(isUndefined$1(o)||isUndefined$1(r))throw new InvalidArgumentError$1(`fromFormat requires an input string and a format`);let{locale:h=null,numberingSystem:m=null}=u,y=Locale$1.fromOpts({locale:h,numberingSystem:m,defaultToEN:!0}),[S,_,C,O]=parseFromTokens$1(y,o,r);return O?DateTime$1.invalid(O):parseDataToDateTime$1(S,_,u,`format ${r}`,o,C)}static fromString(o,r,u={}){return DateTime$1.fromFormat(o,r,u)}static fromSQL(o,r={}){let[u,h]=parseSQL$1(o);return parseDataToDateTime$1(u,h,r,`SQL`,o)}static invalid(o,r=null){if(!o)throw new InvalidArgumentError$1(`need to specify a reason the DateTime is invalid`);let u=o instanceof Invalid$1?o:new Invalid$1(o,r);if(Settings$1.throwOnInvalid)throw new InvalidDateTimeError$1(u);return new DateTime$1({invalid:u})}static isDateTime(o){return o&&o.isLuxonDateTime||!1}static parseFormatForOpts(o,r={}){let u=formatOptsToTokens$1(o,Locale$1.fromObject(r));return u?u.map(h=>h?h.val:null).join(``):null}static expandFormat(o,r={}){return expandMacroTokens$1(Formatter$1.parseFormat(o),Locale$1.fromObject(r)).map(h=>h.val).join(``)}static resetCache(){zoneOffsetTs$1=void 0,zoneOffsetGuessCache$1.clear()}get(o){return this[o]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData$1(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData$1(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData$1(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal$1(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info$1.months(`short`,{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info$1.months(`long`,{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info$1.weekdays(`short`,{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info$1.weekdays(`long`,{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:`short`,locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:`long`,locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let o=864e5,r=6e4,u=objToLocalTS$1(this.c),h=this.zone.offset(u-o),m=this.zone.offset(u+o),y=this.zone.offset(u-h*r),S=this.zone.offset(u-m*r);if(y===S)return[this];let _=u-y*r,C=u-S*r,O=tsToObj$1(_,y),I=tsToObj$1(C,S);return O.hour===I.hour&&O.minute===I.minute&&O.second===I.second&&O.millisecond===I.millisecond?[clone$2(this,{ts:_}),clone$2(this,{ts:C})]:[this]}get isInLeapYear(){return isLeapYear$1(this.year)}get daysInMonth(){return daysInMonth$1(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear$1(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear$1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear$1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(o={}){let{locale:r,numberingSystem:u,calendar:h}=Formatter$1.create(this.loc.clone(o),o).resolvedOptions(this);return{locale:r,numberingSystem:u,outputCalendar:h}}toUTC(o=0,r={}){return this.setZone(FixedOffsetZone$1.instance(o),r)}toLocal(){return this.setZone(Settings$1.defaultZone)}setZone(o,{keepLocalTime:r=!1,keepCalendarTime:u=!1}={}){if(o=normalizeZone$1(o,Settings$1.defaultZone),o.equals(this.zone))return this;if(o.isValid){let h=this.ts;if(r||u){let m=o.offset(this.ts),y=this.toObject();[h]=objToTS$1(y,m,o)}return clone$2(this,{ts:h,zone:o})}else return DateTime$1.invalid(unsupportedZone$1(o))}reconfigure({locale:o,numberingSystem:r,outputCalendar:u}={}){let h=this.loc.clone({locale:o,numberingSystem:r,outputCalendar:u});return clone$2(this,{loc:h})}setLocale(o){return this.reconfigure({locale:o})}set(o){if(!this.isValid)return this;let r=normalizeObject$1(o,normalizeUnitWithLocalWeeks$1),{minDaysInFirstWeek:u,startOfWeek:h}=usesLocalWeekValues$1(r,this.loc),m=!isUndefined$1(r.weekYear)||!isUndefined$1(r.weekNumber)||!isUndefined$1(r.weekday),y=!isUndefined$1(r.ordinal),S=!isUndefined$1(r.year),_=!isUndefined$1(r.month)||!isUndefined$1(r.day),C=S||_,O=r.weekYear||r.weekNumber;if((C||y)&&O)throw new ConflictingSpecificationError$1(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(_&&y)throw new ConflictingSpecificationError$1(`Can't mix ordinal dates with month/day`);let I;m?I=weekToGregorian$1({...gregorianToWeek$1(this.c,u,h),...r},u,h):isUndefined$1(r.ordinal)?(I={...this.toObject(),...r},isUndefined$1(r.day)&&(I.day=Math.min(daysInMonth$1(I.year,I.month),I.day))):I=ordinalToGregorian$1({...gregorianToOrdinal$1(this.c),...r});let[R$1,U]=objToTS$1(I,this.o,this.zone);return clone$2(this,{ts:R$1,o:U})}plus(o){if(!this.isValid)return this;let r=Duration$1.fromDurationLike(o);return clone$2(this,adjustTime$1(this,r))}minus(o){if(!this.isValid)return this;let r=Duration$1.fromDurationLike(o).negate();return clone$2(this,adjustTime$1(this,r))}startOf(o,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let u={},h=Duration$1.normalizeUnit(o);switch(h){case`years`:u.month=1;case`quarters`:case`months`:u.day=1;case`weeks`:case`days`:u.hour=0;case`hours`:u.minute=0;case`minutes`:u.second=0;case`seconds`:u.millisecond=0;break}if(h===`weeks`)if(r){let m=this.loc.getStartOfWeek(),{weekday:y}=this;y<m&&(u.weekNumber=this.weekNumber-1),u.weekday=m}else u.weekday=1;if(h===`quarters`){let m=Math.ceil(this.month/3);u.month=(m-1)*3+1}return this.set(u)}endOf(o,r){return this.isValid?this.plus({[o]:1}).startOf(o,r).minus(1):this}toFormat(o,r={}){return this.isValid?Formatter$1.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,o):INVALID$5}toLocaleString(o=DATE_SHORT$1,r={}){return this.isValid?Formatter$1.create(this.loc.clone(r),o).formatDateTime(this):INVALID$5}toLocaleParts(o={}){return this.isValid?Formatter$1.create(this.loc.clone(o),o).formatDateTimeParts(this):[]}toISO({format:o=`extended`,suppressSeconds:r=!1,suppressMilliseconds:u=!1,includeOffset:h=!0,extendedZone:m=!1}={}){if(!this.isValid)return null;let y=o===`extended`,S=toISODate$1(this,y);return S+=`T`,S+=toISOTime$1(this,y,r,u,h,m),S}toISODate({format:o=`extended`}={}){return this.isValid?toISODate$1(this,o===`extended`):null}toISOWeekDate(){return toTechFormat$1(this,`kkkk-'W'WW-c`)}toISOTime({suppressMilliseconds:o=!1,suppressSeconds:r=!1,includeOffset:u=!0,includePrefix:h=!1,extendedZone:m=!1,format:y=`extended`}={}){return this.isValid?(h?`T`:``)+toISOTime$1(this,y===`extended`,r,o,u,m):null}toRFC2822(){return toTechFormat$1(this,`EEE, dd LLL yyyy HH:mm:ss ZZZ`,!1)}toHTTP(){return toTechFormat$1(this.toUTC(),`EEE, dd LLL yyyy HH:mm:ss 'GMT'`)}toSQLDate(){return this.isValid?toISODate$1(this,!0):null}toSQLTime({includeOffset:o=!0,includeZone:r=!1,includeOffsetSpace:u=!0}={}){let h=`HH:mm:ss.SSS`;return(r||o)&&(u&&(h+=` `),r?h+=`z`:o&&(h+=`ZZ`)),toTechFormat$1(this,h,!0)}toSQL(o={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(o)}`:null}toString(){return this.isValid?this.toISO():INVALID$5}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(o={}){if(!this.isValid)return{};let r={...this.c};return o.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(o,r=`milliseconds`,u={}){if(!this.isValid||!o.isValid)return Duration$1.invalid(`created by diffing an invalid DateTime`);let h={locale:this.locale,numberingSystem:this.numberingSystem,...u},m=maybeArray$1(r).map(Duration$1.normalizeUnit),y=o.valueOf()>this.valueOf(),S=y?this:o,_=y?o:this,C=diff$3(S,_,m,h);return y?C.negate():C}diffNow(o=`milliseconds`,r={}){return this.diff(DateTime$1.now(),o,r)}until(o){return this.isValid?Interval$1.fromDateTimes(this,o):this}hasSame(o,r,u){if(!this.isValid)return!1;let h=o.valueOf(),m=this.setZone(o.zone,{keepLocalTime:!0});return m.startOf(r,u)<=h&&h<=m.endOf(r,u)}equals(o){return this.isValid&&o.isValid&&this.valueOf()===o.valueOf()&&this.zone.equals(o.zone)&&this.loc.equals(o.loc)}toRelative(o={}){if(!this.isValid)return null;let r=o.base||DateTime$1.fromObject({},{zone:this.zone}),u=o.padding?this<r?-o.padding:o.padding:0,h=[`years`,`months`,`days`,`hours`,`minutes`,`seconds`],m=o.unit;return Array.isArray(o.unit)&&(h=o.unit,m=void 0),diffRelative$1(r,this.plus(u),{...o,numeric:`always`,units:h,unit:m})}toRelativeCalendar(o={}){return this.isValid?diffRelative$1(o.base||DateTime$1.fromObject({},{zone:this.zone}),this,{...o,numeric:`auto`,units:[`years`,`months`,`days`],calendary:!0}):null}static min(...o){if(!o.every(DateTime$1.isDateTime))throw new InvalidArgumentError$1(`min requires all arguments be DateTimes`);return bestBy$1(o,r=>r.valueOf(),Math.min)}static max(...o){if(!o.every(DateTime$1.isDateTime))throw new InvalidArgumentError$1(`max requires all arguments be DateTimes`);return bestBy$1(o,r=>r.valueOf(),Math.max)}static fromFormatExplain(o,r,u={}){let{locale:h=null,numberingSystem:m=null}=u,y=Locale$1.fromOpts({locale:h,numberingSystem:m,defaultToEN:!0});return explainFromTokens$1(y,o,r)}static fromStringExplain(o,r,u={}){return DateTime$1.fromFormatExplain(o,r,u)}static buildFormatParser(o,r={}){let{locale:u=null,numberingSystem:h=null}=r,m=Locale$1.fromOpts({locale:u,numberingSystem:h,defaultToEN:!0});return new TokenParser$1(m,o)}static fromFormatParser(o,r,u={}){if(isUndefined$1(o)||isUndefined$1(r))throw new InvalidArgumentError$1(`fromFormatParser requires an input string and a format parser`);let{locale:h=null,numberingSystem:m=null}=u,y=Locale$1.fromOpts({locale:h,numberingSystem:m,defaultToEN:!0});if(!y.equals(r.locale))throw new InvalidArgumentError$1(`fromFormatParser called with a locale of ${y}, but the format parser was created for ${r.locale}`);let{result:S,zone:_,specificOffset:C,invalidReason:O}=r.explainFromTokens(o);return O?DateTime$1.invalid(O):parseDataToDateTime$1(S,_,u,`format ${r.format}`,o,C)}static get DATE_SHORT(){return DATE_SHORT$1}static get DATE_MED(){return DATE_MED$1}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY$1}static get DATE_FULL(){return DATE_FULL$1}static get DATE_HUGE(){return DATE_HUGE$1}static get TIME_SIMPLE(){return TIME_SIMPLE$1}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS$1}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET$1}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET$1}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE$1}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS$1}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET$1}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET$1}static get DATETIME_SHORT(){return DATETIME_SHORT$1}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS$1}static get DATETIME_MED(){return DATETIME_MED$1}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS$1}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY$1}static get DATETIME_FULL(){return DATETIME_FULL$1}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS$1}static get DATETIME_HUGE(){return DATETIME_HUGE$1}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS$1}};function friendlyDateTime$1(t$5){if(DateTime$1.isDateTime(t$5))return t$5;if(t$5&&t$5.valueOf&&isNumber$1(t$5.valueOf()))return DateTime$1.fromJSDate(t$5);if(t$5&&typeof t$5==`object`)return DateTime$1.fromObject(t$5);throw new InvalidArgumentError$1(`Unknown datetime argument: ${t$5}, of type ${typeof t$5}`)}const countries=Object.freeze(new Map([[`AD`,`Andorra`],[`AE`,`United Arab Emirates`],[`AF`,`Afghanistan`],[`AG`,`Antigua and Barbuda`],[`AI`,`Anguilla`],[`AL`,`Albania`],[`AM`,`Armenia`],[`AO`,`Angola`],[`AQ`,`Antarctica`],[`AR`,`Argentina`],[`AS`,`American Samoa`],[`AT`,`Austria`],[`AU`,`Australia`],[`AW`,`Aruba`],[`AX`,`Aland Islands`],[`AZ`,`Azerbaijan`],[`BA`,`Bosnia and Herzegovina`],[`BB`,`Barbados`],[`BD`,`Bangladesh`],[`BE`,`Belgium`],[`BF`,`Burkina Faso`],[`BG`,`Bulgaria`],[`BH`,`Bahrain`],[`BI`,`Burundi`],[`BJ`,`Benin`],[`BL`,`Saint Barthelemy`],[`BM`,`Bermuda`],[`BN`,`Brunei`],[`BO`,`Bolivia`],[`BQ`,`Bonaire, Saint Eustatius and Saba`],[`BR`,`Brazil`],[`BS`,`Bahamas`],[`BT`,`Bhutan`],[`BV`,`Bouvet Island`],[`BW`,`Botswana`],[`BY`,`Belarus`],[`BZ`,`Belize`],[`CA`,`Canada`],[`CC`,`Cocos Islands`],[`CD`,`Democratic Republic of the Congo`],[`CF`,`Central African Republic`],[`CG`,`Republic of the Congo`],[`CH`,`Switzerland`],[`CI`,`Ivory Coast`],[`CK`,`Cook Islands`],[`CL`,`Chile`],[`CM`,`Cameroon`],[`CN`,`China`],[`CO`,`Colombia`],[`CR`,`Costa Rica`],[`CU`,`Cuba`],[`CV`,`Cape Verde`],[`CW`,`Curacao`],[`CX`,`Christmas Island`],[`CY`,`Cyprus`],[`CZ`,`Czech Republic`],[`DE`,`Germany`],[`DJ`,`Djibouti`],[`DK`,`Denmark`],[`DM`,`Dominica`],[`DO`,`Dominican Republic`],[`DZ`,`Algeria`],[`EC`,`Ecuador`],[`EE`,`Estonia`],[`EG`,`Egypt`],[`EH`,`Western Sahara`],[`ER`,`Eritrea`],[`ES`,`Spain`],[`ET`,`Ethiopia`],[`FI`,`Finland`],[`FJ`,`Fiji`],[`FK`,`Falkland Islands`],[`FM`,`Micronesia`],[`FO`,`Faroe Islands`],[`FR`,`France`],[`GA`,`Gabon`],[`GB`,`United Kingdom`],[`GD`,`Grenada`],[`GE`,`Georgia`],[`GF`,`French Guiana`],[`GG`,`Guernsey`],[`GH`,`Ghana`],[`GI`,`Gibraltar`],[`GL`,`Greenland`],[`GM`,`Gambia`],[`GN`,`Guinea`],[`GP`,`Guadeloupe`],[`GQ`,`Equatorial Guinea`],[`GR`,`Greece`],[`GS`,`South Georgia and the South Sandwich Islands`],[`GT`,`Guatemala`],[`GU`,`Guam`],[`GW`,`Guinea-Bissau`],[`GY`,`Guyana`],[`HK`,`Hong Kong`],[`HM`,`Heard Island and McDonald Islands`],[`HN`,`Honduras`],[`HR`,`Croatia`],[`HT`,`Haiti`],[`HU`,`Hungary`],[`ID`,`Indonesia`],[`IE`,`Ireland`],[`IL`,`Israel`],[`IM`,`Isle of Man`],[`IN`,`India`],[`IO`,`British Indian Ocean Territory`],[`IQ`,`Iraq`],[`IR`,`Iran`],[`IS`,`Iceland`],[`IT`,`Italy`],[`JE`,`Jersey`],[`JM`,`Jamaica`],[`JO`,`Jordan`],[`JP`,`Japan`],[`KE`,`Kenya`],[`KG`,`Kyrgyzstan`],[`KH`,`Cambodia`],[`KI`,`Kiribati`],[`KM`,`Comoros`],[`KN`,`Saint Kitts and Nevis`],[`KP`,`North Korea`],[`KR`,`South Korea`],[`KW`,`Kuwait`],[`KY`,`Cayman Islands`],[`KZ`,`Kazakhstan`],[`LA`,`Laos`],[`LB`,`Lebanon`],[`LC`,`Saint Lucia`],[`LI`,`Liechtenstein`],[`LK`,`Sri Lanka`],[`LR`,`Liberia`],[`LS`,`Lesotho`],[`LT`,`Lithuania`],[`LU`,`Luxembourg`],[`LV`,`Latvia`],[`LY`,`Libya`],[`MA`,`Morocco`],[`MC`,`Monaco`],[`MD`,`Moldova`],[`ME`,`Montenegro`],[`MF`,`Saint Martin`],[`MG`,`Madagascar`],[`MH`,`Marshall Islands`],[`MK`,`Macedonia`],[`ML`,`Mali`],[`MM`,`Myanmar`],[`MN`,`Mongolia`],[`MO`,`Macao`],[`MP`,`Northern Mariana Islands`],[`MQ`,`Martinique`],[`MR`,`Mauritania`],[`MS`,`Montserrat`],[`MT`,`Malta`],[`MU`,`Mauritius`],[`MV`,`Maldives`],[`MW`,`Malawi`],[`MX`,`Mexico`],[`MY`,`Malaysia`],[`MZ`,`Mozambique`],[`NA`,`Namibia`],[`NC`,`New Caledonia`],[`NE`,`Niger`],[`NF`,`Norfolk Island`],[`NG`,`Nigeria`],[`NI`,`Nicaragua`],[`NL`,`Netherlands`],[`NO`,`Norway`],[`NP`,`Nepal`],[`NR`,`Nauru`],[`NU`,`Niue`],[`NZ`,`New Zealand`],[`OM`,`Oman`],[`PA`,`Panama`],[`PE`,`Peru`],[`PF`,`French Polynesia`],[`PG`,`Papua New Guinea`],[`PH`,`Philippines`],[`PK`,`Pakistan`],[`PL`,`Poland`],[`PM`,`Saint Pierre and Miquelon`],[`PN`,`Pitcairn`],[`PR`,`Puerto Rico`],[`PS`,`Palestinian Territory`],[`PT`,`Portugal`],[`PW`,`Palau`],[`PY`,`Paraguay`],[`QA`,`Qatar`],[`RE`,`Reunion`],[`RO`,`Romania`],[`RS`,`Serbia`],[`RU`,`Russia`],[`RW`,`Rwanda`],[`SA`,`Saudi Arabia`],[`SB`,`Solomon Islands`],[`SC`,`Seychelles`],[`SD`,`Sudan`],[`SE`,`Sweden`],[`SG`,`Singapore`],[`SH`,`Saint Helena`],[`SI`,`Slovenia`],[`SJ`,`Svalbard and Jan Mayen`],[`SK`,`Slovakia`],[`SL`,`Sierra Leone`],[`SM`,`San Marino`],[`SN`,`Senegal`],[`SO`,`Somalia`],[`SR`,`Suriname`],[`SS`,`South Sudan`],[`ST`,`Sao Tome and Principe`],[`SV`,`El Salvador`],[`SX`,`Sint Maarten`],[`SY`,`Syria`],[`SZ`,`Swaziland`],[`TC`,`Turks and Caicos Islands`],[`TD`,`Chad`],[`TF`,`French Southern Territories`],[`TG`,`Togo`],[`TH`,`Thailand`],[`TJ`,`Tajikistan`],[`TK`,`Tokelau`],[`TL`,`East Timor`],[`TM`,`Turkmenistan`],[`TN`,`Tunisia`],[`TO`,`Tonga`],[`TR`,`Turkey`],[`TT`,`Trinidad and Tobago`],[`TV`,`Tuvalu`],[`TW`,`Taiwan`],[`TZ`,`Tanzania`],[`UA`,`Ukraine`],[`UG`,`Uganda`],[`UM`,`United States Minor Outlying Islands`],[`US`,`United States`],[`UY`,`Uruguay`],[`UZ`,`Uzbekistan`],[`VA`,`Vatican`],[`VC`,`Saint Vincent and the Grenadines`],[`VE`,`Venezuela`],[`VG`,`British Virgin Islands`],[`VI`,`U.S. Virgin Islands`],[`VN`,`Vietnam`],[`VU`,`Vanuatu`],[`WF`,`Wallis and Futuna`],[`WS`,`Samoa`],[`XK`,`Kosovo`],[`YE`,`Yemen`],[`YT`,`Mayotte`],[`ZA`,`South Africa`],[`ZM`,`Zambia`],[`ZW`,`Zimbabwe`]])),timezones=Object.freeze(new Map([[`AD`,`Europe/Andorra`],[`AE`,`Asia/Dubai`],[`AF`,`Asia/Kabul`],[`AG`,`America/Antigua`],[`AI`,`America/Anguilla`],[`AL`,`Europe/Tirane`],[`AM`,`Asia/Yerevan`],[`AO`,`Africa/Luanda`],[`AQ`,`Antarctica/Casey`],[`AR`,`America/Argentina/Buenos_Aires`],[`AS`,`Pacific/Pago_Pago`],[`AT`,`Europe/Vienna`],[`AU`,`Australia/Sydney`],[`AW`,`America/Aruba`],[`AX`,`Europe/Mariehamn`],[`AZ`,`Asia/Baku`],[`BA`,`Europe/Sarajevo`],[`BB`,`America/Barbados`],[`BD`,`Asia/Dhaka`],[`BE`,`Europe/Brussels`],[`BF`,`Africa/Ouagadougou`],[`BG`,`Europe/Sofia`],[`BH`,`Asia/Bahrain`],[`BI`,`Africa/Bujumbura`],[`BJ`,`Africa/Porto-Novo`],[`BL`,`America/St_Barthelemy`],[`BM`,`Atlantic/Bermuda`],[`BN`,`Asia/Brunei`],[`BO`,`America/La_Paz`],[`BQ`,`America/Kralendijk`],[`BR`,`America/Sao_Paulo`],[`BS`,`America/Nassau`],[`BT`,`Asia/Thimphu`],[`BW`,`Africa/Gaborone`],[`BY`,`Europe/Minsk`],[`BZ`,`America/Belize`],[`CA`,`America/Toronto`],[`CC`,`Indian/Cocos`],[`CD`,`Africa/Kinshasa`],[`CF`,`Africa/Bangui`],[`CG`,`Africa/Brazzaville`],[`CH`,`Europe/Zurich`],[`CI`,`Africa/Abidjan`],[`CK`,`Pacific/Rarotonga`],[`CL`,`America/Santiago`],[`CM`,`Africa/Douala`],[`CN`,`Asia/Shanghai`],[`CO`,`America/Bogota`],[`CR`,`America/Costa_Rica`],[`CU`,`America/Havana`],[`CV`,`Atlantic/Cape_Verde`],[`CW`,`America/Curacao`],[`CX`,`Indian/Christmas`],[`CY`,`Asia/Nicosia`],[`CZ`,`Europe/Prague`],[`DE`,`Europe/Berlin`],[`DJ`,`Africa/Djibouti`],[`DK`,`Europe/Copenhagen`],[`DM`,`America/Dominica`],[`DO`,`America/Santo_Domingo`],[`DZ`,`Africa/Algiers`],[`EC`,`America/Guayaquil`],[`EE`,`Europe/Tallinn`],[`EG`,`Africa/Cairo`],[`EH`,`Africa/El_Aaiun`],[`ER`,`Africa/Asmara`],[`ES`,`Europe/Madrid`],[`ET`,`Africa/Addis_Ababa`],[`FI`,`Europe/Helsinki`],[`FJ`,`Pacific/Fiji`],[`FK`,`Atlantic/Stanley`],[`FM`,`Pacific/Pohnpei`],[`FO`,`Atlantic/Faroe`],[`FR`,`Europe/Paris`],[`GA`,`Africa/Libreville`],[`GB`,`Europe/London`],[`GD`,`America/Grenada`],[`GE`,`Asia/Tbilisi`],[`GF`,`America/Cayenne`],[`GG`,`Europe/Guernsey`],[`GH`,`Africa/Accra`],[`GI`,`Europe/Gibraltar`],[`GL`,`America/Godthab`],[`GM`,`Africa/Banjul`],[`GN`,`Africa/Conakry`],[`GP`,`America/Guadeloupe`],[`GQ`,`Africa/Malabo`],[`GR`,`Europe/Athens`],[`GS`,`Atlantic/South_Georgia`],[`GT`,`America/Guatemala`],[`GU`,`Pacific/Guam`],[`GW`,`Africa/Bissau`],[`GY`,`America/Guyana`],[`HK`,`Asia/Hong_Kong`],[`HN`,`America/Tegucigalpa`],[`HR`,`Europe/Zagreb`],[`HT`,`America/Port-au-Prince`],[`HU`,`Europe/Budapest`],[`ID`,`Asia/Jakarta`],[`IE`,`Europe/Dublin`],[`IL`,`Asia/Jerusalem`],[`IM`,`Europe/Isle_of_Man`],[`IN`,`Asia/Kolkata`],[`IO`,`Indian/Chagos`],[`IQ`,`Asia/Baghdad`],[`IR`,`Asia/Tehran`],[`IS`,`Atlantic/Reykjavik`],[`IT`,`Europe/Rome`],[`JE`,`Europe/Jersey`],[`JM`,`America/Jamaica`],[`JO`,`Asia/Amman`],[`JP`,`Asia/Tokyo`],[`KE`,`Africa/Nairobi`],[`KG`,`Asia/Bishkek`],[`KH`,`Asia/Phnom_Penh`],[`KI`,`Pacific/Tarawa`],[`KM`,`Indian/Comoro`],[`KN`,`America/St_Kitts`],[`KP`,`Asia/Pyongyang`],[`KR`,`Asia/Seoul`],[`KW`,`Asia/Kuwait`],[`KY`,`America/Cayman`],[`KZ`,`Asia/Almaty`],[`LA`,`Asia/Vientiane`],[`LB`,`Asia/Beirut`],[`LC`,`America/St_Lucia`],[`LI`,`Europe/Vaduz`],[`LK`,`Asia/Colombo`],[`LR`,`Africa/Monrovia`],[`LS`,`Africa/Maseru`],[`LT`,`Europe/Vilnius`],[`LU`,`Europe/Luxembourg`],[`LV`,`Europe/Riga`],[`LY`,`Africa/Tripoli`],[`MA`,`Africa/Casablanca`],[`MC`,`Europe/Monaco`],[`MD`,`Europe/Chisinau`],[`ME`,`Europe/Podgorica`],[`MF`,`America/Marigot`],[`MG`,`Indian/Antananarivo`],[`MH`,`Pacific/Majuro`],[`MK`,`Europe/Skopje`],[`ML`,`Africa/Bamako`],[`MM`,`Asia/Yangon`],[`MN`,`Asia/Ulaanbaatar`],[`MO`,`Asia/Macau`],[`MP`,`Pacific/Saipan`],[`MQ`,`America/Martinique`],[`MR`,`Africa/Nouakchott`],[`MS`,`America/Montserrat`],[`MT`,`Europe/Malta`],[`MU`,`Indian/Mauritius`],[`MV`,`Indian/Maldives`],[`MW`,`Africa/Blantyre`],[`MX`,`America/Mexico_City`],[`MY`,`Asia/Kuala_Lumpur`],[`MZ`,`Africa/Maputo`],[`NA`,`Africa/Windhoek`],[`NC`,`Pacific/Noumea`],[`NE`,`Africa/Niamey`],[`NF`,`Pacific/Norfolk`],[`NG`,`Africa/Lagos`],[`NI`,`America/Managua`],[`NL`,`Europe/Amsterdam`],[`NO`,`Europe/Oslo`],[`NP`,`Asia/Kathmandu`],[`NR`,`Pacific/Nauru`],[`NU`,`Pacific/Niue`],[`NZ`,`Pacific/Auckland`],[`OM`,`Asia/Muscat`],[`PA`,`America/Panama`],[`PE`,`America/Lima`],[`PF`,`Pacific/Tahiti`],[`PG`,`Pacific/Port_Moresby`],[`PH`,`Asia/Manila`],[`PK`,`Asia/Karachi`],[`PL`,`Europe/Warsaw`],[`PM`,`America/Miquelon`],[`PN`,`Pacific/Pitcairn`],[`PR`,`America/Puerto_Rico`],[`PS`,`Asia/Gaza`],[`PT`,`Europe/Lisbon`],[`PW`,`Pacific/Palau`],[`PY`,`America/Asuncion`],[`QA`,`Asia/Qatar`],[`RE`,`Indian/Reunion`],[`RO`,`Europe/Bucharest`],[`RS`,`Europe/Belgrade`],[`RU`,`Europe/Moscow`],[`RW`,`Africa/Kigali`],[`SA`,`Asia/Riyadh`],[`SB`,`Pacific/Guadalcanal`],[`SC`,`Indian/Mahe`],[`SD`,`Africa/Khartoum`],[`SE`,`Europe/Stockholm`],[`SG`,`Asia/Singapore`],[`SH`,`Atlantic/St_Helena`],[`SI`,`Europe/Ljubljana`],[`SJ`,`Arctic/Longyearbyen`],[`SK`,`Europe/Bratislava`],[`SL`,`Africa/Freetown`],[`SM`,`Europe/San_Marino`],[`SN`,`Africa/Dakar`],[`SO`,`Africa/Mogadishu`],[`SR`,`America/Paramaribo`],[`SS`,`Africa/Juba`],[`ST`,`Africa/Sao_Tome`],[`SV`,`America/El_Salvador`],[`SX`,`America/Lower_Princes`],[`SY`,`Asia/Damascus`],[`SZ`,`Africa/Mbabane`],[`TC`,`America/Grand_Turk`],[`TD`,`Africa/Ndjamena`],[`TF`,`Indian/Kerguelen`],[`TG`,`Africa/Lome`],[`TH`,`Asia/Bangkok`],[`TJ`,`Asia/Dushanbe`],[`TK`,`Pacific/Fakaofo`],[`TL`,`Asia/Dili`],[`TM`,`Asia/Ashgabat`],[`TN`,`Africa/Tunis`],[`TO`,`Pacific/Tongatapu`],[`TR`,`Europe/Istanbul`],[`TT`,`America/Port_of_Spain`],[`TV`,`Pacific/Funafuti`],[`TW`,`Asia/Taipei`],[`TZ`,`Africa/Dar_es_Salaam`],[`UA`,`Europe/Kiev`],[`UG`,`Africa/Kampala`],[`UM`,`Pacific/Wake`],[`US`,`America/New_York`],[`UY`,`America/Montevideo`],[`UZ`,`Asia/Tashkent`],[`VA`,`Europe/Vatican`],[`VC`,`America/St_Vincent`],[`VE`,`America/Caracas`],[`VG`,`America/Tortola`],[`VI`,`America/St_Thomas`],[`VN`,`Asia/Ho_Chi_Minh`],[`VU`,`Pacific/Efate`],[`WF`,`Pacific/Wallis`],[`WS`,`Pacific/Apia`],[`YE`,`Asia/Aden`],[`YT`,`Indian/Mayotte`],[`ZA`,`Africa/Johannesburg`],[`ZM`,`Africa/Lusaka`],[`ZW`,`Africa/Harare`]])),getNumberOrUndefined=t$5=>{let o=Number(t$5);return Number.isNaN(o)?void 0:o},isos=Object.freeze(new Set([...countries.keys()]));function getCountriesWithSpecificTime(t$5,o,r){let u={minute:t$5};typeof o==`object`?u={...o}:o!==void 0&&(u.hourOfDay=o,r&&(u={...u,...r}));let h={year:getNumberOrUndefined(u.year),month:getNumberOrUndefined(u.monthOfYear),day:getNumberOrUndefined(u.dayOfMonth),hour:getNumberOrUndefined(u.hourOfDay),minute:getNumberOrUndefined(u.minute),second:0,millisecond:0},m=DateTime$1.fromObject(h),y=[],_=Object.keys(h).filter(C=>typeof h[C]<`u`&&![`second`,`millisecond`].includes(C));return timezones.forEach((C,O)=>{let I=DateTime$1.now().setZone(C);_.filter(U=>{let F=m.toObject()[U],G=I.toObject()[U];return F===G}).length===_.length&&y.push(O)}),y}const areaCodeMap={201:`US`,202:`US`,203:`US`,204:`CA`,205:`US`,206:`US`,207:`US`,208:`US`,209:`US`,210:`US`,212:`US`,213:`US`,214:`US`,215:`US`,216:`US`,217:`US`,218:`US`,219:`US`,220:`US`,223:`US`,224:`US`,225:`US`,226:`CA`,227:`US`,228:`US`,229:`US`,231:`US`,234:`US`,236:`CA`,239:`US`,240:`US`,242:`BS`,246:`BB`,248:`US`,249:`CA`,250:`CA`,251:`US`,252:`US`,253:`US`,254:`US`,256:`US`,260:`US`,262:`US`,263:`CA`,264:`AI`,267:`US`,268:`AG`,269:`US`,270:`US`,272:`US`,276:`US`,279:`US`,281:`US`,283:`US`,284:`VG`,289:`CA`,301:`US`,302:`US`,303:`US`,304:`US`,305:`US`,306:`CA`,307:`US`,308:`US`,309:`US`,310:`US`,312:`US`,313:`US`,314:`US`,315:`US`,316:`US`,317:`US`,318:`US`,319:`US`,320:`US`,321:`US`,323:`US`,325:`US`,326:`US`,329:`US`,330:`US`,331:`US`,332:`US`,334:`US`,336:`US`,337:`US`,339:`US`,340:`VI`,341:`US`,343:`CA`,345:`KY`,346:`US`,347:`US`,350:`US`,351:`US`,352:`US`,354:`CA`,360:`US`,361:`US`,364:`US`,365:`CA`,367:`CA`,368:`CA`,369:`US`,380:`US`,382:`CA`,385:`US`,386:`US`,401:`US`,402:`US`,403:`CA`,404:`US`,405:`US`,406:`US`,407:`US`,408:`US`,409:`US`,410:`US`,412:`US`,413:`US`,414:`US`,415:`US`,416:`CA`,417:`US`,418:`CA`,419:`US`,423:`US`,424:`US`,425:`US`,428:`CA`,430:`US`,431:`CA`,432:`US`,434:`US`,435:`US`,437:`CA`,438:`CA`,440:`US`,441:`BM`,442:`US`,443:`US`,445:`US`,447:`US`,448:`US`,450:`CA`,458:`US`,463:`US`,464:`US`,468:`CA`,469:`US`,470:`US`,473:`GD`,474:`CA`,475:`US`,478:`US`,479:`US`,480:`US`,484:`US`,500:`US`,501:`US`,502:`US`,503:`US`,504:`US`,505:`US`,506:`CA`,507:`US`,508:`US`,509:`US`,510:`US`,512:`US`,513:`US`,514:`CA`,515:`US`,516:`US`,517:`US`,518:`US`,519:`CA`,520:`US`,521:`US`,522:`US`,525:`US`,526:`US`,527:`US`,528:`US`,529:`US`,530:`US`,531:`US`,533:`US`,534:`US`,539:`US`,540:`US`,541:`US`,544:`US`,548:`CA`,551:`US`,557:`US`,559:`US`,561:`US`,562:`US`,563:`US`,564:`US`,566:`US`,567:`US`,570:`US`,571:`US`,572:`US`,573:`US`,574:`US`,575:`US`,577:`US`,579:`CA`,580:`US`,581:`CA`,582:`US`,584:`CA`,585:`US`,586:`US`,587:`CA`,588:`US`,600:`CA`,601:`US`,602:`US`,603:`US`,604:`CA`,605:`US`,606:`US`,607:`US`,608:`US`,609:`US`,610:`US`,612:`US`,613:`CA`,614:`US`,615:`US`,616:`US`,617:`US`,618:`US`,619:`US`,620:`US`,622:`CA`,623:`US`,626:`US`,628:`US`,629:`US`,630:`US`,631:`US`,636:`US`,639:`CA`,640:`US`,641:`US`,646:`US`,647:`CA`,649:`TC`,650:`US`,651:`US`,656:`US`,657:`US`,658:`JM`,659:`US`,660:`US`,661:`US`,662:`US`,664:`MS`,667:`US`,669:`US`,670:`MP`,671:`GU`,672:`CA`,678:`US`,680:`US`,681:`US`,682:`US`,683:`CA`,684:`AS`,689:`US`,701:`US`,702:`US`,703:`US`,704:`US`,705:`CA`,706:`US`,707:`US`,708:`US`,709:`CA`,712:`US`,713:`US`,714:`US`,715:`US`,716:`US`,717:`US`,718:`US`,719:`US`,720:`US`,721:`SX`,724:`US`,725:`US`,726:`US`,727:`US`,731:`US`,732:`US`,734:`US`,737:`US`,740:`US`,742:`CA`,743:`US`,747:`US`,753:`CA`,754:`US`,757:`US`,758:`LC`,760:`US`,762:`US`,763:`US`,765:`US`,767:`DM`,769:`US`,770:`US`,771:`US`,772:`US`,773:`US`,774:`US`,775:`US`,778:`CA`,779:`US`,780:`CA`,781:`US`,782:`CA`,784:`VC`,785:`US`,786:`US`,787:`PR`,800:`US`,801:`US`,802:`US`,803:`US`,804:`US`,805:`US`,806:`US`,807:`CA`,808:`US`,809:`DO`,810:`US`,812:`US`,813:`US`,814:`US`,815:`US`,816:`US`,817:`US`,818:`US`,819:`CA`,820:`US`,825:`CA`,826:`US`,828:`US`,829:`DO`,830:`US`,831:`US`,832:`US`,833:`US`,835:`US`,838:`US`,839:`US`,840:`US`,843:`US`,844:`US`,845:`US`,847:`US`,848:`US`,849:`DO`,850:`US`,854:`US`,855:`US`,856:`US`,857:`US`,858:`US`,859:`US`,860:`US`,862:`US`,863:`US`,864:`US`,865:`US`,866:`US`,867:`CA`,868:`TT`,869:`KN`,870:`US`,872:`US`,873:`CA`,876:`JM`,877:`US`,878:`US`,888:`US`,900:`US`,901:`US`,902:`CA`,903:`US`,904:`US`,905:`CA`,906:`US`,907:`US`,908:`US`,909:`US`,910:`US`,912:`US`,913:`US`,914:`US`,915:`US`,916:`US`,917:`US`,918:`US`,919:`US`,920:`US`,925:`US`,928:`US`,929:`US`,930:`US`,931:`US`,934:`US`,936:`US`,937:`US`,938:`US`,939:`PR`,940:`US`,941:`US`,943:`US`,945:`US`,947:`US`,948:`US`,949:`US`,951:`US`,952:`US`,954:`US`,956:`US`,959:`US`,970:`US`,971:`US`,972:`US`,973:`US`,978:`US`,979:`US`,980:`US`,984:`US`,985:`US`,986:`US`,989:`US`},nanpaCountries=[`US`,`CA`,`BS`,`BB`,`AI`,`AG`,`VG`,`VI`,`KY`,`BM`,`GD`,`TC`,`JM`,`MS`,`MP`,`GU`,`AS`,`SX`,`LC`,`DM`,`VC`,`PR`,`DO`,`TT`,`KN`];for(var commonjsGlobal=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},allCountries=[[`Afghanistan (‫افغانستان‬‎)`,`af`,`93`,`+..-..-...-....`],[`Åland Islands`,`ax`,`358`,``],[`Albania (Shqipëri)`,`al`,`355`,`+...(...)...-...`],[`Algeria (‫الجزائر‬‎)`,`dz`,`213`,`+...-..-...-....`],[`American Samoa`,`as`,`1684`,`+.(...)...-....`],[`Andorra`,`ad`,`376`,`+...-...-...`],[`Angola`,`ao`,`244`,`+...(...)...-...`],[`Anguilla`,`ai`,`1264`,`+.(...)...-....`],[`Antarctica`,`aq`,`672`,``],[`Antigua and Barbuda`,`ag`,`1268`,`+.(...)...-....`],[`Argentina`,`ar`,`54`,`+..(...)...-....`],[`Armenia (Հայաստան)`,`am`,`374`,`+...-..-...-...`],[`Aruba`,`aw`,`297`,`+...-...-....`],[`Australia`,`au`,`61`,`+.. ... ... ...`],[`Austria (Österreich)`,`at`,`43`,`+..(...)...-....`],[`Azerbaijan (Azərbaycan)`,`az`,`994`,`+...-..-...-..-..`],[`Bahamas`,`bs`,`1242`,`+.(...)...-....`],[`Bahrain (‫البحرين‬‎)`,`bh`,`973`,`+...-....-....`],[`Bangladesh (বাংলাদেশ)`,`bd`,`880`,`+...-..-...-...`],[`Barbados`,`bb`,`1246`,`+.(...)...-....`],[`Belarus (Беларусь)`,`by`,`375`,`+...(..)...-..-..`],[`Belgium (België)`,`be`,`32`,`+.. ... .. .. ..`],[`Belize`,`bz`,`501`,`+...-...-....`],[`Benin (Bénin)`,`bj`,`229`,`+...-..-..-....`],[`Bermuda`,`bm`,`1441`,`+.(...)...-....`],[`Bhutan (འབྲུག)`,`bt`,`975`,`+...-.-...-...`],[`Bolivia`,`bo`,`591`,`+...-.-...-....`],[`Bosnia and Herzegovina (Босна и Херцеговина)`,`ba`,`387`,`+...-..-....`],[`Botswana`,`bw`,`267`,`+...-..-...-...`],[`Bouvet Island`,`bv`,`47`,``],[`Brazil (Brasil)`,`br`,`55`,`+..-..-....-....`],[`British Indian Ocean Territory`,`io`,`246`,`+...-...-....`],[`British Virgin Islands`,`vg`,`1284`,`+.(...)...-....`],[`Brunei`,`bn`,`673`,`+...-...-....`],[`Bulgaria (България)`,`bg`,`359`,`+...(...)...-...`],[`Burkina Faso`,`bf`,`226`,`+...-..-..-....`],[`Burundi (Uburundi)`,`bi`,`257`,`+...-..-..-....`],[`Cambodia (កម្ពុជា)`,`kh`,`855`,`+...-..-...-...`],[`Cameroon (Cameroun)`,`cm`,`237`,`+...-....-....`],[`Canada`,`ca`,`1`,`+. (...) ...-....`,1,`204.236.249.250.289.306.343.365.387.403.416.418.431.437.438.450.506.514.519.548.579.581.587.604.613.639.647.672.705.709.742.778.780.782.807.819.825.867.873.902.905`.split(`.`)],[`Cape Verde (Kabu Verdi)`,`cv`,`238`,`+...(...)..-..`],[`Caribbean Netherlands`,`bq`,`599`,`+...-...-....`,1],[`Cayman Islands`,`ky`,`1345`,`+.(...)...-....`],[`Central African Republic (République centrafricaine)`,`cf`,`236`,`+...-..-..-....`],[`Chad (Tchad)`,`td`,`235`,`+...-..-..-..-..`],[`Chile`,`cl`,`56`,`+..-.-....-....`],[`China (中国)`,`cn`,`86`,`+.. ..-........`],[`Christmas Island`,`cx`,`61`,``],[`Cocos (Keeling) Islands`,`cc`,`61`,``],[`Colombia`,`co`,`57`,`+..(...)...-....`],[`Comoros (‫جزر القمر‬‎)`,`km`,`269`,`+...-..-.....`],[`Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)`,`cd`,`243`,`+...(...)...-...`],[`Congo (Republic) (Congo-Brazzaville)`,`cg`,`242`,`+...-..-...-....`],[`Cook Islands`,`ck`,`682`,`+...-..-...`],[`Costa Rica`,`cr`,`506`,`+... ....-....`],[`Côte d’Ivoire`,`ci`,`225`,`+...-..-...-...`],[`Croatia (Hrvatska)`,`hr`,`385`,`+...-..-...-...`],[`Cuba`,`cu`,`53`,`+..-.-...-....`],[`Curaçao`,`cw`,`599`,`+...-...-....`,0],[`Cyprus (Κύπρος)`,`cy`,`357`,`+...-..-...-...`],[`Czech Republic (Česká republika)`,`cz`,`420`,`+...(...)...-...`],[`Denmark (Danmark)`,`dk`,`45`,`+.. .. .. .. ..`],[`Djibouti`,`dj`,`253`,`+...-..-..-..-..`],[`Dominica`,`dm`,`1767`,`+.(...)...-....`],[`Dominican Republic (República Dominicana)`,`do`,`1`,`+.(...)...-....`,2,[`809`,`829`,`849`]],[`Ecuador`,`ec`,`593`,`+...-.-...-....`],[`Egypt (‫مصر‬‎)`,`eg`,`20`,`+..(...)...-....`],[`El Salvador`,`sv`,`503`,`+... ....-....`],[`Equatorial Guinea (Guinea Ecuatorial)`,`gq`,`240`,`+...-..-...-....`],[`Eritrea`,`er`,`291`,`+...-.-...-...`],[`Estonia (Eesti)`,`ee`,`372`,`+...-...-....`],[`Ethiopia`,`et`,`251`,`+...-..-...-....`],[`Falkland Islands (Islas Malvinas)`,`fk`,`500`,`+...-.....`],[`Faroe Islands (Føroyar)`,`fo`,`298`,`+...-...-...`],[`Fiji`,`fj`,`679`,`+...-..-.....`],[`Finland (Suomi)`,`fi`,`358`,`+... .. .... ....`],[`France`,`fr`,`33`,`+.. . .. .. .. ..`],[`French Guiana (Guyane française)`,`gf`,`594`,`+...-.....-....`],[`French Polynesia (Polynésie française)`,`pf`,`689`,`+...-..-..-..`],[`French Southern and Antarctic Lands`,`tf`,`262`,``],[`Gabon`,`ga`,`241`,`+...-.-..-..-..`],[`Gambia`,`gm`,`220`,`+...(...)..-..`],[`Georgia (საქართველო)`,`ge`,`995`,`+...(...)...-...`],[`Germany (Deutschland)`,`de`,`49`,`+.. ... .......`],[`Ghana (Gaana)`,`gh`,`233`,`+...(...)...-...`],[`Gibraltar`,`gi`,`350`,`+...-...-.....`],[`Greece (Ελλάδα)`,`gr`,`30`,`+..(...)...-....`],[`Greenland (Kalaallit Nunaat)`,`gl`,`299`,`+...-..-..-..`],[`Grenada`,`gd`,`1473`,`+.(...)...-....`],[`Guadeloupe`,`gp`,`590`,``,0],[`Guam`,`gu`,`1671`,`+.(...)...-....`],[`Guatemala`,`gt`,`502`,`+... ....-....`],[`Guernsey`,`gg`,`44`,``],[`Guinea (Guinée)`,`gn`,`224`,`+...-..-...-...`],[`Guinea-Bissau (Guiné Bissau)`,`gw`,`245`,`+...-.-......`],[`Guyana`,`gy`,`592`,`+...-...-....`],[`Haiti`,`ht`,`509`,`+... ....-....`],[`Heard Island and McDonald Islands`,`hm`,`672`,``],[`Honduras`,`hn`,`504`,`+...-....-....`],[`Hong Kong (香港)`,`hk`,`852`,`+... .... ....`],[`Hungary (Magyarország)`,`hu`,`36`,`+..(...)...-...`],[`Iceland (Ísland)`,`is`,`354`,`+... ... ....`],[`India (भारत)`,`in`,`91`,`+.. .....-.....`],[`Indonesia`,`id`,`62`,`+..-..-...-..`],[`Iran (‫ایران‬‎)`,`ir`,`98`,`+..(...)...-....`],[`Iraq (‫العراق‬‎)`,`iq`,`964`,`+...(...)...-....`],[`Ireland`,`ie`,`353`,`+... .. .......`],[`Isle of Man`,`im`,`44`,``],[`Israel (‫ישראל‬‎)`,`il`,`972`,`+...-.-...-....`],[`Italy (Italia)`,`it`,`39`,`+.. ... ......`,0],[`Jamaica`,`jm`,`1876`,`+.(...)...-....`],[`Japan (日本)`,`jp`,`81`,`+.. ... .. ....`],[`Jersey`,`je`,`44`,``],[`Jordan (‫الأردن‬‎)`,`jo`,`962`,`+...-.-....-....`],[`Kazakhstan (Казахстан)`,`kz`,`7`,`+. ... ...-..-..`,1],[`Kenya`,`ke`,`254`,`+...-...-......`],[`Kiribati`,`ki`,`686`,`+...-..-...`],[`Kosovo`,`xk`,`383`,``],[`Kuwait (‫الكويت‬‎)`,`kw`,`965`,`+...-....-....`],[`Kyrgyzstan (Кыргызстан)`,`kg`,`996`,`+...(...)...-...`],[`Laos (ລາວ)`,`la`,`856`,`+...-..-...-...`],[`Latvia (Latvija)`,`lv`,`371`,`+...-..-...-...`],[`Lebanon (‫لبنان‬‎)`,`lb`,`961`,`+...-.-...-...`],[`Lesotho`,`ls`,`266`,`+...-.-...-....`],[`Liberia`,`lr`,`231`,`+...-..-...-...`],[`Libya (‫ليبيا‬‎)`,`ly`,`218`,`+...-..-...-...`],[`Liechtenstein`,`li`,`423`,`+...(...)...-....`],[`Lithuania (Lietuva)`,`lt`,`370`,`+...(...)..-...`],[`Luxembourg`,`lu`,`352`,`+...(...)...-...`],[`Macau (澳門)`,`mo`,`853`,`+...-....-....`],[`Macedonia (FYROM) (Македонија)`,`mk`,`389`,`+...-..-...-...`],[`Madagascar (Madagasikara)`,`mg`,`261`,`+...-..-..-.....`],[`Malawi`,`mw`,`265`,`+...-.-....-....`],[`Malaysia`,`my`,`60`,`+.. ..-....-....`],[`Maldives`,`mv`,`960`,`+...-...-....`],[`Mali`,`ml`,`223`,`+...-..-..-....`],[`Malta`,`mt`,`356`,`+...-....-....`],[`Marshall Islands`,`mh`,`692`,`+...-...-....`],[`Martinique`,`mq`,`596`,`+...(...)..-..-..`],[`Mauritania (‫موريتانيا‬‎)`,`mr`,`222`,`+...-..-..-....`],[`Mauritius (Moris)`,`mu`,`230`,`+...-...-....`],[`Mayotte`,`yt`,`262`,``],[`Mexico (México)`,`mx`,`52`,`+..-..-..-....`],[`Micronesia`,`fm`,`691`,`+...-...-....`],[`Moldova (Republica Moldova)`,`md`,`373`,`+...-....-....`],[`Monaco`,`mc`,`377`,`+...-..-...-...`],[`Mongolia (Монгол)`,`mn`,`976`,`+...-..-..-....`],[`Montenegro (Crna Gora)`,`me`,`382`,`+...-..-...-...`],[`Montserrat`,`ms`,`1664`,`+.(...)...-....`],[`Morocco (‫المغرب‬‎)`,`ma`,`212`,`+...-..-....-...`],[`Mozambique (Moçambique)`,`mz`,`258`,`+...-..-...-...`],[`Myanmar (Burma) (မြန်မာ)`,`mm`,`95`,`+..-...-...`],[`Namibia (Namibië)`,`na`,`264`,`+...-..-...-....`],[`Nauru`,`nr`,`674`,`+...-...-....`],[`Nepal (नेपाल)`,`np`,`977`,`+...-..-...-...`],[`Netherlands (Nederland)`,`nl`,`31`,`+.. .. ........`],[`New Caledonia (Nouvelle-Calédonie)`,`nc`,`687`,`+...-..-....`],[`New Zealand`,`nz`,`64`,`+.. ...-...-....`],[`Nicaragua`,`ni`,`505`,`+...-....-....`],[`Niger (Nijar)`,`ne`,`227`,`+...-..-..-....`],[`Nigeria`,`ng`,`234`,`+...-..-...-..`],[`Niue`,`nu`,`683`,`+...-....`],[`Norfolk Island`,`nf`,`672`,`+...-...-...`],[`North Korea (조선 민주주의 인민 공화국)`,`kp`,`850`,`+...-...-...`],[`Northern Mariana Islands`,`mp`,`1670`,`+.(...)...-....`],[`Norway (Norge)`,`no`,`47`,`+.. ... .. ...`],[`Oman (‫عُمان‬‎)`,`om`,`968`,`+...-..-...-...`],[`Pakistan (‫پاکستان‬‎)`,`pk`,`92`,`+.. ...-.......`],[`Palau`,`pw`,`680`,`+...-...-....`],[`Palestine (‫فلسطين‬‎)`,`ps`,`970`,`+...-..-...-....`],[`Panama (Panamá)`,`pa`,`507`,`+...-...-....`],[`Papua New Guinea`,`pg`,`675`,`+...(...)..-...`],[`Paraguay`,`py`,`595`,`+...(...)...-...`],[`Peru (Perú)`,`pe`,`51`,`+..(...)...-...`],[`Philippines`,`ph`,`63`,`+.. ... ....`],[`Pitcairn Islands`,`pn`,`64`,``],[`Poland (Polska)`,`pl`,`48`,`+.. ...-...-...`],[`Portugal`,`pt`,`351`,`+...-..-...-....`],[`Puerto Rico`,`pr`,`1`,`+. (...) ...-....`,3,[`787`,`939`]],[`Qatar (‫قطر‬‎)`,`qa`,`974`,`+...-....-....`],[`Réunion (La Réunion)`,`re`,`262`,`+...-.....-....`],[`Romania (România)`,`ro`,`40`,`+..-..-...-....`],[`Russia (Россия)`,`ru`,`7`,`+. ... ...-..-..`,0],[`Rwanda`,`rw`,`250`,`+...(...)...-...`],[`Saint Barthélemy (Saint-Barthélemy)`,`bl`,`590`,``,1],[`Saint Helena`,`sh`,`290`],[`Saint Kitts and Nevis`,`kn`,`1869`,`+.(...)...-....`],[`Saint Lucia`,`lc`,`1758`,`+.(...)...-....`],[`Saint Martin (Saint-Martin (partie française))`,`mf`,`590`,``,2],[`Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)`,`pm`,`508`],[`Saint Vincent and the Grenadines`,`vc`,`1784`,`+.(...)...-....`],[`Samoa`,`ws`,`685`,`+...-..-....`],[`San Marino`,`sm`,`378`,`+...-....-......`],[`São Tomé and Príncipe (São Tomé e Príncipe)`,`st`,`239`,`+...-..-.....`],[`Saudi Arabia (‫المملكة العربية السعودية‬‎)`,`sa`,`966`,`+...-..-...-....`],[`Senegal (Sénégal)`,`sn`,`221`,`+...-..-...-....`],[`Serbia (Србија)`,`rs`,`381`,`+...-..-...-....`],[`Seychelles`,`sc`,`248`,`+...-.-...-...`],[`Sierra Leone`,`sl`,`232`,`+...-..-......`],[`Singapore`,`sg`,`65`,`+.. ....-....`],[`Sint Maarten`,`sx`,`1721`,`+.(...)...-....`],[`Slovakia (Slovensko)`,`sk`,`421`,`+...(...)...-...`],[`Slovenia (Slovenija)`,`si`,`386`,`+...-..-...-...`],[`Solomon Islands`,`sb`,`677`,`+...-.....`],[`Somalia (Soomaaliya)`,`so`,`252`,`+...-.-...-...`],[`South Africa`,`za`,`27`,`+..-..-...-....`],[`South Georgia and the South Sandwich Islands`,`gs`,`500`,``],[`South Korea (대한민국)`,`kr`,`82`,`+..-..-...-....`],[`South Sudan (‫جنوب السودان‬‎)`,`ss`,`211`,`+...-..-...-....`],[`Spain (España)`,`es`,`34`,`+.. ... ... ...`],[`Sri Lanka (ශ්‍රී ලංකාව)`,`lk`,`94`,`+..-..-...-....`],[`Sudan (‫السودان‬‎)`,`sd`,`249`,`+...-..-...-....`],[`Suriname`,`sr`,`597`,`+...-...-...`],[`Svalbard and Jan Mayen`,`sj`,`47`,``],[`Swaziland`,`sz`,`268`,`+...-..-..-....`],[`Sweden (Sverige)`,`se`,`46`,`+.. .. ... .. ..`],[`Switzerland (Schweiz)`,`ch`,`41`,`+.. .. ... .. ..`],[`Syria (‫سوريا‬‎)`,`sy`,`963`,`+...-..-....-...`],[`Taiwan (台灣)`,`tw`,`886`,`+...-....-....`],[`Tajikistan`,`tj`,`992`,`+...-..-...-....`],[`Tanzania`,`tz`,`255`,`+...-..-...-....`],[`Thailand (ไทย)`,`th`,`66`,`+..-..-...-...`],[`Timor-Leste`,`tl`,`670`,`+...-...-....`],[`Togo`,`tg`,`228`,`+...-..-...-...`],[`Tokelau`,`tk`,`690`,`+...-....`],[`Tonga`,`to`,`676`,`+...-.....`],[`Trinidad and Tobago`,`tt`,`1868`,`+.(...)...-....`],[`Tunisia (‫تونس‬‎)`,`tn`,`216`,`+...-..-...-...`],[`Turkey (Türkiye)`,`tr`,`90`,`+.. ... ... .. ..`],[`Turkmenistan`,`tm`,`993`,`+...-.-...-....`],[`Turks and Caicos Islands`,`tc`,`1649`,`+.(...)...-....`],[`Tuvalu`,`tv`,`688`,`+...-.....`],[`U.S. Virgin Islands`,`vi`,`1340`,`+.(...)...-....`],[`Uganda`,`ug`,`256`,`+...(...)...-...`],[`Ukraine (Україна)`,`ua`,`380`,`+...(..)...-..-..`],[`United Arab Emirates (‫الإمارات العربية المتحدة‬‎)`,`ae`,`971`,`+...-.-...-....`],[`United Kingdom`,`gb`,`44`,`+.. .... ......`],[`United States`,`us`,`1`,`+. (...) ...-....`,0],[`United States Minor Outlying Islands`,`um`,`1`,``,2],[`Uruguay`,`uy`,`598`,`+...-.-...-..-..`],[`Uzbekistan (Oʻzbekiston)`,`uz`,`998`,`+...-..-...-....`],[`Vanuatu`,`vu`,`678`,`+...-.....`],[`Vatican City (Città del Vaticano)`,`va`,`39`,`+.. .. .... ....`,1],[`Venezuela`,`ve`,`58`,`+..(...)...-....`],[`Vietnam (Việt Nam)`,`vn`,`84`,`+..-..-....-...`],[`Wallis and Futuna`,`wf`,`681`,`+...-..-....`],[`Western Sahara`,`eh`,`212`,`+...-..-....`],[`Yemen (‫اليمن‬‎)`,`ye`,`967`,`+...-.-...-...`],[`Zambia`,`zm`,`260`,`+...-..-...-....`],[`Zimbabwe`,`zw`,`263`,`+...-.-......`]],allCountryCodes={},iso2Lookup={},addCountryCode=function(t$5,o,r){o in allCountryCodes||(allCountryCodes[o]=[]);var u=r||0;allCountryCodes[o][u]=t$5},i$1=0;i$1<allCountries.length;i$1++){var c=allCountries[i$1];if(allCountries[i$1]={name:c[0],iso2:c[1],dialCode:c[2],priority:c[4]||0},c[3]&&(allCountries[i$1].format=c[3]),c[5]){allCountries[i$1].hasAreaCodes=!0;for(var j=0;j<c[5].length;j++){var dialCode=c[2]+c[5][j];addCountryCode(c[1],dialCode)}}iso2Lookup[allCountries[i$1].iso2]=i$1,addCountryCode(c[1],c[2],c[4])}var country_telephone_data={allCountries,iso2Lookup,allCountryCodes};function commonjsRequire(t$5){throw Error(`Could not dynamically require "`+t$5+`". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.`)}var libphonenumber={exports:{}};libphonenumber.exports,function(module$1,exports$1){(function(t$5){module$1.exports=t$5()})(function(){return function(){function t$5(o,r,u){function h(S,_){if(!r[S]){if(!o[S]){var C=typeof commonjsRequire==`function`&&commonjsRequire;if(!_&&C)return C(S,!0);if(m)return m(S,!0);var O=Error(`Cannot find module '`+S+`'`);throw O.code=`MODULE_NOT_FOUND`,O}var I=r[S]={exports:{}};o[S][0].call(I.exports,function(R$1){var U=o[S][1][R$1];return h(U||R$1)},I,I.exports,t$5,o,r,u)}return r[S].exports}for(var m=typeof commonjsRequire==`function`&&commonjsRequire,y=0;y<u.length;y++)h(u[y]);return h}return t$5}()({1:[function(require$1,module$2,exports$2){(function(global$1){(function(){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.createTemplateTagFirstArg=function(t$5){return t$5.raw=t$5},$jscomp.createTemplateTagFirstArgWithRaw=function(t$5,o){return t$5.raw=o,t$5},$jscomp.arrayIteratorImpl=function(t$5){var o=0;return function(){return o<t$5.length?{done:!1,value:t$5[o++]}:{done:!0}}},$jscomp.arrayIterator=function(t$5){return{next:$jscomp.arrayIteratorImpl(t$5)}},$jscomp.makeIterator=function(t$5){var o=typeof Symbol<`u`&&Symbol.iterator&&t$5[Symbol.iterator];return o?o.call(t$5):$jscomp.arrayIterator(t$5)},$jscomp.arrayFromIterator=function(t$5){for(var o,r=[];!(o=t$5.next()).done;)r.push(o.value);return r},$jscomp.arrayFromIterable=function(t$5){return t$5 instanceof Array?t$5:$jscomp.arrayFromIterator($jscomp.makeIterator(t$5))},$jscomp.checkStringArgs=function(t$5,o,r){if(t$5==null)throw TypeError(`The 'this' value for String.prototype.`+r+` must not be null or undefined`);if(o instanceof RegExp)throw TypeError(`First argument to String.prototype.`+r+` must not be a regular expression`);return t$5+``},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties==`function`?Object.defineProperty:function(t$5,o,r){return t$5==Array.prototype||t$5==Object.prototype||(t$5[o]=r.value),t$5},$jscomp.getGlobal=function(t$5){t$5=[typeof globalThis==`object`&&globalThis,t$5,typeof window==`object`&&window,typeof self==`object`&&self,typeof global$1==`object`&&global$1];for(var o=0;o<t$5.length;++o){var r=t$5[o];if(r&&r.Math==Math)return r}throw Error(`Cannot find global object`)},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE=typeof Symbol==`function`&&typeof Symbol(`x`)==`symbol`,$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX=`$jscp$`,$jscomp.polyfill=function(t$5,o,r,u){o&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t$5,o,r,u):$jscomp.polyfillUnisolated(t$5,o,r,u))},$jscomp.polyfillUnisolated=function(t$5,o,r,u){for(r=$jscomp.global,t$5=t$5.split(`.`),u=0;u<t$5.length-1;u++){var h=t$5[u];if(!(h in r))return;r=r[h]}t$5=t$5[t$5.length-1],u=r[t$5],o=o(u),o!=u&&o!=null&&$jscomp.defineProperty(r,t$5,{configurable:!0,writable:!0,value:o})},$jscomp.polyfillIsolated=function(t$5,o,r,u){var h=t$5.split(`.`);t$5=h.length===1,u=h[0],u=!t$5&&u in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var m=0;m<h.length-1;m++){var y=h[m];if(!(y in u))return;u=u[y]}h=h[h.length-1],r=$jscomp.IS_SYMBOL_NATIVE&&r===`es6`?u[h]:null,o=o(r),o!=null&&(t$5?$jscomp.defineProperty($jscomp.polyfills,h,{configurable:!0,writable:!0,value:o}):o!==r&&($jscomp.propertyToPolyfillSymbol[h]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(h):$jscomp.POLYFILL_PREFIX+h,h=$jscomp.propertyToPolyfillSymbol[h],$jscomp.defineProperty(u,h,{configurable:!0,writable:!0,value:o})))},$jscomp.polyfill(`String.prototype.endsWith`,function(t$5){return t$5||function(o,r){var u=$jscomp.checkStringArgs(this,o,`endsWith`);o+=``,r===void 0&&(r=u.length),r=Math.max(0,Math.min(r|0,u.length));for(var h=o.length;0<h&&0<r;)if(u[--r]!=o[--h])return!1;return 0>=h}},`es6`,`es3`),$jscomp.findInternal=function(t$5,o,r){t$5 instanceof String&&(t$5=String(t$5));for(var u=t$5.length,h=0;h<u;h++){var m=t$5[h];if(o.call(r,m,h,t$5))return{i:h,v:m}}return{i:-1,v:void 0}},$jscomp.polyfill(`Array.prototype.find`,function(t$5){return t$5||function(o,r){return $jscomp.findInternal(this,o,r).v}},`es6`,`es3`),$jscomp.polyfill(`String.prototype.startsWith`,function(t$5){return t$5||function(o,r){var u=$jscomp.checkStringArgs(this,o,`startsWith`);o+=``;var h=u.length,m=o.length;r=Math.max(0,Math.min(r|0,u.length));for(var y=0;y<m&&r<h;)if(u[r++]!=o[y++])return!1;return y>=m}},`es6`,`es3`),$jscomp.polyfill(`String.prototype.repeat`,function(t$5){return t$5||function(o){var r=$jscomp.checkStringArgs(this,null,`repeat`);if(0>o||1342177279<o)throw RangeError(`Invalid count value`);o|=0;for(var u=``;o;)o&1&&(u+=r),(o>>>=1)&&(r+=r);return u}},`es6`,`es3`),$jscomp.initSymbol=function(){},$jscomp.polyfill(`Symbol`,function(t$5){if(t$5)return t$5;var o=function(h,m){this.$jscomp$symbol$id_=h,$jscomp.defineProperty(this,`description`,{configurable:!0,writable:!0,value:m})};o.prototype.toString=function(){return this.$jscomp$symbol$id_};var r=0,u=function(h){if(this instanceof u)throw TypeError(`Symbol is not a constructor`);return new o(`jscomp_symbol_`+(h||``)+`_`+ r++,h)};return u},`es6`,`es3`),$jscomp.polyfill(`Symbol.iterator`,function(t$5){if(t$5)return t$5;t$5=Symbol(`Symbol.iterator`);for(var o=`Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array`.split(` `),r=0;r<o.length;r++){var u=$jscomp.global[o[r]];typeof u==`function`&&typeof u.prototype[t$5]!=`function`&&$jscomp.defineProperty(u.prototype,t$5,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return t$5},`es6`,`es3`),$jscomp.iteratorPrototype=function(t$5){return t$5={next:t$5},t$5[Symbol.iterator]=function(){return this},t$5},$jscomp.iteratorFromArray=function(t$5,o){t$5 instanceof String&&(t$5+=``);var r=0,u=!1,h={next:function(){if(!u&&r<t$5.length){var m=r++;return{value:o(m,t$5[m]),done:!1}}return u=!0,{done:!0,value:void 0}}};return h[Symbol.iterator]=function(){return h},h},$jscomp.polyfill(`Array.prototype.keys`,function(t$5){return t$5||function(){return $jscomp.iteratorFromArray(this,function(o){return o})}},`es6`,`es3`),$jscomp.polyfill(`Object.is`,function(t$5){return t$5||function(o,r){return o===r?o!==0||1/o==1/r:o!==o&&r!==r}},`es6`,`es3`),$jscomp.polyfill(`Array.prototype.includes`,function(t$5){return t$5||function(o,r){var u=this;u instanceof String&&(u=String(u));var h=u.length;for(r||=0,0>r&&(r=Math.max(r+h,0));r<h;r++){var m=u[r];if(m===o||Object.is(m,o))return!0}return!1}},`es7`,`es3`),$jscomp.polyfill(`String.prototype.includes`,function(t$5){return t$5||function(o,r){return $jscomp.checkStringArgs(this,o,`includes`).indexOf(o,r||0)!==-1}},`es6`,`es3`);var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.exportPath_=function(t$5,o,r,u){t$5=t$5.split(`.`),u||=goog.global,t$5[0]in u||typeof u.execScript>`u`||u.execScript(`var `+t$5[0]);for(var h;t$5.length&&(h=t$5.shift());)if(t$5.length||o===void 0)u=u[h]&&u[h]!==Object.prototype[h]?u[h]:u[h]={};else if(!r&&goog.isObject(o)&&goog.isObject(u[h]))for(var m in o)o.hasOwnProperty(m)&&(u[h][m]=o[m]);else u[h]=o},goog.define=function(t$5,o){if(!COMPILED){var r=goog.global.CLOSURE_UNCOMPILED_DEFINES,u=goog.global.CLOSURE_DEFINES;r&&r.nodeType===void 0&&Object.prototype.hasOwnProperty.call(r,t$5)?o=r[t$5]:u&&u.nodeType===void 0&&Object.prototype.hasOwnProperty.call(u,t$5)&&(o=u[t$5])}return o},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE=`en`,goog.TRUSTED_SITE=!0,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(t$5){if(goog.isInModuleLoader_())throw Error(`goog.provide cannot be used within a module.`);if(!COMPILED&&goog.isProvided_(t$5))throw Error(`Namespace "`+t$5+`" already declared.`);goog.constructNamespace_(t$5)},goog.constructNamespace_=function(t$5,o,r){if(!COMPILED){delete goog.implicitNamespaces_[t$5];for(var u=t$5;(u=u.substring(0,u.lastIndexOf(`.`)))&&!goog.getObjectByName(u);)goog.implicitNamespaces_[u]=!0}goog.exportPath_(t$5,o,r)},goog.getScriptNonce=function(t$5){return t$5&&t$5!=goog.global?goog.getScriptNonce_(t$5.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(t$5){return(t$5=t$5.querySelector&&t$5.querySelector(`script[nonce]`))&&(t$5=t$5.nonce||t$5.getAttribute(`nonce`))&&goog.NONCE_PATTERN_.test(t$5)?t$5:``},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(t$5){if(typeof t$5!=`string`||!t$5||t$5.search(goog.VALID_MODULE_RE_)==-1)throw Error(`Invalid module identifier`);if(!goog.isInGoogModuleLoader_())throw Error(`Module `+t$5+` has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.`);if(goog.moduleLoaderState_.moduleName)throw Error(`goog.module may only be called once per module.`);if(goog.moduleLoaderState_.moduleName=t$5,!COMPILED){if(goog.isProvided_(t$5))throw Error(`Namespace "`+t$5+`" already declared.`);delete goog.implicitNamespaces_[t$5]}},goog.module.get=function(t$5){return goog.module.getInternal_(t$5)},goog.module.getInternal_=function(t$5){if(!COMPILED){if(t$5 in goog.loadedModules_)return goog.loadedModules_[t$5].exports;if(!goog.implicitNamespaces_[t$5])return t$5=goog.getObjectByName(t$5),t$5??null}return null},goog.ModuleType={ES6:`es6`,GOOG:`goog`},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var t$5=goog.global.$jscomp;return t$5&&typeof t$5.getCurrentModulePath==`function`?!!t$5.getCurrentModulePath():!1},goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error(`goog.module.declareLegacyNamespace must be called from within a goog.module`);if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error(`goog.module must be called prior to goog.module.declareLegacyNamespace.`);goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(t$5){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error(`goog.declareModuleId may only be called from within an ES6 module`);if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error(`goog.declareModuleId may only be called once per module.`);if(t$5 in goog.loadedModules_)throw Error(`Module with namespace "`+t$5+`" already exists.`)}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=t$5;else{var o=goog.global.$jscomp;if(!o||typeof o.getCurrentModulePath!=`function`)throw Error(`Module with namespace "`+t$5+`" has been loaded incorrectly.`);o=o.require(o.getCurrentModulePath()),goog.loadedModules_[t$5]={exports:o,type:goog.ModuleType.ES6,moduleId:t$5}}},goog.setTestOnly=function(t$5){if(goog.DISALLOW_TEST_ONLY_CODE)throw t$5||=``,Error(`Importing test-only code into non-debug environment`+(t$5?`: `+t$5:`.`))},goog.forwardDeclare=function(t$5){},COMPILED||(goog.isProvided_=function(t$5){return t$5 in goog.loadedModules_||!goog.implicitNamespaces_[t$5]&&goog.getObjectByName(t$5)!=null},goog.implicitNamespaces_={"goog.module":!0}),goog.getObjectByName=function(t$5,o){t$5=t$5.split(`.`),o||=goog.global;for(var r=0;r<t$5.length;r++)if(o=o[t$5[r]],o==null)return null;return o},goog.addDependency=function(t$5,o,r,u){!COMPILED&&goog.DEPENDENCIES_ENABLED&&goog.debugLoader_.addDependency(t$5,o,r,u)},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(t$5){goog.global.console&&goog.global.console.error(t$5)},goog.require=function(t$5){if(!COMPILED){if(goog.ENABLE_DEBUG_LOADER&&goog.debugLoader_.requested(t$5),goog.isProvided_(t$5)){if(goog.isInModuleLoader_())return goog.module.getInternal_(t$5)}else if(goog.ENABLE_DEBUG_LOADER){var o=goog.moduleLoaderState_;goog.moduleLoaderState_=null;try{goog.debugLoader_.load_(t$5)}finally{goog.moduleLoaderState_=o}}return null}},goog.requireType=function(t$5){return{}},goog.basePath=``,goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error(`unimplemented abstract method`)},goog.addSingletonGetter=function(t$5){t$5.instance_=void 0,t$5.getInstance=function(){return t$5.instance_?t$5.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=t$5),t$5.instance_=new t$5)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER,goog.TRANSPILE=`detect`,goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE=``,goog.TRANSPILER=`transpile.js`,goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(goog.hasBadLetScoping==null){try{var a=!eval(`"use strict";let x = 1; function f() { return typeof x; };f() == "number";`)}catch{a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(t$5){return`(function(){`+t$5+`
10
+ `)+` `+braces[1]:braces[0]+base+` `+output.join(`, `)+` `+braces[1]}exports.types=require_types();function isArray(ar){return Array.isArray(ar)}exports.isArray=isArray;function isBoolean(arg){return typeof arg==`boolean`}exports.isBoolean=isBoolean;function isNull(arg){return arg===null}exports.isNull=isNull;function isNullOrUndefined(arg){return arg==null}exports.isNullOrUndefined=isNullOrUndefined;function isNumber$2(arg){return typeof arg==`number`}exports.isNumber=isNumber$2;function isString$2(arg){return typeof arg==`string`}exports.isString=isString$2;function isSymbol(arg){return typeof arg==`symbol`}exports.isSymbol=isSymbol;function isUndefined$2(arg){return arg===void 0}exports.isUndefined=isUndefined$2;function isRegExp(re$5){return isObject(re$5)&&objectToString(re$5)===`[object RegExp]`}exports.isRegExp=isRegExp,exports.types.isRegExp=isRegExp;function isObject(arg){return typeof arg==`object`&&!!arg}exports.isObject=isObject;function isDate$2(d){return isObject(d)&&objectToString(d)===`[object Date]`}exports.isDate=isDate$2,exports.types.isDate=isDate$2;function isError(e){return isObject(e)&&(objectToString(e)===`[object Error]`||e instanceof Error)}exports.isError=isError,exports.types.isNativeError=isError;function isFunction(arg){return typeof arg==`function`}exports.isFunction=isFunction;function isPrimitive(arg){return arg===null||typeof arg==`boolean`||typeof arg==`number`||typeof arg==`string`||typeof arg==`symbol`||arg===void 0}exports.isPrimitive=isPrimitive,exports.isBuffer=require_isBuffer();function objectToString(o){return Object.prototype.toString.call(o)}function pad(n$2){return n$2<10?`0`+n$2.toString(10):n$2.toString(10)}var months$2=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function timestamp(){var d=new Date,time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(`:`);return[d.getDate(),months$2[d.getMonth()],time].join(` `)}exports.log=function(){console.log(`%s - %s`,timestamp(),exports.format.apply(exports,arguments))},exports.inherits=require_inherits(),exports._extend=function(origin,add){if(!add||!isObject(add))return origin;for(var keys=Object.keys(add),i$4=keys.length;i$4--;)origin[keys[i$4]]=add[keys[i$4]];return origin};function hasOwnProperty$2(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}var kCustomPromisifiedSymbol=typeof Symbol<`u`?Symbol(`util.promisify.custom`):void 0;exports.promisify=function(original){if(typeof original!=`function`)throw TypeError(`The "original" argument must be of type Function`);if(kCustomPromisifiedSymbol&&original[kCustomPromisifiedSymbol]){var fn$1=original[kCustomPromisifiedSymbol];if(typeof fn$1!=`function`)throw TypeError(`The "util.promisify.custom" argument must be of type Function`);return Object.defineProperty(fn$1,kCustomPromisifiedSymbol,{value:fn$1,enumerable:!1,writable:!1,configurable:!0}),fn$1}function fn$1(){for(var promiseResolve,promiseReject,promise=new Promise(function(resolve,reject){promiseResolve=resolve,promiseReject=reject}),args$1=[],i$4=0;i$4<arguments.length;i$4++)args$1.push(arguments[i$4]);args$1.push(function(err$1,value){err$1?promiseReject(err$1):promiseResolve(value)});try{original.apply(this,args$1)}catch(err$1){promiseReject(err$1)}return promise}return Object.setPrototypeOf(fn$1,Object.getPrototypeOf(original)),kCustomPromisifiedSymbol&&Object.defineProperty(fn$1,kCustomPromisifiedSymbol,{value:fn$1,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(fn$1,getOwnPropertyDescriptors(original))},exports.promisify.custom=kCustomPromisifiedSymbol;function callbackifyOnRejected(reason,cb){if(!reason){var newReason=Error(`Promise was rejected with a falsy value`);newReason.reason=reason,reason=newReason}return cb(reason)}function callbackify(original){if(typeof original!=`function`)throw TypeError(`The "original" argument must be of type Function`);function callbackified(){for(var args$1=[],i$4=0;i$4<arguments.length;i$4++)args$1.push(arguments[i$4]);var maybeCb=args$1.pop();if(typeof maybeCb!=`function`)throw TypeError(`The last argument must be of type Function`);var self$1=this,cb=function(){return maybeCb.apply(self$1,arguments)};original.apply(this,args$1).then(function(ret){process$1.nextTick(cb.bind(null,null,ret))},function(rej){process$1.nextTick(callbackifyOnRejected.bind(null,rej,cb))})}return Object.setPrototypeOf(callbackified,Object.getPrototypeOf(original)),Object.defineProperties(callbackified,getOwnPropertyDescriptors(original)),callbackified}exports.callbackify=callbackify});function analyzeEmail(email,options){return validateEmail(email,options)}function isEmailValid$1(email,options){return!validateEmail(email,options)}function validateEmail(email,options={}){if(typeof email!=`string`)throw Error(`Invalid input: email must be a string`);if(!email)return errorCode(`EMPTY_STRING`);let ascii$2=!NON_ASCII_RX.test(email);if(!ascii$2){if(options.allowUnicode===!1)return errorCode(`FORBIDDEN_UNICODE`);email=email.normalize(`NFC`)}let parts=email.split(`@`);if(parts.length!==2)return parts.length>2?errorCode(`MULTIPLE_AT_CHAR`):errorCode(`MISSING_AT_CHAR`);let[local,domain]=parts;if(!local)return errorCode(`EMPTY_LOCAL`);if(!options.ignoreLength){if(email.length>254)return errorCode(`ADDRESS_TOO_LONG`);if(ENCODER_IMPL.encode(local).length>64)return errorCode(`LOCAL_TOO_LONG`)}return validateLocal(local,ascii$2)||analyzeDomain(domain,options)}function validateLocal(local,ascii$2){let segments=local.split(`.`);for(let segment of segments){if(!segment.length)return errorCode(`EMPTY_LOCAL_SEGMENT`);if(ascii$2){if(!ATEXT_RX.test(segment))return errorCode(`INVALID_LOCAL_CHARS`);continue}for(let char of segment){if(ATEXT_RX.test(char))continue;let binary=toBinary(char);if(!ATOM_RX.test(binary))return errorCode(`INVALID_LOCAL_CHARS`)}}return null}function toBinary(char){return Array.from(ENCODER_IMPL.encode(char),v=>String.fromCharCode(v)).join(``)}var import_util,NON_ASCII_RX,ENCODER_IMPL,ATEXT_RX,ATOM_RX,init_email=__esmMin(()=>{import_util=__toESM(require_util()),init_domain(),NON_ASCII_RX=/[^\x00-\x7f]/,ENCODER_IMPL=new(import_util.TextEncoder||TextEncoder),ATEXT_RX=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,ATOM_RX=new RegExp([`(?:[\\xc2-\\xdf][\\x80-\\xbf])`,`(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})`,`(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})`].join(`|`))});function generate$1(){let rfc3986$1={},hexDigit=`\\dA-Fa-f`,hexDigitOnly=`[`+hexDigit+`]`,unreserved=`\\w-\\.~`,subDelims=`!\\$&'\\(\\)\\*\\+,;=`,pctEncoded=`%`+hexDigit,pchar=unreserved+pctEncoded+subDelims+`:@`,pcharOnly=`[`+pchar+`]`,decOctect=`(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])`;rfc3986$1.ipv4address=`(?:`+decOctect+`\\.){3}(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])`;let h16=hexDigitOnly+`{1,4}`,ls32=`(?:`+h16+`:[\\dA-Fa-f]{1,4}|`+rfc3986$1.ipv4address+`)`,IPv6SixHex=`(?:`+h16+`:){6}`+ls32,IPv6FiveHex=`::(?:`+h16+`:){5}`+ls32,IPv6FourHex=`(?:`+h16+`)?::(?:[\\dA-Fa-f]{1,4}:){4}`+ls32,IPv6ThreeHex=`(?:(?:`+h16+`:){0,1}[\\dA-Fa-f]{1,4})?::(?:[\\dA-Fa-f]{1,4}:){3}`+ls32,IPv6TwoHex=`(?:(?:`+h16+`:){0,2}[\\dA-Fa-f]{1,4})?::(?:[\\dA-Fa-f]{1,4}:){2}`+ls32,IPv6OneHex=`(?:(?:`+h16+`:){0,3}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}:`+ls32,IPv6NoneHex=`(?:(?:`+h16+`:){0,4}[\\dA-Fa-f]{1,4})?::`+ls32,IPv6NoneHex2=`(?:(?:`+h16+`:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}`,IPv6NoneHex3=`(?:(?:`+h16+`:){0,6}[\\dA-Fa-f]{1,4})?::`;rfc3986$1.ipv4Cidr=`(?:\\d|[1-2]\\d|3[0-2])`,rfc3986$1.ipv6Cidr=`(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])`,rfc3986$1.ipv6address=`(?:`+IPv6SixHex+`|`+IPv6FiveHex+`|`+IPv6FourHex+`|`+IPv6ThreeHex+`|`+IPv6TwoHex+`|`+IPv6OneHex+`|`+IPv6NoneHex+`|(?:(?:[\\dA-Fa-f]{1,4}:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}|(?:(?:[\\dA-Fa-f]{1,4}:){0,6}[\\dA-Fa-f]{1,4})?::)`,rfc3986$1.ipvFuture=`v`+hexDigitOnly+`+\\.[\\w-\\.~!\\$&'\\(\\)\\*\\+,;=:]+`,rfc3986$1.scheme=`[a-zA-Z][a-zA-Z\\d+-\\.]*`,rfc3986$1.schemeRegex=new RegExp(rfc3986$1.scheme);let userinfo=`[`+unreserved+pctEncoded+subDelims+`:]*`,IPLiteral=`\\[(?:`+rfc3986$1.ipv6address+`|`+rfc3986$1.ipvFuture+`)\\]`,regName=`[`+unreserved+pctEncoded+subDelims+`]{1,255}`,host=`(?:`+IPLiteral+`|`+rfc3986$1.ipv4address+`|[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=]{1,255})`,port=`\\d*`,authority=`(?:`+userinfo+`@)?`+host+`(?::\\d*)?`,authorityCapture=`(?:`+userinfo+`@)?(`+host+`)(?::\\d*)?`,segment=pcharOnly+`*`,segmentNz=pcharOnly+`+`,segmentNzNc=`[`+unreserved+pctEncoded+subDelims+`@]+`,pathEmpty=``,pathAbEmpty=`(?:\\/`+segment+`)*`,pathAbsolute=`\\/(?:`+segmentNz+pathAbEmpty+`)?`,pathRootless=segmentNz+pathAbEmpty,pathNoScheme=segmentNzNc+pathAbEmpty,pathAbNoAuthority=`(?:\\/\\/\\/`+segment+pathAbEmpty+`)`;return rfc3986$1.hierPart=`(?:(?:\\/\\/`+authority+pathAbEmpty+`)|`+pathAbsolute+`|`+pathRootless+`|`+pathAbNoAuthority+`)`,rfc3986$1.hierPartCapture=`(?:(?:\\/\\/`+authorityCapture+pathAbEmpty+`)|`+pathAbsolute+`|`+pathRootless+`)`,rfc3986$1.relativeRef=`(?:(?:\\/\\/`+authority+pathAbEmpty+`)|`+pathAbsolute+`|`+pathNoScheme+`|)`,rfc3986$1.relativeRefCapture=`(?:(?:\\/\\/`+authorityCapture+pathAbEmpty+`)|`+pathAbsolute+`|`+pathNoScheme+`|)`,rfc3986$1.query=`[`+pchar+`\\/\\?]*(?=#|$)`,rfc3986$1.queryWithSquareBrackets=`[`+pchar+`\\[\\]\\/\\?]*(?=#|$)`,rfc3986$1.fragment=`[`+pchar+`\\/\\?]*`,rfc3986$1}function createRegex(options){let rfc=rfc3986,query=options.allowQuerySquareBrackets?rfc.queryWithSquareBrackets:rfc.query,suffix=`(?:\\?`+query+`)?(?:#`+rfc.fragment+`)?`,relative=options.domain?rfc.relativeRefCapture:rfc.relativeRef;if(options.relativeOnly)return wrap(relative+suffix);let customScheme=``;if(options.scheme){(0,import_assert.default)(options.scheme instanceof RegExp||typeof options.scheme==`string`||Array.isArray(options.scheme),`scheme must be a RegExp, String, or Array`);let schemes=[].concat(options.scheme);(0,import_assert.default)(schemes.length>=1,`scheme must have at least 1 scheme specified`);let selections=[];for(let i$4=0;i$4<schemes.length;++i$4){let scheme$1=schemes[i$4];(0,import_assert.default)(scheme$1 instanceof RegExp||typeof scheme$1==`string`,`scheme at position `+i$4+` must be a RegExp or String`),scheme$1 instanceof RegExp?selections.push(scheme$1.source.toString()):((0,import_assert.default)(rfc.schemeRegex.test(scheme$1),`scheme at position `+i$4+` must be a valid scheme`),selections.push((0,import_escapeRegex.default)(scheme$1)))}customScheme=selections.join(`|`)}let scheme=customScheme?`(?:`+customScheme+`)`:rfc.scheme,absolute=`(?:`+scheme+`:`+(options.domain?rfc.hierPartCapture:rfc.hierPart)+`)`,prefix=options.allowRelative?`(?:`+absolute+`|`+relative+`)`:absolute;return wrap(prefix+suffix,customScheme)}function wrap(raw,scheme=null){return raw=`(?=.)(?!https?\:/(?:$|[^/]))(?!https?\:///)(?!https?\:[^/])${raw}`,{raw,regex:RegExp(`^${raw}$`),scheme}}function uriRegex$1(options={}){return options.scheme||options.allowRelative||options.relativeOnly||options.allowQuerySquareBrackets||options.domain?createRegex(options):genericUriRegex}var rfc3986,ipVersions,genericUriRegex,init_uri=__esmMin(()=>{init_lib(),rfc3986=generate$1(),ipVersions={v4Cidr:rfc3986.ipv4Cidr,v6Cidr:rfc3986.ipv6Cidr,ipv4:rfc3986.ipv4address,ipv6:rfc3986.ipv6address,ipvfuture:rfc3986.ipvFuture},genericUriRegex=createRegex({})});function ipRegex$1(options={}){let cidr=options.cidr||`optional`;(0,import_assert.default)([`required`,`optional`,`forbidden`].includes(cidr),`options.cidr must be one of required, optional, forbidden`),(0,import_assert.default)(options.version===void 0||typeof options.version==`string`||Array.isArray(options.version),`options.version must be a string or an array of string`);let versions=options.version||[`ipv4`,`ipv6`,`ipvfuture`];Array.isArray(versions)||(versions=[versions]),(0,import_assert.default)(versions.length>=1,`options.version must have at least 1 version specified`);for(let version$3 of versions)(0,import_assert.default)(typeof version$3==`string`&&version$3===version$3.toLowerCase(),`Invalid options.version value`),(0,import_assert.default)([`ipv4`,`ipv6`,`ipvfuture`].includes(version$3),`options.version contains unknown version `+version$3+` - must be one of ipv4, ipv6, ipvfuture`);versions=Array.from(new Set(versions));let parts=versions.map(version$3=>{if(cidr===`forbidden`)return ipVersions[version$3];let cidrpart=`\\/${version$3===`ipv4`?ipVersions.v4Cidr:ipVersions.v6Cidr}`;return cidr===`required`?`${ipVersions[version$3]}${cidrpart}`:`${ipVersions[version$3]}(?:${cidrpart})?`}),raw=`(?:${parts.join(`|`)})`,regex=RegExp(`^${raw}$`);return{cidr,versions,regex,raw}}var init_ip=__esmMin(()=>{init_lib(),init_uri()});const HEX={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},UTF8={accept:12,reject:0,data:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7]};function uriDecode(string){let percentPos=string.indexOf(`%`);if(percentPos===-1)return string;let decoded=``,last=0,codepoint=0,startOfOctets=percentPos,state=UTF8.accept;for(;percentPos>-1&&percentPos<string.length;){let high=resolveHex(string[percentPos+1],4),low=resolveHex(string[percentPos+2],0),byte=high|low,type=UTF8.data[byte];if(state=UTF8.data[256+state+type],codepoint=codepoint<<6|byte&UTF8.data[364+type],state===UTF8.accept){decoded+=string.slice(last,startOfOctets),decoded+=codepoint<=65535?String.fromCharCode(codepoint):String.fromCharCode(55232+(codepoint>>10),56320+(codepoint&1023)),codepoint=0,last=percentPos+3,percentPos=string.indexOf(`%`,last),startOfOctets=percentPos;continue}if(state===UTF8.reject||(percentPos+=3,percentPos>=string.length||string[percentPos]!==`%`))return null}return decoded+string.slice(last)}function resolveHex(char,shift){let i$4=HEX[char];return i$4===void 0?255:i$4<<shift}var esm_exports={};__export(esm_exports,{analyzeDomain:()=>analyzeDomain,analyzeEmail:()=>analyzeEmail,errorCodes:()=>errorCodes,ipRegex:()=>ipRegex$1,isDomainValid:()=>isDomainValid$1,isEmailValid:()=>isEmailValid$1,uriDecode:()=>uriDecode,uriRegex:()=>uriRegex$1,validateDomainOptions:()=>validateDomainOptions});var init_esm=__esmMin(()=>{init_domain(),init_email(),init_ip(),init_uri()}),require_tlds=__commonJSMin(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.TLDS=`AAA.AARP.ABB.ABBOTT.ABBVIE.ABC.ABLE.ABOGADO.ABUDHABI.AC.ACADEMY.ACCENTURE.ACCOUNTANT.ACCOUNTANTS.ACO.ACTOR.AD.ADS.ADULT.AE.AEG.AERO.AETNA.AF.AFL.AFRICA.AG.AGAKHAN.AGENCY.AI.AIG.AIRBUS.AIRFORCE.AIRTEL.AKDN.AL.ALIBABA.ALIPAY.ALLFINANZ.ALLSTATE.ALLY.ALSACE.ALSTOM.AM.AMAZON.AMERICANEXPRESS.AMERICANFAMILY.AMEX.AMFAM.AMICA.AMSTERDAM.ANALYTICS.ANDROID.ANQUAN.ANZ.AO.AOL.APARTMENTS.APP.APPLE.AQ.AQUARELLE.AR.ARAB.ARAMCO.ARCHI.ARMY.ARPA.ART.ARTE.AS.ASDA.ASIA.ASSOCIATES.AT.ATHLETA.ATTORNEY.AU.AUCTION.AUDI.AUDIBLE.AUDIO.AUSPOST.AUTHOR.AUTO.AUTOS.AW.AWS.AX.AXA.AZ.AZURE.BA.BABY.BAIDU.BANAMEX.BAND.BANK.BAR.BARCELONA.BARCLAYCARD.BARCLAYS.BAREFOOT.BARGAINS.BASEBALL.BASKETBALL.BAUHAUS.BAYERN.BB.BBC.BBT.BBVA.BCG.BCN.BD.BE.BEATS.BEAUTY.BEER.BERLIN.BEST.BESTBUY.BET.BF.BG.BH.BHARTI.BI.BIBLE.BID.BIKE.BING.BINGO.BIO.BIZ.BJ.BLACK.BLACKFRIDAY.BLOCKBUSTER.BLOG.BLOOMBERG.BLUE.BM.BMS.BMW.BN.BNPPARIBAS.BO.BOATS.BOEHRINGER.BOFA.BOM.BOND.BOO.BOOK.BOOKING.BOSCH.BOSTIK.BOSTON.BOT.BOUTIQUE.BOX.BR.BRADESCO.BRIDGESTONE.BROADWAY.BROKER.BROTHER.BRUSSELS.BS.BT.BUILD.BUILDERS.BUSINESS.BUY.BUZZ.BV.BW.BY.BZ.BZH.CA.CAB.CAFE.CAL.CALL.CALVINKLEIN.CAM.CAMERA.CAMP.CANON.CAPETOWN.CAPITAL.CAPITALONE.CAR.CARAVAN.CARDS.CARE.CAREER.CAREERS.CARS.CASA.CASE.CASH.CASINO.CAT.CATERING.CATHOLIC.CBA.CBN.CBRE.CC.CD.CENTER.CEO.CERN.CF.CFA.CFD.CG.CH.CHANEL.CHANNEL.CHARITY.CHASE.CHAT.CHEAP.CHINTAI.CHRISTMAS.CHROME.CHURCH.CI.CIPRIANI.CIRCLE.CISCO.CITADEL.CITI.CITIC.CITY.CK.CL.CLAIMS.CLEANING.CLICK.CLINIC.CLINIQUE.CLOTHING.CLOUD.CLUB.CLUBMED.CM.CN.CO.COACH.CODES.COFFEE.COLLEGE.COLOGNE.COM.COMMBANK.COMMUNITY.COMPANY.COMPARE.COMPUTER.COMSEC.CONDOS.CONSTRUCTION.CONSULTING.CONTACT.CONTRACTORS.COOKING.COOL.COOP.CORSICA.COUNTRY.COUPON.COUPONS.COURSES.CPA.CR.CREDIT.CREDITCARD.CREDITUNION.CRICKET.CROWN.CRS.CRUISE.CRUISES.CU.CUISINELLA.CV.CW.CX.CY.CYMRU.CYOU.CZ.DAD.DANCE.DATA.DATE.DATING.DATSUN.DAY.DCLK.DDS.DE.DEAL.DEALER.DEALS.DEGREE.DELIVERY.DELL.DELOITTE.DELTA.DEMOCRAT.DENTAL.DENTIST.DESI.DESIGN.DEV.DHL.DIAMONDS.DIET.DIGITAL.DIRECT.DIRECTORY.DISCOUNT.DISCOVER.DISH.DIY.DJ.DK.DM.DNP.DO.DOCS.DOCTOR.DOG.DOMAINS.DOT.DOWNLOAD.DRIVE.DTV.DUBAI.DUPONT.DURBAN.DVAG.DVR.DZ.EARTH.EAT.EC.ECO.EDEKA.EDU.EDUCATION.EE.EG.EMAIL.EMERCK.ENERGY.ENGINEER.ENGINEERING.ENTERPRISES.EPSON.EQUIPMENT.ER.ERICSSON.ERNI.ES.ESQ.ESTATE.ET.EU.EUROVISION.EUS.EVENTS.EXCHANGE.EXPERT.EXPOSED.EXPRESS.EXTRASPACE.FAGE.FAIL.FAIRWINDS.FAITH.FAMILY.FAN.FANS.FARM.FARMERS.FASHION.FAST.FEDEX.FEEDBACK.FERRARI.FERRERO.FI.FIDELITY.FIDO.FILM.FINAL.FINANCE.FINANCIAL.FIRE.FIRESTONE.FIRMDALE.FISH.FISHING.FIT.FITNESS.FJ.FK.FLICKR.FLIGHTS.FLIR.FLORIST.FLOWERS.FLY.FM.FO.FOO.FOOD.FOOTBALL.FORD.FOREX.FORSALE.FORUM.FOUNDATION.FOX.FR.FREE.FRESENIUS.FRL.FROGANS.FRONTIER.FTR.FUJITSU.FUN.FUND.FURNITURE.FUTBOL.FYI.GA.GAL.GALLERY.GALLO.GALLUP.GAME.GAMES.GAP.GARDEN.GAY.GB.GBIZ.GD.GDN.GE.GEA.GENT.GENTING.GEORGE.GF.GG.GGEE.GH.GI.GIFT.GIFTS.GIVES.GIVING.GL.GLASS.GLE.GLOBAL.GLOBO.GM.GMAIL.GMBH.GMO.GMX.GN.GODADDY.GOLD.GOLDPOINT.GOLF.GOO.GOODYEAR.GOOG.GOOGLE.GOP.GOT.GOV.GP.GQ.GR.GRAINGER.GRAPHICS.GRATIS.GREEN.GRIPE.GROCERY.GROUP.GS.GT.GU.GUCCI.GUGE.GUIDE.GUITARS.GURU.GW.GY.HAIR.HAMBURG.HANGOUT.HAUS.HBO.HDFC.HDFCBANK.HEALTH.HEALTHCARE.HELP.HELSINKI.HERE.HERMES.HIPHOP.HISAMITSU.HITACHI.HIV.HK.HKT.HM.HN.HOCKEY.HOLDINGS.HOLIDAY.HOMEDEPOT.HOMEGOODS.HOMES.HOMESENSE.HONDA.HORSE.HOSPITAL.HOST.HOSTING.HOT.HOTELS.HOTMAIL.HOUSE.HOW.HR.HSBC.HT.HU.HUGHES.HYATT.HYUNDAI.IBM.ICBC.ICE.ICU.ID.IE.IEEE.IFM.IKANO.IL.IM.IMAMAT.IMDB.IMMO.IMMOBILIEN.IN.INC.INDUSTRIES.INFINITI.INFO.ING.INK.INSTITUTE.INSURANCE.INSURE.INT.INTERNATIONAL.INTUIT.INVESTMENTS.IO.IPIRANGA.IQ.IR.IRISH.IS.ISMAILI.IST.ISTANBUL.IT.ITAU.ITV.JAGUAR.JAVA.JCB.JE.JEEP.JETZT.JEWELRY.JIO.JLL.JM.JMP.JNJ.JO.JOBS.JOBURG.JOT.JOY.JP.JPMORGAN.JPRS.JUEGOS.JUNIPER.KAUFEN.KDDI.KE.KERRYHOTELS.KERRYPROPERTIES.KFH.KG.KH.KI.KIA.KIDS.KIM.KINDLE.KITCHEN.KIWI.KM.KN.KOELN.KOMATSU.KOSHER.KP.KPMG.KPN.KR.KRD.KRED.KUOKGROUP.KW.KY.KYOTO.KZ.LA.LACAIXA.LAMBORGHINI.LAMER.LAND.LANDROVER.LANXESS.LASALLE.LAT.LATINO.LATROBE.LAW.LAWYER.LB.LC.LDS.LEASE.LECLERC.LEFRAK.LEGAL.LEGO.LEXUS.LGBT.LI.LIDL.LIFE.LIFEINSURANCE.LIFESTYLE.LIGHTING.LIKE.LILLY.LIMITED.LIMO.LINCOLN.LINK.LIVE.LIVING.LK.LLC.LLP.LOAN.LOANS.LOCKER.LOCUS.LOL.LONDON.LOTTE.LOTTO.LOVE.LPL.LPLFINANCIAL.LR.LS.LT.LTD.LTDA.LU.LUNDBECK.LUXE.LUXURY.LV.LY.MA.MADRID.MAIF.MAISON.MAKEUP.MAN.MANAGEMENT.MANGO.MAP.MARKET.MARKETING.MARKETS.MARRIOTT.MARSHALLS.MATTEL.MBA.MC.MCKINSEY.MD.ME.MED.MEDIA.MEET.MELBOURNE.MEME.MEMORIAL.MEN.MENU.MERCKMSD.MG.MH.MIAMI.MICROSOFT.MIL.MINI.MINT.MIT.MITSUBISHI.MK.ML.MLB.MLS.MM.MMA.MN.MO.MOBI.MOBILE.MODA.MOE.MOI.MOM.MONASH.MONEY.MONSTER.MORMON.MORTGAGE.MOSCOW.MOTO.MOTORCYCLES.MOV.MOVIE.MP.MQ.MR.MS.MSD.MT.MTN.MTR.MU.MUSEUM.MUSIC.MV.MW.MX.MY.MZ.NA.NAB.NAGOYA.NAME.NAVY.NBA.NC.NE.NEC.NET.NETBANK.NETFLIX.NETWORK.NEUSTAR.NEW.NEWS.NEXT.NEXTDIRECT.NEXUS.NF.NFL.NG.NGO.NHK.NI.NICO.NIKE.NIKON.NINJA.NISSAN.NISSAY.NL.NO.NOKIA.NORTON.NOW.NOWRUZ.NOWTV.NP.NR.NRA.NRW.NTT.NU.NYC.NZ.OBI.OBSERVER.OFFICE.OKINAWA.OLAYAN.OLAYANGROUP.OLLO.OM.OMEGA.ONE.ONG.ONL.ONLINE.OOO.OPEN.ORACLE.ORANGE.ORG.ORGANIC.ORIGINS.OSAKA.OTSUKA.OTT.OVH.PA.PAGE.PANASONIC.PARIS.PARS.PARTNERS.PARTS.PARTY.PAY.PCCW.PE.PET.PF.PFIZER.PG.PH.PHARMACY.PHD.PHILIPS.PHONE.PHOTO.PHOTOGRAPHY.PHOTOS.PHYSIO.PICS.PICTET.PICTURES.PID.PIN.PING.PINK.PIONEER.PIZZA.PK.PL.PLACE.PLAY.PLAYSTATION.PLUMBING.PLUS.PM.PN.PNC.POHL.POKER.POLITIE.PORN.POST.PR.PRAXI.PRESS.PRIME.PRO.PROD.PRODUCTIONS.PROF.PROGRESSIVE.PROMO.PROPERTIES.PROPERTY.PROTECTION.PRU.PRUDENTIAL.PS.PT.PUB.PW.PWC.PY.QA.QPON.QUEBEC.QUEST.RACING.RADIO.RE.READ.REALESTATE.REALTOR.REALTY.RECIPES.RED.REDUMBRELLA.REHAB.REISE.REISEN.REIT.RELIANCE.REN.RENT.RENTALS.REPAIR.REPORT.REPUBLICAN.REST.RESTAURANT.REVIEW.REVIEWS.REXROTH.RICH.RICHARDLI.RICOH.RIL.RIO.RIP.RO.ROCKS.RODEO.ROGERS.ROOM.RS.RSVP.RU.RUGBY.RUHR.RUN.RW.RWE.RYUKYU.SA.SAARLAND.SAFE.SAFETY.SAKURA.SALE.SALON.SAMSCLUB.SAMSUNG.SANDVIK.SANDVIKCOROMANT.SANOFI.SAP.SARL.SAS.SAVE.SAXO.SB.SBI.SBS.SC.SCB.SCHAEFFLER.SCHMIDT.SCHOLARSHIPS.SCHOOL.SCHULE.SCHWARZ.SCIENCE.SCOT.SD.SE.SEARCH.SEAT.SECURE.SECURITY.SEEK.SELECT.SENER.SERVICES.SEVEN.SEW.SEX.SEXY.SFR.SG.SH.SHANGRILA.SHARP.SHELL.SHIA.SHIKSHA.SHOES.SHOP.SHOPPING.SHOUJI.SHOW.SI.SILK.SINA.SINGLES.SITE.SJ.SK.SKI.SKIN.SKY.SKYPE.SL.SLING.SM.SMART.SMILE.SN.SNCF.SO.SOCCER.SOCIAL.SOFTBANK.SOFTWARE.SOHU.SOLAR.SOLUTIONS.SONG.SONY.SOY.SPA.SPACE.SPORT.SPOT.SR.SRL.SS.ST.STADA.STAPLES.STAR.STATEBANK.STATEFARM.STC.STCGROUP.STOCKHOLM.STORAGE.STORE.STREAM.STUDIO.STUDY.STYLE.SU.SUCKS.SUPPLIES.SUPPLY.SUPPORT.SURF.SURGERY.SUZUKI.SV.SWATCH.SWISS.SX.SY.SYDNEY.SYSTEMS.SZ.TAB.TAIPEI.TALK.TAOBAO.TARGET.TATAMOTORS.TATAR.TATTOO.TAX.TAXI.TC.TCI.TD.TDK.TEAM.TECH.TECHNOLOGY.TEL.TEMASEK.TENNIS.TEVA.TF.TG.TH.THD.THEATER.THEATRE.TIAA.TICKETS.TIENDA.TIPS.TIRES.TIROL.TJ.TJMAXX.TJX.TK.TKMAXX.TL.TM.TMALL.TN.TO.TODAY.TOKYO.TOOLS.TOP.TORAY.TOSHIBA.TOTAL.TOURS.TOWN.TOYOTA.TOYS.TR.TRADE.TRADING.TRAINING.TRAVEL.TRAVELERS.TRAVELERSINSURANCE.TRUST.TRV.TT.TUBE.TUI.TUNES.TUSHU.TV.TVS.TW.TZ.UA.UBANK.UBS.UG.UK.UNICOM.UNIVERSITY.UNO.UOL.UPS.US.UY.UZ.VA.VACATIONS.VANA.VANGUARD.VC.VE.VEGAS.VENTURES.VERISIGN.VERSICHERUNG.VET.VG.VI.VIAJES.VIDEO.VIG.VIKING.VILLAS.VIN.VIP.VIRGIN.VISA.VISION.VIVA.VIVO.VLAANDEREN.VN.VODKA.VOLVO.VOTE.VOTING.VOTO.VOYAGE.VU.WALES.WALMART.WALTER.WANG.WANGGOU.WATCH.WATCHES.WEATHER.WEATHERCHANNEL.WEBCAM.WEBER.WEBSITE.WED.WEDDING.WEIBO.WEIR.WF.WHOSWHO.WIEN.WIKI.WILLIAMHILL.WIN.WINDOWS.WINE.WINNERS.WME.WOLTERSKLUWER.WOODSIDE.WORK.WORKS.WORLD.WOW.WS.WTC.WTF.XBOX.XEROX.XIHUAN.XIN.XN--11B4C3D.XN--1CK2E1B.XN--1QQW23A.XN--2SCRJ9C.XN--30RR7Y.XN--3BST00M.XN--3DS443G.XN--3E0B707E.XN--3HCRJ9C.XN--3PXU8K.XN--42C2D9A.XN--45BR5CYL.XN--45BRJ9C.XN--45Q11C.XN--4DBRK0CE.XN--4GBRIM.XN--54B7FTA0CC.XN--55QW42G.XN--55QX5D.XN--5SU34J936BGSG.XN--5TZM5G.XN--6FRZ82G.XN--6QQ986B3XL.XN--80ADXHKS.XN--80AO21A.XN--80AQECDR1A.XN--80ASEHDB.XN--80ASWG.XN--8Y0A063A.XN--90A3AC.XN--90AE.XN--90AIS.XN--9DBQ2A.XN--9ET52U.XN--9KRT00A.XN--B4W605FERD.XN--BCK1B9A5DRE4C.XN--C1AVG.XN--C2BR7G.XN--CCK2B3B.XN--CCKWCXETD.XN--CG4BKI.XN--CLCHC0EA0B2G2A9GCD.XN--CZR694B.XN--CZRS0T.XN--CZRU2D.XN--D1ACJ3B.XN--D1ALF.XN--E1A4C.XN--ECKVDTC9D.XN--EFVY88H.XN--FCT429K.XN--FHBEI.XN--FIQ228C5HS.XN--FIQ64B.XN--FIQS8S.XN--FIQZ9S.XN--FJQ720A.XN--FLW351E.XN--FPCRJ9C3D.XN--FZC2C9E2C.XN--FZYS8D69UVGM.XN--G2XX48C.XN--GCKR3F0F.XN--GECRJ9C.XN--GK3AT1E.XN--H2BREG3EVE.XN--H2BRJ9C.XN--H2BRJ9C8C.XN--HXT814E.XN--I1B6B1A6A2E.XN--IMR513N.XN--IO0A7I.XN--J1AEF.XN--J1AMH.XN--J6W193G.XN--JLQ480N2RG.XN--JVR189M.XN--KCRX77D1X4A.XN--KPRW13D.XN--KPRY57D.XN--KPUT3I.XN--L1ACC.XN--LGBBAT1AD8J.XN--MGB9AWBF.XN--MGBA3A3EJT.XN--MGBA3A4F16A.XN--MGBA7C0BBN0A.XN--MGBAAM7A8H.XN--MGBAB2BD.XN--MGBAH1A3HJKRD.XN--MGBAI9AZGQP6J.XN--MGBAYH7GPA.XN--MGBBH1A.XN--MGBBH1A71E.XN--MGBC0A9AZCG.XN--MGBCA7DZDO.XN--MGBCPQ6GPA1A.XN--MGBERP4A5D4AR.XN--MGBGU82A.XN--MGBI4ECEXP.XN--MGBPL2FH.XN--MGBT3DHD.XN--MGBTX2B.XN--MGBX4CD0AB.XN--MIX891F.XN--MK1BU44C.XN--MXTQ1M.XN--NGBC5AZD.XN--NGBE9E0A.XN--NGBRX.XN--NODE.XN--NQV7F.XN--NQV7FS00EMA.XN--NYQY26A.XN--O3CW4H.XN--OGBPF8FL.XN--OTU796D.XN--P1ACF.XN--P1AI.XN--PGBS0DH.XN--PSSY2U.XN--Q7CE6A.XN--Q9JYB4C.XN--QCKA1PMC.XN--QXA6A.XN--QXAM.XN--RHQV96G.XN--ROVU88B.XN--RVC1E0AM3E.XN--S9BRJ9C.XN--SES554G.XN--T60B56A.XN--TCKWE.XN--TIQ49XQYJ.XN--UNUP4Y.XN--VERMGENSBERATER-CTB.XN--VERMGENSBERATUNG-PWB.XN--VHQUV.XN--VUQ861B.XN--W4R85EL8FHU5DNRA.XN--W4RS40L.XN--WGBH1C.XN--WGBL6A.XN--XHQ521B.XN--XKC2AL3HYE2A.XN--XKC2DL3A5EE0H.XN--Y9A3AQ.XN--YFRO4I67O.XN--YGBI2AMMX.XN--ZFR164B.XXX.XYZ.YACHTS.YAHOO.YAMAXUN.YANDEX.YE.YODOBASHI.YOGA.YOKOHAMA.YOU.YOUTUBE.YT.YUN.ZA.ZAPPOS.ZARA.ZERO.ZIP.ZM.ZONE.ZUERICH.ZW`.split(`.`)}),require_commonjs=__commonJSMin(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0});let tlds_js_1=require_tlds();exports.tlds=new Set(tlds_js_1.TLDS.map(tld=>tld.toLowerCase()))}),require_string=__commonJSMin((exports,module)=>{init_dist$1();let{assert:assert$5,escapeRegex}=require_lib$4(),{isDomainValid,isEmailValid,ipRegex,uriRegex}=(init_esm(),__toCommonJS(esm_exports)),Tlds=require_commonjs(),Any$2=require_any(),Common$4=require_common(),internals$5={tlds:Tlds.tlds instanceof Set?{tlds:{allow:Tlds.tlds,deny:null}}:!1,base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:{withPrefix:/^0x[0-9a-f]+$/i,withOptionalPrefix:/^(?:0x)?[0-9a-f]+$/i,withoutPrefix:/^[0-9a-f]+$/i},ipRegex:ipRegex({cidr:`forbidden`}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":`}`,"[":`]`,"(":`)`,"":``},guidVersions:{uuidv1:`1`,uuidv2:`2`,uuidv3:`3`,uuidv4:`4`,uuidv5:`5`,uuidv6:`6`,uuidv7:`7`,uuidv8:`8`},guidSeparators:new Set([void 0,!0,!1,`-`,`:`]),normalizationForms:[`NFC`,`NFD`,`NFKC`,`NFKD`]};module.exports=Any$2.extend({type:`string`,flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:`string`,method(value,{schema,state,prefs}){let normalize=schema.$_getRule(`normalize`);normalize&&(value=value.normalize(normalize.args.form));let casing=schema.$_getRule(`case`);casing&&(value=casing.args.direction===`upper`?value.toLocaleUpperCase():value.toLocaleLowerCase());let trim=schema.$_getRule(`trim`);if(trim&&trim.args.enabled&&(value=value.trim()),schema.$_terms.replacements)for(let replacement of schema.$_terms.replacements)value=value.replace(replacement.pattern,replacement.replacement);let hex=schema.$_getRule(`hex`);if(hex&&hex.args.options.byteAligned&&value.length%2!=0&&(value=`0${value}`),schema.$_getRule(`isoDate`)){let iso=internals$5.isoDate(value);iso&&(value=iso)}if(schema._flags.truncate){let rule=schema.$_getRule(`max`);if(rule){let limit=rule.args.limit;if(Common$4.isResolvable(limit)&&(limit=limit.resolve(value,state,prefs),!Common$4.limit(limit)))return{value,errors:schema.$_createError(`any.ref`,limit,{ref:rule.args.limit,arg:`limit`,reason:`must be a positive integer`},state,prefs)};value=value.slice(0,limit)}}return{value}}},validate(value,{schema,error}){if(typeof value!=`string`)return{value,errors:error(`string.base`)};if(value===``){let min$1=schema.$_getRule(`min`);return min$1&&min$1.args.limit===0?void 0:{value,errors:error(`string.empty`)}}},rules:{alphanum:{method(){return this.$_addRule(`alphanum`)},validate(value,helpers){return/^[a-zA-Z0-9]+$/.test(value)?value:helpers.error(`string.alphanum`)}},base64:{method(options={}){return Common$4.assertOptions(options,[`paddingRequired`,`urlSafe`]),options={urlSafe:!1,paddingRequired:!0,...options},assert$5(typeof options.paddingRequired==`boolean`,`paddingRequired must be boolean`),assert$5(typeof options.urlSafe==`boolean`,`urlSafe must be boolean`),this.$_addRule({name:`base64`,args:{options}})},validate(value,helpers,{options}){let regex=internals$5.base64Regex[options.paddingRequired][options.urlSafe];return regex.test(value)?value:helpers.error(`string.base64`)}},case:{method(direction){return assert$5([`lower`,`upper`].includes(direction),`Invalid case:`,direction),this.$_addRule({name:`case`,args:{direction}})},validate(value,helpers,{direction}){return direction===`lower`&&value===value.toLocaleLowerCase()||direction===`upper`&&value===value.toLocaleUpperCase()?value:helpers.error(`string.${direction}case`)},convert:!0},creditCard:{method(){return this.$_addRule(`creditCard`)},validate(value,helpers){let i$4=value.length,sum=0,mul=1;for(;i$4--;){let char=value.charAt(i$4)*mul;sum+=char-(char>9)*9,mul^=3}return sum>0&&sum%10==0?value:helpers.error(`string.creditCard`)}},dataUri:{method(options={}){return Common$4.assertOptions(options,[`paddingRequired`]),options={paddingRequired:!0,...options},assert$5(typeof options.paddingRequired==`boolean`,`paddingRequired must be boolean`),this.$_addRule({name:`dataUri`,args:{options}})},validate(value,helpers,{options}){let matches=value.match(internals$5.dataUriRegex);if(matches){if(!matches[2]||matches[2]!==`base64`)return value;let base64regex=internals$5.base64Regex[options.paddingRequired].false;if(base64regex.test(matches[3]))return value}return helpers.error(`string.dataUri`)}},domain:{method(options){options&&Common$4.assertOptions(options,[`allowFullyQualified`,`allowUnicode`,`allowUnderscore`,`maxDomainSegments`,`minDomainSegments`,`tlds`]);let address=internals$5.addressOptions(options);return this.$_addRule({name:`domain`,args:{options},address})},validate(value,helpers,args$1,{address}){return isDomainValid(value,address)?value:helpers.error(`string.domain`)}},email:{method(options={}){Common$4.assertOptions(options,[`allowFullyQualified`,`allowUnicode`,`ignoreLength`,`maxDomainSegments`,`minDomainSegments`,`multiple`,`separator`,`tlds`]),assert$5(options.multiple===void 0||typeof options.multiple==`boolean`,`multiple option must be an boolean`);let address=internals$5.addressOptions(options),regex=RegExp(`\\s*[${options.separator?escapeRegex(options.separator):`,`}]\\s*`);return this.$_addRule({name:`email`,args:{options},regex,address})},validate(value,helpers,{options},{regex,address}){let emails=options.multiple?value.split(regex):[value],invalids=[];for(let email of emails)isEmailValid(email,address)||invalids.push(email);return invalids.length?helpers.error(`string.email`,{value,invalids}):value}},guid:{alias:`uuid`,method(options={}){Common$4.assertOptions(options,[`version`,`separator`,`wrapper`]),assert$5(options.wrapper===void 0||typeof options.wrapper==`boolean`||typeof options.wrapper==`string`&&typeof internals$5.guidBrackets[options.wrapper]==`string`,`"wrapper" must be true, false, or one of "${Object.keys(internals$5.guidBrackets).filter(Boolean).join(`", "`)}"`);let versionNumbers=``;if(options.version){let versions=[].concat(options.version);assert$5(versions.length>=1,`version must have at least 1 valid version specified`);let set=new Set;for(let i$4=0;i$4<versions.length;++i$4){let version$3=versions[i$4];assert$5(typeof version$3==`string`,`version at position `+i$4+` must be a string`);let versionNumber=internals$5.guidVersions[version$3.toLowerCase()];assert$5(versionNumber,`version at position `+i$4+` must be one of `+Object.keys(internals$5.guidVersions).join(`, `)),assert$5(!set.has(versionNumber),`version at position `+i$4+` must not be a duplicate`),versionNumbers+=versionNumber,set.add(versionNumber)}}assert$5(internals$5.guidSeparators.has(options.separator),`separator must be one of true, false, "-", or ":"`);let separator=options.separator===void 0?`[:-]?`:options.separator===!0?`[:-]`:options.separator===!1?`[]?`:`\\${options.separator}`,wrapperStart,wrapperEnd;options.wrapper===void 0?(wrapperStart=`[\\[{\\(]?`,wrapperEnd=`[\\]}\\)]?`):options.wrapper===!0?(wrapperStart=`[\\[{\\(]`,wrapperEnd=`[\\]}\\)]`):options.wrapper===!1?(wrapperStart=``,wrapperEnd=``):(wrapperStart=escapeRegex(options.wrapper),wrapperEnd=escapeRegex(internals$5.guidBrackets[options.wrapper]));let regex=RegExp(`^(${wrapperStart})[0-9A-F]{8}(${separator})[0-9A-F]{4}\\2?[${versionNumbers||`0-9A-F`}][0-9A-F]{3}\\2?[${versionNumbers?`89AB`:`0-9A-F`}][0-9A-F]{3}\\2?[0-9A-F]{12}(${wrapperEnd})$`,`i`);return this.$_addRule({name:`guid`,args:{options},regex})},validate(value,helpers,args$1,{regex}){let results=regex.exec(value);if(!results)return helpers.error(`string.guid`);let open=results[1],close=results[results.length-1];return(open||close)&&internals$5.guidBrackets[open]!==close?helpers.error(`string.guid`):value}},hex:{method(options={}){return Common$4.assertOptions(options,[`byteAligned`,`prefix`]),options={byteAligned:!1,prefix:!1,...options},assert$5(typeof options.byteAligned==`boolean`,`byteAligned must be boolean`),assert$5(typeof options.prefix==`boolean`||options.prefix===`optional`,`prefix must be boolean or "optional"`),this.$_addRule({name:`hex`,args:{options}})},validate(value,helpers,{options}){let re$5=options.prefix===`optional`?internals$5.hexRegex.withOptionalPrefix:options.prefix===!0?internals$5.hexRegex.withPrefix:internals$5.hexRegex.withoutPrefix;return re$5.test(value)?options.byteAligned&&value.length%2!=0?helpers.error(`string.hexAlign`):value:helpers.error(`string.hex`)}},hostname:{method(){return this.$_addRule(`hostname`)},validate(value,helpers){return isDomainValid(value,{minDomainSegments:1})||internals$5.ipRegex.test(value)?value:helpers.error(`string.hostname`)}},insensitive:{method(){return this.$_setFlag(`insensitive`,!0)}},ip:{method(options={}){Common$4.assertOptions(options,[`cidr`,`version`]);let{cidr,versions,regex}=ipRegex(options),version$3=options.version?versions:void 0;return this.$_addRule({name:`ip`,args:{options:{cidr,version:version$3}},regex})},validate(value,helpers,{options},{regex}){return regex.test(value)?value:options.version?helpers.error(`string.ipVersion`,{value,cidr:options.cidr,version:options.version}):helpers.error(`string.ip`,{value,cidr:options.cidr})}},isoDate:{method(){return this.$_addRule(`isoDate`)},validate(value,{error}){return internals$5.isoDate(value)?value:error(`string.isoDate`)}},isoDuration:{method(){return this.$_addRule(`isoDuration`)},validate(value,helpers){return internals$5.isoDurationRegex.test(value)?value:helpers.error(`string.isoDuration`)}},length:{method(limit,encoding){return internals$5.length(this,`length`,limit,`=`,encoding)},validate(value,helpers,{limit,encoding},{name:name$1,operator,args:args$1}){let length=encoding?Buffer$1&&Buffer$1.byteLength(value,encoding):value.length;return Common$4.compare(length,limit,operator)?value:helpers.error(`string.`+name$1,{limit:args$1.limit,value,encoding})},args:[{name:`limit`,ref:!0,assert:Common$4.limit,message:`must be a positive integer`},`encoding`]},lowercase:{method(){return this.case(`lower`)}},max:{method(limit,encoding){return internals$5.length(this,`max`,limit,`<=`,encoding)},args:[`limit`,`encoding`]},min:{method(limit,encoding){return internals$5.length(this,`min`,limit,`>=`,encoding)},args:[`limit`,`encoding`]},normalize:{method(form=`NFC`){return assert$5(internals$5.normalizationForms.includes(form),`normalization form must be one of `+internals$5.normalizationForms.join(`, `)),this.$_addRule({name:`normalize`,args:{form}})},validate(value,{error},{form}){return value===value.normalize(form)?value:error(`string.normalize`,{value,form})},convert:!0},pattern:{alias:`regex`,method(regex,options={}){assert$5(regex instanceof RegExp,`regex must be a RegExp`),assert$5(!regex.flags.includes(`g`)&&!regex.flags.includes(`y`),`regex should not use global or sticky mode`),typeof options==`string`&&(options={name:options}),Common$4.assertOptions(options,[`invert`,`name`]);let errorCode$1=[`string.pattern`,options.invert?`.invert`:``,options.name?`.name`:`.base`].join(``);return this.$_addRule({name:`pattern`,args:{regex,options},errorCode:errorCode$1})},validate(value,helpers,{regex,options},{errorCode:errorCode$1}){let patternMatch=regex.test(value);return patternMatch^options.invert?value:helpers.error(errorCode$1,{name:options.name,regex,value})},args:[`regex`,`options`],multi:!0},replace:{method(pattern,replacement){typeof pattern==`string`&&(pattern=new RegExp(escapeRegex(pattern),`g`)),assert$5(pattern instanceof RegExp,`pattern must be a RegExp`),assert$5(typeof replacement==`string`,`replacement must be a String`);let obj=this.clone();return obj.$_terms.replacements||(obj.$_terms.replacements=[]),obj.$_terms.replacements.push({pattern,replacement}),obj}},token:{method(){return this.$_addRule(`token`)},validate(value,helpers){return/^\w+$/.test(value)?value:helpers.error(`string.token`)}},trim:{method(enabled=!0){return assert$5(typeof enabled==`boolean`,`enabled must be a boolean`),this.$_addRule({name:`trim`,args:{enabled}})},validate(value,helpers,{enabled}){return!enabled||value===value.trim()?value:helpers.error(`string.trim`)},convert:!0},truncate:{method(enabled=!0){return assert$5(typeof enabled==`boolean`,`enabled must be a boolean`),this.$_setFlag(`truncate`,enabled)}},uppercase:{method(){return this.case(`upper`)}},uri:{method(options={}){Common$4.assertOptions(options,[`allowRelative`,`allowQuerySquareBrackets`,`domain`,`relativeOnly`,`scheme`,`encodeUri`]),options.domain&&Common$4.assertOptions(options.domain,[`allowFullyQualified`,`allowUnicode`,`maxDomainSegments`,`minDomainSegments`,`tlds`]);let{regex,scheme}=uriRegex(options),domain=options.domain?internals$5.addressOptions(options.domain):null;return this.$_addRule({name:`uri`,args:{options},regex,domain,scheme})},validate(value,helpers,{options},{regex,domain,scheme}){if([`http:/`,`https:/`].includes(value))return helpers.error(`string.uri`);let match$2=regex.exec(value);if(!match$2&&helpers.prefs.convert&&options.encodeUri){let encoded=encodeURI(value);match$2=regex.exec(encoded),match$2&&(value=encoded)}if(match$2){let matched=match$2[1]||match$2[2];return domain&&(!options.allowRelative||matched)&&!isDomainValid(matched,domain)?helpers.error(`string.domain`,{value:matched}):value}return options.relativeOnly?helpers.error(`string.uriRelativeOnly`):options.scheme?helpers.error(`string.uriCustomScheme`,{scheme,value}):helpers.error(`string.uri`)}}},manifest:{build(obj,desc$1){if(desc$1.replacements)for(let{pattern,replacement}of desc$1.replacements)obj=obj.replace(pattern,replacement);return obj}},messages:{"string.alphanum":`{{#label}} must only contain alpha-numeric characters`,"string.base":`{{#label}} must be a string`,"string.base64":`{{#label}} must be a valid base64 string`,"string.creditCard":`{{#label}} must be a credit card`,"string.dataUri":`{{#label}} must be a valid dataUri string`,"string.domain":`{{#label}} must contain a valid domain name`,"string.email":`{{#label}} must be a valid email`,"string.empty":`{{#label}} is not allowed to be empty`,"string.guid":`{{#label}} must be a valid GUID`,"string.hex":`{{#label}} must only contain hexadecimal characters`,"string.hexAlign":`{{#label}} hex decoded representation must be byte aligned`,"string.hostname":`{{#label}} must be a valid hostname`,"string.ip":`{{#label}} must be a valid ip address with a {{#cidr}} CIDR`,"string.ipVersion":`{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR`,"string.isoDate":`{{#label}} must be in iso format`,"string.isoDuration":`{{#label}} must be a valid ISO 8601 duration`,"string.length":`{{#label}} length must be {{#limit}} characters long`,"string.lowercase":`{{#label}} must only contain lowercase characters`,"string.max":`{{#label}} length must be less than or equal to {{#limit}} characters long`,"string.min":`{{#label}} length must be at least {{#limit}} characters long`,"string.normalize":`{{#label}} must be unicode normalized in the {{#form}} form`,"string.token":`{{#label}} must only contain alpha-numeric and underscore characters`,"string.pattern.base":`{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}`,"string.pattern.name":`{{#label}} with value {:[.]} fails to match the {{#name}} pattern`,"string.pattern.invert.base":`{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}`,"string.pattern.invert.name":`{{#label}} with value {:[.]} matches the inverted {{#name}} pattern`,"string.trim":`{{#label}} must not have leading or trailing whitespace`,"string.uri":`{{#label}} must be a valid uri`,"string.uriCustomScheme":`{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern`,"string.uriRelativeOnly":`{{#label}} must be a valid relative uri`,"string.uppercase":`{{#label}} must only contain uppercase characters`}}),internals$5.addressOptions=function(options){if(!options)return internals$5.tlds||options;if(assert$5(options.minDomainSegments===void 0||Number.isSafeInteger(options.minDomainSegments)&&options.minDomainSegments>0,`minDomainSegments must be a positive integer`),assert$5(options.maxDomainSegments===void 0||Number.isSafeInteger(options.maxDomainSegments)&&options.maxDomainSegments>0,`maxDomainSegments must be a positive integer`),options.tlds===!1)return options;if(options.tlds===!0||options.tlds===void 0)return assert$5(internals$5.tlds,`Built-in TLD list disabled`),Object.assign({},options,internals$5.tlds);assert$5(typeof options.tlds==`object`,`tlds must be true, false, or an object`);let deny=options.tlds.deny;if(deny)return Array.isArray(deny)&&(options=Object.assign({},options,{tlds:{deny:new Set(deny)}})),assert$5(options.tlds.deny instanceof Set,`tlds.deny must be an array, Set, or boolean`),assert$5(!options.tlds.allow,`Cannot specify both tlds.allow and tlds.deny lists`),internals$5.validateTlds(options.tlds.deny,`tlds.deny`),options;let allow=options.tlds.allow;return allow?allow===!0?(assert$5(internals$5.tlds,`Built-in TLD list disabled`),Object.assign({},options,internals$5.tlds)):(Array.isArray(allow)&&(options=Object.assign({},options,{tlds:{allow:new Set(allow)}})),assert$5(options.tlds.allow instanceof Set,`tlds.allow must be an array, Set, or boolean`),internals$5.validateTlds(options.tlds.allow,`tlds.allow`),options):{...options,tlds:!1}},internals$5.validateTlds=function(set,source){for(let tld of set)assert$5(isDomainValid(tld,{minDomainSegments:1,maxDomainSegments:1}),`${source} must contain valid top level domain names`)},internals$5.isoDate=function(value){if(!Common$4.isIsoDate(value))return null;/.*T.*[+-]\d\d$/.test(value)&&(value+=`00`);let date=new Date(value);return isNaN(date.getTime())?null:date.toISOString()},internals$5.length=function(schema,name$1,limit,operator,encoding){return assert$5(!encoding||Buffer$1&&Buffer$1.isEncoding(encoding),`Invalid encoding:`,encoding),schema.$_addRule({name:name$1,method:`length`,args:{limit,encoding},operator})}}),require_symbol=__commonJSMin((exports,module)=>{let{assert:assert$4}=require_lib$4(),Any$1=require_any(),internals$4={};internals$4.Map=class extends Map{slice(){return new internals$4.Map(this)}},module.exports=Any$1.extend({type:`symbol`,terms:{map:{init:new internals$4.Map}},coerce:{method(value,{schema,error}){let lookup$2=schema.$_terms.map.get(value);return lookup$2&&(value=lookup$2),!schema._flags.only||typeof value==`symbol`?{value}:{value,errors:error(`symbol.map`,{map:schema.$_terms.map})}}},validate(value,{error}){if(typeof value!=`symbol`)return{value,errors:error(`symbol.base`)}},rules:{map:{method(iterable){iterable&&!iterable[Symbol.iterator]&&typeof iterable==`object`&&(iterable=Object.entries(iterable)),assert$4(iterable&&iterable[Symbol.iterator],`Iterable must be an iterable or object`);let obj=this.clone(),symbols=[];for(let entry of iterable){assert$4(entry&&entry[Symbol.iterator],`Entry must be an iterable`);let[key,value]=entry;assert$4(typeof key!=`object`&&typeof key!=`function`&&typeof key!=`symbol`,`Key must not be of type object, function, or Symbol`),assert$4(typeof value==`symbol`,`Value must be a Symbol`),obj.$_terms.map.set(key,value),symbols.push(value)}return obj.valid(...symbols)}}},manifest:{build(obj,desc$1){return desc$1.map&&(obj=obj.map(desc$1.map)),obj}},messages:{"symbol.base":`{{#label}} must be a symbol`,"symbol.map":`{{#label}} must be one of {{#map}}`}})}),require_binary=__commonJSMin((exports,module)=>{init_dist$1();let{assert:assert$3}=require_lib$4(),Any=require_any(),Common$3=require_common();module.exports=Any.extend({type:`binary`,coerce:{from:[`string`,`object`],method(value,{schema}){if(typeof value==`string`||value!==null&&value.type===`Buffer`)try{return{value:Buffer$1.from(value,schema._flags.encoding)}}catch{}}},validate(value,{error}){if(!Buffer$1.isBuffer(value))return{value,errors:error(`binary.base`)}},rules:{encoding:{method(encoding){return assert$3(Buffer$1.isEncoding(encoding),`Invalid encoding:`,encoding),this.$_setFlag(`encoding`,encoding)}},length:{method(limit){return this.$_addRule({name:`length`,method:`length`,args:{limit},operator:`=`})},validate(value,helpers,{limit},{name:name$1,operator,args:args$1}){return Common$3.compare(value.length,limit,operator)?value:helpers.error(`binary.`+name$1,{limit:args$1.limit,value})},args:[{name:`limit`,ref:!0,assert:Common$3.limit,message:`must be a positive integer`}]},max:{method(limit){return this.$_addRule({name:`max`,method:`length`,args:{limit},operator:`<=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`length`,args:{limit},operator:`>=`})}}},cast:{string:{from:value=>Buffer$1.isBuffer(value),to(value,helpers){return value.toString()}}},messages:{"binary.base":`{{#label}} must be a buffer or a string`,"binary.length":`{{#label}} must be {{#limit}} bytes`,"binary.max":`{{#label}} must be less than or equal to {{#limit}} bytes`,"binary.min":`{{#label}} must be at least {{#limit}} bytes`}})}),require_lib=__commonJSMin((exports,module)=>{init_dist$1();let{assert:assert$2,clone:clone$5}=require_lib$4(),Cache$1=require_cache(),Common$2=require_common(),Compile$1=require_compile(),Errors$1=require_errors(),Extend$1=require_extend(),Manifest$1=require_manifest(),Ref$1=require_ref(),Template$2=require_template(),Trace$1=require_trace(),Schemas$2,internals$3={types:{alternatives:require_alternatives(),any:require_any(),array:require_array(),boolean:require_boolean(),date:require_date(),function:require_function(),link:require_link(),number:require_number(),object:require_object(),string:require_string(),symbol:require_symbol()},aliases:{alt:`alternatives`,bool:`boolean`,func:`function`}};Buffer$1&&(internals$3.types.binary=require_binary()),internals$3.root=function(){let root={_types:new Set(Object.keys(internals$3.types))};for(let type of root._types)root[type]=function(...args$1){return assert$2(!args$1.length||[`alternatives`,`link`,`object`].includes(type),`The`,type,`type does not allow arguments`),internals$3.generate(this,internals$3.types[type],args$1)};for(let method of[`allow`,`custom`,`disallow`,`equal`,`exist`,`forbidden`,`invalid`,`not`,`only`,`optional`,`options`,`prefs`,`preferences`,`required`,`strip`,`valid`,`when`])root[method]=function(...args$1){return this.any()[method](...args$1)};for(let alias in Object.assign(root,internals$3.methods),internals$3.aliases){let target=internals$3.aliases[alias];root[alias]=root[target]}return root.x=root.expression,Trace$1.setup&&Trace$1.setup(root),root},internals$3.methods={ValidationError:Errors$1.ValidationError,version:Common$2.version,cache:Cache$1.provider,assert(value,schema,...args$1){internals$3.assert(value,schema,!0,args$1)},attempt(value,schema,...args$1){return internals$3.assert(value,schema,!1,args$1)},build(desc$1){return assert$2(typeof Manifest$1.build==`function`,`Manifest functionality disabled`),Manifest$1.build(this,desc$1)},checkPreferences(prefs){Common$2.checkPreferences(prefs)},compile(schema,options){return Compile$1.compile(this,schema,options)},defaults(modifier){assert$2(typeof modifier==`function`,`modifier must be a function`);let joi=Object.assign({},this);for(let type of joi._types){let schema=modifier(joi[type]());assert$2(Common$2.isSchema(schema),`modifier must return a valid schema object`),joi[type]=function(...args$1){return internals$3.generate(this,schema,args$1)}}return joi},expression(...args$1){return new Template$2(...args$1)},extend(...extensions){Common$2.verifyFlat(extensions,`extend`),Schemas$2||=require_schemas(),assert$2(extensions.length,`You need to provide at least one extension`),this.assert(extensions,Schemas$2.extensions);let joi=Object.assign({},this);joi._types=new Set(joi._types);for(let extension of extensions){typeof extension==`function`&&(extension=extension(joi)),this.assert(extension,Schemas$2.extension);let expanded=internals$3.expandExtension(extension,joi);for(let item of expanded){assert$2(joi[item.type]===void 0||joi._types.has(item.type),`Cannot override name`,item.type);let base=item.base||this.any(),schema=Extend$1.type(base,item);joi._types.add(item.type),joi[item.type]=function(...args$1){return internals$3.generate(this,schema,args$1)}}}return joi},isError:Errors$1.ValidationError.isError,isExpression:Template$2.isTemplate,isRef:Ref$1.isRef,isSchema:Common$2.isSchema,in(...args$1){return Ref$1.in(...args$1)},override:Common$2.symbols.override,ref(...args$1){return Ref$1.create(...args$1)},types(){let types$1={};for(let type of this._types)types$1[type]=this[type]();for(let target in internals$3.aliases)types$1[target]=this[target]();return types$1}},internals$3.assert=function(value,schema,annotate,args$1){let message=args$1[0]instanceof Error||typeof args$1[0]==`string`?args$1[0]:null,options=message===null?args$1[0]:args$1[1],result=schema.validate(value,Common$2.preferences({errors:{stack:!0}},options||{})),error=result.error;if(!error)return result.value;if(message instanceof Error)throw message;let display=annotate&&typeof error.annotate==`function`?error.annotate():error.message;throw error instanceof Errors$1.ValidationError||(error=clone$5(error)),error.message=message?`${message} ${display}`:display,error},internals$3.generate=function(root,schema,args$1){return assert$2(root,`Must be invoked on a Joi instance.`),schema.$_root=root,!schema._definition.args||!args$1.length?schema:schema._definition.args(schema,...args$1)},internals$3.expandExtension=function(extension,joi){if(typeof extension.type==`string`)return[extension];let extended=[];for(let type of joi._types)if(extension.type.test(type)){let item=Object.assign({},extension);item.type=type,item.base=joi[type](),extended.push(item)}return extended},module.exports=internals$3.root()}),require_schemas=__commonJSMin(exports=>{let Joi$1=require_lib(),internals$2={};internals$2.wrap=Joi$1.string().min(1).max(2).allow(!1),exports.preferences=Joi$1.object({allowUnknown:Joi$1.boolean(),abortEarly:Joi$1.boolean(),artifacts:Joi$1.boolean(),cache:Joi$1.boolean(),context:Joi$1.object(),convert:Joi$1.boolean(),dateFormat:Joi$1.valid(`date`,`iso`,`string`,`time`,`utc`),debug:Joi$1.boolean(),errors:{escapeHtml:Joi$1.boolean(),label:Joi$1.valid(`path`,`key`,!1),language:[Joi$1.string(),Joi$1.object().ref()],render:Joi$1.boolean(),stack:Joi$1.boolean(),wrap:{label:internals$2.wrap,array:internals$2.wrap,string:internals$2.wrap}},externals:Joi$1.boolean(),messages:Joi$1.object(),noDefaults:Joi$1.boolean(),nonEnumerables:Joi$1.boolean(),presence:Joi$1.valid(`required`,`optional`,`forbidden`),skipFunctions:Joi$1.boolean(),stripUnknown:Joi$1.object({arrays:Joi$1.boolean(),objects:Joi$1.boolean()}).or(`arrays`,`objects`).allow(!0,!1),warnings:Joi$1.boolean()}).strict(),internals$2.nameRx=/^[a-zA-Z0-9]\w*$/,internals$2.rule=Joi$1.object({alias:Joi$1.array().items(Joi$1.string().pattern(internals$2.nameRx)).single(),args:Joi$1.array().items(Joi$1.string(),Joi$1.object({name:Joi$1.string().pattern(internals$2.nameRx).required(),ref:Joi$1.boolean(),assert:Joi$1.alternatives([Joi$1.function(),Joi$1.object().schema()]).conditional(`ref`,{is:!0,then:Joi$1.required()}),normalize:Joi$1.function(),message:Joi$1.string().when(`assert`,{is:Joi$1.function(),then:Joi$1.required()})})),convert:Joi$1.boolean(),manifest:Joi$1.boolean(),method:Joi$1.function().allow(!1),multi:Joi$1.boolean(),validate:Joi$1.function()}),exports.extension=Joi$1.object({type:Joi$1.alternatives([Joi$1.string(),Joi$1.object().regex()]).required(),args:Joi$1.function(),cast:Joi$1.object().pattern(internals$2.nameRx,Joi$1.object({from:Joi$1.function().maxArity(1).required(),to:Joi$1.function().minArity(1).maxArity(2).required()})),base:Joi$1.object().schema().when(`type`,{is:Joi$1.object().regex(),then:Joi$1.forbidden()}),coerce:[Joi$1.function().maxArity(3),Joi$1.object({method:Joi$1.function().maxArity(3).required(),from:Joi$1.array().items(Joi$1.string()).single()})],flags:Joi$1.object().pattern(internals$2.nameRx,Joi$1.object({setter:Joi$1.string(),default:Joi$1.any()})),manifest:{build:Joi$1.function().arity(2)},messages:[Joi$1.object(),Joi$1.string()],modifiers:Joi$1.object().pattern(internals$2.nameRx,Joi$1.function().minArity(1).maxArity(2)),overrides:Joi$1.object().pattern(internals$2.nameRx,Joi$1.function()),prepare:Joi$1.function().maxArity(3),rebuild:Joi$1.function().arity(1),rules:Joi$1.object().pattern(internals$2.nameRx,internals$2.rule),terms:Joi$1.object().pattern(internals$2.nameRx,Joi$1.object({init:Joi$1.array().allow(null).required(),manifest:Joi$1.object().pattern(/.+/,[Joi$1.valid(`schema`,`single`),Joi$1.object({mapped:Joi$1.object({from:Joi$1.string().required(),to:Joi$1.string().required()}).required()})])})),validate:Joi$1.function().maxArity(3)}).strict(),exports.extensions=Joi$1.array().items(Joi$1.object(),Joi$1.function().arity(1)).strict(),internals$2.desc={buffer:Joi$1.object({buffer:Joi$1.string()}),func:Joi$1.object({function:Joi$1.function().required(),options:{literal:!0}}),override:Joi$1.object({override:!0}),ref:Joi$1.object({ref:Joi$1.object({type:Joi$1.valid(`value`,`global`,`local`),path:Joi$1.array().required(),separator:Joi$1.string().length(1).allow(!1),ancestor:Joi$1.number().min(0).integer().allow(`root`),map:Joi$1.array().items(Joi$1.array().length(2)).min(1),adjust:Joi$1.function(),iterables:Joi$1.boolean(),in:Joi$1.boolean(),render:Joi$1.boolean()}).required()}),regex:Joi$1.object({regex:Joi$1.string().min(3)}),special:Joi$1.object({special:Joi$1.valid(`deep`).required()}),template:Joi$1.object({template:Joi$1.string().required(),options:Joi$1.object()}),value:Joi$1.object({value:Joi$1.alternatives([Joi$1.object(),Joi$1.array()]).required()})},internals$2.desc.entity=Joi$1.alternatives([Joi$1.array().items(Joi$1.link(`...`)),Joi$1.boolean(),Joi$1.function(),Joi$1.number(),Joi$1.string(),internals$2.desc.buffer,internals$2.desc.func,internals$2.desc.ref,internals$2.desc.regex,internals$2.desc.special,internals$2.desc.template,internals$2.desc.value,Joi$1.link(`/`)]),internals$2.desc.values=Joi$1.array().items(null,Joi$1.boolean(),Joi$1.function(),Joi$1.number().allow(1/0,-1/0),Joi$1.string().allow(``),Joi$1.symbol(),internals$2.desc.buffer,internals$2.desc.func,internals$2.desc.override,internals$2.desc.ref,internals$2.desc.regex,internals$2.desc.template,internals$2.desc.value),internals$2.desc.messages=Joi$1.object().pattern(/.+/,[Joi$1.string(),internals$2.desc.template,Joi$1.object().pattern(/.+/,[Joi$1.string(),internals$2.desc.template])]),exports.description=Joi$1.object({type:Joi$1.string().required(),flags:Joi$1.object({cast:Joi$1.string(),default:Joi$1.any(),description:Joi$1.string(),empty:Joi$1.link(`/`),failover:internals$2.desc.entity,id:Joi$1.string(),label:Joi$1.string(),only:!0,presence:[`optional`,`required`,`forbidden`],result:[`raw`,`strip`],strip:Joi$1.boolean(),unit:Joi$1.string()}).unknown(),preferences:{allowUnknown:Joi$1.boolean(),abortEarly:Joi$1.boolean(),artifacts:Joi$1.boolean(),cache:Joi$1.boolean(),convert:Joi$1.boolean(),dateFormat:[`date`,`iso`,`string`,`time`,`utc`],errors:{escapeHtml:Joi$1.boolean(),label:[`path`,`key`],language:[Joi$1.string(),internals$2.desc.ref],wrap:{label:internals$2.wrap,array:internals$2.wrap}},externals:Joi$1.boolean(),messages:internals$2.desc.messages,noDefaults:Joi$1.boolean(),nonEnumerables:Joi$1.boolean(),presence:[`required`,`optional`,`forbidden`],skipFunctions:Joi$1.boolean(),stripUnknown:Joi$1.object({arrays:Joi$1.boolean(),objects:Joi$1.boolean()}).or(`arrays`,`objects`).allow(!0,!1),warnings:Joi$1.boolean()},allow:internals$2.desc.values,invalid:internals$2.desc.values,rules:Joi$1.array().min(1).items({name:Joi$1.string().required(),args:Joi$1.object().min(1),keep:Joi$1.boolean(),message:[Joi$1.string(),internals$2.desc.messages],warn:Joi$1.boolean()}),keys:Joi$1.object().pattern(/.*/,Joi$1.link(`/`)),link:internals$2.desc.ref}).pattern(/^[a-z]\w*$/,Joi$1.any())}),require_common=__commonJSMin(exports=>{let{assert:Assert,AssertError}=require_lib$4(),Pkg=(init_package(),__toCommonJS(package_exports).default),Messages$1,Schemas$1,internals$1={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};exports.version=Pkg.version,exports.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:`iso`,errors:{escapeHtml:!1,label:`path`,language:null,render:!0,stack:!1,wrap:{label:`"`,array:`[]`}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:`optional`,skipFunctions:!1,stripUnknown:!1,warnings:!1},exports.symbols={any:Symbol.for(`@hapi/joi/schema`),arraySingle:Symbol(`arraySingle`),deepDefault:Symbol(`deepDefault`),errors:Symbol(`errors`),literal:Symbol(`literal`),override:Symbol(`override`),parent:Symbol(`parent`),prefs:Symbol(`prefs`),ref:Symbol(`ref`),template:Symbol(`template`),values:Symbol(`values`)},exports.assertOptions=function(options,keys,name$1=`Options`){Assert(options&&typeof options==`object`&&!Array.isArray(options),`Options must be of type object`);let unknownKeys=Object.keys(options).filter(k=>!keys.includes(k));Assert(unknownKeys.length===0,`${name$1} contain unknown keys: ${unknownKeys}`)},exports.checkPreferences=function(prefs){Schemas$1||=require_schemas();let result=Schemas$1.preferences.validate(prefs);if(result.error)throw new AssertError([result.error.details[0].message])},exports.compare=function(a,b,operator){switch(operator){case`=`:return a===b;case`>`:return a>b;case`<`:return a<b;case`>=`:return a>=b;case`<=`:return a<=b}},exports.default=function(value,defaultValue){return value===void 0?defaultValue:value},exports.isIsoDate=function(date){return internals$1.isoDate.test(date)},exports.isNumber=function(value){return typeof value==`number`&&!isNaN(value)},exports.isResolvable=function(obj){return obj?obj[exports.symbols.ref]||obj[exports.symbols.template]:!1},exports.isSchema=function(schema,options={}){let any=schema&&schema[exports.symbols.any];return any?(Assert(options.legacy||any.version===exports.version,`Cannot mix different versions of joi schemas`),!0):!1},exports.isValues=function(obj){return obj[exports.symbols.values]},exports.limit=function(value){return Number.isSafeInteger(value)&&value>=0},exports.preferences=function(target,source){Messages$1||=require_messages(),target||={},source||={};let merged=Object.assign({},target,source);return source.errors&&target.errors&&(merged.errors=Object.assign({},target.errors,source.errors),merged.errors.wrap=Object.assign({},target.errors.wrap,source.errors.wrap)),source.messages&&(merged.messages=Messages$1.compile(source.messages,target.messages)),delete merged[exports.symbols.prefs],merged},exports.tryWithPath=function(fn$1,key,options={}){try{return fn$1()}catch(err$1){throw err$1.path===void 0?err$1.path=key:err$1.path=key+`.`+err$1.path,options.append&&(err$1.message=`${err$1.message} (${err$1.path})`),err$1}},exports.validateArg=function(value,label,{assert:assert$30,message}){if(exports.isSchema(assert$30)){let result=assert$30.validate(value);return result.error?result.error.message:void 0}else if(!assert$30(value))return label?`${label} ${message}`:message},exports.verifyFlat=function(args$1,method){for(let arg of args$1)Assert(!Array.isArray(arg),`Method no longer accepts array arguments:`,method)}}),require_ref=__commonJSMin(exports=>{let{assert:assert$1,clone:clone$4,reach}=require_lib$4(),Common$1=require_common(),Template$1,internals={symbol:Symbol(`ref`),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:`.`,type:`value`}};exports.create=function(key,options={}){assert$1(typeof key==`string`,`Invalid reference key:`,key),Common$1.assertOptions(options,[`adjust`,`ancestor`,`in`,`iterables`,`map`,`prefix`,`render`,`separator`]),assert$1(!options.prefix||typeof options.prefix==`object`,`options.prefix must be of type object`);let ref=Object.assign({},internals.defaults,options);delete ref.prefix;let separator=ref.separator,context=internals.context(key,separator,options.prefix);if(ref.type=context.type,key=context.key,ref.type===`value`)if(context.root&&(assert$1(!separator||key[0]!==separator,`Cannot specify relative path with root prefix`),ref.ancestor=`root`,key||=null),separator&&separator===key)key=null,ref.ancestor=0;else if(ref.ancestor!==void 0)assert$1(!separator||!key||key[0]!==separator,`Cannot combine prefix with ancestor option`);else{let[ancestor,slice]=internals.ancestor(key,separator);slice&&(key=key.slice(slice),key===``&&(key=null)),ref.ancestor=ancestor}return ref.path=separator?key===null?[]:key.split(separator):[key],new internals.Ref(ref)},exports.in=function(key,options={}){return exports.create(key,{...options,in:!0})},exports.isRef=function(ref){return ref?!!ref[Common$1.symbols.ref]:!1},internals.Ref=class{constructor(options){assert$1(typeof options==`object`,`Invalid reference construction`),Common$1.assertOptions(options,[`adjust`,`ancestor`,`in`,`iterables`,`map`,`path`,`render`,`separator`,`type`,`depth`,`key`,`root`,`display`]),assert$1([!1,void 0].includes(options.separator)||typeof options.separator==`string`&&options.separator.length===1,`Invalid separator`),assert$1(!options.adjust||typeof options.adjust==`function`,`options.adjust must be a function`),assert$1(!options.map||Array.isArray(options.map),`options.map must be an array`),assert$1(!options.map||!options.adjust,`Cannot set both map and adjust options`),Object.assign(this,internals.defaults,options),assert$1(this.type===`value`||this.ancestor===void 0,`Non-value references cannot reference ancestors`),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(value,state,prefs,local,options={}){return assert$1(!this.in||options.in,`Invalid in() reference usage`),this.type===`global`?this._resolve(prefs.context,state,options):this.type===`local`?this._resolve(local,state,options):this.ancestor?this.ancestor===`root`?this._resolve(state.ancestors[state.ancestors.length-1],state,options):(assert$1(this.ancestor<=state.ancestors.length,`Invalid reference exceeds the schema root:`,this.display),this._resolve(state.ancestors[this.ancestor-1],state,options)):this._resolve(value,state,options)}_resolve(target,state,options){let resolved;if(this.type===`value`&&state.mainstay.shadow&&options.shadow!==!1&&(resolved=state.mainstay.shadow.get(this.absolute(state))),resolved===void 0&&(resolved=reach(target,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(resolved=this.adjust(resolved)),this.map){let mapped=this.map.get(resolved);mapped!==void 0&&(resolved=mapped)}return state.mainstay&&state.mainstay.tracer.resolve(state,this,resolved),resolved}toString(){return this.display}absolute(state){return[...state.path.slice(0,-this.ancestor),...this.path]}clone(){return new internals.Ref(this)}describe(){let ref={path:this.path};this.type!==`value`&&(ref.type=this.type),this.separator!==`.`&&(ref.separator=this.separator),this.type===`value`&&this.ancestor!==1&&(ref.ancestor=this.ancestor),this.map&&(ref.map=[...this.map]);for(let key of[`adjust`,`iterables`,`render`])this[key]!==null&&this[key]!==void 0&&(ref[key]=this[key]);return this.in!==!1&&(ref.in=!0),{ref}}updateDisplay(){let key=this.key===null?``:this.key;if(this.type!==`value`){this.display=`ref:${this.type}:${key}`;return}if(!this.separator){this.display=`ref:${key}`;return}if(!this.ancestor){this.display=`ref:${this.separator}${key}`;return}if(this.ancestor===`root`){this.display=`ref:root:${key}`;return}if(this.ancestor===1){this.display=`ref:${key||`..`}`;return}let lead=Array(this.ancestor+1).fill(this.separator).join(``);this.display=`ref:${lead}${key||``}`}},internals.Ref.prototype[Common$1.symbols.ref]=!0,exports.build=function(desc$1){return desc$1=Object.assign({},internals.defaults,desc$1),desc$1.type===`value`&&desc$1.ancestor===void 0&&(desc$1.ancestor=1),new internals.Ref(desc$1)},internals.context=function(key,separator,prefix={}){if(key=key.trim(),prefix){let globalp=prefix.global===void 0?`$`:prefix.global;if(globalp!==separator&&key.startsWith(globalp))return{key:key.slice(globalp.length),type:`global`};let local=prefix.local===void 0?`#`:prefix.local;if(local!==separator&&key.startsWith(local))return{key:key.slice(local.length),type:`local`};let root=prefix.root===void 0?`/`:prefix.root;if(root!==separator&&key.startsWith(root))return{key:key.slice(root.length),type:`value`,root:!0}}return{key,type:`value`}},internals.ancestor=function(key,separator){if(!separator||key[0]!==separator)return[1,0];if(key[1]!==separator)return[0,1];let i$4=2;for(;key[i$4]===separator;)++i$4;return[i$4-1,i$4]},exports.toSibling=0,exports.toParent=1,exports.Manager=class{constructor(){this.refs=[]}register(source,target){if(source){if(target=target===void 0?exports.toParent:target,Array.isArray(source)){for(let ref of source)this.register(ref,target);return}if(Common$1.isSchema(source)){for(let item of source._refs.refs)item.ancestor-target>=0&&this.refs.push({ancestor:item.ancestor-target,root:item.root});return}exports.isRef(source)&&source.type===`value`&&source.ancestor-target>=0&&this.refs.push({ancestor:source.ancestor-target,root:source.root}),Template$1||=require_template(),Template$1.isTemplate(source)&&this.register(source.refs(),target)}}get length(){return this.refs.length}clone(){let copy=new exports.Manager;return copy.refs=clone$4(this.refs),copy}reset(){this.refs=[]}roots(){return this.refs.filter(ref=>!ref.ancestor).map(ref=>ref.root)}}});init_lib();var import_ref=__toESM(require_ref()),import_cache=__toESM(require_cache()),import_trace=__toESM(require_trace()),import_common=__toESM(require_common()),import_errors=__toESM(require_errors()),import_extend=__toESM(require_extend()),import_compile=__toESM(require_compile()),import_schemas=__toESM(require_schemas()),import_manifest=__toESM(require_manifest()),import_template=__toESM(require_template()),import_any=__toESM(require_any()),import_date=__toESM(require_date()),import_link=__toESM(require_link()),import_array=__toESM(require_array()),import_number=__toESM(require_number()),import_object=__toESM(require_object()),import_string=__toESM(require_string()),import_symbol=__toESM(require_symbol()),import_binary=__toESM(require_binary()),import_boolean=__toESM(require_boolean()),import_function=__toESM(require_function()),import_alternatives=__toESM(require_alternatives()),RootFactory=class RootFactory{static types={alternatives:import_alternatives.default,any:import_any.default,array:import_array.default,boolean:import_boolean.default,date:import_date.default,function:import_function.default,link:import_link.default,number:import_number.default,object:import_object.default,string:import_string.default,symbol:import_symbol.default,binary:import_binary.default};static aliases={alt:`alternatives`,bool:`boolean`,func:`function`};static assertValue(value,schema,annotate,args$1){let message=args$1[0]instanceof Error||typeof args$1[0]==`string`?args$1[0]:null,options=message===null?args$1[0]:args$1[1],result=schema.validate(value,import_common.preferences({errors:{stack:!0}},options||{})),error=result.error;if(!error)return result.value;if(message instanceof Error)throw message;let display=annotate&&typeof error.annotate==`function`?error.annotate():error.message;throw error instanceof import_errors.ValidationError||(error=(0,import_clone.default)(error)),error.message=message?`${message} ${display}`:display,error}static generate(root,schema,args$1){(0,import_assert.default)(root,`Must be invoked on a Joi instance.`);let cloned=schema.clone();return cloned.$_root=root,!cloned._definition.args||!args$1.length?cloned:cloned._definition.args(cloned,...args$1)}static expandExtension(extension,joi){if(typeof extension.type==`string`)return[extension];let extended=[];for(let type of joi._types)if(extension.type.test(type)){let item={...extension};item.type=type,item.base=joi[type](),extended.push(item)}return extended}static getMethods(){return{ValidationError:import_errors.ValidationError,version:import_common.version,cache:import_cache.provider,assert(value,schema,...args$1){RootFactory.assertValue(value,schema,!0,args$1)},attempt(value,schema,...args$1){return RootFactory.assertValue(value,schema,!1,args$1)},build(desc$1){return(0,import_assert.default)(typeof import_manifest.build==`function`,`Manifest functionality disabled`),import_manifest.build(this,desc$1)},checkPreferences(prefs){import_common.checkPreferences(prefs)},compile(schema,options){return import_compile.compile(this,schema,options)},defaults(modifier){(0,import_assert.default)(typeof modifier==`function`,`modifier must be a function`);let joi={...this};for(let type of joi._types){let schema=modifier(joi[type]());(0,import_assert.default)(import_common.isSchema(schema),`modifier must return a valid schema object`),joi[type]=function(...args$1){return RootFactory.generate(this,schema,args$1)}}return joi},expression(...args$1){return new import_template.default(...args$1)},extend(...extensions){import_common.verifyFlat(extensions,`extend`),(0,import_assert.default)(extensions.length,`You need to provide at least one extension`),this.assert(extensions,import_schemas.extensions);let joi={...this};joi._types=new Set(joi._types);for(let extension of extensions){typeof extension==`function`&&(extension=extension(joi)),this.assert(extension,import_schemas.extension);let expanded=RootFactory.expandExtension(extension,joi);for(let item of expanded){(0,import_assert.default)(joi[item.type]===void 0||joi._types.has(item.type),`Cannot override name`,item.type);let base=item.base||this.any(),schema=import_extend.type(base,item);joi._types.add(item.type),joi[item.type]=function(...args$1){return RootFactory.generate(this,schema,args$1)}}}return joi},isError:import_errors.ValidationError.isError,isExpression:import_template.default.isTemplate,isRef:import_ref.isRef,isSchema:import_common.isSchema,in(...args$1){return import_ref.in(...args$1)},override:import_common.symbols.override,ref(...args$1){return import_ref.create(...args$1)},types(){let result={};for(let type of this._types)result[type]=this[type]();for(let target in RootFactory.aliases)result[target]=this[target]();return result}}}static create(options={}){let instance={_types:new Set(Object.keys(RootFactory.types))};for(let type of instance._types)instance[type]=function(...args$1){(0,import_assert.default)(!args$1.length||[`alternatives`,`link`,`object`].includes(type),`The`,type,`type does not allow arguments`);let schema=RootFactory.types[type];if(options.schemaTypeModifiers?.length){for(let modifier of options.schemaTypeModifiers)schema=modifier(schema,this,args$1);if(type===`link`&&args$1.length&&schema.$_root)return schema}return RootFactory.generate(this,schema,args$1)};let shortcuts=[`allow`,`custom`,`disallow`,`equal`,`exist`,`forbidden`,`invalid`,`not`,`only`,`optional`,`options`,`prefs`,`preferences`,`required`,`strip`,`valid`,`when`];if(options.shortcutsModifiers?.length)for(let modifier of options.shortcutsModifiers)shortcuts=modifier(shortcuts);for(let method of shortcuts)instance[method]=function(...args$1){return this.any()[method](...args$1)};Object.assign(instance,RootFactory.getMethods());for(let[alias,original]of Object.entries(RootFactory.aliases))instance[alias]=instance[original];return instance.x=instance.expression,import_trace.setup&&import_trace.setup(instance),instance}},import_messages=__toESM(require_messages());const knexMessages={"knex.unique":`The {{#label}} has already been taken`,"knex.exists":`The selected {{#label}} is invalid`,"knex.missingConnection":`Database connection not provided for {{#label}}`,"knex.invalidTable":`Invalid table for {{#label}}`,"knex.invalidColumn":`Invalid column for {{#label}}`,"knex.internal":`Database validation error on {{#label}}`},knexClientCache=new WeakMap,isReference$1=(obj,root)=>root.isRef(obj),resolveKnex=connection=>{let db=vitePluginRequire_1761728761605_47468118;if(typeof connection!=`function`&&!(typeof connection==`object`&&connection&&!Array.isArray(connection)))throw Error(`Invalid Knex connection or QueryClientContract instance`);if(typeof connection.getReadClient==`function`)return connection.getReadClient();if(typeof connection.ref==`function`)return connection;if(typeof connection==`object`&&connection&&`client`in connection&&`connection`in connection){let cached=knexClientCache.get(connection);if(cached)return cached;let config={client:connection.client,dialect:connection.dialect,connection:connection.connection,jsonbSupport:connection.jsonbSupport,version:connection.version,postProcessResponse:connection.postProcessResponse,wrapIdentifier:connection.wrapIdentifier,acquireConnectionTimeout:connection.acquireConnectionTimeout,useNullAsDefault:connection.useNullAsDefault,searchPath:connection.searchPath,fetchAsString:connection.fetchAsString,pool:connection.pool},conn=db(config);return knexClientCache.set(connection,conn),conn}throw Error(`Invalid Knex connection or QueryClientContract instance`)},resolveQueryBuilder=(connection,table)=>{let conn=resolveKnex(connection);return{client:conn,query:conn.table(table)}},getMergableMessages=schema=>{if(`_definition`in schema){let def=schema._definition;if(`messages`in def&&def.messages)return typeof def.messages==`string`?{}:def.messages}return{}};function setKnexConnection(connection){this.$_terms!==void 0&&(`keys`in this.$_terms&&this.$_terms.keys!==null&&this.$_terms.keys.forEach((item,index)=>{this.$_terms.keys[index].schema=setKnexConnection.call(item.schema,connection)}),`matches`in this.$_terms&&this.$_terms.matches!==null&&(this.$_terms.matches=this.$_terms.matches.map(match$2=>({...match$2,schema:match$2.schema?setKnexConnection.call(match$2.schema,connection):void 0,switch:match$2.switch?match$2.switch.map(branch=>({is:branch.is?setKnexConnection.call(branch.is,connection):void 0,then:branch.then?setKnexConnection.call(branch.then,connection):void 0,else:branch.else?setKnexConnection.call(branch.else,connection):void 0})):void 0}))),`_exclusions`in this.$_terms&&this.$_terms._exclusions!==null&&(this.$_terms._exclusions=this.$_terms._exclusions.map(exclusion=>setKnexConnection.call(exclusion,connection))),`_inclusions`in this.$_terms&&this.$_terms._inclusions!==null&&(this.$_terms._inclusions=this.$_terms._inclusions.map(inclusion=>setKnexConnection.call(inclusion,connection))),`_requireds`in this.$_terms&&this.$_terms._requireds!==null&&(this.$_terms._requireds=this.$_terms._requireds.map(required=>setKnexConnection.call(required,connection))),`items`in this.$_terms&&this.$_terms.items!==null&&(this.$_terms.items=this.$_terms.items.map(item=>setKnexConnection.call(item,connection))));let toSet=this.$_knex||this.$_getFlag(`knexConnection`)||connection;return this.$_knex=toSet,this.$_setFlag(`knexConnection`,toSet)}function findKnexConnection(){if(this.$_knex)return this.$_knex;let connection=this.$_getFlag?.(`knexConnection`);if(connection)return connection;let current=this;for(;current&&`$_super`in current&&current.$_super;)if(current=current.$_super,connection=current.$_getFlag?.(`knexConnection`),connection)return connection}const knex=(schema,root,args$1)=>{let prototype=Object.getPrototypeOf(schema),originalMessages=getMergableMessages(schema),mergedMessages=import_messages.merge(originalMessages,knexMessages);return prototype._definition.messages=mergedMessages,prototype._definition.flags.knexConnection={default:void 0,setter:`knex`},prototype._definition.flags.knexFunctionArgs={default:{},setter:`setKnexFunctionArgs`},prototype.setKnexFunctionArgs||=function(knexFunctionArgs){return this.$_setFlag(`knexFunctionArgs`,knexFunctionArgs)},prototype.setArgsForFnCall||=function(id,knexFunctionArgs){let currentArgs=this.$_getFlag(`knexFunctionArgs`)||{};return knexFunctionArgs={...currentArgs,[id]:knexFunctionArgs},this.$_setFlag(`knexFunctionArgs`,knexFunctionArgs)},prototype.getArgsForFnCall||=function(id){return this.$_getFlag(`knexFunctionArgs`)[id]},prototype.knex||=function(connection){return setKnexConnection.call(this,connection)},prototype.db||=function(connection){return setKnexConnection.call(this,connection)},prototype.uniqueInDb||=function(table,column,options){let opts={caseInsensitive:!1,filter:()=>{},...options},returnable=this.setArgsForFnCall(`uniqueInDb`,{table,column,options:opts}),connection=findKnexConnection.call(returnable);return returnable.external(async(value,helpers)=>{let{prefs,state,error,schema:localSchema}=helpers;if(!connection&&localSchema._flags&&(connection=localSchema._flags.knexConnection),!connection)return error(`knex.missingConnection`,{value});let{table:tableArg,column:columnArg,options:optsArg}=localSchema.getArgsForFnCall(`uniqueInDb`),resolvedTable=isReference$1(tableArg,localSchema.$_root)?tableArg.resolve(value,state,prefs):tableArg,resolvedColumn=isReference$1(columnArg,localSchema.$_root)?columnArg.resolve(value,state,prefs):columnArg;if(!resolvedTable||typeof resolvedTable!=`string`)return error(`knex.invalidTable`,{value,table:resolvedTable,column:resolvedColumn});if(!resolvedColumn||typeof resolvedColumn!=`string`)return error(`knex.invalidColumn`,{value,table:resolvedTable,column:resolvedColumn});if(value==null)return value;let{client,query}=resolveQueryBuilder(connection,resolvedTable);try{if(query.select(resolvedColumn).limit(1),optsArg.caseInsensitive?query.whereRaw(`lower(${resolvedColumn}) = ?`,[client.raw(`lower(?)`,[value])]):query.where(resolvedColumn,value),optsArg.filter){let{error:errorFn,warn:warnFn,message:messageFn,...safeHelpers}=helpers;await optsArg.filter(query,value,resolvedColumn,safeHelpers)}let row=await query.first();return row?error(`knex.unique`,{value,table:resolvedTable,column:resolvedColumn}):value}catch(err$1){return error(`knex.internal`,{value,table:resolvedTable,column:resolvedColumn,error:err$1})}},`uniqueInDb`)},prototype.existsInDb||=function(table,column,options){let opts={caseInsensitive:!1,filter:()=>{},...options},returnable=this.setArgsForFnCall(`existsInDb`,{table,column,options:opts}),connection=findKnexConnection.call(returnable);return returnable.external(async(value,helpers)=>{let{prefs,state,error,schema:localSchema}=helpers;if(!connection&&localSchema._flags&&(connection=localSchema._flags.knexConnection),!connection)return error(`knex.missingConnection`,{value});let{table:tableArg,column:columnArg,options:optsArg}=localSchema.getArgsForFnCall(`existsInDb`),resolvedTable=isReference$1(tableArg,localSchema.$_root)?tableArg.resolve(value,state,prefs):tableArg,resolvedColumn=isReference$1(columnArg,localSchema.$_root)?columnArg.resolve(value,state,prefs):columnArg;if(!resolvedTable||typeof resolvedTable!=`string`)return error(`knex.invalidTable`,{value,table:resolvedTable,column:resolvedColumn});if(!resolvedColumn||typeof resolvedColumn!=`string`)return error(`knex.invalidColumn`,{value,table:resolvedTable,column:resolvedColumn});if(value==null)return value;let{client,query}=resolveQueryBuilder(connection,resolvedTable);try{if(query.select(resolvedColumn).limit(1),optsArg.caseInsensitive?query.whereRaw(`lower(${resolvedColumn}) = ?`,[client.raw(`lower(?)`,[value])]):query.where(resolvedColumn,value),optsArg.filter){let{error:errorFn,warn:warnFn,message:messageFn,...safeHelpers}=helpers;await optsArg.filter(query,value,resolvedColumn,safeHelpers)}let row=await query.first();return row?value:error(`knex.exists`,{value,table:resolvedTable,column:resolvedColumn})}catch(err$1){return error(`knex.internal`,{value,table:resolvedTable,column:resolvedColumn,error:err$1})}},`existsInDb`)},RootFactory.generate(root,schema,args$1)};var De=t$5=>{throw TypeError(t$5)},Ne=(t$5,o,r)=>o.has(t$5)||De(`Cannot `+r),M=(t$5,o,r)=>(Ne(t$5,o,`read from private field`),r?r.call(t$5):o.get(t$5)),ee=(t$5,o,r)=>o.has(t$5)?De(`Cannot add the same private member more than once`):o instanceof WeakSet?o.add(t$5):o.set(t$5,r),X=(t$5,o,r,u)=>(Ne(t$5,o,`write to private field`),u?u.call(t$5,r):o.set(t$5,r),r),ne=(t$5,o,r)=>(Ne(t$5,o,`access private method`),r),LuxonError$1=class extends Error{},InvalidDateTimeError$1=class extends LuxonError$1{constructor(o){super(`Invalid DateTime: ${o.toMessage()}`)}},InvalidIntervalError$1=class extends LuxonError$1{constructor(o){super(`Invalid Interval: ${o.toMessage()}`)}},InvalidDurationError$1=class extends LuxonError$1{constructor(o){super(`Invalid Duration: ${o.toMessage()}`)}},ConflictingSpecificationError$1=class extends LuxonError$1{},InvalidUnitError$1=class extends LuxonError$1{constructor(o){super(`Invalid unit ${o}`)}},InvalidArgumentError$1=class extends LuxonError$1{},ZoneIsAbstractError$1=class extends LuxonError$1{constructor(){super(`Zone is an abstract class`)}};const n$1=`numeric`,s$1=`short`,l$1=`long`,DATE_SHORT$1={year:n$1,month:n$1,day:n$1},DATE_MED$1={year:n$1,month:s$1,day:n$1},DATE_MED_WITH_WEEKDAY$1={year:n$1,month:s$1,day:n$1,weekday:s$1},DATE_FULL$1={year:n$1,month:l$1,day:n$1},DATE_HUGE$1={year:n$1,month:l$1,day:n$1,weekday:l$1},TIME_SIMPLE$1={hour:n$1,minute:n$1},TIME_WITH_SECONDS$1={hour:n$1,minute:n$1,second:n$1},TIME_WITH_SHORT_OFFSET$1={hour:n$1,minute:n$1,second:n$1,timeZoneName:s$1},TIME_WITH_LONG_OFFSET$1={hour:n$1,minute:n$1,second:n$1,timeZoneName:l$1},TIME_24_SIMPLE$1={hour:n$1,minute:n$1,hourCycle:`h23`},TIME_24_WITH_SECONDS$1={hour:n$1,minute:n$1,second:n$1,hourCycle:`h23`},TIME_24_WITH_SHORT_OFFSET$1={hour:n$1,minute:n$1,second:n$1,hourCycle:`h23`,timeZoneName:s$1},TIME_24_WITH_LONG_OFFSET$1={hour:n$1,minute:n$1,second:n$1,hourCycle:`h23`,timeZoneName:l$1},DATETIME_SHORT$1={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1},DATETIME_SHORT_WITH_SECONDS$1={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED$1={year:n$1,month:s$1,day:n$1,hour:n$1,minute:n$1},DATETIME_MED_WITH_SECONDS$1={year:n$1,month:s$1,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED_WITH_WEEKDAY$1={year:n$1,month:s$1,day:n$1,weekday:s$1,hour:n$1,minute:n$1},DATETIME_FULL$1={year:n$1,month:l$1,day:n$1,hour:n$1,minute:n$1,timeZoneName:s$1},DATETIME_FULL_WITH_SECONDS$1={year:n$1,month:l$1,day:n$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:s$1},DATETIME_HUGE$1={year:n$1,month:l$1,day:n$1,weekday:l$1,hour:n$1,minute:n$1,timeZoneName:l$1},DATETIME_HUGE_WITH_SECONDS$1={year:n$1,month:l$1,day:n$1,weekday:l$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:l$1};var Zone$1=class{get type(){throw new ZoneIsAbstractError$1}get name(){throw new ZoneIsAbstractError$1}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError$1}offsetName(o,r){throw new ZoneIsAbstractError$1}formatOffset(o,r){throw new ZoneIsAbstractError$1}offset(o){throw new ZoneIsAbstractError$1}equals(o){throw new ZoneIsAbstractError$1}get isValid(){throw new ZoneIsAbstractError$1}};let singleton$1$1=null;var SystemZone$1=class SystemZone$1 extends Zone$1{static get instance(){return singleton$1$1===null&&(singleton$1$1=new SystemZone$1),singleton$1$1}get type(){return`system`}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(o,{format:r,locale:u}){return parseZoneInfo$1(o,r,u)}formatOffset(o,r){return formatOffset$1(this.offset(o),r)}offset(o){return-new Date(o).getTimezoneOffset()}equals(o){return o.type===`system`}get isValid(){return!0}};const dtfCache$1=new Map;function makeDTF$1(t$5){let o=dtfCache$1.get(t$5);return o===void 0&&(o=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:t$5,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,era:`short`}),dtfCache$1.set(t$5,o)),o}const typeToPos$1={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset$1(t$5,o){let r=t$5.format(o).replace(/\u200E/g,``),u=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,h,m,y,S,_,C,O]=u;return[y,h,m,S,_,C,O]}function partsOffset$1(t$5,o){let r=t$5.formatToParts(o),u=[];for(let h=0;h<r.length;h++){let{type:m,value:y}=r[h],S=typeToPos$1[m];m===`era`?u[S]=y:isUndefined$1(S)||(u[S]=parseInt(y,10))}return u}const ianaZoneCache$1=new Map;var IANAZone$1=class IANAZone$1 extends Zone$1{static create(o){let r=ianaZoneCache$1.get(o);return r===void 0&&ianaZoneCache$1.set(o,r=new IANAZone$1(o)),r}static resetCache(){ianaZoneCache$1.clear(),dtfCache$1.clear()}static isValidSpecifier(o){return this.isValidZone(o)}static isValidZone(o){if(!o)return!1;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:o}).format(),!0}catch{return!1}}constructor(o){super(),this.zoneName=o,this.valid=IANAZone$1.isValidZone(o)}get type(){return`iana`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(o,{format:r,locale:u}){return parseZoneInfo$1(o,r,u,this.name)}formatOffset(o,r){return formatOffset$1(this.offset(o),r)}offset(o){if(!this.valid)return NaN;let r=new Date(o);if(isNaN(r))return NaN;let u=makeDTF$1(this.name),[h,m,y,S,_,C,O]=u.formatToParts?partsOffset$1(u,r):hackyOffset$1(u,r);S===`BC`&&(h=-Math.abs(h)+1);let R$1=objToLocalTS$1({year:h,month:m,day:y,hour:_===24?0:_,minute:C,second:O,millisecond:0}),U=+r,F=U%1e3;return U-=F>=0?F:1e3+F,(R$1-U)/(60*1e3)}equals(o){return o.type===`iana`&&o.name===this.name}get isValid(){return this.valid}};let intlLFCache$1={};function getCachedLF$1(t$5,o={}){let r=JSON.stringify([t$5,o]),u=intlLFCache$1[r];return u||(u=new Intl.ListFormat(t$5,o),intlLFCache$1[r]=u),u}const intlDTCache$1=new Map;function getCachedDTF$1(t$5,o={}){let r=JSON.stringify([t$5,o]),u=intlDTCache$1.get(r);return u===void 0&&(u=new Intl.DateTimeFormat(t$5,o),intlDTCache$1.set(r,u)),u}const intlNumCache$1=new Map;function getCachedINF$1(t$5,o={}){let r=JSON.stringify([t$5,o]),u=intlNumCache$1.get(r);return u===void 0&&(u=new Intl.NumberFormat(t$5,o),intlNumCache$1.set(r,u)),u}const intlRelCache$1=new Map;function getCachedRTF$1(t$5,o={}){let{base:r,...u}=o,h=JSON.stringify([t$5,u]),m=intlRelCache$1.get(h);return m===void 0&&(m=new Intl.RelativeTimeFormat(t$5,o),intlRelCache$1.set(h,m)),m}let sysLocaleCache$1=null;function systemLocale$1(){return sysLocaleCache$1||(sysLocaleCache$1=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache$1)}const intlResolvedOptionsCache$1=new Map;function getCachedIntResolvedOptions$1(t$5){let o=intlResolvedOptionsCache$1.get(t$5);return o===void 0&&(o=new Intl.DateTimeFormat(t$5).resolvedOptions(),intlResolvedOptionsCache$1.set(t$5,o)),o}const weekInfoCache$1=new Map;function getCachedWeekInfo$1(t$5){let o=weekInfoCache$1.get(t$5);if(!o){let r=new Intl.Locale(t$5);o=`getWeekInfo`in r?r.getWeekInfo():r.weekInfo,`minimalDays`in o||(o={...fallbackWeekSettings$1,...o}),weekInfoCache$1.set(t$5,o)}return o}function parseLocaleString$1(t$5){let o=t$5.indexOf(`-x-`);o!==-1&&(t$5=t$5.substring(0,o));let r=t$5.indexOf(`-u-`);if(r===-1)return[t$5];{let u,h;try{u=getCachedDTF$1(t$5).resolvedOptions(),h=t$5}catch{let _=t$5.substring(0,r);u=getCachedDTF$1(_).resolvedOptions(),h=_}let{numberingSystem:m,calendar:y}=u;return[h,m,y]}}function intlConfigString$1(t$5,o,r){return(r||o)&&(t$5.includes(`-u-`)||(t$5+=`-u`),r&&(t$5+=`-ca-${r}`),o&&(t$5+=`-nu-${o}`)),t$5}function mapMonths$1(t$5){let o=[];for(let r=1;r<=12;r++){let u=DateTime$1.utc(2009,r,1);o.push(t$5(u))}return o}function mapWeekdays$1(t$5){let o=[];for(let r=1;r<=7;r++){let u=DateTime$1.utc(2016,11,13+r);o.push(t$5(u))}return o}function listStuff$1(t$5,o,r,u){let h=t$5.listingMode();return h===`error`?null:h===`en`?r(o):u(o)}function supportsFastNumbers$1(t$5){return t$5.numberingSystem&&t$5.numberingSystem!==`latn`?!1:t$5.numberingSystem===`latn`||!t$5.locale||t$5.locale.startsWith(`en`)||getCachedIntResolvedOptions$1(t$5.locale).numberingSystem===`latn`}var PolyNumberFormatter$1=class{constructor(o,r,u){this.padTo=u.padTo||0,this.floor=u.floor||!1;let{padTo:h,floor:m,...y}=u;if(!r||Object.keys(y).length>0){let S={useGrouping:!1,...u};u.padTo>0&&(S.minimumIntegerDigits=u.padTo),this.inf=getCachedINF$1(o,S)}}format(o){if(this.inf){let r=this.floor?Math.floor(o):o;return this.inf.format(r)}else{let r=this.floor?Math.floor(o):roundTo$1(o,3);return padStart$1(r,this.padTo)}}},PolyDateFormatter$1=class{constructor(o,r,u){this.opts=u,this.originalZone=void 0;let h;if(this.opts.timeZone)this.dt=o;else if(o.zone.type===`fixed`){let y=-1*(o.offset/60),S=y>=0?`Etc/GMT+${y}`:`Etc/GMT${y}`;o.offset!==0&&IANAZone$1.create(S).valid?(h=S,this.dt=o):(h=`UTC`,this.dt=o.offset===0?o:o.setZone(`UTC`).plus({minutes:o.offset}),this.originalZone=o.zone)}else o.zone.type===`system`?this.dt=o:o.zone.type===`iana`?(this.dt=o,h=o.zone.name):(h=`UTC`,this.dt=o.setZone(`UTC`).plus({minutes:o.offset}),this.originalZone=o.zone);let m={...this.opts};m.timeZone=m.timeZone||h,this.dtf=getCachedDTF$1(r,m)}format(){return this.originalZone?this.formatToParts().map(({value:o})=>o).join(``):this.dtf.format(this.dt.toJSDate())}formatToParts(){let o=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?o.map(r=>{if(r.type===`timeZoneName`){let u=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:u}}else return r}):o}resolvedOptions(){return this.dtf.resolvedOptions()}},PolyRelFormatter$1=class{constructor(o,r,u){this.opts={style:`long`,...u},!r&&hasRelative$1()&&(this.rtf=getCachedRTF$1(o,u))}format(o,r){return this.rtf?this.rtf.format(o,r):formatRelativeTime$1(r,o,this.opts.numeric,this.opts.style!==`long`)}formatToParts(o,r){return this.rtf?this.rtf.formatToParts(o,r):[]}};const fallbackWeekSettings$1={firstDay:1,minimalDays:4,weekend:[6,7]};var Locale$1=class Locale$1{static fromOpts(o){return Locale$1.create(o.locale,o.numberingSystem,o.outputCalendar,o.weekSettings,o.defaultToEN)}static create(o,r,u,h,m=!1){let y=o||Settings$1.defaultLocale,S=y||(m?`en-US`:systemLocale$1()),_=r||Settings$1.defaultNumberingSystem,C=u||Settings$1.defaultOutputCalendar,O=validateWeekSettings$1(h)||Settings$1.defaultWeekSettings;return new Locale$1(S,_,C,O,y)}static resetCache(){sysLocaleCache$1=null,intlDTCache$1.clear(),intlNumCache$1.clear(),intlRelCache$1.clear(),intlResolvedOptionsCache$1.clear(),weekInfoCache$1.clear()}static fromObject({locale:o,numberingSystem:r,outputCalendar:u,weekSettings:h}={}){return Locale$1.create(o,r,u,h)}constructor(o,r,u,h,m){let[y,S,_]=parseLocaleString$1(o);this.locale=y,this.numberingSystem=r||S||null,this.outputCalendar=u||_||null,this.weekSettings=h,this.intl=intlConfigString$1(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=m,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached??=supportsFastNumbers$1(this),this.fastNumbersCached}listingMode(){let o=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem===`latn`)&&(this.outputCalendar===null||this.outputCalendar===`gregory`);return o&&r?`en`:`intl`}clone(o){return!o||Object.getOwnPropertyNames(o).length===0?this:Locale$1.create(o.locale||this.specifiedLocale,o.numberingSystem||this.numberingSystem,o.outputCalendar||this.outputCalendar,validateWeekSettings$1(o.weekSettings)||this.weekSettings,o.defaultToEN||!1)}redefaultToEN(o={}){return this.clone({...o,defaultToEN:!0})}redefaultToSystem(o={}){return this.clone({...o,defaultToEN:!1})}months(o,r=!1){return listStuff$1(this,o,months$1,()=>{let u=r?{month:o,day:`numeric`}:{month:o},h=r?`format`:`standalone`;return this.monthsCache[h][o]||(this.monthsCache[h][o]=mapMonths$1(m=>this.extract(m,u,`month`))),this.monthsCache[h][o]})}weekdays(o,r=!1){return listStuff$1(this,o,weekdays$1,()=>{let u=r?{weekday:o,year:`numeric`,month:`long`,day:`numeric`}:{weekday:o},h=r?`format`:`standalone`;return this.weekdaysCache[h][o]||(this.weekdaysCache[h][o]=mapWeekdays$1(m=>this.extract(m,u,`weekday`))),this.weekdaysCache[h][o]})}meridiems(){return listStuff$1(this,void 0,()=>meridiems$1,()=>{if(!this.meridiemCache){let o={hour:`numeric`,hourCycle:`h12`};this.meridiemCache=[DateTime$1.utc(2016,11,13,9),DateTime$1.utc(2016,11,13,19)].map(r=>this.extract(r,o,`dayperiod`))}return this.meridiemCache})}eras(o){return listStuff$1(this,o,eras$1,()=>{let r={era:o};return this.eraCache[o]||(this.eraCache[o]=[DateTime$1.utc(-40,1,1),DateTime$1.utc(2017,1,1)].map(u=>this.extract(u,r,`era`))),this.eraCache[o]})}extract(o,r,u){let h=this.dtFormatter(o,r),m=h.formatToParts(),y=m.find(S=>S.type.toLowerCase()===u);return y?y.value:null}numberFormatter(o={}){return new PolyNumberFormatter$1(this.intl,o.forceSimple||this.fastNumbers,o)}dtFormatter(o,r={}){return new PolyDateFormatter$1(o,this.intl,r)}relFormatter(o={}){return new PolyRelFormatter$1(this.intl,this.isEnglish(),o)}listFormatter(o={}){return getCachedLF$1(this.intl,o)}isEnglish(){return this.locale===`en`||this.locale.toLowerCase()===`en-us`||getCachedIntResolvedOptions$1(this.intl).locale.startsWith(`en-us`)}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo$1()?getCachedWeekInfo$1(this.locale):fallbackWeekSettings$1}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(o){return this.locale===o.locale&&this.numberingSystem===o.numberingSystem&&this.outputCalendar===o.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};let singleton$2=null;var FixedOffsetZone$1=class FixedOffsetZone$1 extends Zone$1{static get utcInstance(){return singleton$2===null&&(singleton$2=new FixedOffsetZone$1(0)),singleton$2}static instance(o){return o===0?FixedOffsetZone$1.utcInstance:new FixedOffsetZone$1(o)}static parseSpecifier(o){if(o){let r=o.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new FixedOffsetZone$1(signedOffset$1(r[1],r[2]))}return null}constructor(o){super(),this.fixed=o}get type(){return`fixed`}get name(){return this.fixed===0?`UTC`:`UTC${formatOffset$1(this.fixed,`narrow`)}`}get ianaName(){return this.fixed===0?`Etc/UTC`:`Etc/GMT${formatOffset$1(-this.fixed,`narrow`)}`}offsetName(){return this.name}formatOffset(o,r){return formatOffset$1(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(o){return o.type===`fixed`&&o.fixed===this.fixed}get isValid(){return!0}},InvalidZone$1=class extends Zone$1{constructor(o){super(),this.zoneName=o}get type(){return`invalid`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return``}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function normalizeZone$1(t$5,o){if(isUndefined$1(t$5)||t$5===null)return o;if(t$5 instanceof Zone$1)return t$5;if(isString$1(t$5)){let r=t$5.toLowerCase();return r===`default`?o:r===`local`||r===`system`?SystemZone$1.instance:r===`utc`||r===`gmt`?FixedOffsetZone$1.utcInstance:FixedOffsetZone$1.parseSpecifier(r)||IANAZone$1.create(t$5)}else return isNumber$1(t$5)?FixedOffsetZone$1.instance(t$5):typeof t$5==`object`&&`offset`in t$5&&typeof t$5.offset==`function`?t$5:new InvalidZone$1(t$5)}const numberingSystems$1={arab:`[٠-٩]`,arabext:`[۰-۹]`,bali:`[᭐-᭙]`,beng:`[০-৯]`,deva:`[०-९]`,fullwide:`[0-9]`,gujr:`[૦-૯]`,hanidec:`[〇|一|二|三|四|五|六|七|八|九]`,khmr:`[០-៩]`,knda:`[೦-೯]`,laoo:`[໐-໙]`,limb:`[᥆-᥏]`,mlym:`[൦-൯]`,mong:`[᠐-᠙]`,mymr:`[၀-၉]`,orya:`[୦-୯]`,tamldec:`[௦-௯]`,telu:`[౦-౯]`,thai:`[๐-๙]`,tibt:`[༠-༩]`,latn:`\\d`},numberingSystemsUTF16$1={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars$1=numberingSystems$1.hanidec.replace(/[\[|\]]/g,``).split(``);function parseDigits$1(t$5){let o=parseInt(t$5,10);if(isNaN(o)){o=``;for(let r=0;r<t$5.length;r++){let u=t$5.charCodeAt(r);if(t$5[r].search(numberingSystems$1.hanidec)!==-1)o+=hanidecChars$1.indexOf(t$5[r]);else for(let h in numberingSystemsUTF16$1){let[m,y]=numberingSystemsUTF16$1[h];u>=m&&u<=y&&(o+=u-m)}}return parseInt(o,10)}else return o}const digitRegexCache$1=new Map;function resetDigitRegexCache$1(){digitRegexCache$1.clear()}function digitRegex$1({numberingSystem:t$5},o=``){let r=t$5||`latn`,u=digitRegexCache$1.get(r);u===void 0&&(u=new Map,digitRegexCache$1.set(r,u));let h=u.get(o);return h===void 0&&(h=RegExp(`${numberingSystems$1[r]}${o}`),u.set(o,h)),h}let now$1=()=>Date.now(),defaultZone$1=`system`,defaultLocale$1=null,defaultNumberingSystem$1=null,defaultOutputCalendar$1=null,twoDigitCutoffYear$1=60,throwOnInvalid$1,defaultWeekSettings$1=null;var Settings$1=class{static get now(){return now$1}static set now(o){now$1=o}static set defaultZone(o){defaultZone$1=o}static get defaultZone(){return normalizeZone$1(defaultZone$1,SystemZone$1.instance)}static get defaultLocale(){return defaultLocale$1}static set defaultLocale(o){defaultLocale$1=o}static get defaultNumberingSystem(){return defaultNumberingSystem$1}static set defaultNumberingSystem(o){defaultNumberingSystem$1=o}static get defaultOutputCalendar(){return defaultOutputCalendar$1}static set defaultOutputCalendar(o){defaultOutputCalendar$1=o}static get defaultWeekSettings(){return defaultWeekSettings$1}static set defaultWeekSettings(o){defaultWeekSettings$1=validateWeekSettings$1(o)}static get twoDigitCutoffYear(){return twoDigitCutoffYear$1}static set twoDigitCutoffYear(o){twoDigitCutoffYear$1=o%100}static get throwOnInvalid(){return throwOnInvalid$1}static set throwOnInvalid(o){throwOnInvalid$1=o}static resetCaches(){Locale$1.resetCache(),IANAZone$1.resetCache(),DateTime$1.resetCache(),resetDigitRegexCache$1()}},Invalid$1=class{constructor(o,r){this.reason=o,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const nonLeapLadder$1=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder$1=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange$1(t$5,o){return new Invalid$1(`unit out of range`,`you specified ${o} (of type ${typeof o}) as a ${t$5}, which is invalid`)}function dayOfWeek$1(t$5,o,r){let u=new Date(Date.UTC(t$5,o-1,r));t$5<100&&t$5>=0&&u.setUTCFullYear(u.getUTCFullYear()-1900);let h=u.getUTCDay();return h===0?7:h}function computeOrdinal$1(t$5,o,r){return r+(isLeapYear$1(t$5)?leapLadder$1:nonLeapLadder$1)[o-1]}function uncomputeOrdinal$1(t$5,o){let r=isLeapYear$1(t$5)?leapLadder$1:nonLeapLadder$1,u=r.findIndex(m=>m<o),h=o-r[u];return{month:u+1,day:h}}function isoWeekdayToLocal$1(t$5,o){return(t$5-o+7)%7+1}function gregorianToWeek$1(t$5,o=4,r=1){let{year:u,month:h,day:m}=t$5,y=computeOrdinal$1(u,h,m),S=isoWeekdayToLocal$1(dayOfWeek$1(u,h,m),r),_=Math.floor((y-S+14-o)/7),C;return _<1?(C=u-1,_=weeksInWeekYear$1(C,o,r)):_>weeksInWeekYear$1(u,o,r)?(C=u+1,_=1):C=u,{weekYear:C,weekNumber:_,weekday:S,...timeObject$1(t$5)}}function weekToGregorian$1(t$5,o=4,r=1){let{weekYear:u,weekNumber:h,weekday:m}=t$5,y=isoWeekdayToLocal$1(dayOfWeek$1(u,1,o),r),S=daysInYear$1(u),_=h*7+m-y-7+o,C;_<1?(C=u-1,_+=daysInYear$1(C)):_>S?(C=u+1,_-=daysInYear$1(u)):C=u;let{month:O,day:I}=uncomputeOrdinal$1(C,_);return{year:C,month:O,day:I,...timeObject$1(t$5)}}function gregorianToOrdinal$1(t$5){let{year:o,month:r,day:u}=t$5,h=computeOrdinal$1(o,r,u);return{year:o,ordinal:h,...timeObject$1(t$5)}}function ordinalToGregorian$1(t$5){let{year:o,ordinal:r}=t$5,{month:u,day:h}=uncomputeOrdinal$1(o,r);return{year:o,month:u,day:h,...timeObject$1(t$5)}}function usesLocalWeekValues$1(t$5,o){if(!isUndefined$1(t$5.localWeekday)||!isUndefined$1(t$5.localWeekNumber)||!isUndefined$1(t$5.localWeekYear)){if(!isUndefined$1(t$5.weekday)||!isUndefined$1(t$5.weekNumber)||!isUndefined$1(t$5.weekYear))throw new ConflictingSpecificationError$1(`Cannot mix locale-based week fields with ISO-based week fields`);return isUndefined$1(t$5.localWeekday)||(t$5.weekday=t$5.localWeekday),isUndefined$1(t$5.localWeekNumber)||(t$5.weekNumber=t$5.localWeekNumber),isUndefined$1(t$5.localWeekYear)||(t$5.weekYear=t$5.localWeekYear),delete t$5.localWeekday,delete t$5.localWeekNumber,delete t$5.localWeekYear,{minDaysInFirstWeek:o.getMinDaysInFirstWeek(),startOfWeek:o.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData$1(t$5,o=4,r=1){let u=isInteger$1(t$5.weekYear),h=integerBetween$1(t$5.weekNumber,1,weeksInWeekYear$1(t$5.weekYear,o,r)),m=integerBetween$1(t$5.weekday,1,7);return u?h?m?!1:unitOutOfRange$1(`weekday`,t$5.weekday):unitOutOfRange$1(`week`,t$5.weekNumber):unitOutOfRange$1(`weekYear`,t$5.weekYear)}function hasInvalidOrdinalData$1(t$5){let o=isInteger$1(t$5.year),r=integerBetween$1(t$5.ordinal,1,daysInYear$1(t$5.year));return o?r?!1:unitOutOfRange$1(`ordinal`,t$5.ordinal):unitOutOfRange$1(`year`,t$5.year)}function hasInvalidGregorianData$1(t$5){let o=isInteger$1(t$5.year),r=integerBetween$1(t$5.month,1,12),u=integerBetween$1(t$5.day,1,daysInMonth$1(t$5.year,t$5.month));return o?r?u?!1:unitOutOfRange$1(`day`,t$5.day):unitOutOfRange$1(`month`,t$5.month):unitOutOfRange$1(`year`,t$5.year)}function hasInvalidTimeData$1(t$5){let{hour:o,minute:r,second:u,millisecond:h}=t$5,m=integerBetween$1(o,0,23)||o===24&&r===0&&u===0&&h===0,y=integerBetween$1(r,0,59),S=integerBetween$1(u,0,59),_=integerBetween$1(h,0,999);return m?y?S?_?!1:unitOutOfRange$1(`millisecond`,h):unitOutOfRange$1(`second`,u):unitOutOfRange$1(`minute`,r):unitOutOfRange$1(`hour`,o)}function isUndefined$1(t$5){return typeof t$5>`u`}function isNumber$1(t$5){return typeof t$5==`number`}function isInteger$1(t$5){return typeof t$5==`number`&&t$5%1==0}function isString$1(t$5){return typeof t$5==`string`}function isDate$1(t$5){return Object.prototype.toString.call(t$5)===`[object Date]`}function hasRelative$1(){try{return typeof Intl<`u`&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo$1(){try{return typeof Intl<`u`&&!!Intl.Locale&&(`weekInfo`in Intl.Locale.prototype||`getWeekInfo`in Intl.Locale.prototype)}catch{return!1}}function maybeArray$1(t$5){return Array.isArray(t$5)?t$5:[t$5]}function bestBy$1(t$5,o,r){if(t$5.length!==0)return t$5.reduce((u,h)=>{let m=[o(h),h];return u&&r(u[0],m[0])===u[0]?u:m},null)[1]}function pick$1(t$5,o){return o.reduce((r,u)=>(r[u]=t$5[u],r),{})}function hasOwnProperty$1(t$5,o){return Object.prototype.hasOwnProperty.call(t$5,o)}function validateWeekSettings$1(t$5){if(t$5==null)return null;if(typeof t$5!=`object`)throw new InvalidArgumentError$1(`Week settings must be an object`);if(!integerBetween$1(t$5.firstDay,1,7)||!integerBetween$1(t$5.minimalDays,1,7)||!Array.isArray(t$5.weekend)||t$5.weekend.some(o=>!integerBetween$1(o,1,7)))throw new InvalidArgumentError$1(`Invalid week settings`);return{firstDay:t$5.firstDay,minimalDays:t$5.minimalDays,weekend:Array.from(t$5.weekend)}}function integerBetween$1(t$5,o,r){return isInteger$1(t$5)&&t$5>=o&&t$5<=r}function floorMod$1(t$5,o){return t$5-o*Math.floor(t$5/o)}function padStart$1(t$5,o=2){let r=t$5<0,u;return u=r?`-`+(``+-t$5).padStart(o,`0`):(``+t$5).padStart(o,`0`),u}function parseInteger$1(t$5){if(!(isUndefined$1(t$5)||t$5===null||t$5===``))return parseInt(t$5,10)}function parseFloating$1(t$5){if(!(isUndefined$1(t$5)||t$5===null||t$5===``))return parseFloat(t$5)}function parseMillis$1(t$5){if(!(isUndefined$1(t$5)||t$5===null||t$5===``)){let o=parseFloat(`0.`+t$5)*1e3;return Math.floor(o)}}function roundTo$1(t$5,o,r=!1){let u=10**o;return(r?Math.trunc:Math.round)(t$5*u)/u}function isLeapYear$1(t$5){return t$5%4==0&&(t$5%100!=0||t$5%400==0)}function daysInYear$1(t$5){return isLeapYear$1(t$5)?366:365}function daysInMonth$1(t$5,o){let r=floorMod$1(o-1,12)+1,u=t$5+(o-r)/12;return r===2?isLeapYear$1(u)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function objToLocalTS$1(t$5){let o=Date.UTC(t$5.year,t$5.month-1,t$5.day,t$5.hour,t$5.minute,t$5.second,t$5.millisecond);return t$5.year<100&&t$5.year>=0&&(o=new Date(o),o.setUTCFullYear(t$5.year,t$5.month-1,t$5.day)),+o}function firstWeekOffset$1(t$5,o,r){return-isoWeekdayToLocal$1(dayOfWeek$1(t$5,1,o),r)+o-1}function weeksInWeekYear$1(t$5,o=4,r=1){let u=firstWeekOffset$1(t$5,o,r),h=firstWeekOffset$1(t$5+1,o,r);return(daysInYear$1(t$5)-u+h)/7}function untruncateYear$1(t$5){return t$5>99?t$5:t$5>Settings$1.twoDigitCutoffYear?1900+t$5:2e3+t$5}function parseZoneInfo$1(t$5,o,r,u=null){let h=new Date(t$5),m={hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`};u&&(m.timeZone=u);let y={timeZoneName:o,...m},S=new Intl.DateTimeFormat(r,y).formatToParts(h).find(_=>_.type.toLowerCase()===`timezonename`);return S?S.value:null}function signedOffset$1(t$5,o){let r=parseInt(t$5,10);Number.isNaN(r)&&(r=0);let u=parseInt(o,10)||0,h=r<0||Object.is(r,-0)?-u:u;return r*60+h}function asNumber$1(t$5){let o=Number(t$5);if(typeof t$5==`boolean`||t$5===``||Number.isNaN(o))throw new InvalidArgumentError$1(`Invalid unit value ${t$5}`);return o}function normalizeObject$1(t$5,o){let r={};for(let u in t$5)if(hasOwnProperty$1(t$5,u)){let h=t$5[u];if(h==null)continue;r[o(u)]=asNumber$1(h)}return r}function formatOffset$1(t$5,o){let r=Math.trunc(Math.abs(t$5/60)),u=Math.trunc(Math.abs(t$5%60)),h=t$5>=0?`+`:`-`;switch(o){case`short`:return`${h}${padStart$1(r,2)}:${padStart$1(u,2)}`;case`narrow`:return`${h}${r}${u>0?`:${u}`:``}`;case`techie`:return`${h}${padStart$1(r,2)}${padStart$1(u,2)}`;default:throw RangeError(`Value format ${o} is out of range for property format`)}}function timeObject$1(t$5){return pick$1(t$5,[`hour`,`minute`,`second`,`millisecond`])}const monthsLong$1=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort$1=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],monthsNarrow$1=[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`];function months$1(t$5){switch(t$5){case`narrow`:return[...monthsNarrow$1];case`short`:return[...monthsShort$1];case`long`:return[...monthsLong$1];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`];case`2-digit`:return[`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`,`12`];default:return null}}const weekdaysLong$1=[`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],weekdaysShort$1=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],weekdaysNarrow$1=[`M`,`T`,`W`,`T`,`F`,`S`,`S`];function weekdays$1(t$5){switch(t$5){case`narrow`:return[...weekdaysNarrow$1];case`short`:return[...weekdaysShort$1];case`long`:return[...weekdaysLong$1];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`];default:return null}}const meridiems$1=[`AM`,`PM`],erasLong$1=[`Before Christ`,`Anno Domini`],erasShort$1=[`BC`,`AD`],erasNarrow$1=[`B`,`A`];function eras$1(t$5){switch(t$5){case`narrow`:return[...erasNarrow$1];case`short`:return[...erasShort$1];case`long`:return[...erasLong$1];default:return null}}function meridiemForDateTime$1(t$5){return meridiems$1[t$5.hour<12?0:1]}function weekdayForDateTime$1(t$5,o){return weekdays$1(o)[t$5.weekday-1]}function monthForDateTime$1(t$5,o){return months$1(o)[t$5.month-1]}function eraForDateTime$1(t$5,o){return eras$1(o)[t$5.year<0?0:1]}function formatRelativeTime$1(t$5,o,r=`always`,u=!1){let h={years:[`year`,`yr.`],quarters:[`quarter`,`qtr.`],months:[`month`,`mo.`],weeks:[`week`,`wk.`],days:[`day`,`day`,`days`],hours:[`hour`,`hr.`],minutes:[`minute`,`min.`],seconds:[`second`,`sec.`]},m=[`hours`,`minutes`,`seconds`].indexOf(t$5)===-1;if(r===`auto`&&m){let I=t$5===`days`;switch(o){case 1:return I?`tomorrow`:`next ${h[t$5][0]}`;case-1:return I?`yesterday`:`last ${h[t$5][0]}`;case 0:return I?`today`:`this ${h[t$5][0]}`}}let y=Object.is(o,-0)||o<0,S=Math.abs(o),_=S===1,C=h[t$5],O=u?_?C[1]:C[2]||C[1]:_?h[t$5][0]:t$5;return y?`${S} ${O} ago`:`in ${S} ${O}`}function stringifyTokens$1(t$5,o){let r=``;for(let u of t$5)u.literal?r+=u.val:r+=o(u.val);return r}const macroTokenToFormatOpts$1={D:DATE_SHORT$1,DD:DATE_MED$1,DDD:DATE_FULL$1,DDDD:DATE_HUGE$1,t:TIME_SIMPLE$1,tt:TIME_WITH_SECONDS$1,ttt:TIME_WITH_SHORT_OFFSET$1,tttt:TIME_WITH_LONG_OFFSET$1,T:TIME_24_SIMPLE$1,TT:TIME_24_WITH_SECONDS$1,TTT:TIME_24_WITH_SHORT_OFFSET$1,TTTT:TIME_24_WITH_LONG_OFFSET$1,f:DATETIME_SHORT$1,ff:DATETIME_MED$1,fff:DATETIME_FULL$1,ffff:DATETIME_HUGE$1,F:DATETIME_SHORT_WITH_SECONDS$1,FF:DATETIME_MED_WITH_SECONDS$1,FFF:DATETIME_FULL_WITH_SECONDS$1,FFFF:DATETIME_HUGE_WITH_SECONDS$1};var Formatter$1=class Formatter$1{static create(o,r={}){return new Formatter$1(o,r)}static parseFormat(o){let r=null,u=``,h=!1,m=[];for(let y=0;y<o.length;y++){let S=o.charAt(y);S===`'`?(u.length>0&&m.push({literal:h||/^\s+$/.test(u),val:u}),r=null,u=``,h=!h):h||S===r?u+=S:(u.length>0&&m.push({literal:/^\s+$/.test(u),val:u}),u=S,r=S)}return u.length>0&&m.push({literal:h||/^\s+$/.test(u),val:u}),m}static macroTokenToFormatOpts(o){return macroTokenToFormatOpts$1[o]}constructor(o,r){this.opts=r,this.loc=o,this.systemLoc=null}formatWithSystemDefault(o,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(o,{...this.opts,...r}).format()}dtFormatter(o,r={}){return this.loc.dtFormatter(o,{...this.opts,...r})}formatDateTime(o,r){return this.dtFormatter(o,r).format()}formatDateTimeParts(o,r){return this.dtFormatter(o,r).formatToParts()}formatInterval(o,r){return this.dtFormatter(o.start,r).dtf.formatRange(o.start.toJSDate(),o.end.toJSDate())}resolvedOptions(o,r){return this.dtFormatter(o,r).resolvedOptions()}num(o,r=0){if(this.opts.forceSimple)return padStart$1(o,r);let u={...this.opts};return r>0&&(u.padTo=r),this.loc.numberFormatter(u).format(o)}formatDateTimeFromString(o,r){let u=this.loc.listingMode()===`en`,h=this.loc.outputCalendar&&this.loc.outputCalendar!==`gregory`,m=(U,F)=>this.loc.extract(o,U,F),y=U=>o.isOffsetFixed&&o.offset===0&&U.allowZ?`Z`:o.isValid?o.zone.formatOffset(o.ts,U.format):``,S=()=>u?meridiemForDateTime$1(o):m({hour:`numeric`,hourCycle:`h12`},`dayperiod`),_=(U,F)=>u?monthForDateTime$1(o,U):m(F?{month:U}:{month:U,day:`numeric`},`month`),C=(U,F)=>u?weekdayForDateTime$1(o,U):m(F?{weekday:U}:{weekday:U,month:`long`,day:`numeric`},`weekday`),O=U=>{let F=Formatter$1.macroTokenToFormatOpts(U);return F?this.formatWithSystemDefault(o,F):U},I=U=>u?eraForDateTime$1(o,U):m({era:U},`era`),R$1=U=>{switch(U){case`S`:return this.num(o.millisecond);case`u`:case`SSS`:return this.num(o.millisecond,3);case`s`:return this.num(o.second);case`ss`:return this.num(o.second,2);case`uu`:return this.num(Math.floor(o.millisecond/10),2);case`uuu`:return this.num(Math.floor(o.millisecond/100));case`m`:return this.num(o.minute);case`mm`:return this.num(o.minute,2);case`h`:return this.num(o.hour%12==0?12:o.hour%12);case`hh`:return this.num(o.hour%12==0?12:o.hour%12,2);case`H`:return this.num(o.hour);case`HH`:return this.num(o.hour,2);case`Z`:return y({format:`narrow`,allowZ:this.opts.allowZ});case`ZZ`:return y({format:`short`,allowZ:this.opts.allowZ});case`ZZZ`:return y({format:`techie`,allowZ:this.opts.allowZ});case`ZZZZ`:return o.zone.offsetName(o.ts,{format:`short`,locale:this.loc.locale});case`ZZZZZ`:return o.zone.offsetName(o.ts,{format:`long`,locale:this.loc.locale});case`z`:return o.zoneName;case`a`:return S();case`d`:return h?m({day:`numeric`},`day`):this.num(o.day);case`dd`:return h?m({day:`2-digit`},`day`):this.num(o.day,2);case`c`:return this.num(o.weekday);case`ccc`:return C(`short`,!0);case`cccc`:return C(`long`,!0);case`ccccc`:return C(`narrow`,!0);case`E`:return this.num(o.weekday);case`EEE`:return C(`short`,!1);case`EEEE`:return C(`long`,!1);case`EEEEE`:return C(`narrow`,!1);case`L`:return h?m({month:`numeric`,day:`numeric`},`month`):this.num(o.month);case`LL`:return h?m({month:`2-digit`,day:`numeric`},`month`):this.num(o.month,2);case`LLL`:return _(`short`,!0);case`LLLL`:return _(`long`,!0);case`LLLLL`:return _(`narrow`,!0);case`M`:return h?m({month:`numeric`},`month`):this.num(o.month);case`MM`:return h?m({month:`2-digit`},`month`):this.num(o.month,2);case`MMM`:return _(`short`,!1);case`MMMM`:return _(`long`,!1);case`MMMMM`:return _(`narrow`,!1);case`y`:return h?m({year:`numeric`},`year`):this.num(o.year);case`yy`:return h?m({year:`2-digit`},`year`):this.num(o.year.toString().slice(-2),2);case`yyyy`:return h?m({year:`numeric`},`year`):this.num(o.year,4);case`yyyyyy`:return h?m({year:`numeric`},`year`):this.num(o.year,6);case`G`:return I(`short`);case`GG`:return I(`long`);case`GGGGG`:return I(`narrow`);case`kk`:return this.num(o.weekYear.toString().slice(-2),2);case`kkkk`:return this.num(o.weekYear,4);case`W`:return this.num(o.weekNumber);case`WW`:return this.num(o.weekNumber,2);case`n`:return this.num(o.localWeekNumber);case`nn`:return this.num(o.localWeekNumber,2);case`ii`:return this.num(o.localWeekYear.toString().slice(-2),2);case`iiii`:return this.num(o.localWeekYear,4);case`o`:return this.num(o.ordinal);case`ooo`:return this.num(o.ordinal,3);case`q`:return this.num(o.quarter);case`qq`:return this.num(o.quarter,2);case`X`:return this.num(Math.floor(o.ts/1e3));case`x`:return this.num(o.ts);default:return O(U)}};return stringifyTokens$1(Formatter$1.parseFormat(r),R$1)}formatDurationFromString(o,r){let u=_=>{switch(_[0]){case`S`:return`millisecond`;case`s`:return`second`;case`m`:return`minute`;case`h`:return`hour`;case`d`:return`day`;case`w`:return`week`;case`M`:return`month`;case`y`:return`year`;default:return null}},h=_=>C=>{let O=u(C);return O?this.num(_.get(O),C.length):C},m=Formatter$1.parseFormat(r),y=m.reduce((_,{literal:C,val:O})=>C?_:_.concat(O),[]),S=o.shiftTo(...y.map(u).filter(_=>_));return stringifyTokens$1(m,h(S))}};const ianaRegex$1=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes$1(...t$5){let o=t$5.reduce((r,u)=>r+u.source,``);return RegExp(`^${o}$`)}function combineExtractors$1(...t$5){return o=>t$5.reduce(([r,u,h],m)=>{let[y,S,_]=m(o,h);return[{...r,...y},S||u,_]},[{},null,1]).slice(0,2)}function parse$9(t$5,...o){if(t$5==null)return[null,null];for(let[r,u]of o){let h=r.exec(t$5);if(h)return u(h)}return[null,null]}function simpleParse$1(...t$5){return(o,r)=>{let u={},h;for(h=0;h<t$5.length;h++)u[t$5[h]]=parseInteger$1(o[r+h]);return[u,null,r+h]}}const offsetRegex$1=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone$1=`(?:${offsetRegex$1.source}?(?:\\[(${ianaRegex$1.source})\\])?)?`,isoTimeBaseRegex$1=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex$1=RegExp(`${isoTimeBaseRegex$1.source}${isoExtendedZone$1}`),isoTimeExtensionRegex$1=RegExp(`(?:T${isoTimeRegex$1.source})?`),isoYmdRegex$1=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex$1=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex$1=/(\d{4})-?(\d{3})/,extractISOWeekData$1=simpleParse$1(`weekYear`,`weekNumber`,`weekDay`),extractISOOrdinalData$1=simpleParse$1(`year`,`ordinal`),sqlYmdRegex$1=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex$1=RegExp(`${isoTimeBaseRegex$1.source} ?(?:${offsetRegex$1.source}|(${ianaRegex$1.source}))?`),sqlTimeExtensionRegex$1=RegExp(`(?: ${sqlTimeRegex$1.source})?`);function int$1(t$5,o,r){let u=t$5[o];return isUndefined$1(u)?r:parseInteger$1(u)}function extractISOYmd$1(t$5,o){return[{year:int$1(t$5,o),month:int$1(t$5,o+1,1),day:int$1(t$5,o+2,1)},null,o+3]}function extractISOTime$1(t$5,o){return[{hours:int$1(t$5,o,0),minutes:int$1(t$5,o+1,0),seconds:int$1(t$5,o+2,0),milliseconds:parseMillis$1(t$5[o+3])},null,o+4]}function extractISOOffset$1(t$5,o){let r=!t$5[o]&&!t$5[o+1],u=signedOffset$1(t$5[o+1],t$5[o+2]),h=r?null:FixedOffsetZone$1.instance(u);return[{},h,o+3]}function extractIANAZone$1(t$5,o){let r=t$5[o]?IANAZone$1.create(t$5[o]):null;return[{},r,o+1]}const isoTimeOnly$1=RegExp(`^T?${isoTimeBaseRegex$1.source}$`),isoDuration$1=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration$1(t$5){let[o,r,u,h,m,y,S,_,C]=t$5,O=o[0]===`-`,I=_&&_[0]===`-`,R$1=(U,F=!1)=>U!==void 0&&(F||U&&O)?-U:U;return[{years:R$1(parseFloating$1(r)),months:R$1(parseFloating$1(u)),weeks:R$1(parseFloating$1(h)),days:R$1(parseFloating$1(m)),hours:R$1(parseFloating$1(y)),minutes:R$1(parseFloating$1(S)),seconds:R$1(parseFloating$1(_),_===`-0`),milliseconds:R$1(parseMillis$1(C),I)}]}const obsOffsets$1={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings$1(t$5,o,r,u,h,m,y){let S={year:o.length===2?untruncateYear$1(parseInteger$1(o)):parseInteger$1(o),month:monthsShort$1.indexOf(r)+1,day:parseInteger$1(u),hour:parseInteger$1(h),minute:parseInteger$1(m)};return y&&(S.second=parseInteger$1(y)),t$5&&(S.weekday=t$5.length>3?weekdaysLong$1.indexOf(t$5)+1:weekdaysShort$1.indexOf(t$5)+1),S}const rfc2822$1=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822$1(t$5){let[,o,r,u,h,m,y,S,_,C,O,I]=t$5,R$1=fromStrings$1(o,h,u,r,m,y,S),U;return U=_?obsOffsets$1[_]:C?0:signedOffset$1(O,I),[R$1,new FixedOffsetZone$1(U)]}function preprocessRFC2822$1(t$5){return t$5.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).trim()}const rfc1123$1=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850$1=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii$1=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850$1(t$5){let[,o,r,u,h,m,y,S]=t$5;return[fromStrings$1(o,h,u,r,m,y,S),FixedOffsetZone$1.utcInstance]}function extractASCII$1(t$5){let[,o,r,u,h,m,y,S]=t$5;return[fromStrings$1(o,S,r,u,h,m,y),FixedOffsetZone$1.utcInstance]}const isoYmdWithTimeExtensionRegex$1=combineRegexes$1(isoYmdRegex$1,isoTimeExtensionRegex$1),isoWeekWithTimeExtensionRegex$1=combineRegexes$1(isoWeekRegex$1,isoTimeExtensionRegex$1),isoOrdinalWithTimeExtensionRegex$1=combineRegexes$1(isoOrdinalRegex$1,isoTimeExtensionRegex$1),isoTimeCombinedRegex$1=combineRegexes$1(isoTimeRegex$1),extractISOYmdTimeAndOffset$1=combineExtractors$1(extractISOYmd$1,extractISOTime$1,extractISOOffset$1,extractIANAZone$1),extractISOWeekTimeAndOffset$1=combineExtractors$1(extractISOWeekData$1,extractISOTime$1,extractISOOffset$1,extractIANAZone$1),extractISOOrdinalDateAndTime$1=combineExtractors$1(extractISOOrdinalData$1,extractISOTime$1,extractISOOffset$1,extractIANAZone$1),extractISOTimeAndOffset$1=combineExtractors$1(extractISOTime$1,extractISOOffset$1,extractIANAZone$1);function parseISODate$1(t$5){return parse$9(t$5,[isoYmdWithTimeExtensionRegex$1,extractISOYmdTimeAndOffset$1],[isoWeekWithTimeExtensionRegex$1,extractISOWeekTimeAndOffset$1],[isoOrdinalWithTimeExtensionRegex$1,extractISOOrdinalDateAndTime$1],[isoTimeCombinedRegex$1,extractISOTimeAndOffset$1])}function parseRFC2822Date$1(t$5){return parse$9(preprocessRFC2822$1(t$5),[rfc2822$1,extractRFC2822$1])}function parseHTTPDate$1(t$5){return parse$9(t$5,[rfc1123$1,extractRFC1123Or850$1],[rfc850$1,extractRFC1123Or850$1],[ascii$1,extractASCII$1])}function parseISODuration$1(t$5){return parse$9(t$5,[isoDuration$1,extractISODuration$1])}const extractISOTimeOnly$1=combineExtractors$1(extractISOTime$1);function parseISOTimeOnly$1(t$5){return parse$9(t$5,[isoTimeOnly$1,extractISOTimeOnly$1])}const sqlYmdWithTimeExtensionRegex$1=combineRegexes$1(sqlYmdRegex$1,sqlTimeExtensionRegex$1),sqlTimeCombinedRegex$1=combineRegexes$1(sqlTimeRegex$1),extractISOTimeOffsetAndIANAZone$1=combineExtractors$1(extractISOTime$1,extractISOOffset$1,extractIANAZone$1);function parseSQL$1(t$5){return parse$9(t$5,[sqlYmdWithTimeExtensionRegex$1,extractISOYmdTimeAndOffset$1],[sqlTimeCombinedRegex$1,extractISOTimeOffsetAndIANAZone$1])}const INVALID$2$2=`Invalid Duration`,lowOrderMatrix$1={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},casualMatrix$1={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...lowOrderMatrix$1},daysInYearAccurate$1=146097/400,daysInMonthAccurate$1=146097/4800,accurateMatrix$1={years:{quarters:4,months:12,weeks:daysInYearAccurate$1/7,days:daysInYearAccurate$1,hours:daysInYearAccurate$1*24,minutes:daysInYearAccurate$1*24*60,seconds:daysInYearAccurate$1*24*60*60,milliseconds:daysInYearAccurate$1*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate$1/28,days:daysInYearAccurate$1/4,hours:daysInYearAccurate$1*24/4,minutes:daysInYearAccurate$1*24*60/4,seconds:daysInYearAccurate$1*24*60*60/4,milliseconds:daysInYearAccurate$1*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate$1/7,days:daysInMonthAccurate$1,hours:daysInMonthAccurate$1*24,minutes:daysInMonthAccurate$1*24*60,seconds:daysInMonthAccurate$1*24*60*60,milliseconds:daysInMonthAccurate$1*24*60*60*1e3},...lowOrderMatrix$1},orderedUnits$1$1=[`years`,`quarters`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`],reverseUnits$1=orderedUnits$1$1.slice(0).reverse();function clone$1$1(t$5,o,r=!1){let u={values:r?o.values:{...t$5.values,...o.values||{}},loc:t$5.loc.clone(o.loc),conversionAccuracy:o.conversionAccuracy||t$5.conversionAccuracy,matrix:o.matrix||t$5.matrix};return new Duration$1(u)}function durationToMillis$1(t$5,o){let r=o.milliseconds??0;for(let u of reverseUnits$1.slice(1))o[u]&&(r+=o[u]*t$5[u].milliseconds);return r}function normalizeValues$1(t$5,o){let r=durationToMillis$1(t$5,o)<0?-1:1;orderedUnits$1$1.reduceRight((u,h)=>{if(isUndefined$1(o[h]))return u;if(u){let m=o[u]*r,y=t$5[h][u],S=Math.floor(m/y);o[h]+=S*r,o[u]-=S*y*r}return h},null),orderedUnits$1$1.reduce((u,h)=>{if(isUndefined$1(o[h]))return u;if(u){let m=o[u]%1;o[u]-=m,o[h]+=m*t$5[u][h]}return h},null)}function removeZeroes$1(t$5){let o={};for(let[r,u]of Object.entries(t$5))u!==0&&(o[r]=u);return o}var Duration$1=class Duration$1{constructor(o){let r=o.conversionAccuracy===`longterm`||!1,u=r?accurateMatrix$1:casualMatrix$1;o.matrix&&(u=o.matrix),this.values=o.values,this.loc=o.loc||Locale$1.create(),this.conversionAccuracy=r?`longterm`:`casual`,this.invalid=o.invalid||null,this.matrix=u,this.isLuxonDuration=!0}static fromMillis(o,r){return Duration$1.fromObject({milliseconds:o},r)}static fromObject(o,r={}){if(typeof o!=`object`||!o)throw new InvalidArgumentError$1(`Duration.fromObject: argument expected to be an object, got ${o===null?`null`:typeof o}`);return new Duration$1({values:normalizeObject$1(o,Duration$1.normalizeUnit),loc:Locale$1.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(o){if(isNumber$1(o))return Duration$1.fromMillis(o);if(Duration$1.isDuration(o))return o;if(typeof o==`object`)return Duration$1.fromObject(o);throw new InvalidArgumentError$1(`Unknown duration argument ${o} of type ${typeof o}`)}static fromISO(o,r){let[u]=parseISODuration$1(o);return u?Duration$1.fromObject(u,r):Duration$1.invalid(`unparsable`,`the input "${o}" can't be parsed as ISO 8601`)}static fromISOTime(o,r){let[u]=parseISOTimeOnly$1(o);return u?Duration$1.fromObject(u,r):Duration$1.invalid(`unparsable`,`the input "${o}" can't be parsed as ISO 8601`)}static invalid(o,r=null){if(!o)throw new InvalidArgumentError$1(`need to specify a reason the Duration is invalid`);let u=o instanceof Invalid$1?o:new Invalid$1(o,r);if(Settings$1.throwOnInvalid)throw new InvalidDurationError$1(u);return new Duration$1({invalid:u})}static normalizeUnit(o){let r={year:`years`,years:`years`,quarter:`quarters`,quarters:`quarters`,month:`months`,months:`months`,week:`weeks`,weeks:`weeks`,day:`days`,days:`days`,hour:`hours`,hours:`hours`,minute:`minutes`,minutes:`minutes`,second:`seconds`,seconds:`seconds`,millisecond:`milliseconds`,milliseconds:`milliseconds`}[o&&o.toLowerCase()];if(!r)throw new InvalidUnitError$1(o);return r}static isDuration(o){return o&&o.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(o,r={}){let u={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?Formatter$1.create(this.loc,u).formatDurationFromString(this,o):INVALID$2$2}toHuman(o={}){if(!this.isValid)return INVALID$2$2;let r=orderedUnits$1$1.map(u=>{let h=this.values[u];return isUndefined$1(h)?null:this.loc.numberFormatter({style:`unit`,unitDisplay:`long`,...o,unit:u.slice(0,-1)}).format(h)}).filter(u=>u);return this.loc.listFormatter({type:`conjunction`,style:o.listStyle||`narrow`,...o}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let o=`P`;return this.years!==0&&(o+=this.years+`Y`),(this.months!==0||this.quarters!==0)&&(o+=this.months+this.quarters*3+`M`),this.weeks!==0&&(o+=this.weeks+`W`),this.days!==0&&(o+=this.days+`D`),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(o+=`T`),this.hours!==0&&(o+=this.hours+`H`),this.minutes!==0&&(o+=this.minutes+`M`),(this.seconds!==0||this.milliseconds!==0)&&(o+=roundTo$1(this.seconds+this.milliseconds/1e3,3)+`S`),o===`P`&&(o+=`T0S`),o}toISOTime(o={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(o={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:`extended`,...o,includeOffset:!1},DateTime$1.fromMillis(r,{zone:`UTC`}).toISOTime(o))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?durationToMillis$1(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(o){if(!this.isValid)return this;let r=Duration$1.fromDurationLike(o),u={};for(let h of orderedUnits$1$1)(hasOwnProperty$1(r.values,h)||hasOwnProperty$1(this.values,h))&&(u[h]=r.get(h)+this.get(h));return clone$1$1(this,{values:u},!0)}minus(o){if(!this.isValid)return this;let r=Duration$1.fromDurationLike(o);return this.plus(r.negate())}mapUnits(o){if(!this.isValid)return this;let r={};for(let u of Object.keys(this.values))r[u]=asNumber$1(o(this.values[u],u));return clone$1$1(this,{values:r},!0)}get(o){return this[Duration$1.normalizeUnit(o)]}set(o){if(!this.isValid)return this;let r={...this.values,...normalizeObject$1(o,Duration$1.normalizeUnit)};return clone$1$1(this,{values:r})}reconfigure({locale:o,numberingSystem:r,conversionAccuracy:u,matrix:h}={}){let y={loc:this.loc.clone({locale:o,numberingSystem:r}),matrix:h,conversionAccuracy:u};return clone$1$1(this,y)}as(o){return this.isValid?this.shiftTo(o).get(o):NaN}normalize(){if(!this.isValid)return this;let o=this.toObject();return normalizeValues$1(this.matrix,o),clone$1$1(this,{values:o},!0)}rescale(){if(!this.isValid)return this;let o=removeZeroes$1(this.normalize().shiftToAll().toObject());return clone$1$1(this,{values:o},!0)}shiftTo(...o){if(!this.isValid||o.length===0)return this;o=o.map(y=>Duration$1.normalizeUnit(y));let r={},u={},h=this.toObject(),m;for(let y of orderedUnits$1$1)if(o.indexOf(y)>=0){m=y;let S=0;for(let C in u)S+=this.matrix[C][y]*u[C],u[C]=0;isNumber$1(h[y])&&(S+=h[y]);let _=Math.trunc(S);r[y]=_,u[y]=(S*1e3-_*1e3)/1e3}else isNumber$1(h[y])&&(u[y]=h[y]);for(let y in u)u[y]!==0&&(r[m]+=y===m?u[y]:u[y]/this.matrix[m][y]);return normalizeValues$1(this.matrix,r),clone$1$1(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo(`years`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`):this}negate(){if(!this.isValid)return this;let o={};for(let r of Object.keys(this.values))o[r]=this.values[r]===0?0:-this.values[r];return clone$1$1(this,{values:o},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(o){if(!this.isValid||!o.isValid||!this.loc.equals(o.loc))return!1;function r(u,h){return u===void 0||u===0?h===void 0||h===0:u===h}for(let u of orderedUnits$1$1)if(!r(this.values[u],o.values[u]))return!1;return!0}};const INVALID$1$4=`Invalid Interval`;function validateStartEnd$1(t$5,o){return!t$5||!t$5.isValid?Interval$1.invalid(`missing or invalid start`):!o||!o.isValid?Interval$1.invalid(`missing or invalid end`):o<t$5?Interval$1.invalid(`end before start`,`The end of an interval must be after its start, but you had start=${t$5.toISO()} and end=${o.toISO()}`):null}var Interval$1=class Interval$1{constructor(o){this.s=o.start,this.e=o.end,this.invalid=o.invalid||null,this.isLuxonInterval=!0}static invalid(o,r=null){if(!o)throw new InvalidArgumentError$1(`need to specify a reason the Interval is invalid`);let u=o instanceof Invalid$1?o:new Invalid$1(o,r);if(Settings$1.throwOnInvalid)throw new InvalidIntervalError$1(u);return new Interval$1({invalid:u})}static fromDateTimes(o,r){let u=friendlyDateTime$1(o),h=friendlyDateTime$1(r),m=validateStartEnd$1(u,h);return m??new Interval$1({start:u,end:h})}static after(o,r){let u=Duration$1.fromDurationLike(r),h=friendlyDateTime$1(o);return Interval$1.fromDateTimes(h,h.plus(u))}static before(o,r){let u=Duration$1.fromDurationLike(r),h=friendlyDateTime$1(o);return Interval$1.fromDateTimes(h.minus(u),h)}static fromISO(o,r){let[u,h]=(o||``).split(`/`,2);if(u&&h){let m,y;try{m=DateTime$1.fromISO(u,r),y=m.isValid}catch{y=!1}let S,_;try{S=DateTime$1.fromISO(h,r),_=S.isValid}catch{_=!1}if(y&&_)return Interval$1.fromDateTimes(m,S);if(y){let C=Duration$1.fromISO(h,r);if(C.isValid)return Interval$1.after(m,C)}else if(_){let C=Duration$1.fromISO(u,r);if(C.isValid)return Interval$1.before(S,C)}}return Interval$1.invalid(`unparsable`,`the input "${o}" can't be parsed as ISO 8601`)}static isInterval(o){return o&&o.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(o=`milliseconds`){return this.isValid?this.toDuration(o).get(o):NaN}count(o=`milliseconds`,r){if(!this.isValid)return NaN;let u=this.start.startOf(o,r),h;return h=r!=null&&r.useLocaleWeeks?this.end.reconfigure({locale:u.locale}):this.end,h=h.startOf(o,r),Math.floor(h.diff(u,o).get(o))+(h.valueOf()!==this.end.valueOf())}hasSame(o){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,o):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(o){return this.isValid?this.s>o:!1}isBefore(o){return this.isValid?this.e<=o:!1}contains(o){return this.isValid?this.s<=o&&this.e>o:!1}set({start:o,end:r}={}){return this.isValid?Interval$1.fromDateTimes(o||this.s,r||this.e):this}splitAt(...o){if(!this.isValid)return[];let r=o.map(friendlyDateTime$1).filter(y=>this.contains(y)).sort((y,S)=>y.toMillis()-S.toMillis()),u=[],{s:h}=this,m=0;for(;h<this.e;){let y=r[m]||this.e,S=+y>+this.e?this.e:y;u.push(Interval$1.fromDateTimes(h,S)),h=S,m+=1}return u}splitBy(o){let r=Duration$1.fromDurationLike(o);if(!this.isValid||!r.isValid||r.as(`milliseconds`)===0)return[];let{s:u}=this,h=1,m,y=[];for(;u<this.e;){let S=this.start.plus(r.mapUnits(_=>_*h));m=+S>+this.e?this.e:S,y.push(Interval$1.fromDateTimes(u,m)),u=m,h+=1}return y}divideEqually(o){return this.isValid?this.splitBy(this.length()/o).slice(0,o):[]}overlaps(o){return this.e>o.s&&this.s<o.e}abutsStart(o){return this.isValid?+this.e==+o.s:!1}abutsEnd(o){return this.isValid?+o.e==+this.s:!1}engulfs(o){return this.isValid?this.s<=o.s&&this.e>=o.e:!1}equals(o){return!this.isValid||!o.isValid?!1:this.s.equals(o.s)&&this.e.equals(o.e)}intersection(o){if(!this.isValid)return this;let r=this.s>o.s?this.s:o.s,u=this.e<o.e?this.e:o.e;return r>=u?null:Interval$1.fromDateTimes(r,u)}union(o){if(!this.isValid)return this;let r=this.s<o.s?this.s:o.s,u=this.e>o.e?this.e:o.e;return Interval$1.fromDateTimes(r,u)}static merge(o){let[r,u]=o.sort((h,m)=>h.s-m.s).reduce(([h,m],y)=>m?m.overlaps(y)||m.abutsStart(y)?[h,m.union(y)]:[h.concat([m]),y]:[h,y],[[],null]);return u&&r.push(u),r}static xor(o){let r=null,u=0,h=[],m=o.map(_=>[{time:_.s,type:`s`},{time:_.e,type:`e`}]),y=Array.prototype.concat(...m),S=y.sort((_,C)=>_.time-C.time);for(let _ of S)u+=_.type===`s`?1:-1,u===1?r=_.time:(r&&+r!=+_.time&&h.push(Interval$1.fromDateTimes(r,_.time)),r=null);return Interval$1.merge(h)}difference(...o){return Interval$1.xor([this].concat(o)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1$4}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(o=DATE_SHORT$1,r={}){return this.isValid?Formatter$1.create(this.s.loc.clone(r),o).formatInterval(this):INVALID$1$4}toISO(o){return this.isValid?`${this.s.toISO(o)}/${this.e.toISO(o)}`:INVALID$1$4}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1$4}toISOTime(o){return this.isValid?`${this.s.toISOTime(o)}/${this.e.toISOTime(o)}`:INVALID$1$4}toFormat(o,{separator:r=` – `}={}){return this.isValid?`${this.s.toFormat(o)}${r}${this.e.toFormat(o)}`:INVALID$1$4}toDuration(o,r){return this.isValid?this.e.diff(this.s,o,r):Duration$1.invalid(this.invalidReason)}mapEndpoints(o){return Interval$1.fromDateTimes(o(this.s),o(this.e))}},Info$1=class{static hasDST(o=Settings$1.defaultZone){let r=DateTime$1.now().setZone(o).set({month:12});return!o.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(o){return IANAZone$1.isValidZone(o)}static normalizeZone(o){return normalizeZone$1(o,Settings$1.defaultZone)}static getStartOfWeek({locale:o=null,locObj:r=null}={}){return(r||Locale$1.create(o)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:o=null,locObj:r=null}={}){return(r||Locale$1.create(o)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:o=null,locObj:r=null}={}){return(r||Locale$1.create(o)).getWeekendDays().slice()}static months(o=`long`,{locale:r=null,numberingSystem:u=null,locObj:h=null,outputCalendar:m=`gregory`}={}){return(h||Locale$1.create(r,u,m)).months(o)}static monthsFormat(o=`long`,{locale:r=null,numberingSystem:u=null,locObj:h=null,outputCalendar:m=`gregory`}={}){return(h||Locale$1.create(r,u,m)).months(o,!0)}static weekdays(o=`long`,{locale:r=null,numberingSystem:u=null,locObj:h=null}={}){return(h||Locale$1.create(r,u,null)).weekdays(o)}static weekdaysFormat(o=`long`,{locale:r=null,numberingSystem:u=null,locObj:h=null}={}){return(h||Locale$1.create(r,u,null)).weekdays(o,!0)}static meridiems({locale:o=null}={}){return Locale$1.create(o).meridiems()}static eras(o=`short`,{locale:r=null}={}){return Locale$1.create(r,null,`gregory`).eras(o)}static features(){return{relative:hasRelative$1(),localeWeek:hasLocaleWeekInfo$1()}}};function dayDiff$1(t$5,o){let r=h=>h.toUTC(0,{keepLocalTime:!0}).startOf(`day`).valueOf(),u=r(o)-r(t$5);return Math.floor(Duration$1.fromMillis(u).as(`days`))}function highOrderDiffs$1(t$5,o,r){let u=[[`years`,(_,C)=>C.year-_.year],[`quarters`,(_,C)=>C.quarter-_.quarter+(C.year-_.year)*4],[`months`,(_,C)=>C.month-_.month+(C.year-_.year)*12],[`weeks`,(_,C)=>{let O=dayDiff$1(_,C);return(O-O%7)/7}],[`days`,dayDiff$1]],h={},m=t$5,y,S;for(let[_,C]of u)r.indexOf(_)>=0&&(y=_,h[_]=C(t$5,o),S=m.plus(h),S>o?(h[_]--,t$5=m.plus(h),t$5>o&&(S=t$5,h[_]--,t$5=m.plus(h))):t$5=S);return[t$5,h,S,y]}function diff$3(t$5,o,r,u){let[h,m,y,S]=highOrderDiffs$1(t$5,o,r),_=o-h,C=r.filter(I=>[`hours`,`minutes`,`seconds`,`milliseconds`].indexOf(I)>=0);C.length===0&&(y<o&&(y=h.plus({[S]:1})),y!==h&&(m[S]=(m[S]||0)+_/(y-h)));let O=Duration$1.fromObject(m,u);return C.length>0?Duration$1.fromMillis(_,u).shiftTo(...C).plus(O):O}const MISSING_FTP$1=`missing Intl.DateTimeFormat.formatToParts support`;function intUnit$1(t$5,o=r=>r){return{regex:t$5,deser:([r])=>o(parseDigits$1(r))}}const NBSP$1=`\xA0`,spaceOrNBSP$1=`[ ${NBSP$1}]`,spaceOrNBSPRegExp$1=new RegExp(spaceOrNBSP$1,`g`);function fixListRegex$1(t$5){return t$5.replace(/\./g,`\\.?`).replace(spaceOrNBSPRegExp$1,spaceOrNBSP$1)}function stripInsensitivities$1(t$5){return t$5.replace(/\./g,``).replace(spaceOrNBSPRegExp$1,` `).toLowerCase()}function oneOf$1(t$5,o){return t$5===null?null:{regex:RegExp(t$5.map(fixListRegex$1).join(`|`)),deser:([r])=>t$5.findIndex(u=>stripInsensitivities$1(r)===stripInsensitivities$1(u))+o}}function offset$1(t$5,o){return{regex:t$5,deser:([,r,u])=>signedOffset$1(r,u),groups:o}}function simple$1(t$5){return{regex:t$5,deser:([o])=>o}}function escapeToken$1(t$5){return t$5.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,`\\$&`)}function unitForToken$1(t$5,o){let r=digitRegex$1(o),u=digitRegex$1(o,`{2}`),h=digitRegex$1(o,`{3}`),m=digitRegex$1(o,`{4}`),y=digitRegex$1(o,`{6}`),S=digitRegex$1(o,`{1,2}`),_=digitRegex$1(o,`{1,3}`),C=digitRegex$1(o,`{1,6}`),O=digitRegex$1(o,`{1,9}`),I=digitRegex$1(o,`{2,4}`),R$1=digitRegex$1(o,`{4,6}`),U=Y=>({regex:RegExp(escapeToken$1(Y.val)),deser:([K])=>K,literal:!0}),G=(Y=>{if(t$5.literal)return U(Y);switch(Y.val){case`G`:return oneOf$1(o.eras(`short`),0);case`GG`:return oneOf$1(o.eras(`long`),0);case`y`:return intUnit$1(C);case`yy`:return intUnit$1(I,untruncateYear$1);case`yyyy`:return intUnit$1(m);case`yyyyy`:return intUnit$1(R$1);case`yyyyyy`:return intUnit$1(y);case`M`:return intUnit$1(S);case`MM`:return intUnit$1(u);case`MMM`:return oneOf$1(o.months(`short`,!0),1);case`MMMM`:return oneOf$1(o.months(`long`,!0),1);case`L`:return intUnit$1(S);case`LL`:return intUnit$1(u);case`LLL`:return oneOf$1(o.months(`short`,!1),1);case`LLLL`:return oneOf$1(o.months(`long`,!1),1);case`d`:return intUnit$1(S);case`dd`:return intUnit$1(u);case`o`:return intUnit$1(_);case`ooo`:return intUnit$1(h);case`HH`:return intUnit$1(u);case`H`:return intUnit$1(S);case`hh`:return intUnit$1(u);case`h`:return intUnit$1(S);case`mm`:return intUnit$1(u);case`m`:return intUnit$1(S);case`q`:return intUnit$1(S);case`qq`:return intUnit$1(u);case`s`:return intUnit$1(S);case`ss`:return intUnit$1(u);case`S`:return intUnit$1(_);case`SSS`:return intUnit$1(h);case`u`:return simple$1(O);case`uu`:return simple$1(S);case`uuu`:return intUnit$1(r);case`a`:return oneOf$1(o.meridiems(),0);case`kkkk`:return intUnit$1(m);case`kk`:return intUnit$1(I,untruncateYear$1);case`W`:return intUnit$1(S);case`WW`:return intUnit$1(u);case`E`:case`c`:return intUnit$1(r);case`EEE`:return oneOf$1(o.weekdays(`short`,!1),1);case`EEEE`:return oneOf$1(o.weekdays(`long`,!1),1);case`ccc`:return oneOf$1(o.weekdays(`short`,!0),1);case`cccc`:return oneOf$1(o.weekdays(`long`,!0),1);case`Z`:case`ZZ`:return offset$1(RegExp(`([+-]${S.source})(?::(${u.source}))?`),2);case`ZZZ`:return offset$1(RegExp(`([+-]${S.source})(${u.source})?`),2);case`z`:return simple$1(/[a-z_+-/]{1,256}?/i);case` `:return simple$1(/[^\S\n\r]/);default:return U(Y)}})(t$5)||{invalidReason:MISSING_FTP$1};return G.token=t$5,G}const partTypeStyleToTokenVal$1={year:{"2-digit":`yy`,numeric:`yyyyy`},month:{numeric:`M`,"2-digit":`MM`,short:`MMM`,long:`MMMM`},day:{numeric:`d`,"2-digit":`dd`},weekday:{short:`EEE`,long:`EEEE`},dayperiod:`a`,dayPeriod:`a`,hour12:{numeric:`h`,"2-digit":`hh`},hour24:{numeric:`H`,"2-digit":`HH`},minute:{numeric:`m`,"2-digit":`mm`},second:{numeric:`s`,"2-digit":`ss`},timeZoneName:{long:`ZZZZZ`,short:`ZZZ`}};function tokenForPart$1(t$5,o,r){let{type:u,value:h}=t$5;if(u===`literal`){let _=/^\s+$/.test(h);return{literal:!_,val:_?` `:h}}let m=o[u],y=u;u===`hour`&&(y=o.hour12==null?o.hourCycle==null?r.hour12?`hour12`:`hour24`:o.hourCycle===`h11`||o.hourCycle===`h12`?`hour12`:`hour24`:o.hour12?`hour12`:`hour24`);let S=partTypeStyleToTokenVal$1[y];if(typeof S==`object`&&(S=S[m]),S)return{literal:!1,val:S}}function buildRegex$1(t$5){return[`^${t$5.map(r=>r.regex).reduce((r,u)=>`${r}(${u.source})`,``)}$`,t$5]}function match$1(t$5,o,r){let u=t$5.match(o);if(u){let h={},m=1;for(let y in r)if(hasOwnProperty$1(r,y)){let S=r[y],_=S.groups?S.groups+1:1;!S.literal&&S.token&&(h[S.token.val[0]]=S.deser(u.slice(m,m+_))),m+=_}return[u,h]}else return[u,{}]}function dateTimeFromMatches$1(t$5){let o=m=>{switch(m){case`S`:return`millisecond`;case`s`:return`second`;case`m`:return`minute`;case`h`:case`H`:return`hour`;case`d`:return`day`;case`o`:return`ordinal`;case`L`:case`M`:return`month`;case`y`:return`year`;case`E`:case`c`:return`weekday`;case`W`:return`weekNumber`;case`k`:return`weekYear`;case`q`:return`quarter`;default:return null}},r=null,u;return isUndefined$1(t$5.z)||(r=IANAZone$1.create(t$5.z)),isUndefined$1(t$5.Z)||(r||=new FixedOffsetZone$1(t$5.Z),u=t$5.Z),isUndefined$1(t$5.q)||(t$5.M=(t$5.q-1)*3+1),isUndefined$1(t$5.h)||(t$5.h<12&&t$5.a===1?t$5.h+=12:t$5.h===12&&t$5.a===0&&(t$5.h=0)),t$5.G===0&&t$5.y&&(t$5.y=-t$5.y),isUndefined$1(t$5.u)||(t$5.S=parseMillis$1(t$5.u)),[Object.keys(t$5).reduce((m,y)=>{let S=o(y);return S&&(m[S]=t$5[y]),m},{}),r,u]}let dummyDateTimeCache$1=null;function getDummyDateTime$1(){return dummyDateTimeCache$1||=DateTime$1.fromMillis(1555555555555),dummyDateTimeCache$1}function maybeExpandMacroToken$1(t$5,o){if(t$5.literal)return t$5;let r=Formatter$1.macroTokenToFormatOpts(t$5.val),u=formatOptsToTokens$1(r,o);return u==null||u.includes(void 0)?t$5:u}function expandMacroTokens$1(t$5,o){return Array.prototype.concat(...t$5.map(r=>maybeExpandMacroToken$1(r,o)))}var TokenParser$1=class{constructor(o,r){if(this.locale=o,this.format=r,this.tokens=expandMacroTokens$1(Formatter$1.parseFormat(r),o),this.units=this.tokens.map(u=>unitForToken$1(u,o)),this.disqualifyingUnit=this.units.find(u=>u.invalidReason),!this.disqualifyingUnit){let[u,h]=buildRegex$1(this.units);this.regex=RegExp(u,`i`),this.handlers=h}}explainFromTokens(o){if(this.isValid){let[r,u]=match$1(o,this.regex,this.handlers),[h,m,y]=u?dateTimeFromMatches$1(u):[null,null,void 0];if(hasOwnProperty$1(u,`a`)&&hasOwnProperty$1(u,`H`))throw new ConflictingSpecificationError$1(`Can't include meridiem when specifying 24-hour format`);return{input:o,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:u,result:h,zone:m,specificOffset:y}}else return{input:o,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function explainFromTokens$1(t$5,o,r){return new TokenParser$1(t$5,r).explainFromTokens(o)}function parseFromTokens$1(t$5,o,r){let{result:u,zone:h,specificOffset:m,invalidReason:y}=explainFromTokens$1(t$5,o,r);return[u,h,m,y]}function formatOptsToTokens$1(t$5,o){if(!t$5)return null;let u=Formatter$1.create(o,t$5).dtFormatter(getDummyDateTime$1()),h=u.formatToParts(),m=u.resolvedOptions();return h.map(y=>tokenForPart$1(y,t$5,m))}const INVALID$5=`Invalid DateTime`,MAX_DATE$1=864e13;function unsupportedZone$1(t$5){return new Invalid$1(`unsupported zone`,`the zone "${t$5.name}" is not supported`)}function possiblyCachedWeekData$1(t$5){return t$5.weekData===null&&(t$5.weekData=gregorianToWeek$1(t$5.c)),t$5.weekData}function possiblyCachedLocalWeekData$1(t$5){return t$5.localWeekData===null&&(t$5.localWeekData=gregorianToWeek$1(t$5.c,t$5.loc.getMinDaysInFirstWeek(),t$5.loc.getStartOfWeek())),t$5.localWeekData}function clone$2(t$5,o){let r={ts:t$5.ts,zone:t$5.zone,c:t$5.c,o:t$5.o,loc:t$5.loc,invalid:t$5.invalid};return new DateTime$1({...r,...o,old:r})}function fixOffset$1(t$5,o,r){let u=t$5-o*60*1e3,h=r.offset(u);if(o===h)return[u,o];u-=(h-o)*60*1e3;let m=r.offset(u);return h===m?[u,h]:[t$5-Math.min(h,m)*60*1e3,Math.max(h,m)]}function tsToObj$1(t$5,o){t$5+=o*60*1e3;let r=new Date(t$5);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS$1(t$5,o,r){return fixOffset$1(objToLocalTS$1(t$5),o,r)}function adjustTime$1(t$5,o){let r=t$5.o,u=t$5.c.year+Math.trunc(o.years),h=t$5.c.month+Math.trunc(o.months)+Math.trunc(o.quarters)*3,m={...t$5.c,year:u,month:h,day:Math.min(t$5.c.day,daysInMonth$1(u,h))+Math.trunc(o.days)+Math.trunc(o.weeks)*7},y=Duration$1.fromObject({years:o.years-Math.trunc(o.years),quarters:o.quarters-Math.trunc(o.quarters),months:o.months-Math.trunc(o.months),weeks:o.weeks-Math.trunc(o.weeks),days:o.days-Math.trunc(o.days),hours:o.hours,minutes:o.minutes,seconds:o.seconds,milliseconds:o.milliseconds}).as(`milliseconds`),S=objToLocalTS$1(m),[_,C]=fixOffset$1(S,r,t$5.zone);return y!==0&&(_+=y,C=t$5.zone.offset(_)),{ts:_,o:C}}function parseDataToDateTime$1(t$5,o,r,u,h,m){let{setZone:y,zone:S}=r;if(t$5&&Object.keys(t$5).length!==0||o){let _=o||S,C=DateTime$1.fromObject(t$5,{...r,zone:_,specificOffset:m});return y?C:C.setZone(S)}else return DateTime$1.invalid(new Invalid$1(`unparsable`,`the input "${h}" can't be parsed as ${u}`))}function toTechFormat$1(t$5,o,r=!0){return t$5.isValid?Formatter$1.create(Locale$1.create(`en-US`),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t$5,o):null}function toISODate$1(t$5,o){let r=t$5.c.year>9999||t$5.c.year<0,u=``;return r&&t$5.c.year>=0&&(u+=`+`),u+=padStart$1(t$5.c.year,r?6:4),o?(u+=`-`,u+=padStart$1(t$5.c.month),u+=`-`,u+=padStart$1(t$5.c.day)):(u+=padStart$1(t$5.c.month),u+=padStart$1(t$5.c.day)),u}function toISOTime$1(t$5,o,r,u,h,m){let y=padStart$1(t$5.c.hour);return o?(y+=`:`,y+=padStart$1(t$5.c.minute),(t$5.c.millisecond!==0||t$5.c.second!==0||!r)&&(y+=`:`)):y+=padStart$1(t$5.c.minute),(t$5.c.millisecond!==0||t$5.c.second!==0||!r)&&(y+=padStart$1(t$5.c.second),(t$5.c.millisecond!==0||!u)&&(y+=`.`,y+=padStart$1(t$5.c.millisecond,3))),h&&(t$5.isOffsetFixed&&t$5.offset===0&&!m?y+=`Z`:t$5.o<0?(y+=`-`,y+=padStart$1(Math.trunc(-t$5.o/60)),y+=`:`,y+=padStart$1(Math.trunc(-t$5.o%60))):(y+=`+`,y+=padStart$1(Math.trunc(t$5.o/60)),y+=`:`,y+=padStart$1(Math.trunc(t$5.o%60)))),m&&(y+=`[`+t$5.zone.ianaName+`]`),y}const defaultUnitValues$1={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues$1={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues$1={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits$2=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],orderedWeekUnits$1=[`weekYear`,`weekNumber`,`weekday`,`hour`,`minute`,`second`,`millisecond`],orderedOrdinalUnits$1=[`year`,`ordinal`,`hour`,`minute`,`second`,`millisecond`];function normalizeUnit$1(t$5){let o={year:`year`,years:`year`,month:`month`,months:`month`,day:`day`,days:`day`,hour:`hour`,hours:`hour`,minute:`minute`,minutes:`minute`,quarter:`quarter`,quarters:`quarter`,second:`second`,seconds:`second`,millisecond:`millisecond`,milliseconds:`millisecond`,weekday:`weekday`,weekdays:`weekday`,weeknumber:`weekNumber`,weeksnumber:`weekNumber`,weeknumbers:`weekNumber`,weekyear:`weekYear`,weekyears:`weekYear`,ordinal:`ordinal`}[t$5.toLowerCase()];if(!o)throw new InvalidUnitError$1(t$5);return o}function normalizeUnitWithLocalWeeks$1(t$5){switch(t$5.toLowerCase()){case`localweekday`:case`localweekdays`:return`localWeekday`;case`localweeknumber`:case`localweeknumbers`:return`localWeekNumber`;case`localweekyear`:case`localweekyears`:return`localWeekYear`;default:return normalizeUnit$1(t$5)}}function guessOffsetForZone$1(t$5){if(zoneOffsetTs$1===void 0&&(zoneOffsetTs$1=Settings$1.now()),t$5.type!==`iana`)return t$5.offset(zoneOffsetTs$1);let o=t$5.name,r=zoneOffsetGuessCache$1.get(o);return r===void 0&&(r=t$5.offset(zoneOffsetTs$1),zoneOffsetGuessCache$1.set(o,r)),r}function quickDT$1(t$5,o){let r=normalizeZone$1(o.zone,Settings$1.defaultZone);if(!r.isValid)return DateTime$1.invalid(unsupportedZone$1(r));let u=Locale$1.fromObject(o),h,m;if(isUndefined$1(t$5.year))h=Settings$1.now();else{for(let _ of orderedUnits$2)isUndefined$1(t$5[_])&&(t$5[_]=defaultUnitValues$1[_]);let y=hasInvalidGregorianData$1(t$5)||hasInvalidTimeData$1(t$5);if(y)return DateTime$1.invalid(y);let S=guessOffsetForZone$1(r);[h,m]=objToTS$1(t$5,S,r)}return new DateTime$1({ts:h,zone:r,loc:u,o:m})}function diffRelative$1(t$5,o,r){let u=isUndefined$1(r.round)?!0:r.round,h=(y,S)=>(y=roundTo$1(y,u||r.calendary?0:2,!0),o.loc.clone(r).relFormatter(r).format(y,S)),m=y=>r.calendary?o.hasSame(t$5,y)?0:o.startOf(y).diff(t$5.startOf(y),y).get(y):o.diff(t$5,y).get(y);if(r.unit)return h(m(r.unit),r.unit);for(let y of r.units){let S=m(y);if(Math.abs(S)>=1)return h(S,y)}return h(t$5>o?-0:0,r.units[r.units.length-1])}function lastOpts$1(t$5){let o={},r;return t$5.length>0&&typeof t$5[t$5.length-1]==`object`?(o=t$5[t$5.length-1],r=Array.from(t$5).slice(0,t$5.length-1)):r=Array.from(t$5),[o,r]}let zoneOffsetTs$1;const zoneOffsetGuessCache$1=new Map;var DateTime$1=class DateTime$1{constructor(o){let r=o.zone||Settings$1.defaultZone,u=o.invalid||(Number.isNaN(o.ts)?new Invalid$1(`invalid input`):null)||(r.isValid?null:unsupportedZone$1(r));this.ts=isUndefined$1(o.ts)?Settings$1.now():o.ts;let h=null,m=null;if(!u)if(o.old&&o.old.ts===this.ts&&o.old.zone.equals(r))[h,m]=[o.old.c,o.old.o];else{let S=isNumber$1(o.o)&&!o.old?o.o:r.offset(this.ts);h=tsToObj$1(this.ts,S),u=Number.isNaN(h.year)?new Invalid$1(`invalid input`):null,h=u?null:h,m=u?null:S}this._zone=r,this.loc=o.loc||Locale$1.create(),this.invalid=u,this.weekData=null,this.localWeekData=null,this.c=h,this.o=m,this.isLuxonDateTime=!0}static now(){return new DateTime$1({})}static local(){let[o,r]=lastOpts$1(arguments),[u,h,m,y,S,_,C]=r;return quickDT$1({year:u,month:h,day:m,hour:y,minute:S,second:_,millisecond:C},o)}static utc(){let[o,r]=lastOpts$1(arguments),[u,h,m,y,S,_,C]=r;return o.zone=FixedOffsetZone$1.utcInstance,quickDT$1({year:u,month:h,day:m,hour:y,minute:S,second:_,millisecond:C},o)}static fromJSDate(o,r={}){let u=isDate$1(o)?o.valueOf():NaN;if(Number.isNaN(u))return DateTime$1.invalid(`invalid input`);let h=normalizeZone$1(r.zone,Settings$1.defaultZone);return h.isValid?new DateTime$1({ts:u,zone:h,loc:Locale$1.fromObject(r)}):DateTime$1.invalid(unsupportedZone$1(h))}static fromMillis(o,r={}){if(isNumber$1(o))return o<-MAX_DATE$1||o>MAX_DATE$1?DateTime$1.invalid(`Timestamp out of range`):new DateTime$1({ts:o,zone:normalizeZone$1(r.zone,Settings$1.defaultZone),loc:Locale$1.fromObject(r)});throw new InvalidArgumentError$1(`fromMillis requires a numerical input, but received a ${typeof o} with value ${o}`)}static fromSeconds(o,r={}){if(isNumber$1(o))return new DateTime$1({ts:o*1e3,zone:normalizeZone$1(r.zone,Settings$1.defaultZone),loc:Locale$1.fromObject(r)});throw new InvalidArgumentError$1(`fromSeconds requires a numerical input`)}static fromObject(o,r={}){o||={};let u=normalizeZone$1(r.zone,Settings$1.defaultZone);if(!u.isValid)return DateTime$1.invalid(unsupportedZone$1(u));let h=Locale$1.fromObject(r),m=normalizeObject$1(o,normalizeUnitWithLocalWeeks$1),{minDaysInFirstWeek:y,startOfWeek:S}=usesLocalWeekValues$1(m,h),_=Settings$1.now(),C=isUndefined$1(r.specificOffset)?u.offset(_):r.specificOffset,O=!isUndefined$1(m.ordinal),I=!isUndefined$1(m.year),R$1=!isUndefined$1(m.month)||!isUndefined$1(m.day),U=I||R$1,F=m.weekYear||m.weekNumber;if((U||O)&&F)throw new ConflictingSpecificationError$1(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(R$1&&O)throw new ConflictingSpecificationError$1(`Can't mix ordinal dates with month/day`);let G=F||m.weekday&&!U,Y,K,te$1=tsToObj$1(_,C);G?(Y=orderedWeekUnits$1,K=defaultWeekUnitValues$1,te$1=gregorianToWeek$1(te$1,y,S)):O?(Y=orderedOrdinalUnits$1,K=defaultOrdinalUnitValues$1,te$1=gregorianToOrdinal$1(te$1)):(Y=orderedUnits$2,K=defaultUnitValues$1);let de=!1;for(let re$5 of Y){let fe=m[re$5];isUndefined$1(fe)?de?m[re$5]=K[re$5]:m[re$5]=te$1[re$5]:de=!0}let me=G?hasInvalidWeekData$1(m,y,S):O?hasInvalidOrdinalData$1(m):hasInvalidGregorianData$1(m),q=me||hasInvalidTimeData$1(m);if(q)return DateTime$1.invalid(q);let ge=G?weekToGregorian$1(m,y,S):O?ordinalToGregorian$1(m):m,[ce,pe]=objToTS$1(ge,C,u),oe=new DateTime$1({ts:ce,zone:u,o:pe,loc:h});return m.weekday&&U&&o.weekday!==oe.weekday?DateTime$1.invalid(`mismatched weekday`,`you can't specify both a weekday of ${m.weekday} and a date of ${oe.toISO()}`):oe.isValid?oe:DateTime$1.invalid(oe.invalid)}static fromISO(o,r={}){let[u,h]=parseISODate$1(o);return parseDataToDateTime$1(u,h,r,`ISO 8601`,o)}static fromRFC2822(o,r={}){let[u,h]=parseRFC2822Date$1(o);return parseDataToDateTime$1(u,h,r,`RFC 2822`,o)}static fromHTTP(o,r={}){let[u,h]=parseHTTPDate$1(o);return parseDataToDateTime$1(u,h,r,`HTTP`,r)}static fromFormat(o,r,u={}){if(isUndefined$1(o)||isUndefined$1(r))throw new InvalidArgumentError$1(`fromFormat requires an input string and a format`);let{locale:h=null,numberingSystem:m=null}=u,y=Locale$1.fromOpts({locale:h,numberingSystem:m,defaultToEN:!0}),[S,_,C,O]=parseFromTokens$1(y,o,r);return O?DateTime$1.invalid(O):parseDataToDateTime$1(S,_,u,`format ${r}`,o,C)}static fromString(o,r,u={}){return DateTime$1.fromFormat(o,r,u)}static fromSQL(o,r={}){let[u,h]=parseSQL$1(o);return parseDataToDateTime$1(u,h,r,`SQL`,o)}static invalid(o,r=null){if(!o)throw new InvalidArgumentError$1(`need to specify a reason the DateTime is invalid`);let u=o instanceof Invalid$1?o:new Invalid$1(o,r);if(Settings$1.throwOnInvalid)throw new InvalidDateTimeError$1(u);return new DateTime$1({invalid:u})}static isDateTime(o){return o&&o.isLuxonDateTime||!1}static parseFormatForOpts(o,r={}){let u=formatOptsToTokens$1(o,Locale$1.fromObject(r));return u?u.map(h=>h?h.val:null).join(``):null}static expandFormat(o,r={}){return expandMacroTokens$1(Formatter$1.parseFormat(o),Locale$1.fromObject(r)).map(h=>h.val).join(``)}static resetCache(){zoneOffsetTs$1=void 0,zoneOffsetGuessCache$1.clear()}get(o){return this[o]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData$1(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData$1(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData$1(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal$1(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info$1.months(`short`,{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info$1.months(`long`,{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info$1.weekdays(`short`,{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info$1.weekdays(`long`,{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:`short`,locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:`long`,locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let o=864e5,r=6e4,u=objToLocalTS$1(this.c),h=this.zone.offset(u-o),m=this.zone.offset(u+o),y=this.zone.offset(u-h*r),S=this.zone.offset(u-m*r);if(y===S)return[this];let _=u-y*r,C=u-S*r,O=tsToObj$1(_,y),I=tsToObj$1(C,S);return O.hour===I.hour&&O.minute===I.minute&&O.second===I.second&&O.millisecond===I.millisecond?[clone$2(this,{ts:_}),clone$2(this,{ts:C})]:[this]}get isInLeapYear(){return isLeapYear$1(this.year)}get daysInMonth(){return daysInMonth$1(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear$1(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear$1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear$1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(o={}){let{locale:r,numberingSystem:u,calendar:h}=Formatter$1.create(this.loc.clone(o),o).resolvedOptions(this);return{locale:r,numberingSystem:u,outputCalendar:h}}toUTC(o=0,r={}){return this.setZone(FixedOffsetZone$1.instance(o),r)}toLocal(){return this.setZone(Settings$1.defaultZone)}setZone(o,{keepLocalTime:r=!1,keepCalendarTime:u=!1}={}){if(o=normalizeZone$1(o,Settings$1.defaultZone),o.equals(this.zone))return this;if(o.isValid){let h=this.ts;if(r||u){let m=o.offset(this.ts),y=this.toObject();[h]=objToTS$1(y,m,o)}return clone$2(this,{ts:h,zone:o})}else return DateTime$1.invalid(unsupportedZone$1(o))}reconfigure({locale:o,numberingSystem:r,outputCalendar:u}={}){let h=this.loc.clone({locale:o,numberingSystem:r,outputCalendar:u});return clone$2(this,{loc:h})}setLocale(o){return this.reconfigure({locale:o})}set(o){if(!this.isValid)return this;let r=normalizeObject$1(o,normalizeUnitWithLocalWeeks$1),{minDaysInFirstWeek:u,startOfWeek:h}=usesLocalWeekValues$1(r,this.loc),m=!isUndefined$1(r.weekYear)||!isUndefined$1(r.weekNumber)||!isUndefined$1(r.weekday),y=!isUndefined$1(r.ordinal),S=!isUndefined$1(r.year),_=!isUndefined$1(r.month)||!isUndefined$1(r.day),C=S||_,O=r.weekYear||r.weekNumber;if((C||y)&&O)throw new ConflictingSpecificationError$1(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(_&&y)throw new ConflictingSpecificationError$1(`Can't mix ordinal dates with month/day`);let I;m?I=weekToGregorian$1({...gregorianToWeek$1(this.c,u,h),...r},u,h):isUndefined$1(r.ordinal)?(I={...this.toObject(),...r},isUndefined$1(r.day)&&(I.day=Math.min(daysInMonth$1(I.year,I.month),I.day))):I=ordinalToGregorian$1({...gregorianToOrdinal$1(this.c),...r});let[R$1,U]=objToTS$1(I,this.o,this.zone);return clone$2(this,{ts:R$1,o:U})}plus(o){if(!this.isValid)return this;let r=Duration$1.fromDurationLike(o);return clone$2(this,adjustTime$1(this,r))}minus(o){if(!this.isValid)return this;let r=Duration$1.fromDurationLike(o).negate();return clone$2(this,adjustTime$1(this,r))}startOf(o,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let u={},h=Duration$1.normalizeUnit(o);switch(h){case`years`:u.month=1;case`quarters`:case`months`:u.day=1;case`weeks`:case`days`:u.hour=0;case`hours`:u.minute=0;case`minutes`:u.second=0;case`seconds`:u.millisecond=0;break}if(h===`weeks`)if(r){let m=this.loc.getStartOfWeek(),{weekday:y}=this;y<m&&(u.weekNumber=this.weekNumber-1),u.weekday=m}else u.weekday=1;if(h===`quarters`){let m=Math.ceil(this.month/3);u.month=(m-1)*3+1}return this.set(u)}endOf(o,r){return this.isValid?this.plus({[o]:1}).startOf(o,r).minus(1):this}toFormat(o,r={}){return this.isValid?Formatter$1.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,o):INVALID$5}toLocaleString(o=DATE_SHORT$1,r={}){return this.isValid?Formatter$1.create(this.loc.clone(r),o).formatDateTime(this):INVALID$5}toLocaleParts(o={}){return this.isValid?Formatter$1.create(this.loc.clone(o),o).formatDateTimeParts(this):[]}toISO({format:o=`extended`,suppressSeconds:r=!1,suppressMilliseconds:u=!1,includeOffset:h=!0,extendedZone:m=!1}={}){if(!this.isValid)return null;let y=o===`extended`,S=toISODate$1(this,y);return S+=`T`,S+=toISOTime$1(this,y,r,u,h,m),S}toISODate({format:o=`extended`}={}){return this.isValid?toISODate$1(this,o===`extended`):null}toISOWeekDate(){return toTechFormat$1(this,`kkkk-'W'WW-c`)}toISOTime({suppressMilliseconds:o=!1,suppressSeconds:r=!1,includeOffset:u=!0,includePrefix:h=!1,extendedZone:m=!1,format:y=`extended`}={}){return this.isValid?(h?`T`:``)+toISOTime$1(this,y===`extended`,r,o,u,m):null}toRFC2822(){return toTechFormat$1(this,`EEE, dd LLL yyyy HH:mm:ss ZZZ`,!1)}toHTTP(){return toTechFormat$1(this.toUTC(),`EEE, dd LLL yyyy HH:mm:ss 'GMT'`)}toSQLDate(){return this.isValid?toISODate$1(this,!0):null}toSQLTime({includeOffset:o=!0,includeZone:r=!1,includeOffsetSpace:u=!0}={}){let h=`HH:mm:ss.SSS`;return(r||o)&&(u&&(h+=` `),r?h+=`z`:o&&(h+=`ZZ`)),toTechFormat$1(this,h,!0)}toSQL(o={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(o)}`:null}toString(){return this.isValid?this.toISO():INVALID$5}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(o={}){if(!this.isValid)return{};let r={...this.c};return o.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(o,r=`milliseconds`,u={}){if(!this.isValid||!o.isValid)return Duration$1.invalid(`created by diffing an invalid DateTime`);let h={locale:this.locale,numberingSystem:this.numberingSystem,...u},m=maybeArray$1(r).map(Duration$1.normalizeUnit),y=o.valueOf()>this.valueOf(),S=y?this:o,_=y?o:this,C=diff$3(S,_,m,h);return y?C.negate():C}diffNow(o=`milliseconds`,r={}){return this.diff(DateTime$1.now(),o,r)}until(o){return this.isValid?Interval$1.fromDateTimes(this,o):this}hasSame(o,r,u){if(!this.isValid)return!1;let h=o.valueOf(),m=this.setZone(o.zone,{keepLocalTime:!0});return m.startOf(r,u)<=h&&h<=m.endOf(r,u)}equals(o){return this.isValid&&o.isValid&&this.valueOf()===o.valueOf()&&this.zone.equals(o.zone)&&this.loc.equals(o.loc)}toRelative(o={}){if(!this.isValid)return null;let r=o.base||DateTime$1.fromObject({},{zone:this.zone}),u=o.padding?this<r?-o.padding:o.padding:0,h=[`years`,`months`,`days`,`hours`,`minutes`,`seconds`],m=o.unit;return Array.isArray(o.unit)&&(h=o.unit,m=void 0),diffRelative$1(r,this.plus(u),{...o,numeric:`always`,units:h,unit:m})}toRelativeCalendar(o={}){return this.isValid?diffRelative$1(o.base||DateTime$1.fromObject({},{zone:this.zone}),this,{...o,numeric:`auto`,units:[`years`,`months`,`days`],calendary:!0}):null}static min(...o){if(!o.every(DateTime$1.isDateTime))throw new InvalidArgumentError$1(`min requires all arguments be DateTimes`);return bestBy$1(o,r=>r.valueOf(),Math.min)}static max(...o){if(!o.every(DateTime$1.isDateTime))throw new InvalidArgumentError$1(`max requires all arguments be DateTimes`);return bestBy$1(o,r=>r.valueOf(),Math.max)}static fromFormatExplain(o,r,u={}){let{locale:h=null,numberingSystem:m=null}=u,y=Locale$1.fromOpts({locale:h,numberingSystem:m,defaultToEN:!0});return explainFromTokens$1(y,o,r)}static fromStringExplain(o,r,u={}){return DateTime$1.fromFormatExplain(o,r,u)}static buildFormatParser(o,r={}){let{locale:u=null,numberingSystem:h=null}=r,m=Locale$1.fromOpts({locale:u,numberingSystem:h,defaultToEN:!0});return new TokenParser$1(m,o)}static fromFormatParser(o,r,u={}){if(isUndefined$1(o)||isUndefined$1(r))throw new InvalidArgumentError$1(`fromFormatParser requires an input string and a format parser`);let{locale:h=null,numberingSystem:m=null}=u,y=Locale$1.fromOpts({locale:h,numberingSystem:m,defaultToEN:!0});if(!y.equals(r.locale))throw new InvalidArgumentError$1(`fromFormatParser called with a locale of ${y}, but the format parser was created for ${r.locale}`);let{result:S,zone:_,specificOffset:C,invalidReason:O}=r.explainFromTokens(o);return O?DateTime$1.invalid(O):parseDataToDateTime$1(S,_,u,`format ${r.format}`,o,C)}static get DATE_SHORT(){return DATE_SHORT$1}static get DATE_MED(){return DATE_MED$1}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY$1}static get DATE_FULL(){return DATE_FULL$1}static get DATE_HUGE(){return DATE_HUGE$1}static get TIME_SIMPLE(){return TIME_SIMPLE$1}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS$1}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET$1}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET$1}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE$1}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS$1}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET$1}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET$1}static get DATETIME_SHORT(){return DATETIME_SHORT$1}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS$1}static get DATETIME_MED(){return DATETIME_MED$1}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS$1}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY$1}static get DATETIME_FULL(){return DATETIME_FULL$1}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS$1}static get DATETIME_HUGE(){return DATETIME_HUGE$1}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS$1}};function friendlyDateTime$1(t$5){if(DateTime$1.isDateTime(t$5))return t$5;if(t$5&&t$5.valueOf&&isNumber$1(t$5.valueOf()))return DateTime$1.fromJSDate(t$5);if(t$5&&typeof t$5==`object`)return DateTime$1.fromObject(t$5);throw new InvalidArgumentError$1(`Unknown datetime argument: ${t$5}, of type ${typeof t$5}`)}const countries=Object.freeze(new Map([[`AD`,`Andorra`],[`AE`,`United Arab Emirates`],[`AF`,`Afghanistan`],[`AG`,`Antigua and Barbuda`],[`AI`,`Anguilla`],[`AL`,`Albania`],[`AM`,`Armenia`],[`AO`,`Angola`],[`AQ`,`Antarctica`],[`AR`,`Argentina`],[`AS`,`American Samoa`],[`AT`,`Austria`],[`AU`,`Australia`],[`AW`,`Aruba`],[`AX`,`Aland Islands`],[`AZ`,`Azerbaijan`],[`BA`,`Bosnia and Herzegovina`],[`BB`,`Barbados`],[`BD`,`Bangladesh`],[`BE`,`Belgium`],[`BF`,`Burkina Faso`],[`BG`,`Bulgaria`],[`BH`,`Bahrain`],[`BI`,`Burundi`],[`BJ`,`Benin`],[`BL`,`Saint Barthelemy`],[`BM`,`Bermuda`],[`BN`,`Brunei`],[`BO`,`Bolivia`],[`BQ`,`Bonaire, Saint Eustatius and Saba`],[`BR`,`Brazil`],[`BS`,`Bahamas`],[`BT`,`Bhutan`],[`BV`,`Bouvet Island`],[`BW`,`Botswana`],[`BY`,`Belarus`],[`BZ`,`Belize`],[`CA`,`Canada`],[`CC`,`Cocos Islands`],[`CD`,`Democratic Republic of the Congo`],[`CF`,`Central African Republic`],[`CG`,`Republic of the Congo`],[`CH`,`Switzerland`],[`CI`,`Ivory Coast`],[`CK`,`Cook Islands`],[`CL`,`Chile`],[`CM`,`Cameroon`],[`CN`,`China`],[`CO`,`Colombia`],[`CR`,`Costa Rica`],[`CU`,`Cuba`],[`CV`,`Cape Verde`],[`CW`,`Curacao`],[`CX`,`Christmas Island`],[`CY`,`Cyprus`],[`CZ`,`Czech Republic`],[`DE`,`Germany`],[`DJ`,`Djibouti`],[`DK`,`Denmark`],[`DM`,`Dominica`],[`DO`,`Dominican Republic`],[`DZ`,`Algeria`],[`EC`,`Ecuador`],[`EE`,`Estonia`],[`EG`,`Egypt`],[`EH`,`Western Sahara`],[`ER`,`Eritrea`],[`ES`,`Spain`],[`ET`,`Ethiopia`],[`FI`,`Finland`],[`FJ`,`Fiji`],[`FK`,`Falkland Islands`],[`FM`,`Micronesia`],[`FO`,`Faroe Islands`],[`FR`,`France`],[`GA`,`Gabon`],[`GB`,`United Kingdom`],[`GD`,`Grenada`],[`GE`,`Georgia`],[`GF`,`French Guiana`],[`GG`,`Guernsey`],[`GH`,`Ghana`],[`GI`,`Gibraltar`],[`GL`,`Greenland`],[`GM`,`Gambia`],[`GN`,`Guinea`],[`GP`,`Guadeloupe`],[`GQ`,`Equatorial Guinea`],[`GR`,`Greece`],[`GS`,`South Georgia and the South Sandwich Islands`],[`GT`,`Guatemala`],[`GU`,`Guam`],[`GW`,`Guinea-Bissau`],[`GY`,`Guyana`],[`HK`,`Hong Kong`],[`HM`,`Heard Island and McDonald Islands`],[`HN`,`Honduras`],[`HR`,`Croatia`],[`HT`,`Haiti`],[`HU`,`Hungary`],[`ID`,`Indonesia`],[`IE`,`Ireland`],[`IL`,`Israel`],[`IM`,`Isle of Man`],[`IN`,`India`],[`IO`,`British Indian Ocean Territory`],[`IQ`,`Iraq`],[`IR`,`Iran`],[`IS`,`Iceland`],[`IT`,`Italy`],[`JE`,`Jersey`],[`JM`,`Jamaica`],[`JO`,`Jordan`],[`JP`,`Japan`],[`KE`,`Kenya`],[`KG`,`Kyrgyzstan`],[`KH`,`Cambodia`],[`KI`,`Kiribati`],[`KM`,`Comoros`],[`KN`,`Saint Kitts and Nevis`],[`KP`,`North Korea`],[`KR`,`South Korea`],[`KW`,`Kuwait`],[`KY`,`Cayman Islands`],[`KZ`,`Kazakhstan`],[`LA`,`Laos`],[`LB`,`Lebanon`],[`LC`,`Saint Lucia`],[`LI`,`Liechtenstein`],[`LK`,`Sri Lanka`],[`LR`,`Liberia`],[`LS`,`Lesotho`],[`LT`,`Lithuania`],[`LU`,`Luxembourg`],[`LV`,`Latvia`],[`LY`,`Libya`],[`MA`,`Morocco`],[`MC`,`Monaco`],[`MD`,`Moldova`],[`ME`,`Montenegro`],[`MF`,`Saint Martin`],[`MG`,`Madagascar`],[`MH`,`Marshall Islands`],[`MK`,`Macedonia`],[`ML`,`Mali`],[`MM`,`Myanmar`],[`MN`,`Mongolia`],[`MO`,`Macao`],[`MP`,`Northern Mariana Islands`],[`MQ`,`Martinique`],[`MR`,`Mauritania`],[`MS`,`Montserrat`],[`MT`,`Malta`],[`MU`,`Mauritius`],[`MV`,`Maldives`],[`MW`,`Malawi`],[`MX`,`Mexico`],[`MY`,`Malaysia`],[`MZ`,`Mozambique`],[`NA`,`Namibia`],[`NC`,`New Caledonia`],[`NE`,`Niger`],[`NF`,`Norfolk Island`],[`NG`,`Nigeria`],[`NI`,`Nicaragua`],[`NL`,`Netherlands`],[`NO`,`Norway`],[`NP`,`Nepal`],[`NR`,`Nauru`],[`NU`,`Niue`],[`NZ`,`New Zealand`],[`OM`,`Oman`],[`PA`,`Panama`],[`PE`,`Peru`],[`PF`,`French Polynesia`],[`PG`,`Papua New Guinea`],[`PH`,`Philippines`],[`PK`,`Pakistan`],[`PL`,`Poland`],[`PM`,`Saint Pierre and Miquelon`],[`PN`,`Pitcairn`],[`PR`,`Puerto Rico`],[`PS`,`Palestinian Territory`],[`PT`,`Portugal`],[`PW`,`Palau`],[`PY`,`Paraguay`],[`QA`,`Qatar`],[`RE`,`Reunion`],[`RO`,`Romania`],[`RS`,`Serbia`],[`RU`,`Russia`],[`RW`,`Rwanda`],[`SA`,`Saudi Arabia`],[`SB`,`Solomon Islands`],[`SC`,`Seychelles`],[`SD`,`Sudan`],[`SE`,`Sweden`],[`SG`,`Singapore`],[`SH`,`Saint Helena`],[`SI`,`Slovenia`],[`SJ`,`Svalbard and Jan Mayen`],[`SK`,`Slovakia`],[`SL`,`Sierra Leone`],[`SM`,`San Marino`],[`SN`,`Senegal`],[`SO`,`Somalia`],[`SR`,`Suriname`],[`SS`,`South Sudan`],[`ST`,`Sao Tome and Principe`],[`SV`,`El Salvador`],[`SX`,`Sint Maarten`],[`SY`,`Syria`],[`SZ`,`Swaziland`],[`TC`,`Turks and Caicos Islands`],[`TD`,`Chad`],[`TF`,`French Southern Territories`],[`TG`,`Togo`],[`TH`,`Thailand`],[`TJ`,`Tajikistan`],[`TK`,`Tokelau`],[`TL`,`East Timor`],[`TM`,`Turkmenistan`],[`TN`,`Tunisia`],[`TO`,`Tonga`],[`TR`,`Turkey`],[`TT`,`Trinidad and Tobago`],[`TV`,`Tuvalu`],[`TW`,`Taiwan`],[`TZ`,`Tanzania`],[`UA`,`Ukraine`],[`UG`,`Uganda`],[`UM`,`United States Minor Outlying Islands`],[`US`,`United States`],[`UY`,`Uruguay`],[`UZ`,`Uzbekistan`],[`VA`,`Vatican`],[`VC`,`Saint Vincent and the Grenadines`],[`VE`,`Venezuela`],[`VG`,`British Virgin Islands`],[`VI`,`U.S. Virgin Islands`],[`VN`,`Vietnam`],[`VU`,`Vanuatu`],[`WF`,`Wallis and Futuna`],[`WS`,`Samoa`],[`XK`,`Kosovo`],[`YE`,`Yemen`],[`YT`,`Mayotte`],[`ZA`,`South Africa`],[`ZM`,`Zambia`],[`ZW`,`Zimbabwe`]])),timezones=Object.freeze(new Map([[`AD`,`Europe/Andorra`],[`AE`,`Asia/Dubai`],[`AF`,`Asia/Kabul`],[`AG`,`America/Antigua`],[`AI`,`America/Anguilla`],[`AL`,`Europe/Tirane`],[`AM`,`Asia/Yerevan`],[`AO`,`Africa/Luanda`],[`AQ`,`Antarctica/Casey`],[`AR`,`America/Argentina/Buenos_Aires`],[`AS`,`Pacific/Pago_Pago`],[`AT`,`Europe/Vienna`],[`AU`,`Australia/Sydney`],[`AW`,`America/Aruba`],[`AX`,`Europe/Mariehamn`],[`AZ`,`Asia/Baku`],[`BA`,`Europe/Sarajevo`],[`BB`,`America/Barbados`],[`BD`,`Asia/Dhaka`],[`BE`,`Europe/Brussels`],[`BF`,`Africa/Ouagadougou`],[`BG`,`Europe/Sofia`],[`BH`,`Asia/Bahrain`],[`BI`,`Africa/Bujumbura`],[`BJ`,`Africa/Porto-Novo`],[`BL`,`America/St_Barthelemy`],[`BM`,`Atlantic/Bermuda`],[`BN`,`Asia/Brunei`],[`BO`,`America/La_Paz`],[`BQ`,`America/Kralendijk`],[`BR`,`America/Sao_Paulo`],[`BS`,`America/Nassau`],[`BT`,`Asia/Thimphu`],[`BW`,`Africa/Gaborone`],[`BY`,`Europe/Minsk`],[`BZ`,`America/Belize`],[`CA`,`America/Toronto`],[`CC`,`Indian/Cocos`],[`CD`,`Africa/Kinshasa`],[`CF`,`Africa/Bangui`],[`CG`,`Africa/Brazzaville`],[`CH`,`Europe/Zurich`],[`CI`,`Africa/Abidjan`],[`CK`,`Pacific/Rarotonga`],[`CL`,`America/Santiago`],[`CM`,`Africa/Douala`],[`CN`,`Asia/Shanghai`],[`CO`,`America/Bogota`],[`CR`,`America/Costa_Rica`],[`CU`,`America/Havana`],[`CV`,`Atlantic/Cape_Verde`],[`CW`,`America/Curacao`],[`CX`,`Indian/Christmas`],[`CY`,`Asia/Nicosia`],[`CZ`,`Europe/Prague`],[`DE`,`Europe/Berlin`],[`DJ`,`Africa/Djibouti`],[`DK`,`Europe/Copenhagen`],[`DM`,`America/Dominica`],[`DO`,`America/Santo_Domingo`],[`DZ`,`Africa/Algiers`],[`EC`,`America/Guayaquil`],[`EE`,`Europe/Tallinn`],[`EG`,`Africa/Cairo`],[`EH`,`Africa/El_Aaiun`],[`ER`,`Africa/Asmara`],[`ES`,`Europe/Madrid`],[`ET`,`Africa/Addis_Ababa`],[`FI`,`Europe/Helsinki`],[`FJ`,`Pacific/Fiji`],[`FK`,`Atlantic/Stanley`],[`FM`,`Pacific/Pohnpei`],[`FO`,`Atlantic/Faroe`],[`FR`,`Europe/Paris`],[`GA`,`Africa/Libreville`],[`GB`,`Europe/London`],[`GD`,`America/Grenada`],[`GE`,`Asia/Tbilisi`],[`GF`,`America/Cayenne`],[`GG`,`Europe/Guernsey`],[`GH`,`Africa/Accra`],[`GI`,`Europe/Gibraltar`],[`GL`,`America/Godthab`],[`GM`,`Africa/Banjul`],[`GN`,`Africa/Conakry`],[`GP`,`America/Guadeloupe`],[`GQ`,`Africa/Malabo`],[`GR`,`Europe/Athens`],[`GS`,`Atlantic/South_Georgia`],[`GT`,`America/Guatemala`],[`GU`,`Pacific/Guam`],[`GW`,`Africa/Bissau`],[`GY`,`America/Guyana`],[`HK`,`Asia/Hong_Kong`],[`HN`,`America/Tegucigalpa`],[`HR`,`Europe/Zagreb`],[`HT`,`America/Port-au-Prince`],[`HU`,`Europe/Budapest`],[`ID`,`Asia/Jakarta`],[`IE`,`Europe/Dublin`],[`IL`,`Asia/Jerusalem`],[`IM`,`Europe/Isle_of_Man`],[`IN`,`Asia/Kolkata`],[`IO`,`Indian/Chagos`],[`IQ`,`Asia/Baghdad`],[`IR`,`Asia/Tehran`],[`IS`,`Atlantic/Reykjavik`],[`IT`,`Europe/Rome`],[`JE`,`Europe/Jersey`],[`JM`,`America/Jamaica`],[`JO`,`Asia/Amman`],[`JP`,`Asia/Tokyo`],[`KE`,`Africa/Nairobi`],[`KG`,`Asia/Bishkek`],[`KH`,`Asia/Phnom_Penh`],[`KI`,`Pacific/Tarawa`],[`KM`,`Indian/Comoro`],[`KN`,`America/St_Kitts`],[`KP`,`Asia/Pyongyang`],[`KR`,`Asia/Seoul`],[`KW`,`Asia/Kuwait`],[`KY`,`America/Cayman`],[`KZ`,`Asia/Almaty`],[`LA`,`Asia/Vientiane`],[`LB`,`Asia/Beirut`],[`LC`,`America/St_Lucia`],[`LI`,`Europe/Vaduz`],[`LK`,`Asia/Colombo`],[`LR`,`Africa/Monrovia`],[`LS`,`Africa/Maseru`],[`LT`,`Europe/Vilnius`],[`LU`,`Europe/Luxembourg`],[`LV`,`Europe/Riga`],[`LY`,`Africa/Tripoli`],[`MA`,`Africa/Casablanca`],[`MC`,`Europe/Monaco`],[`MD`,`Europe/Chisinau`],[`ME`,`Europe/Podgorica`],[`MF`,`America/Marigot`],[`MG`,`Indian/Antananarivo`],[`MH`,`Pacific/Majuro`],[`MK`,`Europe/Skopje`],[`ML`,`Africa/Bamako`],[`MM`,`Asia/Yangon`],[`MN`,`Asia/Ulaanbaatar`],[`MO`,`Asia/Macau`],[`MP`,`Pacific/Saipan`],[`MQ`,`America/Martinique`],[`MR`,`Africa/Nouakchott`],[`MS`,`America/Montserrat`],[`MT`,`Europe/Malta`],[`MU`,`Indian/Mauritius`],[`MV`,`Indian/Maldives`],[`MW`,`Africa/Blantyre`],[`MX`,`America/Mexico_City`],[`MY`,`Asia/Kuala_Lumpur`],[`MZ`,`Africa/Maputo`],[`NA`,`Africa/Windhoek`],[`NC`,`Pacific/Noumea`],[`NE`,`Africa/Niamey`],[`NF`,`Pacific/Norfolk`],[`NG`,`Africa/Lagos`],[`NI`,`America/Managua`],[`NL`,`Europe/Amsterdam`],[`NO`,`Europe/Oslo`],[`NP`,`Asia/Kathmandu`],[`NR`,`Pacific/Nauru`],[`NU`,`Pacific/Niue`],[`NZ`,`Pacific/Auckland`],[`OM`,`Asia/Muscat`],[`PA`,`America/Panama`],[`PE`,`America/Lima`],[`PF`,`Pacific/Tahiti`],[`PG`,`Pacific/Port_Moresby`],[`PH`,`Asia/Manila`],[`PK`,`Asia/Karachi`],[`PL`,`Europe/Warsaw`],[`PM`,`America/Miquelon`],[`PN`,`Pacific/Pitcairn`],[`PR`,`America/Puerto_Rico`],[`PS`,`Asia/Gaza`],[`PT`,`Europe/Lisbon`],[`PW`,`Pacific/Palau`],[`PY`,`America/Asuncion`],[`QA`,`Asia/Qatar`],[`RE`,`Indian/Reunion`],[`RO`,`Europe/Bucharest`],[`RS`,`Europe/Belgrade`],[`RU`,`Europe/Moscow`],[`RW`,`Africa/Kigali`],[`SA`,`Asia/Riyadh`],[`SB`,`Pacific/Guadalcanal`],[`SC`,`Indian/Mahe`],[`SD`,`Africa/Khartoum`],[`SE`,`Europe/Stockholm`],[`SG`,`Asia/Singapore`],[`SH`,`Atlantic/St_Helena`],[`SI`,`Europe/Ljubljana`],[`SJ`,`Arctic/Longyearbyen`],[`SK`,`Europe/Bratislava`],[`SL`,`Africa/Freetown`],[`SM`,`Europe/San_Marino`],[`SN`,`Africa/Dakar`],[`SO`,`Africa/Mogadishu`],[`SR`,`America/Paramaribo`],[`SS`,`Africa/Juba`],[`ST`,`Africa/Sao_Tome`],[`SV`,`America/El_Salvador`],[`SX`,`America/Lower_Princes`],[`SY`,`Asia/Damascus`],[`SZ`,`Africa/Mbabane`],[`TC`,`America/Grand_Turk`],[`TD`,`Africa/Ndjamena`],[`TF`,`Indian/Kerguelen`],[`TG`,`Africa/Lome`],[`TH`,`Asia/Bangkok`],[`TJ`,`Asia/Dushanbe`],[`TK`,`Pacific/Fakaofo`],[`TL`,`Asia/Dili`],[`TM`,`Asia/Ashgabat`],[`TN`,`Africa/Tunis`],[`TO`,`Pacific/Tongatapu`],[`TR`,`Europe/Istanbul`],[`TT`,`America/Port_of_Spain`],[`TV`,`Pacific/Funafuti`],[`TW`,`Asia/Taipei`],[`TZ`,`Africa/Dar_es_Salaam`],[`UA`,`Europe/Kiev`],[`UG`,`Africa/Kampala`],[`UM`,`Pacific/Wake`],[`US`,`America/New_York`],[`UY`,`America/Montevideo`],[`UZ`,`Asia/Tashkent`],[`VA`,`Europe/Vatican`],[`VC`,`America/St_Vincent`],[`VE`,`America/Caracas`],[`VG`,`America/Tortola`],[`VI`,`America/St_Thomas`],[`VN`,`Asia/Ho_Chi_Minh`],[`VU`,`Pacific/Efate`],[`WF`,`Pacific/Wallis`],[`WS`,`Pacific/Apia`],[`YE`,`Asia/Aden`],[`YT`,`Indian/Mayotte`],[`ZA`,`Africa/Johannesburg`],[`ZM`,`Africa/Lusaka`],[`ZW`,`Africa/Harare`]])),getNumberOrUndefined=t$5=>{let o=Number(t$5);return Number.isNaN(o)?void 0:o},isos=Object.freeze(new Set([...countries.keys()]));function getCountriesWithSpecificTime(t$5,o,r){let u={minute:t$5};typeof o==`object`?u={...o}:o!==void 0&&(u.hourOfDay=o,r&&(u={...u,...r}));let h={year:getNumberOrUndefined(u.year),month:getNumberOrUndefined(u.monthOfYear),day:getNumberOrUndefined(u.dayOfMonth),hour:getNumberOrUndefined(u.hourOfDay),minute:getNumberOrUndefined(u.minute),second:0,millisecond:0},m=DateTime$1.fromObject(h),y=[],_=Object.keys(h).filter(C=>typeof h[C]<`u`&&![`second`,`millisecond`].includes(C));return timezones.forEach((C,O)=>{let I=DateTime$1.now().setZone(C);_.filter(U=>{let F=m.toObject()[U],G=I.toObject()[U];return F===G}).length===_.length&&y.push(O)}),y}const areaCodeMap={201:`US`,202:`US`,203:`US`,204:`CA`,205:`US`,206:`US`,207:`US`,208:`US`,209:`US`,210:`US`,212:`US`,213:`US`,214:`US`,215:`US`,216:`US`,217:`US`,218:`US`,219:`US`,220:`US`,223:`US`,224:`US`,225:`US`,226:`CA`,227:`US`,228:`US`,229:`US`,231:`US`,234:`US`,236:`CA`,239:`US`,240:`US`,242:`BS`,246:`BB`,248:`US`,249:`CA`,250:`CA`,251:`US`,252:`US`,253:`US`,254:`US`,256:`US`,260:`US`,262:`US`,263:`CA`,264:`AI`,267:`US`,268:`AG`,269:`US`,270:`US`,272:`US`,276:`US`,279:`US`,281:`US`,283:`US`,284:`VG`,289:`CA`,301:`US`,302:`US`,303:`US`,304:`US`,305:`US`,306:`CA`,307:`US`,308:`US`,309:`US`,310:`US`,312:`US`,313:`US`,314:`US`,315:`US`,316:`US`,317:`US`,318:`US`,319:`US`,320:`US`,321:`US`,323:`US`,325:`US`,326:`US`,329:`US`,330:`US`,331:`US`,332:`US`,334:`US`,336:`US`,337:`US`,339:`US`,340:`VI`,341:`US`,343:`CA`,345:`KY`,346:`US`,347:`US`,350:`US`,351:`US`,352:`US`,354:`CA`,360:`US`,361:`US`,364:`US`,365:`CA`,367:`CA`,368:`CA`,369:`US`,380:`US`,382:`CA`,385:`US`,386:`US`,401:`US`,402:`US`,403:`CA`,404:`US`,405:`US`,406:`US`,407:`US`,408:`US`,409:`US`,410:`US`,412:`US`,413:`US`,414:`US`,415:`US`,416:`CA`,417:`US`,418:`CA`,419:`US`,423:`US`,424:`US`,425:`US`,428:`CA`,430:`US`,431:`CA`,432:`US`,434:`US`,435:`US`,437:`CA`,438:`CA`,440:`US`,441:`BM`,442:`US`,443:`US`,445:`US`,447:`US`,448:`US`,450:`CA`,458:`US`,463:`US`,464:`US`,468:`CA`,469:`US`,470:`US`,473:`GD`,474:`CA`,475:`US`,478:`US`,479:`US`,480:`US`,484:`US`,500:`US`,501:`US`,502:`US`,503:`US`,504:`US`,505:`US`,506:`CA`,507:`US`,508:`US`,509:`US`,510:`US`,512:`US`,513:`US`,514:`CA`,515:`US`,516:`US`,517:`US`,518:`US`,519:`CA`,520:`US`,521:`US`,522:`US`,525:`US`,526:`US`,527:`US`,528:`US`,529:`US`,530:`US`,531:`US`,533:`US`,534:`US`,539:`US`,540:`US`,541:`US`,544:`US`,548:`CA`,551:`US`,557:`US`,559:`US`,561:`US`,562:`US`,563:`US`,564:`US`,566:`US`,567:`US`,570:`US`,571:`US`,572:`US`,573:`US`,574:`US`,575:`US`,577:`US`,579:`CA`,580:`US`,581:`CA`,582:`US`,584:`CA`,585:`US`,586:`US`,587:`CA`,588:`US`,600:`CA`,601:`US`,602:`US`,603:`US`,604:`CA`,605:`US`,606:`US`,607:`US`,608:`US`,609:`US`,610:`US`,612:`US`,613:`CA`,614:`US`,615:`US`,616:`US`,617:`US`,618:`US`,619:`US`,620:`US`,622:`CA`,623:`US`,626:`US`,628:`US`,629:`US`,630:`US`,631:`US`,636:`US`,639:`CA`,640:`US`,641:`US`,646:`US`,647:`CA`,649:`TC`,650:`US`,651:`US`,656:`US`,657:`US`,658:`JM`,659:`US`,660:`US`,661:`US`,662:`US`,664:`MS`,667:`US`,669:`US`,670:`MP`,671:`GU`,672:`CA`,678:`US`,680:`US`,681:`US`,682:`US`,683:`CA`,684:`AS`,689:`US`,701:`US`,702:`US`,703:`US`,704:`US`,705:`CA`,706:`US`,707:`US`,708:`US`,709:`CA`,712:`US`,713:`US`,714:`US`,715:`US`,716:`US`,717:`US`,718:`US`,719:`US`,720:`US`,721:`SX`,724:`US`,725:`US`,726:`US`,727:`US`,731:`US`,732:`US`,734:`US`,737:`US`,740:`US`,742:`CA`,743:`US`,747:`US`,753:`CA`,754:`US`,757:`US`,758:`LC`,760:`US`,762:`US`,763:`US`,765:`US`,767:`DM`,769:`US`,770:`US`,771:`US`,772:`US`,773:`US`,774:`US`,775:`US`,778:`CA`,779:`US`,780:`CA`,781:`US`,782:`CA`,784:`VC`,785:`US`,786:`US`,787:`PR`,800:`US`,801:`US`,802:`US`,803:`US`,804:`US`,805:`US`,806:`US`,807:`CA`,808:`US`,809:`DO`,810:`US`,812:`US`,813:`US`,814:`US`,815:`US`,816:`US`,817:`US`,818:`US`,819:`CA`,820:`US`,825:`CA`,826:`US`,828:`US`,829:`DO`,830:`US`,831:`US`,832:`US`,833:`US`,835:`US`,838:`US`,839:`US`,840:`US`,843:`US`,844:`US`,845:`US`,847:`US`,848:`US`,849:`DO`,850:`US`,854:`US`,855:`US`,856:`US`,857:`US`,858:`US`,859:`US`,860:`US`,862:`US`,863:`US`,864:`US`,865:`US`,866:`US`,867:`CA`,868:`TT`,869:`KN`,870:`US`,872:`US`,873:`CA`,876:`JM`,877:`US`,878:`US`,888:`US`,900:`US`,901:`US`,902:`CA`,903:`US`,904:`US`,905:`CA`,906:`US`,907:`US`,908:`US`,909:`US`,910:`US`,912:`US`,913:`US`,914:`US`,915:`US`,916:`US`,917:`US`,918:`US`,919:`US`,920:`US`,925:`US`,928:`US`,929:`US`,930:`US`,931:`US`,934:`US`,936:`US`,937:`US`,938:`US`,939:`PR`,940:`US`,941:`US`,943:`US`,945:`US`,947:`US`,948:`US`,949:`US`,951:`US`,952:`US`,954:`US`,956:`US`,959:`US`,970:`US`,971:`US`,972:`US`,973:`US`,978:`US`,979:`US`,980:`US`,984:`US`,985:`US`,986:`US`,989:`US`},nanpaCountries=[`US`,`CA`,`BS`,`BB`,`AI`,`AG`,`VG`,`VI`,`KY`,`BM`,`GD`,`TC`,`JM`,`MS`,`MP`,`GU`,`AS`,`SX`,`LC`,`DM`,`VC`,`PR`,`DO`,`TT`,`KN`];for(var commonjsGlobal=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},allCountries=[[`Afghanistan (‫افغانستان‬‎)`,`af`,`93`,`+..-..-...-....`],[`Åland Islands`,`ax`,`358`,``],[`Albania (Shqipëri)`,`al`,`355`,`+...(...)...-...`],[`Algeria (‫الجزائر‬‎)`,`dz`,`213`,`+...-..-...-....`],[`American Samoa`,`as`,`1684`,`+.(...)...-....`],[`Andorra`,`ad`,`376`,`+...-...-...`],[`Angola`,`ao`,`244`,`+...(...)...-...`],[`Anguilla`,`ai`,`1264`,`+.(...)...-....`],[`Antarctica`,`aq`,`672`,``],[`Antigua and Barbuda`,`ag`,`1268`,`+.(...)...-....`],[`Argentina`,`ar`,`54`,`+..(...)...-....`],[`Armenia (Հայաստան)`,`am`,`374`,`+...-..-...-...`],[`Aruba`,`aw`,`297`,`+...-...-....`],[`Australia`,`au`,`61`,`+.. ... ... ...`],[`Austria (Österreich)`,`at`,`43`,`+..(...)...-....`],[`Azerbaijan (Azərbaycan)`,`az`,`994`,`+...-..-...-..-..`],[`Bahamas`,`bs`,`1242`,`+.(...)...-....`],[`Bahrain (‫البحرين‬‎)`,`bh`,`973`,`+...-....-....`],[`Bangladesh (বাংলাদেশ)`,`bd`,`880`,`+...-..-...-...`],[`Barbados`,`bb`,`1246`,`+.(...)...-....`],[`Belarus (Беларусь)`,`by`,`375`,`+...(..)...-..-..`],[`Belgium (België)`,`be`,`32`,`+.. ... .. .. ..`],[`Belize`,`bz`,`501`,`+...-...-....`],[`Benin (Bénin)`,`bj`,`229`,`+...-..-..-....`],[`Bermuda`,`bm`,`1441`,`+.(...)...-....`],[`Bhutan (འབྲུག)`,`bt`,`975`,`+...-.-...-...`],[`Bolivia`,`bo`,`591`,`+...-.-...-....`],[`Bosnia and Herzegovina (Босна и Херцеговина)`,`ba`,`387`,`+...-..-....`],[`Botswana`,`bw`,`267`,`+...-..-...-...`],[`Bouvet Island`,`bv`,`47`,``],[`Brazil (Brasil)`,`br`,`55`,`+..-..-....-....`],[`British Indian Ocean Territory`,`io`,`246`,`+...-...-....`],[`British Virgin Islands`,`vg`,`1284`,`+.(...)...-....`],[`Brunei`,`bn`,`673`,`+...-...-....`],[`Bulgaria (България)`,`bg`,`359`,`+...(...)...-...`],[`Burkina Faso`,`bf`,`226`,`+...-..-..-....`],[`Burundi (Uburundi)`,`bi`,`257`,`+...-..-..-....`],[`Cambodia (កម្ពុជា)`,`kh`,`855`,`+...-..-...-...`],[`Cameroon (Cameroun)`,`cm`,`237`,`+...-....-....`],[`Canada`,`ca`,`1`,`+. (...) ...-....`,1,`204.236.249.250.289.306.343.365.387.403.416.418.431.437.438.450.506.514.519.548.579.581.587.604.613.639.647.672.705.709.742.778.780.782.807.819.825.867.873.902.905`.split(`.`)],[`Cape Verde (Kabu Verdi)`,`cv`,`238`,`+...(...)..-..`],[`Caribbean Netherlands`,`bq`,`599`,`+...-...-....`,1],[`Cayman Islands`,`ky`,`1345`,`+.(...)...-....`],[`Central African Republic (République centrafricaine)`,`cf`,`236`,`+...-..-..-....`],[`Chad (Tchad)`,`td`,`235`,`+...-..-..-..-..`],[`Chile`,`cl`,`56`,`+..-.-....-....`],[`China (中国)`,`cn`,`86`,`+.. ..-........`],[`Christmas Island`,`cx`,`61`,``],[`Cocos (Keeling) Islands`,`cc`,`61`,``],[`Colombia`,`co`,`57`,`+..(...)...-....`],[`Comoros (‫جزر القمر‬‎)`,`km`,`269`,`+...-..-.....`],[`Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)`,`cd`,`243`,`+...(...)...-...`],[`Congo (Republic) (Congo-Brazzaville)`,`cg`,`242`,`+...-..-...-....`],[`Cook Islands`,`ck`,`682`,`+...-..-...`],[`Costa Rica`,`cr`,`506`,`+... ....-....`],[`Côte d’Ivoire`,`ci`,`225`,`+...-..-...-...`],[`Croatia (Hrvatska)`,`hr`,`385`,`+...-..-...-...`],[`Cuba`,`cu`,`53`,`+..-.-...-....`],[`Curaçao`,`cw`,`599`,`+...-...-....`,0],[`Cyprus (Κύπρος)`,`cy`,`357`,`+...-..-...-...`],[`Czech Republic (Česká republika)`,`cz`,`420`,`+...(...)...-...`],[`Denmark (Danmark)`,`dk`,`45`,`+.. .. .. .. ..`],[`Djibouti`,`dj`,`253`,`+...-..-..-..-..`],[`Dominica`,`dm`,`1767`,`+.(...)...-....`],[`Dominican Republic (República Dominicana)`,`do`,`1`,`+.(...)...-....`,2,[`809`,`829`,`849`]],[`Ecuador`,`ec`,`593`,`+...-.-...-....`],[`Egypt (‫مصر‬‎)`,`eg`,`20`,`+..(...)...-....`],[`El Salvador`,`sv`,`503`,`+... ....-....`],[`Equatorial Guinea (Guinea Ecuatorial)`,`gq`,`240`,`+...-..-...-....`],[`Eritrea`,`er`,`291`,`+...-.-...-...`],[`Estonia (Eesti)`,`ee`,`372`,`+...-...-....`],[`Ethiopia`,`et`,`251`,`+...-..-...-....`],[`Falkland Islands (Islas Malvinas)`,`fk`,`500`,`+...-.....`],[`Faroe Islands (Føroyar)`,`fo`,`298`,`+...-...-...`],[`Fiji`,`fj`,`679`,`+...-..-.....`],[`Finland (Suomi)`,`fi`,`358`,`+... .. .... ....`],[`France`,`fr`,`33`,`+.. . .. .. .. ..`],[`French Guiana (Guyane française)`,`gf`,`594`,`+...-.....-....`],[`French Polynesia (Polynésie française)`,`pf`,`689`,`+...-..-..-..`],[`French Southern and Antarctic Lands`,`tf`,`262`,``],[`Gabon`,`ga`,`241`,`+...-.-..-..-..`],[`Gambia`,`gm`,`220`,`+...(...)..-..`],[`Georgia (საქართველო)`,`ge`,`995`,`+...(...)...-...`],[`Germany (Deutschland)`,`de`,`49`,`+.. ... .......`],[`Ghana (Gaana)`,`gh`,`233`,`+...(...)...-...`],[`Gibraltar`,`gi`,`350`,`+...-...-.....`],[`Greece (Ελλάδα)`,`gr`,`30`,`+..(...)...-....`],[`Greenland (Kalaallit Nunaat)`,`gl`,`299`,`+...-..-..-..`],[`Grenada`,`gd`,`1473`,`+.(...)...-....`],[`Guadeloupe`,`gp`,`590`,``,0],[`Guam`,`gu`,`1671`,`+.(...)...-....`],[`Guatemala`,`gt`,`502`,`+... ....-....`],[`Guernsey`,`gg`,`44`,``],[`Guinea (Guinée)`,`gn`,`224`,`+...-..-...-...`],[`Guinea-Bissau (Guiné Bissau)`,`gw`,`245`,`+...-.-......`],[`Guyana`,`gy`,`592`,`+...-...-....`],[`Haiti`,`ht`,`509`,`+... ....-....`],[`Heard Island and McDonald Islands`,`hm`,`672`,``],[`Honduras`,`hn`,`504`,`+...-....-....`],[`Hong Kong (香港)`,`hk`,`852`,`+... .... ....`],[`Hungary (Magyarország)`,`hu`,`36`,`+..(...)...-...`],[`Iceland (Ísland)`,`is`,`354`,`+... ... ....`],[`India (भारत)`,`in`,`91`,`+.. .....-.....`],[`Indonesia`,`id`,`62`,`+..-..-...-..`],[`Iran (‫ایران‬‎)`,`ir`,`98`,`+..(...)...-....`],[`Iraq (‫العراق‬‎)`,`iq`,`964`,`+...(...)...-....`],[`Ireland`,`ie`,`353`,`+... .. .......`],[`Isle of Man`,`im`,`44`,``],[`Israel (‫ישראל‬‎)`,`il`,`972`,`+...-.-...-....`],[`Italy (Italia)`,`it`,`39`,`+.. ... ......`,0],[`Jamaica`,`jm`,`1876`,`+.(...)...-....`],[`Japan (日本)`,`jp`,`81`,`+.. ... .. ....`],[`Jersey`,`je`,`44`,``],[`Jordan (‫الأردن‬‎)`,`jo`,`962`,`+...-.-....-....`],[`Kazakhstan (Казахстан)`,`kz`,`7`,`+. ... ...-..-..`,1],[`Kenya`,`ke`,`254`,`+...-...-......`],[`Kiribati`,`ki`,`686`,`+...-..-...`],[`Kosovo`,`xk`,`383`,``],[`Kuwait (‫الكويت‬‎)`,`kw`,`965`,`+...-....-....`],[`Kyrgyzstan (Кыргызстан)`,`kg`,`996`,`+...(...)...-...`],[`Laos (ລາວ)`,`la`,`856`,`+...-..-...-...`],[`Latvia (Latvija)`,`lv`,`371`,`+...-..-...-...`],[`Lebanon (‫لبنان‬‎)`,`lb`,`961`,`+...-.-...-...`],[`Lesotho`,`ls`,`266`,`+...-.-...-....`],[`Liberia`,`lr`,`231`,`+...-..-...-...`],[`Libya (‫ليبيا‬‎)`,`ly`,`218`,`+...-..-...-...`],[`Liechtenstein`,`li`,`423`,`+...(...)...-....`],[`Lithuania (Lietuva)`,`lt`,`370`,`+...(...)..-...`],[`Luxembourg`,`lu`,`352`,`+...(...)...-...`],[`Macau (澳門)`,`mo`,`853`,`+...-....-....`],[`Macedonia (FYROM) (Македонија)`,`mk`,`389`,`+...-..-...-...`],[`Madagascar (Madagasikara)`,`mg`,`261`,`+...-..-..-.....`],[`Malawi`,`mw`,`265`,`+...-.-....-....`],[`Malaysia`,`my`,`60`,`+.. ..-....-....`],[`Maldives`,`mv`,`960`,`+...-...-....`],[`Mali`,`ml`,`223`,`+...-..-..-....`],[`Malta`,`mt`,`356`,`+...-....-....`],[`Marshall Islands`,`mh`,`692`,`+...-...-....`],[`Martinique`,`mq`,`596`,`+...(...)..-..-..`],[`Mauritania (‫موريتانيا‬‎)`,`mr`,`222`,`+...-..-..-....`],[`Mauritius (Moris)`,`mu`,`230`,`+...-...-....`],[`Mayotte`,`yt`,`262`,``],[`Mexico (México)`,`mx`,`52`,`+..-..-..-....`],[`Micronesia`,`fm`,`691`,`+...-...-....`],[`Moldova (Republica Moldova)`,`md`,`373`,`+...-....-....`],[`Monaco`,`mc`,`377`,`+...-..-...-...`],[`Mongolia (Монгол)`,`mn`,`976`,`+...-..-..-....`],[`Montenegro (Crna Gora)`,`me`,`382`,`+...-..-...-...`],[`Montserrat`,`ms`,`1664`,`+.(...)...-....`],[`Morocco (‫المغرب‬‎)`,`ma`,`212`,`+...-..-....-...`],[`Mozambique (Moçambique)`,`mz`,`258`,`+...-..-...-...`],[`Myanmar (Burma) (မြန်မာ)`,`mm`,`95`,`+..-...-...`],[`Namibia (Namibië)`,`na`,`264`,`+...-..-...-....`],[`Nauru`,`nr`,`674`,`+...-...-....`],[`Nepal (नेपाल)`,`np`,`977`,`+...-..-...-...`],[`Netherlands (Nederland)`,`nl`,`31`,`+.. .. ........`],[`New Caledonia (Nouvelle-Calédonie)`,`nc`,`687`,`+...-..-....`],[`New Zealand`,`nz`,`64`,`+.. ...-...-....`],[`Nicaragua`,`ni`,`505`,`+...-....-....`],[`Niger (Nijar)`,`ne`,`227`,`+...-..-..-....`],[`Nigeria`,`ng`,`234`,`+...-..-...-..`],[`Niue`,`nu`,`683`,`+...-....`],[`Norfolk Island`,`nf`,`672`,`+...-...-...`],[`North Korea (조선 민주주의 인민 공화국)`,`kp`,`850`,`+...-...-...`],[`Northern Mariana Islands`,`mp`,`1670`,`+.(...)...-....`],[`Norway (Norge)`,`no`,`47`,`+.. ... .. ...`],[`Oman (‫عُمان‬‎)`,`om`,`968`,`+...-..-...-...`],[`Pakistan (‫پاکستان‬‎)`,`pk`,`92`,`+.. ...-.......`],[`Palau`,`pw`,`680`,`+...-...-....`],[`Palestine (‫فلسطين‬‎)`,`ps`,`970`,`+...-..-...-....`],[`Panama (Panamá)`,`pa`,`507`,`+...-...-....`],[`Papua New Guinea`,`pg`,`675`,`+...(...)..-...`],[`Paraguay`,`py`,`595`,`+...(...)...-...`],[`Peru (Perú)`,`pe`,`51`,`+..(...)...-...`],[`Philippines`,`ph`,`63`,`+.. ... ....`],[`Pitcairn Islands`,`pn`,`64`,``],[`Poland (Polska)`,`pl`,`48`,`+.. ...-...-...`],[`Portugal`,`pt`,`351`,`+...-..-...-....`],[`Puerto Rico`,`pr`,`1`,`+. (...) ...-....`,3,[`787`,`939`]],[`Qatar (‫قطر‬‎)`,`qa`,`974`,`+...-....-....`],[`Réunion (La Réunion)`,`re`,`262`,`+...-.....-....`],[`Romania (România)`,`ro`,`40`,`+..-..-...-....`],[`Russia (Россия)`,`ru`,`7`,`+. ... ...-..-..`,0],[`Rwanda`,`rw`,`250`,`+...(...)...-...`],[`Saint Barthélemy (Saint-Barthélemy)`,`bl`,`590`,``,1],[`Saint Helena`,`sh`,`290`],[`Saint Kitts and Nevis`,`kn`,`1869`,`+.(...)...-....`],[`Saint Lucia`,`lc`,`1758`,`+.(...)...-....`],[`Saint Martin (Saint-Martin (partie française))`,`mf`,`590`,``,2],[`Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)`,`pm`,`508`],[`Saint Vincent and the Grenadines`,`vc`,`1784`,`+.(...)...-....`],[`Samoa`,`ws`,`685`,`+...-..-....`],[`San Marino`,`sm`,`378`,`+...-....-......`],[`São Tomé and Príncipe (São Tomé e Príncipe)`,`st`,`239`,`+...-..-.....`],[`Saudi Arabia (‫المملكة العربية السعودية‬‎)`,`sa`,`966`,`+...-..-...-....`],[`Senegal (Sénégal)`,`sn`,`221`,`+...-..-...-....`],[`Serbia (Србија)`,`rs`,`381`,`+...-..-...-....`],[`Seychelles`,`sc`,`248`,`+...-.-...-...`],[`Sierra Leone`,`sl`,`232`,`+...-..-......`],[`Singapore`,`sg`,`65`,`+.. ....-....`],[`Sint Maarten`,`sx`,`1721`,`+.(...)...-....`],[`Slovakia (Slovensko)`,`sk`,`421`,`+...(...)...-...`],[`Slovenia (Slovenija)`,`si`,`386`,`+...-..-...-...`],[`Solomon Islands`,`sb`,`677`,`+...-.....`],[`Somalia (Soomaaliya)`,`so`,`252`,`+...-.-...-...`],[`South Africa`,`za`,`27`,`+..-..-...-....`],[`South Georgia and the South Sandwich Islands`,`gs`,`500`,``],[`South Korea (대한민국)`,`kr`,`82`,`+..-..-...-....`],[`South Sudan (‫جنوب السودان‬‎)`,`ss`,`211`,`+...-..-...-....`],[`Spain (España)`,`es`,`34`,`+.. ... ... ...`],[`Sri Lanka (ශ්‍රී ලංකාව)`,`lk`,`94`,`+..-..-...-....`],[`Sudan (‫السودان‬‎)`,`sd`,`249`,`+...-..-...-....`],[`Suriname`,`sr`,`597`,`+...-...-...`],[`Svalbard and Jan Mayen`,`sj`,`47`,``],[`Swaziland`,`sz`,`268`,`+...-..-..-....`],[`Sweden (Sverige)`,`se`,`46`,`+.. .. ... .. ..`],[`Switzerland (Schweiz)`,`ch`,`41`,`+.. .. ... .. ..`],[`Syria (‫سوريا‬‎)`,`sy`,`963`,`+...-..-....-...`],[`Taiwan (台灣)`,`tw`,`886`,`+...-....-....`],[`Tajikistan`,`tj`,`992`,`+...-..-...-....`],[`Tanzania`,`tz`,`255`,`+...-..-...-....`],[`Thailand (ไทย)`,`th`,`66`,`+..-..-...-...`],[`Timor-Leste`,`tl`,`670`,`+...-...-....`],[`Togo`,`tg`,`228`,`+...-..-...-...`],[`Tokelau`,`tk`,`690`,`+...-....`],[`Tonga`,`to`,`676`,`+...-.....`],[`Trinidad and Tobago`,`tt`,`1868`,`+.(...)...-....`],[`Tunisia (‫تونس‬‎)`,`tn`,`216`,`+...-..-...-...`],[`Turkey (Türkiye)`,`tr`,`90`,`+.. ... ... .. ..`],[`Turkmenistan`,`tm`,`993`,`+...-.-...-....`],[`Turks and Caicos Islands`,`tc`,`1649`,`+.(...)...-....`],[`Tuvalu`,`tv`,`688`,`+...-.....`],[`U.S. Virgin Islands`,`vi`,`1340`,`+.(...)...-....`],[`Uganda`,`ug`,`256`,`+...(...)...-...`],[`Ukraine (Україна)`,`ua`,`380`,`+...(..)...-..-..`],[`United Arab Emirates (‫الإمارات العربية المتحدة‬‎)`,`ae`,`971`,`+...-.-...-....`],[`United Kingdom`,`gb`,`44`,`+.. .... ......`],[`United States`,`us`,`1`,`+. (...) ...-....`,0],[`United States Minor Outlying Islands`,`um`,`1`,``,2],[`Uruguay`,`uy`,`598`,`+...-.-...-..-..`],[`Uzbekistan (Oʻzbekiston)`,`uz`,`998`,`+...-..-...-....`],[`Vanuatu`,`vu`,`678`,`+...-.....`],[`Vatican City (Città del Vaticano)`,`va`,`39`,`+.. .. .... ....`,1],[`Venezuela`,`ve`,`58`,`+..(...)...-....`],[`Vietnam (Việt Nam)`,`vn`,`84`,`+..-..-....-...`],[`Wallis and Futuna`,`wf`,`681`,`+...-..-....`],[`Western Sahara`,`eh`,`212`,`+...-..-....`],[`Yemen (‫اليمن‬‎)`,`ye`,`967`,`+...-.-...-...`],[`Zambia`,`zm`,`260`,`+...-..-...-....`],[`Zimbabwe`,`zw`,`263`,`+...-.-......`]],allCountryCodes={},iso2Lookup={},addCountryCode=function(t$5,o,r){o in allCountryCodes||(allCountryCodes[o]=[]);var u=r||0;allCountryCodes[o][u]=t$5},i$1=0;i$1<allCountries.length;i$1++){var c=allCountries[i$1];if(allCountries[i$1]={name:c[0],iso2:c[1],dialCode:c[2],priority:c[4]||0},c[3]&&(allCountries[i$1].format=c[3]),c[5]){allCountries[i$1].hasAreaCodes=!0;for(var j=0;j<c[5].length;j++){var dialCode=c[2]+c[5][j];addCountryCode(c[1],dialCode)}}iso2Lookup[allCountries[i$1].iso2]=i$1,addCountryCode(c[1],c[2],c[4])}var country_telephone_data={allCountries,iso2Lookup,allCountryCodes};function commonjsRequire(t$5){throw Error(`Could not dynamically require "`+t$5+`". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.`)}var libphonenumber={exports:{}};libphonenumber.exports,function(module$1,exports$1){(function(t$5){module$1.exports=t$5()})(function(){return function(){function t$5(o,r,u){function h(S,_){if(!r[S]){if(!o[S]){var C=typeof commonjsRequire==`function`&&commonjsRequire;if(!_&&C)return C(S,!0);if(m)return m(S,!0);var O=Error(`Cannot find module '`+S+`'`);throw O.code=`MODULE_NOT_FOUND`,O}var I=r[S]={exports:{}};o[S][0].call(I.exports,function(R$1){var U=o[S][1][R$1];return h(U||R$1)},I,I.exports,t$5,o,r,u)}return r[S].exports}for(var m=typeof commonjsRequire==`function`&&commonjsRequire,y=0;y<u.length;y++)h(u[y]);return h}return t$5}()({1:[function(require$1,module$2,exports$2){(function(global$1){(function(){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.createTemplateTagFirstArg=function(t$5){return t$5.raw=t$5},$jscomp.createTemplateTagFirstArgWithRaw=function(t$5,o){return t$5.raw=o,t$5},$jscomp.arrayIteratorImpl=function(t$5){var o=0;return function(){return o<t$5.length?{done:!1,value:t$5[o++]}:{done:!0}}},$jscomp.arrayIterator=function(t$5){return{next:$jscomp.arrayIteratorImpl(t$5)}},$jscomp.makeIterator=function(t$5){var o=typeof Symbol<`u`&&Symbol.iterator&&t$5[Symbol.iterator];return o?o.call(t$5):$jscomp.arrayIterator(t$5)},$jscomp.arrayFromIterator=function(t$5){for(var o,r=[];!(o=t$5.next()).done;)r.push(o.value);return r},$jscomp.arrayFromIterable=function(t$5){return t$5 instanceof Array?t$5:$jscomp.arrayFromIterator($jscomp.makeIterator(t$5))},$jscomp.checkStringArgs=function(t$5,o,r){if(t$5==null)throw TypeError(`The 'this' value for String.prototype.`+r+` must not be null or undefined`);if(o instanceof RegExp)throw TypeError(`First argument to String.prototype.`+r+` must not be a regular expression`);return t$5+``},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties==`function`?Object.defineProperty:function(t$5,o,r){return t$5==Array.prototype||t$5==Object.prototype||(t$5[o]=r.value),t$5},$jscomp.getGlobal=function(t$5){t$5=[typeof globalThis==`object`&&globalThis,t$5,typeof window==`object`&&window,typeof self==`object`&&self,typeof global$1==`object`&&global$1];for(var o=0;o<t$5.length;++o){var r=t$5[o];if(r&&r.Math==Math)return r}throw Error(`Cannot find global object`)},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE=typeof Symbol==`function`&&typeof Symbol(`x`)==`symbol`,$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX=`$jscp$`,$jscomp.polyfill=function(t$5,o,r,u){o&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t$5,o,r,u):$jscomp.polyfillUnisolated(t$5,o,r,u))},$jscomp.polyfillUnisolated=function(t$5,o,r,u){for(r=$jscomp.global,t$5=t$5.split(`.`),u=0;u<t$5.length-1;u++){var h=t$5[u];if(!(h in r))return;r=r[h]}t$5=t$5[t$5.length-1],u=r[t$5],o=o(u),o!=u&&o!=null&&$jscomp.defineProperty(r,t$5,{configurable:!0,writable:!0,value:o})},$jscomp.polyfillIsolated=function(t$5,o,r,u){var h=t$5.split(`.`);t$5=h.length===1,u=h[0],u=!t$5&&u in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var m=0;m<h.length-1;m++){var y=h[m];if(!(y in u))return;u=u[y]}h=h[h.length-1],r=$jscomp.IS_SYMBOL_NATIVE&&r===`es6`?u[h]:null,o=o(r),o!=null&&(t$5?$jscomp.defineProperty($jscomp.polyfills,h,{configurable:!0,writable:!0,value:o}):o!==r&&($jscomp.propertyToPolyfillSymbol[h]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(h):$jscomp.POLYFILL_PREFIX+h,h=$jscomp.propertyToPolyfillSymbol[h],$jscomp.defineProperty(u,h,{configurable:!0,writable:!0,value:o})))},$jscomp.polyfill(`String.prototype.endsWith`,function(t$5){return t$5||function(o,r){var u=$jscomp.checkStringArgs(this,o,`endsWith`);o+=``,r===void 0&&(r=u.length),r=Math.max(0,Math.min(r|0,u.length));for(var h=o.length;0<h&&0<r;)if(u[--r]!=o[--h])return!1;return 0>=h}},`es6`,`es3`),$jscomp.findInternal=function(t$5,o,r){t$5 instanceof String&&(t$5=String(t$5));for(var u=t$5.length,h=0;h<u;h++){var m=t$5[h];if(o.call(r,m,h,t$5))return{i:h,v:m}}return{i:-1,v:void 0}},$jscomp.polyfill(`Array.prototype.find`,function(t$5){return t$5||function(o,r){return $jscomp.findInternal(this,o,r).v}},`es6`,`es3`),$jscomp.polyfill(`String.prototype.startsWith`,function(t$5){return t$5||function(o,r){var u=$jscomp.checkStringArgs(this,o,`startsWith`);o+=``;var h=u.length,m=o.length;r=Math.max(0,Math.min(r|0,u.length));for(var y=0;y<m&&r<h;)if(u[r++]!=o[y++])return!1;return y>=m}},`es6`,`es3`),$jscomp.polyfill(`String.prototype.repeat`,function(t$5){return t$5||function(o){var r=$jscomp.checkStringArgs(this,null,`repeat`);if(0>o||1342177279<o)throw RangeError(`Invalid count value`);o|=0;for(var u=``;o;)o&1&&(u+=r),(o>>>=1)&&(r+=r);return u}},`es6`,`es3`),$jscomp.initSymbol=function(){},$jscomp.polyfill(`Symbol`,function(t$5){if(t$5)return t$5;var o=function(h,m){this.$jscomp$symbol$id_=h,$jscomp.defineProperty(this,`description`,{configurable:!0,writable:!0,value:m})};o.prototype.toString=function(){return this.$jscomp$symbol$id_};var r=0,u=function(h){if(this instanceof u)throw TypeError(`Symbol is not a constructor`);return new o(`jscomp_symbol_`+(h||``)+`_`+ r++,h)};return u},`es6`,`es3`),$jscomp.polyfill(`Symbol.iterator`,function(t$5){if(t$5)return t$5;t$5=Symbol(`Symbol.iterator`);for(var o=`Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array`.split(` `),r=0;r<o.length;r++){var u=$jscomp.global[o[r]];typeof u==`function`&&typeof u.prototype[t$5]!=`function`&&$jscomp.defineProperty(u.prototype,t$5,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return t$5},`es6`,`es3`),$jscomp.iteratorPrototype=function(t$5){return t$5={next:t$5},t$5[Symbol.iterator]=function(){return this},t$5},$jscomp.iteratorFromArray=function(t$5,o){t$5 instanceof String&&(t$5+=``);var r=0,u=!1,h={next:function(){if(!u&&r<t$5.length){var m=r++;return{value:o(m,t$5[m]),done:!1}}return u=!0,{done:!0,value:void 0}}};return h[Symbol.iterator]=function(){return h},h},$jscomp.polyfill(`Array.prototype.keys`,function(t$5){return t$5||function(){return $jscomp.iteratorFromArray(this,function(o){return o})}},`es6`,`es3`),$jscomp.polyfill(`Object.is`,function(t$5){return t$5||function(o,r){return o===r?o!==0||1/o==1/r:o!==o&&r!==r}},`es6`,`es3`),$jscomp.polyfill(`Array.prototype.includes`,function(t$5){return t$5||function(o,r){var u=this;u instanceof String&&(u=String(u));var h=u.length;for(r||=0,0>r&&(r=Math.max(r+h,0));r<h;r++){var m=u[r];if(m===o||Object.is(m,o))return!0}return!1}},`es7`,`es3`),$jscomp.polyfill(`String.prototype.includes`,function(t$5){return t$5||function(o,r){return $jscomp.checkStringArgs(this,o,`includes`).indexOf(o,r||0)!==-1}},`es6`,`es3`);var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.exportPath_=function(t$5,o,r,u){t$5=t$5.split(`.`),u||=goog.global,t$5[0]in u||typeof u.execScript>`u`||u.execScript(`var `+t$5[0]);for(var h;t$5.length&&(h=t$5.shift());)if(t$5.length||o===void 0)u=u[h]&&u[h]!==Object.prototype[h]?u[h]:u[h]={};else if(!r&&goog.isObject(o)&&goog.isObject(u[h]))for(var m in o)o.hasOwnProperty(m)&&(u[h][m]=o[m]);else u[h]=o},goog.define=function(t$5,o){if(!COMPILED){var r=goog.global.CLOSURE_UNCOMPILED_DEFINES,u=goog.global.CLOSURE_DEFINES;r&&r.nodeType===void 0&&Object.prototype.hasOwnProperty.call(r,t$5)?o=r[t$5]:u&&u.nodeType===void 0&&Object.prototype.hasOwnProperty.call(u,t$5)&&(o=u[t$5])}return o},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE=`en`,goog.TRUSTED_SITE=!0,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(t$5){if(goog.isInModuleLoader_())throw Error(`goog.provide cannot be used within a module.`);if(!COMPILED&&goog.isProvided_(t$5))throw Error(`Namespace "`+t$5+`" already declared.`);goog.constructNamespace_(t$5)},goog.constructNamespace_=function(t$5,o,r){if(!COMPILED){delete goog.implicitNamespaces_[t$5];for(var u=t$5;(u=u.substring(0,u.lastIndexOf(`.`)))&&!goog.getObjectByName(u);)goog.implicitNamespaces_[u]=!0}goog.exportPath_(t$5,o,r)},goog.getScriptNonce=function(t$5){return t$5&&t$5!=goog.global?goog.getScriptNonce_(t$5.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(t$5){return(t$5=t$5.querySelector&&t$5.querySelector(`script[nonce]`))&&(t$5=t$5.nonce||t$5.getAttribute(`nonce`))&&goog.NONCE_PATTERN_.test(t$5)?t$5:``},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(t$5){if(typeof t$5!=`string`||!t$5||t$5.search(goog.VALID_MODULE_RE_)==-1)throw Error(`Invalid module identifier`);if(!goog.isInGoogModuleLoader_())throw Error(`Module `+t$5+` has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.`);if(goog.moduleLoaderState_.moduleName)throw Error(`goog.module may only be called once per module.`);if(goog.moduleLoaderState_.moduleName=t$5,!COMPILED){if(goog.isProvided_(t$5))throw Error(`Namespace "`+t$5+`" already declared.`);delete goog.implicitNamespaces_[t$5]}},goog.module.get=function(t$5){return goog.module.getInternal_(t$5)},goog.module.getInternal_=function(t$5){if(!COMPILED){if(t$5 in goog.loadedModules_)return goog.loadedModules_[t$5].exports;if(!goog.implicitNamespaces_[t$5])return t$5=goog.getObjectByName(t$5),t$5??null}return null},goog.ModuleType={ES6:`es6`,GOOG:`goog`},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var t$5=goog.global.$jscomp;return t$5&&typeof t$5.getCurrentModulePath==`function`?!!t$5.getCurrentModulePath():!1},goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error(`goog.module.declareLegacyNamespace must be called from within a goog.module`);if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error(`goog.module must be called prior to goog.module.declareLegacyNamespace.`);goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(t$5){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error(`goog.declareModuleId may only be called from within an ES6 module`);if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error(`goog.declareModuleId may only be called once per module.`);if(t$5 in goog.loadedModules_)throw Error(`Module with namespace "`+t$5+`" already exists.`)}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=t$5;else{var o=goog.global.$jscomp;if(!o||typeof o.getCurrentModulePath!=`function`)throw Error(`Module with namespace "`+t$5+`" has been loaded incorrectly.`);o=o.require(o.getCurrentModulePath()),goog.loadedModules_[t$5]={exports:o,type:goog.ModuleType.ES6,moduleId:t$5}}},goog.setTestOnly=function(t$5){if(goog.DISALLOW_TEST_ONLY_CODE)throw t$5||=``,Error(`Importing test-only code into non-debug environment`+(t$5?`: `+t$5:`.`))},goog.forwardDeclare=function(t$5){},COMPILED||(goog.isProvided_=function(t$5){return t$5 in goog.loadedModules_||!goog.implicitNamespaces_[t$5]&&goog.getObjectByName(t$5)!=null},goog.implicitNamespaces_={"goog.module":!0}),goog.getObjectByName=function(t$5,o){t$5=t$5.split(`.`),o||=goog.global;for(var r=0;r<t$5.length;r++)if(o=o[t$5[r]],o==null)return null;return o},goog.addDependency=function(t$5,o,r,u){!COMPILED&&goog.DEPENDENCIES_ENABLED&&goog.debugLoader_.addDependency(t$5,o,r,u)},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(t$5){goog.global.console&&goog.global.console.error(t$5)},goog.require=function(t$5){if(!COMPILED){if(goog.ENABLE_DEBUG_LOADER&&goog.debugLoader_.requested(t$5),goog.isProvided_(t$5)){if(goog.isInModuleLoader_())return goog.module.getInternal_(t$5)}else if(goog.ENABLE_DEBUG_LOADER){var o=goog.moduleLoaderState_;goog.moduleLoaderState_=null;try{goog.debugLoader_.load_(t$5)}finally{goog.moduleLoaderState_=o}}return null}},goog.requireType=function(t$5){return{}},goog.basePath=``,goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error(`unimplemented abstract method`)},goog.addSingletonGetter=function(t$5){t$5.instance_=void 0,t$5.getInstance=function(){return t$5.instance_?t$5.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=t$5),t$5.instance_=new t$5)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER,goog.TRANSPILE=`detect`,goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE=``,goog.TRANSPILER=`transpile.js`,goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(goog.hasBadLetScoping==null){try{var a=!eval(`"use strict";let x = 1; function f() { return typeof x; };f() == "number";`)}catch{a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(t$5){return`(function(){`+t$5+`
11
11
  ;})();
12
12
  `},goog.loadModule=function(t$5){var o=goog.moduleLoaderState_;try{goog.moduleLoaderState_={moduleName:``,declareLegacyNamespace:!1,type:goog.ModuleType.GOOG};var r={},u=r;if(typeof t$5==`function`)u=t$5.call(void 0,u);else if(typeof t$5==`string`)goog.useSafari10Workaround()&&(t$5=goog.workaroundSafari10EvalBug(t$5)),u=goog.loadModuleFromSource_.call(void 0,u,t$5);else throw Error(`Invalid module definition`);var h=goog.moduleLoaderState_.moduleName;if(typeof h==`string`&&h)goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(h,u,r!==u):goog.SEAL_MODULE_EXPORTS&&Object.seal&&typeof u==`object`&&u&&Object.seal(u),goog.loadedModules_[h]={exports:u,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName};else throw Error(`Invalid module name "`+h+`"`)}finally{goog.moduleLoaderState_=o}},goog.loadModuleFromSource_=function(a,b){return eval(b),a},goog.normalizePath_=function(t$5){t$5=t$5.split(`/`);for(var o=0;o<t$5.length;)t$5[o]==`.`?t$5.splice(o,1):o&&t$5[o]==`..`&&t$5[o-1]&&t$5[o-1]!=`..`?t$5.splice(--o,2):o++;return t$5.join(`/`)},goog.loadFileSync_=function(t$5){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(t$5);try{var o=new goog.global.XMLHttpRequest;return o.open(`get`,t$5,!1),o.send(),o.status==0||o.status==200?o.responseText:null}catch{return null}},goog.transpile_=function(t$5,o,r){var u=goog.global.$jscomp;u||(goog.global.$jscomp=u={});var h=u.transpile;if(!h){var m=goog.basePath+goog.TRANSPILER,y=goog.loadFileSync_(m);if(y){if(function(){(0,eval)(y+`
13
13
  //# sourceURL=`+m)}.call(goog.global),goog.global.$gwtExport&&goog.global.$gwtExport.$jscomp&&!goog.global.$gwtExport.$jscomp.transpile)throw Error(`The transpiler did not properly export the "transpile" method. $gwtExport: `+JSON.stringify(goog.global.$gwtExport));goog.global.$jscomp.transpile=goog.global.$gwtExport.$jscomp.transpile,u=goog.global.$jscomp,h=u.transpile}}return h||=u.transpile=function(S,_){return goog.logToConsole_(_+` requires transpilation but no transpiler was found.`),S},h(t$5,o,r)},goog.typeOf=function(t$5){var o=typeof t$5;return o==`object`?t$5?Array.isArray(t$5)?`array`:o:`null`:o},goog.isArrayLike=function(t$5){var o=goog.typeOf(t$5);return o==`array`||o==`object`&&typeof t$5.length==`number`},goog.isDateLike=function(t$5){return goog.isObject(t$5)&&typeof t$5.getFullYear==`function`},goog.isObject=function(t$5){var o=typeof t$5;return o==`object`&&t$5!=null||o==`function`},goog.getUid=function(t$5){return Object.prototype.hasOwnProperty.call(t$5,goog.UID_PROPERTY_)&&t$5[goog.UID_PROPERTY_]||(t$5[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(t$5){return!!t$5[goog.UID_PROPERTY_]},goog.removeUid=function(t$5){t$5!==null&&`removeAttribute`in t$5&&t$5.removeAttribute(goog.UID_PROPERTY_);try{delete t$5[goog.UID_PROPERTY_]}catch{}},goog.UID_PROPERTY_=`closure_uid_`+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.cloneObject=function(t$5){var o=goog.typeOf(t$5);if(o==`object`||o==`array`){if(typeof t$5.clone==`function`)return t$5.clone();for(var r in o=o==`array`?[]:{},t$5)o[r]=goog.cloneObject(t$5[r]);return o}return t$5},goog.bindNative_=function(t$5,o,r){return t$5.call.apply(t$5.bind,arguments)},goog.bindJs_=function(t$5,o,r){if(!t$5)throw Error();if(2<arguments.length){var u=Array.prototype.slice.call(arguments,2);return function(){var h=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(h,u),t$5.apply(o,h)}}return function(){return t$5.apply(o,arguments)}},goog.bind=function(t$5,o,r){return Function.prototype.bind&&Function.prototype.bind.toString().indexOf(`native code`)!=-1?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(t$5,o){var r=Array.prototype.slice.call(arguments,1);return function(){var u=r.slice();return u.push.apply(u,arguments),t$5.apply(this,u)}},goog.mixin=function(t$5,o){for(var r in o)t$5[r]=o[r]},goog.now=function(){return Date.now()},goog.globalEval=function(t$5){(0,eval)(t$5)},goog.getCssName=function(t$5,o){if(String(t$5).charAt(0)==`.`)throw Error(`className passed in goog.getCssName must not start with ".". You passed: `+t$5);var r=function(h){return goog.cssNameMapping_[h]||h},u=function(h){h=h.split(`-`);for(var m=[],y=0;y<h.length;y++)m.push(r(h[y]));return m.join(`-`)};return u=goog.cssNameMapping_?goog.cssNameMappingStyle_==`BY_WHOLE`?r:u:function(h){return h},t$5=o?t$5+`-`+u(o):u(t$5),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(t$5):t$5},goog.setCssNameMapping=function(t$5,o){goog.cssNameMapping_=t$5,goog.cssNameMappingStyle_=o},!COMPILED&&goog.global.CLOSURE_CSS_NAME_MAPPING&&(goog.cssNameMapping_=goog.global.CLOSURE_CSS_NAME_MAPPING),goog.getMsg=function(t$5,o,r){return r&&r.html&&(t$5=t$5.replace(/</g,`&lt;`)),r&&r.unescapeHtmlEntities&&(t$5=t$5.replace(/&lt;/g,`<`).replace(/&gt;/g,`>`).replace(/&apos;/g,`'`).replace(/&quot;/g,`"`).replace(/&amp;/g,`&`)),o&&(t$5=t$5.replace(/\{\$([^}]+)}/g,function(u,h){return o!=null&&h in o?o[h]:u})),t$5},goog.getMsgWithFallback=function(t$5,o){return t$5},goog.exportSymbol=function(t$5,o,r){goog.exportPath_(t$5,o,!0,r)},goog.exportProperty=function(t$5,o,r){t$5[o]=r},goog.inherits=function(t$5,o){function r(){}r.prototype=o.prototype,t$5.superClass_=o.prototype,t$5.prototype=new r,t$5.prototype.constructor=t$5,t$5.base=function(u,h,m){for(var y=Array(arguments.length-2),S=2;S<arguments.length;S++)y[S-2]=arguments[S];return o.prototype[h].apply(u,y)}},goog.scope=function(t$5){if(goog.isInModuleLoader_())throw Error(`goog.scope is not supported within a module.`);t$5.call(goog.global)},COMPILED||(goog.global.COMPILED=COMPILED),goog.defineClass=function(t$5,o){var r=o.constructor,u=o.statics;return r&&r!=Object.prototype.constructor||(r=function(){throw Error(`cannot instantiate an interface (no constructor defined).`)}),r=goog.defineClass.createSealingConstructor_(r,t$5),t$5&&goog.inherits(r,t$5),delete o.constructor,delete o.statics,goog.defineClass.applyProperties_(r.prototype,o),u!=null&&(u instanceof Function?u(r):goog.defineClass.applyProperties_(r,u)),r},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(t$5,o){return goog.defineClass.SEAL_CLASS_INSTANCES?function(){var r=t$5.apply(this,arguments)||this;return r[goog.UID_PROPERTY_]=r[goog.UID_PROPERTY_],r}:t$5},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_=`constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf`.split(` `),goog.defineClass.applyProperties_=function(t$5,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t$5[r]=o[r]);for(var u=0;u<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;u++)r=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[u],Object.prototype.hasOwnProperty.call(o,r)&&(t$5[r]=o[r])},!COMPILED&&goog.DEPENDENCIES_ENABLED&&(goog.inHtmlDocument_=function(){var t$5=goog.global.document;return t$5!=null&&`write`in t$5},goog.isDocumentLoading_=function(){var t$5=goog.global.document;return t$5.attachEvent?t$5.readyState!=`complete`:t$5.readyState==`loading`},goog.findBasePath_=function(){if(goog.global.CLOSURE_BASE_PATH!=null&&typeof goog.global.CLOSURE_BASE_PATH==`string`)goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_()){var t$5=goog.global.document,o=t$5.currentScript;for(t$5=o?[o]:t$5.getElementsByTagName(`SCRIPT`),o=t$5.length-1;0<=o;--o){var r=t$5[o].src,u=r.lastIndexOf(`?`);if(u=u==-1?r.length:u,r.substr(u-7,7)==`base.js`){goog.basePath=r.substr(0,u-7);break}}}},goog.findBasePath_(),goog.Transpiler=function(){this.requiresTranspilation_=null,this.transpilationTarget_=goog.TRANSPILE_TO_LANGUAGE},goog.Transpiler.prototype.createRequiresTranspilation_=function(){function a(t$5,o){e?d[t$5]=!0:o()?(c$1=t$5,d[t$5]=!1):e=d[t$5]=!0}function b(g$2){try{return!!eval(g$2)}catch{return!1}}var c$1=`es3`,d={es3:!1},e=!1,f=goog.global.navigator&&goog.global.navigator.userAgent?goog.global.navigator.userAgent:``;return a(`es5`,function(){return b(`[1,].length==1`)}),a(`es6`,function(){return f.match(/Edge\/(\d+)(\.\d)*/i)?!1:b(`(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()`)}),a(`es7`,function(){return b(`2 ** 2 == 4`)}),a(`es8`,function(){return b(`async () => 1, true`)}),a(`es9`,function(){return b(`({...rest} = {}), true`)}),a(`es_next`,function(){return!1}),{target:c$1,map:d}},goog.Transpiler.prototype.needsTranspile=function(t$5,o){if(goog.TRANSPILE==`always`)return!0;if(goog.TRANSPILE==`never`)return!1;if(!this.requiresTranspilation_){var r=this.createRequiresTranspilation_();this.requiresTranspilation_=r.map,this.transpilationTarget_=this.transpilationTarget_||r.target}if(t$5 in this.requiresTranspilation_)return this.requiresTranspilation_[t$5]?!0:!(!goog.inHtmlDocument_()||o!=`es6`||`noModule`in goog.global.document.createElement(`script`));throw Error(`Unknown language mode: `+t$5)},goog.Transpiler.prototype.transpile=function(t$5,o){return goog.transpile_(t$5,o,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(t$5){return t$5.replace(/<\/(SCRIPT)/gi,`\\x3c/$1`)},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(t$5,o){function r(){u&&(goog.global.setTimeout(u,0),u=null)}var u=o;if(t$5.length){o=[];for(var h=0;h<t$5.length;h++){var m=this.getPathFromDeps_(t$5[h]);if(!m)throw Error(`Unregonized namespace: `+t$5[h]);o.push(this.dependencies_[m])}m=goog.require;var y=0;for(h=0;h<t$5.length;h++)m(t$5[h]),o[h].onLoad(function(){++y==t$5.length&&r()})}else r()},goog.DebugLoader_.prototype.loadClosureDeps=function(){this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath+`deps.js`),`deps.js`,[],[],{},!1)),this.loadDeps_()},goog.DebugLoader_.prototype.requested=function(t$5,o){(t$5=this.getPathFromDeps_(t$5))&&(o||this.areDepsLoaded_(this.dependencies_[t$5].requires))&&(o=this.deferredCallbacks_[t$5])&&(delete this.deferredCallbacks_[t$5],o())},goog.DebugLoader_.prototype.setDependencyFactory=function(t$5){this.factory_=t$5},goog.DebugLoader_.prototype.load_=function(t$5){if(this.getPathFromDeps_(t$5)){var o=this,r=[],u=function(h){var m=o.getPathFromDeps_(h);if(!m)throw Error(`Bad dependency path or symbol: `+h);if(!o.written_[m]){for(o.written_[m]=!0,h=o.dependencies_[m],m=0;m<h.requires.length;m++)goog.isProvided_(h.requires[m])||u(h.requires[m]);r.push(h)}};u(t$5),t$5=!!this.depsToLoad_.length,this.depsToLoad_=this.depsToLoad_.concat(r),this.paused_||t$5||this.loadDeps_()}else throw t$5=`goog.require could not find: `+t$5,goog.logToConsole_(t$5),Error(t$5)},goog.DebugLoader_.prototype.loadDeps_=function(){for(var t$5=this,o=this.paused_;this.depsToLoad_.length&&!o;)(function(){var r=!1,u=t$5.depsToLoad_.shift(),h=!1;t$5.loading_(u);var m={pause:function(){if(r)throw Error(`Cannot call pause after the call to load.`);o=!0},resume:function(){r?t$5.resume_():o=!1},loaded:function(){if(h)throw Error(`Double call to loaded.`);h=!0,t$5.loaded_(u)},pending:function(){for(var y=[],S=0;S<t$5.loadingDeps_.length;S++)y.push(t$5.loadingDeps_[S]);return y},setModuleState:function(y){goog.moduleLoaderState_={type:y,moduleName:``,declareLegacyNamespace:!1}},registerEs6ModuleExports:function(y,S,_){_&&(goog.loadedModules_[_]={exports:S,type:goog.ModuleType.ES6,moduleId:_||``})},registerGoogModuleExports:function(y,S){goog.loadedModules_[y]={exports:S,type:goog.ModuleType.GOOG,moduleId:y}},clearModuleState:function(){goog.moduleLoaderState_=null},defer:function(y){if(r)throw Error(`Cannot register with defer after the call to load.`);t$5.defer_(u,y)},areDepsLoaded:function(){return t$5.areDepsLoaded_(u.requires)}};try{u.load(m)}finally{r=!0}})();o&&this.pause_()},goog.DebugLoader_.prototype.pause_=function(){this.paused_=!0},goog.DebugLoader_.prototype.resume_=function(){this.paused_&&(this.paused_=!1,this.loadDeps_())},goog.DebugLoader_.prototype.loading_=function(t$5){this.loadingDeps_.push(t$5)},goog.DebugLoader_.prototype.loaded_=function(t$5){for(var o=0;o<this.loadingDeps_.length;o++)if(this.loadingDeps_[o]==t$5){this.loadingDeps_.splice(o,1);break}for(o=0;o<this.deferredQueue_.length;o++)if(this.deferredQueue_[o]==t$5.path){this.deferredQueue_.splice(o,1);break}if(this.loadingDeps_.length==this.deferredQueue_.length&&!this.depsToLoad_.length)for(;this.deferredQueue_.length;)this.requested(this.deferredQueue_.shift(),!0);t$5.loaded()},goog.DebugLoader_.prototype.areDepsLoaded_=function(t$5){for(var o=0;o<t$5.length;o++){var r=this.getPathFromDeps_(t$5[o]);if(!r||!(r in this.deferredCallbacks_||goog.isProvided_(t$5[o])))return!1}return!0},goog.DebugLoader_.prototype.getPathFromDeps_=function(t$5){return t$5 in this.idToPath_?this.idToPath_[t$5]:t$5 in this.dependencies_?t$5:null},goog.DebugLoader_.prototype.defer_=function(t$5,o){this.deferredCallbacks_[t$5.path]=o,this.deferredQueue_.push(t$5.path)},goog.LoadController=function(){},goog.LoadController.prototype.pause=function(){},goog.LoadController.prototype.resume=function(){},goog.LoadController.prototype.loaded=function(){},goog.LoadController.prototype.pending=function(){},goog.LoadController.prototype.registerEs6ModuleExports=function(t$5,o,r){},goog.LoadController.prototype.setModuleState=function(t$5){},goog.LoadController.prototype.clearModuleState=function(){},goog.LoadController.prototype.defer=function(t$5){},goog.LoadController.prototype.areDepsLoaded=function(){},goog.Dependency=function(t$5,o,r,u,h){this.path=t$5,this.relativePath=o,this.provides=r,this.requires=u,this.loadFlags=h,this.loaded_=!1,this.loadCallbacks_=[]},goog.Dependency.prototype.getPathName=function(){var t$5=this.path,o=t$5.indexOf(`://`);return 0<=o&&(t$5=t$5.substring(o+3),o=t$5.indexOf(`/`),0<=o&&(t$5=t$5.substring(o+1))),t$5},goog.Dependency.prototype.onLoad=function(t$5){this.loaded_?t$5():this.loadCallbacks_.push(t$5)},goog.Dependency.prototype.loaded=function(){this.loaded_=!0;var t$5=this.loadCallbacks_;this.loadCallbacks_=[];for(var o=0;o<t$5.length;o++)t$5[o]()},goog.Dependency.defer_=!1,goog.Dependency.callbackMap_={},goog.Dependency.registerCallback_=function(t$5){var o=Math.random().toString(32);return goog.Dependency.callbackMap_[o]=t$5,o},goog.Dependency.unregisterCallback_=function(t$5){delete goog.Dependency.callbackMap_[t$5]},goog.Dependency.callback_=function(t$5,o){if(t$5 in goog.Dependency.callbackMap_){for(var r=goog.Dependency.callbackMap_[t$5],u=[],h=1;h<arguments.length;h++)u.push(arguments[h]);r.apply(void 0,u)}else throw Error(`Callback key `+t$5+` does not exist (was base.js loaded more than once?).`)},goog.Dependency.prototype.load=function(t$5){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?t$5.loaded():t$5.pause();else if(goog.inHtmlDocument_()){var o=goog.global.document;if(o.readyState==`complete`&&!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING){if(/\bdeps.js$/.test(this.path)){t$5.loaded();return}throw Error(`Cannot write "`+this.path+`" after document load`)}var r=goog.getScriptNonce();if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&goog.isDocumentLoading_()){var u=function(S){S.readyState&&S.readyState!=`complete`?S.onload=u:(goog.Dependency.unregisterCallback_(h),t$5.loaded())},h=goog.Dependency.registerCallback_(u);r=r?` nonce="`+r+`"`:``;var m=`<script src="`+this.path+`"`+r+(goog.Dependency.defer_?` defer`:``)+` id="script-`+h+`"><\/script>`;m+=`<script`+r+`>`,m=goog.Dependency.defer_?m+(`document.getElementById('script-`+h+`').onload = function() {
@@ -40,5 +40,5 @@ ieee754.read=function(t$5,o,r,u,h){var m,y,S=h*8-u-1,_=(1<<S)-1,C=_>>1,O=-7,I=r?
40
40
  international: ${this.international},
41
41
  e164: ${this.e164},
42
42
  timezone: ${this.timezone},
43
- }`}serialize(){let o=buffer.Buffer.from(JSON.stringify({phone:this.raw,country:this.country})).toString(`base64`);return buffer.Buffer.from(JSON.stringify({phone:this.raw,country:this.country,hash:o})).toString(`base64`)}static deserialize(o){let r;try{r=buffer.Buffer.from(o,`base64`).toString(`utf-8`)}catch{throw Error(`Not a valid serialized phone object`)}let u;try{u=JSON.parse(r)}catch{throw Error(`Not a valid serialized phone object`)}if(!u.phone||!u.country||!u.hash||buffer.Buffer.from(JSON.stringify({phone:u.phone,country:u.country})).toString(`base64`)!==u.hash)throw Error(`Not a valid serialized phone object`);return new Te$1(u.phone,u.country===`XX`?void 0:u.country)}};z=new WeakMap,H=new WeakMap,Z=new WeakMap,V=new WeakMap,se=new WeakMap,le=new WeakMap,W=new WeakSet,Le=function(o){let r=country_telephone_data.allCountries.map(u=>({iso:u.iso2.toUpperCase(),prefix:String(u.dialCode).trim().replace(/\D/g,``)})).filter(u=>o.substring(0,u.prefix.length)===u.prefix).sort(ne(this,W,be)).filter(u=>{let h=this.constructor;return new h(o,u.iso).valid});return r.length>=1?r[0].iso:ne(this,W,Fe).call(this,o)},Fe=function(o){let r=country_telephone_data.allCountries.map(u=>({iso:u.iso2.toUpperCase(),prefix:String(u.dialCode).trim().replace(/\D/g,``)})).sort(ne(this,W,be)).filter(u=>{let h=this.constructor;return new h(o,u.iso).valid});return r.length>=1?r[0].iso:`XX`},be=function(o,r){if(o.prefix.length===r.prefix.length){let u=Number.parseInt(o.prefix),h=Number.parseInt(r.prefix);return u===h?o.iso.localeCompare(r.iso):u>h?1:-1}return o.prefix.length>r.prefix.length?1:-1},we=function(o){if(!o)return`INVALID`;let r=M(this,Z).getNumberType(o),u=Object.values(libphonenumberExports.PhoneNumberType),h=Object.keys(libphonenumberExports.PhoneNumberType),m=u.indexOf(r);return h[m]||`INVALID`},ve=function(){let o=this.raw.substring(1,4);return areaCodeMap[o]&&typeof areaCodeMap[o]==`string`?areaCodeMap[o]:`XX`};let Phone=Te;const version$1=`1.20250512.0`,messages={"phone.base":`{{#label}} must be a phone number`,"phone.invalid":`{{#label}} must be a valid phone number for {{#country}}`,"phone.fixedLine":`{{#label}} must be a fixed line number for {{#country}}`,"phone.mobile":`{{#label}} must be a mobile number for {{#country}}`,"phone.strictFixedLine":`{{#label}} is not a fixed line number for {{#country}}`,"phone.strictMobile":`{{#label}} is not a mobile number for {{#country}}`,"phone.fixedLineOrMobile":`{{#label}} must be a fixed line or mobile number for {{#country}}`,"phone.tollFree":`{{#label}} must be a toll-free number for {{#country}}`,"phone.premiumRate":`{{#label}} must be a premium rate number for {{#country}}`,"phone.sharedCost":`{{#label}} must be a shared cost number for {{#country}}`,"phone.voip":`{{#label}} must be a VoIP number for {{#country}}`,"phone.personalNumber":`{{#label}} must be a personal number for {{#country}}`,"phone.pager":`{{#label}} must be a pager number for {{#country}}`,"phone.uan":`{{#label}} must be a UAN number for {{#country}}`,"phone.voicemail":`{{#label}} must be a voicemail number for {{#country}}`,"phone.unknown":`{{#label}} must be an unknown type number for {{#country}}`,"phone.types":`{{#label}} must be one of the specified phone types for {{#country}}`},coerceCountry=value=>{if(typeof value!=`string`)return null;if(isos.has(value.toUpperCase()))return value.toUpperCase();let match$2=null;return countries.forEach((name$1,iso)=>{name$1.toLowerCase()===value.toLowerCase()&&(match$2=iso)}),match$2},getPhoneObject=(value,country)=>{let countryCoerced=coerceCountry(country);try{return new Phone(value,countryCoerced||void 0)}catch{return}},evaluate=(value,operator,args$1)=>{switch(operator){case`fixedLine`:return[`FIXED_LINE`,`FIXED_LINE_OR_MOBILE`].includes(value.type);case`mobile`:return[`MOBILE`,`FIXED_LINE_OR_MOBILE`].includes(value.type);case`fixedLineOrMobile`:return[`FIXED_LINE`,`MOBILE`,`FIXED_LINE_OR_MOBILE`].includes(value.type);case`strictFixedLine`:return value.type===`FIXED_LINE`;case`strictMobile`:return value.type===`MOBILE`;case`tollFree`:return value.type===`TOLL_FREE`;case`premiumRate`:return value.type===`PREMIUM_RATE`;case`sharedCost`:return value.type===`SHARED_COST`;case`voip`:return value.type===`VOIP`;case`personalNumber`:return value.type===`PERSONAL_NUMBER`;case`pager`:return value.type===`PAGER`;case`uan`:return value.type===`UAN`;case`voicemail`:return value.type===`VOICEMAIL`;case`unknown`:return value.type===`UNKNOWN`;case`types`:return args$1[0].includes(value.type);default:return!1}},phone=function(joi){let coerce$3=(value,helpers)=>typeof value==`string`||typeof value==`number`?(value=value.toString().trim(),{value}):{value,errors:[helpers.error(`phone.base`,{value:String(value)})]},getCountryName=iso=>{if(`$i18n`in joi){let root=joi;if(!countries.has(iso))return iso;let returnable=root.$i18n(`country.${iso}`);return returnable||countries.get(iso)||iso}return countries.get(iso)||iso};return{type:`phone`,base:joi.any(),validate(value,{error,schema,prefs,state}){let arg=schema.$_getFlag(`country`),country=joi.isRef(arg)?arg.resolve(value,state,prefs):arg,pObj=getPhoneObject(value,country);if(pObj){if(!pObj.valid)return country?{value,errors:[error(`phone.invalid`,{value:String(value),country:getCountryName(country)})]}:{value,errors:[error(`phone.base`,{value:String(value)})]}}else return{value,errors:[error(`phone.base`,{value:String(value)})]};let as=schema.$_getFlag(`as`)||`e164`,formattedValue;switch(as){case`international`:formattedValue=pObj.international;break;case`national`:formattedValue=pObj.national;break;case`raw`:formattedValue=pObj.raw;break;case`timezone`:formattedValue=pObj.timezone;break;case`type`:formattedValue=pObj.type;break;case`country`:formattedValue=pObj.country;break;default:formattedValue=pObj.e164}return{value:formattedValue}},flags:{country:{default:null,setter:`country`},as:{default:`e164`,setter:`format`}},args(...args$1){let[schema,country]=args$1;return schema.country(country)},coerce:{from:[`string`,`number`],method:coerce$3},rules:{check:{method:!1,validate(value,helpers,args$1,{name:name$1,operator}){let{state,prefs}=helpers,countryVal=helpers.schema.$_getFlag(`country`);joi.isRef(countryVal)&&(countryVal=countryVal.resolve(value,state,prefs));let pObj=getPhoneObject(value,countryVal);if(pObj){if(!pObj.valid)return countryVal?helpers.error(`phone.invalid`,{value:String(value),country:getCountryName(countryVal)}):{value,errors:[helpers.error(`phone.base`,{value:String(value)})]}}else return helpers.error(`phone.base`,{value:String(value)});let valid$2=evaluate(pObj,operator,Object.values(args$1||{}));return valid$2?value:helpers.error(`phone.`+name$1,{value:value.toString(),country:getCountryName(countryVal),...args$1})}},country:{method(country){return this.$_setFlag(`country`,country)},args:[{name:`country`,ref:!0,assert:value=>typeof value==`string`||joi.isRef(value),message:`must be a string or a reference`}]},format:{method(as){return this.$_setFlag(`as`,as)},args:[{name:`as`,assert:value=>[`e164`,`international`,`national`,`raw`,`timezone`,`type`,`country`].includes(value),message:`must be one of e164, international, national, raw, timezone, type, or country`}]},fixedLine:{method(){return this.$_addRule({name:`fixedLine`,method:`check`,operator:`fixedLine`})}},mobile:{method(){return this.$_addRule({name:`mobile`,method:`check`,operator:`mobile`})}},strictFixedLine:{method(){return this.$_addRule({name:`strictFixedLine`,method:`check`,operator:`strictFixedLine`})}},strictMobile:{method(){return this.$_addRule({name:`strictMobile`,method:`check`,operator:`strictMobile`})}},fixedLineOrMobile:{method(){return this.$_addRule({name:`fixedLineOrMobile`,method:`check`,operator:`fixedLineOrMobile`})}},tollFree:{method(){return this.$_addRule({name:`tollFree`,method:`check`,operator:`tollFree`})}},premiumRate:{method(){return this.$_addRule({name:`premiumRate`,method:`check`,operator:`premiumRate`})}},sharedCost:{method(){return this.$_addRule({name:`sharedCost`,method:`check`,operator:`sharedCost`})}},voip:{method(){return this.$_addRule({name:`voip`,method:`check`,operator:`voip`})}},personalNumber:{method(){return this.$_addRule({name:`personalNumber`,method:`check`,operator:`personalNumber`})}},pager:{method(){return this.$_addRule({name:`pager`,method:`check`,operator:`pager`})}},uan:{method(){return this.$_addRule({name:`uan`,method:`check`,operator:`uan`})}},voicemail:{method(){return this.$_addRule({name:`voicemail`,method:`check`,operator:`voicemail`})}},unknown:{method(){return this.$_addRule({name:`unknown`,method:`check`,operator:`unknown`})}},types:{method(...types$1){return this.$_addRule({name:`types`,method:`check`,operator:`types`,args:{types:types$1}})}}},cast:{string:{from:value=>typeof value==`string`||typeof value==`number`,to:value=>value},number:{from:value=>typeof value==`string`||typeof value==`number`,to(value,helpers){let country=helpers.schema.$_getFlag(`country`),pObj=getPhoneObject(value,country);return pObj?Number(pObj.raw):-1}},object:{from:value=>typeof value==`string`||typeof value==`number`,to(value,helpers){let country=helpers.schema.$_getFlag(`country`),pObj=getPhoneObject(value,country);return pObj?pObj.toObject():{}}}},messages}};var DP=20,RM=1,MAX_DP=1e6,MAX_POWER=1e6,NE=-7,PE=21,STRICT=!1,NAME=`[big.js] `,INVALID$3=NAME+`Invalid `,INVALID_DP=INVALID$3+`decimal places`,INVALID_RM=INVALID$3+`rounding mode`,DIV_BY_ZERO=NAME+`Division by zero`,P={},UNDEFINED=void 0,NUMERIC=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function _Big_(){function Big$1(n$2){var x$1=this;if(!(x$1 instanceof Big$1))return n$2===UNDEFINED&&arguments.length===0?_Big_():new Big$1(n$2);if(n$2 instanceof Big$1)x$1.s=n$2.s,x$1.e=n$2.e,x$1.c=n$2.c.slice();else{if(typeof n$2!=`string`){if(Big$1.strict===!0&&typeof n$2!=`bigint`)throw TypeError(INVALID$3+`value`);n$2=n$2===0&&1/n$2<0?`-0`:String(n$2)}parse$8(x$1,n$2)}x$1.constructor=Big$1}return Big$1.prototype=P,Big$1.DP=DP,Big$1.RM=RM,Big$1.NE=NE,Big$1.PE=PE,Big$1.strict=STRICT,Big$1.roundDown=0,Big$1.roundHalfUp=1,Big$1.roundHalfEven=2,Big$1.roundUp=3,Big$1}function parse$8(x$1,n$2){var e,i$4,nl;if(!NUMERIC.test(n$2))throw Error(INVALID$3+`number`);for(x$1.s=n$2.charAt(0)==`-`?(n$2=n$2.slice(1),-1):1,(e=n$2.indexOf(`.`))>-1&&(n$2=n$2.replace(`.`,``)),(i$4=n$2.search(/e/i))>0?(e<0&&(e=i$4),e+=+n$2.slice(i$4+1),n$2=n$2.substring(0,i$4)):e<0&&(e=n$2.length),nl=n$2.length,i$4=0;i$4<nl&&n$2.charAt(i$4)==`0`;)++i$4;if(i$4==nl)x$1.c=[x$1.e=0];else{for(;nl>0&&n$2.charAt(--nl)==`0`;);for(x$1.e=e-i$4-1,x$1.c=[],e=0;i$4<=nl;)x$1.c[e++]=+n$2.charAt(i$4++)}return x$1}function round(x$1,sd,rm,more){var xc=x$1.c;if(rm===UNDEFINED&&(rm=x$1.constructor.RM),rm!==0&&rm!==1&&rm!==2&&rm!==3)throw Error(INVALID_RM);if(sd<1)more=rm===3&&(more||!!xc[0])||sd===0&&(rm===1&&xc[0]>=5||rm===2&&(xc[0]>5||xc[0]===5&&(more||xc[1]!==UNDEFINED))),xc.length=1,more?(x$1.e=x$1.e-sd+1,xc[0]=1):xc[0]=x$1.e=0;else if(sd<xc.length){if(more=rm===1&&xc[sd]>=5||rm===2&&(xc[sd]>5||xc[sd]===5&&(more||xc[sd+1]!==UNDEFINED||xc[sd-1]&1))||rm===3&&(more||!!xc[0]),xc.length=sd,more){for(;++xc[--sd]>9;)if(xc[sd]=0,sd===0){++x$1.e,xc.unshift(1);break}}for(sd=xc.length;!xc[--sd];)xc.pop()}return x$1}function stringify(x$1,doExponential,isNonzero){var e=x$1.e,s$2=x$1.c.join(``),n$2=s$2.length;if(doExponential)s$2=s$2.charAt(0)+(n$2>1?`.`+s$2.slice(1):``)+(e<0?`e`:`e+`)+e;else if(e<0){for(;++e;)s$2=`0`+s$2;s$2=`0.`+s$2}else if(e>0)if(++e>n$2)for(e-=n$2;e--;)s$2+=`0`;else e<n$2&&(s$2=s$2.slice(0,e)+`.`+s$2.slice(e));else n$2>1&&(s$2=s$2.charAt(0)+`.`+s$2.slice(1));return x$1.s<0&&isNonzero?`-`+s$2:s$2}P.abs=function(){var x$1=new this.constructor(this);return x$1.s=1,x$1},P.cmp=function(y){var isneg,x$1=this,xc=x$1.c,yc=(y=new x$1.constructor(y)).c,i$4=x$1.s,j$1=y.s,k=x$1.e,l$2=y.e;if(!xc[0]||!yc[0])return xc[0]?i$4:yc[0]?-j$1:0;if(i$4!=j$1)return i$4;if(isneg=i$4<0,k!=l$2)return k>l$2^isneg?1:-1;for(j$1=(k=xc.length)<(l$2=yc.length)?k:l$2,i$4=-1;++i$4<j$1;)if(xc[i$4]!=yc[i$4])return xc[i$4]>yc[i$4]^isneg?1:-1;return k==l$2?0:k>l$2^isneg?1:-1},P.div=function(y){var x$1=this,Big$1=x$1.constructor,a=x$1.c,b=(y=new Big$1(y)).c,k=x$1.s==y.s?1:-1,dp=Big$1.DP;if(dp!==~~dp||dp<0||dp>MAX_DP)throw Error(INVALID_DP);if(!b[0])throw Error(DIV_BY_ZERO);if(!a[0])return y.s=k,y.c=[y.e=0],y;var bl,bt,n$2,cmp$3,ri,bz=b.slice(),ai=bl=b.length,al=a.length,r=a.slice(0,bl),rl=r.length,q=y,qc=q.c=[],qi=0,p=dp+(q.e=x$1.e-y.e)+1;for(q.s=k,k=p<0?0:p,bz.unshift(0);rl++<bl;)r.push(0);do{for(n$2=0;n$2<10;n$2++){if(bl!=(rl=r.length))cmp$3=bl>rl?1:-1;else for(ri=-1,cmp$3=0;++ri<bl;)if(b[ri]!=r[ri]){cmp$3=b[ri]>r[ri]?1:-1;break}if(cmp$3<0){for(bt=rl==bl?b:bz;rl;){if(r[--rl]<bt[rl]){for(ri=rl;ri&&!r[--ri];)r[ri]=9;--r[ri],r[rl]+=10}r[rl]-=bt[rl]}for(;!r[0];)r.shift()}else break}qc[qi++]=cmp$3?n$2:++n$2,r[0]&&cmp$3?r[rl]=a[ai]||0:r=[a[ai]]}while((ai++<al||r[0]!==UNDEFINED)&&k--);return!qc[0]&&qi!=1&&(qc.shift(),q.e--,p--),qi>p&&round(q,p,Big$1.RM,r[0]!==UNDEFINED),q},P.eq=function(y){return this.cmp(y)===0},P.gt=function(y){return this.cmp(y)>0},P.gte=function(y){return this.cmp(y)>-1},P.lt=function(y){return this.cmp(y)<0},P.lte=function(y){return this.cmp(y)<1},P.minus=P.sub=function(y){var i$4,j$1,t$5,xlty,x$1=this,Big$1=x$1.constructor,a=x$1.s,b=(y=new Big$1(y)).s;if(a!=b)return y.s=-b,x$1.plus(y);var xc=x$1.c.slice(),xe=x$1.e,yc=y.c,ye=y.e;if(!xc[0]||!yc[0])return yc[0]?y.s=-b:xc[0]?y=new Big$1(x$1):y.s=1,y;if(a=xe-ye){for((xlty=a<0)?(a=-a,t$5=xc):(ye=xe,t$5=yc),t$5.reverse(),b=a;b--;)t$5.push(0);t$5.reverse()}else for(j$1=((xlty=xc.length<yc.length)?xc:yc).length,a=b=0;b<j$1;b++)if(xc[b]!=yc[b]){xlty=xc[b]<yc[b];break}if(xlty&&(t$5=xc,xc=yc,yc=t$5,y.s=-y.s),(b=(j$1=yc.length)-(i$4=xc.length))>0)for(;b--;)xc[i$4++]=0;for(b=i$4;j$1>a;){if(xc[--j$1]<yc[j$1]){for(i$4=j$1;i$4&&!xc[--i$4];)xc[i$4]=9;--xc[i$4],xc[j$1]+=10}xc[j$1]-=yc[j$1]}for(;xc[--b]===0;)xc.pop();for(;xc[0]===0;)xc.shift(),--ye;return xc[0]||(y.s=1,xc=[ye=0]),y.c=xc,y.e=ye,y},P.mod=function(y){var ygtx,x$1=this,Big$1=x$1.constructor,a=x$1.s,b=(y=new Big$1(y)).s;if(!y.c[0])throw Error(DIV_BY_ZERO);return x$1.s=y.s=1,ygtx=y.cmp(x$1)==1,x$1.s=a,y.s=b,ygtx?new Big$1(x$1):(a=Big$1.DP,b=Big$1.RM,Big$1.DP=Big$1.RM=0,x$1=x$1.div(y),Big$1.DP=a,Big$1.RM=b,this.minus(x$1.times(y)))},P.neg=function(){var x$1=new this.constructor(this);return x$1.s=-x$1.s,x$1},P.plus=P.add=function(y){var e,k,t$5,x$1=this,Big$1=x$1.constructor;if(y=new Big$1(y),x$1.s!=y.s)return y.s=-y.s,x$1.minus(y);var xe=x$1.e,xc=x$1.c,ye=y.e,yc=y.c;if(!xc[0]||!yc[0])return yc[0]||(xc[0]?y=new Big$1(x$1):y.s=x$1.s),y;if(xc=xc.slice(),e=xe-ye){for(e>0?(ye=xe,t$5=yc):(e=-e,t$5=xc),t$5.reverse();e--;)t$5.push(0);t$5.reverse()}for(xc.length-yc.length<0&&(t$5=yc,yc=xc,xc=t$5),e=yc.length,k=0;e;xc[e]%=10)k=(xc[--e]=xc[e]+yc[e]+k)/10|0;for(k&&(xc.unshift(k),++ye),e=xc.length;xc[--e]===0;)xc.pop();return y.c=xc,y.e=ye,y},P.pow=function(n$2){var x$1=this,one=new x$1.constructor(`1`),y=one,isneg=n$2<0;if(n$2!==~~n$2||n$2<-MAX_POWER||n$2>MAX_POWER)throw Error(INVALID$3+`exponent`);for(isneg&&(n$2=-n$2);n$2&1&&(y=y.times(x$1)),n$2>>=1,n$2;)x$1=x$1.times(x$1);return isneg?one.div(y):y},P.prec=function(sd,rm){if(sd!==~~sd||sd<1||sd>MAX_DP)throw Error(INVALID$3+`precision`);return round(new this.constructor(this),sd,rm)},P.round=function(dp,rm){if(dp===UNDEFINED)dp=0;else if(dp!==~~dp||dp<-MAX_DP||dp>MAX_DP)throw Error(INVALID_DP);return round(new this.constructor(this),dp+this.e+1,rm)},P.sqrt=function(){var r,c$1,t$5,x$1=this,Big$1=x$1.constructor,s$2=x$1.s,e=x$1.e,half=new Big$1(`0.5`);if(!x$1.c[0])return new Big$1(x$1);if(s$2<0)throw Error(NAME+`No square root`);s$2=Math.sqrt(+stringify(x$1,!0,!0)),s$2===0||s$2===1/0?(c$1=x$1.c.join(``),c$1.length+e&1||(c$1+=`0`),s$2=Math.sqrt(c$1),e=((e+1)/2|0)-(e<0||e&1),r=new Big$1((s$2==1/0?`5e`:(s$2=s$2.toExponential()).slice(0,s$2.indexOf(`e`)+1))+e)):r=new Big$1(s$2+``),e=r.e+(Big$1.DP+=4);do t$5=r,r=half.times(t$5.plus(x$1.div(t$5)));while(t$5.c.slice(0,e).join(``)!==r.c.slice(0,e).join(``));return round(r,(Big$1.DP-=4)+r.e+1,Big$1.RM)},P.times=P.mul=function(y){var c$1,x$1=this,Big$1=x$1.constructor,xc=x$1.c,yc=(y=new Big$1(y)).c,a=xc.length,b=yc.length,i$4=x$1.e,j$1=y.e;if(y.s=x$1.s==y.s?1:-1,!xc[0]||!yc[0])return y.c=[y.e=0],y;for(y.e=i$4+j$1,a<b&&(c$1=xc,xc=yc,yc=c$1,j$1=a,a=b,b=j$1),c$1=Array(j$1=a+b);j$1--;)c$1[j$1]=0;for(i$4=b;i$4--;){for(b=0,j$1=a+i$4;j$1>i$4;)b=c$1[j$1]+yc[i$4]*xc[j$1-i$4-1]+b,c$1[j$1--]=b%10,b=b/10|0;c$1[j$1]=b}for(b?++y.e:c$1.shift(),i$4=c$1.length;!c$1[--i$4];)c$1.pop();return y.c=c$1,y},P.toExponential=function(dp,rm){var x$1=this,n$2=x$1.c[0];if(dp!==UNDEFINED){if(dp!==~~dp||dp<0||dp>MAX_DP)throw Error(INVALID_DP);for(x$1=round(new x$1.constructor(x$1),++dp,rm);x$1.c.length<dp;)x$1.c.push(0)}return stringify(x$1,!0,!!n$2)},P.toFixed=function(dp,rm){var x$1=this,n$2=x$1.c[0];if(dp!==UNDEFINED){if(dp!==~~dp||dp<0||dp>MAX_DP)throw Error(INVALID_DP);for(x$1=round(new x$1.constructor(x$1),dp+x$1.e+1,rm),dp=dp+x$1.e+1;x$1.c.length<dp;)x$1.c.push(0)}return stringify(x$1,!1,!!n$2)},P.toJSON=P.toString=function(){var x$1=this,Big$1=x$1.constructor;return stringify(x$1,x$1.e<=Big$1.NE||x$1.e>=Big$1.PE,!!x$1.c[0])},typeof Symbol<`u`&&(P[Symbol.for(`nodejs.util.inspect.custom`)]=P.toJSON),P.toNumber=function(){var n$2=+stringify(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(n$2.toString()))throw Error(NAME+`Imprecise conversion`);return n$2},P.toPrecision=function(sd,rm){var x$1=this,Big$1=x$1.constructor,n$2=x$1.c[0];if(sd!==UNDEFINED){if(sd!==~~sd||sd<1||sd>MAX_DP)throw Error(INVALID$3+`precision`);for(x$1=round(new Big$1(x$1),sd,rm);x$1.c.length<sd;)x$1.c.push(0)}return stringify(x$1,sd<=x$1.e||x$1.e<=Big$1.NE||x$1.e>=Big$1.PE,!!n$2)},P.valueOf=function(){var x$1=this,Big$1=x$1.constructor;if(Big$1.strict===!0)throw Error(NAME+`valueOf disallowed`);return stringify(x$1,x$1.e<=Big$1.NE||x$1.e>=Big$1.PE,!0)};var Big=_Big_(),big_default=Big;const messages$1={"bigint.base":`"{{#label}}" must be a valid bigint`,"bigint.greater":`"{{#label}}" must be greater than {{#limit}}`,"bigint.less":`"{{#label}}" must be less than {{#limit}}`,"bigint.max":`"{{#label}}" must be less than or equal to {{#limit}}`,"bigint.min":`"{{#label}}" must be greater than or equal to {{#limit}}`,"bigint.multiple":`"{{#label}}" must be a multiple of {{#limit}}`,"bigint.negative":`"{{#label}}" must be a negative bigint`,"bigint.positive":`"{{#label}}" must be a positive bigint`},compare$13=(value,limit,operator)=>{switch(operator){case`>`:return value.gt(limit);case`<`:return value.lt(limit);case`>=`:return value.gte(limit);case`<=`:return value.lte(limit);case`multiple`:return value.mod(limit).eq(0);default:return!1}},bigint=function(joi){return{type:`bigint`,base:joi.any(),coerce:{from:[`string`,`number`],method(value,helpers){if(typeof value==`bigint`)return{value};try{let asBig=big_default(value.toString());return asBig.eq(asBig.round(0))?{value:BigInt(asBig.toString())}:{value,errors:[helpers.error(`bigint.base`,{value:String(value)})]}}catch{return{value,errors:[helpers.error(`bigint.base`,{value:String(value)})]}}}},messages:messages$1,validate(value,{error}){return typeof value==`bigint`?{value}:{value,errors:error(`bigint.base`,{value:String(value)})}},rules:{compare:{method:!1,validate(value,helpers,{limit},{name:name$1,operator}){let big=big_default(value.toString()),threshold=big_default(limit.toString()),valid$2=compare$13(big,threshold,operator);return valid$2?value:helpers.error(`bigint.`+name$1,{limit:limit.toString(),value:value.toString()})},args:[{name:`limit`,ref:!0,assert:value=>[`bigint`,`number`,`string`].includes(typeof value),message:`must be a bigint`}]},greater:{method(limit){return this.$_addRule({name:`greater`,method:`compare`,args:{limit},operator:`>`})}},less:{method(limit){return this.$_addRule({name:`less`,method:`compare`,args:{limit},operator:`<`})}},max:{method(limit){return this.$_addRule({name:`max`,method:`compare`,args:{limit},operator:`<=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`compare`,args:{limit},operator:`>=`})}},multiple:{method(limit){return this.$_addRule({name:`multiple`,method:`compare`,args:{limit},operator:`multiple`})}},negative:{method(){return this.$_addRule(`negative`)},validate(value,helpers){return value>=0n?helpers.error(`bigint.negative`,{value:value.toString()}):value}},positive:{method(){return this.$_addRule(`positive`)},validate(value,helpers){return value<=0n?helpers.error(`bigint.positive`,{value:value.toString()}):value}}},cast:{string:{from:value=>typeof value==`bigint`,to(value){return value.toString()}}}}};var LuxonError=class extends Error{},InvalidDateTimeError=class extends LuxonError{constructor(reason){super(`Invalid DateTime: ${reason.toMessage()}`)}},InvalidIntervalError=class extends LuxonError{constructor(reason){super(`Invalid Interval: ${reason.toMessage()}`)}},InvalidDurationError=class extends LuxonError{constructor(reason){super(`Invalid Duration: ${reason.toMessage()}`)}},ConflictingSpecificationError=class extends LuxonError{},InvalidUnitError=class extends LuxonError{constructor(unit){super(`Invalid unit ${unit}`)}},InvalidArgumentError=class extends LuxonError{},ZoneIsAbstractError=class extends LuxonError{constructor(){super(`Zone is an abstract class`)}};const n=`numeric`,s=`short`,l=`long`,DATE_SHORT={year:n,month:n,day:n},DATE_MED={year:n,month:s,day:n},DATE_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s},DATE_FULL={year:n,month:l,day:n},DATE_HUGE={year:n,month:l,day:n,weekday:l},TIME_SIMPLE={hour:n,minute:n},TIME_WITH_SECONDS={hour:n,minute:n,second:n},TIME_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,timeZoneName:s},TIME_WITH_LONG_OFFSET={hour:n,minute:n,second:n,timeZoneName:l},TIME_24_SIMPLE={hour:n,minute:n,hourCycle:`h23`},TIME_24_WITH_SECONDS={hour:n,minute:n,second:n,hourCycle:`h23`},TIME_24_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,hourCycle:`h23`,timeZoneName:s},TIME_24_WITH_LONG_OFFSET={hour:n,minute:n,second:n,hourCycle:`h23`,timeZoneName:l},DATETIME_SHORT={year:n,month:n,day:n,hour:n,minute:n},DATETIME_SHORT_WITH_SECONDS={year:n,month:n,day:n,hour:n,minute:n,second:n},DATETIME_MED={year:n,month:s,day:n,hour:n,minute:n},DATETIME_MED_WITH_SECONDS={year:n,month:s,day:n,hour:n,minute:n,second:n},DATETIME_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s,hour:n,minute:n},DATETIME_FULL={year:n,month:l,day:n,hour:n,minute:n,timeZoneName:s},DATETIME_FULL_WITH_SECONDS={year:n,month:l,day:n,hour:n,minute:n,second:n,timeZoneName:s},DATETIME_HUGE={year:n,month:l,day:n,weekday:l,hour:n,minute:n,timeZoneName:l},DATETIME_HUGE_WITH_SECONDS={year:n,month:l,day:n,weekday:l,hour:n,minute:n,second:n,timeZoneName:l};var Zone=class{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(ts,opts){throw new ZoneIsAbstractError}formatOffset(ts,format){throw new ZoneIsAbstractError}offset(ts){throw new ZoneIsAbstractError}equals(otherZone){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}};let singleton$1=null;var SystemZone=class SystemZone extends Zone{static get instance(){return singleton$1===null&&(singleton$1=new SystemZone),singleton$1}get type(){return`system`}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(ts,{format,locale}){return parseZoneInfo(ts,format,locale)}formatOffset(ts,format){return formatOffset(this.offset(ts),format)}offset(ts){return-new Date(ts).getTimezoneOffset()}equals(otherZone){return otherZone.type===`system`}get isValid(){return!0}};const dtfCache=new Map;function makeDTF(zoneName){let dtf=dtfCache.get(zoneName);return dtf===void 0&&(dtf=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:zoneName,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,era:`short`}),dtfCache.set(zoneName,dtf)),dtf}const typeToPos={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(dtf,date){let formatted=dtf.format(date).replace(/\u200E/g,``),parsed=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(formatted),[,fMonth,fDay,fYear,fadOrBc,fHour,fMinute,fSecond]=parsed;return[fYear,fMonth,fDay,fadOrBc,fHour,fMinute,fSecond]}function partsOffset(dtf,date){let formatted=dtf.formatToParts(date),filled=[];for(let i$4=0;i$4<formatted.length;i$4++){let{type,value}=formatted[i$4],pos=typeToPos[type];type===`era`?filled[pos]=value:isUndefined(pos)||(filled[pos]=parseInt(value,10))}return filled}const ianaZoneCache=new Map;var IANAZone=class IANAZone extends Zone{static create(name$1){let zone=ianaZoneCache.get(name$1);return zone===void 0&&ianaZoneCache.set(name$1,zone=new IANAZone(name$1)),zone}static resetCache(){ianaZoneCache.clear(),dtfCache.clear()}static isValidSpecifier(s$2){return this.isValidZone(s$2)}static isValidZone(zone){if(!zone)return!1;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:zone}).format(),!0}catch{return!1}}constructor(name$1){super(),this.zoneName=name$1,this.valid=IANAZone.isValidZone(name$1)}get type(){return`iana`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(ts,{format,locale}){return parseZoneInfo(ts,format,locale,this.name)}formatOffset(ts,format){return formatOffset(this.offset(ts),format)}offset(ts){if(!this.valid)return NaN;let date=new Date(ts);if(isNaN(date))return NaN;let dtf=makeDTF(this.name),[year,month,day,adOrBc,hour,minute,second]=dtf.formatToParts?partsOffset(dtf,date):hackyOffset(dtf,date);adOrBc===`BC`&&(year=-Math.abs(year)+1);let adjustedHour=hour===24?0:hour,asUTC=objToLocalTS({year,month,day,hour:adjustedHour,minute,second,millisecond:0}),asTS=+date,over=asTS%1e3;return asTS-=over>=0?over:1e3+over,(asUTC-asTS)/(60*1e3)}equals(otherZone){return otherZone.type===`iana`&&otherZone.name===this.name}get isValid(){return this.valid}};let intlLFCache={};function getCachedLF(locString,opts={}){let key=JSON.stringify([locString,opts]),dtf=intlLFCache[key];return dtf||(dtf=new Intl.ListFormat(locString,opts),intlLFCache[key]=dtf),dtf}const intlDTCache=new Map;function getCachedDTF(locString,opts={}){let key=JSON.stringify([locString,opts]),dtf=intlDTCache.get(key);return dtf===void 0&&(dtf=new Intl.DateTimeFormat(locString,opts),intlDTCache.set(key,dtf)),dtf}const intlNumCache=new Map;function getCachedINF(locString,opts={}){let key=JSON.stringify([locString,opts]),inf=intlNumCache.get(key);return inf===void 0&&(inf=new Intl.NumberFormat(locString,opts),intlNumCache.set(key,inf)),inf}const intlRelCache=new Map;function getCachedRTF(locString,opts={}){let{base,...cacheKeyOpts}=opts,key=JSON.stringify([locString,cacheKeyOpts]),inf=intlRelCache.get(key);return inf===void 0&&(inf=new Intl.RelativeTimeFormat(locString,opts),intlRelCache.set(key,inf)),inf}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache)}const intlResolvedOptionsCache=new Map;function getCachedIntResolvedOptions(locString){let opts=intlResolvedOptionsCache.get(locString);return opts===void 0&&(opts=new Intl.DateTimeFormat(locString).resolvedOptions(),intlResolvedOptionsCache.set(locString,opts)),opts}const weekInfoCache=new Map;function getCachedWeekInfo(locString){let data=weekInfoCache.get(locString);if(!data){let locale=new Intl.Locale(locString);data=`getWeekInfo`in locale?locale.getWeekInfo():locale.weekInfo,`minimalDays`in data||(data={...fallbackWeekSettings,...data}),weekInfoCache.set(locString,data)}return data}function parseLocaleString(localeStr){let xIndex=localeStr.indexOf(`-x-`);xIndex!==-1&&(localeStr=localeStr.substring(0,xIndex));let uIndex=localeStr.indexOf(`-u-`);if(uIndex===-1)return[localeStr];{let options,selectedStr;try{options=getCachedDTF(localeStr).resolvedOptions(),selectedStr=localeStr}catch{let smaller=localeStr.substring(0,uIndex);options=getCachedDTF(smaller).resolvedOptions(),selectedStr=smaller}let{numberingSystem,calendar}=options;return[selectedStr,numberingSystem,calendar]}}function intlConfigString(localeStr,numberingSystem,outputCalendar){return outputCalendar||numberingSystem?(localeStr.includes(`-u-`)||(localeStr+=`-u`),outputCalendar&&(localeStr+=`-ca-${outputCalendar}`),numberingSystem&&(localeStr+=`-nu-${numberingSystem}`),localeStr):localeStr}function mapMonths(f){let ms=[];for(let i$4=1;i$4<=12;i$4++){let dt=DateTime.utc(2009,i$4,1);ms.push(f(dt))}return ms}function mapWeekdays(f){let ms=[];for(let i$4=1;i$4<=7;i$4++){let dt=DateTime.utc(2016,11,13+i$4);ms.push(f(dt))}return ms}function listStuff(loc,length,englishFn,intlFn){let mode=loc.listingMode();return mode===`error`?null:mode===`en`?englishFn(length):intlFn(length)}function supportsFastNumbers(loc){return loc.numberingSystem&&loc.numberingSystem!==`latn`?!1:loc.numberingSystem===`latn`||!loc.locale||loc.locale.startsWith(`en`)||getCachedIntResolvedOptions(loc.locale).numberingSystem===`latn`}var PolyNumberFormatter=class{constructor(intl,forceSimple,opts){this.padTo=opts.padTo||0,this.floor=opts.floor||!1;let{padTo,floor:floor$1,...otherOpts}=opts;if(!forceSimple||Object.keys(otherOpts).length>0){let intlOpts={useGrouping:!1,...opts};opts.padTo>0&&(intlOpts.minimumIntegerDigits=opts.padTo),this.inf=getCachedINF(intl,intlOpts)}}format(i$4){if(this.inf){let fixed=this.floor?Math.floor(i$4):i$4;return this.inf.format(fixed)}else{let fixed=this.floor?Math.floor(i$4):roundTo(i$4,3);return padStart(fixed,this.padTo)}}},PolyDateFormatter=class{constructor(dt,intl,opts){this.opts=opts,this.originalZone=void 0;let z$1;if(this.opts.timeZone)this.dt=dt;else if(dt.zone.type===`fixed`){let gmtOffset=-1*(dt.offset/60),offsetZ=gmtOffset>=0?`Etc/GMT+${gmtOffset}`:`Etc/GMT${gmtOffset}`;dt.offset!==0&&IANAZone.create(offsetZ).valid?(z$1=offsetZ,this.dt=dt):(z$1=`UTC`,this.dt=dt.offset===0?dt:dt.setZone(`UTC`).plus({minutes:dt.offset}),this.originalZone=dt.zone)}else dt.zone.type===`system`?this.dt=dt:dt.zone.type===`iana`?(this.dt=dt,z$1=dt.zone.name):(z$1=`UTC`,this.dt=dt.setZone(`UTC`).plus({minutes:dt.offset}),this.originalZone=dt.zone);let intlOpts={...this.opts};intlOpts.timeZone=intlOpts.timeZone||z$1,this.dtf=getCachedDTF(intl,intlOpts)}format(){return this.originalZone?this.formatToParts().map(({value})=>value).join(``):this.dtf.format(this.dt.toJSDate())}formatToParts(){let parts=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?parts.map(part=>{if(part.type===`timeZoneName`){let offsetName=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...part,value:offsetName}}else return part}):parts}resolvedOptions(){return this.dtf.resolvedOptions()}},PolyRelFormatter=class{constructor(intl,isEnglish,opts){this.opts={style:`long`,...opts},!isEnglish&&hasRelative()&&(this.rtf=getCachedRTF(intl,opts))}format(count,unit){return this.rtf?this.rtf.format(count,unit):formatRelativeTime(unit,count,this.opts.numeric,this.opts.style!==`long`)}formatToParts(count,unit){return this.rtf?this.rtf.formatToParts(count,unit):[]}};const fallbackWeekSettings={firstDay:1,minimalDays:4,weekend:[6,7]};var Locale=class Locale{static fromOpts(opts){return Locale.create(opts.locale,opts.numberingSystem,opts.outputCalendar,opts.weekSettings,opts.defaultToEN)}static create(locale,numberingSystem,outputCalendar,weekSettings,defaultToEN=!1){let specifiedLocale=locale||Settings.defaultLocale,localeR=specifiedLocale||(defaultToEN?`en-US`:systemLocale()),numberingSystemR=numberingSystem||Settings.defaultNumberingSystem,outputCalendarR=outputCalendar||Settings.defaultOutputCalendar,weekSettingsR=validateWeekSettings(weekSettings)||Settings.defaultWeekSettings;return new Locale(localeR,numberingSystemR,outputCalendarR,weekSettingsR,specifiedLocale)}static resetCache(){sysLocaleCache=null,intlDTCache.clear(),intlNumCache.clear(),intlRelCache.clear(),intlResolvedOptionsCache.clear(),weekInfoCache.clear()}static fromObject({locale,numberingSystem,outputCalendar,weekSettings}={}){return Locale.create(locale,numberingSystem,outputCalendar,weekSettings)}constructor(locale,numbering,outputCalendar,weekSettings,specifiedLocale){let[parsedLocale,parsedNumberingSystem,parsedOutputCalendar]=parseLocaleString(locale);this.locale=parsedLocale,this.numberingSystem=numbering||parsedNumberingSystem||null,this.outputCalendar=outputCalendar||parsedOutputCalendar||null,this.weekSettings=weekSettings,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=specifiedLocale,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached??=supportsFastNumbers(this),this.fastNumbersCached}listingMode(){let isActuallyEn=this.isEnglish(),hasNoWeirdness=(this.numberingSystem===null||this.numberingSystem===`latn`)&&(this.outputCalendar===null||this.outputCalendar===`gregory`);return isActuallyEn&&hasNoWeirdness?`en`:`intl`}clone(alts){return!alts||Object.getOwnPropertyNames(alts).length===0?this:Locale.create(alts.locale||this.specifiedLocale,alts.numberingSystem||this.numberingSystem,alts.outputCalendar||this.outputCalendar,validateWeekSettings(alts.weekSettings)||this.weekSettings,alts.defaultToEN||!1)}redefaultToEN(alts={}){return this.clone({...alts,defaultToEN:!0})}redefaultToSystem(alts={}){return this.clone({...alts,defaultToEN:!1})}months(length,format=!1){return listStuff(this,length,months,()=>{let monthSpecialCase=this.intl===`ja`||this.intl.startsWith(`ja-`);format&=!monthSpecialCase;let intl=format?{month:length,day:`numeric`}:{month:length},formatStr=format?`format`:`standalone`;if(!this.monthsCache[formatStr][length]){let mapper=monthSpecialCase?dt=>this.dtFormatter(dt,intl).format():dt=>this.extract(dt,intl,`month`);this.monthsCache[formatStr][length]=mapMonths(mapper)}return this.monthsCache[formatStr][length]})}weekdays(length,format=!1){return listStuff(this,length,weekdays,()=>{let intl=format?{weekday:length,year:`numeric`,month:`long`,day:`numeric`}:{weekday:length},formatStr=format?`format`:`standalone`;return this.weekdaysCache[formatStr][length]||(this.weekdaysCache[formatStr][length]=mapWeekdays(dt=>this.extract(dt,intl,`weekday`))),this.weekdaysCache[formatStr][length]})}meridiems(){return listStuff(this,void 0,()=>meridiems,()=>{if(!this.meridiemCache){let intl={hour:`numeric`,hourCycle:`h12`};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(dt=>this.extract(dt,intl,`dayperiod`))}return this.meridiemCache})}eras(length){return listStuff(this,length,eras,()=>{let intl={era:length};return this.eraCache[length]||(this.eraCache[length]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(dt=>this.extract(dt,intl,`era`))),this.eraCache[length]})}extract(dt,intlOpts,field){let df=this.dtFormatter(dt,intlOpts),results=df.formatToParts(),matching=results.find(m=>m.type.toLowerCase()===field);return matching?matching.value:null}numberFormatter(opts={}){return new PolyNumberFormatter(this.intl,opts.forceSimple||this.fastNumbers,opts)}dtFormatter(dt,intlOpts={}){return new PolyDateFormatter(dt,this.intl,intlOpts)}relFormatter(opts={}){return new PolyRelFormatter(this.intl,this.isEnglish(),opts)}listFormatter(opts={}){return getCachedLF(this.intl,opts)}isEnglish(){return this.locale===`en`||this.locale.toLowerCase()===`en-us`||getCachedIntResolvedOptions(this.intl).locale.startsWith(`en-us`)}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo()?getCachedWeekInfo(this.locale):fallbackWeekSettings}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(other){return this.locale===other.locale&&this.numberingSystem===other.numberingSystem&&this.outputCalendar===other.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};let singleton=null;var FixedOffsetZone=class FixedOffsetZone extends Zone{static get utcInstance(){return singleton===null&&(singleton=new FixedOffsetZone(0)),singleton}static instance(offset$2){return offset$2===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(offset$2)}static parseSpecifier(s$2){if(s$2){let r=s$2.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new FixedOffsetZone(signedOffset(r[1],r[2]))}return null}constructor(offset$2){super(),this.fixed=offset$2}get type(){return`fixed`}get name(){return this.fixed===0?`UTC`:`UTC${formatOffset(this.fixed,`narrow`)}`}get ianaName(){return this.fixed===0?`Etc/UTC`:`Etc/GMT${formatOffset(-this.fixed,`narrow`)}`}offsetName(){return this.name}formatOffset(ts,format){return formatOffset(this.fixed,format)}get isUniversal(){return!0}offset(){return this.fixed}equals(otherZone){return otherZone.type===`fixed`&&otherZone.fixed===this.fixed}get isValid(){return!0}},InvalidZone=class extends Zone{constructor(zoneName){super(),this.zoneName=zoneName}get type(){return`invalid`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return``}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function normalizeZone(input,defaultZone$2){if(isUndefined(input)||input===null)return defaultZone$2;if(input instanceof Zone)return input;if(isString(input)){let lowered=input.toLowerCase();return lowered===`default`?defaultZone$2:lowered===`local`||lowered===`system`?SystemZone.instance:lowered===`utc`||lowered===`gmt`?FixedOffsetZone.utcInstance:FixedOffsetZone.parseSpecifier(lowered)||IANAZone.create(input)}else if(isNumber(input))return FixedOffsetZone.instance(input);else if(typeof input==`object`&&`offset`in input&&typeof input.offset==`function`)return input;else return new InvalidZone(input)}const numberingSystems={arab:`[٠-٩]`,arabext:`[۰-۹]`,bali:`[᭐-᭙]`,beng:`[০-৯]`,deva:`[०-९]`,fullwide:`[0-9]`,gujr:`[૦-૯]`,hanidec:`[〇|一|二|三|四|五|六|七|八|九]`,khmr:`[០-៩]`,knda:`[೦-೯]`,laoo:`[໐-໙]`,limb:`[᥆-᥏]`,mlym:`[൦-൯]`,mong:`[᠐-᠙]`,mymr:`[၀-၉]`,orya:`[୦-୯]`,tamldec:`[௦-௯]`,telu:`[౦-౯]`,thai:`[๐-๙]`,tibt:`[༠-༩]`,latn:`\\d`},numberingSystemsUTF16={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,``).split(``);function parseDigits(str){let value=parseInt(str,10);if(isNaN(value)){value=``;for(let i$4=0;i$4<str.length;i$4++){let code$2=str.charCodeAt(i$4);if(str[i$4].search(numberingSystems.hanidec)!==-1)value+=hanidecChars.indexOf(str[i$4]);else for(let key in numberingSystemsUTF16){let[min$1,max$3]=numberingSystemsUTF16[key];code$2>=min$1&&code$2<=max$3&&(value+=code$2-min$1)}}return parseInt(value,10)}else return value}const digitRegexCache=new Map;function resetDigitRegexCache(){digitRegexCache.clear()}function digitRegex({numberingSystem},append=``){let ns=numberingSystem||`latn`,appendCache=digitRegexCache.get(ns);appendCache===void 0&&(appendCache=new Map,digitRegexCache.set(ns,appendCache));let regex=appendCache.get(append);return regex===void 0&&(regex=RegExp(`${numberingSystems[ns]}${append}`),appendCache.set(append,regex)),regex}let now=()=>Date.now(),defaultZone=`system`,defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=60,throwOnInvalid,defaultWeekSettings=null;var Settings=class{static get now(){return now}static set now(n$2){now=n$2}static set defaultZone(zone){defaultZone=zone}static get defaultZone(){return normalizeZone(defaultZone,SystemZone.instance)}static get defaultLocale(){return defaultLocale}static set defaultLocale(locale){defaultLocale=locale}static get defaultNumberingSystem(){return defaultNumberingSystem}static set defaultNumberingSystem(numberingSystem){defaultNumberingSystem=numberingSystem}static get defaultOutputCalendar(){return defaultOutputCalendar}static set defaultOutputCalendar(outputCalendar){defaultOutputCalendar=outputCalendar}static get defaultWeekSettings(){return defaultWeekSettings}static set defaultWeekSettings(weekSettings){defaultWeekSettings=validateWeekSettings(weekSettings)}static get twoDigitCutoffYear(){return twoDigitCutoffYear}static set twoDigitCutoffYear(cutoffYear){twoDigitCutoffYear=cutoffYear%100}static get throwOnInvalid(){return throwOnInvalid}static set throwOnInvalid(t$5){throwOnInvalid=t$5}static resetCaches(){Locale.resetCache(),IANAZone.resetCache(),DateTime.resetCache(),resetDigitRegexCache()}},Invalid=class{constructor(reason,explanation){this.reason=reason,this.explanation=explanation}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(unit,value){return new Invalid(`unit out of range`,`you specified ${value} (of type ${typeof value}) as a ${unit}, which is invalid`)}function dayOfWeek(year,month,day){let d=new Date(Date.UTC(year,month-1,day));year<100&&year>=0&&d.setUTCFullYear(d.getUTCFullYear()-1900);let js=d.getUTCDay();return js===0?7:js}function computeOrdinal(year,month,day){return day+(isLeapYear(year)?leapLadder:nonLeapLadder)[month-1]}function uncomputeOrdinal(year,ordinal){let table=isLeapYear(year)?leapLadder:nonLeapLadder,month0=table.findIndex(i$4=>i$4<ordinal),day=ordinal-table[month0];return{month:month0+1,day}}function isoWeekdayToLocal(isoWeekday,startOfWeek){return(isoWeekday-startOfWeek+7)%7+1}function gregorianToWeek(gregObj,minDaysInFirstWeek=4,startOfWeek=1){let{year,month,day}=gregObj,ordinal=computeOrdinal(year,month,day),weekday=isoWeekdayToLocal(dayOfWeek(year,month,day),startOfWeek),weekNumber=Math.floor((ordinal-weekday+14-minDaysInFirstWeek)/7),weekYear;return weekNumber<1?(weekYear=year-1,weekNumber=weeksInWeekYear(weekYear,minDaysInFirstWeek,startOfWeek)):weekNumber>weeksInWeekYear(year,minDaysInFirstWeek,startOfWeek)?(weekYear=year+1,weekNumber=1):weekYear=year,{weekYear,weekNumber,weekday,...timeObject(gregObj)}}function weekToGregorian(weekData,minDaysInFirstWeek=4,startOfWeek=1){let{weekYear,weekNumber,weekday}=weekData,weekdayOfJan4=isoWeekdayToLocal(dayOfWeek(weekYear,1,minDaysInFirstWeek),startOfWeek),yearInDays=daysInYear(weekYear),ordinal=weekNumber*7+weekday-weekdayOfJan4-7+minDaysInFirstWeek,year;ordinal<1?(year=weekYear-1,ordinal+=daysInYear(year)):ordinal>yearInDays?(year=weekYear+1,ordinal-=daysInYear(weekYear)):year=weekYear;let{month,day}=uncomputeOrdinal(year,ordinal);return{year,month,day,...timeObject(weekData)}}function gregorianToOrdinal(gregData){let{year,month,day}=gregData,ordinal=computeOrdinal(year,month,day);return{year,ordinal,...timeObject(gregData)}}function ordinalToGregorian(ordinalData){let{year,ordinal}=ordinalData,{month,day}=uncomputeOrdinal(year,ordinal);return{year,month,day,...timeObject(ordinalData)}}function usesLocalWeekValues(obj,loc){let hasLocaleWeekData=!isUndefined(obj.localWeekday)||!isUndefined(obj.localWeekNumber)||!isUndefined(obj.localWeekYear);if(hasLocaleWeekData){let hasIsoWeekData=!isUndefined(obj.weekday)||!isUndefined(obj.weekNumber)||!isUndefined(obj.weekYear);if(hasIsoWeekData)throw new ConflictingSpecificationError(`Cannot mix locale-based week fields with ISO-based week fields`);return isUndefined(obj.localWeekday)||(obj.weekday=obj.localWeekday),isUndefined(obj.localWeekNumber)||(obj.weekNumber=obj.localWeekNumber),isUndefined(obj.localWeekYear)||(obj.weekYear=obj.localWeekYear),delete obj.localWeekday,delete obj.localWeekNumber,delete obj.localWeekYear,{minDaysInFirstWeek:loc.getMinDaysInFirstWeek(),startOfWeek:loc.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData(obj,minDaysInFirstWeek=4,startOfWeek=1){let validYear=isInteger(obj.weekYear),validWeek=integerBetween(obj.weekNumber,1,weeksInWeekYear(obj.weekYear,minDaysInFirstWeek,startOfWeek)),validWeekday=integerBetween(obj.weekday,1,7);return validYear?validWeek?validWeekday?!1:unitOutOfRange(`weekday`,obj.weekday):unitOutOfRange(`week`,obj.weekNumber):unitOutOfRange(`weekYear`,obj.weekYear)}function hasInvalidOrdinalData(obj){let validYear=isInteger(obj.year),validOrdinal=integerBetween(obj.ordinal,1,daysInYear(obj.year));return validYear?validOrdinal?!1:unitOutOfRange(`ordinal`,obj.ordinal):unitOutOfRange(`year`,obj.year)}function hasInvalidGregorianData(obj){let validYear=isInteger(obj.year),validMonth=integerBetween(obj.month,1,12),validDay=integerBetween(obj.day,1,daysInMonth(obj.year,obj.month));return validYear?validMonth?validDay?!1:unitOutOfRange(`day`,obj.day):unitOutOfRange(`month`,obj.month):unitOutOfRange(`year`,obj.year)}function hasInvalidTimeData(obj){let{hour,minute,second,millisecond}=obj,validHour=integerBetween(hour,0,23)||hour===24&&minute===0&&second===0&&millisecond===0,validMinute=integerBetween(minute,0,59),validSecond=integerBetween(second,0,59),validMillisecond=integerBetween(millisecond,0,999);return validHour?validMinute?validSecond?validMillisecond?!1:unitOutOfRange(`millisecond`,millisecond):unitOutOfRange(`second`,second):unitOutOfRange(`minute`,minute):unitOutOfRange(`hour`,hour)}function isUndefined(o){return o===void 0}function isNumber(o){return typeof o==`number`}function isInteger(o){return typeof o==`number`&&o%1==0}function isString(o){return typeof o==`string`}function isDate(o){return Object.prototype.toString.call(o)===`[object Date]`}function hasRelative(){try{return typeof Intl<`u`&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo(){try{return typeof Intl<`u`&&!!Intl.Locale&&(`weekInfo`in Intl.Locale.prototype||`getWeekInfo`in Intl.Locale.prototype)}catch{return!1}}function maybeArray(thing){return Array.isArray(thing)?thing:[thing]}function bestBy(arr,by,compare$14){if(arr.length!==0)return arr.reduce((best,next)=>{let pair=[by(next),next];return best&&compare$14(best[0],pair[0])===best[0]?best:pair},null)[1]}function pick(obj,keys){return keys.reduce((a,k)=>(a[k]=obj[k],a),{})}function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}function validateWeekSettings(settings){if(settings==null)return null;if(typeof settings!=`object`)throw new InvalidArgumentError(`Week settings must be an object`);if(!integerBetween(settings.firstDay,1,7)||!integerBetween(settings.minimalDays,1,7)||!Array.isArray(settings.weekend)||settings.weekend.some(v=>!integerBetween(v,1,7)))throw new InvalidArgumentError(`Invalid week settings`);return{firstDay:settings.firstDay,minimalDays:settings.minimalDays,weekend:Array.from(settings.weekend)}}function integerBetween(thing,bottom,top){return isInteger(thing)&&thing>=bottom&&thing<=top}function floorMod(x$1,n$2){return x$1-n$2*Math.floor(x$1/n$2)}function padStart(input,n$2=2){let isNeg=input<0,padded;return padded=isNeg?`-`+(``+-input).padStart(n$2,`0`):(``+input).padStart(n$2,`0`),padded}function parseInteger(string){if(!(isUndefined(string)||string===null||string===``))return parseInt(string,10)}function parseFloating(string){if(!(isUndefined(string)||string===null||string===``))return parseFloat(string)}function parseMillis(fraction){if(!(isUndefined(fraction)||fraction===null||fraction===``)){let f=parseFloat(`0.`+fraction)*1e3;return Math.floor(f)}}function roundTo(number,digits,rounding=`round`){let factor=10**digits;switch(rounding){case`expand`:return number>0?Math.ceil(number*factor)/factor:Math.floor(number*factor)/factor;case`trunc`:return Math.trunc(number*factor)/factor;case`round`:return Math.round(number*factor)/factor;case`floor`:return Math.floor(number*factor)/factor;case`ceil`:return Math.ceil(number*factor)/factor;default:throw RangeError(`Value rounding ${rounding} is out of range`)}}function isLeapYear(year){return year%4==0&&(year%100!=0||year%400==0)}function daysInYear(year){return isLeapYear(year)?366:365}function daysInMonth(year,month){let modMonth=floorMod(month-1,12)+1,modYear=year+(month-modMonth)/12;return modMonth===2?isLeapYear(modYear)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][modMonth-1]}function objToLocalTS(obj){let d=Date.UTC(obj.year,obj.month-1,obj.day,obj.hour,obj.minute,obj.second,obj.millisecond);return obj.year<100&&obj.year>=0&&(d=new Date(d),d.setUTCFullYear(obj.year,obj.month-1,obj.day)),+d}function firstWeekOffset(year,minDaysInFirstWeek,startOfWeek){let fwdlw=isoWeekdayToLocal(dayOfWeek(year,1,minDaysInFirstWeek),startOfWeek);return-fwdlw+minDaysInFirstWeek-1}function weeksInWeekYear(weekYear,minDaysInFirstWeek=4,startOfWeek=1){let weekOffset=firstWeekOffset(weekYear,minDaysInFirstWeek,startOfWeek),weekOffsetNext=firstWeekOffset(weekYear+1,minDaysInFirstWeek,startOfWeek);return(daysInYear(weekYear)-weekOffset+weekOffsetNext)/7}function untruncateYear(year){return year>99?year:year>Settings.twoDigitCutoffYear?1900+year:2e3+year}function parseZoneInfo(ts,offsetFormat,locale,timeZone=null){let date=new Date(ts),intlOpts={hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`};timeZone&&(intlOpts.timeZone=timeZone);let modified={timeZoneName:offsetFormat,...intlOpts},parsed=new Intl.DateTimeFormat(locale,modified).formatToParts(date).find(m=>m.type.toLowerCase()===`timezonename`);return parsed?parsed.value:null}function signedOffset(offHourStr,offMinuteStr){let offHour=parseInt(offHourStr,10);Number.isNaN(offHour)&&(offHour=0);let offMin=parseInt(offMinuteStr,10)||0,offMinSigned=offHour<0||Object.is(offHour,-0)?-offMin:offMin;return offHour*60+offMinSigned}function asNumber(value){let numericValue=Number(value);if(typeof value==`boolean`||value===``||!Number.isFinite(numericValue))throw new InvalidArgumentError(`Invalid unit value ${value}`);return numericValue}function normalizeObject(obj,normalizer){let normalized={};for(let u in obj)if(hasOwnProperty(obj,u)){let v=obj[u];if(v==null)continue;normalized[normalizer(u)]=asNumber(v)}return normalized}function formatOffset(offset$2,format){let hours=Math.trunc(Math.abs(offset$2/60)),minutes=Math.trunc(Math.abs(offset$2%60)),sign$1=offset$2>=0?`+`:`-`;switch(format){case`short`:return`${sign$1}${padStart(hours,2)}:${padStart(minutes,2)}`;case`narrow`:return`${sign$1}${hours}${minutes>0?`:${minutes}`:``}`;case`techie`:return`${sign$1}${padStart(hours,2)}${padStart(minutes,2)}`;default:throw RangeError(`Value format ${format} is out of range for property format`)}}function timeObject(obj){return pick(obj,[`hour`,`minute`,`second`,`millisecond`])}const monthsLong=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],monthsNarrow=[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`];function months(length){switch(length){case`narrow`:return[...monthsNarrow];case`short`:return[...monthsShort];case`long`:return[...monthsLong];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`];case`2-digit`:return[`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`,`12`];default:return null}}const weekdaysLong=[`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],weekdaysShort=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],weekdaysNarrow=[`M`,`T`,`W`,`T`,`F`,`S`,`S`];function weekdays(length){switch(length){case`narrow`:return[...weekdaysNarrow];case`short`:return[...weekdaysShort];case`long`:return[...weekdaysLong];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`];default:return null}}const meridiems=[`AM`,`PM`],erasLong=[`Before Christ`,`Anno Domini`],erasShort=[`BC`,`AD`],erasNarrow=[`B`,`A`];function eras(length){switch(length){case`narrow`:return[...erasNarrow];case`short`:return[...erasShort];case`long`:return[...erasLong];default:return null}}function meridiemForDateTime(dt){return meridiems[dt.hour<12?0:1]}function weekdayForDateTime(dt,length){return weekdays(length)[dt.weekday-1]}function monthForDateTime(dt,length){return months(length)[dt.month-1]}function eraForDateTime(dt,length){return eras(length)[dt.year<0?0:1]}function formatRelativeTime(unit,count,numeric$1=`always`,narrow=!1){let units={years:[`year`,`yr.`],quarters:[`quarter`,`qtr.`],months:[`month`,`mo.`],weeks:[`week`,`wk.`],days:[`day`,`day`,`days`],hours:[`hour`,`hr.`],minutes:[`minute`,`min.`],seconds:[`second`,`sec.`]},lastable=[`hours`,`minutes`,`seconds`].indexOf(unit)===-1;if(numeric$1===`auto`&&lastable){let isDay=unit===`days`;switch(count){case 1:return isDay?`tomorrow`:`next ${units[unit][0]}`;case-1:return isDay?`yesterday`:`last ${units[unit][0]}`;case 0:return isDay?`today`:`this ${units[unit][0]}`}}let isInPast=Object.is(count,-0)||count<0,fmtValue=Math.abs(count),singular=fmtValue===1,lilUnits=units[unit],fmtUnit=narrow?singular?lilUnits[1]:lilUnits[2]||lilUnits[1]:singular?units[unit][0]:unit;return isInPast?`${fmtValue} ${fmtUnit} ago`:`in ${fmtValue} ${fmtUnit}`}function stringifyTokens(splits,tokenToString){let s$2=``;for(let token of splits)token.literal?s$2+=token.val:s$2+=tokenToString(token.val);return s$2}const macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS};var Formatter=class Formatter{static create(locale,opts={}){return new Formatter(locale,opts)}static parseFormat(fmt){let current=null,currentFull=``,bracketed=!1,splits=[];for(let i$4=0;i$4<fmt.length;i$4++){let c$1=fmt.charAt(i$4);c$1===`'`?((currentFull.length>0||bracketed)&&splits.push({literal:bracketed||/^\s+$/.test(currentFull),val:currentFull===``?`'`:currentFull}),current=null,currentFull=``,bracketed=!bracketed):bracketed||c$1===current?currentFull+=c$1:(currentFull.length>0&&splits.push({literal:/^\s+$/.test(currentFull),val:currentFull}),currentFull=c$1,current=c$1)}return currentFull.length>0&&splits.push({literal:bracketed||/^\s+$/.test(currentFull),val:currentFull}),splits}static macroTokenToFormatOpts(token){return macroTokenToFormatOpts[token]}constructor(locale,formatOpts){this.opts=formatOpts,this.loc=locale,this.systemLoc=null}formatWithSystemDefault(dt,opts){this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem());let df=this.systemLoc.dtFormatter(dt,{...this.opts,...opts});return df.format()}dtFormatter(dt,opts={}){return this.loc.dtFormatter(dt,{...this.opts,...opts})}formatDateTime(dt,opts){return this.dtFormatter(dt,opts).format()}formatDateTimeParts(dt,opts){return this.dtFormatter(dt,opts).formatToParts()}formatInterval(interval,opts){let df=this.dtFormatter(interval.start,opts);return df.dtf.formatRange(interval.start.toJSDate(),interval.end.toJSDate())}resolvedOptions(dt,opts){return this.dtFormatter(dt,opts).resolvedOptions()}num(n$2,p=0,signDisplay=void 0){if(this.opts.forceSimple)return padStart(n$2,p);let opts={...this.opts};return p>0&&(opts.padTo=p),signDisplay&&(opts.signDisplay=signDisplay),this.loc.numberFormatter(opts).format(n$2)}formatDateTimeFromString(dt,fmt){let knownEnglish=this.loc.listingMode()===`en`,useDateTimeFormatter=this.loc.outputCalendar&&this.loc.outputCalendar!==`gregory`,string=(opts,extract)=>this.loc.extract(dt,opts,extract),formatOffset$2=opts=>dt.isOffsetFixed&&dt.offset===0&&opts.allowZ?`Z`:dt.isValid?dt.zone.formatOffset(dt.ts,opts.format):``,meridiem=()=>knownEnglish?meridiemForDateTime(dt):string({hour:`numeric`,hourCycle:`h12`},`dayperiod`),month=(length,standalone)=>knownEnglish?monthForDateTime(dt,length):string(standalone?{month:length}:{month:length,day:`numeric`},`month`),weekday=(length,standalone)=>knownEnglish?weekdayForDateTime(dt,length):string(standalone?{weekday:length}:{weekday:length,month:`long`,day:`numeric`},`weekday`),maybeMacro=token=>{let formatOpts=Formatter.macroTokenToFormatOpts(token);return formatOpts?this.formatWithSystemDefault(dt,formatOpts):token},era=length=>knownEnglish?eraForDateTime(dt,length):string({era:length},`era`),tokenToString=token=>{switch(token){case`S`:return this.num(dt.millisecond);case`u`:case`SSS`:return this.num(dt.millisecond,3);case`s`:return this.num(dt.second);case`ss`:return this.num(dt.second,2);case`uu`:return this.num(Math.floor(dt.millisecond/10),2);case`uuu`:return this.num(Math.floor(dt.millisecond/100));case`m`:return this.num(dt.minute);case`mm`:return this.num(dt.minute,2);case`h`:return this.num(dt.hour%12==0?12:dt.hour%12);case`hh`:return this.num(dt.hour%12==0?12:dt.hour%12,2);case`H`:return this.num(dt.hour);case`HH`:return this.num(dt.hour,2);case`Z`:return formatOffset$2({format:`narrow`,allowZ:this.opts.allowZ});case`ZZ`:return formatOffset$2({format:`short`,allowZ:this.opts.allowZ});case`ZZZ`:return formatOffset$2({format:`techie`,allowZ:this.opts.allowZ});case`ZZZZ`:return dt.zone.offsetName(dt.ts,{format:`short`,locale:this.loc.locale});case`ZZZZZ`:return dt.zone.offsetName(dt.ts,{format:`long`,locale:this.loc.locale});case`z`:return dt.zoneName;case`a`:return meridiem();case`d`:return useDateTimeFormatter?string({day:`numeric`},`day`):this.num(dt.day);case`dd`:return useDateTimeFormatter?string({day:`2-digit`},`day`):this.num(dt.day,2);case`c`:return this.num(dt.weekday);case`ccc`:return weekday(`short`,!0);case`cccc`:return weekday(`long`,!0);case`ccccc`:return weekday(`narrow`,!0);case`E`:return this.num(dt.weekday);case`EEE`:return weekday(`short`,!1);case`EEEE`:return weekday(`long`,!1);case`EEEEE`:return weekday(`narrow`,!1);case`L`:return useDateTimeFormatter?string({month:`numeric`,day:`numeric`},`month`):this.num(dt.month);case`LL`:return useDateTimeFormatter?string({month:`2-digit`,day:`numeric`},`month`):this.num(dt.month,2);case`LLL`:return month(`short`,!0);case`LLLL`:return month(`long`,!0);case`LLLLL`:return month(`narrow`,!0);case`M`:return useDateTimeFormatter?string({month:`numeric`},`month`):this.num(dt.month);case`MM`:return useDateTimeFormatter?string({month:`2-digit`},`month`):this.num(dt.month,2);case`MMM`:return month(`short`,!1);case`MMMM`:return month(`long`,!1);case`MMMMM`:return month(`narrow`,!1);case`y`:return useDateTimeFormatter?string({year:`numeric`},`year`):this.num(dt.year);case`yy`:return useDateTimeFormatter?string({year:`2-digit`},`year`):this.num(dt.year.toString().slice(-2),2);case`yyyy`:return useDateTimeFormatter?string({year:`numeric`},`year`):this.num(dt.year,4);case`yyyyyy`:return useDateTimeFormatter?string({year:`numeric`},`year`):this.num(dt.year,6);case`G`:return era(`short`);case`GG`:return era(`long`);case`GGGGG`:return era(`narrow`);case`kk`:return this.num(dt.weekYear.toString().slice(-2),2);case`kkkk`:return this.num(dt.weekYear,4);case`W`:return this.num(dt.weekNumber);case`WW`:return this.num(dt.weekNumber,2);case`n`:return this.num(dt.localWeekNumber);case`nn`:return this.num(dt.localWeekNumber,2);case`ii`:return this.num(dt.localWeekYear.toString().slice(-2),2);case`iiii`:return this.num(dt.localWeekYear,4);case`o`:return this.num(dt.ordinal);case`ooo`:return this.num(dt.ordinal,3);case`q`:return this.num(dt.quarter);case`qq`:return this.num(dt.quarter,2);case`X`:return this.num(Math.floor(dt.ts/1e3));case`x`:return this.num(dt.ts);default:return maybeMacro(token)}};return stringifyTokens(Formatter.parseFormat(fmt),tokenToString)}formatDurationFromString(dur,fmt){let invertLargest=this.opts.signMode===`negativeLargestOnly`?-1:1,tokenToField=token=>{switch(token[0]){case`S`:return`milliseconds`;case`s`:return`seconds`;case`m`:return`minutes`;case`h`:return`hours`;case`d`:return`days`;case`w`:return`weeks`;case`M`:return`months`;case`y`:return`years`;default:return null}},tokenToString=(lildur,info)=>token=>{let mapped=tokenToField(token);if(mapped){let inversionFactor=info.isNegativeDuration&&mapped!==info.largestUnit?invertLargest:1,signDisplay;return signDisplay=this.opts.signMode===`negativeLargestOnly`&&mapped!==info.largestUnit?`never`:this.opts.signMode===`all`?`always`:`auto`,this.num(lildur.get(mapped)*inversionFactor,token.length,signDisplay)}else return token},tokens=Formatter.parseFormat(fmt),realTokens=tokens.reduce((found,{literal,val})=>literal?found:found.concat(val),[]),collapsed=dur.shiftTo(...realTokens.map(tokenToField).filter(t$5=>t$5)),durationInfo={isNegativeDuration:collapsed<0,largestUnit:Object.keys(collapsed.values)[0]};return stringifyTokens(tokens,tokenToString(collapsed,durationInfo))}};const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...regexes){let full=regexes.reduce((f,r)=>f+r.source,``);return RegExp(`^${full}$`)}function combineExtractors(...extractors){return m=>extractors.reduce(([mergedVals,mergedZone,cursor],ex)=>{let[val,zone,next]=ex(m,cursor);return[{...mergedVals,...val},zone||mergedZone,next]},[{},null,1]).slice(0,2)}function parse$7(s$2,...patterns){if(s$2==null)return[null,null];for(let[regex,extractor]of patterns){let m=regex.exec(s$2);if(m)return extractor(m)}return[null,null]}function simpleParse(...keys){return(match$2,cursor)=>{let ret={},i$4;for(i$4=0;i$4<keys.length;i$4++)ret[keys[i$4]]=parseInteger(match$2[cursor+i$4]);return[ret,null,cursor+i$4]}}const offsetRegex=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone=`(?:${offsetRegex.source}?(?:\\[(${ianaRegex.source})\\])?)?`,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`),isoTimeExtensionRegex=RegExp(`(?:[Tt]${isoTimeRegex.source})?`),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse(`weekYear`,`weekNumber`,`weekDay`),extractISOOrdinalData=simpleParse(`year`,`ordinal`),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(`${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`),sqlTimeExtensionRegex=RegExp(`(?: ${sqlTimeRegex.source})?`);function int(match$2,pos,fallback){let m=match$2[pos];return isUndefined(m)?fallback:parseInteger(m)}function extractISOYmd(match$2,cursor){let item={year:int(match$2,cursor),month:int(match$2,cursor+1,1),day:int(match$2,cursor+2,1)};return[item,null,cursor+3]}function extractISOTime(match$2,cursor){let item={hours:int(match$2,cursor,0),minutes:int(match$2,cursor+1,0),seconds:int(match$2,cursor+2,0),milliseconds:parseMillis(match$2[cursor+3])};return[item,null,cursor+4]}function extractISOOffset(match$2,cursor){let local=!match$2[cursor]&&!match$2[cursor+1],fullOffset=signedOffset(match$2[cursor+1],match$2[cursor+2]),zone=local?null:FixedOffsetZone.instance(fullOffset);return[{},zone,cursor+3]}function extractIANAZone(match$2,cursor){let zone=match$2[cursor]?IANAZone.create(match$2[cursor]):null;return[{},zone,cursor+1]}const isoTimeOnly=RegExp(`^T?${isoTimeBaseRegex.source}$`),isoDuration=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration(match$2){let[s$2,yearStr,monthStr,weekStr,dayStr,hourStr,minuteStr,secondStr,millisecondsStr]=match$2,hasNegativePrefix=s$2[0]===`-`,negativeSeconds=secondStr&&secondStr[0]===`-`,maybeNegate=(num,force=!1)=>num!==void 0&&(force||num&&hasNegativePrefix)?-num:num;return[{years:maybeNegate(parseFloating(yearStr)),months:maybeNegate(parseFloating(monthStr)),weeks:maybeNegate(parseFloating(weekStr)),days:maybeNegate(parseFloating(dayStr)),hours:maybeNegate(parseFloating(hourStr)),minutes:maybeNegate(parseFloating(minuteStr)),seconds:maybeNegate(parseFloating(secondStr),secondStr===`-0`),milliseconds:maybeNegate(parseMillis(millisecondsStr),negativeSeconds)}]}const obsOffsets={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(weekdayStr,yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr){let result={year:yearStr.length===2?untruncateYear(parseInteger(yearStr)):parseInteger(yearStr),month:monthsShort.indexOf(monthStr)+1,day:parseInteger(dayStr),hour:parseInteger(hourStr),minute:parseInteger(minuteStr)};return secondStr&&(result.second=parseInteger(secondStr)),weekdayStr&&(result.weekday=weekdayStr.length>3?weekdaysLong.indexOf(weekdayStr)+1:weekdaysShort.indexOf(weekdayStr)+1),result}const rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(match$2){let[,weekdayStr,dayStr,monthStr,yearStr,hourStr,minuteStr,secondStr,obsOffset,milOffset,offHourStr,offMinuteStr]=match$2,result=fromStrings(weekdayStr,yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr),offset$2;return offset$2=obsOffset?obsOffsets[obsOffset]:milOffset?0:signedOffset(offHourStr,offMinuteStr),[result,new FixedOffsetZone(offset$2)]}function preprocessRFC2822(s$2){return s$2.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).trim()}const rfc1123=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(match$2){let[,weekdayStr,dayStr,monthStr,yearStr,hourStr,minuteStr,secondStr]=match$2,result=fromStrings(weekdayStr,yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr);return[result,FixedOffsetZone.utcInstance]}function extractASCII(match$2){let[,weekdayStr,monthStr,dayStr,hourStr,minuteStr,secondStr,yearStr]=match$2,result=fromStrings(weekdayStr,yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr);return[result,FixedOffsetZone.utcInstance]}const isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(s$2){return parse$7(s$2,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(s$2){return parse$7(preprocessRFC2822(s$2),[rfc2822,extractRFC2822])}function parseHTTPDate(s$2){return parse$7(s$2,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(s$2){return parse$7(s$2,[isoDuration,extractISODuration])}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(s$2){return parse$7(s$2,[isoTimeOnly,extractISOTimeOnly])}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(s$2){return parse$7(s$2,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}const INVALID$2=`Invalid Duration`,lowOrderMatrix={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},casualMatrix={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...lowOrderMatrix},daysInYearAccurate=146097/400,daysInMonthAccurate=146097/4800,accurateMatrix={years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:daysInYearAccurate*24,minutes:daysInYearAccurate*24*60,seconds:daysInYearAccurate*24*60*60,milliseconds:daysInYearAccurate*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:daysInYearAccurate*24/4,minutes:daysInYearAccurate*24*60/4,seconds:daysInYearAccurate*24*60*60/4,milliseconds:daysInYearAccurate*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:daysInMonthAccurate*24,minutes:daysInMonthAccurate*24*60,seconds:daysInMonthAccurate*24*60*60,milliseconds:daysInMonthAccurate*24*60*60*1e3},...lowOrderMatrix},orderedUnits$1=[`years`,`quarters`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`],reverseUnits=orderedUnits$1.slice(0).reverse();function clone$1(dur,alts,clear=!1){let conf={values:clear?alts.values:{...dur.values,...alts.values||{}},loc:dur.loc.clone(alts.loc),conversionAccuracy:alts.conversionAccuracy||dur.conversionAccuracy,matrix:alts.matrix||dur.matrix};return new Duration(conf)}function durationToMillis(matrix,vals){let sum=vals.milliseconds??0;for(let unit of reverseUnits.slice(1))vals[unit]&&(sum+=vals[unit]*matrix[unit].milliseconds);return sum}function normalizeValues(matrix,vals){let factor=durationToMillis(matrix,vals)<0?-1:1;orderedUnits$1.reduceRight((previous,current)=>{if(isUndefined(vals[current]))return previous;if(previous){let previousVal=vals[previous]*factor,conv=matrix[current][previous],rollUp=Math.floor(previousVal/conv);vals[current]+=rollUp*factor,vals[previous]-=rollUp*conv*factor}return current},null),orderedUnits$1.reduce((previous,current)=>{if(isUndefined(vals[current]))return previous;if(previous){let fraction=vals[previous]%1;vals[previous]-=fraction,vals[current]+=fraction*matrix[previous][current]}return current},null)}function removeZeroes(vals){let newVals={};for(let[key,value]of Object.entries(vals))value!==0&&(newVals[key]=value);return newVals}var Duration=class Duration{constructor(config){let accurate=config.conversionAccuracy===`longterm`||!1,matrix=accurate?accurateMatrix:casualMatrix;config.matrix&&(matrix=config.matrix),this.values=config.values,this.loc=config.loc||Locale.create(),this.conversionAccuracy=accurate?`longterm`:`casual`,this.invalid=config.invalid||null,this.matrix=matrix,this.isLuxonDuration=!0}static fromMillis(count,opts){return Duration.fromObject({milliseconds:count},opts)}static fromObject(obj,opts={}){if(typeof obj!=`object`||!obj)throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${obj===null?`null`:typeof obj}`);return new Duration({values:normalizeObject(obj,Duration.normalizeUnit),loc:Locale.fromObject(opts),conversionAccuracy:opts.conversionAccuracy,matrix:opts.matrix})}static fromDurationLike(durationLike){if(isNumber(durationLike))return Duration.fromMillis(durationLike);if(Duration.isDuration(durationLike))return durationLike;if(typeof durationLike==`object`)return Duration.fromObject(durationLike);throw new InvalidArgumentError(`Unknown duration argument ${durationLike} of type ${typeof durationLike}`)}static fromISO(text,opts){let[parsed]=parseISODuration(text);return parsed?Duration.fromObject(parsed,opts):Duration.invalid(`unparsable`,`the input "${text}" can't be parsed as ISO 8601`)}static fromISOTime(text,opts){let[parsed]=parseISOTimeOnly(text);return parsed?Duration.fromObject(parsed,opts):Duration.invalid(`unparsable`,`the input "${text}" can't be parsed as ISO 8601`)}static invalid(reason,explanation=null){if(!reason)throw new InvalidArgumentError(`need to specify a reason the Duration is invalid`);let invalid$1=reason instanceof Invalid?reason:new Invalid(reason,explanation);if(Settings.throwOnInvalid)throw new InvalidDurationError(invalid$1);return new Duration({invalid:invalid$1})}static normalizeUnit(unit){let normalized={year:`years`,years:`years`,quarter:`quarters`,quarters:`quarters`,month:`months`,months:`months`,week:`weeks`,weeks:`weeks`,day:`days`,days:`days`,hour:`hours`,hours:`hours`,minute:`minutes`,minutes:`minutes`,second:`seconds`,seconds:`seconds`,millisecond:`milliseconds`,milliseconds:`milliseconds`}[unit&&unit.toLowerCase()];if(!normalized)throw new InvalidUnitError(unit);return normalized}static isDuration(o){return o&&o.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(fmt,opts={}){let fmtOpts={...opts,floor:opts.round!==!1&&opts.floor!==!1};return this.isValid?Formatter.create(this.loc,fmtOpts).formatDurationFromString(this,fmt):INVALID$2}toHuman(opts={}){if(!this.isValid)return INVALID$2;let showZeros=opts.showZeros!==!1,l$2=orderedUnits$1.map(unit=>{let val=this.values[unit];return isUndefined(val)||val===0&&!showZeros?null:this.loc.numberFormatter({style:`unit`,unitDisplay:`long`,...opts,unit:unit.slice(0,-1)}).format(val)}).filter(n$2=>n$2);return this.loc.listFormatter({type:`conjunction`,style:opts.listStyle||`narrow`,...opts}).format(l$2)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let s$2=`P`;return this.years!==0&&(s$2+=this.years+`Y`),(this.months!==0||this.quarters!==0)&&(s$2+=this.months+this.quarters*3+`M`),this.weeks!==0&&(s$2+=this.weeks+`W`),this.days!==0&&(s$2+=this.days+`D`),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(s$2+=`T`),this.hours!==0&&(s$2+=this.hours+`H`),this.minutes!==0&&(s$2+=this.minutes+`M`),(this.seconds!==0||this.milliseconds!==0)&&(s$2+=roundTo(this.seconds+this.milliseconds/1e3,3)+`S`),s$2===`P`&&(s$2+=`T0S`),s$2}toISOTime(opts={}){if(!this.isValid)return null;let millis=this.toMillis();if(millis<0||millis>=864e5)return null;opts={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:`extended`,...opts,includeOffset:!1};let dateTime=DateTime.fromMillis(millis,{zone:`UTC`});return dateTime.toISOTime(opts)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?durationToMillis(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(duration){if(!this.isValid)return this;let dur=Duration.fromDurationLike(duration),result={};for(let k of orderedUnits$1)(hasOwnProperty(dur.values,k)||hasOwnProperty(this.values,k))&&(result[k]=dur.get(k)+this.get(k));return clone$1(this,{values:result},!0)}minus(duration){if(!this.isValid)return this;let dur=Duration.fromDurationLike(duration);return this.plus(dur.negate())}mapUnits(fn$1){if(!this.isValid)return this;let result={};for(let k of Object.keys(this.values))result[k]=asNumber(fn$1(this.values[k],k));return clone$1(this,{values:result},!0)}get(unit){return this[Duration.normalizeUnit(unit)]}set(values){if(!this.isValid)return this;let mixed={...this.values,...normalizeObject(values,Duration.normalizeUnit)};return clone$1(this,{values:mixed})}reconfigure({locale,numberingSystem,conversionAccuracy,matrix}={}){let loc=this.loc.clone({locale,numberingSystem}),opts={loc,matrix,conversionAccuracy};return clone$1(this,opts)}as(unit){return this.isValid?this.shiftTo(unit).get(unit):NaN}normalize(){if(!this.isValid)return this;let vals=this.toObject();return normalizeValues(this.matrix,vals),clone$1(this,{values:vals},!0)}rescale(){if(!this.isValid)return this;let vals=removeZeroes(this.normalize().shiftToAll().toObject());return clone$1(this,{values:vals},!0)}shiftTo(...units){if(!this.isValid||units.length===0)return this;units=units.map(u=>Duration.normalizeUnit(u));let built={},accumulated={},vals=this.toObject(),lastUnit;for(let k of orderedUnits$1)if(units.indexOf(k)>=0){lastUnit=k;let own=0;for(let ak in accumulated)own+=this.matrix[ak][k]*accumulated[ak],accumulated[ak]=0;isNumber(vals[k])&&(own+=vals[k]);let i$4=Math.trunc(own);built[k]=i$4,accumulated[k]=(own*1e3-i$4*1e3)/1e3}else isNumber(vals[k])&&(accumulated[k]=vals[k]);for(let key in accumulated)accumulated[key]!==0&&(built[lastUnit]+=key===lastUnit?accumulated[key]:accumulated[key]/this.matrix[lastUnit][key]);return normalizeValues(this.matrix,built),clone$1(this,{values:built},!0)}shiftToAll(){return this.isValid?this.shiftTo(`years`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`):this}negate(){if(!this.isValid)return this;let negated={};for(let k of Object.keys(this.values))negated[k]=this.values[k]===0?0:-this.values[k];return clone$1(this,{values:negated},!0)}removeZeros(){if(!this.isValid)return this;let vals=removeZeroes(this.values);return clone$1(this,{values:vals},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(other){if(!this.isValid||!other.isValid||!this.loc.equals(other.loc))return!1;function eq$3(v1,v2){return v1===void 0||v1===0?v2===void 0||v2===0:v1===v2}for(let u of orderedUnits$1)if(!eq$3(this.values[u],other.values[u]))return!1;return!0}};const INVALID$1=`Invalid Interval`;function validateStartEnd(start,end){return!start||!start.isValid?Interval.invalid(`missing or invalid start`):!end||!end.isValid?Interval.invalid(`missing or invalid end`):end<start?Interval.invalid(`end before start`,`The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}`):null}var Interval=class Interval{constructor(config){this.s=config.start,this.e=config.end,this.invalid=config.invalid||null,this.isLuxonInterval=!0}static invalid(reason,explanation=null){if(!reason)throw new InvalidArgumentError(`need to specify a reason the Interval is invalid`);let invalid$1=reason instanceof Invalid?reason:new Invalid(reason,explanation);if(Settings.throwOnInvalid)throw new InvalidIntervalError(invalid$1);return new Interval({invalid:invalid$1})}static fromDateTimes(start,end){let builtStart=friendlyDateTime(start),builtEnd=friendlyDateTime(end),validateError=validateStartEnd(builtStart,builtEnd);return validateError??new Interval({start:builtStart,end:builtEnd})}static after(start,duration){let dur=Duration.fromDurationLike(duration),dt=friendlyDateTime(start);return Interval.fromDateTimes(dt,dt.plus(dur))}static before(end,duration){let dur=Duration.fromDurationLike(duration),dt=friendlyDateTime(end);return Interval.fromDateTimes(dt.minus(dur),dt)}static fromISO(text,opts){let[s$2,e]=(text||``).split(`/`,2);if(s$2&&e){let start,startIsValid;try{start=DateTime.fromISO(s$2,opts),startIsValid=start.isValid}catch{startIsValid=!1}let end,endIsValid;try{end=DateTime.fromISO(e,opts),endIsValid=end.isValid}catch{endIsValid=!1}if(startIsValid&&endIsValid)return Interval.fromDateTimes(start,end);if(startIsValid){let dur=Duration.fromISO(e,opts);if(dur.isValid)return Interval.after(start,dur)}else if(endIsValid){let dur=Duration.fromISO(s$2,opts);if(dur.isValid)return Interval.before(end,dur)}}return Interval.invalid(`unparsable`,`the input "${text}" can't be parsed as ISO 8601`)}static isInterval(o){return o&&o.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(unit=`milliseconds`){return this.isValid?this.toDuration(unit).get(unit):NaN}count(unit=`milliseconds`,opts){if(!this.isValid)return NaN;let start=this.start.startOf(unit,opts),end;return end=opts?.useLocaleWeeks?this.end.reconfigure({locale:start.locale}):this.end,end=end.startOf(unit,opts),Math.floor(end.diff(start,unit).get(unit))+(end.valueOf()!==this.end.valueOf())}hasSame(unit){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,unit):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(dateTime){return this.isValid?this.s>dateTime:!1}isBefore(dateTime){return this.isValid?this.e<=dateTime:!1}contains(dateTime){return this.isValid?this.s<=dateTime&&this.e>dateTime:!1}set({start,end}={}){return this.isValid?Interval.fromDateTimes(start||this.s,end||this.e):this}splitAt(...dateTimes){if(!this.isValid)return[];let sorted=dateTimes.map(friendlyDateTime).filter(d=>this.contains(d)).sort((a,b)=>a.toMillis()-b.toMillis()),results=[],{s:s$2}=this,i$4=0;for(;s$2<this.e;){let added=sorted[i$4]||this.e,next=+added>+this.e?this.e:added;results.push(Interval.fromDateTimes(s$2,next)),s$2=next,i$4+=1}return results}splitBy(duration){let dur=Duration.fromDurationLike(duration);if(!this.isValid||!dur.isValid||dur.as(`milliseconds`)===0)return[];let{s:s$2}=this,idx=1,next,results=[];for(;s$2<this.e;){let added=this.start.plus(dur.mapUnits(x$1=>x$1*idx));next=+added>+this.e?this.e:added,results.push(Interval.fromDateTimes(s$2,next)),s$2=next,idx+=1}return results}divideEqually(numberOfParts){return this.isValid?this.splitBy(this.length()/numberOfParts).slice(0,numberOfParts):[]}overlaps(other){return this.e>other.s&&this.s<other.e}abutsStart(other){return this.isValid?+this.e==+other.s:!1}abutsEnd(other){return this.isValid?+other.e==+this.s:!1}engulfs(other){return this.isValid?this.s<=other.s&&this.e>=other.e:!1}equals(other){return!this.isValid||!other.isValid?!1:this.s.equals(other.s)&&this.e.equals(other.e)}intersection(other){if(!this.isValid)return this;let s$2=this.s>other.s?this.s:other.s,e=this.e<other.e?this.e:other.e;return s$2>=e?null:Interval.fromDateTimes(s$2,e)}union(other){if(!this.isValid)return this;let s$2=this.s<other.s?this.s:other.s,e=this.e>other.e?this.e:other.e;return Interval.fromDateTimes(s$2,e)}static merge(intervals){let[found,final]=intervals.sort((a,b)=>a.s-b.s).reduce(([sofar,current],item)=>current?current.overlaps(item)||current.abutsStart(item)?[sofar,current.union(item)]:[sofar.concat([current]),item]:[sofar,item],[[],null]);return final&&found.push(final),found}static xor(intervals){let start=null,currentCount=0,results=[],ends=intervals.map(i$4=>[{time:i$4.s,type:`s`},{time:i$4.e,type:`e`}]),flattened=Array.prototype.concat(...ends),arr=flattened.sort((a,b)=>a.time-b.time);for(let i$4 of arr)currentCount+=i$4.type===`s`?1:-1,currentCount===1?start=i$4.time:(start&&+start!=+i$4.time&&results.push(Interval.fromDateTimes(start,i$4.time)),start=null);return Interval.merge(results)}difference(...intervals){return Interval.xor([this].concat(intervals)).map(i$4=>this.intersection(i$4)).filter(i$4=>i$4&&!i$4.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(formatOpts=DATE_SHORT,opts={}){return this.isValid?Formatter.create(this.s.loc.clone(opts),formatOpts).formatInterval(this):INVALID$1}toISO(opts){return this.isValid?`${this.s.toISO(opts)}/${this.e.toISO(opts)}`:INVALID$1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1}toISOTime(opts){return this.isValid?`${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`:INVALID$1}toFormat(dateFormat,{separator=` – `}={}){return this.isValid?`${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`:INVALID$1}toDuration(unit,opts){return this.isValid?this.e.diff(this.s,unit,opts):Duration.invalid(this.invalidReason)}mapEndpoints(mapFn){return Interval.fromDateTimes(mapFn(this.s),mapFn(this.e))}},Info=class{static hasDST(zone=Settings.defaultZone){let proto=DateTime.now().setZone(zone).set({month:12});return!zone.isUniversal&&proto.offset!==proto.set({month:6}).offset}static isValidIANAZone(zone){return IANAZone.isValidZone(zone)}static normalizeZone(input){return normalizeZone(input,Settings.defaultZone)}static getStartOfWeek({locale=null,locObj=null}={}){return(locObj||Locale.create(locale)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale=null,locObj=null}={}){return(locObj||Locale.create(locale)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale=null,locObj=null}={}){return(locObj||Locale.create(locale)).getWeekendDays().slice()}static months(length=`long`,{locale=null,numberingSystem=null,locObj=null,outputCalendar=`gregory`}={}){return(locObj||Locale.create(locale,numberingSystem,outputCalendar)).months(length)}static monthsFormat(length=`long`,{locale=null,numberingSystem=null,locObj=null,outputCalendar=`gregory`}={}){return(locObj||Locale.create(locale,numberingSystem,outputCalendar)).months(length,!0)}static weekdays(length=`long`,{locale=null,numberingSystem=null,locObj=null}={}){return(locObj||Locale.create(locale,numberingSystem,null)).weekdays(length)}static weekdaysFormat(length=`long`,{locale=null,numberingSystem=null,locObj=null}={}){return(locObj||Locale.create(locale,numberingSystem,null)).weekdays(length,!0)}static meridiems({locale=null}={}){return Locale.create(locale).meridiems()}static eras(length=`short`,{locale=null}={}){return Locale.create(locale,null,`gregory`).eras(length)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}};function dayDiff(earlier,later){let utcDayStart=dt=>dt.toUTC(0,{keepLocalTime:!0}).startOf(`day`).valueOf(),ms=utcDayStart(later)-utcDayStart(earlier);return Math.floor(Duration.fromMillis(ms).as(`days`))}function highOrderDiffs(cursor,later,units){let differs=[[`years`,(a,b)=>b.year-a.year],[`quarters`,(a,b)=>b.quarter-a.quarter+(b.year-a.year)*4],[`months`,(a,b)=>b.month-a.month+(b.year-a.year)*12],[`weeks`,(a,b)=>{let days=dayDiff(a,b);return(days-days%7)/7}],[`days`,dayDiff]],results={},earlier=cursor,lowestOrder,highWater;for(let[unit,differ]of differs)units.indexOf(unit)>=0&&(lowestOrder=unit,results[unit]=differ(cursor,later),highWater=earlier.plus(results),highWater>later?(results[unit]--,cursor=earlier.plus(results),cursor>later&&(highWater=cursor,results[unit]--,cursor=earlier.plus(results))):cursor=highWater);return[cursor,results,highWater,lowestOrder]}function diff$2(earlier,later,units,opts){let[cursor,results,highWater,lowestOrder]=highOrderDiffs(earlier,later,units),remainingMillis=later-cursor,lowerOrderUnits=units.filter(u=>[`hours`,`minutes`,`seconds`,`milliseconds`].indexOf(u)>=0);lowerOrderUnits.length===0&&(highWater<later&&(highWater=cursor.plus({[lowestOrder]:1})),highWater!==cursor&&(results[lowestOrder]=(results[lowestOrder]||0)+remainingMillis/(highWater-cursor)));let duration=Duration.fromObject(results,opts);return lowerOrderUnits.length>0?Duration.fromMillis(remainingMillis,opts).shiftTo(...lowerOrderUnits).plus(duration):duration}const MISSING_FTP=`missing Intl.DateTimeFormat.formatToParts support`;function intUnit(regex,post=i$4=>i$4){return{regex,deser:([s$2])=>post(parseDigits(s$2))}}const NBSP=`\xA0`,spaceOrNBSP=`[ ${NBSP}]`,spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,`g`);function fixListRegex(s$2){return s$2.replace(/\./g,`\\.?`).replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(s$2){return s$2.replace(/\./g,``).replace(spaceOrNBSPRegExp,` `).toLowerCase()}function oneOf(strings,startIndex){return strings===null?null:{regex:RegExp(strings.map(fixListRegex).join(`|`)),deser:([s$2])=>strings.findIndex(i$4=>stripInsensitivities(s$2)===stripInsensitivities(i$4))+startIndex}}function offset(regex,groups){return{regex,deser:([,h,m])=>signedOffset(h,m),groups}}function simple(regex){return{regex,deser:([s$2])=>s$2}}function escapeToken(value){return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,`\\$&`)}function unitForToken(token,loc){let one=digitRegex(loc),two=digitRegex(loc,`{2}`),three=digitRegex(loc,`{3}`),four=digitRegex(loc,`{4}`),six=digitRegex(loc,`{6}`),oneOrTwo=digitRegex(loc,`{1,2}`),oneToThree=digitRegex(loc,`{1,3}`),oneToSix=digitRegex(loc,`{1,6}`),oneToNine=digitRegex(loc,`{1,9}`),twoToFour=digitRegex(loc,`{2,4}`),fourToSix=digitRegex(loc,`{4,6}`),literal=t$5=>({regex:RegExp(escapeToken(t$5.val)),deser:([s$2])=>s$2,literal:!0}),unitate=t$5=>{if(token.literal)return literal(t$5);switch(t$5.val){case`G`:return oneOf(loc.eras(`short`),0);case`GG`:return oneOf(loc.eras(`long`),0);case`y`:return intUnit(oneToSix);case`yy`:return intUnit(twoToFour,untruncateYear);case`yyyy`:return intUnit(four);case`yyyyy`:return intUnit(fourToSix);case`yyyyyy`:return intUnit(six);case`M`:return intUnit(oneOrTwo);case`MM`:return intUnit(two);case`MMM`:return oneOf(loc.months(`short`,!0),1);case`MMMM`:return oneOf(loc.months(`long`,!0),1);case`L`:return intUnit(oneOrTwo);case`LL`:return intUnit(two);case`LLL`:return oneOf(loc.months(`short`,!1),1);case`LLLL`:return oneOf(loc.months(`long`,!1),1);case`d`:return intUnit(oneOrTwo);case`dd`:return intUnit(two);case`o`:return intUnit(oneToThree);case`ooo`:return intUnit(three);case`HH`:return intUnit(two);case`H`:return intUnit(oneOrTwo);case`hh`:return intUnit(two);case`h`:return intUnit(oneOrTwo);case`mm`:return intUnit(two);case`m`:return intUnit(oneOrTwo);case`q`:return intUnit(oneOrTwo);case`qq`:return intUnit(two);case`s`:return intUnit(oneOrTwo);case`ss`:return intUnit(two);case`S`:return intUnit(oneToThree);case`SSS`:return intUnit(three);case`u`:return simple(oneToNine);case`uu`:return simple(oneOrTwo);case`uuu`:return intUnit(one);case`a`:return oneOf(loc.meridiems(),0);case`kkkk`:return intUnit(four);case`kk`:return intUnit(twoToFour,untruncateYear);case`W`:return intUnit(oneOrTwo);case`WW`:return intUnit(two);case`E`:case`c`:return intUnit(one);case`EEE`:return oneOf(loc.weekdays(`short`,!1),1);case`EEEE`:return oneOf(loc.weekdays(`long`,!1),1);case`ccc`:return oneOf(loc.weekdays(`short`,!0),1);case`cccc`:return oneOf(loc.weekdays(`long`,!0),1);case`Z`:case`ZZ`:return offset(RegExp(`([+-]${oneOrTwo.source})(?::(${two.source}))?`),2);case`ZZZ`:return offset(RegExp(`([+-]${oneOrTwo.source})(${two.source})?`),2);case`z`:return simple(/[a-z_+-/]{1,256}?/i);case` `:return simple(/[^\S\n\r]/);default:return literal(t$5)}},unit=unitate(token)||{invalidReason:MISSING_FTP};return unit.token=token,unit}const partTypeStyleToTokenVal={year:{"2-digit":`yy`,numeric:`yyyyy`},month:{numeric:`M`,"2-digit":`MM`,short:`MMM`,long:`MMMM`},day:{numeric:`d`,"2-digit":`dd`},weekday:{short:`EEE`,long:`EEEE`},dayperiod:`a`,dayPeriod:`a`,hour12:{numeric:`h`,"2-digit":`hh`},hour24:{numeric:`H`,"2-digit":`HH`},minute:{numeric:`m`,"2-digit":`mm`},second:{numeric:`s`,"2-digit":`ss`},timeZoneName:{long:`ZZZZZ`,short:`ZZZ`}};function tokenForPart(part,formatOpts,resolvedOpts){let{type,value}=part;if(type===`literal`){let isSpace=/^\s+$/.test(value);return{literal:!isSpace,val:isSpace?` `:value}}let style=formatOpts[type],actualType=type;type===`hour`&&(actualType=formatOpts.hour12==null?formatOpts.hourCycle==null?resolvedOpts.hour12?`hour12`:`hour24`:formatOpts.hourCycle===`h11`||formatOpts.hourCycle===`h12`?`hour12`:`hour24`:formatOpts.hour12?`hour12`:`hour24`);let val=partTypeStyleToTokenVal[actualType];if(typeof val==`object`&&(val=val[style]),val)return{literal:!1,val}}function buildRegex(units){let re$5=units.map(u=>u.regex).reduce((f,r)=>`${f}(${r.source})`,``);return[`^${re$5}$`,units]}function match(input,regex,handlers){let matches=input.match(regex);if(matches){let all$1={},matchIndex=1;for(let i$4 in handlers)if(hasOwnProperty(handlers,i$4)){let h=handlers[i$4],groups=h.groups?h.groups+1:1;!h.literal&&h.token&&(all$1[h.token.val[0]]=h.deser(matches.slice(matchIndex,matchIndex+groups))),matchIndex+=groups}return[matches,all$1]}else return[matches,{}]}function dateTimeFromMatches(matches){let toField=token=>{switch(token){case`S`:return`millisecond`;case`s`:return`second`;case`m`:return`minute`;case`h`:case`H`:return`hour`;case`d`:return`day`;case`o`:return`ordinal`;case`L`:case`M`:return`month`;case`y`:return`year`;case`E`:case`c`:return`weekday`;case`W`:return`weekNumber`;case`k`:return`weekYear`;case`q`:return`quarter`;default:return null}},zone=null,specificOffset;isUndefined(matches.z)||(zone=IANAZone.create(matches.z)),isUndefined(matches.Z)||(zone||=new FixedOffsetZone(matches.Z),specificOffset=matches.Z),isUndefined(matches.q)||(matches.M=(matches.q-1)*3+1),isUndefined(matches.h)||(matches.h<12&&matches.a===1?matches.h+=12:matches.h===12&&matches.a===0&&(matches.h=0)),matches.G===0&&matches.y&&(matches.y=-matches.y),isUndefined(matches.u)||(matches.S=parseMillis(matches.u));let vals=Object.keys(matches).reduce((r,k)=>{let f=toField(k);return f&&(r[f]=matches[k]),r},{});return[vals,zone,specificOffset]}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||=DateTime.fromMillis(1555555555555),dummyDateTimeCache}function maybeExpandMacroToken(token,locale){if(token.literal)return token;let formatOpts=Formatter.macroTokenToFormatOpts(token.val),tokens=formatOptsToTokens(formatOpts,locale);return tokens==null||tokens.includes(void 0)?token:tokens}function expandMacroTokens(tokens,locale){return Array.prototype.concat(...tokens.map(t$5=>maybeExpandMacroToken(t$5,locale)))}var TokenParser=class{constructor(locale,format){if(this.locale=locale,this.format=format,this.tokens=expandMacroTokens(Formatter.parseFormat(format),locale),this.units=this.tokens.map(t$5=>unitForToken(t$5,locale)),this.disqualifyingUnit=this.units.find(t$5=>t$5.invalidReason),!this.disqualifyingUnit){let[regexString,handlers]=buildRegex(this.units);this.regex=RegExp(regexString,`i`),this.handlers=handlers}}explainFromTokens(input){if(this.isValid){let[rawMatches,matches]=match(input,this.regex,this.handlers),[result,zone,specificOffset]=matches?dateTimeFromMatches(matches):[null,null,void 0];if(hasOwnProperty(matches,`a`)&&hasOwnProperty(matches,`H`))throw new ConflictingSpecificationError(`Can't include meridiem when specifying 24-hour format`);return{input,tokens:this.tokens,regex:this.regex,rawMatches,matches,result,zone,specificOffset}}else return{input,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function explainFromTokens(locale,input,format){let parser=new TokenParser(locale,format);return parser.explainFromTokens(input)}function parseFromTokens(locale,input,format){let{result,zone,specificOffset,invalidReason}=explainFromTokens(locale,input,format);return[result,zone,specificOffset,invalidReason]}function formatOptsToTokens(formatOpts,locale){if(!formatOpts)return null;let formatter=Formatter.create(locale,formatOpts),df=formatter.dtFormatter(getDummyDateTime()),parts=df.formatToParts(),resolvedOpts=df.resolvedOptions();return parts.map(p=>tokenForPart(p,formatOpts,resolvedOpts))}const INVALID=`Invalid DateTime`,MAX_DATE=864e13;function unsupportedZone(zone){return new Invalid(`unsupported zone`,`the zone "${zone.name}" is not supported`)}function possiblyCachedWeekData(dt){return dt.weekData===null&&(dt.weekData=gregorianToWeek(dt.c)),dt.weekData}function possiblyCachedLocalWeekData(dt){return dt.localWeekData===null&&(dt.localWeekData=gregorianToWeek(dt.c,dt.loc.getMinDaysInFirstWeek(),dt.loc.getStartOfWeek())),dt.localWeekData}function clone(inst,alts){let current={ts:inst.ts,zone:inst.zone,c:inst.c,o:inst.o,loc:inst.loc,invalid:inst.invalid};return new DateTime({...current,...alts,old:current})}function fixOffset(localTS,o,tz){let utcGuess=localTS-o*60*1e3,o2=tz.offset(utcGuess);if(o===o2)return[utcGuess,o];utcGuess-=(o2-o)*60*1e3;let o3=tz.offset(utcGuess);return o2===o3?[utcGuess,o2]:[localTS-Math.min(o2,o3)*60*1e3,Math.max(o2,o3)]}function tsToObj(ts,offset$2){ts+=offset$2*60*1e3;let d=new Date(ts);return{year:d.getUTCFullYear(),month:d.getUTCMonth()+1,day:d.getUTCDate(),hour:d.getUTCHours(),minute:d.getUTCMinutes(),second:d.getUTCSeconds(),millisecond:d.getUTCMilliseconds()}}function objToTS(obj,offset$2,zone){return fixOffset(objToLocalTS(obj),offset$2,zone)}function adjustTime(inst,dur){let oPre=inst.o,year=inst.c.year+Math.trunc(dur.years),month=inst.c.month+Math.trunc(dur.months)+Math.trunc(dur.quarters)*3,c$1={...inst.c,year,month,day:Math.min(inst.c.day,daysInMonth(year,month))+Math.trunc(dur.days)+Math.trunc(dur.weeks)*7},millisToAdd=Duration.fromObject({years:dur.years-Math.trunc(dur.years),quarters:dur.quarters-Math.trunc(dur.quarters),months:dur.months-Math.trunc(dur.months),weeks:dur.weeks-Math.trunc(dur.weeks),days:dur.days-Math.trunc(dur.days),hours:dur.hours,minutes:dur.minutes,seconds:dur.seconds,milliseconds:dur.milliseconds}).as(`milliseconds`),localTS=objToLocalTS(c$1),[ts,o]=fixOffset(localTS,oPre,inst.zone);return millisToAdd!==0&&(ts+=millisToAdd,o=inst.zone.offset(ts)),{ts,o}}function parseDataToDateTime(parsed,parsedZone,opts,format,text,specificOffset){let{setZone,zone}=opts;if(parsed&&Object.keys(parsed).length!==0||parsedZone){let interpretationZone=parsedZone||zone,inst=DateTime.fromObject(parsed,{...opts,zone:interpretationZone,specificOffset});return setZone?inst:inst.setZone(zone)}else return DateTime.invalid(new Invalid(`unparsable`,`the input "${text}" can't be parsed as ${format}`))}function toTechFormat(dt,format,allowZ=!0){return dt.isValid?Formatter.create(Locale.create(`en-US`),{allowZ,forceSimple:!0}).formatDateTimeFromString(dt,format):null}function toISODate(o,extended,precision){let longFormat=o.c.year>9999||o.c.year<0,c$1=``;if(longFormat&&o.c.year>=0&&(c$1+=`+`),c$1+=padStart(o.c.year,longFormat?6:4),precision===`year`)return c$1;if(extended){if(c$1+=`-`,c$1+=padStart(o.c.month),precision===`month`)return c$1;c$1+=`-`}else if(c$1+=padStart(o.c.month),precision===`month`)return c$1;return c$1+=padStart(o.c.day),c$1}function toISOTime(o,extended,suppressSeconds,suppressMilliseconds,includeOffset,extendedZone,precision){let showSeconds=!suppressSeconds||o.c.millisecond!==0||o.c.second!==0,c$1=``;switch(precision){case`day`:case`month`:case`year`:break;default:if(c$1+=padStart(o.c.hour),precision===`hour`)break;if(extended){if(c$1+=`:`,c$1+=padStart(o.c.minute),precision===`minute`)break;showSeconds&&(c$1+=`:`,c$1+=padStart(o.c.second))}else{if(c$1+=padStart(o.c.minute),precision===`minute`)break;showSeconds&&(c$1+=padStart(o.c.second))}if(precision===`second`)break;showSeconds&&(!suppressMilliseconds||o.c.millisecond!==0)&&(c$1+=`.`,c$1+=padStart(o.c.millisecond,3))}return includeOffset&&(o.isOffsetFixed&&o.offset===0&&!extendedZone?c$1+=`Z`:o.o<0?(c$1+=`-`,c$1+=padStart(Math.trunc(-o.o/60)),c$1+=`:`,c$1+=padStart(Math.trunc(-o.o%60))):(c$1+=`+`,c$1+=padStart(Math.trunc(o.o/60)),c$1+=`:`,c$1+=padStart(Math.trunc(o.o%60)))),extendedZone&&(c$1+=`[`+o.zone.ianaName+`]`),c$1}const defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],orderedWeekUnits=[`weekYear`,`weekNumber`,`weekday`,`hour`,`minute`,`second`,`millisecond`],orderedOrdinalUnits=[`year`,`ordinal`,`hour`,`minute`,`second`,`millisecond`];function normalizeUnit(unit){let normalized={year:`year`,years:`year`,month:`month`,months:`month`,day:`day`,days:`day`,hour:`hour`,hours:`hour`,minute:`minute`,minutes:`minute`,quarter:`quarter`,quarters:`quarter`,second:`second`,seconds:`second`,millisecond:`millisecond`,milliseconds:`millisecond`,weekday:`weekday`,weekdays:`weekday`,weeknumber:`weekNumber`,weeksnumber:`weekNumber`,weeknumbers:`weekNumber`,weekyear:`weekYear`,weekyears:`weekYear`,ordinal:`ordinal`}[unit.toLowerCase()];if(!normalized)throw new InvalidUnitError(unit);return normalized}function normalizeUnitWithLocalWeeks(unit){switch(unit.toLowerCase()){case`localweekday`:case`localweekdays`:return`localWeekday`;case`localweeknumber`:case`localweeknumbers`:return`localWeekNumber`;case`localweekyear`:case`localweekyears`:return`localWeekYear`;default:return normalizeUnit(unit)}}function guessOffsetForZone(zone){if(zoneOffsetTs===void 0&&(zoneOffsetTs=Settings.now()),zone.type!==`iana`)return zone.offset(zoneOffsetTs);let zoneName=zone.name,offsetGuess=zoneOffsetGuessCache.get(zoneName);return offsetGuess===void 0&&(offsetGuess=zone.offset(zoneOffsetTs),zoneOffsetGuessCache.set(zoneName,offsetGuess)),offsetGuess}function quickDT(obj,opts){let zone=normalizeZone(opts.zone,Settings.defaultZone);if(!zone.isValid)return DateTime.invalid(unsupportedZone(zone));let loc=Locale.fromObject(opts),ts,o;if(isUndefined(obj.year))ts=Settings.now();else{for(let u of orderedUnits)isUndefined(obj[u])&&(obj[u]=defaultUnitValues[u]);let invalid$1=hasInvalidGregorianData(obj)||hasInvalidTimeData(obj);if(invalid$1)return DateTime.invalid(invalid$1);let offsetProvis=guessOffsetForZone(zone);[ts,o]=objToTS(obj,offsetProvis,zone)}return new DateTime({ts,zone,loc,o})}function diffRelative(start,end,opts){let round$2=isUndefined(opts.round)?!0:opts.round,rounding=isUndefined(opts.rounding)?`trunc`:opts.rounding,format=(c$1,unit)=>{c$1=roundTo(c$1,round$2||opts.calendary?0:2,opts.calendary?`round`:rounding);let formatter=end.loc.clone(opts).relFormatter(opts);return formatter.format(c$1,unit)},differ=unit=>opts.calendary?end.hasSame(start,unit)?0:end.startOf(unit).diff(start.startOf(unit),unit).get(unit):end.diff(start,unit).get(unit);if(opts.unit)return format(differ(opts.unit),opts.unit);for(let unit of opts.units){let count=differ(unit);if(Math.abs(count)>=1)return format(count,unit)}return format(start>end?-0:0,opts.units[opts.units.length-1])}function lastOpts(argList){let opts={},args$1;return argList.length>0&&typeof argList[argList.length-1]==`object`?(opts=argList[argList.length-1],args$1=Array.from(argList).slice(0,argList.length-1)):args$1=Array.from(argList),[opts,args$1]}let zoneOffsetTs;const zoneOffsetGuessCache=new Map;var DateTime=class DateTime{constructor(config){let zone=config.zone||Settings.defaultZone,invalid$1=config.invalid||(Number.isNaN(config.ts)?new Invalid(`invalid input`):null)||(zone.isValid?null:unsupportedZone(zone));this.ts=isUndefined(config.ts)?Settings.now():config.ts;let c$1=null,o=null;if(!invalid$1){let unchanged=config.old&&config.old.ts===this.ts&&config.old.zone.equals(zone);if(unchanged)[c$1,o]=[config.old.c,config.old.o];else{let ot=isNumber(config.o)&&!config.old?config.o:zone.offset(this.ts);c$1=tsToObj(this.ts,ot),invalid$1=Number.isNaN(c$1.year)?new Invalid(`invalid input`):null,c$1=invalid$1?null:c$1,o=invalid$1?null:ot}}this._zone=zone,this.loc=config.loc||Locale.create(),this.invalid=invalid$1,this.weekData=null,this.localWeekData=null,this.c=c$1,this.o=o,this.isLuxonDateTime=!0}static now(){return new DateTime({})}static local(){let[opts,args$1]=lastOpts(arguments),[year,month,day,hour,minute,second,millisecond]=args$1;return quickDT({year,month,day,hour,minute,second,millisecond},opts)}static utc(){let[opts,args$1]=lastOpts(arguments),[year,month,day,hour,minute,second,millisecond]=args$1;return opts.zone=FixedOffsetZone.utcInstance,quickDT({year,month,day,hour,minute,second,millisecond},opts)}static fromJSDate(date,options={}){let ts=isDate(date)?date.valueOf():NaN;if(Number.isNaN(ts))return DateTime.invalid(`invalid input`);let zoneToUse=normalizeZone(options.zone,Settings.defaultZone);return zoneToUse.isValid?new DateTime({ts,zone:zoneToUse,loc:Locale.fromObject(options)}):DateTime.invalid(unsupportedZone(zoneToUse))}static fromMillis(milliseconds,options={}){if(isNumber(milliseconds))return milliseconds<-MAX_DATE||milliseconds>MAX_DATE?DateTime.invalid(`Timestamp out of range`):new DateTime({ts:milliseconds,zone:normalizeZone(options.zone,Settings.defaultZone),loc:Locale.fromObject(options)});throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}`)}static fromSeconds(seconds,options={}){if(isNumber(seconds))return new DateTime({ts:seconds*1e3,zone:normalizeZone(options.zone,Settings.defaultZone),loc:Locale.fromObject(options)});throw new InvalidArgumentError(`fromSeconds requires a numerical input`)}static fromObject(obj,opts={}){obj||={};let zoneToUse=normalizeZone(opts.zone,Settings.defaultZone);if(!zoneToUse.isValid)return DateTime.invalid(unsupportedZone(zoneToUse));let loc=Locale.fromObject(opts),normalized=normalizeObject(obj,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek,startOfWeek}=usesLocalWeekValues(normalized,loc),tsNow=Settings.now(),offsetProvis=isUndefined(opts.specificOffset)?zoneToUse.offset(tsNow):opts.specificOffset,containsOrdinal=!isUndefined(normalized.ordinal),containsGregorYear=!isUndefined(normalized.year),containsGregorMD=!isUndefined(normalized.month)||!isUndefined(normalized.day),containsGregor=containsGregorYear||containsGregorMD,definiteWeekDef=normalized.weekYear||normalized.weekNumber;if((containsGregor||containsOrdinal)&&definiteWeekDef)throw new ConflictingSpecificationError(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(containsGregorMD&&containsOrdinal)throw new ConflictingSpecificationError(`Can't mix ordinal dates with month/day`);let useWeekData=definiteWeekDef||normalized.weekday&&!containsGregor,units,defaultValues,objNow=tsToObj(tsNow,offsetProvis);useWeekData?(units=orderedWeekUnits,defaultValues=defaultWeekUnitValues,objNow=gregorianToWeek(objNow,minDaysInFirstWeek,startOfWeek)):containsOrdinal?(units=orderedOrdinalUnits,defaultValues=defaultOrdinalUnitValues,objNow=gregorianToOrdinal(objNow)):(units=orderedUnits,defaultValues=defaultUnitValues);let foundFirst=!1;for(let u of units){let v=normalized[u];isUndefined(v)?foundFirst?normalized[u]=defaultValues[u]:normalized[u]=objNow[u]:foundFirst=!0}let higherOrderInvalid=useWeekData?hasInvalidWeekData(normalized,minDaysInFirstWeek,startOfWeek):containsOrdinal?hasInvalidOrdinalData(normalized):hasInvalidGregorianData(normalized),invalid$1=higherOrderInvalid||hasInvalidTimeData(normalized);if(invalid$1)return DateTime.invalid(invalid$1);let gregorian=useWeekData?weekToGregorian(normalized,minDaysInFirstWeek,startOfWeek):containsOrdinal?ordinalToGregorian(normalized):normalized,[tsFinal,offsetFinal]=objToTS(gregorian,offsetProvis,zoneToUse),inst=new DateTime({ts:tsFinal,zone:zoneToUse,o:offsetFinal,loc});return normalized.weekday&&containsGregor&&obj.weekday!==inst.weekday?DateTime.invalid(`mismatched weekday`,`you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}`):inst.isValid?inst:DateTime.invalid(inst.invalid)}static fromISO(text,opts={}){let[vals,parsedZone]=parseISODate(text);return parseDataToDateTime(vals,parsedZone,opts,`ISO 8601`,text)}static fromRFC2822(text,opts={}){let[vals,parsedZone]=parseRFC2822Date(text);return parseDataToDateTime(vals,parsedZone,opts,`RFC 2822`,text)}static fromHTTP(text,opts={}){let[vals,parsedZone]=parseHTTPDate(text);return parseDataToDateTime(vals,parsedZone,opts,`HTTP`,opts)}static fromFormat(text,fmt,opts={}){if(isUndefined(text)||isUndefined(fmt))throw new InvalidArgumentError(`fromFormat requires an input string and a format`);let{locale=null,numberingSystem=null}=opts,localeToUse=Locale.fromOpts({locale,numberingSystem,defaultToEN:!0}),[vals,parsedZone,specificOffset,invalid$1]=parseFromTokens(localeToUse,text,fmt);return invalid$1?DateTime.invalid(invalid$1):parseDataToDateTime(vals,parsedZone,opts,`format ${fmt}`,text,specificOffset)}static fromString(text,fmt,opts={}){return DateTime.fromFormat(text,fmt,opts)}static fromSQL(text,opts={}){let[vals,parsedZone]=parseSQL(text);return parseDataToDateTime(vals,parsedZone,opts,`SQL`,text)}static invalid(reason,explanation=null){if(!reason)throw new InvalidArgumentError(`need to specify a reason the DateTime is invalid`);let invalid$1=reason instanceof Invalid?reason:new Invalid(reason,explanation);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(invalid$1);return new DateTime({invalid:invalid$1})}static isDateTime(o){return o&&o.isLuxonDateTime||!1}static parseFormatForOpts(formatOpts,localeOpts={}){let tokenList=formatOptsToTokens(formatOpts,Locale.fromObject(localeOpts));return tokenList?tokenList.map(t$5=>t$5?t$5.val:null).join(``):null}static expandFormat(fmt,localeOpts={}){let expanded=expandMacroTokens(Formatter.parseFormat(fmt),Locale.fromObject(localeOpts));return expanded.map(t$5=>t$5.val).join(``)}static resetCache(){zoneOffsetTs=void 0,zoneOffsetGuessCache.clear()}get(unit){return this[unit]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months(`short`,{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months(`long`,{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays(`short`,{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays(`long`,{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:`short`,locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:`long`,locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let dayMs=864e5,minuteMs=6e4,localTS=objToLocalTS(this.c),oEarlier=this.zone.offset(localTS-dayMs),oLater=this.zone.offset(localTS+dayMs),o1=this.zone.offset(localTS-oEarlier*minuteMs),o2=this.zone.offset(localTS-oLater*minuteMs);if(o1===o2)return[this];let ts1=localTS-o1*minuteMs,ts2=localTS-o2*minuteMs,c1=tsToObj(ts1,o1),c2=tsToObj(ts2,o2);return c1.hour===c2.hour&&c1.minute===c2.minute&&c1.second===c2.second&&c1.millisecond===c2.millisecond?[clone(this,{ts:ts1}),clone(this,{ts:ts2})]:[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(opts={}){let{locale,numberingSystem,calendar}=Formatter.create(this.loc.clone(opts),opts).resolvedOptions(this);return{locale,numberingSystem,outputCalendar:calendar}}toUTC(offset$2=0,opts={}){return this.setZone(FixedOffsetZone.instance(offset$2),opts)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(zone,{keepLocalTime=!1,keepCalendarTime=!1}={}){if(zone=normalizeZone(zone,Settings.defaultZone),zone.equals(this.zone))return this;if(zone.isValid){let newTS=this.ts;if(keepLocalTime||keepCalendarTime){let offsetGuess=zone.offset(this.ts),asObj=this.toObject();[newTS]=objToTS(asObj,offsetGuess,zone)}return clone(this,{ts:newTS,zone})}else return DateTime.invalid(unsupportedZone(zone))}reconfigure({locale,numberingSystem,outputCalendar}={}){let loc=this.loc.clone({locale,numberingSystem,outputCalendar});return clone(this,{loc})}setLocale(locale){return this.reconfigure({locale})}set(values){if(!this.isValid)return this;let normalized=normalizeObject(values,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek,startOfWeek}=usesLocalWeekValues(normalized,this.loc),settingWeekStuff=!isUndefined(normalized.weekYear)||!isUndefined(normalized.weekNumber)||!isUndefined(normalized.weekday),containsOrdinal=!isUndefined(normalized.ordinal),containsGregorYear=!isUndefined(normalized.year),containsGregorMD=!isUndefined(normalized.month)||!isUndefined(normalized.day),containsGregor=containsGregorYear||containsGregorMD,definiteWeekDef=normalized.weekYear||normalized.weekNumber;if((containsGregor||containsOrdinal)&&definiteWeekDef)throw new ConflictingSpecificationError(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(containsGregorMD&&containsOrdinal)throw new ConflictingSpecificationError(`Can't mix ordinal dates with month/day`);let mixed;settingWeekStuff?mixed=weekToGregorian({...gregorianToWeek(this.c,minDaysInFirstWeek,startOfWeek),...normalized},minDaysInFirstWeek,startOfWeek):isUndefined(normalized.ordinal)?(mixed={...this.toObject(),...normalized},isUndefined(normalized.day)&&(mixed.day=Math.min(daysInMonth(mixed.year,mixed.month),mixed.day))):mixed=ordinalToGregorian({...gregorianToOrdinal(this.c),...normalized});let[ts,o]=objToTS(mixed,this.o,this.zone);return clone(this,{ts,o})}plus(duration){if(!this.isValid)return this;let dur=Duration.fromDurationLike(duration);return clone(this,adjustTime(this,dur))}minus(duration){if(!this.isValid)return this;let dur=Duration.fromDurationLike(duration).negate();return clone(this,adjustTime(this,dur))}startOf(unit,{useLocaleWeeks=!1}={}){if(!this.isValid)return this;let o={},normalizedUnit=Duration.normalizeUnit(unit);switch(normalizedUnit){case`years`:o.month=1;case`quarters`:case`months`:o.day=1;case`weeks`:case`days`:o.hour=0;case`hours`:o.minute=0;case`minutes`:o.second=0;case`seconds`:o.millisecond=0;break}if(normalizedUnit===`weeks`)if(useLocaleWeeks){let startOfWeek=this.loc.getStartOfWeek(),{weekday}=this;weekday<startOfWeek&&(o.weekNumber=this.weekNumber-1),o.weekday=startOfWeek}else o.weekday=1;if(normalizedUnit===`quarters`){let q=Math.ceil(this.month/3);o.month=(q-1)*3+1}return this.set(o)}endOf(unit,opts){return this.isValid?this.plus({[unit]:1}).startOf(unit,opts).minus(1):this}toFormat(fmt,opts={}){return this.isValid?Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this,fmt):INVALID}toLocaleString(formatOpts=DATE_SHORT,opts={}){return this.isValid?Formatter.create(this.loc.clone(opts),formatOpts).formatDateTime(this):INVALID}toLocaleParts(opts={}){return this.isValid?Formatter.create(this.loc.clone(opts),opts).formatDateTimeParts(this):[]}toISO({format=`extended`,suppressSeconds=!1,suppressMilliseconds=!1,includeOffset=!0,extendedZone=!1,precision=`milliseconds`}={}){if(!this.isValid)return null;precision=normalizeUnit(precision);let ext=format===`extended`,c$1=toISODate(this,ext,precision);return orderedUnits.indexOf(precision)>=3&&(c$1+=`T`),c$1+=toISOTime(this,ext,suppressSeconds,suppressMilliseconds,includeOffset,extendedZone,precision),c$1}toISODate({format=`extended`,precision=`day`}={}){return this.isValid?toISODate(this,format===`extended`,normalizeUnit(precision)):null}toISOWeekDate(){return toTechFormat(this,`kkkk-'W'WW-c`)}toISOTime({suppressMilliseconds=!1,suppressSeconds=!1,includeOffset=!0,includePrefix=!1,extendedZone=!1,format=`extended`,precision=`milliseconds`}={}){if(!this.isValid)return null;precision=normalizeUnit(precision);let c$1=includePrefix&&orderedUnits.indexOf(precision)>=3?`T`:``;return c$1+toISOTime(this,format===`extended`,suppressSeconds,suppressMilliseconds,includeOffset,extendedZone,precision)}toRFC2822(){return toTechFormat(this,`EEE, dd LLL yyyy HH:mm:ss ZZZ`,!1)}toHTTP(){return toTechFormat(this.toUTC(),`EEE, dd LLL yyyy HH:mm:ss 'GMT'`)}toSQLDate(){return this.isValid?toISODate(this,!0):null}toSQLTime({includeOffset=!0,includeZone=!1,includeOffsetSpace=!0}={}){let fmt=`HH:mm:ss.SSS`;return(includeZone||includeOffset)&&(includeOffsetSpace&&(fmt+=` `),includeZone?fmt+=`z`:includeOffset&&(fmt+=`ZZ`)),toTechFormat(this,fmt,!0)}toSQL(opts={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(opts)}`:null}toString(){return this.isValid?this.toISO():INVALID}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(opts={}){if(!this.isValid)return{};let base={...this.c};return opts.includeConfig&&(base.outputCalendar=this.outputCalendar,base.numberingSystem=this.loc.numberingSystem,base.locale=this.loc.locale),base}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(otherDateTime,unit=`milliseconds`,opts={}){if(!this.isValid||!otherDateTime.isValid)return Duration.invalid(`created by diffing an invalid DateTime`);let durOpts={locale:this.locale,numberingSystem:this.numberingSystem,...opts},units=maybeArray(unit).map(Duration.normalizeUnit),otherIsLater=otherDateTime.valueOf()>this.valueOf(),earlier=otherIsLater?this:otherDateTime,later=otherIsLater?otherDateTime:this,diffed=diff$2(earlier,later,units,durOpts);return otherIsLater?diffed.negate():diffed}diffNow(unit=`milliseconds`,opts={}){return this.diff(DateTime.now(),unit,opts)}until(otherDateTime){return this.isValid?Interval.fromDateTimes(this,otherDateTime):this}hasSame(otherDateTime,unit,opts){if(!this.isValid)return!1;let inputMs=otherDateTime.valueOf(),adjustedToZone=this.setZone(otherDateTime.zone,{keepLocalTime:!0});return adjustedToZone.startOf(unit,opts)<=inputMs&&inputMs<=adjustedToZone.endOf(unit,opts)}equals(other){return this.isValid&&other.isValid&&this.valueOf()===other.valueOf()&&this.zone.equals(other.zone)&&this.loc.equals(other.loc)}toRelative(options={}){if(!this.isValid)return null;let base=options.base||DateTime.fromObject({},{zone:this.zone}),padding=options.padding?this<base?-options.padding:options.padding:0,units=[`years`,`months`,`days`,`hours`,`minutes`,`seconds`],unit=options.unit;return Array.isArray(options.unit)&&(units=options.unit,unit=void 0),diffRelative(base,this.plus(padding),{...options,numeric:`always`,units,unit})}toRelativeCalendar(options={}){return this.isValid?diffRelative(options.base||DateTime.fromObject({},{zone:this.zone}),this,{...options,numeric:`auto`,units:[`years`,`months`,`days`],calendary:!0}):null}static min(...dateTimes){if(!dateTimes.every(DateTime.isDateTime))throw new InvalidArgumentError(`min requires all arguments be DateTimes`);return bestBy(dateTimes,i$4=>i$4.valueOf(),Math.min)}static max(...dateTimes){if(!dateTimes.every(DateTime.isDateTime))throw new InvalidArgumentError(`max requires all arguments be DateTimes`);return bestBy(dateTimes,i$4=>i$4.valueOf(),Math.max)}static fromFormatExplain(text,fmt,options={}){let{locale=null,numberingSystem=null}=options,localeToUse=Locale.fromOpts({locale,numberingSystem,defaultToEN:!0});return explainFromTokens(localeToUse,text,fmt)}static fromStringExplain(text,fmt,options={}){return DateTime.fromFormatExplain(text,fmt,options)}static buildFormatParser(fmt,options={}){let{locale=null,numberingSystem=null}=options,localeToUse=Locale.fromOpts({locale,numberingSystem,defaultToEN:!0});return new TokenParser(localeToUse,fmt)}static fromFormatParser(text,formatParser,opts={}){if(isUndefined(text)||isUndefined(formatParser))throw new InvalidArgumentError(`fromFormatParser requires an input string and a format parser`);let{locale=null,numberingSystem=null}=opts,localeToUse=Locale.fromOpts({locale,numberingSystem,defaultToEN:!0});if(!localeToUse.equals(formatParser.locale))throw new InvalidArgumentError(`fromFormatParser called with a locale of ${localeToUse}, but the format parser was created for ${formatParser.locale}`);let{result,zone,specificOffset,invalidReason}=formatParser.explainFromTokens(text);return invalidReason?DateTime.invalid(invalidReason):parseDataToDateTime(result,zone,opts,`format ${formatParser.format}`,text,specificOffset)}static get DATE_SHORT(){return DATE_SHORT}static get DATE_MED(){return DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return DATE_FULL}static get DATE_HUGE(){return DATE_HUGE}static get TIME_SIMPLE(){return TIME_SIMPLE}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS}};function friendlyDateTime(dateTimeish){if(DateTime.isDateTime(dateTimeish))return dateTimeish;if(dateTimeish&&dateTimeish.valueOf&&isNumber(dateTimeish.valueOf()))return DateTime.fromJSDate(dateTimeish);if(dateTimeish&&typeof dateTimeish==`object`)return DateTime.fromObject(dateTimeish);throw new InvalidArgumentError(`Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`)}var require_dayjs_min=__commonJSMin((exports,module)=>{(function(t$5,e){typeof exports==`object`&&module!==void 0?module.exports=e():typeof define==`function`&&define.amd?define(e):(t$5=typeof globalThis<`u`?globalThis:t$5||self).dayjs=e()})(exports,function(){"use strict";var t$5=1e3,e=6e4,n$2=36e5,r=`millisecond`,i$4=`second`,s$2=`minute`,u=`hour`,a=`day`,o=`week`,c$1=`month`,f=`quarter`,h=`year`,d=`date`,l$2=`Invalid Date`,$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M$1={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(t$6){var e$1=[`th`,`st`,`nd`,`rd`],n$3=t$6%100;return`[`+t$6+(e$1[(n$3-20)%10]||e$1[n$3]||e$1[0])+`]`}},m=function(t$6,e$1,n$3){var r$1=String(t$6);return!r$1||r$1.length>=e$1?t$6:``+Array(e$1+1-r$1.length).join(n$3)+t$6},v={s:m,z:function(t$6){var e$1=-t$6.utcOffset(),n$3=Math.abs(e$1),r$1=Math.floor(n$3/60),i$5=n$3%60;return(e$1<=0?`+`:`-`)+m(r$1,2,`0`)+`:`+m(i$5,2,`0`)},m:function t$6(e$1,n$3){if(e$1.date()<n$3.date())return-t$6(n$3,e$1);var r$1=12*(n$3.year()-e$1.year())+(n$3.month()-e$1.month()),i$5=e$1.clone().add(r$1,c$1),s$3=n$3-i$5<0,u$1=e$1.clone().add(r$1+(s$3?-1:1),c$1);return+(-(r$1+(n$3-i$5)/(s$3?i$5-u$1:u$1-i$5))||0)},a:function(t$6){return t$6<0?Math.ceil(t$6)||0:Math.floor(t$6)},p:function(t$6){return{M:c$1,y:h,w:o,d:a,D:d,h:u,m:s$2,s:i$4,ms:r,Q:f}[t$6]||String(t$6||``).toLowerCase().replace(/s$/,``)},u:function(t$6){return t$6===void 0}},g$2=`en`,D={};D[g$2]=M$1;var p=`$isDayjsObject`,S=function(t$6){return t$6 instanceof _||!(!t$6||!t$6[p])},w=function t$6(e$1,n$3,r$1){var i$5;if(!e$1)return g$2;if(typeof e$1==`string`){var s$3=e$1.toLowerCase();D[s$3]&&(i$5=s$3),n$3&&(D[s$3]=n$3,i$5=s$3);var u$1=e$1.split(`-`);if(!i$5&&u$1.length>1)return t$6(u$1[0])}else{var a$1=e$1.name;D[a$1]=e$1,i$5=a$1}return!r$1&&i$5&&(g$2=i$5),i$5||!r$1&&g$2},O=function(t$6,e$1){if(S(t$6))return t$6.clone();var n$3=typeof e$1==`object`?e$1:{};return n$3.date=t$6,n$3.args=arguments,new _(n$3)},b=v;b.l=w,b.i=S,b.w=function(t$6,e$1){return O(t$6,{locale:e$1.$L,utc:e$1.$u,x:e$1.$x,$offset:e$1.$offset})};var _=function(){function M$2(t$6){this.$L=w(t$6.locale,null,!0),this.parse(t$6),this.$x=this.$x||t$6.x||{},this[p]=!0}var m$1=M$2.prototype;return m$1.parse=function(t$6){this.$d=function(t$7){var e$1=t$7.date,n$3=t$7.utc;if(e$1===null)return new Date(NaN);if(b.u(e$1))return new Date;if(e$1 instanceof Date)return new Date(e$1);if(typeof e$1==`string`&&!/Z$/i.test(e$1)){var r$1=e$1.match($);if(r$1){var i$5=r$1[2]-1||0,s$3=(r$1[7]||`0`).substring(0,3);return n$3?new Date(Date.UTC(r$1[1],i$5,r$1[3]||1,r$1[4]||0,r$1[5]||0,r$1[6]||0,s$3)):new Date(r$1[1],i$5,r$1[3]||1,r$1[4]||0,r$1[5]||0,r$1[6]||0,s$3)}}return new Date(e$1)}(t$6),this.init()},m$1.init=function(){var t$6=this.$d;this.$y=t$6.getFullYear(),this.$M=t$6.getMonth(),this.$D=t$6.getDate(),this.$W=t$6.getDay(),this.$H=t$6.getHours(),this.$m=t$6.getMinutes(),this.$s=t$6.getSeconds(),this.$ms=t$6.getMilliseconds()},m$1.$utils=function(){return b},m$1.isValid=function(){return this.$d.toString()!==l$2},m$1.isSame=function(t$6,e$1){var n$3=O(t$6);return this.startOf(e$1)<=n$3&&n$3<=this.endOf(e$1)},m$1.isAfter=function(t$6,e$1){return O(t$6)<this.startOf(e$1)},m$1.isBefore=function(t$6,e$1){return this.endOf(e$1)<O(t$6)},m$1.$g=function(t$6,e$1,n$3){return b.u(t$6)?this[e$1]:this.set(n$3,t$6)},m$1.unix=function(){return Math.floor(this.valueOf()/1e3)},m$1.valueOf=function(){return this.$d.getTime()},m$1.startOf=function(t$6,e$1){var n$3=this,r$1=!!b.u(e$1)||e$1,f$1=b.p(t$6),l$3=function(t$7,e$2){var i$5=b.w(n$3.$u?Date.UTC(n$3.$y,e$2,t$7):new Date(n$3.$y,e$2,t$7),n$3);return r$1?i$5:i$5.endOf(a)},$$1=function(t$7,e$2){return b.w(n$3.toDate()[t$7].apply(n$3.toDate(`s`),(r$1?[0,0,0,0]:[23,59,59,999]).slice(e$2)),n$3)},y$1=this.$W,M$3=this.$M,m$2=this.$D,v$1=`set`+(this.$u?`UTC`:``);switch(f$1){case h:return r$1?l$3(1,0):l$3(31,11);case c$1:return r$1?l$3(1,M$3):l$3(0,M$3+1);case o:var g$3=this.$locale().weekStart||0,D$1=(y$1<g$3?y$1+7:y$1)-g$3;return l$3(r$1?m$2-D$1:m$2+(6-D$1),M$3);case a:case d:return $$1(v$1+`Hours`,0);case u:return $$1(v$1+`Minutes`,1);case s$2:return $$1(v$1+`Seconds`,2);case i$4:return $$1(v$1+`Milliseconds`,3);default:return this.clone()}},m$1.endOf=function(t$6){return this.startOf(t$6,!1)},m$1.$set=function(t$6,e$1){var n$3,o$1=b.p(t$6),f$1=`set`+(this.$u?`UTC`:``),l$3=(n$3={},n$3[a]=f$1+`Date`,n$3[d]=f$1+`Date`,n$3[c$1]=f$1+`Month`,n$3[h]=f$1+`FullYear`,n$3[u]=f$1+`Hours`,n$3[s$2]=f$1+`Minutes`,n$3[i$4]=f$1+`Seconds`,n$3[r]=f$1+`Milliseconds`,n$3)[o$1],$$1=o$1===a?this.$D+(e$1-this.$W):e$1;if(o$1===c$1||o$1===h){var y$1=this.clone().set(d,1);y$1.$d[l$3]($$1),y$1.init(),this.$d=y$1.set(d,Math.min(this.$D,y$1.daysInMonth())).$d}else l$3&&this.$d[l$3]($$1);return this.init(),this},m$1.set=function(t$6,e$1){return this.clone().$set(t$6,e$1)},m$1.get=function(t$6){return this[b.p(t$6)]()},m$1.add=function(r$1,f$1){var d$1,l$3=this;r$1=Number(r$1);var $$1=b.p(f$1),y$1=function(t$6){var e$1=O(l$3);return b.w(e$1.date(e$1.date()+Math.round(t$6*r$1)),l$3)};if($$1===c$1)return this.set(c$1,this.$M+r$1);if($$1===h)return this.set(h,this.$y+r$1);if($$1===a)return y$1(1);if($$1===o)return y$1(7);var M$3=(d$1={},d$1[s$2]=e,d$1[u]=n$2,d$1[i$4]=t$5,d$1)[$$1]||1,m$2=this.$d.getTime()+r$1*M$3;return b.w(m$2,this)},m$1.subtract=function(t$6,e$1){return this.add(-1*t$6,e$1)},m$1.format=function(t$6){var e$1=this,n$3=this.$locale();if(!this.isValid())return n$3.invalidDate||l$2;var r$1=t$6||`YYYY-MM-DDTHH:mm:ssZ`,i$5=b.z(this),s$3=this.$H,u$1=this.$m,a$1=this.$M,o$1=n$3.weekdays,c$2=n$3.months,f$1=n$3.meridiem,h$1=function(t$7,n$4,i$6,s$4){return t$7&&(t$7[n$4]||t$7(e$1,r$1))||i$6[n$4].slice(0,s$4)},d$1=function(t$7){return b.s(s$3%12||12,t$7,`0`)},$$1=f$1||function(t$7,e$2,n$4){var r$2=t$7<12?`AM`:`PM`;return n$4?r$2.toLowerCase():r$2};return r$1.replace(y,function(t$7,r$2){return r$2||function(t$8){switch(t$8){case`YY`:return String(e$1.$y).slice(-2);case`YYYY`:return b.s(e$1.$y,4,`0`);case`M`:return a$1+1;case`MM`:return b.s(a$1+1,2,`0`);case`MMM`:return h$1(n$3.monthsShort,a$1,c$2,3);case`MMMM`:return h$1(c$2,a$1);case`D`:return e$1.$D;case`DD`:return b.s(e$1.$D,2,`0`);case`d`:return String(e$1.$W);case`dd`:return h$1(n$3.weekdaysMin,e$1.$W,o$1,2);case`ddd`:return h$1(n$3.weekdaysShort,e$1.$W,o$1,3);case`dddd`:return o$1[e$1.$W];case`H`:return String(s$3);case`HH`:return b.s(s$3,2,`0`);case`h`:return d$1(1);case`hh`:return d$1(2);case`a`:return $$1(s$3,u$1,!0);case`A`:return $$1(s$3,u$1,!1);case`m`:return String(u$1);case`mm`:return b.s(u$1,2,`0`);case`s`:return String(e$1.$s);case`ss`:return b.s(e$1.$s,2,`0`);case`SSS`:return b.s(e$1.$ms,3,`0`);case`Z`:return i$5}return null}(t$7)||i$5.replace(`:`,``)})},m$1.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m$1.diff=function(r$1,d$1,l$3){var $$1,y$1=this,M$3=b.p(d$1),m$2=O(r$1),v$1=(m$2.utcOffset()-this.utcOffset())*e,g$3=this-m$2,D$1=function(){return b.m(y$1,m$2)};switch(M$3){case h:$$1=D$1()/12;break;case c$1:$$1=D$1();break;case f:$$1=D$1()/3;break;case o:$$1=(g$3-v$1)/6048e5;break;case a:$$1=(g$3-v$1)/864e5;break;case u:$$1=g$3/n$2;break;case s$2:$$1=g$3/e;break;case i$4:$$1=g$3/t$5;break;default:$$1=g$3}return l$3?$$1:b.a($$1)},m$1.daysInMonth=function(){return this.endOf(c$1).$D},m$1.$locale=function(){return D[this.$L]},m$1.locale=function(t$6,e$1){if(!t$6)return this.$L;var n$3=this.clone(),r$1=w(t$6,e$1,!0);return r$1&&(n$3.$L=r$1),n$3},m$1.clone=function(){return b.w(this.$d,this)},m$1.toDate=function(){return new Date(this.valueOf())},m$1.toJSON=function(){return this.isValid()?this.toISOString():null},m$1.toISOString=function(){return this.$d.toISOString()},m$1.toString=function(){return this.$d.toUTCString()},M$2}(),k=_.prototype;return O.prototype=k,[[`$ms`,r],[`$s`,i$4],[`$m`,s$2],[`$H`,u],[`$W`,a],[`$M`,c$1],[`$y`,h],[`$D`,d]].forEach(function(t$6){k[t$6[1]]=function(e$1){return this.$g(e$1,t$6[0],t$6[1])}}),O.extend=function(t$6,e$1){return t$6.$i||(t$6(e$1,_,O),t$6.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t$6){return O(1e3*t$6)},O.en=D[g$2],O.Ls=D,O.p={},O})});const isInstanceOf=(value,type,ctor)=>{if(ctor!==void 0&&value instanceof ctor||ctor!==void 0&&typeof ctor[Symbol.hasInstance]==`function`&&ctor[Symbol.hasInstance](value))return!0;if(typeof value==`object`&&value){let valueWithConstructor=value,constructorName=valueWithConstructor.constructor?.name;return constructorName===type}return!1},isLuxonDateTime=value=>value instanceof DateTime?!0:typeof value!=`object`||!value||!(`isLuxonDateTime`in value)?!1:value.isLuxonDateTime===!0,isPlainObject=value=>typeof value==`object`&&!!value&&!Array.isArray(value),isDateObjectUnits=value=>{if(!isPlainObject(value))return!1;let keys=Object.keys(value);if(keys.length===0)return!1;let valids=[`year`,`month`,`day`,`ordinal`,`weekYear`,`localWeekYear`,`weekNumber`,`localWeekNumber`,`weekday`,`localWeekday`,`hour`,`minute`,`second`,`millisecond`],invalidKeys=keys.filter(key=>!valids.includes(key));return invalidKeys.length>0?!1:keys.every(key=>{let val=value[key];return typeof val==`number`||val===void 0})};var import_dayjs_min=__toESM(require_dayjs_min());Settings.defaultZone=`utc`,Settings.defaultLocale=`en`,Settings.defaultWeekSettings={firstDay:7,minimalDays:4,weekend:[6,7]},Settings.throwOnInvalid=!1;const removeComments=str=>(str=str.replace(/\/\/.*$/gm,``),str=str.replace(/\/\*[\s\S]*?\*\//g,``),str),extractFunctionBody=fn$1=>{let fnString=fn$1.toString();if(fnString.includes(`[native code]`))throw Error(`Cannot extract body from native function`);let cleanedString=removeComments(fnString),arrowMatch=cleanedString.match(/^\s*(?:async\s+)?(?:\([^)]*\)|[^=]+)\s*=>\s*(.+)$/s);if(arrowMatch&&!arrowMatch[1].trim().startsWith(`{`)){let expression=arrowMatch[1].trim().replace(/;?\s*$/,``);if(expression.startsWith(`(`)&&expression.endsWith(`)`)){let unwrapped=expression.slice(1,-1).trim();if(unwrapped.startsWith(`{`)&&unwrapped.endsWith(`}`))return`return ${unwrapped}`}return`return ${expression}`}let braceCount=0,inString=!1,stringChar=``,inTemplate=!1,escaped=!1,firstBrace=-1,lastBrace=-1;for(let[i$4,char]of Array.from(cleanedString).entries()){if(escaped){escaped=!1;continue}if(char===`\\`){escaped=!0;continue}if(!inString&&!inTemplate){if(char===`"`||char===`'`){inString=!0,stringChar=char;continue}if(char==="`"){inTemplate=!0;continue}}else if(inString&&char===stringChar){inString=!1;continue}else if(inTemplate&&char==="`"){inTemplate=!1;continue}if(!inString&&!inTemplate){if(char===`{`)firstBrace===-1&&(firstBrace=i$4),braceCount++;else if(char===`}`&&(braceCount--,braceCount===0&&firstBrace!==-1)){lastBrace=i$4;break}}}if(firstBrace===-1||lastBrace===-1||firstBrace>=lastBrace)throw Error(`Unable to extract function body - no valid braces found`);let body=cleanedString.slice(firstBrace+1,lastBrace).trim();if(/\breturn\b/.test(body))return body;let beforeBrace=cleanedString.slice(0,firstBrace).trim();if(beforeBrace.endsWith(`=>`)||beforeBrace.endsWith(`=> (`)||beforeBrace.endsWith(`=>(`)){let objectLiteralPattern=/^\s*(?:[a-zA-Z_$][\w$]*\s*:|["'`][^"'`]+["'`]\s*:|get\s+|set\s+|\[)/;if(objectLiteralPattern.test(body))return`return {${body}}`}return`return ${body}`},compileCallback=body=>{try{return Function(`dt`,`helpers`,body)}catch(error){throw Error(`Failed to compile callback: ${error instanceof Error?error.message:String(error)}`)}},messages$2={"datetime.base":`{{#label}} must be a datetime value`,"datetime.exactly":`{{#label}} must be a datetime exactly equal to {{#limit}}`,"datetime.equals":`{{#label}} must be a datetime equal to {{#limit}}`,"datetime.after":`{{#label}} must be a datetime after {{#limit}}`,"datetime.greater":`{{#label}} must be a datetime after {{#limit}}`,"datetime.before":`{{#label}} must be a datetime before {{#limit}}`,"datetime.less":`{{#label}} must be a datetime before {{#limit}}`,"datetime.afterOrEqual":`{{#label}} must be a datetime after or equal to {{#limit}}`,"datetime.min":`{{#label}} must be a datetime after or equal to {{#limit}}`,"datetime.beforeOrEqual":`{{#label}} must be a datetime before or equal to {{#limit}}`,"datetime.max":`{{#label}} must be a datetime before or equal to {{#limit}}`,"datetime.weekend":`{{#label}} is not a weekend`,"datetime.weekday":`{{#label}} is not a weekday`},compare$12=(value,limit,operator)=>{switch(value=toDateTime(value),limit=toDateTime(limit),operator){case`===`:return value.equals(limit);case`=`:return value.hasSame(limit,`millisecond`);case`>`:return value>limit;case`<`:return value<limit;case`>=`:return value>=limit;case`<=`:return value<=limit;default:return!1}},backToDateTime=value=>value instanceof DateTime?value:DateTime.fromObject(value.c,{zone:value.zone}).setLocale(value.loc.locale),toDateTime=(value,format)=>{if(isLuxonDateTime(value))return value instanceof DateTime?value:backToDateTime(value);if(isInstanceOf(value,`Date`,Date))return DateTime.fromJSDate(value);if(isInstanceOf(value,`Dayjs`)||import_dayjs_min.default.isDayjs(value))return DateTime.fromJSDate(value.toDate());if(isDateObjectUnits(value))return DateTime.fromObject(value,{zone:`utc`});if(typeof value==`number`){let day=(0,import_dayjs_min.default)(value);if(day.isValid())return DateTime.fromJSDate(day.toDate(),{zone:`utc`})}if(typeof value==`string`){if(format){let dateTime=DateTime.fromFormat(value,format,{zone:`utc`});if(dateTime.isValid)return dateTime}let isoDateTime=DateTime.fromISO(value,{setZone:!0});if(isoDateTime.isValid)return isoDateTime;let luxonMethods=[DateTime.fromRFC2822,DateTime.fromHTTP,DateTime.fromSQL];for(let method of luxonMethods){let dateTime=method(value,{zone:`utc`});if(dateTime.isValid)return dateTime}let day=(0,import_dayjs_min.default)(value);if(day.isValid())return DateTime.fromJSDate(day.toDate(),{zone:`utc`})}return!1},coerce$2=(value,helpers)=>{let converted=toDateTime(value);if(converted){let{schema,prefs}=helpers;if(prefs.convert){let returnable=converted;if(schema._flags.setZone&&Array.isArray(schema._flags.setZone))if(Array.isArray(schema._flags.setZone[0]))Array.from(schema._flags.setZone).forEach(f=>{if(!f)return;let[zone,opts]=Array.from(f);switch(zone){case`utc`:case`UTC`:returnable=returnable.toUTC();break;case`local`:returnable=returnable.toLocal();break;default:returnable=returnable.setZone(zone,opts);break}});else{let[zone,opts]=Array.from(schema._flags.setZone);switch(zone){case`utc`:case`UTC`:returnable=returnable.toUTC();break;case`local`:returnable=returnable.toLocal();break;default:returnable=returnable.setZone(zone,opts);break}}if(schema._flags.setLocale&&(returnable=returnable.setLocale(schema._flags.setLocale)),schema._flags.toFormat){if(Array.isArray(schema._flags.toFormat)){let fmt=Array.from(schema._flags.toFormat),method=fmt.shift(),processedArgs=fmt.map(arg=>{if(typeof arg==`string`&&arg.includes(`return`)){let compiledFn=compileCallback(arg);return compiledFn(returnable,helpers)}return arg});returnable=returnable[method](...processedArgs)}else if(typeof schema._flags.toFormat==`string`)if(schema._flags.toFormat.includes(`return`)){let compiledFn=compileCallback(schema._flags.toFormat),result=compiledFn(returnable,helpers);returnable=returnable.toFormat(result)}else returnable=returnable.toFormat(schema._flags.toFormat)}return{value:returnable}}return{value:converted}}return{value,errors:[helpers.error(`datetime.base`,{value:String(value)})]}},datetime=function(joi){return{type:`datetime`,base:joi.any(),coerce:{from:[`string`,`number`,`date`,`object`],method:coerce$2},rules:{compare:{method:!1,validate(value,helpers,{limit},{name:name$1,operator}){let src$1=toDateTime(value),threshold=toDateTime(limit);if(!src$1||!threshold)return helpers.error(`datetime.base`,{value:isLuxonDateTime(value)?value.toLocaleString(DateTime.DATETIME_MED):String(value)});let valid$2=compare$12(src$1,threshold,operator);return valid$2?value:helpers.error(`datetime.`+name$1,{limit:threshold.toLocaleString(DateTime.DATETIME_MED),value:src$1.toLocaleString(DateTime.DATETIME_MED)})},args:[{name:`limit`,ref:!0,assert:value=>isLuxonDateTime(toDateTime(value)),message:`must be a datetime`}]},exactly:{method(limit){return this.$_addRule({name:`exactly`,method:`compare`,args:{limit},operator:`===`})}},equals:{method(limit){return this.$_addRule({name:`equals`,method:`compare`,args:{limit},operator:`=`})}},after:{method(limit){return this.$_addRule({name:`after`,method:`compare`,args:{limit},operator:`>`})}},greater:{method(limit){return this.$_addRule({name:`greater`,method:`compare`,args:{limit},operator:`>`})}},before:{method(limit){return this.$_addRule({name:`before`,method:`compare`,args:{limit},operator:`<`})}},less:{method(limit){return this.$_addRule({name:`less`,method:`compare`,args:{limit},operator:`<`})}},afterOrEqual:{method(limit){return this.$_addRule({name:`afterOrEqual`,method:`compare`,args:{limit},operator:`>=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`compare`,args:{limit},operator:`>=`})}},beforeOrEqual:{method(limit){return this.$_addRule({name:`beforeOrEqual`,method:`compare`,args:{limit},operator:`<=`})}},max:{method(limit){return this.$_addRule({name:`max`,method:`compare`,args:{limit},operator:`<=`})}},weekend:{method(){return this.$_addRule({name:`weekend`})},validate(value,helpers){let confirmable=toDateTime(value);return confirmable.isWeekend?value:helpers.error(`datetime.weekend`,{value:confirmable.toLocaleString(DateTime.DATE_MED)})}},weekday:{method(){return this.$_addRule({name:`weekday`})},validate(value,helpers){let confirmable=toDateTime(value);return confirmable.isWeekend?helpers.error(`datetime.weekday`,{value:confirmable.toLocaleString(DateTime.DATE_MED)}):value}},toUTC:{method(){return this.$_setFlag(`setZone`,[`utc`])}},toLocal:{method(){return this.$_setFlag(`setZone`,[`local`])}},setZone:{method(zone,opts){return this.$_setFlag(`setZone`,[zone,opts])}},toFormat:{method(format){let processedFormat=typeof format==`function`?extractFunctionBody(format):format;return this.$_setFlag(`toFormat`,processedFormat,{clone:!0})}},toLocalizedString:{method(formatOpts){let processedOpts=typeof formatOpts==`function`?extractFunctionBody(formatOpts):formatOpts;return this.$_setFlag(`toFormat`,[`toLocaleString`,processedOpts],{clone:!0})}},toISO:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toISO`,processedOpts]:[`toISO`],{clone:!0})}},toISODate:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toISODate`,processedOpts]:[`toISODate`],{clone:!0})}},toISOWeekDate:{method(){return this.$_setFlag(`toFormat`,[`toISOWeekDate`],{clone:!0})}},toISOTime:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toISOTime`,processedOpts]:[`toISOTime`],{clone:!0})}},toRFC2822:{method(){return this.$_setFlag(`toFormat`,[`toRFC2822`],{clone:!0})}},toHTTP:{method(){return this.$_setFlag(`toFormat`,[`toHTTP`],{clone:!0})}},toSQLDate:{method(){return this.$_setFlag(`toFormat`,[`toSQLDate`],{clone:!0})}},toSQLTime:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toSQLTime`,processedOpts]:[`toSQLTime`],{clone:!0})}},toSQL:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toSQL`,processedOpts]:[`toSQL`],{clone:!0})}},toMillis:{method(){return this.$_setFlag(`toFormat`,[`toMillis`],{clone:!0})}},toSeconds:{method(){return this.$_setFlag(`toFormat`,[`toSeconds`],{clone:!0})}},toUnixInteger:{method(){return this.$_setFlag(`toFormat`,[`toUnixInteger`],{clone:!0})}},toJSON:{method(){return this.$_setFlag(`toFormat`,[`toJSON`],{clone:!0})}},toBSON:{method(){return this.$_setFlag(`toFormat`,[`toBSON`],{clone:!0})}},toObject:{method(opts){let config=typeof opts==`function`?extractFunctionBody(opts):opts?.includeConfig===void 0?{includeConfig:!1}:{includeConfig:opts.includeConfig};return this.$_setFlag(`toFormat`,[`toObject`,config],{clone:!0})}},toJSDate:{method(){return this.$_setFlag(`toFormat`,[`toJSDate`],{clone:!0})}},toRelative:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toRelative`,processedOpts]:[`toRelative`],{clone:!0})}},setLocale:{method(locale){return this.$_setFlag(`setLocale`,locale)}}},messages:messages$2}},generate=(root,schema,args$1)=>(schema.$_root=root,!schema._definition.args||!args$1.length?schema:schema._definition.args(schema,...args$1)),knownMessages={"alternatives.all":`{{#label}} does not match all of the required types`,"alternatives.any":`{{#label}} does not match any of the allowed types`,"alternatives.match":`{{#label}} does not match any of the allowed types`,"alternatives.one":`{{#label}} matches more than one allowed type`,"alternatives.types":`{{#label}} must be one of {{#types}}`,"any.custom":`{{#label}} failed custom validation because {{#error.message}}`,"any.default":`{{#label}} threw an error when running default method`,"any.failover":`{{#label}} threw an error when running failover method`,"any.invalid":`{{#label}} contains an invalid value`,"any.only":`{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}`,"any.ref":`{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}`,"any.required":`{{#label}} is required`,"any.unknown":`{{#label}} is not allowed`,"array.base":`{{#label}} must be an array`,"array.excludes":`{{#label}} contains an excluded value`,"array.hasKnown":`{{#label}} does not contain at least one required match for type {:#patternLabel}`,"array.hasUnknown":`{{#label}} does not contain at least one required match`,"array.includes":`{{#label}} does not match any of the allowed types`,"array.includesRequiredBoth":`{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)`,"array.includesRequiredKnowns":`{{#label}} does not contain {{#knownMisses}}`,"array.includesRequiredUnknowns":`{{#label}} does not contain {{#unknownMisses}} required value(s)`,"array.length":`{{#label}} must contain {{#limit}} items`,"array.max":`{{#label}} must contain less than or equal to {{#limit}} items`,"array.min":`{{#label}} must contain at least {{#limit}} items`,"array.orderedLength":`{{#label}} must contain at most {{#limit}} items`,"array.sort":`{{#label}} must be sorted in {#order} order by {{#by}}`,"array.sort.mismatching":`{{#label}} cannot be sorted due to mismatching types`,"array.sort.unsupported":`{{#label}} cannot be sorted due to unsupported type {#type}`,"array.sparse":`{{#label}} must not be a sparse array item`,"array.unique":`{{#label}} contains a duplicate value`,"binary.base":`{{#label}} must be a buffer or a string`,"binary.length":`{{#label}} must be {{#limit}} bytes`,"binary.max":`{{#label}} must be less than or equal to {{#limit}} bytes`,"binary.min":`{{#label}} must be at least {{#limit}} bytes`,"boolean.base":`{{#label}} must be a boolean`,"date.base":`{{#label}} must be a valid date`,"date.format":`{{#label}} must be in {msg("date.format." + #format) || #format} format`,"date.greater":`{{#label}} must be greater than {{:#limit}}`,"date.less":`{{#label}} must be less than {{:#limit}}`,"date.max":`{{#label}} must be less than or equal to {{:#limit}}`,"date.min":`{{#label}} must be greater than or equal to {{:#limit}}`,"date.format.iso":`ISO 8601 date`,"date.format.javascript":`timestamp or number of milliseconds`,"date.format.unix":`timestamp or number of seconds`,"function.arity":`{{#label}} must have an arity of {{#n}}`,"function.class":`{{#label}} must be a class`,"function.maxArity":`{{#label}} must have an arity lesser or equal to {{#n}}`,"function.minArity":`{{#label}} must have an arity greater or equal to {{#n}}`,"object.and":`{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}`,"object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":`{{#label}} must be of type {{#type}}`,"object.instance":`{{#label}} must be an instance of {{:#type}}`,"object.length":`{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}`,"object.max":`{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}`,"object.min":`{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}`,"object.missing":`{{#label}} must contain at least one of {{#peersWithLabels}}`,"object.nand":`{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}`,"object.oxor":`{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}`,"object.pattern.match":`{{#label}} keys failed to match pattern requirements`,"object.refType":`{{#label}} must be a Joi reference`,"object.regex":`{{#label}} must be a RegExp object`,"object.rename.multiple":`{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}`,"object.rename.override":`{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists`,"object.schema":`{{#label}} must be a Joi schema of {{#type}} type`,"object.unknown":`{{#label}} is not allowed`,"object.with":`{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}`,"object.without":`{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}`,"object.xor":`{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}`,"number.base":`{{#label}} must be a number`,"number.greater":`{{#label}} must be greater than {{#limit}}`,"number.infinity":`{{#label}} cannot be infinity`,"number.integer":`{{#label}} must be an integer`,"number.less":`{{#label}} must be less than {{#limit}}`,"number.max":`{{#label}} must be less than or equal to {{#limit}}`,"number.min":`{{#label}} must be greater than or equal to {{#limit}}`,"number.multiple":`{{#label}} must be a multiple of {{#multiple}}`,"number.negative":`{{#label}} must be a negative number`,"number.port":`{{#label}} must be a valid port`,"number.positive":`{{#label}} must be a positive number`,"number.precision":`{{#label}} must have no more than {{#limit}} decimal places`,"number.unsafe":`{{#label}} must be a safe number`,"string.alphanum":`{{#label}} must only contain alpha-numeric characters`,"string.base":`{{#label}} must be a string`,"string.base64":`{{#label}} must be a valid base64 string`,"string.creditCard":`{{#label}} must be a credit card`,"string.dataUri":`{{#label}} must be a valid dataUri string`,"string.domain":`{{#label}} must contain a valid domain name`,"string.email":`{{#label}} must be a valid email`,"string.empty":`{{#label}} is not allowed to be empty`,"string.guid":`{{#label}} must be a valid GUID`,"string.hex":`{{#label}} must only contain hexadecimal characters`,"string.hexAlign":`{{#label}} hex decoded representation must be byte aligned`,"string.hostname":`{{#label}} must be a valid hostname`,"string.ip":`{{#label}} must be a valid ip address with a {{#cidr}} CIDR`,"string.ipVersion":`{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR`,"string.isoDate":`{{#label}} must be in iso format`,"string.isoDuration":`{{#label}} must be a valid ISO 8601 duration`,"string.length":`{{#label}} length must be {{#limit}} characters long`,"string.lowercase":`{{#label}} must only contain lowercase characters`,"string.max":`{{#label}} length must be less than or equal to {{#limit}} characters long`,"string.min":`{{#label}} length must be at least {{#limit}} characters long`,"string.normalize":`{{#label}} must be unicode normalized in the {{#form}} form`,"string.token":`{{#label}} must only contain alpha-numeric and underscore characters`,"string.pattern.base":`{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}`,"string.pattern.name":`{{#label}} with value {:[.]} fails to match the {{#name}} pattern`,"string.pattern.invert.base":`{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}`,"string.pattern.invert.name":`{{#label}} with value {:[.]} matches the inverted {{#name}} pattern`,"string.trim":`{{#label}} must not have leading or trailing whitespace`,"string.uri":`{{#label}} must be a valid uri`,"string.uriCustomScheme":`{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern`,"string.uriRelativeOnly":`{{#label}} must be a valid relative uri`,"string.uppercase":`{{#label}} must only contain uppercase characters`,"symbol.base":`{{#label}} must be a symbol`,"symbol.map":`{{#label}} must be one of {{#map}}`,...messages$1,...messages$2,...messages,...knexMessages};countries.forEach((name$1,iso)=>{knownMessages[`country.${iso}`]=name$1});let globalI18nCallback;const i18n=toPatch=>{let root=toPatch,joi=Object.assign({},root),joiTypes=joi.types(),originalMessages=new Map;Object.entries(knownMessages).forEach(([key,value])=>{originalMessages.set(key,value)});let doUpdateI18n=callback=>{globalI18nCallback=callback;let $t=term=>{if(globalI18nCallback)try{let ret=globalI18nCallback(term);if(typeof ret==`string`)return ret}catch{}return originalMessages.get(term)||term},applyMessagesToSchema=(schema,messages$3)=>schema.messages({"any.custom":$t(`any.custom`),"any.default":$t(`any.default`),"any.failover":$t(`any.failover`),"any.invalid":$t(`any.invalid`),"any.only":$t(`any.only`),"any.ref":$t(`any.ref`),"any.required":$t(`any.required`),"any.unknown":$t(`any.unknown`),...messages$3});Object.defineProperty(root,`$i18n`,{value:term=>$t(term),writable:!1,enumerable:!0,configurable:!0}),Object.keys(joiTypes).forEach(type=>{let t$5=type;if(typeof root[t$5]!=`function`)return;let baseSchema=root[t$5]();root[t$5]=(...args$1)=>{let schema=generate(root,baseSchema,args$1),knexTranslations=Object.fromEntries(Object.entries(knexMessages).map(([k])=>[k,$t(k)]));switch(type){case`alternatives`:return applyMessagesToSchema(schema,{"alternatives.all":$t(`alternatives.all`),"alternatives.any":$t(`alternatives.any`),"alternatives.match":$t(`alternatives.match`),"alternatives.one":$t(`alternatives.one`),"alternatives.types":$t(`alternatives.types`),...knexTranslations});case`any`:return applyMessagesToSchema(schema,{"any.custom":$t(`any.custom`),"any.default":$t(`any.default`),"any.failover":$t(`any.failover`),"any.invalid":$t(`any.invalid`),"any.only":$t(`any.only`),"any.ref":$t(`any.ref`),"any.required":$t(`any.required`),"any.unknown":$t(`any.unknown`),...knexTranslations});case`array`:return applyMessagesToSchema(schema,{"array.base":$t(`array.base`),"array.excludes":$t(`array.excludes`),"array.hasKnown":$t(`array.hasKnown`),"array.hasUnknown":$t(`array.hasUnknown`),"array.includes":$t(`array.includes`),"array.includesRequiredBoth":$t(`array.includesRequiredBoth`),"array.includesRequiredKnowns":$t(`array.includesRequiredKnowns`),"array.includesRequiredUnknowns":$t(`array.includesRequiredUnknowns`),"array.length":$t(`array.length`),"array.max":$t(`array.max`),"array.min":$t(`array.min`),"array.orderedLength":$t(`array.orderedLength`),"array.sort":$t(`array.sort`),"array.sort.mismatching":$t(`array.sort.mismatching`),"array.sort.unsupported":$t(`array.sort.unsupported`),"array.sparse":$t(`array.sparse`),"array.unique":$t(`array.unique`),...knexTranslations});case`binary`:return applyMessagesToSchema(schema,{"binary.base":$t(`binary.base`),"binary.length":$t(`binary.length`),"binary.max":$t(`binary.max`),"binary.min":$t(`binary.min`),...knexTranslations});case`boolean`:return applyMessagesToSchema(schema,{"boolean.base":$t(`boolean.base`),...knexTranslations});case`date`:return applyMessagesToSchema(schema,{"date.base":$t(`date.base`),"date.format":$t(`date.format`),"date.greater":$t(`date.greater`),"date.less":$t(`date.less`),"date.max":$t(`date.max`),"date.min":$t(`date.min`),"date.format.iso":$t(`date.format.iso`),"date.format.javascript":$t(`date.format.javascript`),"date.format.unix":$t(`date.format.unix`),...knexTranslations});case`function`:return applyMessagesToSchema(schema,{"function.arity":$t(`function.arity`),"function.class":$t(`function.class`),"function.maxArity":$t(`function.maxArity`),"function.minArity":$t(`function.minArity`),...knexTranslations});case`object`:case`keys`:return applyMessagesToSchema(schema,{"object.and":$t(`object.and`),"object.assert":$t(`object.assert`),"object.base":$t(`object.base`),"object.instance":$t(`object.instance`),"object.length":$t(`object.length`),"object.max":$t(`object.max`),"object.min":$t(`object.min`),"object.missing":$t(`object.missing`),"object.nand":$t(`object.nand`),"object.oxor":$t(`object.oxor`),"object.pattern.match":$t(`object.pattern.match`),"object.refType":$t(`object.refType`),"object.regex":$t(`object.regex`),"object.rename.multiple":$t(`object.rename.multiple`),"object.rename.override":$t(`object.rename.override`),"object.schema":$t(`object.schema`),"object.unknown":$t(`object.unknown`),"object.with":$t(`object.with`),"object.without":$t(`object.without`),"object.xor":$t(`object.xor`),...knexTranslations});case`number`:return applyMessagesToSchema(schema,{"number.base":$t(`number.base`),"number.greater":$t(`number.greater`),"number.infinity":$t(`number.infinity`),"number.integer":$t(`number.integer`),"number.less":$t(`number.less`),"number.max":$t(`number.max`),"number.min":$t(`number.min`),"number.multiple":$t(`number.multiple`),"number.negative":$t(`number.negative`),"number.port":$t(`number.port`),"number.positive":$t(`number.positive`),"number.precision":$t(`number.precision`),"number.unsafe":$t(`number.unsafe`),...knexTranslations});case`string`:return applyMessagesToSchema(schema,{"string.alphanum":$t(`string.alphanum`),"string.base":$t(`string.base`),"string.base64":$t(`string.base64`),"string.creditCard":$t(`string.creditCard`),"string.dataUri":$t(`string.dataUri`),"string.domain":$t(`string.domain`),"string.email":$t(`string.email`),"string.empty":$t(`string.empty`),"string.guid":$t(`string.guid`),"string.hex":$t(`string.hex`),"string.hexAlign":$t(`string.hexAlign`),"string.hostname":$t(`string.hostname`),"string.ip":$t(`string.ip`),"string.ipVersion":$t(`string.ipVersion`),"string.isoDate":$t(`string.isoDate`),"string.isoDuration":$t(`string.isoDuration`),"string.length":$t(`string.length`),"string.lowercase":$t(`string.lowercase`),"string.max":$t(`string.max`),"string.min":$t(`string.min`),"string.normalize":$t(`string.normalize`),"string.token":$t(`string.token`),"string.pattern.base":$t(`string.pattern.base`),"string.pattern.name":$t(`string.pattern.name`),"string.pattern.invert.base":$t(`string.pattern.invert.base`),"string.pattern.invert.name":$t(`string.pattern.invert.name`),"string.trim":$t(`string.trim`),"string.uri":$t(`string.uri`),"string.uriCustomScheme":$t(`string.uriCustomScheme`),"string.uriRelativeOnly":$t(`string.uriRelativeOnly`),"string.uppercase":$t(`string.uppercase`),...knexTranslations});case`symbol`:return applyMessagesToSchema(schema,{"symbol.base":$t(`symbol.base`),"symbol.map":$t(`symbol.map`),...knexTranslations});case`bigint`:return applyMessagesToSchema(schema,{"bigint.base":$t(`bigint.base`),"bigint.greater":$t(`bigint.greater`),"bigint.less":$t(`bigint.less`),"bigint.max":$t(`bigint.max`),"bigint.min":$t(`bigint.min`),"bigint.multiple":$t(`bigint.multiple`),"bigint.negative":$t(`bigint.negative`),"bigint.positive":$t(`bigint.positive`),...knexTranslations});case`datetime`:return applyMessagesToSchema(schema,{"datetime.base":$t(`datetime.base`),"datetime.exactly":$t(`datetime.exactly`),"datetime.equals":$t(`datetime.equals`),"datetime.after":$t(`datetime.after`),"datetime.greater":$t(`datetime.greater`),"datetime.before":$t(`datetime.before`),"datetime.less":$t(`datetime.less`),"datetime.afterOrEqual":$t(`datetime.afterOrEqual`),"datetime.min":$t(`datetime.min`),"datetime.beforeOrEqual":$t(`datetime.beforeOrEqual`),"datetime.max":$t(`datetime.max`),"datetime.weekend":$t(`datetime.weekend`),"datetime.weekday":$t(`datetime.weekday`),...knexTranslations});case`phone`:return applyMessagesToSchema(schema,{"phone.base":$t(`phone.base`),"phone.invalid":$t(`phone.invalid`),"phone.fixedLine":$t(`phone.fixedLine`),"phone.mobile":$t(`phone.mobile`),"phone.strictFixedLine":$t(`phone.strictFixedLine`),"phone.strictMobile":$t(`phone.strictMobile`),"phone.fixedLineOrMobile":$t(`phone.fixedLineOrMobile`),"phone.tollFree":$t(`phone.tollFree`),"phone.premiumRate":$t(`phone.premiumRate`),"phone.sharedCost":$t(`phone.sharedCost`),"phone.voip":$t(`phone.voip`),"phone.personalNumber":$t(`phone.personalNumber`),"phone.pager":$t(`phone.pager`),"phone.uan":$t(`phone.uan`),"phone.voicemail":$t(`phone.voicemail`),"phone.unknown":$t(`phone.unknown`),"phone.types":$t(`phone.types`),...knexTranslations});default:return applyMessagesToSchema(schema,{...knexTranslations})}}})};return Object.defineProperty(root,`$setI18n`,{value:callback=>(doUpdateI18n(callback),root),writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(root,`$clearI18n`,{value:()=>(doUpdateI18n(),root),writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(root,`$i18n`,{value:term=>{try{return originalMessages.get(term)||term}catch{return term}},writable:!1,enumerable:!0,configurable:!0}),root},patch=root=>(root=json(root),root=i18n(root),root);var require_constants=__commonJSMin((exports,module)=>{let SEMVER_SPEC_VERSION=`2.0.0`,MAX_LENGTH$2=256,MAX_SAFE_INTEGER$1=2**53-1||9007199254740991,MAX_SAFE_COMPONENT_LENGTH$1=16,MAX_SAFE_BUILD_LENGTH$1=MAX_LENGTH$2-6,RELEASE_TYPES=[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`];module.exports={MAX_LENGTH:MAX_LENGTH$2,MAX_SAFE_COMPONENT_LENGTH:MAX_SAFE_COMPONENT_LENGTH$1,MAX_SAFE_BUILD_LENGTH:MAX_SAFE_BUILD_LENGTH$1,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$1,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}),require_debug=__commonJSMin((exports,module)=>{init_dist();let debug$4=typeof process$1==`object`&&process$1.env&&process$1.env.NODE_DEBUG&&/\bsemver\b/i.test(process$1.env.NODE_DEBUG)?(...args$1)=>console.error(`SEMVER`,...args$1):()=>{};module.exports=debug$4}),require_re=__commonJSMin((exports,module)=>{let{MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_LENGTH:MAX_LENGTH$1}=require_constants(),debug$3=require_debug();exports=module.exports={};let re$4=exports.re=[],safeRe=exports.safeRe=[],src=exports.src=[],safeSrc=exports.safeSrc=[],t$4=exports.t={},R=0,LETTERDASHNUMBER=`[a-zA-Z0-9-]`,safeRegexReplacements=[[`\\s`,1],[`\\d`,MAX_LENGTH$1],[LETTERDASHNUMBER,MAX_SAFE_BUILD_LENGTH]],makeSafeRegex=value=>{for(let[token,max$3]of safeRegexReplacements)value=value.split(`${token}*`).join(`${token}{0,${max$3}}`).split(`${token}+`).join(`${token}{1,${max$3}}`);return value},createToken=(name$1,value,isGlobal)=>{let safe=makeSafeRegex(value),index=R++;debug$3(name$1,index,value),t$4[name$1]=index,src[index]=value,safeSrc[index]=safe,re$4[index]=new RegExp(value,isGlobal?`g`:void 0),safeRe[index]=new RegExp(safe,isGlobal?`g`:void 0)};createToken(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),createToken(`NUMERICIDENTIFIERLOOSE`,`\\d+`),createToken(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`),createToken(`MAINVERSION`,`(${src[t$4.NUMERICIDENTIFIER]})\\.(${src[t$4.NUMERICIDENTIFIER]})\\.(${src[t$4.NUMERICIDENTIFIER]})`),createToken(`MAINVERSIONLOOSE`,`(${src[t$4.NUMERICIDENTIFIERLOOSE]})\\.(${src[t$4.NUMERICIDENTIFIERLOOSE]})\\.(${src[t$4.NUMERICIDENTIFIERLOOSE]})`),createToken(`PRERELEASEIDENTIFIER`,`(?:${src[t$4.NONNUMERICIDENTIFIER]}|${src[t$4.NUMERICIDENTIFIER]})`),createToken(`PRERELEASEIDENTIFIERLOOSE`,`(?:${src[t$4.NONNUMERICIDENTIFIER]}|${src[t$4.NUMERICIDENTIFIERLOOSE]})`),createToken(`PRERELEASE`,`(?:-(${src[t$4.PRERELEASEIDENTIFIER]}(?:\\.${src[t$4.PRERELEASEIDENTIFIER]})*))`),createToken(`PRERELEASELOOSE`,`(?:-?(${src[t$4.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t$4.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken(`BUILDIDENTIFIER`,`${LETTERDASHNUMBER}+`),createToken(`BUILD`,`(?:\\+(${src[t$4.BUILDIDENTIFIER]}(?:\\.${src[t$4.BUILDIDENTIFIER]})*))`),createToken(`FULLPLAIN`,`v?${src[t$4.MAINVERSION]}${src[t$4.PRERELEASE]}?${src[t$4.BUILD]}?`),createToken(`FULL`,`^${src[t$4.FULLPLAIN]}$`),createToken(`LOOSEPLAIN`,`[v=\\s]*${src[t$4.MAINVERSIONLOOSE]}${src[t$4.PRERELEASELOOSE]}?${src[t$4.BUILD]}?`),createToken(`LOOSE`,`^${src[t$4.LOOSEPLAIN]}$`),createToken(`GTLT`,`((?:<|>)?=?)`),createToken(`XRANGEIDENTIFIERLOOSE`,`${src[t$4.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken(`XRANGEIDENTIFIER`,`${src[t$4.NUMERICIDENTIFIER]}|x|X|\\*`),createToken(`XRANGEPLAIN`,`[v=\\s]*(${src[t$4.XRANGEIDENTIFIER]})(?:\\.(${src[t$4.XRANGEIDENTIFIER]})(?:\\.(${src[t$4.XRANGEIDENTIFIER]})(?:${src[t$4.PRERELEASE]})?${src[t$4.BUILD]}?)?)?`),createToken(`XRANGEPLAINLOOSE`,`[v=\\s]*(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:${src[t$4.PRERELEASELOOSE]})?${src[t$4.BUILD]}?)?)?`),createToken(`XRANGE`,`^${src[t$4.GTLT]}\\s*${src[t$4.XRANGEPLAIN]}$`),createToken(`XRANGELOOSE`,`^${src[t$4.GTLT]}\\s*${src[t$4.XRANGEPLAINLOOSE]}$`),createToken(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`),createToken(`COERCE`,`${src[t$4.COERCEPLAIN]}(?:$|[^\\d])`),createToken(`COERCEFULL`,src[t$4.COERCEPLAIN]+`(?:${src[t$4.PRERELEASE]})?(?:${src[t$4.BUILD]})?(?:$|[^\\d])`),createToken(`COERCERTL`,src[t$4.COERCE],!0),createToken(`COERCERTLFULL`,src[t$4.COERCEFULL],!0),createToken(`LONETILDE`,`(?:~>?)`),createToken(`TILDETRIM`,`(\\s*)${src[t$4.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace=`$1~`,createToken(`TILDE`,`^${src[t$4.LONETILDE]}${src[t$4.XRANGEPLAIN]}$`),createToken(`TILDELOOSE`,`^${src[t$4.LONETILDE]}${src[t$4.XRANGEPLAINLOOSE]}$`),createToken(`LONECARET`,`(?:\\^)`),createToken(`CARETTRIM`,`(\\s*)${src[t$4.LONECARET]}\\s+`,!0),exports.caretTrimReplace=`$1^`,createToken(`CARET`,`^${src[t$4.LONECARET]}${src[t$4.XRANGEPLAIN]}$`),createToken(`CARETLOOSE`,`^${src[t$4.LONECARET]}${src[t$4.XRANGEPLAINLOOSE]}$`),createToken(`COMPARATORLOOSE`,`^${src[t$4.GTLT]}\\s*(${src[t$4.LOOSEPLAIN]})$|^$`),createToken(`COMPARATOR`,`^${src[t$4.GTLT]}\\s*(${src[t$4.FULLPLAIN]})$|^$`),createToken(`COMPARATORTRIM`,`(\\s*)${src[t$4.GTLT]}\\s*(${src[t$4.LOOSEPLAIN]}|${src[t$4.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace=`$1$2$3`,createToken(`HYPHENRANGE`,`^\\s*(${src[t$4.XRANGEPLAIN]})\\s+-\\s+(${src[t$4.XRANGEPLAIN]})\\s*$`),createToken(`HYPHENRANGELOOSE`,`^\\s*(${src[t$4.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t$4.XRANGEPLAINLOOSE]})\\s*$`),createToken(`STAR`,`(<|>)?=?\\s*\\*`),createToken(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),createToken(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)}),require_parse_options=__commonJSMin((exports,module)=>{let looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions$3=options=>options?typeof options==`object`?options:looseOption:emptyOpts;module.exports=parseOptions$3}),require_identifiers=__commonJSMin((exports,module)=>{let numeric=/^[0-9]+$/,compareIdentifiers$1=(a,b)=>{if(typeof a==`number`&&typeof b==`number`)return a===b?0:a<b?-1:1;let anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1},rcompareIdentifiers=(a,b)=>compareIdentifiers$1(b,a);module.exports={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers}}),require_semver$1=__commonJSMin((exports,module)=>{let debug$2=require_debug(),{MAX_LENGTH,MAX_SAFE_INTEGER}=require_constants(),{safeRe:re$3,t:t$3}=require_re(),parseOptions$2=require_parse_options(),{compareIdentifiers}=require_identifiers();var SemVer$15=class SemVer$15{constructor(version$3,options){if(options=parseOptions$2(options),version$3 instanceof SemVer$15){if(version$3.loose===!!options.loose&&version$3.includePrerelease===!!options.includePrerelease)return version$3;version$3=version$3.version}else if(typeof version$3!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof version$3}".`);if(version$3.length>MAX_LENGTH)throw TypeError(`version is longer than ${MAX_LENGTH} characters`);debug$2(`SemVer`,version$3,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;let m=version$3.trim().match(options.loose?re$3[t$3.LOOSE]:re$3[t$3.FULL]);if(!m)throw TypeError(`Invalid Version: ${version$3}`);if(this.raw=version$3,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw TypeError(`Invalid patch version`);m[4]?this.prerelease=m[4].split(`.`).map(id=>{if(/^[0-9]+$/.test(id)){let num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id}):this.prerelease=[],this.build=m[5]?m[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(other){if(debug$2(`SemVer.compare`,this.version,this.options,other),!(other instanceof SemVer$15)){if(typeof other==`string`&&other===this.version)return 0;other=new SemVer$15(other,this.options)}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof SemVer$15||(other=new SemVer$15(other,this.options)),this.major<other.major?-1:this.major>other.major?1:this.minor<other.minor?-1:this.minor>other.minor?1:this.patch<other.patch?-1:this.patch>other.patch?1:0}comparePre(other){if(other instanceof SemVer$15||(other=new SemVer$15(other,this.options)),this.prerelease.length&&!other.prerelease.length)return-1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i$4=0;do{let a=this.prerelease[i$4],b=other.prerelease[i$4];if(debug$2(`prerelease compare`,i$4,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i$4)}compareBuild(other){other instanceof SemVer$15||(other=new SemVer$15(other,this.options));let i$4=0;do{let a=this.build[i$4],b=other.build[i$4];if(debug$2(`build compare`,i$4,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i$4)}inc(release,identifier,identifierBase){if(release.startsWith(`pre`)){if(!identifier&&identifierBase===!1)throw Error(`invalid increment argument: identifier is empty`);if(identifier){let match$2=`-${identifier}`.match(this.options.loose?re$3[t$3.PRERELEASELOOSE]:re$3[t$3.PRERELEASE]);if(!match$2||match$2[1]!==identifier)throw Error(`invalid identifier: ${identifier}`)}}switch(release){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,identifier,identifierBase);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,identifier,identifierBase);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,identifier,identifierBase),this.inc(`pre`,identifier,identifierBase);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,identifier,identifierBase),this.inc(`pre`,identifier,identifierBase);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let base=Number(identifierBase)?1:0;if(this.prerelease.length===0)this.prerelease=[base];else{let i$4=this.prerelease.length;for(;--i$4>=0;)typeof this.prerelease[i$4]==`number`&&(this.prerelease[i$4]++,i$4=-2);if(i$4===-1){if(identifier===this.prerelease.join(`.`)&&identifierBase===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(base)}}if(identifier){let prerelease$2=[identifier,base];identifierBase===!1&&(prerelease$2=[identifier]),compareIdentifiers(this.prerelease[0],identifier)===0?isNaN(this.prerelease[1])&&(this.prerelease=prerelease$2):this.prerelease=prerelease$2}break}default:throw Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}};module.exports=SemVer$15}),require_parse=__commonJSMin((exports,module)=>{let SemVer$14=require_semver$1(),parse$6=(version$3,options,throwErrors=!1)=>{if(version$3 instanceof SemVer$14)return version$3;try{return new SemVer$14(version$3,options)}catch(er){if(!throwErrors)return null;throw er}};module.exports=parse$6}),require_valid$1=__commonJSMin((exports,module)=>{let parse$5=require_parse(),valid$1=(version$3,options)=>{let v=parse$5(version$3,options);return v?v.version:null};module.exports=valid$1}),require_clean=__commonJSMin((exports,module)=>{let parse$4=require_parse(),clean$1=(version$3,options)=>{let s$2=parse$4(version$3.trim().replace(/^[=v]+/,``),options);return s$2?s$2.version:null};module.exports=clean$1}),require_inc=__commonJSMin((exports,module)=>{let SemVer$13=require_semver$1(),inc$1=(version$3,release,options,identifier,identifierBase)=>{typeof options==`string`&&(identifierBase=identifier,identifier=options,options=void 0);try{return new SemVer$13(version$3 instanceof SemVer$13?version$3.version:version$3,options).inc(release,identifier,identifierBase).version}catch{return null}};module.exports=inc$1}),require_diff=__commonJSMin((exports,module)=>{let parse$3=require_parse(),diff$1=(version1,version2)=>{let v1=parse$3(version1,null,!0),v2=parse$3(version2,null,!0),comparison=v1.compare(v2);if(comparison===0)return null;let v1Higher=comparison>0,highVersion=v1Higher?v1:v2,lowVersion=v1Higher?v2:v1,highHasPre=!!highVersion.prerelease.length,lowHasPre=!!lowVersion.prerelease.length;if(lowHasPre&&!highHasPre){if(!lowVersion.patch&&!lowVersion.minor)return`major`;if(lowVersion.compareMain(highVersion)===0)return lowVersion.minor&&!lowVersion.patch?`minor`:`patch`}let prefix=highHasPre?`pre`:``;return v1.major===v2.major?v1.minor===v2.minor?v1.patch===v2.patch?`prerelease`:prefix+`patch`:prefix+`minor`:prefix+`major`};module.exports=diff$1}),require_major=__commonJSMin((exports,module)=>{let SemVer$12=require_semver$1(),major$1=(a,loose)=>new SemVer$12(a,loose).major;module.exports=major$1}),require_minor=__commonJSMin((exports,module)=>{let SemVer$11=require_semver$1(),minor$1=(a,loose)=>new SemVer$11(a,loose).minor;module.exports=minor$1}),require_patch=__commonJSMin((exports,module)=>{let SemVer$10=require_semver$1(),patch$2=(a,loose)=>new SemVer$10(a,loose).patch;module.exports=patch$2}),require_prerelease=__commonJSMin((exports,module)=>{let parse$2=require_parse(),prerelease$1=(version$3,options)=>{let parsed=parse$2(version$3,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};module.exports=prerelease$1}),require_compare=__commonJSMin((exports,module)=>{let SemVer$9=require_semver$1(),compare$11=(a,b,loose)=>new SemVer$9(a,loose).compare(new SemVer$9(b,loose));module.exports=compare$11}),require_rcompare=__commonJSMin((exports,module)=>{let compare$10=require_compare(),rcompare$1=(a,b,loose)=>compare$10(b,a,loose);module.exports=rcompare$1}),require_compare_loose=__commonJSMin((exports,module)=>{let compare$9=require_compare(),compareLoose$1=(a,b)=>compare$9(a,b,!0);module.exports=compareLoose$1}),require_compare_build=__commonJSMin((exports,module)=>{let SemVer$8=require_semver$1(),compareBuild$3=(a,b,loose)=>{let versionA=new SemVer$8(a,loose),versionB=new SemVer$8(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};module.exports=compareBuild$3}),require_sort=__commonJSMin((exports,module)=>{let compareBuild$2=require_compare_build(),sort$1=(list,loose)=>list.sort((a,b)=>compareBuild$2(a,b,loose));module.exports=sort$1}),require_rsort=__commonJSMin((exports,module)=>{let compareBuild$1=require_compare_build(),rsort$1=(list,loose)=>list.sort((a,b)=>compareBuild$1(b,a,loose));module.exports=rsort$1}),require_gt=__commonJSMin((exports,module)=>{let compare$8=require_compare(),gt$4=(a,b,loose)=>compare$8(a,b,loose)>0;module.exports=gt$4}),require_lt=__commonJSMin((exports,module)=>{let compare$7=require_compare(),lt$3=(a,b,loose)=>compare$7(a,b,loose)<0;module.exports=lt$3}),require_eq=__commonJSMin((exports,module)=>{let compare$6=require_compare(),eq$2=(a,b,loose)=>compare$6(a,b,loose)===0;module.exports=eq$2}),require_neq=__commonJSMin((exports,module)=>{let compare$5=require_compare(),neq$2=(a,b,loose)=>compare$5(a,b,loose)!==0;module.exports=neq$2}),require_gte=__commonJSMin((exports,module)=>{let compare$4=require_compare(),gte$3=(a,b,loose)=>compare$4(a,b,loose)>=0;module.exports=gte$3}),require_lte=__commonJSMin((exports,module)=>{let compare$3=require_compare(),lte$3=(a,b,loose)=>compare$3(a,b,loose)<=0;module.exports=lte$3}),require_cmp=__commonJSMin((exports,module)=>{let eq$1=require_eq(),neq$1=require_neq(),gt$3=require_gt(),gte$2=require_gte(),lt$2=require_lt(),lte$2=require_lte(),cmp$2=(a,op,b,loose)=>{switch(op){case`===`:return typeof a==`object`&&(a=a.version),typeof b==`object`&&(b=b.version),a===b;case`!==`:return typeof a==`object`&&(a=a.version),typeof b==`object`&&(b=b.version),a!==b;case``:case`=`:case`==`:return eq$1(a,b,loose);case`!=`:return neq$1(a,b,loose);case`>`:return gt$3(a,b,loose);case`>=`:return gte$2(a,b,loose);case`<`:return lt$2(a,b,loose);case`<=`:return lte$2(a,b,loose);default:throw TypeError(`Invalid operator: ${op}`)}};module.exports=cmp$2}),require_coerce=__commonJSMin((exports,module)=>{let SemVer$7=require_semver$1(),parse$1=require_parse(),{safeRe:re$2,t:t$2}=require_re(),coerce$1=(version$3,options)=>{if(version$3 instanceof SemVer$7)return version$3;if(typeof version$3==`number`&&(version$3=String(version$3)),typeof version$3!=`string`)return null;options||={};let match$2=null;if(!options.rtl)match$2=version$3.match(options.includePrerelease?re$2[t$2.COERCEFULL]:re$2[t$2.COERCE]);else{let coerceRtlRegex=options.includePrerelease?re$2[t$2.COERCERTLFULL]:re$2[t$2.COERCERTL],next;for(;(next=coerceRtlRegex.exec(version$3))&&(!match$2||match$2.index+match$2[0].length!==version$3.length);)(!match$2||next.index+next[0].length!==match$2.index+match$2[0].length)&&(match$2=next),coerceRtlRegex.lastIndex=next.index+next[1].length+next[2].length;coerceRtlRegex.lastIndex=-1}if(match$2===null)return null;let major$2=match$2[2],minor$2=match$2[3]||`0`,patch$3=match$2[4]||`0`,prerelease$2=options.includePrerelease&&match$2[5]?`-${match$2[5]}`:``,build=options.includePrerelease&&match$2[6]?`+${match$2[6]}`:``;return parse$1(`${major$2}.${minor$2}.${patch$3}${prerelease$2}${build}`,options)};module.exports=coerce$1}),require_lrucache=__commonJSMin((exports,module)=>{var LRUCache=class{constructor(){this.max=1e3,this.map=new Map}get(key){let value=this.map.get(key);if(value!==void 0)return this.map.delete(key),this.map.set(key,value),value}delete(key){return this.map.delete(key)}set(key,value){let deleted=this.delete(key);if(!deleted&&value!==void 0){if(this.map.size>=this.max){let firstKey=this.map.keys().next().value;this.delete(firstKey)}this.map.set(key,value)}return this}};module.exports=LRUCache}),require_range=__commonJSMin((exports,module)=>{let SPACE_CHARACTERS=/\s+/g;var Range$11=class Range$11{constructor(range,options){if(options=parseOptions$1(options),range instanceof Range$11)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range$11(range.raw,options);if(range instanceof Comparator$4)return this.raw=range.value,this.set=[[range]],this.formatted=void 0,this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().replace(SPACE_CHARACTERS,` `),this.set=this.raw.split(`||`).map(r=>this.parseRange(r.trim())).filter(c$1=>c$1.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let first=this.set[0];if(this.set=this.set.filter(c$1=>!isNullSet(c$1[0])),this.set.length===0)this.set=[first];else if(this.set.length>1){for(let c$1 of this.set)if(c$1.length===1&&isAny(c$1[0])){this.set=[c$1];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let i$4=0;i$4<this.set.length;i$4++){i$4>0&&(this.formatted+=`||`);let comps=this.set[i$4];for(let k=0;k<comps.length;k++)k>0&&(this.formatted+=` `),this.formatted+=comps[k].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(range){let memoOpts=(this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE),memoKey=memoOpts+`:`+range,cached=cache.get(memoKey);if(cached)return cached;let loose=this.options.loose,hr=loose?re$1[t$1.HYPHENRANGELOOSE]:re$1[t$1.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug$1(`hyphen replace`,range),range=range.replace(re$1[t$1.COMPARATORTRIM],comparatorTrimReplace),debug$1(`comparator trim`,range),range=range.replace(re$1[t$1.TILDETRIM],tildeTrimReplace),debug$1(`tilde trim`,range),range=range.replace(re$1[t$1.CARETTRIM],caretTrimReplace),debug$1(`caret trim`,range);let rangeList=range.split(` `).map(comp=>parseComparator(comp,this.options)).join(` `).split(/\s+/).map(comp=>replaceGTE0(comp,this.options));loose&&(rangeList=rangeList.filter(comp=>(debug$1(`loose invalid filter`,comp,this.options),!!comp.match(re$1[t$1.COMPARATORLOOSE])))),debug$1(`range list`,rangeList);let rangeMap=new Map,comparators=rangeList.map(comp=>new Comparator$4(comp,this.options));for(let comp of comparators){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has(``)&&rangeMap.delete(``);let result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof Range$11))throw TypeError(`a Range is required`);return this.set.some(thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options)))))}test(version$3){if(!version$3)return!1;if(typeof version$3==`string`)try{version$3=new SemVer$6(version$3,this.options)}catch{return!1}for(let i$4=0;i$4<this.set.length;i$4++)if(testSet(this.set[i$4],version$3,this.options))return!0;return!1}};module.exports=Range$11;let LRU=require_lrucache(),cache=new LRU,parseOptions$1=require_parse_options(),Comparator$4=require_comparator(),debug$1=require_debug(),SemVer$6=require_semver$1(),{safeRe:re$1,t:t$1,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=require_re(),{FLAG_INCLUDE_PRERELEASE,FLAG_LOOSE}=require_constants(),isNullSet=c$1=>c$1.value===`<0.0.0-0`,isAny=c$1=>c$1.value===``,isSatisfiable=(comparators,options)=>{let result=!0,remainingComparators=comparators.slice(),testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options)),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(comp=comp.replace(re$1[t$1.BUILD],``),debug$1(`comp`,comp,options),comp=replaceCarets(comp,options),debug$1(`caret`,comp),comp=replaceTildes(comp,options),debug$1(`tildes`,comp),comp=replaceXRanges(comp,options),debug$1(`xrange`,comp),comp=replaceStars(comp,options),debug$1(`stars`,comp),comp),isX=id=>!id||id.toLowerCase()===`x`||id===`*`,replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map(c$1=>replaceTilde(c$1,options)).join(` `),replaceTilde=(comp,options)=>{let r=options.loose?re$1[t$1.TILDELOOSE]:re$1[t$1.TILDE];return comp.replace(r,(_,M$1,m,p,pr)=>{debug$1(`tilde`,comp,_,M$1,m,p,pr);let ret;return isX(M$1)?ret=``:isX(m)?ret=`>=${M$1}.0.0 <${+M$1+1}.0.0-0`:isX(p)?ret=`>=${M$1}.${m}.0 <${M$1}.${+m+1}.0-0`:pr?(debug$1(`replaceTilde pr`,pr),ret=`>=${M$1}.${m}.${p}-${pr} <${M$1}.${+m+1}.0-0`):ret=`>=${M$1}.${m}.${p} <${M$1}.${+m+1}.0-0`,debug$1(`tilde return`,ret),ret})},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map(c$1=>replaceCaret(c$1,options)).join(` `),replaceCaret=(comp,options)=>{debug$1(`caret`,comp,options);let r=options.loose?re$1[t$1.CARETLOOSE]:re$1[t$1.CARET],z$1=options.includePrerelease?`-0`:``;return comp.replace(r,(_,M$1,m,p,pr)=>{debug$1(`caret`,comp,_,M$1,m,p,pr);let ret;return isX(M$1)?ret=``:isX(m)?ret=`>=${M$1}.0.0${z$1} <${+M$1+1}.0.0-0`:isX(p)?ret=M$1===`0`?`>=${M$1}.${m}.0${z$1} <${M$1}.${+m+1}.0-0`:`>=${M$1}.${m}.0${z$1} <${+M$1+1}.0.0-0`:pr?(debug$1(`replaceCaret pr`,pr),ret=M$1===`0`?m===`0`?`>=${M$1}.${m}.${p}-${pr} <${M$1}.${m}.${+p+1}-0`:`>=${M$1}.${m}.${p}-${pr} <${M$1}.${+m+1}.0-0`:`>=${M$1}.${m}.${p}-${pr} <${+M$1+1}.0.0-0`):(debug$1(`no pr`),ret=M$1===`0`?m===`0`?`>=${M$1}.${m}.${p}${z$1} <${M$1}.${m}.${+p+1}-0`:`>=${M$1}.${m}.${p}${z$1} <${M$1}.${+m+1}.0-0`:`>=${M$1}.${m}.${p} <${+M$1+1}.0.0-0`),debug$1(`caret return`,ret),ret})},replaceXRanges=(comp,options)=>(debug$1(`replaceXRanges`,comp,options),comp.split(/\s+/).map(c$1=>replaceXRange(c$1,options)).join(` `)),replaceXRange=(comp,options)=>{comp=comp.trim();let r=options.loose?re$1[t$1.XRANGELOOSE]:re$1[t$1.XRANGE];return comp.replace(r,(ret,gtlt,M$1,m,p,pr)=>{debug$1(`xRange`,comp,ret,gtlt,M$1,m,p,pr);let xM=isX(M$1),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return gtlt===`=`&&anyX&&(gtlt=``),pr=options.includePrerelease?`-0`:``,xM?ret=gtlt===`>`||gtlt===`<`?`<0.0.0-0`:`*`:gtlt&&anyX?(xm&&(m=0),p=0,gtlt===`>`?(gtlt=`>=`,xm?(M$1=+M$1+1,m=0,p=0):(m=+m+1,p=0)):gtlt===`<=`&&(gtlt=`<`,xm?M$1=+M$1+1:m=+m+1),gtlt===`<`&&(pr=`-0`),ret=`${gtlt+M$1}.${m}.${p}${pr}`):xm?ret=`>=${M$1}.0.0${pr} <${+M$1+1}.0.0-0`:xp&&(ret=`>=${M$1}.${m}.0${pr} <${M$1}.${+m+1}.0-0`),debug$1(`xRange return`,ret),ret})},replaceStars=(comp,options)=>(debug$1(`replaceStars`,comp,options),comp.trim().replace(re$1[t$1.STAR],``)),replaceGTE0=(comp,options)=>(debug$1(`replaceGTE0`,comp,options),comp.trim().replace(re$1[options.includePrerelease?t$1.GTE0PRE:t$1.GTE0],``)),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr)=>(from=isX(fM)?``:isX(fm)?`>=${fM}.0.0${incPr?`-0`:``}`:isX(fp)?`>=${fM}.${fm}.0${incPr?`-0`:``}`:fpr?`>=${from}`:`>=${from}${incPr?`-0`:``}`,to=isX(tM)?``:isX(tm)?`<${+tM+1}.0.0-0`:isX(tp)?`<${tM}.${+tm+1}.0-0`:tpr?`<=${tM}.${tm}.${tp}-${tpr}`:incPr?`<${tM}.${tm}.${+tp+1}-0`:`<=${to}`,`${from} ${to}`.trim()),testSet=(set,version$3,options)=>{for(let i$4=0;i$4<set.length;i$4++)if(!set[i$4].test(version$3))return!1;if(version$3.prerelease.length&&!options.includePrerelease){for(let i$4=0;i$4<set.length;i$4++)if(debug$1(set[i$4].semver),set[i$4].semver!==Comparator$4.ANY&&set[i$4].semver.prerelease.length>0){let allowed=set[i$4].semver;if(allowed.major===version$3.major&&allowed.minor===version$3.minor&&allowed.patch===version$3.patch)return!0}return!1}return!0}}),require_comparator=__commonJSMin((exports,module)=>{let ANY$2=Symbol(`SemVer ANY`);var Comparator$3=class Comparator$3{static get ANY(){return ANY$2}constructor(comp,options){if(options=parseOptions(options),comp instanceof Comparator$3){if(comp.loose===!!options.loose)return comp;comp=comp.value}comp=comp.trim().split(/\s+/).join(` `),debug(`comparator`,comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY$2?this.value=``:this.value=this.operator+this.semver.version,debug(`comp`,this)}parse(comp){let r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw TypeError(`Invalid comparator: ${comp}`);this.operator=m[1]===void 0?``:m[1],this.operator===`=`&&(this.operator=``),m[2]?this.semver=new SemVer$5(m[2],this.options.loose):this.semver=ANY$2}toString(){return this.value}test(version$3){if(debug(`Comparator.test`,version$3,this.options.loose),this.semver===ANY$2||version$3===ANY$2)return!0;if(typeof version$3==`string`)try{version$3=new SemVer$5(version$3,this.options)}catch{return!1}return cmp$1(version$3,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof Comparator$3))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new Range$10(comp.value,options).test(this.value):comp.operator===``?comp.value===``?!0:new Range$10(this.value,options).test(comp.semver):(options=parseOptions(options),options.includePrerelease&&(this.value===`<0.0.0-0`||comp.value===`<0.0.0-0`)||!options.includePrerelease&&(this.value.startsWith(`<0.0.0`)||comp.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&comp.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&comp.operator.startsWith(`<`)||this.semver.version===comp.semver.version&&this.operator.includes(`=`)&&comp.operator.includes(`=`)||cmp$1(this.semver,`<`,comp.semver,options)&&this.operator.startsWith(`>`)&&comp.operator.startsWith(`<`)||cmp$1(this.semver,`>`,comp.semver,options)&&this.operator.startsWith(`<`)&&comp.operator.startsWith(`>`)))}};module.exports=Comparator$3;let parseOptions=require_parse_options(),{safeRe:re,t}=require_re(),cmp$1=require_cmp(),debug=require_debug(),SemVer$5=require_semver$1(),Range$10=require_range()}),require_satisfies=__commonJSMin((exports,module)=>{let Range$9=require_range(),satisfies$4=(version$3,range,options)=>{try{range=new Range$9(range,options)}catch{return!1}return range.test(version$3)};module.exports=satisfies$4}),require_to_comparators=__commonJSMin((exports,module)=>{let Range$8=require_range(),toComparators$1=(range,options)=>new Range$8(range,options).set.map(comp=>comp.map(c$1=>c$1.value).join(` `).trim().split(` `));module.exports=toComparators$1}),require_max_satisfying=__commonJSMin((exports,module)=>{let SemVer$4=require_semver$1(),Range$7=require_range(),maxSatisfying$1=(versions,range,options)=>{let max$3=null,maxSV=null,rangeObj=null;try{rangeObj=new Range$7(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!max$3||maxSV.compare(v)===-1)&&(max$3=v,maxSV=new SemVer$4(max$3,options))}),max$3};module.exports=maxSatisfying$1}),require_min_satisfying=__commonJSMin((exports,module)=>{let SemVer$3=require_semver$1(),Range$6=require_range(),minSatisfying$1=(versions,range,options)=>{let min$1=null,minSV=null,rangeObj=null;try{rangeObj=new Range$6(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!min$1||minSV.compare(v)===1)&&(min$1=v,minSV=new SemVer$3(min$1,options))}),min$1};module.exports=minSatisfying$1}),require_min_version=__commonJSMin((exports,module)=>{let SemVer$2=require_semver$1(),Range$5=require_range(),gt$2=require_gt(),minVersion$1=(range,loose)=>{range=new Range$5(range,loose);let minver=new SemVer$2(`0.0.0`);if(range.test(minver)||(minver=new SemVer$2(`0.0.0-0`),range.test(minver)))return minver;minver=null;for(let i$4=0;i$4<range.set.length;++i$4){let comparators=range.set[i$4],setMin=null;comparators.forEach(comparator=>{let compver=new SemVer$2(comparator.semver.version);switch(comparator.operator){case`>`:compver.prerelease.length===0?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case``:case`>=`:(!setMin||gt$2(compver,setMin))&&(setMin=compver);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${comparator.operator}`)}}),setMin&&(!minver||gt$2(minver,setMin))&&(minver=setMin)}return minver&&range.test(minver)?minver:null};module.exports=minVersion$1}),require_valid=__commonJSMin((exports,module)=>{let Range$4=require_range(),validRange$1=(range,options)=>{try{return new Range$4(range,options).range||`*`}catch{return null}};module.exports=validRange$1}),require_outside=__commonJSMin((exports,module)=>{let SemVer$1=require_semver$1(),Comparator$2=require_comparator(),{ANY:ANY$1}=Comparator$2,Range$3=require_range(),satisfies$3=require_satisfies(),gt$1=require_gt(),lt$1=require_lt(),lte$1=require_lte(),gte$1=require_gte(),outside$3=(version$3,range,hilo,options)=>{version$3=new SemVer$1(version$3,options),range=new Range$3(range,options);let gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case`>`:gtfn=gt$1,ltefn=lte$1,ltfn=lt$1,comp=`>`,ecomp=`>=`;break;case`<`:gtfn=lt$1,ltefn=gte$1,ltfn=gt$1,comp=`<`,ecomp=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(satisfies$3(version$3,range,options))return!1;for(let i$4=0;i$4<range.set.length;++i$4){let comparators=range.set[i$4],high=null,low=null;if(comparators.forEach(comparator=>{comparator.semver===ANY$1&&(comparator=new Comparator$2(`>=0.0.0`)),high||=comparator,low||=comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&&ltefn(version$3,low.semver)||low.operator===ecomp&&ltfn(version$3,low.semver))return!1}return!0};module.exports=outside$3}),require_gtr=__commonJSMin((exports,module)=>{let outside$2=require_outside(),gtr$1=(version$3,range,options)=>outside$2(version$3,range,`>`,options);module.exports=gtr$1}),require_ltr=__commonJSMin((exports,module)=>{let outside$1=require_outside(),ltr$1=(version$3,range,options)=>outside$1(version$3,range,`<`,options);module.exports=ltr$1}),require_intersects=__commonJSMin((exports,module)=>{let Range$2=require_range(),intersects$1=(r1,r2,options)=>(r1=new Range$2(r1,options),r2=new Range$2(r2,options),r1.intersects(r2,options));module.exports=intersects$1}),require_simplify=__commonJSMin((exports,module)=>{let satisfies$2=require_satisfies(),compare$2=require_compare();module.exports=(versions,range,options)=>{let set=[],first=null,prev=null,v=versions.sort((a,b)=>compare$2(a,b,options));for(let version$3 of v){let included=satisfies$2(version$3,range,options);included?(prev=version$3,first||=version$3):(prev&&set.push([first,prev]),prev=null,first=null)}first&&set.push([first,null]);let ranges=[];for(let[min$1,max$3]of set)min$1===max$3?ranges.push(min$1):!max$3&&min$1===v[0]?ranges.push(`*`):max$3?min$1===v[0]?ranges.push(`<=${max$3}`):ranges.push(`${min$1} - ${max$3}`):ranges.push(`>=${min$1}`);let simplified=ranges.join(` || `),original=typeof range.raw==`string`?range.raw:String(range);return simplified.length<original.length?simplified:range}}),require_subset=__commonJSMin((exports,module)=>{let Range$1=require_range(),Comparator$1=require_comparator(),{ANY}=Comparator$1,satisfies$1=require_satisfies(),compare$1=require_compare(),subset$1=(sub,dom,options={})=>{if(sub===dom)return!0;sub=new Range$1(sub,options),dom=new Range$1(dom,options);let sawNonNull=!1;OUTER:for(let simpleSub of sub.set){for(let simpleDom of dom.set){let isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull||=isSub!==null,isSub)continue OUTER}if(sawNonNull)return!1}return!0},minimumVersionWithPreRelease=[new Comparator$1(`>=0.0.0-0`)],minimumVersion=[new Comparator$1(`>=0.0.0`)],simpleSubset=(sub,dom,options)=>{if(sub===dom)return!0;if(sub.length===1&&sub[0].semver===ANY){if(dom.length===1&&dom[0].semver===ANY)return!0;sub=options.includePrerelease?minimumVersionWithPreRelease:minimumVersion}if(dom.length===1&&dom[0].semver===ANY){if(options.includePrerelease)return!0;dom=minimumVersion}let eqSet=new Set,gt$5,lt$4;for(let c$1 of sub)c$1.operator===`>`||c$1.operator===`>=`?gt$5=higherGT(gt$5,c$1,options):c$1.operator===`<`||c$1.operator===`<=`?lt$4=lowerLT(lt$4,c$1,options):eqSet.add(c$1.semver);if(eqSet.size>1)return null;let gtltComp;if(gt$5&&lt$4&&(gtltComp=compare$1(gt$5.semver,lt$4.semver,options),gtltComp>0||gtltComp===0&&(gt$5.operator!==`>=`||lt$4.operator!==`<=`)))return null;for(let eq$3 of eqSet){if(gt$5&&!satisfies$1(eq$3,String(gt$5),options)||lt$4&&!satisfies$1(eq$3,String(lt$4),options))return null;for(let c$1 of dom)if(!satisfies$1(eq$3,String(c$1),options))return!1;return!0}let higher,lower,hasDomLT,hasDomGT,needDomLTPre=lt$4&&!options.includePrerelease&&lt$4.semver.prerelease.length?lt$4.semver:!1,needDomGTPre=gt$5&&!options.includePrerelease&&gt$5.semver.prerelease.length?gt$5.semver:!1;needDomLTPre&&needDomLTPre.prerelease.length===1&&lt$4.operator===`<`&&needDomLTPre.prerelease[0]===0&&(needDomLTPre=!1);for(let c$1 of dom){if(hasDomGT=hasDomGT||c$1.operator===`>`||c$1.operator===`>=`,hasDomLT=hasDomLT||c$1.operator===`<`||c$1.operator===`<=`,gt$5){if(needDomGTPre&&c$1.semver.prerelease&&c$1.semver.prerelease.length&&c$1.semver.major===needDomGTPre.major&&c$1.semver.minor===needDomGTPre.minor&&c$1.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),c$1.operator===`>`||c$1.operator===`>=`){if(higher=higherGT(gt$5,c$1,options),higher===c$1&&higher!==gt$5)return!1}else if(gt$5.operator===`>=`&&!satisfies$1(gt$5.semver,String(c$1),options))return!1}if(lt$4){if(needDomLTPre&&c$1.semver.prerelease&&c$1.semver.prerelease.length&&c$1.semver.major===needDomLTPre.major&&c$1.semver.minor===needDomLTPre.minor&&c$1.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),c$1.operator===`<`||c$1.operator===`<=`){if(lower=lowerLT(lt$4,c$1,options),lower===c$1&&lower!==lt$4)return!1}else if(lt$4.operator===`<=`&&!satisfies$1(lt$4.semver,String(c$1),options))return!1}if(!c$1.operator&&(lt$4||gt$5)&&gtltComp!==0)return!1}return!(gt$5&&hasDomLT&&!lt$4&&gtltComp!==0||lt$4&&hasDomGT&&!gt$5&&gtltComp!==0||needDomGTPre||needDomLTPre)},higherGT=(a,b,options)=>{if(!a)return b;let comp=compare$1(a.semver,b.semver,options);return comp>0?a:comp<0||b.operator===`>`&&a.operator===`>=`?b:a},lowerLT=(a,b,options)=>{if(!a)return b;let comp=compare$1(a.semver,b.semver,options);return comp<0?a:comp>0||b.operator===`<`&&a.operator===`<=`?b:a};module.exports=subset$1}),require_semver=__commonJSMin((exports,module)=>{let internalRe=require_re(),constants=require_constants(),SemVer=require_semver$1(),identifiers=require_identifiers(),parse=require_parse(),valid=require_valid$1(),clean=require_clean(),inc=require_inc(),diff=require_diff(),major=require_major(),minor=require_minor(),patch$1=require_patch(),prerelease=require_prerelease(),compare=require_compare(),rcompare=require_rcompare(),compareLoose=require_compare_loose(),compareBuild=require_compare_build(),sort=require_sort(),rsort=require_rsort(),gt=require_gt(),lt=require_lt(),eq=require_eq(),neq=require_neq(),gte=require_gte(),lte=require_lte(),cmp=require_cmp(),coerce=require_coerce(),Comparator=require_comparator(),Range=require_range(),satisfies=require_satisfies(),toComparators=require_to_comparators(),maxSatisfying=require_max_satisfying(),minSatisfying=require_min_satisfying(),minVersion=require_min_version(),validRange=require_valid(),outside=require_outside(),gtr=require_gtr(),ltr=require_ltr(),intersects=require_intersects(),simplifyRange=require_simplify(),subset=require_subset();module.exports={parse,valid,clean,inc,diff,major,minor,patch:patch$1,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers}}),u8=Uint8Array,u16=Uint16Array,i32=Int32Array,fleb=new u8([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fdeb=new u8([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),clim=new u8([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function(eb,start){for(var b=new u16(31),i$4=0;i$4<31;++i$4)b[i$4]=start+=1<<eb[i$4-1];for(var r=new i32(b[30]),i$4=1;i$4<30;++i$4)for(var j$1=b[i$4];j$1<b[i$4+1];++j$1)r[j$1]=j$1-b[i$4]<<5|i$4;return{b,r}},_a=freb(fleb,2),fl=_a.b,revfl=_a.r;fl[28]=258,revfl[258]=28;for(var _b=freb(fdeb,0),fd=_b.b,revfd=_b.r,rev=new u16(32768),i=0;i<32768;++i){var x=(i&43690)>>1|(i&21845)<<1;x=(x&52428)>>2|(x&13107)<<2,x=(x&61680)>>4|(x&3855)<<4,rev[i]=((x&65280)>>8|(x&255)<<8)>>1}for(var hMap=function(cd,mb,r){for(var s$2=cd.length,i$4=0,l$2=new u16(mb);i$4<s$2;++i$4)cd[i$4]&&++l$2[cd[i$4]-1];var le$1=new u16(mb);for(i$4=1;i$4<mb;++i$4)le$1[i$4]=le$1[i$4-1]+l$2[i$4-1]<<1;var co;if(r){co=new u16(1<<mb);var rvb=15-mb;for(i$4=0;i$4<s$2;++i$4)if(cd[i$4])for(var sv=i$4<<4|cd[i$4],r_1=mb-cd[i$4],v=le$1[cd[i$4]-1]++<<r_1,m=v|(1<<r_1)-1;v<=m;++v)co[rev[v]>>rvb]=sv}else for(co=new u16(s$2),i$4=0;i$4<s$2;++i$4)cd[i$4]&&(co[i$4]=rev[le$1[cd[i$4]-1]++]>>15-cd[i$4]);return co},flt=new u8(288),i=0;i<144;++i)flt[i]=8;for(var i=144;i<256;++i)flt[i]=9;for(var i=256;i<280;++i)flt[i]=7;for(var i=280;i<288;++i)flt[i]=8;for(var fdt=new u8(32),i=0;i<32;++i)fdt[i]=5;var flm=hMap(flt,9,0),flrm=hMap(flt,9,1),fdm=hMap(fdt,5,0),fdrm=hMap(fdt,5,1),max=function(a){for(var m=a[0],i$4=1;i$4<a.length;++i$4)a[i$4]>m&&(m=a[i$4]);return m},bits=function(d,p,m){var o=p/8|0;return(d[o]|d[o+1]<<8)>>(p&7)&m},bits16=function(d,p){var o=p/8|0;return(d[o]|d[o+1]<<8|d[o+2]<<16)>>(p&7)},shft=function(p){return(p+7)/8|0},slc=function(v,s$2,e){return(s$2==null||s$2<0)&&(s$2=0),(e==null||e>v.length)&&(e=v.length),new u8(v.subarray(s$2,e))},ec=[`unexpected EOF`,`invalid block type`,`invalid length/literal`,`invalid distance`,`stream finished`,`no stream handler`,,`no callback`,`invalid UTF-8 data`,`extra field too long`,`date not in range 1980-2099`,`filename too long`,`stream finishing`,`invalid zip data`],err=function(ind,msg,nt){var e=Error(msg||ec[ind]);if(e.code=ind,Error.captureStackTrace&&Error.captureStackTrace(e,err),!nt)throw e;return e},inflt=function(dat,st,buf,dict){var sl=dat.length,dl=dict?dict.length:0;if(!sl||st.f&&!st.l)return buf||new u8(0);var noBuf=!buf,resize=noBuf||st.i!=2,noSt=st.i;noBuf&&(buf=new u8(sl*3));var cbuf=function(l$3){var bl=buf.length;if(l$3>bl){var nbuf=new u8(Math.max(bl*2,l$3));nbuf.set(buf),buf=nbuf}},final=st.f||0,pos=st.p||0,bt=st.b||0,lm=st.l,dm=st.d,lbt=st.m,dbt=st.n,tbts=sl*8;do{if(!lm){final=bits(dat,pos,1);var type=bits(dat,pos+1,3);if(pos+=3,type)if(type==1)lm=flrm,dm=fdrm,lbt=9,dbt=5;else if(type==2){var hLit=bits(dat,pos,31)+257,hcLen=bits(dat,pos+10,15)+4,tl=hLit+bits(dat,pos+5,31)+1;pos+=14;for(var ldt=new u8(tl),clt=new u8(19),i$4=0;i$4<hcLen;++i$4)clt[clim[i$4]]=bits(dat,pos+i$4*3,7);pos+=hcLen*3;for(var clb=max(clt),clbmsk=(1<<clb)-1,clm=hMap(clt,clb,1),i$4=0;i$4<tl;){var r=clm[bits(dat,pos,clbmsk)];pos+=r&15;var s$2=r>>4;if(s$2<16)ldt[i$4++]=s$2;else{var c$1=0,n$2=0;for(s$2==16?(n$2=3+bits(dat,pos,3),pos+=2,c$1=ldt[i$4-1]):s$2==17?(n$2=3+bits(dat,pos,7),pos+=3):s$2==18&&(n$2=11+bits(dat,pos,127),pos+=7);n$2--;)ldt[i$4++]=c$1}}var lt$4=ldt.subarray(0,hLit),dt=ldt.subarray(hLit);lbt=max(lt$4),dbt=max(dt),lm=hMap(lt$4,lbt,1),dm=hMap(dt,dbt,1)}else err(1);else{var s$2=shft(pos)+4,l$2=dat[s$2-4]|dat[s$2-3]<<8,t$5=s$2+l$2;if(t$5>sl){noSt&&err(0);break}resize&&cbuf(bt+l$2),buf.set(dat.subarray(s$2,t$5),bt),st.b=bt+=l$2,st.p=pos=t$5*8,st.f=final;continue}if(pos>tbts){noSt&&err(0);break}}resize&&cbuf(bt+131072);for(var lms=(1<<lbt)-1,dms=(1<<dbt)-1,lpos=pos;;lpos=pos){var c$1=lm[bits16(dat,pos)&lms],sym=c$1>>4;if(pos+=c$1&15,pos>tbts){noSt&&err(0);break}if(c$1||err(2),sym<256)buf[bt++]=sym;else if(sym==256){lpos=pos,lm=null;break}else{var add=sym-254;if(sym>264){var i$4=sym-257,b=fleb[i$4];add=bits(dat,pos,(1<<b)-1)+fl[i$4],pos+=b}var d=dm[bits16(dat,pos)&dms],dsym=d>>4;d||err(3),pos+=d&15;var dt=fd[dsym];if(dsym>3){var b=fdeb[dsym];dt+=bits16(dat,pos)&(1<<b)-1,pos+=b}if(pos>tbts){noSt&&err(0);break}resize&&cbuf(bt+131072);var end=bt+add;if(bt<dt){var shift=dl-dt,dend=Math.min(dt,end);for(shift+bt<0&&err(3);bt<dend;++bt)buf[bt]=dict[shift+bt]}for(;bt<end;++bt)buf[bt]=buf[bt-dt]}}st.l=lm,st.p=lpos,st.b=bt,st.f=final,lm&&(final=1,st.m=lbt,st.d=dm,st.n=dbt)}while(!final);return bt!=buf.length&&noBuf?slc(buf,0,bt):buf.subarray(0,bt)},wbits=function(d,p,v){v<<=p&7;var o=p/8|0;d[o]|=v,d[o+1]|=v>>8},wbits16=function(d,p,v){v<<=p&7;var o=p/8|0;d[o]|=v,d[o+1]|=v>>8,d[o+2]|=v>>16},hTree=function(d,mb){for(var t$5=[],i$4=0;i$4<d.length;++i$4)d[i$4]&&t$5.push({s:i$4,f:d[i$4]});var s$2=t$5.length,t2=t$5.slice();if(!s$2)return{t:et,l:0};if(s$2==1){var v=new u8(t$5[0].s+1);return v[t$5[0].s]=1,{t:v,l:1}}t$5.sort(function(a,b){return a.f-b.f}),t$5.push({s:-1,f:25001});var l$2=t$5[0],r=t$5[1],i0=0,i1=1,i2=2;for(t$5[0]={s:-1,f:l$2.f+r.f,l:l$2,r};i1!=s$2-1;)l$2=t$5[t$5[i0].f<t$5[i2].f?i0++:i2++],r=t$5[i0!=i1&&t$5[i0].f<t$5[i2].f?i0++:i2++],t$5[i1++]={s:-1,f:l$2.f+r.f,l:l$2,r};for(var maxSym=t2[0].s,i$4=1;i$4<s$2;++i$4)t2[i$4].s>maxSym&&(maxSym=t2[i$4].s);var tr=new u16(maxSym+1),mbt=ln(t$5[i1-1],tr,0);if(mbt>mb){var i$4=0,dt=0,lft=mbt-mb,cst=1<<lft;for(t2.sort(function(a,b){return tr[b.s]-tr[a.s]||a.f-b.f});i$4<s$2;++i$4){var i2_1=t2[i$4].s;if(tr[i2_1]>mb)dt+=cst-(1<<mbt-tr[i2_1]),tr[i2_1]=mb;else break}for(dt>>=lft;dt>0;){var i2_2=t2[i$4].s;tr[i2_2]<mb?dt-=1<<mb-tr[i2_2]++-1:++i$4}for(;i$4>=0&&dt;--i$4){var i2_3=t2[i$4].s;tr[i2_3]==mb&&(--tr[i2_3],++dt)}mbt=mb}return{t:new u8(tr),l:mbt}},ln=function(n$2,l$2,d){return n$2.s==-1?Math.max(ln(n$2.l,l$2,d+1),ln(n$2.r,l$2,d+1)):l$2[n$2.s]=d},lc=function(c$1){for(var s$2=c$1.length;s$2&&!c$1[--s$2];);for(var cl=new u16(++s$2),cli=0,cln=c$1[0],cls=1,w=function(v){cl[cli++]=v},i$4=1;i$4<=s$2;++i$4)if(c$1[i$4]==cln&&i$4!=s$2)++cls;else{if(!cln&&cls>2){for(;cls>138;cls-=138)w(32754);cls>2&&(w(cls>10?cls-11<<5|28690:cls-3<<5|12305),cls=0)}else if(cls>3){for(w(cln),--cls;cls>6;cls-=6)w(8304);cls>2&&(w(cls-3<<5|8208),cls=0)}for(;cls--;)w(cln);cls=1,cln=c$1[i$4]}return{c:cl.subarray(0,cli),n:s$2}},clen=function(cf,cl){for(var l$2=0,i$4=0;i$4<cl.length;++i$4)l$2+=cf[i$4]*cl[i$4];return l$2},wfblk=function(out,pos,dat){var s$2=dat.length,o=shft(pos+2);out[o]=s$2&255,out[o+1]=s$2>>8,out[o+2]=out[o]^255,out[o+3]=out[o+1]^255;for(var i$4=0;i$4<s$2;++i$4)out[o+i$4+4]=dat[i$4];return(o+4+s$2)*8},wblk=function(dat,out,final,syms,lf,df,eb,li,bs,bl,p){wbits(out,p++,final),++lf[256];for(var _a$1=hTree(lf,15),dlt=_a$1.t,mlb=_a$1.l,_b$1=hTree(df,15),ddt=_b$1.t,mdb=_b$1.l,_c=lc(dlt),lclt=_c.c,nlc=_c.n,_d=lc(ddt),lcdt=_d.c,ndc=_d.n,lcfreq=new u16(19),i$4=0;i$4<lclt.length;++i$4)++lcfreq[lclt[i$4]&31];for(var i$4=0;i$4<lcdt.length;++i$4)++lcfreq[lcdt[i$4]&31];for(var _e=hTree(lcfreq,7),lct=_e.t,mlcb=_e.l,nlcc=19;nlcc>4&&!lct[clim[nlcc-1]];--nlcc);var flen=bl+5<<3,ftlen=clen(lf,flt)+clen(df,fdt)+eb,dtlen=clen(lf,dlt)+clen(df,ddt)+eb+14+3*nlcc+clen(lcfreq,lct)+2*lcfreq[16]+3*lcfreq[17]+7*lcfreq[18];if(bs>=0&&flen<=ftlen&&flen<=dtlen)return wfblk(out,p,dat.subarray(bs,bs+bl));var lm,ll,dm,dl;if(wbits(out,p,1+(dtlen<ftlen)),p+=2,dtlen<ftlen){lm=hMap(dlt,mlb,0),ll=dlt,dm=hMap(ddt,mdb,0),dl=ddt;var llm=hMap(lct,mlcb,0);wbits(out,p,nlc-257),wbits(out,p+5,ndc-1),wbits(out,p+10,nlcc-4),p+=14;for(var i$4=0;i$4<nlcc;++i$4)wbits(out,p+3*i$4,lct[clim[i$4]]);p+=3*nlcc;for(var lcts=[lclt,lcdt],it=0;it<2;++it)for(var clct=lcts[it],i$4=0;i$4<clct.length;++i$4){var len$2=clct[i$4]&31;wbits(out,p,llm[len$2]),p+=lct[len$2],len$2>15&&(wbits(out,p,clct[i$4]>>5&127),p+=clct[i$4]>>12)}}else lm=flm,ll=flt,dm=fdm,dl=fdt;for(var i$4=0;i$4<li;++i$4){var sym=syms[i$4];if(sym>255){var len$2=sym>>18&31;wbits16(out,p,lm[len$2+257]),p+=ll[len$2+257],len$2>7&&(wbits(out,p,sym>>23&31),p+=fleb[len$2]);var dst=sym&31;wbits16(out,p,dm[dst]),p+=dl[dst],dst>3&&(wbits16(out,p,sym>>5&8191),p+=fdeb[dst])}else wbits16(out,p,lm[sym]),p+=ll[sym]}return wbits16(out,p,lm[256]),p+ll[256]},deo=new i32([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),et=new u8(0),dflt=function(dat,lvl,plvl,pre,post,st){var s$2=st.z||dat.length,o=new u8(pre+s$2+5*(1+Math.ceil(s$2/7e3))+post),w=o.subarray(pre,o.length-post),lst=st.l,pos=(st.r||0)&7;if(lvl){pos&&(w[0]=st.r>>3);for(var opt=deo[lvl-1],n$2=opt>>13,c$1=opt&8191,msk_1=(1<<plvl)-1,prev=st.p||new u16(32768),head=st.h||new u16(msk_1+1),bs1_1=Math.ceil(plvl/3),bs2_1=2*bs1_1,hsh=function(i$5){return(dat[i$5]^dat[i$5+1]<<bs1_1^dat[i$5+2]<<bs2_1)&msk_1},syms=new i32(25e3),lf=new u16(288),df=new u16(32),lc_1=0,eb=0,i$4=st.i||0,li=0,wi=st.w||0,bs=0;i$4+2<s$2;++i$4){var hv=hsh(i$4),imod=i$4&32767,pimod=head[hv];if(prev[imod]=pimod,head[hv]=imod,wi<=i$4){var rem=s$2-i$4;if((lc_1>7e3||li>24576)&&(rem>423||!lst)){pos=wblk(dat,w,0,syms,lf,df,eb,li,bs,i$4-bs,pos),li=lc_1=eb=0,bs=i$4;for(var j$1=0;j$1<286;++j$1)lf[j$1]=0;for(var j$1=0;j$1<30;++j$1)df[j$1]=0}var l$2=2,d=0,ch_1=c$1,dif=imod-pimod&32767;if(rem>2&&hv==hsh(i$4-dif))for(var maxn=Math.min(n$2,rem)-1,maxd=Math.min(32767,i$4),ml=Math.min(258,rem);dif<=maxd&&--ch_1&&imod!=pimod;){if(dat[i$4+l$2]==dat[i$4+l$2-dif]){for(var nl=0;nl<ml&&dat[i$4+nl]==dat[i$4+nl-dif];++nl);if(nl>l$2){if(l$2=nl,d=dif,nl>maxn)break;for(var mmd=Math.min(dif,nl-2),md=0,j$1=0;j$1<mmd;++j$1){var ti=i$4-dif+j$1&32767,pti=prev[ti],cd=ti-pti&32767;cd>md&&(md=cd,pimod=ti)}}}imod=pimod,pimod=prev[imod],dif+=imod-pimod&32767}if(d){syms[li++]=268435456|revfl[l$2]<<18|revfd[d];var lin=revfl[l$2]&31,din=revfd[d]&31;eb+=fleb[lin]+fdeb[din],++lf[257+lin],++df[din],wi=i$4+l$2,++lc_1}else syms[li++]=dat[i$4],++lf[dat[i$4]]}}for(i$4=Math.max(i$4,wi);i$4<s$2;++i$4)syms[li++]=dat[i$4],++lf[dat[i$4]];pos=wblk(dat,w,lst,syms,lf,df,eb,li,bs,i$4-bs,pos),lst||(st.r=pos&7|w[pos/8|0]<<3,pos-=7,st.h=head,st.p=prev,st.i=i$4,st.w=wi)}else{for(var i$4=st.w||0;i$4<s$2+lst;i$4+=65535){var e=i$4+65535;e>=s$2&&(w[pos/8|0]=lst,e=s$2),pos=wfblk(w,pos+1,dat.subarray(i$4,e))}st.i=s$2}return slc(o,0,pre+shft(pos)+post)},adler=function(){var a=1,b=0;return{p:function(d){for(var n$2=a,m=b,l$2=d.length|0,i$4=0;i$4!=l$2;){for(var e=Math.min(i$4+2655,l$2);i$4<e;++i$4)m+=n$2+=d[i$4];n$2=(n$2&65535)+15*(n$2>>16),m=(m&65535)+15*(m>>16)}a=n$2,b=m},d:function(){return a%=65521,b%=65521,(a&255)<<24|(a&65280)<<8|(b&255)<<8|b>>8}}},dopt=function(dat,opt,pre,post,st){if(!st&&(st={l:1},opt.dictionary)){var dict=opt.dictionary.subarray(-32768),newDat=new u8(dict.length+dat.length);newDat.set(dict),newDat.set(dat,dict.length),dat=newDat,st.w=dict.length}return dflt(dat,opt.level==null?6:opt.level,opt.mem==null?st.l?Math.ceil(Math.max(8,Math.min(13,Math.log(dat.length)))*1.5):20:12+opt.mem,pre,post,st)},wbytes=function(d,b,v){for(;v;++b)d[b]=v,v>>>=8},zlh=function(c$1,o){var lv=o.level,fl$1=lv==0?0:lv<6?1:lv==9?3:2;if(c$1[0]=120,c$1[1]=fl$1<<6|(o.dictionary&&32),c$1[1]|=31-(c$1[0]<<8|c$1[1])%31,o.dictionary){var h=adler();h.p(o.dictionary),wbytes(c$1,2,h.d())}},zls=function(d,dict){return((d[0]&15)!=8||d[0]>>4>7||(d[0]<<8|d[1])%31)&&err(6,`invalid zlib data`),(d[1]>>5&1)==+!dict&&err(6,`invalid zlib data: `+(d[1]&32?`need`:`unexpected`)+` dictionary`),(d[1]>>3&4)+2};function zlibSync(data,opts){opts||={};var a=adler();a.p(data);var d=dopt(data,opts,opts.dictionary?6:2,4);return zlh(d,opts),wbytes(d,d.length-4,a.d()),d}function unzlibSync(data,opts){return inflt(data.subarray(zls(data,opts&&opts.dictionary),-4),{i:2},opts&&opts.out,opts&&opts.dictionary)}var te=typeof TextEncoder<`u`&&new TextEncoder,td=typeof TextDecoder<`u`&&new TextDecoder,tds=0;try{td.decode(et,{stream:!0}),tds=1}catch{}var dutf8=function(d){for(var r=``,i$4=0;;){var c$1=d[i$4++],eb=(c$1>127)+(c$1>223)+(c$1>239);if(i$4+eb>d.length)return{s:r,r:slc(d,i$4-1)};eb?eb==3?(c$1=((c$1&15)<<18|(d[i$4++]&63)<<12|(d[i$4++]&63)<<6|d[i$4++]&63)-65536,r+=String.fromCharCode(55296|c$1>>10,56320|c$1&1023)):eb&1?r+=String.fromCharCode((c$1&31)<<6|d[i$4++]&63):r+=String.fromCharCode((c$1&15)<<12|(d[i$4++]&63)<<6|d[i$4++]&63):r+=String.fromCharCode(c$1)}};function strToU8(str,latin1){if(latin1){for(var ar_1=new u8(str.length),i$4=0;i$4<str.length;++i$4)ar_1[i$4]=str.charCodeAt(i$4);return ar_1}if(te)return te.encode(str);for(var l$2=str.length,ar=new u8(str.length+(str.length>>1)),ai=0,w=function(v){ar[ai++]=v},i$4=0;i$4<l$2;++i$4){if(ai+5>ar.length){var n$2=new u8(ai+8+(l$2-i$4<<1));n$2.set(ar),ar=n$2}var c$1=str.charCodeAt(i$4);c$1<128||latin1?w(c$1):c$1<2048?(w(192|c$1>>6),w(128|c$1&63)):c$1>55295&&c$1<57344?(c$1=65536+(c$1&1047552)|str.charCodeAt(++i$4)&1023,w(240|c$1>>18),w(128|c$1>>12&63),w(128|c$1>>6&63),w(128|c$1&63)):(w(224|c$1>>12),w(128|c$1>>6&63),w(128|c$1&63))}return slc(ar,0,ai)}function strFromU8(dat,latin1){if(latin1){for(var r=``,i$4=0;i$4<dat.length;i$4+=16384)r+=String.fromCharCode.apply(null,dat.subarray(i$4,i$4+16384));return r}else if(td)return td.decode(dat);else{var _a$1=dutf8(dat),s$2=_a$1.s,r=_a$1.r;return r.length&&err(8),s$2}}var import_semver=__toESM(require_semver());const utoa=data=>{let buffer$2=strToU8(data),zipped=zlibSync(buffer$2,{level:9}),binary=strFromU8(zipped,!0);return btoa(binary)},atou=base64=>{let binary=atob(base64);if(binary.startsWith(`xÚ`)){let buffer$2=strToU8(binary,!0),unzipped=unzlibSync(buffer$2);return strFromU8(unzipped)}return decodeURIComponent(escape(binary))},encode=schema=>{let description$1=schema.describe();for(let key in description$1.keys){if(description$1.keys[key]===void 0||description$1.keys[key].rules===void 0)continue;description$1.keys[key].rules=description$1.keys[key].rules.map(rule=>{for(let argKey in rule.args){let value=rule.args[argKey];value instanceof Phone&&(rule.args[argKey]=value.e164)}return rule})}let json$1=JSON.stringify({version:`1.20251028.0`,schema:description$1},(_,value)=>typeof value==`bigint`?value.toString():value===void 0?null:value instanceof DateTime?value.toObject():value instanceof Date?DateTime.fromJSDate(value).toObject():value);return utoa(json$1)},decode=base64=>{let json$1=atou(base64),description$1=JSON.parse(json$1);if(!isPlainObject(description$1)||!(`version`in description$1)||!(`schema`in description$1)||typeof description$1.version!=`string`||!isPlainObject(description$1.schema))throw TypeError(`Not a valid encoded schema`);let{version:schemaVersion,schema}=description$1;if(import_semver.valid(`1.20251028.0`)){if(!import_semver.valid(import_semver.coerce(schemaVersion)))throw TypeError(`Invalid schema version: ${schemaVersion}`);if(import_semver.gt(import_semver.coerce(schemaVersion),`1.20251028.0`))throw TypeError(`Schema version ${schemaVersion} is not compatible with current version 1.20251028.0`)}return validator.build(schema)},Joi=RootFactory.create({schemaTypeModifiers:[knex],shortcutsModifiers:[]}),validator=patch(Joi.extend(bigint).extend(datetime).extend(phone)),TLDS=`AAA.AARP.ABB.ABBOTT.ABBVIE.ABC.ABLE.ABOGADO.ABUDHABI.AC.ACADEMY.ACCENTURE.ACCOUNTANT.ACCOUNTANTS.ACO.ACTOR.AD.ADS.ADULT.AE.AEG.AERO.AETNA.AF.AFL.AFRICA.AG.AGAKHAN.AGENCY.AI.AIG.AIRBUS.AIRFORCE.AIRTEL.AKDN.AL.ALIBABA.ALIPAY.ALLFINANZ.ALLSTATE.ALLY.ALSACE.ALSTOM.AM.AMAZON.AMERICANEXPRESS.AMERICANFAMILY.AMEX.AMFAM.AMICA.AMSTERDAM.ANALYTICS.ANDROID.ANQUAN.ANZ.AO.AOL.APARTMENTS.APP.APPLE.AQ.AQUARELLE.AR.ARAB.ARAMCO.ARCHI.ARMY.ARPA.ART.ARTE.AS.ASDA.ASIA.ASSOCIATES.AT.ATHLETA.ATTORNEY.AU.AUCTION.AUDI.AUDIBLE.AUDIO.AUSPOST.AUTHOR.AUTO.AUTOS.AW.AWS.AX.AXA.AZ.AZURE.BA.BABY.BAIDU.BANAMEX.BAND.BANK.BAR.BARCELONA.BARCLAYCARD.BARCLAYS.BAREFOOT.BARGAINS.BASEBALL.BASKETBALL.BAUHAUS.BAYERN.BB.BBC.BBT.BBVA.BCG.BCN.BD.BE.BEATS.BEAUTY.BEER.BERLIN.BEST.BESTBUY.BET.BF.BG.BH.BHARTI.BI.BIBLE.BID.BIKE.BING.BINGO.BIO.BIZ.BJ.BLACK.BLACKFRIDAY.BLOCKBUSTER.BLOG.BLOOMBERG.BLUE.BM.BMS.BMW.BN.BNPPARIBAS.BO.BOATS.BOEHRINGER.BOFA.BOM.BOND.BOO.BOOK.BOOKING.BOSCH.BOSTIK.BOSTON.BOT.BOUTIQUE.BOX.BR.BRADESCO.BRIDGESTONE.BROADWAY.BROKER.BROTHER.BRUSSELS.BS.BT.BUILD.BUILDERS.BUSINESS.BUY.BUZZ.BV.BW.BY.BZ.BZH.CA.CAB.CAFE.CAL.CALL.CALVINKLEIN.CAM.CAMERA.CAMP.CANON.CAPETOWN.CAPITAL.CAPITALONE.CAR.CARAVAN.CARDS.CARE.CAREER.CAREERS.CARS.CASA.CASE.CASH.CASINO.CAT.CATERING.CATHOLIC.CBA.CBN.CBRE.CC.CD.CENTER.CEO.CERN.CF.CFA.CFD.CG.CH.CHANEL.CHANNEL.CHARITY.CHASE.CHAT.CHEAP.CHINTAI.CHRISTMAS.CHROME.CHURCH.CI.CIPRIANI.CIRCLE.CISCO.CITADEL.CITI.CITIC.CITY.CK.CL.CLAIMS.CLEANING.CLICK.CLINIC.CLINIQUE.CLOTHING.CLOUD.CLUB.CLUBMED.CM.CN.CO.COACH.CODES.COFFEE.COLLEGE.COLOGNE.COM.COMMBANK.COMMUNITY.COMPANY.COMPARE.COMPUTER.COMSEC.CONDOS.CONSTRUCTION.CONSULTING.CONTACT.CONTRACTORS.COOKING.COOL.COOP.CORSICA.COUNTRY.COUPON.COUPONS.COURSES.CPA.CR.CREDIT.CREDITCARD.CREDITUNION.CRICKET.CROWN.CRS.CRUISE.CRUISES.CU.CUISINELLA.CV.CW.CX.CY.CYMRU.CYOU.CZ.DAD.DANCE.DATA.DATE.DATING.DATSUN.DAY.DCLK.DDS.DE.DEAL.DEALER.DEALS.DEGREE.DELIVERY.DELL.DELOITTE.DELTA.DEMOCRAT.DENTAL.DENTIST.DESI.DESIGN.DEV.DHL.DIAMONDS.DIET.DIGITAL.DIRECT.DIRECTORY.DISCOUNT.DISCOVER.DISH.DIY.DJ.DK.DM.DNP.DO.DOCS.DOCTOR.DOG.DOMAINS.DOT.DOWNLOAD.DRIVE.DTV.DUBAI.DUPONT.DURBAN.DVAG.DVR.DZ.EARTH.EAT.EC.ECO.EDEKA.EDU.EDUCATION.EE.EG.EMAIL.EMERCK.ENERGY.ENGINEER.ENGINEERING.ENTERPRISES.EPSON.EQUIPMENT.ER.ERICSSON.ERNI.ES.ESQ.ESTATE.ET.EU.EUROVISION.EUS.EVENTS.EXCHANGE.EXPERT.EXPOSED.EXPRESS.EXTRASPACE.FAGE.FAIL.FAIRWINDS.FAITH.FAMILY.FAN.FANS.FARM.FARMERS.FASHION.FAST.FEDEX.FEEDBACK.FERRARI.FERRERO.FI.FIDELITY.FIDO.FILM.FINAL.FINANCE.FINANCIAL.FIRE.FIRESTONE.FIRMDALE.FISH.FISHING.FIT.FITNESS.FJ.FK.FLICKR.FLIGHTS.FLIR.FLORIST.FLOWERS.FLY.FM.FO.FOO.FOOD.FOOTBALL.FORD.FOREX.FORSALE.FORUM.FOUNDATION.FOX.FR.FREE.FRESENIUS.FRL.FROGANS.FRONTIER.FTR.FUJITSU.FUN.FUND.FURNITURE.FUTBOL.FYI.GA.GAL.GALLERY.GALLO.GALLUP.GAME.GAMES.GAP.GARDEN.GAY.GB.GBIZ.GD.GDN.GE.GEA.GENT.GENTING.GEORGE.GF.GG.GGEE.GH.GI.GIFT.GIFTS.GIVES.GIVING.GL.GLASS.GLE.GLOBAL.GLOBO.GM.GMAIL.GMBH.GMO.GMX.GN.GODADDY.GOLD.GOLDPOINT.GOLF.GOO.GOODYEAR.GOOG.GOOGLE.GOP.GOT.GOV.GP.GQ.GR.GRAINGER.GRAPHICS.GRATIS.GREEN.GRIPE.GROCERY.GROUP.GS.GT.GU.GUCCI.GUGE.GUIDE.GUITARS.GURU.GW.GY.HAIR.HAMBURG.HANGOUT.HAUS.HBO.HDFC.HDFCBANK.HEALTH.HEALTHCARE.HELP.HELSINKI.HERE.HERMES.HIPHOP.HISAMITSU.HITACHI.HIV.HK.HKT.HM.HN.HOCKEY.HOLDINGS.HOLIDAY.HOMEDEPOT.HOMEGOODS.HOMES.HOMESENSE.HONDA.HORSE.HOSPITAL.HOST.HOSTING.HOT.HOTELS.HOTMAIL.HOUSE.HOW.HR.HSBC.HT.HU.HUGHES.HYATT.HYUNDAI.IBM.ICBC.ICE.ICU.ID.IE.IEEE.IFM.IKANO.IL.IM.IMAMAT.IMDB.IMMO.IMMOBILIEN.IN.INC.INDUSTRIES.INFINITI.INFO.ING.INK.INSTITUTE.INSURANCE.INSURE.INT.INTERNATIONAL.INTUIT.INVESTMENTS.IO.IPIRANGA.IQ.IR.IRISH.IS.ISMAILI.IST.ISTANBUL.IT.ITAU.ITV.JAGUAR.JAVA.JCB.JE.JEEP.JETZT.JEWELRY.JIO.JLL.JM.JMP.JNJ.JO.JOBS.JOBURG.JOT.JOY.JP.JPMORGAN.JPRS.JUEGOS.JUNIPER.KAUFEN.KDDI.KE.KERRYHOTELS.KERRYPROPERTIES.KFH.KG.KH.KI.KIA.KIDS.KIM.KINDLE.KITCHEN.KIWI.KM.KN.KOELN.KOMATSU.KOSHER.KP.KPMG.KPN.KR.KRD.KRED.KUOKGROUP.KW.KY.KYOTO.KZ.LA.LACAIXA.LAMBORGHINI.LAMER.LAND.LANDROVER.LANXESS.LASALLE.LAT.LATINO.LATROBE.LAW.LAWYER.LB.LC.LDS.LEASE.LECLERC.LEFRAK.LEGAL.LEGO.LEXUS.LGBT.LI.LIDL.LIFE.LIFEINSURANCE.LIFESTYLE.LIGHTING.LIKE.LILLY.LIMITED.LIMO.LINCOLN.LINK.LIVE.LIVING.LK.LLC.LLP.LOAN.LOANS.LOCKER.LOCUS.LOL.LONDON.LOTTE.LOTTO.LOVE.LPL.LPLFINANCIAL.LR.LS.LT.LTD.LTDA.LU.LUNDBECK.LUXE.LUXURY.LV.LY.MA.MADRID.MAIF.MAISON.MAKEUP.MAN.MANAGEMENT.MANGO.MAP.MARKET.MARKETING.MARKETS.MARRIOTT.MARSHALLS.MATTEL.MBA.MC.MCKINSEY.MD.ME.MED.MEDIA.MEET.MELBOURNE.MEME.MEMORIAL.MEN.MENU.MERCKMSD.MG.MH.MIAMI.MICROSOFT.MIL.MINI.MINT.MIT.MITSUBISHI.MK.ML.MLB.MLS.MM.MMA.MN.MO.MOBI.MOBILE.MODA.MOE.MOI.MOM.MONASH.MONEY.MONSTER.MORMON.MORTGAGE.MOSCOW.MOTO.MOTORCYCLES.MOV.MOVIE.MP.MQ.MR.MS.MSD.MT.MTN.MTR.MU.MUSEUM.MUSIC.MV.MW.MX.MY.MZ.NA.NAB.NAGOYA.NAME.NAVY.NBA.NC.NE.NEC.NET.NETBANK.NETFLIX.NETWORK.NEUSTAR.NEW.NEWS.NEXT.NEXTDIRECT.NEXUS.NF.NFL.NG.NGO.NHK.NI.NICO.NIKE.NIKON.NINJA.NISSAN.NISSAY.NL.NO.NOKIA.NORTON.NOW.NOWRUZ.NOWTV.NP.NR.NRA.NRW.NTT.NU.NYC.NZ.OBI.OBSERVER.OFFICE.OKINAWA.OLAYAN.OLAYANGROUP.OLLO.OM.OMEGA.ONE.ONG.ONL.ONLINE.OOO.OPEN.ORACLE.ORANGE.ORG.ORGANIC.ORIGINS.OSAKA.OTSUKA.OTT.OVH.PA.PAGE.PANASONIC.PARIS.PARS.PARTNERS.PARTS.PARTY.PAY.PCCW.PE.PET.PF.PFIZER.PG.PH.PHARMACY.PHD.PHILIPS.PHONE.PHOTO.PHOTOGRAPHY.PHOTOS.PHYSIO.PICS.PICTET.PICTURES.PID.PIN.PING.PINK.PIONEER.PIZZA.PK.PL.PLACE.PLAY.PLAYSTATION.PLUMBING.PLUS.PM.PN.PNC.POHL.POKER.POLITIE.PORN.POST.PR.PRAXI.PRESS.PRIME.PRO.PROD.PRODUCTIONS.PROF.PROGRESSIVE.PROMO.PROPERTIES.PROPERTY.PROTECTION.PRU.PRUDENTIAL.PS.PT.PUB.PW.PWC.PY.QA.QPON.QUEBEC.QUEST.RACING.RADIO.RE.READ.REALESTATE.REALTOR.REALTY.RECIPES.RED.REDUMBRELLA.REHAB.REISE.REISEN.REIT.RELIANCE.REN.RENT.RENTALS.REPAIR.REPORT.REPUBLICAN.REST.RESTAURANT.REVIEW.REVIEWS.REXROTH.RICH.RICHARDLI.RICOH.RIL.RIO.RIP.RO.ROCKS.RODEO.ROGERS.ROOM.RS.RSVP.RU.RUGBY.RUHR.RUN.RW.RWE.RYUKYU.SA.SAARLAND.SAFE.SAFETY.SAKURA.SALE.SALON.SAMSCLUB.SAMSUNG.SANDVIK.SANDVIKCOROMANT.SANOFI.SAP.SARL.SAS.SAVE.SAXO.SB.SBI.SBS.SC.SCB.SCHAEFFLER.SCHMIDT.SCHOLARSHIPS.SCHOOL.SCHULE.SCHWARZ.SCIENCE.SCOT.SD.SE.SEARCH.SEAT.SECURE.SECURITY.SEEK.SELECT.SENER.SERVICES.SEVEN.SEW.SEX.SEXY.SFR.SG.SH.SHANGRILA.SHARP.SHELL.SHIA.SHIKSHA.SHOES.SHOP.SHOPPING.SHOUJI.SHOW.SI.SILK.SINA.SINGLES.SITE.SJ.SK.SKI.SKIN.SKY.SKYPE.SL.SLING.SM.SMART.SMILE.SN.SNCF.SO.SOCCER.SOCIAL.SOFTBANK.SOFTWARE.SOHU.SOLAR.SOLUTIONS.SONG.SONY.SOY.SPA.SPACE.SPORT.SPOT.SR.SRL.SS.ST.STADA.STAPLES.STAR.STATEBANK.STATEFARM.STC.STCGROUP.STOCKHOLM.STORAGE.STORE.STREAM.STUDIO.STUDY.STYLE.SU.SUCKS.SUPPLIES.SUPPLY.SUPPORT.SURF.SURGERY.SUZUKI.SV.SWATCH.SWISS.SX.SY.SYDNEY.SYSTEMS.SZ.TAB.TAIPEI.TALK.TAOBAO.TARGET.TATAMOTORS.TATAR.TATTOO.TAX.TAXI.TC.TCI.TD.TDK.TEAM.TECH.TECHNOLOGY.TEL.TEMASEK.TENNIS.TEVA.TF.TG.TH.THD.THEATER.THEATRE.TIAA.TICKETS.TIENDA.TIPS.TIRES.TIROL.TJ.TJMAXX.TJX.TK.TKMAXX.TL.TM.TMALL.TN.TO.TODAY.TOKYO.TOOLS.TOP.TORAY.TOSHIBA.TOTAL.TOURS.TOWN.TOYOTA.TOYS.TR.TRADE.TRADING.TRAINING.TRAVEL.TRAVELERS.TRAVELERSINSURANCE.TRUST.TRV.TT.TUBE.TUI.TUNES.TUSHU.TV.TVS.TW.TZ.UA.UBANK.UBS.UG.UK.UNICOM.UNIVERSITY.UNO.UOL.UPS.US.UY.UZ.VA.VACATIONS.VANA.VANGUARD.VC.VE.VEGAS.VENTURES.VERISIGN.VERSICHERUNG.VET.VG.VI.VIAJES.VIDEO.VIG.VIKING.VILLAS.VIN.VIP.VIRGIN.VISA.VISION.VIVA.VIVO.VLAANDEREN.VN.VODKA.VOLVO.VOTE.VOTING.VOTO.VOYAGE.VU.WALES.WALMART.WALTER.WANG.WANGGOU.WATCH.WATCHES.WEATHER.WEATHERCHANNEL.WEBCAM.WEBER.WEBSITE.WED.WEDDING.WEIBO.WEIR.WF.WHOSWHO.WIEN.WIKI.WILLIAMHILL.WIN.WINDOWS.WINE.WINNERS.WME.WOLTERSKLUWER.WOODSIDE.WORK.WORKS.WORLD.WOW.WS.WTC.WTF.XBOX.XEROX.XIHUAN.XIN.XN--11B4C3D.XN--1CK2E1B.XN--1QQW23A.XN--2SCRJ9C.XN--30RR7Y.XN--3BST00M.XN--3DS443G.XN--3E0B707E.XN--3HCRJ9C.XN--3PXU8K.XN--42C2D9A.XN--45BR5CYL.XN--45BRJ9C.XN--45Q11C.XN--4DBRK0CE.XN--4GBRIM.XN--54B7FTA0CC.XN--55QW42G.XN--55QX5D.XN--5SU34J936BGSG.XN--5TZM5G.XN--6FRZ82G.XN--6QQ986B3XL.XN--80ADXHKS.XN--80AO21A.XN--80AQECDR1A.XN--80ASEHDB.XN--80ASWG.XN--8Y0A063A.XN--90A3AC.XN--90AE.XN--90AIS.XN--9DBQ2A.XN--9ET52U.XN--9KRT00A.XN--B4W605FERD.XN--BCK1B9A5DRE4C.XN--C1AVG.XN--C2BR7G.XN--CCK2B3B.XN--CCKWCXETD.XN--CG4BKI.XN--CLCHC0EA0B2G2A9GCD.XN--CZR694B.XN--CZRS0T.XN--CZRU2D.XN--D1ACJ3B.XN--D1ALF.XN--E1A4C.XN--ECKVDTC9D.XN--EFVY88H.XN--FCT429K.XN--FHBEI.XN--FIQ228C5HS.XN--FIQ64B.XN--FIQS8S.XN--FIQZ9S.XN--FJQ720A.XN--FLW351E.XN--FPCRJ9C3D.XN--FZC2C9E2C.XN--FZYS8D69UVGM.XN--G2XX48C.XN--GCKR3F0F.XN--GECRJ9C.XN--GK3AT1E.XN--H2BREG3EVE.XN--H2BRJ9C.XN--H2BRJ9C8C.XN--HXT814E.XN--I1B6B1A6A2E.XN--IMR513N.XN--IO0A7I.XN--J1AEF.XN--J1AMH.XN--J6W193G.XN--JLQ480N2RG.XN--JVR189M.XN--KCRX77D1X4A.XN--KPRW13D.XN--KPRY57D.XN--KPUT3I.XN--L1ACC.XN--LGBBAT1AD8J.XN--MGB9AWBF.XN--MGBA3A3EJT.XN--MGBA3A4F16A.XN--MGBA7C0BBN0A.XN--MGBAAM7A8H.XN--MGBAB2BD.XN--MGBAH1A3HJKRD.XN--MGBAI9AZGQP6J.XN--MGBAYH7GPA.XN--MGBBH1A.XN--MGBBH1A71E.XN--MGBC0A9AZCG.XN--MGBCA7DZDO.XN--MGBCPQ6GPA1A.XN--MGBERP4A5D4AR.XN--MGBGU82A.XN--MGBI4ECEXP.XN--MGBPL2FH.XN--MGBT3DHD.XN--MGBTX2B.XN--MGBX4CD0AB.XN--MIX891F.XN--MK1BU44C.XN--MXTQ1M.XN--NGBC5AZD.XN--NGBE9E0A.XN--NGBRX.XN--NODE.XN--NQV7F.XN--NQV7FS00EMA.XN--NYQY26A.XN--O3CW4H.XN--OGBPF8FL.XN--OTU796D.XN--P1ACF.XN--P1AI.XN--PGBS0DH.XN--PSSY2U.XN--Q7CE6A.XN--Q9JYB4C.XN--QCKA1PMC.XN--QXA6A.XN--QXAM.XN--RHQV96G.XN--ROVU88B.XN--RVC1E0AM3E.XN--S9BRJ9C.XN--SES554G.XN--T60B56A.XN--TCKWE.XN--TIQ49XQYJ.XN--UNUP4Y.XN--VERMGENSBERATER-CTB.XN--VERMGENSBERATUNG-PWB.XN--VHQUV.XN--VUQ861B.XN--W4R85EL8FHU5DNRA.XN--W4RS40L.XN--WGBH1C.XN--WGBL6A.XN--XHQ521B.XN--XKC2AL3HYE2A.XN--XKC2DL3A5EE0H.XN--Y9A3AQ.XN--YFRO4I67O.XN--YGBI2AMMX.XN--ZFR164B.XXX.XYZ.YACHTS.YAHOO.YAMAXUN.YANDEX.YE.YODOBASHI.YOGA.YOKOHAMA.YOU.YOUTUBE.YT.YUN.ZA.ZAPPOS.ZARA.ZERO.ZIP.ZM.ZONE.ZUERICH.ZW`.split(`.`),tlds=new Set(TLDS.map(tld=>tld.toLowerCase()));init_esm();var import_lib=__toESM(require_lib$3()),import_lib$1=__toESM(require_lib$2()),import_lib$2=__toESM(require_lib());const version=`1.20251028.0`;var ValidationError=import_lib$2.ValidationError,location=import_lib$1.location;export{ValidationError,esm_exports as address,decode,encode,import_lib as formula,location,tlds,validator,version};
43
+ }`}serialize(){let o=buffer.Buffer.from(JSON.stringify({phone:this.raw,country:this.country})).toString(`base64`);return buffer.Buffer.from(JSON.stringify({phone:this.raw,country:this.country,hash:o})).toString(`base64`)}static deserialize(o){let r;try{r=buffer.Buffer.from(o,`base64`).toString(`utf-8`)}catch{throw Error(`Not a valid serialized phone object`)}let u;try{u=JSON.parse(r)}catch{throw Error(`Not a valid serialized phone object`)}if(!u.phone||!u.country||!u.hash||buffer.Buffer.from(JSON.stringify({phone:u.phone,country:u.country})).toString(`base64`)!==u.hash)throw Error(`Not a valid serialized phone object`);return new Te$1(u.phone,u.country===`XX`?void 0:u.country)}};z=new WeakMap,H=new WeakMap,Z=new WeakMap,V=new WeakMap,se=new WeakMap,le=new WeakMap,W=new WeakSet,Le=function(o){let r=country_telephone_data.allCountries.map(u=>({iso:u.iso2.toUpperCase(),prefix:String(u.dialCode).trim().replace(/\D/g,``)})).filter(u=>o.substring(0,u.prefix.length)===u.prefix).sort(ne(this,W,be)).filter(u=>{let h=this.constructor;return new h(o,u.iso).valid});return r.length>=1?r[0].iso:ne(this,W,Fe).call(this,o)},Fe=function(o){let r=country_telephone_data.allCountries.map(u=>({iso:u.iso2.toUpperCase(),prefix:String(u.dialCode).trim().replace(/\D/g,``)})).sort(ne(this,W,be)).filter(u=>{let h=this.constructor;return new h(o,u.iso).valid});return r.length>=1?r[0].iso:`XX`},be=function(o,r){if(o.prefix.length===r.prefix.length){let u=Number.parseInt(o.prefix),h=Number.parseInt(r.prefix);return u===h?o.iso.localeCompare(r.iso):u>h?1:-1}return o.prefix.length>r.prefix.length?1:-1},we=function(o){if(!o)return`INVALID`;let r=M(this,Z).getNumberType(o),u=Object.values(libphonenumberExports.PhoneNumberType),h=Object.keys(libphonenumberExports.PhoneNumberType),m=u.indexOf(r);return h[m]||`INVALID`},ve=function(){let o=this.raw.substring(1,4);return areaCodeMap[o]&&typeof areaCodeMap[o]==`string`?areaCodeMap[o]:`XX`};let Phone=Te;const version$1=`1.20250512.0`,messages={"phone.base":`{{#label}} must be a phone number`,"phone.invalid":`{{#label}} must be a valid phone number for {{#country}}`,"phone.fixedLine":`{{#label}} must be a fixed line number for {{#country}}`,"phone.mobile":`{{#label}} must be a mobile number for {{#country}}`,"phone.strictFixedLine":`{{#label}} is not a fixed line number for {{#country}}`,"phone.strictMobile":`{{#label}} is not a mobile number for {{#country}}`,"phone.fixedLineOrMobile":`{{#label}} must be a fixed line or mobile number for {{#country}}`,"phone.tollFree":`{{#label}} must be a toll-free number for {{#country}}`,"phone.premiumRate":`{{#label}} must be a premium rate number for {{#country}}`,"phone.sharedCost":`{{#label}} must be a shared cost number for {{#country}}`,"phone.voip":`{{#label}} must be a VoIP number for {{#country}}`,"phone.personalNumber":`{{#label}} must be a personal number for {{#country}}`,"phone.pager":`{{#label}} must be a pager number for {{#country}}`,"phone.uan":`{{#label}} must be a UAN number for {{#country}}`,"phone.voicemail":`{{#label}} must be a voicemail number for {{#country}}`,"phone.unknown":`{{#label}} must be an unknown type number for {{#country}}`,"phone.types":`{{#label}} must be one of the specified phone types for {{#country}}`},coerceCountry=value=>{if(typeof value!=`string`)return null;if(isos.has(value.toUpperCase()))return value.toUpperCase();let match$2=null;return countries.forEach((name$1,iso)=>{name$1.toLowerCase()===value.toLowerCase()&&(match$2=iso)}),match$2},getPhoneObject=(value,country)=>{let countryCoerced=coerceCountry(country);try{return new Phone(value,countryCoerced||void 0)}catch{return}},evaluate=(value,operator,args$1)=>{switch(operator){case`fixedLine`:return[`FIXED_LINE`,`FIXED_LINE_OR_MOBILE`].includes(value.type);case`mobile`:return[`MOBILE`,`FIXED_LINE_OR_MOBILE`].includes(value.type);case`fixedLineOrMobile`:return[`FIXED_LINE`,`MOBILE`,`FIXED_LINE_OR_MOBILE`].includes(value.type);case`strictFixedLine`:return value.type===`FIXED_LINE`;case`strictMobile`:return value.type===`MOBILE`;case`tollFree`:return value.type===`TOLL_FREE`;case`premiumRate`:return value.type===`PREMIUM_RATE`;case`sharedCost`:return value.type===`SHARED_COST`;case`voip`:return value.type===`VOIP`;case`personalNumber`:return value.type===`PERSONAL_NUMBER`;case`pager`:return value.type===`PAGER`;case`uan`:return value.type===`UAN`;case`voicemail`:return value.type===`VOICEMAIL`;case`unknown`:return value.type===`UNKNOWN`;case`types`:return args$1[0].includes(value.type);default:return!1}},phone=function(joi){let coerce$3=(value,helpers)=>typeof value==`string`||typeof value==`number`?(value=value.toString().trim(),{value}):{value,errors:[helpers.error(`phone.base`,{value:String(value)})]},getCountryName=iso=>{if(`$i18n`in joi){let root=joi;if(!countries.has(iso))return iso;let returnable=root.$i18n(`country.${iso}`);return returnable||countries.get(iso)||iso}return countries.get(iso)||iso};return{type:`phone`,base:joi.any(),validate(value,{error,schema,prefs,state}){let arg=schema.$_getFlag(`country`),country=joi.isRef(arg)?arg.resolve(value,state,prefs):arg,pObj=getPhoneObject(value,country);if(pObj){if(!pObj.valid)return country?{value,errors:[error(`phone.invalid`,{value:String(value),country:getCountryName(country)})]}:{value,errors:[error(`phone.base`,{value:String(value)})]}}else return{value,errors:[error(`phone.base`,{value:String(value)})]};let as=schema.$_getFlag(`as`)||`e164`,formattedValue;switch(as){case`international`:formattedValue=pObj.international;break;case`national`:formattedValue=pObj.national;break;case`raw`:formattedValue=pObj.raw;break;case`timezone`:formattedValue=pObj.timezone;break;case`type`:formattedValue=pObj.type;break;case`country`:formattedValue=pObj.country;break;default:formattedValue=pObj.e164}return{value:formattedValue}},flags:{country:{default:null,setter:`country`},as:{default:`e164`,setter:`format`}},args(...args$1){let[schema,country]=args$1;return schema.country(country)},coerce:{from:[`string`,`number`],method:coerce$3},rules:{check:{method:!1,validate(value,helpers,args$1,{name:name$1,operator}){let{state,prefs}=helpers,countryVal=helpers.schema.$_getFlag(`country`);joi.isRef(countryVal)&&(countryVal=countryVal.resolve(value,state,prefs));let pObj=getPhoneObject(value,countryVal);if(pObj){if(!pObj.valid)return countryVal?helpers.error(`phone.invalid`,{value:String(value),country:getCountryName(countryVal)}):{value,errors:[helpers.error(`phone.base`,{value:String(value)})]}}else return helpers.error(`phone.base`,{value:String(value)});let valid$2=evaluate(pObj,operator,Object.values(args$1||{}));return valid$2?value:helpers.error(`phone.`+name$1,{value:value.toString(),country:getCountryName(countryVal),...args$1})}},country:{method(country){return this.$_setFlag(`country`,country)},args:[{name:`country`,ref:!0,assert:value=>typeof value==`string`||joi.isRef(value),message:`must be a string or a reference`}]},format:{method(as){return this.$_setFlag(`as`,as)},args:[{name:`as`,assert:value=>[`e164`,`international`,`national`,`raw`,`timezone`,`type`,`country`].includes(value),message:`must be one of e164, international, national, raw, timezone, type, or country`}]},fixedLine:{method(){return this.$_addRule({name:`fixedLine`,method:`check`,operator:`fixedLine`})}},mobile:{method(){return this.$_addRule({name:`mobile`,method:`check`,operator:`mobile`})}},strictFixedLine:{method(){return this.$_addRule({name:`strictFixedLine`,method:`check`,operator:`strictFixedLine`})}},strictMobile:{method(){return this.$_addRule({name:`strictMobile`,method:`check`,operator:`strictMobile`})}},fixedLineOrMobile:{method(){return this.$_addRule({name:`fixedLineOrMobile`,method:`check`,operator:`fixedLineOrMobile`})}},tollFree:{method(){return this.$_addRule({name:`tollFree`,method:`check`,operator:`tollFree`})}},premiumRate:{method(){return this.$_addRule({name:`premiumRate`,method:`check`,operator:`premiumRate`})}},sharedCost:{method(){return this.$_addRule({name:`sharedCost`,method:`check`,operator:`sharedCost`})}},voip:{method(){return this.$_addRule({name:`voip`,method:`check`,operator:`voip`})}},personalNumber:{method(){return this.$_addRule({name:`personalNumber`,method:`check`,operator:`personalNumber`})}},pager:{method(){return this.$_addRule({name:`pager`,method:`check`,operator:`pager`})}},uan:{method(){return this.$_addRule({name:`uan`,method:`check`,operator:`uan`})}},voicemail:{method(){return this.$_addRule({name:`voicemail`,method:`check`,operator:`voicemail`})}},unknown:{method(){return this.$_addRule({name:`unknown`,method:`check`,operator:`unknown`})}},types:{method(...types$1){return this.$_addRule({name:`types`,method:`check`,operator:`types`,args:{types:types$1}})}}},cast:{string:{from:value=>typeof value==`string`||typeof value==`number`,to:value=>value},number:{from:value=>typeof value==`string`||typeof value==`number`,to(value,helpers){let country=helpers.schema.$_getFlag(`country`),pObj=getPhoneObject(value,country);return pObj?Number(pObj.raw):-1}},object:{from:value=>typeof value==`string`||typeof value==`number`,to(value,helpers){let country=helpers.schema.$_getFlag(`country`),pObj=getPhoneObject(value,country);return pObj?pObj.toObject():{}}}},messages}};var DP=20,RM=1,MAX_DP=1e6,MAX_POWER=1e6,NE=-7,PE=21,STRICT=!1,NAME=`[big.js] `,INVALID$3=NAME+`Invalid `,INVALID_DP=INVALID$3+`decimal places`,INVALID_RM=INVALID$3+`rounding mode`,DIV_BY_ZERO=NAME+`Division by zero`,P={},UNDEFINED=void 0,NUMERIC=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function _Big_(){function Big$1(n$2){var x$1=this;if(!(x$1 instanceof Big$1))return n$2===UNDEFINED&&arguments.length===0?_Big_():new Big$1(n$2);if(n$2 instanceof Big$1)x$1.s=n$2.s,x$1.e=n$2.e,x$1.c=n$2.c.slice();else{if(typeof n$2!=`string`){if(Big$1.strict===!0&&typeof n$2!=`bigint`)throw TypeError(INVALID$3+`value`);n$2=n$2===0&&1/n$2<0?`-0`:String(n$2)}parse$8(x$1,n$2)}x$1.constructor=Big$1}return Big$1.prototype=P,Big$1.DP=DP,Big$1.RM=RM,Big$1.NE=NE,Big$1.PE=PE,Big$1.strict=STRICT,Big$1.roundDown=0,Big$1.roundHalfUp=1,Big$1.roundHalfEven=2,Big$1.roundUp=3,Big$1}function parse$8(x$1,n$2){var e,i$4,nl;if(!NUMERIC.test(n$2))throw Error(INVALID$3+`number`);for(x$1.s=n$2.charAt(0)==`-`?(n$2=n$2.slice(1),-1):1,(e=n$2.indexOf(`.`))>-1&&(n$2=n$2.replace(`.`,``)),(i$4=n$2.search(/e/i))>0?(e<0&&(e=i$4),e+=+n$2.slice(i$4+1),n$2=n$2.substring(0,i$4)):e<0&&(e=n$2.length),nl=n$2.length,i$4=0;i$4<nl&&n$2.charAt(i$4)==`0`;)++i$4;if(i$4==nl)x$1.c=[x$1.e=0];else{for(;nl>0&&n$2.charAt(--nl)==`0`;);for(x$1.e=e-i$4-1,x$1.c=[],e=0;i$4<=nl;)x$1.c[e++]=+n$2.charAt(i$4++)}return x$1}function round(x$1,sd,rm,more){var xc=x$1.c;if(rm===UNDEFINED&&(rm=x$1.constructor.RM),rm!==0&&rm!==1&&rm!==2&&rm!==3)throw Error(INVALID_RM);if(sd<1)more=rm===3&&(more||!!xc[0])||sd===0&&(rm===1&&xc[0]>=5||rm===2&&(xc[0]>5||xc[0]===5&&(more||xc[1]!==UNDEFINED))),xc.length=1,more?(x$1.e=x$1.e-sd+1,xc[0]=1):xc[0]=x$1.e=0;else if(sd<xc.length){if(more=rm===1&&xc[sd]>=5||rm===2&&(xc[sd]>5||xc[sd]===5&&(more||xc[sd+1]!==UNDEFINED||xc[sd-1]&1))||rm===3&&(more||!!xc[0]),xc.length=sd,more){for(;++xc[--sd]>9;)if(xc[sd]=0,sd===0){++x$1.e,xc.unshift(1);break}}for(sd=xc.length;!xc[--sd];)xc.pop()}return x$1}function stringify(x$1,doExponential,isNonzero){var e=x$1.e,s$2=x$1.c.join(``),n$2=s$2.length;if(doExponential)s$2=s$2.charAt(0)+(n$2>1?`.`+s$2.slice(1):``)+(e<0?`e`:`e+`)+e;else if(e<0){for(;++e;)s$2=`0`+s$2;s$2=`0.`+s$2}else if(e>0)if(++e>n$2)for(e-=n$2;e--;)s$2+=`0`;else e<n$2&&(s$2=s$2.slice(0,e)+`.`+s$2.slice(e));else n$2>1&&(s$2=s$2.charAt(0)+`.`+s$2.slice(1));return x$1.s<0&&isNonzero?`-`+s$2:s$2}P.abs=function(){var x$1=new this.constructor(this);return x$1.s=1,x$1},P.cmp=function(y){var isneg,x$1=this,xc=x$1.c,yc=(y=new x$1.constructor(y)).c,i$4=x$1.s,j$1=y.s,k=x$1.e,l$2=y.e;if(!xc[0]||!yc[0])return xc[0]?i$4:yc[0]?-j$1:0;if(i$4!=j$1)return i$4;if(isneg=i$4<0,k!=l$2)return k>l$2^isneg?1:-1;for(j$1=(k=xc.length)<(l$2=yc.length)?k:l$2,i$4=-1;++i$4<j$1;)if(xc[i$4]!=yc[i$4])return xc[i$4]>yc[i$4]^isneg?1:-1;return k==l$2?0:k>l$2^isneg?1:-1},P.div=function(y){var x$1=this,Big$1=x$1.constructor,a=x$1.c,b=(y=new Big$1(y)).c,k=x$1.s==y.s?1:-1,dp=Big$1.DP;if(dp!==~~dp||dp<0||dp>MAX_DP)throw Error(INVALID_DP);if(!b[0])throw Error(DIV_BY_ZERO);if(!a[0])return y.s=k,y.c=[y.e=0],y;var bl,bt,n$2,cmp$3,ri,bz=b.slice(),ai=bl=b.length,al=a.length,r=a.slice(0,bl),rl=r.length,q=y,qc=q.c=[],qi=0,p=dp+(q.e=x$1.e-y.e)+1;for(q.s=k,k=p<0?0:p,bz.unshift(0);rl++<bl;)r.push(0);do{for(n$2=0;n$2<10;n$2++){if(bl!=(rl=r.length))cmp$3=bl>rl?1:-1;else for(ri=-1,cmp$3=0;++ri<bl;)if(b[ri]!=r[ri]){cmp$3=b[ri]>r[ri]?1:-1;break}if(cmp$3<0){for(bt=rl==bl?b:bz;rl;){if(r[--rl]<bt[rl]){for(ri=rl;ri&&!r[--ri];)r[ri]=9;--r[ri],r[rl]+=10}r[rl]-=bt[rl]}for(;!r[0];)r.shift()}else break}qc[qi++]=cmp$3?n$2:++n$2,r[0]&&cmp$3?r[rl]=a[ai]||0:r=[a[ai]]}while((ai++<al||r[0]!==UNDEFINED)&&k--);return!qc[0]&&qi!=1&&(qc.shift(),q.e--,p--),qi>p&&round(q,p,Big$1.RM,r[0]!==UNDEFINED),q},P.eq=function(y){return this.cmp(y)===0},P.gt=function(y){return this.cmp(y)>0},P.gte=function(y){return this.cmp(y)>-1},P.lt=function(y){return this.cmp(y)<0},P.lte=function(y){return this.cmp(y)<1},P.minus=P.sub=function(y){var i$4,j$1,t$5,xlty,x$1=this,Big$1=x$1.constructor,a=x$1.s,b=(y=new Big$1(y)).s;if(a!=b)return y.s=-b,x$1.plus(y);var xc=x$1.c.slice(),xe=x$1.e,yc=y.c,ye=y.e;if(!xc[0]||!yc[0])return yc[0]?y.s=-b:xc[0]?y=new Big$1(x$1):y.s=1,y;if(a=xe-ye){for((xlty=a<0)?(a=-a,t$5=xc):(ye=xe,t$5=yc),t$5.reverse(),b=a;b--;)t$5.push(0);t$5.reverse()}else for(j$1=((xlty=xc.length<yc.length)?xc:yc).length,a=b=0;b<j$1;b++)if(xc[b]!=yc[b]){xlty=xc[b]<yc[b];break}if(xlty&&(t$5=xc,xc=yc,yc=t$5,y.s=-y.s),(b=(j$1=yc.length)-(i$4=xc.length))>0)for(;b--;)xc[i$4++]=0;for(b=i$4;j$1>a;){if(xc[--j$1]<yc[j$1]){for(i$4=j$1;i$4&&!xc[--i$4];)xc[i$4]=9;--xc[i$4],xc[j$1]+=10}xc[j$1]-=yc[j$1]}for(;xc[--b]===0;)xc.pop();for(;xc[0]===0;)xc.shift(),--ye;return xc[0]||(y.s=1,xc=[ye=0]),y.c=xc,y.e=ye,y},P.mod=function(y){var ygtx,x$1=this,Big$1=x$1.constructor,a=x$1.s,b=(y=new Big$1(y)).s;if(!y.c[0])throw Error(DIV_BY_ZERO);return x$1.s=y.s=1,ygtx=y.cmp(x$1)==1,x$1.s=a,y.s=b,ygtx?new Big$1(x$1):(a=Big$1.DP,b=Big$1.RM,Big$1.DP=Big$1.RM=0,x$1=x$1.div(y),Big$1.DP=a,Big$1.RM=b,this.minus(x$1.times(y)))},P.neg=function(){var x$1=new this.constructor(this);return x$1.s=-x$1.s,x$1},P.plus=P.add=function(y){var e,k,t$5,x$1=this,Big$1=x$1.constructor;if(y=new Big$1(y),x$1.s!=y.s)return y.s=-y.s,x$1.minus(y);var xe=x$1.e,xc=x$1.c,ye=y.e,yc=y.c;if(!xc[0]||!yc[0])return yc[0]||(xc[0]?y=new Big$1(x$1):y.s=x$1.s),y;if(xc=xc.slice(),e=xe-ye){for(e>0?(ye=xe,t$5=yc):(e=-e,t$5=xc),t$5.reverse();e--;)t$5.push(0);t$5.reverse()}for(xc.length-yc.length<0&&(t$5=yc,yc=xc,xc=t$5),e=yc.length,k=0;e;xc[e]%=10)k=(xc[--e]=xc[e]+yc[e]+k)/10|0;for(k&&(xc.unshift(k),++ye),e=xc.length;xc[--e]===0;)xc.pop();return y.c=xc,y.e=ye,y},P.pow=function(n$2){var x$1=this,one=new x$1.constructor(`1`),y=one,isneg=n$2<0;if(n$2!==~~n$2||n$2<-MAX_POWER||n$2>MAX_POWER)throw Error(INVALID$3+`exponent`);for(isneg&&(n$2=-n$2);n$2&1&&(y=y.times(x$1)),n$2>>=1,n$2;)x$1=x$1.times(x$1);return isneg?one.div(y):y},P.prec=function(sd,rm){if(sd!==~~sd||sd<1||sd>MAX_DP)throw Error(INVALID$3+`precision`);return round(new this.constructor(this),sd,rm)},P.round=function(dp,rm){if(dp===UNDEFINED)dp=0;else if(dp!==~~dp||dp<-MAX_DP||dp>MAX_DP)throw Error(INVALID_DP);return round(new this.constructor(this),dp+this.e+1,rm)},P.sqrt=function(){var r,c$1,t$5,x$1=this,Big$1=x$1.constructor,s$2=x$1.s,e=x$1.e,half=new Big$1(`0.5`);if(!x$1.c[0])return new Big$1(x$1);if(s$2<0)throw Error(NAME+`No square root`);s$2=Math.sqrt(+stringify(x$1,!0,!0)),s$2===0||s$2===1/0?(c$1=x$1.c.join(``),c$1.length+e&1||(c$1+=`0`),s$2=Math.sqrt(c$1),e=((e+1)/2|0)-(e<0||e&1),r=new Big$1((s$2==1/0?`5e`:(s$2=s$2.toExponential()).slice(0,s$2.indexOf(`e`)+1))+e)):r=new Big$1(s$2+``),e=r.e+(Big$1.DP+=4);do t$5=r,r=half.times(t$5.plus(x$1.div(t$5)));while(t$5.c.slice(0,e).join(``)!==r.c.slice(0,e).join(``));return round(r,(Big$1.DP-=4)+r.e+1,Big$1.RM)},P.times=P.mul=function(y){var c$1,x$1=this,Big$1=x$1.constructor,xc=x$1.c,yc=(y=new Big$1(y)).c,a=xc.length,b=yc.length,i$4=x$1.e,j$1=y.e;if(y.s=x$1.s==y.s?1:-1,!xc[0]||!yc[0])return y.c=[y.e=0],y;for(y.e=i$4+j$1,a<b&&(c$1=xc,xc=yc,yc=c$1,j$1=a,a=b,b=j$1),c$1=Array(j$1=a+b);j$1--;)c$1[j$1]=0;for(i$4=b;i$4--;){for(b=0,j$1=a+i$4;j$1>i$4;)b=c$1[j$1]+yc[i$4]*xc[j$1-i$4-1]+b,c$1[j$1--]=b%10,b=b/10|0;c$1[j$1]=b}for(b?++y.e:c$1.shift(),i$4=c$1.length;!c$1[--i$4];)c$1.pop();return y.c=c$1,y},P.toExponential=function(dp,rm){var x$1=this,n$2=x$1.c[0];if(dp!==UNDEFINED){if(dp!==~~dp||dp<0||dp>MAX_DP)throw Error(INVALID_DP);for(x$1=round(new x$1.constructor(x$1),++dp,rm);x$1.c.length<dp;)x$1.c.push(0)}return stringify(x$1,!0,!!n$2)},P.toFixed=function(dp,rm){var x$1=this,n$2=x$1.c[0];if(dp!==UNDEFINED){if(dp!==~~dp||dp<0||dp>MAX_DP)throw Error(INVALID_DP);for(x$1=round(new x$1.constructor(x$1),dp+x$1.e+1,rm),dp=dp+x$1.e+1;x$1.c.length<dp;)x$1.c.push(0)}return stringify(x$1,!1,!!n$2)},P.toJSON=P.toString=function(){var x$1=this,Big$1=x$1.constructor;return stringify(x$1,x$1.e<=Big$1.NE||x$1.e>=Big$1.PE,!!x$1.c[0])},typeof Symbol<`u`&&(P[Symbol.for(`nodejs.util.inspect.custom`)]=P.toJSON),P.toNumber=function(){var n$2=+stringify(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(n$2.toString()))throw Error(NAME+`Imprecise conversion`);return n$2},P.toPrecision=function(sd,rm){var x$1=this,Big$1=x$1.constructor,n$2=x$1.c[0];if(sd!==UNDEFINED){if(sd!==~~sd||sd<1||sd>MAX_DP)throw Error(INVALID$3+`precision`);for(x$1=round(new Big$1(x$1),sd,rm);x$1.c.length<sd;)x$1.c.push(0)}return stringify(x$1,sd<=x$1.e||x$1.e<=Big$1.NE||x$1.e>=Big$1.PE,!!n$2)},P.valueOf=function(){var x$1=this,Big$1=x$1.constructor;if(Big$1.strict===!0)throw Error(NAME+`valueOf disallowed`);return stringify(x$1,x$1.e<=Big$1.NE||x$1.e>=Big$1.PE,!0)};var Big=_Big_(),big_default=Big;const messages$1={"bigint.base":`"{{#label}}" must be a valid bigint`,"bigint.greater":`"{{#label}}" must be greater than {{#limit}}`,"bigint.less":`"{{#label}}" must be less than {{#limit}}`,"bigint.max":`"{{#label}}" must be less than or equal to {{#limit}}`,"bigint.min":`"{{#label}}" must be greater than or equal to {{#limit}}`,"bigint.multiple":`"{{#label}}" must be a multiple of {{#limit}}`,"bigint.negative":`"{{#label}}" must be a negative bigint`,"bigint.positive":`"{{#label}}" must be a positive bigint`},compare$13=(value,limit,operator)=>{switch(operator){case`>`:return value.gt(limit);case`<`:return value.lt(limit);case`>=`:return value.gte(limit);case`<=`:return value.lte(limit);case`multiple`:return value.mod(limit).eq(0);default:return!1}},bigint=function(joi){return{type:`bigint`,base:joi.any(),coerce:{from:[`string`,`number`],method(value,helpers){if(typeof value==`bigint`)return{value};try{let asBig=big_default(value.toString());return asBig.eq(asBig.round(0))?{value:BigInt(asBig.toString())}:{value,errors:[helpers.error(`bigint.base`,{value:String(value)})]}}catch{return{value,errors:[helpers.error(`bigint.base`,{value:String(value)})]}}}},messages:messages$1,validate(value,{error}){return typeof value==`bigint`?{value}:{value,errors:error(`bigint.base`,{value:String(value)})}},rules:{compare:{method:!1,validate(value,helpers,{limit},{name:name$1,operator}){let big=big_default(value.toString()),threshold=big_default(limit.toString()),valid$2=compare$13(big,threshold,operator);return valid$2?value:helpers.error(`bigint.`+name$1,{limit:limit.toString(),value:value.toString()})},args:[{name:`limit`,ref:!0,assert:value=>[`bigint`,`number`,`string`].includes(typeof value),message:`must be a bigint`}]},greater:{method(limit){return this.$_addRule({name:`greater`,method:`compare`,args:{limit},operator:`>`})}},less:{method(limit){return this.$_addRule({name:`less`,method:`compare`,args:{limit},operator:`<`})}},max:{method(limit){return this.$_addRule({name:`max`,method:`compare`,args:{limit},operator:`<=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`compare`,args:{limit},operator:`>=`})}},multiple:{method(limit){return this.$_addRule({name:`multiple`,method:`compare`,args:{limit},operator:`multiple`})}},negative:{method(){return this.$_addRule(`negative`)},validate(value,helpers){return value>=0n?helpers.error(`bigint.negative`,{value:value.toString()}):value}},positive:{method(){return this.$_addRule(`positive`)},validate(value,helpers){return value<=0n?helpers.error(`bigint.positive`,{value:value.toString()}):value}}},cast:{string:{from:value=>typeof value==`bigint`,to(value){return value.toString()}}}}};var LuxonError=class extends Error{},InvalidDateTimeError=class extends LuxonError{constructor(reason){super(`Invalid DateTime: ${reason.toMessage()}`)}},InvalidIntervalError=class extends LuxonError{constructor(reason){super(`Invalid Interval: ${reason.toMessage()}`)}},InvalidDurationError=class extends LuxonError{constructor(reason){super(`Invalid Duration: ${reason.toMessage()}`)}},ConflictingSpecificationError=class extends LuxonError{},InvalidUnitError=class extends LuxonError{constructor(unit){super(`Invalid unit ${unit}`)}},InvalidArgumentError=class extends LuxonError{},ZoneIsAbstractError=class extends LuxonError{constructor(){super(`Zone is an abstract class`)}};const n=`numeric`,s=`short`,l=`long`,DATE_SHORT={year:n,month:n,day:n},DATE_MED={year:n,month:s,day:n},DATE_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s},DATE_FULL={year:n,month:l,day:n},DATE_HUGE={year:n,month:l,day:n,weekday:l},TIME_SIMPLE={hour:n,minute:n},TIME_WITH_SECONDS={hour:n,minute:n,second:n},TIME_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,timeZoneName:s},TIME_WITH_LONG_OFFSET={hour:n,minute:n,second:n,timeZoneName:l},TIME_24_SIMPLE={hour:n,minute:n,hourCycle:`h23`},TIME_24_WITH_SECONDS={hour:n,minute:n,second:n,hourCycle:`h23`},TIME_24_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,hourCycle:`h23`,timeZoneName:s},TIME_24_WITH_LONG_OFFSET={hour:n,minute:n,second:n,hourCycle:`h23`,timeZoneName:l},DATETIME_SHORT={year:n,month:n,day:n,hour:n,minute:n},DATETIME_SHORT_WITH_SECONDS={year:n,month:n,day:n,hour:n,minute:n,second:n},DATETIME_MED={year:n,month:s,day:n,hour:n,minute:n},DATETIME_MED_WITH_SECONDS={year:n,month:s,day:n,hour:n,minute:n,second:n},DATETIME_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s,hour:n,minute:n},DATETIME_FULL={year:n,month:l,day:n,hour:n,minute:n,timeZoneName:s},DATETIME_FULL_WITH_SECONDS={year:n,month:l,day:n,hour:n,minute:n,second:n,timeZoneName:s},DATETIME_HUGE={year:n,month:l,day:n,weekday:l,hour:n,minute:n,timeZoneName:l},DATETIME_HUGE_WITH_SECONDS={year:n,month:l,day:n,weekday:l,hour:n,minute:n,second:n,timeZoneName:l};var Zone=class{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(ts,opts){throw new ZoneIsAbstractError}formatOffset(ts,format){throw new ZoneIsAbstractError}offset(ts){throw new ZoneIsAbstractError}equals(otherZone){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}};let singleton$1=null;var SystemZone=class SystemZone extends Zone{static get instance(){return singleton$1===null&&(singleton$1=new SystemZone),singleton$1}get type(){return`system`}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(ts,{format,locale}){return parseZoneInfo(ts,format,locale)}formatOffset(ts,format){return formatOffset(this.offset(ts),format)}offset(ts){return-new Date(ts).getTimezoneOffset()}equals(otherZone){return otherZone.type===`system`}get isValid(){return!0}};const dtfCache=new Map;function makeDTF(zoneName){let dtf=dtfCache.get(zoneName);return dtf===void 0&&(dtf=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:zoneName,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,era:`short`}),dtfCache.set(zoneName,dtf)),dtf}const typeToPos={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(dtf,date){let formatted=dtf.format(date).replace(/\u200E/g,``),parsed=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(formatted),[,fMonth,fDay,fYear,fadOrBc,fHour,fMinute,fSecond]=parsed;return[fYear,fMonth,fDay,fadOrBc,fHour,fMinute,fSecond]}function partsOffset(dtf,date){let formatted=dtf.formatToParts(date),filled=[];for(let i$4=0;i$4<formatted.length;i$4++){let{type,value}=formatted[i$4],pos=typeToPos[type];type===`era`?filled[pos]=value:isUndefined(pos)||(filled[pos]=parseInt(value,10))}return filled}const ianaZoneCache=new Map;var IANAZone=class IANAZone extends Zone{static create(name$1){let zone=ianaZoneCache.get(name$1);return zone===void 0&&ianaZoneCache.set(name$1,zone=new IANAZone(name$1)),zone}static resetCache(){ianaZoneCache.clear(),dtfCache.clear()}static isValidSpecifier(s$2){return this.isValidZone(s$2)}static isValidZone(zone){if(!zone)return!1;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:zone}).format(),!0}catch{return!1}}constructor(name$1){super(),this.zoneName=name$1,this.valid=IANAZone.isValidZone(name$1)}get type(){return`iana`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(ts,{format,locale}){return parseZoneInfo(ts,format,locale,this.name)}formatOffset(ts,format){return formatOffset(this.offset(ts),format)}offset(ts){if(!this.valid)return NaN;let date=new Date(ts);if(isNaN(date))return NaN;let dtf=makeDTF(this.name),[year,month,day,adOrBc,hour,minute,second]=dtf.formatToParts?partsOffset(dtf,date):hackyOffset(dtf,date);adOrBc===`BC`&&(year=-Math.abs(year)+1);let adjustedHour=hour===24?0:hour,asUTC=objToLocalTS({year,month,day,hour:adjustedHour,minute,second,millisecond:0}),asTS=+date,over=asTS%1e3;return asTS-=over>=0?over:1e3+over,(asUTC-asTS)/(60*1e3)}equals(otherZone){return otherZone.type===`iana`&&otherZone.name===this.name}get isValid(){return this.valid}};let intlLFCache={};function getCachedLF(locString,opts={}){let key=JSON.stringify([locString,opts]),dtf=intlLFCache[key];return dtf||(dtf=new Intl.ListFormat(locString,opts),intlLFCache[key]=dtf),dtf}const intlDTCache=new Map;function getCachedDTF(locString,opts={}){let key=JSON.stringify([locString,opts]),dtf=intlDTCache.get(key);return dtf===void 0&&(dtf=new Intl.DateTimeFormat(locString,opts),intlDTCache.set(key,dtf)),dtf}const intlNumCache=new Map;function getCachedINF(locString,opts={}){let key=JSON.stringify([locString,opts]),inf=intlNumCache.get(key);return inf===void 0&&(inf=new Intl.NumberFormat(locString,opts),intlNumCache.set(key,inf)),inf}const intlRelCache=new Map;function getCachedRTF(locString,opts={}){let{base,...cacheKeyOpts}=opts,key=JSON.stringify([locString,cacheKeyOpts]),inf=intlRelCache.get(key);return inf===void 0&&(inf=new Intl.RelativeTimeFormat(locString,opts),intlRelCache.set(key,inf)),inf}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache)}const intlResolvedOptionsCache=new Map;function getCachedIntResolvedOptions(locString){let opts=intlResolvedOptionsCache.get(locString);return opts===void 0&&(opts=new Intl.DateTimeFormat(locString).resolvedOptions(),intlResolvedOptionsCache.set(locString,opts)),opts}const weekInfoCache=new Map;function getCachedWeekInfo(locString){let data=weekInfoCache.get(locString);if(!data){let locale=new Intl.Locale(locString);data=`getWeekInfo`in locale?locale.getWeekInfo():locale.weekInfo,`minimalDays`in data||(data={...fallbackWeekSettings,...data}),weekInfoCache.set(locString,data)}return data}function parseLocaleString(localeStr){let xIndex=localeStr.indexOf(`-x-`);xIndex!==-1&&(localeStr=localeStr.substring(0,xIndex));let uIndex=localeStr.indexOf(`-u-`);if(uIndex===-1)return[localeStr];{let options,selectedStr;try{options=getCachedDTF(localeStr).resolvedOptions(),selectedStr=localeStr}catch{let smaller=localeStr.substring(0,uIndex);options=getCachedDTF(smaller).resolvedOptions(),selectedStr=smaller}let{numberingSystem,calendar}=options;return[selectedStr,numberingSystem,calendar]}}function intlConfigString(localeStr,numberingSystem,outputCalendar){return outputCalendar||numberingSystem?(localeStr.includes(`-u-`)||(localeStr+=`-u`),outputCalendar&&(localeStr+=`-ca-${outputCalendar}`),numberingSystem&&(localeStr+=`-nu-${numberingSystem}`),localeStr):localeStr}function mapMonths(f){let ms=[];for(let i$4=1;i$4<=12;i$4++){let dt=DateTime.utc(2009,i$4,1);ms.push(f(dt))}return ms}function mapWeekdays(f){let ms=[];for(let i$4=1;i$4<=7;i$4++){let dt=DateTime.utc(2016,11,13+i$4);ms.push(f(dt))}return ms}function listStuff(loc,length,englishFn,intlFn){let mode=loc.listingMode();return mode===`error`?null:mode===`en`?englishFn(length):intlFn(length)}function supportsFastNumbers(loc){return loc.numberingSystem&&loc.numberingSystem!==`latn`?!1:loc.numberingSystem===`latn`||!loc.locale||loc.locale.startsWith(`en`)||getCachedIntResolvedOptions(loc.locale).numberingSystem===`latn`}var PolyNumberFormatter=class{constructor(intl,forceSimple,opts){this.padTo=opts.padTo||0,this.floor=opts.floor||!1;let{padTo,floor:floor$1,...otherOpts}=opts;if(!forceSimple||Object.keys(otherOpts).length>0){let intlOpts={useGrouping:!1,...opts};opts.padTo>0&&(intlOpts.minimumIntegerDigits=opts.padTo),this.inf=getCachedINF(intl,intlOpts)}}format(i$4){if(this.inf){let fixed=this.floor?Math.floor(i$4):i$4;return this.inf.format(fixed)}else{let fixed=this.floor?Math.floor(i$4):roundTo(i$4,3);return padStart(fixed,this.padTo)}}},PolyDateFormatter=class{constructor(dt,intl,opts){this.opts=opts,this.originalZone=void 0;let z$1;if(this.opts.timeZone)this.dt=dt;else if(dt.zone.type===`fixed`){let gmtOffset=-1*(dt.offset/60),offsetZ=gmtOffset>=0?`Etc/GMT+${gmtOffset}`:`Etc/GMT${gmtOffset}`;dt.offset!==0&&IANAZone.create(offsetZ).valid?(z$1=offsetZ,this.dt=dt):(z$1=`UTC`,this.dt=dt.offset===0?dt:dt.setZone(`UTC`).plus({minutes:dt.offset}),this.originalZone=dt.zone)}else dt.zone.type===`system`?this.dt=dt:dt.zone.type===`iana`?(this.dt=dt,z$1=dt.zone.name):(z$1=`UTC`,this.dt=dt.setZone(`UTC`).plus({minutes:dt.offset}),this.originalZone=dt.zone);let intlOpts={...this.opts};intlOpts.timeZone=intlOpts.timeZone||z$1,this.dtf=getCachedDTF(intl,intlOpts)}format(){return this.originalZone?this.formatToParts().map(({value})=>value).join(``):this.dtf.format(this.dt.toJSDate())}formatToParts(){let parts=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?parts.map(part=>{if(part.type===`timeZoneName`){let offsetName=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...part,value:offsetName}}else return part}):parts}resolvedOptions(){return this.dtf.resolvedOptions()}},PolyRelFormatter=class{constructor(intl,isEnglish,opts){this.opts={style:`long`,...opts},!isEnglish&&hasRelative()&&(this.rtf=getCachedRTF(intl,opts))}format(count,unit){return this.rtf?this.rtf.format(count,unit):formatRelativeTime(unit,count,this.opts.numeric,this.opts.style!==`long`)}formatToParts(count,unit){return this.rtf?this.rtf.formatToParts(count,unit):[]}};const fallbackWeekSettings={firstDay:1,minimalDays:4,weekend:[6,7]};var Locale=class Locale{static fromOpts(opts){return Locale.create(opts.locale,opts.numberingSystem,opts.outputCalendar,opts.weekSettings,opts.defaultToEN)}static create(locale,numberingSystem,outputCalendar,weekSettings,defaultToEN=!1){let specifiedLocale=locale||Settings.defaultLocale,localeR=specifiedLocale||(defaultToEN?`en-US`:systemLocale()),numberingSystemR=numberingSystem||Settings.defaultNumberingSystem,outputCalendarR=outputCalendar||Settings.defaultOutputCalendar,weekSettingsR=validateWeekSettings(weekSettings)||Settings.defaultWeekSettings;return new Locale(localeR,numberingSystemR,outputCalendarR,weekSettingsR,specifiedLocale)}static resetCache(){sysLocaleCache=null,intlDTCache.clear(),intlNumCache.clear(),intlRelCache.clear(),intlResolvedOptionsCache.clear(),weekInfoCache.clear()}static fromObject({locale,numberingSystem,outputCalendar,weekSettings}={}){return Locale.create(locale,numberingSystem,outputCalendar,weekSettings)}constructor(locale,numbering,outputCalendar,weekSettings,specifiedLocale){let[parsedLocale,parsedNumberingSystem,parsedOutputCalendar]=parseLocaleString(locale);this.locale=parsedLocale,this.numberingSystem=numbering||parsedNumberingSystem||null,this.outputCalendar=outputCalendar||parsedOutputCalendar||null,this.weekSettings=weekSettings,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=specifiedLocale,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached??=supportsFastNumbers(this),this.fastNumbersCached}listingMode(){let isActuallyEn=this.isEnglish(),hasNoWeirdness=(this.numberingSystem===null||this.numberingSystem===`latn`)&&(this.outputCalendar===null||this.outputCalendar===`gregory`);return isActuallyEn&&hasNoWeirdness?`en`:`intl`}clone(alts){return!alts||Object.getOwnPropertyNames(alts).length===0?this:Locale.create(alts.locale||this.specifiedLocale,alts.numberingSystem||this.numberingSystem,alts.outputCalendar||this.outputCalendar,validateWeekSettings(alts.weekSettings)||this.weekSettings,alts.defaultToEN||!1)}redefaultToEN(alts={}){return this.clone({...alts,defaultToEN:!0})}redefaultToSystem(alts={}){return this.clone({...alts,defaultToEN:!1})}months(length,format=!1){return listStuff(this,length,months,()=>{let monthSpecialCase=this.intl===`ja`||this.intl.startsWith(`ja-`);format&=!monthSpecialCase;let intl=format?{month:length,day:`numeric`}:{month:length},formatStr=format?`format`:`standalone`;if(!this.monthsCache[formatStr][length]){let mapper=monthSpecialCase?dt=>this.dtFormatter(dt,intl).format():dt=>this.extract(dt,intl,`month`);this.monthsCache[formatStr][length]=mapMonths(mapper)}return this.monthsCache[formatStr][length]})}weekdays(length,format=!1){return listStuff(this,length,weekdays,()=>{let intl=format?{weekday:length,year:`numeric`,month:`long`,day:`numeric`}:{weekday:length},formatStr=format?`format`:`standalone`;return this.weekdaysCache[formatStr][length]||(this.weekdaysCache[formatStr][length]=mapWeekdays(dt=>this.extract(dt,intl,`weekday`))),this.weekdaysCache[formatStr][length]})}meridiems(){return listStuff(this,void 0,()=>meridiems,()=>{if(!this.meridiemCache){let intl={hour:`numeric`,hourCycle:`h12`};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(dt=>this.extract(dt,intl,`dayperiod`))}return this.meridiemCache})}eras(length){return listStuff(this,length,eras,()=>{let intl={era:length};return this.eraCache[length]||(this.eraCache[length]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(dt=>this.extract(dt,intl,`era`))),this.eraCache[length]})}extract(dt,intlOpts,field){let df=this.dtFormatter(dt,intlOpts),results=df.formatToParts(),matching=results.find(m=>m.type.toLowerCase()===field);return matching?matching.value:null}numberFormatter(opts={}){return new PolyNumberFormatter(this.intl,opts.forceSimple||this.fastNumbers,opts)}dtFormatter(dt,intlOpts={}){return new PolyDateFormatter(dt,this.intl,intlOpts)}relFormatter(opts={}){return new PolyRelFormatter(this.intl,this.isEnglish(),opts)}listFormatter(opts={}){return getCachedLF(this.intl,opts)}isEnglish(){return this.locale===`en`||this.locale.toLowerCase()===`en-us`||getCachedIntResolvedOptions(this.intl).locale.startsWith(`en-us`)}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo()?getCachedWeekInfo(this.locale):fallbackWeekSettings}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(other){return this.locale===other.locale&&this.numberingSystem===other.numberingSystem&&this.outputCalendar===other.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};let singleton=null;var FixedOffsetZone=class FixedOffsetZone extends Zone{static get utcInstance(){return singleton===null&&(singleton=new FixedOffsetZone(0)),singleton}static instance(offset$2){return offset$2===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(offset$2)}static parseSpecifier(s$2){if(s$2){let r=s$2.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new FixedOffsetZone(signedOffset(r[1],r[2]))}return null}constructor(offset$2){super(),this.fixed=offset$2}get type(){return`fixed`}get name(){return this.fixed===0?`UTC`:`UTC${formatOffset(this.fixed,`narrow`)}`}get ianaName(){return this.fixed===0?`Etc/UTC`:`Etc/GMT${formatOffset(-this.fixed,`narrow`)}`}offsetName(){return this.name}formatOffset(ts,format){return formatOffset(this.fixed,format)}get isUniversal(){return!0}offset(){return this.fixed}equals(otherZone){return otherZone.type===`fixed`&&otherZone.fixed===this.fixed}get isValid(){return!0}},InvalidZone=class extends Zone{constructor(zoneName){super(),this.zoneName=zoneName}get type(){return`invalid`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return``}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function normalizeZone(input,defaultZone$2){if(isUndefined(input)||input===null)return defaultZone$2;if(input instanceof Zone)return input;if(isString(input)){let lowered=input.toLowerCase();return lowered===`default`?defaultZone$2:lowered===`local`||lowered===`system`?SystemZone.instance:lowered===`utc`||lowered===`gmt`?FixedOffsetZone.utcInstance:FixedOffsetZone.parseSpecifier(lowered)||IANAZone.create(input)}else if(isNumber(input))return FixedOffsetZone.instance(input);else if(typeof input==`object`&&`offset`in input&&typeof input.offset==`function`)return input;else return new InvalidZone(input)}const numberingSystems={arab:`[٠-٩]`,arabext:`[۰-۹]`,bali:`[᭐-᭙]`,beng:`[০-৯]`,deva:`[०-९]`,fullwide:`[0-9]`,gujr:`[૦-૯]`,hanidec:`[〇|一|二|三|四|五|六|七|八|九]`,khmr:`[០-៩]`,knda:`[೦-೯]`,laoo:`[໐-໙]`,limb:`[᥆-᥏]`,mlym:`[൦-൯]`,mong:`[᠐-᠙]`,mymr:`[၀-၉]`,orya:`[୦-୯]`,tamldec:`[௦-௯]`,telu:`[౦-౯]`,thai:`[๐-๙]`,tibt:`[༠-༩]`,latn:`\\d`},numberingSystemsUTF16={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,``).split(``);function parseDigits(str){let value=parseInt(str,10);if(isNaN(value)){value=``;for(let i$4=0;i$4<str.length;i$4++){let code$2=str.charCodeAt(i$4);if(str[i$4].search(numberingSystems.hanidec)!==-1)value+=hanidecChars.indexOf(str[i$4]);else for(let key in numberingSystemsUTF16){let[min$1,max$3]=numberingSystemsUTF16[key];code$2>=min$1&&code$2<=max$3&&(value+=code$2-min$1)}}return parseInt(value,10)}else return value}const digitRegexCache=new Map;function resetDigitRegexCache(){digitRegexCache.clear()}function digitRegex({numberingSystem},append=``){let ns=numberingSystem||`latn`,appendCache=digitRegexCache.get(ns);appendCache===void 0&&(appendCache=new Map,digitRegexCache.set(ns,appendCache));let regex=appendCache.get(append);return regex===void 0&&(regex=RegExp(`${numberingSystems[ns]}${append}`),appendCache.set(append,regex)),regex}let now=()=>Date.now(),defaultZone=`system`,defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=60,throwOnInvalid,defaultWeekSettings=null;var Settings=class{static get now(){return now}static set now(n$2){now=n$2}static set defaultZone(zone){defaultZone=zone}static get defaultZone(){return normalizeZone(defaultZone,SystemZone.instance)}static get defaultLocale(){return defaultLocale}static set defaultLocale(locale){defaultLocale=locale}static get defaultNumberingSystem(){return defaultNumberingSystem}static set defaultNumberingSystem(numberingSystem){defaultNumberingSystem=numberingSystem}static get defaultOutputCalendar(){return defaultOutputCalendar}static set defaultOutputCalendar(outputCalendar){defaultOutputCalendar=outputCalendar}static get defaultWeekSettings(){return defaultWeekSettings}static set defaultWeekSettings(weekSettings){defaultWeekSettings=validateWeekSettings(weekSettings)}static get twoDigitCutoffYear(){return twoDigitCutoffYear}static set twoDigitCutoffYear(cutoffYear){twoDigitCutoffYear=cutoffYear%100}static get throwOnInvalid(){return throwOnInvalid}static set throwOnInvalid(t$5){throwOnInvalid=t$5}static resetCaches(){Locale.resetCache(),IANAZone.resetCache(),DateTime.resetCache(),resetDigitRegexCache()}},Invalid=class{constructor(reason,explanation){this.reason=reason,this.explanation=explanation}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(unit,value){return new Invalid(`unit out of range`,`you specified ${value} (of type ${typeof value}) as a ${unit}, which is invalid`)}function dayOfWeek(year,month,day){let d=new Date(Date.UTC(year,month-1,day));year<100&&year>=0&&d.setUTCFullYear(d.getUTCFullYear()-1900);let js=d.getUTCDay();return js===0?7:js}function computeOrdinal(year,month,day){return day+(isLeapYear(year)?leapLadder:nonLeapLadder)[month-1]}function uncomputeOrdinal(year,ordinal){let table=isLeapYear(year)?leapLadder:nonLeapLadder,month0=table.findIndex(i$4=>i$4<ordinal),day=ordinal-table[month0];return{month:month0+1,day}}function isoWeekdayToLocal(isoWeekday,startOfWeek){return(isoWeekday-startOfWeek+7)%7+1}function gregorianToWeek(gregObj,minDaysInFirstWeek=4,startOfWeek=1){let{year,month,day}=gregObj,ordinal=computeOrdinal(year,month,day),weekday=isoWeekdayToLocal(dayOfWeek(year,month,day),startOfWeek),weekNumber=Math.floor((ordinal-weekday+14-minDaysInFirstWeek)/7),weekYear;return weekNumber<1?(weekYear=year-1,weekNumber=weeksInWeekYear(weekYear,minDaysInFirstWeek,startOfWeek)):weekNumber>weeksInWeekYear(year,minDaysInFirstWeek,startOfWeek)?(weekYear=year+1,weekNumber=1):weekYear=year,{weekYear,weekNumber,weekday,...timeObject(gregObj)}}function weekToGregorian(weekData,minDaysInFirstWeek=4,startOfWeek=1){let{weekYear,weekNumber,weekday}=weekData,weekdayOfJan4=isoWeekdayToLocal(dayOfWeek(weekYear,1,minDaysInFirstWeek),startOfWeek),yearInDays=daysInYear(weekYear),ordinal=weekNumber*7+weekday-weekdayOfJan4-7+minDaysInFirstWeek,year;ordinal<1?(year=weekYear-1,ordinal+=daysInYear(year)):ordinal>yearInDays?(year=weekYear+1,ordinal-=daysInYear(weekYear)):year=weekYear;let{month,day}=uncomputeOrdinal(year,ordinal);return{year,month,day,...timeObject(weekData)}}function gregorianToOrdinal(gregData){let{year,month,day}=gregData,ordinal=computeOrdinal(year,month,day);return{year,ordinal,...timeObject(gregData)}}function ordinalToGregorian(ordinalData){let{year,ordinal}=ordinalData,{month,day}=uncomputeOrdinal(year,ordinal);return{year,month,day,...timeObject(ordinalData)}}function usesLocalWeekValues(obj,loc){let hasLocaleWeekData=!isUndefined(obj.localWeekday)||!isUndefined(obj.localWeekNumber)||!isUndefined(obj.localWeekYear);if(hasLocaleWeekData){let hasIsoWeekData=!isUndefined(obj.weekday)||!isUndefined(obj.weekNumber)||!isUndefined(obj.weekYear);if(hasIsoWeekData)throw new ConflictingSpecificationError(`Cannot mix locale-based week fields with ISO-based week fields`);return isUndefined(obj.localWeekday)||(obj.weekday=obj.localWeekday),isUndefined(obj.localWeekNumber)||(obj.weekNumber=obj.localWeekNumber),isUndefined(obj.localWeekYear)||(obj.weekYear=obj.localWeekYear),delete obj.localWeekday,delete obj.localWeekNumber,delete obj.localWeekYear,{minDaysInFirstWeek:loc.getMinDaysInFirstWeek(),startOfWeek:loc.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData(obj,minDaysInFirstWeek=4,startOfWeek=1){let validYear=isInteger(obj.weekYear),validWeek=integerBetween(obj.weekNumber,1,weeksInWeekYear(obj.weekYear,minDaysInFirstWeek,startOfWeek)),validWeekday=integerBetween(obj.weekday,1,7);return validYear?validWeek?validWeekday?!1:unitOutOfRange(`weekday`,obj.weekday):unitOutOfRange(`week`,obj.weekNumber):unitOutOfRange(`weekYear`,obj.weekYear)}function hasInvalidOrdinalData(obj){let validYear=isInteger(obj.year),validOrdinal=integerBetween(obj.ordinal,1,daysInYear(obj.year));return validYear?validOrdinal?!1:unitOutOfRange(`ordinal`,obj.ordinal):unitOutOfRange(`year`,obj.year)}function hasInvalidGregorianData(obj){let validYear=isInteger(obj.year),validMonth=integerBetween(obj.month,1,12),validDay=integerBetween(obj.day,1,daysInMonth(obj.year,obj.month));return validYear?validMonth?validDay?!1:unitOutOfRange(`day`,obj.day):unitOutOfRange(`month`,obj.month):unitOutOfRange(`year`,obj.year)}function hasInvalidTimeData(obj){let{hour,minute,second,millisecond}=obj,validHour=integerBetween(hour,0,23)||hour===24&&minute===0&&second===0&&millisecond===0,validMinute=integerBetween(minute,0,59),validSecond=integerBetween(second,0,59),validMillisecond=integerBetween(millisecond,0,999);return validHour?validMinute?validSecond?validMillisecond?!1:unitOutOfRange(`millisecond`,millisecond):unitOutOfRange(`second`,second):unitOutOfRange(`minute`,minute):unitOutOfRange(`hour`,hour)}function isUndefined(o){return o===void 0}function isNumber(o){return typeof o==`number`}function isInteger(o){return typeof o==`number`&&o%1==0}function isString(o){return typeof o==`string`}function isDate(o){return Object.prototype.toString.call(o)===`[object Date]`}function hasRelative(){try{return typeof Intl<`u`&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo(){try{return typeof Intl<`u`&&!!Intl.Locale&&(`weekInfo`in Intl.Locale.prototype||`getWeekInfo`in Intl.Locale.prototype)}catch{return!1}}function maybeArray(thing){return Array.isArray(thing)?thing:[thing]}function bestBy(arr,by,compare$14){if(arr.length!==0)return arr.reduce((best,next)=>{let pair=[by(next),next];return best&&compare$14(best[0],pair[0])===best[0]?best:pair},null)[1]}function pick(obj,keys){return keys.reduce((a,k)=>(a[k]=obj[k],a),{})}function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}function validateWeekSettings(settings){if(settings==null)return null;if(typeof settings!=`object`)throw new InvalidArgumentError(`Week settings must be an object`);if(!integerBetween(settings.firstDay,1,7)||!integerBetween(settings.minimalDays,1,7)||!Array.isArray(settings.weekend)||settings.weekend.some(v=>!integerBetween(v,1,7)))throw new InvalidArgumentError(`Invalid week settings`);return{firstDay:settings.firstDay,minimalDays:settings.minimalDays,weekend:Array.from(settings.weekend)}}function integerBetween(thing,bottom,top){return isInteger(thing)&&thing>=bottom&&thing<=top}function floorMod(x$1,n$2){return x$1-n$2*Math.floor(x$1/n$2)}function padStart(input,n$2=2){let isNeg=input<0,padded;return padded=isNeg?`-`+(``+-input).padStart(n$2,`0`):(``+input).padStart(n$2,`0`),padded}function parseInteger(string){if(!(isUndefined(string)||string===null||string===``))return parseInt(string,10)}function parseFloating(string){if(!(isUndefined(string)||string===null||string===``))return parseFloat(string)}function parseMillis(fraction){if(!(isUndefined(fraction)||fraction===null||fraction===``)){let f=parseFloat(`0.`+fraction)*1e3;return Math.floor(f)}}function roundTo(number,digits,rounding=`round`){let factor=10**digits;switch(rounding){case`expand`:return number>0?Math.ceil(number*factor)/factor:Math.floor(number*factor)/factor;case`trunc`:return Math.trunc(number*factor)/factor;case`round`:return Math.round(number*factor)/factor;case`floor`:return Math.floor(number*factor)/factor;case`ceil`:return Math.ceil(number*factor)/factor;default:throw RangeError(`Value rounding ${rounding} is out of range`)}}function isLeapYear(year){return year%4==0&&(year%100!=0||year%400==0)}function daysInYear(year){return isLeapYear(year)?366:365}function daysInMonth(year,month){let modMonth=floorMod(month-1,12)+1,modYear=year+(month-modMonth)/12;return modMonth===2?isLeapYear(modYear)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][modMonth-1]}function objToLocalTS(obj){let d=Date.UTC(obj.year,obj.month-1,obj.day,obj.hour,obj.minute,obj.second,obj.millisecond);return obj.year<100&&obj.year>=0&&(d=new Date(d),d.setUTCFullYear(obj.year,obj.month-1,obj.day)),+d}function firstWeekOffset(year,minDaysInFirstWeek,startOfWeek){let fwdlw=isoWeekdayToLocal(dayOfWeek(year,1,minDaysInFirstWeek),startOfWeek);return-fwdlw+minDaysInFirstWeek-1}function weeksInWeekYear(weekYear,minDaysInFirstWeek=4,startOfWeek=1){let weekOffset=firstWeekOffset(weekYear,minDaysInFirstWeek,startOfWeek),weekOffsetNext=firstWeekOffset(weekYear+1,minDaysInFirstWeek,startOfWeek);return(daysInYear(weekYear)-weekOffset+weekOffsetNext)/7}function untruncateYear(year){return year>99?year:year>Settings.twoDigitCutoffYear?1900+year:2e3+year}function parseZoneInfo(ts,offsetFormat,locale,timeZone=null){let date=new Date(ts),intlOpts={hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`};timeZone&&(intlOpts.timeZone=timeZone);let modified={timeZoneName:offsetFormat,...intlOpts},parsed=new Intl.DateTimeFormat(locale,modified).formatToParts(date).find(m=>m.type.toLowerCase()===`timezonename`);return parsed?parsed.value:null}function signedOffset(offHourStr,offMinuteStr){let offHour=parseInt(offHourStr,10);Number.isNaN(offHour)&&(offHour=0);let offMin=parseInt(offMinuteStr,10)||0,offMinSigned=offHour<0||Object.is(offHour,-0)?-offMin:offMin;return offHour*60+offMinSigned}function asNumber(value){let numericValue=Number(value);if(typeof value==`boolean`||value===``||!Number.isFinite(numericValue))throw new InvalidArgumentError(`Invalid unit value ${value}`);return numericValue}function normalizeObject(obj,normalizer){let normalized={};for(let u in obj)if(hasOwnProperty(obj,u)){let v=obj[u];if(v==null)continue;normalized[normalizer(u)]=asNumber(v)}return normalized}function formatOffset(offset$2,format){let hours=Math.trunc(Math.abs(offset$2/60)),minutes=Math.trunc(Math.abs(offset$2%60)),sign$1=offset$2>=0?`+`:`-`;switch(format){case`short`:return`${sign$1}${padStart(hours,2)}:${padStart(minutes,2)}`;case`narrow`:return`${sign$1}${hours}${minutes>0?`:${minutes}`:``}`;case`techie`:return`${sign$1}${padStart(hours,2)}${padStart(minutes,2)}`;default:throw RangeError(`Value format ${format} is out of range for property format`)}}function timeObject(obj){return pick(obj,[`hour`,`minute`,`second`,`millisecond`])}const monthsLong=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],monthsNarrow=[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`];function months(length){switch(length){case`narrow`:return[...monthsNarrow];case`short`:return[...monthsShort];case`long`:return[...monthsLong];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`];case`2-digit`:return[`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`,`12`];default:return null}}const weekdaysLong=[`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],weekdaysShort=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],weekdaysNarrow=[`M`,`T`,`W`,`T`,`F`,`S`,`S`];function weekdays(length){switch(length){case`narrow`:return[...weekdaysNarrow];case`short`:return[...weekdaysShort];case`long`:return[...weekdaysLong];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`];default:return null}}const meridiems=[`AM`,`PM`],erasLong=[`Before Christ`,`Anno Domini`],erasShort=[`BC`,`AD`],erasNarrow=[`B`,`A`];function eras(length){switch(length){case`narrow`:return[...erasNarrow];case`short`:return[...erasShort];case`long`:return[...erasLong];default:return null}}function meridiemForDateTime(dt){return meridiems[dt.hour<12?0:1]}function weekdayForDateTime(dt,length){return weekdays(length)[dt.weekday-1]}function monthForDateTime(dt,length){return months(length)[dt.month-1]}function eraForDateTime(dt,length){return eras(length)[dt.year<0?0:1]}function formatRelativeTime(unit,count,numeric$1=`always`,narrow=!1){let units={years:[`year`,`yr.`],quarters:[`quarter`,`qtr.`],months:[`month`,`mo.`],weeks:[`week`,`wk.`],days:[`day`,`day`,`days`],hours:[`hour`,`hr.`],minutes:[`minute`,`min.`],seconds:[`second`,`sec.`]},lastable=[`hours`,`minutes`,`seconds`].indexOf(unit)===-1;if(numeric$1===`auto`&&lastable){let isDay=unit===`days`;switch(count){case 1:return isDay?`tomorrow`:`next ${units[unit][0]}`;case-1:return isDay?`yesterday`:`last ${units[unit][0]}`;case 0:return isDay?`today`:`this ${units[unit][0]}`}}let isInPast=Object.is(count,-0)||count<0,fmtValue=Math.abs(count),singular=fmtValue===1,lilUnits=units[unit],fmtUnit=narrow?singular?lilUnits[1]:lilUnits[2]||lilUnits[1]:singular?units[unit][0]:unit;return isInPast?`${fmtValue} ${fmtUnit} ago`:`in ${fmtValue} ${fmtUnit}`}function stringifyTokens(splits,tokenToString){let s$2=``;for(let token of splits)token.literal?s$2+=token.val:s$2+=tokenToString(token.val);return s$2}const macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS};var Formatter=class Formatter{static create(locale,opts={}){return new Formatter(locale,opts)}static parseFormat(fmt){let current=null,currentFull=``,bracketed=!1,splits=[];for(let i$4=0;i$4<fmt.length;i$4++){let c$1=fmt.charAt(i$4);c$1===`'`?((currentFull.length>0||bracketed)&&splits.push({literal:bracketed||/^\s+$/.test(currentFull),val:currentFull===``?`'`:currentFull}),current=null,currentFull=``,bracketed=!bracketed):bracketed||c$1===current?currentFull+=c$1:(currentFull.length>0&&splits.push({literal:/^\s+$/.test(currentFull),val:currentFull}),currentFull=c$1,current=c$1)}return currentFull.length>0&&splits.push({literal:bracketed||/^\s+$/.test(currentFull),val:currentFull}),splits}static macroTokenToFormatOpts(token){return macroTokenToFormatOpts[token]}constructor(locale,formatOpts){this.opts=formatOpts,this.loc=locale,this.systemLoc=null}formatWithSystemDefault(dt,opts){this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem());let df=this.systemLoc.dtFormatter(dt,{...this.opts,...opts});return df.format()}dtFormatter(dt,opts={}){return this.loc.dtFormatter(dt,{...this.opts,...opts})}formatDateTime(dt,opts){return this.dtFormatter(dt,opts).format()}formatDateTimeParts(dt,opts){return this.dtFormatter(dt,opts).formatToParts()}formatInterval(interval,opts){let df=this.dtFormatter(interval.start,opts);return df.dtf.formatRange(interval.start.toJSDate(),interval.end.toJSDate())}resolvedOptions(dt,opts){return this.dtFormatter(dt,opts).resolvedOptions()}num(n$2,p=0,signDisplay=void 0){if(this.opts.forceSimple)return padStart(n$2,p);let opts={...this.opts};return p>0&&(opts.padTo=p),signDisplay&&(opts.signDisplay=signDisplay),this.loc.numberFormatter(opts).format(n$2)}formatDateTimeFromString(dt,fmt){let knownEnglish=this.loc.listingMode()===`en`,useDateTimeFormatter=this.loc.outputCalendar&&this.loc.outputCalendar!==`gregory`,string=(opts,extract)=>this.loc.extract(dt,opts,extract),formatOffset$2=opts=>dt.isOffsetFixed&&dt.offset===0&&opts.allowZ?`Z`:dt.isValid?dt.zone.formatOffset(dt.ts,opts.format):``,meridiem=()=>knownEnglish?meridiemForDateTime(dt):string({hour:`numeric`,hourCycle:`h12`},`dayperiod`),month=(length,standalone)=>knownEnglish?monthForDateTime(dt,length):string(standalone?{month:length}:{month:length,day:`numeric`},`month`),weekday=(length,standalone)=>knownEnglish?weekdayForDateTime(dt,length):string(standalone?{weekday:length}:{weekday:length,month:`long`,day:`numeric`},`weekday`),maybeMacro=token=>{let formatOpts=Formatter.macroTokenToFormatOpts(token);return formatOpts?this.formatWithSystemDefault(dt,formatOpts):token},era=length=>knownEnglish?eraForDateTime(dt,length):string({era:length},`era`),tokenToString=token=>{switch(token){case`S`:return this.num(dt.millisecond);case`u`:case`SSS`:return this.num(dt.millisecond,3);case`s`:return this.num(dt.second);case`ss`:return this.num(dt.second,2);case`uu`:return this.num(Math.floor(dt.millisecond/10),2);case`uuu`:return this.num(Math.floor(dt.millisecond/100));case`m`:return this.num(dt.minute);case`mm`:return this.num(dt.minute,2);case`h`:return this.num(dt.hour%12==0?12:dt.hour%12);case`hh`:return this.num(dt.hour%12==0?12:dt.hour%12,2);case`H`:return this.num(dt.hour);case`HH`:return this.num(dt.hour,2);case`Z`:return formatOffset$2({format:`narrow`,allowZ:this.opts.allowZ});case`ZZ`:return formatOffset$2({format:`short`,allowZ:this.opts.allowZ});case`ZZZ`:return formatOffset$2({format:`techie`,allowZ:this.opts.allowZ});case`ZZZZ`:return dt.zone.offsetName(dt.ts,{format:`short`,locale:this.loc.locale});case`ZZZZZ`:return dt.zone.offsetName(dt.ts,{format:`long`,locale:this.loc.locale});case`z`:return dt.zoneName;case`a`:return meridiem();case`d`:return useDateTimeFormatter?string({day:`numeric`},`day`):this.num(dt.day);case`dd`:return useDateTimeFormatter?string({day:`2-digit`},`day`):this.num(dt.day,2);case`c`:return this.num(dt.weekday);case`ccc`:return weekday(`short`,!0);case`cccc`:return weekday(`long`,!0);case`ccccc`:return weekday(`narrow`,!0);case`E`:return this.num(dt.weekday);case`EEE`:return weekday(`short`,!1);case`EEEE`:return weekday(`long`,!1);case`EEEEE`:return weekday(`narrow`,!1);case`L`:return useDateTimeFormatter?string({month:`numeric`,day:`numeric`},`month`):this.num(dt.month);case`LL`:return useDateTimeFormatter?string({month:`2-digit`,day:`numeric`},`month`):this.num(dt.month,2);case`LLL`:return month(`short`,!0);case`LLLL`:return month(`long`,!0);case`LLLLL`:return month(`narrow`,!0);case`M`:return useDateTimeFormatter?string({month:`numeric`},`month`):this.num(dt.month);case`MM`:return useDateTimeFormatter?string({month:`2-digit`},`month`):this.num(dt.month,2);case`MMM`:return month(`short`,!1);case`MMMM`:return month(`long`,!1);case`MMMMM`:return month(`narrow`,!1);case`y`:return useDateTimeFormatter?string({year:`numeric`},`year`):this.num(dt.year);case`yy`:return useDateTimeFormatter?string({year:`2-digit`},`year`):this.num(dt.year.toString().slice(-2),2);case`yyyy`:return useDateTimeFormatter?string({year:`numeric`},`year`):this.num(dt.year,4);case`yyyyyy`:return useDateTimeFormatter?string({year:`numeric`},`year`):this.num(dt.year,6);case`G`:return era(`short`);case`GG`:return era(`long`);case`GGGGG`:return era(`narrow`);case`kk`:return this.num(dt.weekYear.toString().slice(-2),2);case`kkkk`:return this.num(dt.weekYear,4);case`W`:return this.num(dt.weekNumber);case`WW`:return this.num(dt.weekNumber,2);case`n`:return this.num(dt.localWeekNumber);case`nn`:return this.num(dt.localWeekNumber,2);case`ii`:return this.num(dt.localWeekYear.toString().slice(-2),2);case`iiii`:return this.num(dt.localWeekYear,4);case`o`:return this.num(dt.ordinal);case`ooo`:return this.num(dt.ordinal,3);case`q`:return this.num(dt.quarter);case`qq`:return this.num(dt.quarter,2);case`X`:return this.num(Math.floor(dt.ts/1e3));case`x`:return this.num(dt.ts);default:return maybeMacro(token)}};return stringifyTokens(Formatter.parseFormat(fmt),tokenToString)}formatDurationFromString(dur,fmt){let invertLargest=this.opts.signMode===`negativeLargestOnly`?-1:1,tokenToField=token=>{switch(token[0]){case`S`:return`milliseconds`;case`s`:return`seconds`;case`m`:return`minutes`;case`h`:return`hours`;case`d`:return`days`;case`w`:return`weeks`;case`M`:return`months`;case`y`:return`years`;default:return null}},tokenToString=(lildur,info)=>token=>{let mapped=tokenToField(token);if(mapped){let inversionFactor=info.isNegativeDuration&&mapped!==info.largestUnit?invertLargest:1,signDisplay;return signDisplay=this.opts.signMode===`negativeLargestOnly`&&mapped!==info.largestUnit?`never`:this.opts.signMode===`all`?`always`:`auto`,this.num(lildur.get(mapped)*inversionFactor,token.length,signDisplay)}else return token},tokens=Formatter.parseFormat(fmt),realTokens=tokens.reduce((found,{literal,val})=>literal?found:found.concat(val),[]),collapsed=dur.shiftTo(...realTokens.map(tokenToField).filter(t$5=>t$5)),durationInfo={isNegativeDuration:collapsed<0,largestUnit:Object.keys(collapsed.values)[0]};return stringifyTokens(tokens,tokenToString(collapsed,durationInfo))}};const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...regexes){let full=regexes.reduce((f,r)=>f+r.source,``);return RegExp(`^${full}$`)}function combineExtractors(...extractors){return m=>extractors.reduce(([mergedVals,mergedZone,cursor],ex)=>{let[val,zone,next]=ex(m,cursor);return[{...mergedVals,...val},zone||mergedZone,next]},[{},null,1]).slice(0,2)}function parse$7(s$2,...patterns){if(s$2==null)return[null,null];for(let[regex,extractor]of patterns){let m=regex.exec(s$2);if(m)return extractor(m)}return[null,null]}function simpleParse(...keys){return(match$2,cursor)=>{let ret={},i$4;for(i$4=0;i$4<keys.length;i$4++)ret[keys[i$4]]=parseInteger(match$2[cursor+i$4]);return[ret,null,cursor+i$4]}}const offsetRegex=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone=`(?:${offsetRegex.source}?(?:\\[(${ianaRegex.source})\\])?)?`,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`),isoTimeExtensionRegex=RegExp(`(?:[Tt]${isoTimeRegex.source})?`),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse(`weekYear`,`weekNumber`,`weekDay`),extractISOOrdinalData=simpleParse(`year`,`ordinal`),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(`${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`),sqlTimeExtensionRegex=RegExp(`(?: ${sqlTimeRegex.source})?`);function int(match$2,pos,fallback){let m=match$2[pos];return isUndefined(m)?fallback:parseInteger(m)}function extractISOYmd(match$2,cursor){let item={year:int(match$2,cursor),month:int(match$2,cursor+1,1),day:int(match$2,cursor+2,1)};return[item,null,cursor+3]}function extractISOTime(match$2,cursor){let item={hours:int(match$2,cursor,0),minutes:int(match$2,cursor+1,0),seconds:int(match$2,cursor+2,0),milliseconds:parseMillis(match$2[cursor+3])};return[item,null,cursor+4]}function extractISOOffset(match$2,cursor){let local=!match$2[cursor]&&!match$2[cursor+1],fullOffset=signedOffset(match$2[cursor+1],match$2[cursor+2]),zone=local?null:FixedOffsetZone.instance(fullOffset);return[{},zone,cursor+3]}function extractIANAZone(match$2,cursor){let zone=match$2[cursor]?IANAZone.create(match$2[cursor]):null;return[{},zone,cursor+1]}const isoTimeOnly=RegExp(`^T?${isoTimeBaseRegex.source}$`),isoDuration=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration(match$2){let[s$2,yearStr,monthStr,weekStr,dayStr,hourStr,minuteStr,secondStr,millisecondsStr]=match$2,hasNegativePrefix=s$2[0]===`-`,negativeSeconds=secondStr&&secondStr[0]===`-`,maybeNegate=(num,force=!1)=>num!==void 0&&(force||num&&hasNegativePrefix)?-num:num;return[{years:maybeNegate(parseFloating(yearStr)),months:maybeNegate(parseFloating(monthStr)),weeks:maybeNegate(parseFloating(weekStr)),days:maybeNegate(parseFloating(dayStr)),hours:maybeNegate(parseFloating(hourStr)),minutes:maybeNegate(parseFloating(minuteStr)),seconds:maybeNegate(parseFloating(secondStr),secondStr===`-0`),milliseconds:maybeNegate(parseMillis(millisecondsStr),negativeSeconds)}]}const obsOffsets={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(weekdayStr,yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr){let result={year:yearStr.length===2?untruncateYear(parseInteger(yearStr)):parseInteger(yearStr),month:monthsShort.indexOf(monthStr)+1,day:parseInteger(dayStr),hour:parseInteger(hourStr),minute:parseInteger(minuteStr)};return secondStr&&(result.second=parseInteger(secondStr)),weekdayStr&&(result.weekday=weekdayStr.length>3?weekdaysLong.indexOf(weekdayStr)+1:weekdaysShort.indexOf(weekdayStr)+1),result}const rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(match$2){let[,weekdayStr,dayStr,monthStr,yearStr,hourStr,minuteStr,secondStr,obsOffset,milOffset,offHourStr,offMinuteStr]=match$2,result=fromStrings(weekdayStr,yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr),offset$2;return offset$2=obsOffset?obsOffsets[obsOffset]:milOffset?0:signedOffset(offHourStr,offMinuteStr),[result,new FixedOffsetZone(offset$2)]}function preprocessRFC2822(s$2){return s$2.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).trim()}const rfc1123=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(match$2){let[,weekdayStr,dayStr,monthStr,yearStr,hourStr,minuteStr,secondStr]=match$2,result=fromStrings(weekdayStr,yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr);return[result,FixedOffsetZone.utcInstance]}function extractASCII(match$2){let[,weekdayStr,monthStr,dayStr,hourStr,minuteStr,secondStr,yearStr]=match$2,result=fromStrings(weekdayStr,yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr);return[result,FixedOffsetZone.utcInstance]}const isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(s$2){return parse$7(s$2,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(s$2){return parse$7(preprocessRFC2822(s$2),[rfc2822,extractRFC2822])}function parseHTTPDate(s$2){return parse$7(s$2,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(s$2){return parse$7(s$2,[isoDuration,extractISODuration])}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(s$2){return parse$7(s$2,[isoTimeOnly,extractISOTimeOnly])}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(s$2){return parse$7(s$2,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}const INVALID$2=`Invalid Duration`,lowOrderMatrix={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},casualMatrix={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...lowOrderMatrix},daysInYearAccurate=146097/400,daysInMonthAccurate=146097/4800,accurateMatrix={years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:daysInYearAccurate*24,minutes:daysInYearAccurate*24*60,seconds:daysInYearAccurate*24*60*60,milliseconds:daysInYearAccurate*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:daysInYearAccurate*24/4,minutes:daysInYearAccurate*24*60/4,seconds:daysInYearAccurate*24*60*60/4,milliseconds:daysInYearAccurate*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:daysInMonthAccurate*24,minutes:daysInMonthAccurate*24*60,seconds:daysInMonthAccurate*24*60*60,milliseconds:daysInMonthAccurate*24*60*60*1e3},...lowOrderMatrix},orderedUnits$1=[`years`,`quarters`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`],reverseUnits=orderedUnits$1.slice(0).reverse();function clone$1(dur,alts,clear=!1){let conf={values:clear?alts.values:{...dur.values,...alts.values||{}},loc:dur.loc.clone(alts.loc),conversionAccuracy:alts.conversionAccuracy||dur.conversionAccuracy,matrix:alts.matrix||dur.matrix};return new Duration(conf)}function durationToMillis(matrix,vals){let sum=vals.milliseconds??0;for(let unit of reverseUnits.slice(1))vals[unit]&&(sum+=vals[unit]*matrix[unit].milliseconds);return sum}function normalizeValues(matrix,vals){let factor=durationToMillis(matrix,vals)<0?-1:1;orderedUnits$1.reduceRight((previous,current)=>{if(isUndefined(vals[current]))return previous;if(previous){let previousVal=vals[previous]*factor,conv=matrix[current][previous],rollUp=Math.floor(previousVal/conv);vals[current]+=rollUp*factor,vals[previous]-=rollUp*conv*factor}return current},null),orderedUnits$1.reduce((previous,current)=>{if(isUndefined(vals[current]))return previous;if(previous){let fraction=vals[previous]%1;vals[previous]-=fraction,vals[current]+=fraction*matrix[previous][current]}return current},null)}function removeZeroes(vals){let newVals={};for(let[key,value]of Object.entries(vals))value!==0&&(newVals[key]=value);return newVals}var Duration=class Duration{constructor(config){let accurate=config.conversionAccuracy===`longterm`||!1,matrix=accurate?accurateMatrix:casualMatrix;config.matrix&&(matrix=config.matrix),this.values=config.values,this.loc=config.loc||Locale.create(),this.conversionAccuracy=accurate?`longterm`:`casual`,this.invalid=config.invalid||null,this.matrix=matrix,this.isLuxonDuration=!0}static fromMillis(count,opts){return Duration.fromObject({milliseconds:count},opts)}static fromObject(obj,opts={}){if(typeof obj!=`object`||!obj)throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${obj===null?`null`:typeof obj}`);return new Duration({values:normalizeObject(obj,Duration.normalizeUnit),loc:Locale.fromObject(opts),conversionAccuracy:opts.conversionAccuracy,matrix:opts.matrix})}static fromDurationLike(durationLike){if(isNumber(durationLike))return Duration.fromMillis(durationLike);if(Duration.isDuration(durationLike))return durationLike;if(typeof durationLike==`object`)return Duration.fromObject(durationLike);throw new InvalidArgumentError(`Unknown duration argument ${durationLike} of type ${typeof durationLike}`)}static fromISO(text,opts){let[parsed]=parseISODuration(text);return parsed?Duration.fromObject(parsed,opts):Duration.invalid(`unparsable`,`the input "${text}" can't be parsed as ISO 8601`)}static fromISOTime(text,opts){let[parsed]=parseISOTimeOnly(text);return parsed?Duration.fromObject(parsed,opts):Duration.invalid(`unparsable`,`the input "${text}" can't be parsed as ISO 8601`)}static invalid(reason,explanation=null){if(!reason)throw new InvalidArgumentError(`need to specify a reason the Duration is invalid`);let invalid$1=reason instanceof Invalid?reason:new Invalid(reason,explanation);if(Settings.throwOnInvalid)throw new InvalidDurationError(invalid$1);return new Duration({invalid:invalid$1})}static normalizeUnit(unit){let normalized={year:`years`,years:`years`,quarter:`quarters`,quarters:`quarters`,month:`months`,months:`months`,week:`weeks`,weeks:`weeks`,day:`days`,days:`days`,hour:`hours`,hours:`hours`,minute:`minutes`,minutes:`minutes`,second:`seconds`,seconds:`seconds`,millisecond:`milliseconds`,milliseconds:`milliseconds`}[unit&&unit.toLowerCase()];if(!normalized)throw new InvalidUnitError(unit);return normalized}static isDuration(o){return o&&o.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(fmt,opts={}){let fmtOpts={...opts,floor:opts.round!==!1&&opts.floor!==!1};return this.isValid?Formatter.create(this.loc,fmtOpts).formatDurationFromString(this,fmt):INVALID$2}toHuman(opts={}){if(!this.isValid)return INVALID$2;let showZeros=opts.showZeros!==!1,l$2=orderedUnits$1.map(unit=>{let val=this.values[unit];return isUndefined(val)||val===0&&!showZeros?null:this.loc.numberFormatter({style:`unit`,unitDisplay:`long`,...opts,unit:unit.slice(0,-1)}).format(val)}).filter(n$2=>n$2);return this.loc.listFormatter({type:`conjunction`,style:opts.listStyle||`narrow`,...opts}).format(l$2)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let s$2=`P`;return this.years!==0&&(s$2+=this.years+`Y`),(this.months!==0||this.quarters!==0)&&(s$2+=this.months+this.quarters*3+`M`),this.weeks!==0&&(s$2+=this.weeks+`W`),this.days!==0&&(s$2+=this.days+`D`),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(s$2+=`T`),this.hours!==0&&(s$2+=this.hours+`H`),this.minutes!==0&&(s$2+=this.minutes+`M`),(this.seconds!==0||this.milliseconds!==0)&&(s$2+=roundTo(this.seconds+this.milliseconds/1e3,3)+`S`),s$2===`P`&&(s$2+=`T0S`),s$2}toISOTime(opts={}){if(!this.isValid)return null;let millis=this.toMillis();if(millis<0||millis>=864e5)return null;opts={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:`extended`,...opts,includeOffset:!1};let dateTime=DateTime.fromMillis(millis,{zone:`UTC`});return dateTime.toISOTime(opts)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?durationToMillis(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(duration){if(!this.isValid)return this;let dur=Duration.fromDurationLike(duration),result={};for(let k of orderedUnits$1)(hasOwnProperty(dur.values,k)||hasOwnProperty(this.values,k))&&(result[k]=dur.get(k)+this.get(k));return clone$1(this,{values:result},!0)}minus(duration){if(!this.isValid)return this;let dur=Duration.fromDurationLike(duration);return this.plus(dur.negate())}mapUnits(fn$1){if(!this.isValid)return this;let result={};for(let k of Object.keys(this.values))result[k]=asNumber(fn$1(this.values[k],k));return clone$1(this,{values:result},!0)}get(unit){return this[Duration.normalizeUnit(unit)]}set(values){if(!this.isValid)return this;let mixed={...this.values,...normalizeObject(values,Duration.normalizeUnit)};return clone$1(this,{values:mixed})}reconfigure({locale,numberingSystem,conversionAccuracy,matrix}={}){let loc=this.loc.clone({locale,numberingSystem}),opts={loc,matrix,conversionAccuracy};return clone$1(this,opts)}as(unit){return this.isValid?this.shiftTo(unit).get(unit):NaN}normalize(){if(!this.isValid)return this;let vals=this.toObject();return normalizeValues(this.matrix,vals),clone$1(this,{values:vals},!0)}rescale(){if(!this.isValid)return this;let vals=removeZeroes(this.normalize().shiftToAll().toObject());return clone$1(this,{values:vals},!0)}shiftTo(...units){if(!this.isValid||units.length===0)return this;units=units.map(u=>Duration.normalizeUnit(u));let built={},accumulated={},vals=this.toObject(),lastUnit;for(let k of orderedUnits$1)if(units.indexOf(k)>=0){lastUnit=k;let own=0;for(let ak in accumulated)own+=this.matrix[ak][k]*accumulated[ak],accumulated[ak]=0;isNumber(vals[k])&&(own+=vals[k]);let i$4=Math.trunc(own);built[k]=i$4,accumulated[k]=(own*1e3-i$4*1e3)/1e3}else isNumber(vals[k])&&(accumulated[k]=vals[k]);for(let key in accumulated)accumulated[key]!==0&&(built[lastUnit]+=key===lastUnit?accumulated[key]:accumulated[key]/this.matrix[lastUnit][key]);return normalizeValues(this.matrix,built),clone$1(this,{values:built},!0)}shiftToAll(){return this.isValid?this.shiftTo(`years`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`):this}negate(){if(!this.isValid)return this;let negated={};for(let k of Object.keys(this.values))negated[k]=this.values[k]===0?0:-this.values[k];return clone$1(this,{values:negated},!0)}removeZeros(){if(!this.isValid)return this;let vals=removeZeroes(this.values);return clone$1(this,{values:vals},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(other){if(!this.isValid||!other.isValid||!this.loc.equals(other.loc))return!1;function eq$3(v1,v2){return v1===void 0||v1===0?v2===void 0||v2===0:v1===v2}for(let u of orderedUnits$1)if(!eq$3(this.values[u],other.values[u]))return!1;return!0}};const INVALID$1=`Invalid Interval`;function validateStartEnd(start,end){return!start||!start.isValid?Interval.invalid(`missing or invalid start`):!end||!end.isValid?Interval.invalid(`missing or invalid end`):end<start?Interval.invalid(`end before start`,`The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}`):null}var Interval=class Interval{constructor(config){this.s=config.start,this.e=config.end,this.invalid=config.invalid||null,this.isLuxonInterval=!0}static invalid(reason,explanation=null){if(!reason)throw new InvalidArgumentError(`need to specify a reason the Interval is invalid`);let invalid$1=reason instanceof Invalid?reason:new Invalid(reason,explanation);if(Settings.throwOnInvalid)throw new InvalidIntervalError(invalid$1);return new Interval({invalid:invalid$1})}static fromDateTimes(start,end){let builtStart=friendlyDateTime(start),builtEnd=friendlyDateTime(end),validateError=validateStartEnd(builtStart,builtEnd);return validateError??new Interval({start:builtStart,end:builtEnd})}static after(start,duration){let dur=Duration.fromDurationLike(duration),dt=friendlyDateTime(start);return Interval.fromDateTimes(dt,dt.plus(dur))}static before(end,duration){let dur=Duration.fromDurationLike(duration),dt=friendlyDateTime(end);return Interval.fromDateTimes(dt.minus(dur),dt)}static fromISO(text,opts){let[s$2,e]=(text||``).split(`/`,2);if(s$2&&e){let start,startIsValid;try{start=DateTime.fromISO(s$2,opts),startIsValid=start.isValid}catch{startIsValid=!1}let end,endIsValid;try{end=DateTime.fromISO(e,opts),endIsValid=end.isValid}catch{endIsValid=!1}if(startIsValid&&endIsValid)return Interval.fromDateTimes(start,end);if(startIsValid){let dur=Duration.fromISO(e,opts);if(dur.isValid)return Interval.after(start,dur)}else if(endIsValid){let dur=Duration.fromISO(s$2,opts);if(dur.isValid)return Interval.before(end,dur)}}return Interval.invalid(`unparsable`,`the input "${text}" can't be parsed as ISO 8601`)}static isInterval(o){return o&&o.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(unit=`milliseconds`){return this.isValid?this.toDuration(unit).get(unit):NaN}count(unit=`milliseconds`,opts){if(!this.isValid)return NaN;let start=this.start.startOf(unit,opts),end;return end=opts?.useLocaleWeeks?this.end.reconfigure({locale:start.locale}):this.end,end=end.startOf(unit,opts),Math.floor(end.diff(start,unit).get(unit))+(end.valueOf()!==this.end.valueOf())}hasSame(unit){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,unit):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(dateTime){return this.isValid?this.s>dateTime:!1}isBefore(dateTime){return this.isValid?this.e<=dateTime:!1}contains(dateTime){return this.isValid?this.s<=dateTime&&this.e>dateTime:!1}set({start,end}={}){return this.isValid?Interval.fromDateTimes(start||this.s,end||this.e):this}splitAt(...dateTimes){if(!this.isValid)return[];let sorted=dateTimes.map(friendlyDateTime).filter(d=>this.contains(d)).sort((a,b)=>a.toMillis()-b.toMillis()),results=[],{s:s$2}=this,i$4=0;for(;s$2<this.e;){let added=sorted[i$4]||this.e,next=+added>+this.e?this.e:added;results.push(Interval.fromDateTimes(s$2,next)),s$2=next,i$4+=1}return results}splitBy(duration){let dur=Duration.fromDurationLike(duration);if(!this.isValid||!dur.isValid||dur.as(`milliseconds`)===0)return[];let{s:s$2}=this,idx=1,next,results=[];for(;s$2<this.e;){let added=this.start.plus(dur.mapUnits(x$1=>x$1*idx));next=+added>+this.e?this.e:added,results.push(Interval.fromDateTimes(s$2,next)),s$2=next,idx+=1}return results}divideEqually(numberOfParts){return this.isValid?this.splitBy(this.length()/numberOfParts).slice(0,numberOfParts):[]}overlaps(other){return this.e>other.s&&this.s<other.e}abutsStart(other){return this.isValid?+this.e==+other.s:!1}abutsEnd(other){return this.isValid?+other.e==+this.s:!1}engulfs(other){return this.isValid?this.s<=other.s&&this.e>=other.e:!1}equals(other){return!this.isValid||!other.isValid?!1:this.s.equals(other.s)&&this.e.equals(other.e)}intersection(other){if(!this.isValid)return this;let s$2=this.s>other.s?this.s:other.s,e=this.e<other.e?this.e:other.e;return s$2>=e?null:Interval.fromDateTimes(s$2,e)}union(other){if(!this.isValid)return this;let s$2=this.s<other.s?this.s:other.s,e=this.e>other.e?this.e:other.e;return Interval.fromDateTimes(s$2,e)}static merge(intervals){let[found,final]=intervals.sort((a,b)=>a.s-b.s).reduce(([sofar,current],item)=>current?current.overlaps(item)||current.abutsStart(item)?[sofar,current.union(item)]:[sofar.concat([current]),item]:[sofar,item],[[],null]);return final&&found.push(final),found}static xor(intervals){let start=null,currentCount=0,results=[],ends=intervals.map(i$4=>[{time:i$4.s,type:`s`},{time:i$4.e,type:`e`}]),flattened=Array.prototype.concat(...ends),arr=flattened.sort((a,b)=>a.time-b.time);for(let i$4 of arr)currentCount+=i$4.type===`s`?1:-1,currentCount===1?start=i$4.time:(start&&+start!=+i$4.time&&results.push(Interval.fromDateTimes(start,i$4.time)),start=null);return Interval.merge(results)}difference(...intervals){return Interval.xor([this].concat(intervals)).map(i$4=>this.intersection(i$4)).filter(i$4=>i$4&&!i$4.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(formatOpts=DATE_SHORT,opts={}){return this.isValid?Formatter.create(this.s.loc.clone(opts),formatOpts).formatInterval(this):INVALID$1}toISO(opts){return this.isValid?`${this.s.toISO(opts)}/${this.e.toISO(opts)}`:INVALID$1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1}toISOTime(opts){return this.isValid?`${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`:INVALID$1}toFormat(dateFormat,{separator=` – `}={}){return this.isValid?`${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`:INVALID$1}toDuration(unit,opts){return this.isValid?this.e.diff(this.s,unit,opts):Duration.invalid(this.invalidReason)}mapEndpoints(mapFn){return Interval.fromDateTimes(mapFn(this.s),mapFn(this.e))}},Info=class{static hasDST(zone=Settings.defaultZone){let proto=DateTime.now().setZone(zone).set({month:12});return!zone.isUniversal&&proto.offset!==proto.set({month:6}).offset}static isValidIANAZone(zone){return IANAZone.isValidZone(zone)}static normalizeZone(input){return normalizeZone(input,Settings.defaultZone)}static getStartOfWeek({locale=null,locObj=null}={}){return(locObj||Locale.create(locale)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale=null,locObj=null}={}){return(locObj||Locale.create(locale)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale=null,locObj=null}={}){return(locObj||Locale.create(locale)).getWeekendDays().slice()}static months(length=`long`,{locale=null,numberingSystem=null,locObj=null,outputCalendar=`gregory`}={}){return(locObj||Locale.create(locale,numberingSystem,outputCalendar)).months(length)}static monthsFormat(length=`long`,{locale=null,numberingSystem=null,locObj=null,outputCalendar=`gregory`}={}){return(locObj||Locale.create(locale,numberingSystem,outputCalendar)).months(length,!0)}static weekdays(length=`long`,{locale=null,numberingSystem=null,locObj=null}={}){return(locObj||Locale.create(locale,numberingSystem,null)).weekdays(length)}static weekdaysFormat(length=`long`,{locale=null,numberingSystem=null,locObj=null}={}){return(locObj||Locale.create(locale,numberingSystem,null)).weekdays(length,!0)}static meridiems({locale=null}={}){return Locale.create(locale).meridiems()}static eras(length=`short`,{locale=null}={}){return Locale.create(locale,null,`gregory`).eras(length)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}};function dayDiff(earlier,later){let utcDayStart=dt=>dt.toUTC(0,{keepLocalTime:!0}).startOf(`day`).valueOf(),ms=utcDayStart(later)-utcDayStart(earlier);return Math.floor(Duration.fromMillis(ms).as(`days`))}function highOrderDiffs(cursor,later,units){let differs=[[`years`,(a,b)=>b.year-a.year],[`quarters`,(a,b)=>b.quarter-a.quarter+(b.year-a.year)*4],[`months`,(a,b)=>b.month-a.month+(b.year-a.year)*12],[`weeks`,(a,b)=>{let days=dayDiff(a,b);return(days-days%7)/7}],[`days`,dayDiff]],results={},earlier=cursor,lowestOrder,highWater;for(let[unit,differ]of differs)units.indexOf(unit)>=0&&(lowestOrder=unit,results[unit]=differ(cursor,later),highWater=earlier.plus(results),highWater>later?(results[unit]--,cursor=earlier.plus(results),cursor>later&&(highWater=cursor,results[unit]--,cursor=earlier.plus(results))):cursor=highWater);return[cursor,results,highWater,lowestOrder]}function diff$2(earlier,later,units,opts){let[cursor,results,highWater,lowestOrder]=highOrderDiffs(earlier,later,units),remainingMillis=later-cursor,lowerOrderUnits=units.filter(u=>[`hours`,`minutes`,`seconds`,`milliseconds`].indexOf(u)>=0);lowerOrderUnits.length===0&&(highWater<later&&(highWater=cursor.plus({[lowestOrder]:1})),highWater!==cursor&&(results[lowestOrder]=(results[lowestOrder]||0)+remainingMillis/(highWater-cursor)));let duration=Duration.fromObject(results,opts);return lowerOrderUnits.length>0?Duration.fromMillis(remainingMillis,opts).shiftTo(...lowerOrderUnits).plus(duration):duration}const MISSING_FTP=`missing Intl.DateTimeFormat.formatToParts support`;function intUnit(regex,post=i$4=>i$4){return{regex,deser:([s$2])=>post(parseDigits(s$2))}}const NBSP=`\xA0`,spaceOrNBSP=`[ ${NBSP}]`,spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,`g`);function fixListRegex(s$2){return s$2.replace(/\./g,`\\.?`).replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(s$2){return s$2.replace(/\./g,``).replace(spaceOrNBSPRegExp,` `).toLowerCase()}function oneOf(strings,startIndex){return strings===null?null:{regex:RegExp(strings.map(fixListRegex).join(`|`)),deser:([s$2])=>strings.findIndex(i$4=>stripInsensitivities(s$2)===stripInsensitivities(i$4))+startIndex}}function offset(regex,groups){return{regex,deser:([,h,m])=>signedOffset(h,m),groups}}function simple(regex){return{regex,deser:([s$2])=>s$2}}function escapeToken(value){return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,`\\$&`)}function unitForToken(token,loc){let one=digitRegex(loc),two=digitRegex(loc,`{2}`),three=digitRegex(loc,`{3}`),four=digitRegex(loc,`{4}`),six=digitRegex(loc,`{6}`),oneOrTwo=digitRegex(loc,`{1,2}`),oneToThree=digitRegex(loc,`{1,3}`),oneToSix=digitRegex(loc,`{1,6}`),oneToNine=digitRegex(loc,`{1,9}`),twoToFour=digitRegex(loc,`{2,4}`),fourToSix=digitRegex(loc,`{4,6}`),literal=t$5=>({regex:RegExp(escapeToken(t$5.val)),deser:([s$2])=>s$2,literal:!0}),unitate=t$5=>{if(token.literal)return literal(t$5);switch(t$5.val){case`G`:return oneOf(loc.eras(`short`),0);case`GG`:return oneOf(loc.eras(`long`),0);case`y`:return intUnit(oneToSix);case`yy`:return intUnit(twoToFour,untruncateYear);case`yyyy`:return intUnit(four);case`yyyyy`:return intUnit(fourToSix);case`yyyyyy`:return intUnit(six);case`M`:return intUnit(oneOrTwo);case`MM`:return intUnit(two);case`MMM`:return oneOf(loc.months(`short`,!0),1);case`MMMM`:return oneOf(loc.months(`long`,!0),1);case`L`:return intUnit(oneOrTwo);case`LL`:return intUnit(two);case`LLL`:return oneOf(loc.months(`short`,!1),1);case`LLLL`:return oneOf(loc.months(`long`,!1),1);case`d`:return intUnit(oneOrTwo);case`dd`:return intUnit(two);case`o`:return intUnit(oneToThree);case`ooo`:return intUnit(three);case`HH`:return intUnit(two);case`H`:return intUnit(oneOrTwo);case`hh`:return intUnit(two);case`h`:return intUnit(oneOrTwo);case`mm`:return intUnit(two);case`m`:return intUnit(oneOrTwo);case`q`:return intUnit(oneOrTwo);case`qq`:return intUnit(two);case`s`:return intUnit(oneOrTwo);case`ss`:return intUnit(two);case`S`:return intUnit(oneToThree);case`SSS`:return intUnit(three);case`u`:return simple(oneToNine);case`uu`:return simple(oneOrTwo);case`uuu`:return intUnit(one);case`a`:return oneOf(loc.meridiems(),0);case`kkkk`:return intUnit(four);case`kk`:return intUnit(twoToFour,untruncateYear);case`W`:return intUnit(oneOrTwo);case`WW`:return intUnit(two);case`E`:case`c`:return intUnit(one);case`EEE`:return oneOf(loc.weekdays(`short`,!1),1);case`EEEE`:return oneOf(loc.weekdays(`long`,!1),1);case`ccc`:return oneOf(loc.weekdays(`short`,!0),1);case`cccc`:return oneOf(loc.weekdays(`long`,!0),1);case`Z`:case`ZZ`:return offset(RegExp(`([+-]${oneOrTwo.source})(?::(${two.source}))?`),2);case`ZZZ`:return offset(RegExp(`([+-]${oneOrTwo.source})(${two.source})?`),2);case`z`:return simple(/[a-z_+-/]{1,256}?/i);case` `:return simple(/[^\S\n\r]/);default:return literal(t$5)}},unit=unitate(token)||{invalidReason:MISSING_FTP};return unit.token=token,unit}const partTypeStyleToTokenVal={year:{"2-digit":`yy`,numeric:`yyyyy`},month:{numeric:`M`,"2-digit":`MM`,short:`MMM`,long:`MMMM`},day:{numeric:`d`,"2-digit":`dd`},weekday:{short:`EEE`,long:`EEEE`},dayperiod:`a`,dayPeriod:`a`,hour12:{numeric:`h`,"2-digit":`hh`},hour24:{numeric:`H`,"2-digit":`HH`},minute:{numeric:`m`,"2-digit":`mm`},second:{numeric:`s`,"2-digit":`ss`},timeZoneName:{long:`ZZZZZ`,short:`ZZZ`}};function tokenForPart(part,formatOpts,resolvedOpts){let{type,value}=part;if(type===`literal`){let isSpace=/^\s+$/.test(value);return{literal:!isSpace,val:isSpace?` `:value}}let style=formatOpts[type],actualType=type;type===`hour`&&(actualType=formatOpts.hour12==null?formatOpts.hourCycle==null?resolvedOpts.hour12?`hour12`:`hour24`:formatOpts.hourCycle===`h11`||formatOpts.hourCycle===`h12`?`hour12`:`hour24`:formatOpts.hour12?`hour12`:`hour24`);let val=partTypeStyleToTokenVal[actualType];if(typeof val==`object`&&(val=val[style]),val)return{literal:!1,val}}function buildRegex(units){let re$5=units.map(u=>u.regex).reduce((f,r)=>`${f}(${r.source})`,``);return[`^${re$5}$`,units]}function match(input,regex,handlers){let matches=input.match(regex);if(matches){let all$1={},matchIndex=1;for(let i$4 in handlers)if(hasOwnProperty(handlers,i$4)){let h=handlers[i$4],groups=h.groups?h.groups+1:1;!h.literal&&h.token&&(all$1[h.token.val[0]]=h.deser(matches.slice(matchIndex,matchIndex+groups))),matchIndex+=groups}return[matches,all$1]}else return[matches,{}]}function dateTimeFromMatches(matches){let toField=token=>{switch(token){case`S`:return`millisecond`;case`s`:return`second`;case`m`:return`minute`;case`h`:case`H`:return`hour`;case`d`:return`day`;case`o`:return`ordinal`;case`L`:case`M`:return`month`;case`y`:return`year`;case`E`:case`c`:return`weekday`;case`W`:return`weekNumber`;case`k`:return`weekYear`;case`q`:return`quarter`;default:return null}},zone=null,specificOffset;isUndefined(matches.z)||(zone=IANAZone.create(matches.z)),isUndefined(matches.Z)||(zone||=new FixedOffsetZone(matches.Z),specificOffset=matches.Z),isUndefined(matches.q)||(matches.M=(matches.q-1)*3+1),isUndefined(matches.h)||(matches.h<12&&matches.a===1?matches.h+=12:matches.h===12&&matches.a===0&&(matches.h=0)),matches.G===0&&matches.y&&(matches.y=-matches.y),isUndefined(matches.u)||(matches.S=parseMillis(matches.u));let vals=Object.keys(matches).reduce((r,k)=>{let f=toField(k);return f&&(r[f]=matches[k]),r},{});return[vals,zone,specificOffset]}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||=DateTime.fromMillis(1555555555555),dummyDateTimeCache}function maybeExpandMacroToken(token,locale){if(token.literal)return token;let formatOpts=Formatter.macroTokenToFormatOpts(token.val),tokens=formatOptsToTokens(formatOpts,locale);return tokens==null||tokens.includes(void 0)?token:tokens}function expandMacroTokens(tokens,locale){return Array.prototype.concat(...tokens.map(t$5=>maybeExpandMacroToken(t$5,locale)))}var TokenParser=class{constructor(locale,format){if(this.locale=locale,this.format=format,this.tokens=expandMacroTokens(Formatter.parseFormat(format),locale),this.units=this.tokens.map(t$5=>unitForToken(t$5,locale)),this.disqualifyingUnit=this.units.find(t$5=>t$5.invalidReason),!this.disqualifyingUnit){let[regexString,handlers]=buildRegex(this.units);this.regex=RegExp(regexString,`i`),this.handlers=handlers}}explainFromTokens(input){if(this.isValid){let[rawMatches,matches]=match(input,this.regex,this.handlers),[result,zone,specificOffset]=matches?dateTimeFromMatches(matches):[null,null,void 0];if(hasOwnProperty(matches,`a`)&&hasOwnProperty(matches,`H`))throw new ConflictingSpecificationError(`Can't include meridiem when specifying 24-hour format`);return{input,tokens:this.tokens,regex:this.regex,rawMatches,matches,result,zone,specificOffset}}else return{input,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function explainFromTokens(locale,input,format){let parser=new TokenParser(locale,format);return parser.explainFromTokens(input)}function parseFromTokens(locale,input,format){let{result,zone,specificOffset,invalidReason}=explainFromTokens(locale,input,format);return[result,zone,specificOffset,invalidReason]}function formatOptsToTokens(formatOpts,locale){if(!formatOpts)return null;let formatter=Formatter.create(locale,formatOpts),df=formatter.dtFormatter(getDummyDateTime()),parts=df.formatToParts(),resolvedOpts=df.resolvedOptions();return parts.map(p=>tokenForPart(p,formatOpts,resolvedOpts))}const INVALID=`Invalid DateTime`,MAX_DATE=864e13;function unsupportedZone(zone){return new Invalid(`unsupported zone`,`the zone "${zone.name}" is not supported`)}function possiblyCachedWeekData(dt){return dt.weekData===null&&(dt.weekData=gregorianToWeek(dt.c)),dt.weekData}function possiblyCachedLocalWeekData(dt){return dt.localWeekData===null&&(dt.localWeekData=gregorianToWeek(dt.c,dt.loc.getMinDaysInFirstWeek(),dt.loc.getStartOfWeek())),dt.localWeekData}function clone(inst,alts){let current={ts:inst.ts,zone:inst.zone,c:inst.c,o:inst.o,loc:inst.loc,invalid:inst.invalid};return new DateTime({...current,...alts,old:current})}function fixOffset(localTS,o,tz){let utcGuess=localTS-o*60*1e3,o2=tz.offset(utcGuess);if(o===o2)return[utcGuess,o];utcGuess-=(o2-o)*60*1e3;let o3=tz.offset(utcGuess);return o2===o3?[utcGuess,o2]:[localTS-Math.min(o2,o3)*60*1e3,Math.max(o2,o3)]}function tsToObj(ts,offset$2){ts+=offset$2*60*1e3;let d=new Date(ts);return{year:d.getUTCFullYear(),month:d.getUTCMonth()+1,day:d.getUTCDate(),hour:d.getUTCHours(),minute:d.getUTCMinutes(),second:d.getUTCSeconds(),millisecond:d.getUTCMilliseconds()}}function objToTS(obj,offset$2,zone){return fixOffset(objToLocalTS(obj),offset$2,zone)}function adjustTime(inst,dur){let oPre=inst.o,year=inst.c.year+Math.trunc(dur.years),month=inst.c.month+Math.trunc(dur.months)+Math.trunc(dur.quarters)*3,c$1={...inst.c,year,month,day:Math.min(inst.c.day,daysInMonth(year,month))+Math.trunc(dur.days)+Math.trunc(dur.weeks)*7},millisToAdd=Duration.fromObject({years:dur.years-Math.trunc(dur.years),quarters:dur.quarters-Math.trunc(dur.quarters),months:dur.months-Math.trunc(dur.months),weeks:dur.weeks-Math.trunc(dur.weeks),days:dur.days-Math.trunc(dur.days),hours:dur.hours,minutes:dur.minutes,seconds:dur.seconds,milliseconds:dur.milliseconds}).as(`milliseconds`),localTS=objToLocalTS(c$1),[ts,o]=fixOffset(localTS,oPre,inst.zone);return millisToAdd!==0&&(ts+=millisToAdd,o=inst.zone.offset(ts)),{ts,o}}function parseDataToDateTime(parsed,parsedZone,opts,format,text,specificOffset){let{setZone,zone}=opts;if(parsed&&Object.keys(parsed).length!==0||parsedZone){let interpretationZone=parsedZone||zone,inst=DateTime.fromObject(parsed,{...opts,zone:interpretationZone,specificOffset});return setZone?inst:inst.setZone(zone)}else return DateTime.invalid(new Invalid(`unparsable`,`the input "${text}" can't be parsed as ${format}`))}function toTechFormat(dt,format,allowZ=!0){return dt.isValid?Formatter.create(Locale.create(`en-US`),{allowZ,forceSimple:!0}).formatDateTimeFromString(dt,format):null}function toISODate(o,extended,precision){let longFormat=o.c.year>9999||o.c.year<0,c$1=``;if(longFormat&&o.c.year>=0&&(c$1+=`+`),c$1+=padStart(o.c.year,longFormat?6:4),precision===`year`)return c$1;if(extended){if(c$1+=`-`,c$1+=padStart(o.c.month),precision===`month`)return c$1;c$1+=`-`}else if(c$1+=padStart(o.c.month),precision===`month`)return c$1;return c$1+=padStart(o.c.day),c$1}function toISOTime(o,extended,suppressSeconds,suppressMilliseconds,includeOffset,extendedZone,precision){let showSeconds=!suppressSeconds||o.c.millisecond!==0||o.c.second!==0,c$1=``;switch(precision){case`day`:case`month`:case`year`:break;default:if(c$1+=padStart(o.c.hour),precision===`hour`)break;if(extended){if(c$1+=`:`,c$1+=padStart(o.c.minute),precision===`minute`)break;showSeconds&&(c$1+=`:`,c$1+=padStart(o.c.second))}else{if(c$1+=padStart(o.c.minute),precision===`minute`)break;showSeconds&&(c$1+=padStart(o.c.second))}if(precision===`second`)break;showSeconds&&(!suppressMilliseconds||o.c.millisecond!==0)&&(c$1+=`.`,c$1+=padStart(o.c.millisecond,3))}return includeOffset&&(o.isOffsetFixed&&o.offset===0&&!extendedZone?c$1+=`Z`:o.o<0?(c$1+=`-`,c$1+=padStart(Math.trunc(-o.o/60)),c$1+=`:`,c$1+=padStart(Math.trunc(-o.o%60))):(c$1+=`+`,c$1+=padStart(Math.trunc(o.o/60)),c$1+=`:`,c$1+=padStart(Math.trunc(o.o%60)))),extendedZone&&(c$1+=`[`+o.zone.ianaName+`]`),c$1}const defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],orderedWeekUnits=[`weekYear`,`weekNumber`,`weekday`,`hour`,`minute`,`second`,`millisecond`],orderedOrdinalUnits=[`year`,`ordinal`,`hour`,`minute`,`second`,`millisecond`];function normalizeUnit(unit){let normalized={year:`year`,years:`year`,month:`month`,months:`month`,day:`day`,days:`day`,hour:`hour`,hours:`hour`,minute:`minute`,minutes:`minute`,quarter:`quarter`,quarters:`quarter`,second:`second`,seconds:`second`,millisecond:`millisecond`,milliseconds:`millisecond`,weekday:`weekday`,weekdays:`weekday`,weeknumber:`weekNumber`,weeksnumber:`weekNumber`,weeknumbers:`weekNumber`,weekyear:`weekYear`,weekyears:`weekYear`,ordinal:`ordinal`}[unit.toLowerCase()];if(!normalized)throw new InvalidUnitError(unit);return normalized}function normalizeUnitWithLocalWeeks(unit){switch(unit.toLowerCase()){case`localweekday`:case`localweekdays`:return`localWeekday`;case`localweeknumber`:case`localweeknumbers`:return`localWeekNumber`;case`localweekyear`:case`localweekyears`:return`localWeekYear`;default:return normalizeUnit(unit)}}function guessOffsetForZone(zone){if(zoneOffsetTs===void 0&&(zoneOffsetTs=Settings.now()),zone.type!==`iana`)return zone.offset(zoneOffsetTs);let zoneName=zone.name,offsetGuess=zoneOffsetGuessCache.get(zoneName);return offsetGuess===void 0&&(offsetGuess=zone.offset(zoneOffsetTs),zoneOffsetGuessCache.set(zoneName,offsetGuess)),offsetGuess}function quickDT(obj,opts){let zone=normalizeZone(opts.zone,Settings.defaultZone);if(!zone.isValid)return DateTime.invalid(unsupportedZone(zone));let loc=Locale.fromObject(opts),ts,o;if(isUndefined(obj.year))ts=Settings.now();else{for(let u of orderedUnits)isUndefined(obj[u])&&(obj[u]=defaultUnitValues[u]);let invalid$1=hasInvalidGregorianData(obj)||hasInvalidTimeData(obj);if(invalid$1)return DateTime.invalid(invalid$1);let offsetProvis=guessOffsetForZone(zone);[ts,o]=objToTS(obj,offsetProvis,zone)}return new DateTime({ts,zone,loc,o})}function diffRelative(start,end,opts){let round$2=isUndefined(opts.round)?!0:opts.round,rounding=isUndefined(opts.rounding)?`trunc`:opts.rounding,format=(c$1,unit)=>{c$1=roundTo(c$1,round$2||opts.calendary?0:2,opts.calendary?`round`:rounding);let formatter=end.loc.clone(opts).relFormatter(opts);return formatter.format(c$1,unit)},differ=unit=>opts.calendary?end.hasSame(start,unit)?0:end.startOf(unit).diff(start.startOf(unit),unit).get(unit):end.diff(start,unit).get(unit);if(opts.unit)return format(differ(opts.unit),opts.unit);for(let unit of opts.units){let count=differ(unit);if(Math.abs(count)>=1)return format(count,unit)}return format(start>end?-0:0,opts.units[opts.units.length-1])}function lastOpts(argList){let opts={},args$1;return argList.length>0&&typeof argList[argList.length-1]==`object`?(opts=argList[argList.length-1],args$1=Array.from(argList).slice(0,argList.length-1)):args$1=Array.from(argList),[opts,args$1]}let zoneOffsetTs;const zoneOffsetGuessCache=new Map;var DateTime=class DateTime{constructor(config){let zone=config.zone||Settings.defaultZone,invalid$1=config.invalid||(Number.isNaN(config.ts)?new Invalid(`invalid input`):null)||(zone.isValid?null:unsupportedZone(zone));this.ts=isUndefined(config.ts)?Settings.now():config.ts;let c$1=null,o=null;if(!invalid$1){let unchanged=config.old&&config.old.ts===this.ts&&config.old.zone.equals(zone);if(unchanged)[c$1,o]=[config.old.c,config.old.o];else{let ot=isNumber(config.o)&&!config.old?config.o:zone.offset(this.ts);c$1=tsToObj(this.ts,ot),invalid$1=Number.isNaN(c$1.year)?new Invalid(`invalid input`):null,c$1=invalid$1?null:c$1,o=invalid$1?null:ot}}this._zone=zone,this.loc=config.loc||Locale.create(),this.invalid=invalid$1,this.weekData=null,this.localWeekData=null,this.c=c$1,this.o=o,this.isLuxonDateTime=!0}static now(){return new DateTime({})}static local(){let[opts,args$1]=lastOpts(arguments),[year,month,day,hour,minute,second,millisecond]=args$1;return quickDT({year,month,day,hour,minute,second,millisecond},opts)}static utc(){let[opts,args$1]=lastOpts(arguments),[year,month,day,hour,minute,second,millisecond]=args$1;return opts.zone=FixedOffsetZone.utcInstance,quickDT({year,month,day,hour,minute,second,millisecond},opts)}static fromJSDate(date,options={}){let ts=isDate(date)?date.valueOf():NaN;if(Number.isNaN(ts))return DateTime.invalid(`invalid input`);let zoneToUse=normalizeZone(options.zone,Settings.defaultZone);return zoneToUse.isValid?new DateTime({ts,zone:zoneToUse,loc:Locale.fromObject(options)}):DateTime.invalid(unsupportedZone(zoneToUse))}static fromMillis(milliseconds,options={}){if(isNumber(milliseconds))return milliseconds<-MAX_DATE||milliseconds>MAX_DATE?DateTime.invalid(`Timestamp out of range`):new DateTime({ts:milliseconds,zone:normalizeZone(options.zone,Settings.defaultZone),loc:Locale.fromObject(options)});throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}`)}static fromSeconds(seconds,options={}){if(isNumber(seconds))return new DateTime({ts:seconds*1e3,zone:normalizeZone(options.zone,Settings.defaultZone),loc:Locale.fromObject(options)});throw new InvalidArgumentError(`fromSeconds requires a numerical input`)}static fromObject(obj,opts={}){obj||={};let zoneToUse=normalizeZone(opts.zone,Settings.defaultZone);if(!zoneToUse.isValid)return DateTime.invalid(unsupportedZone(zoneToUse));let loc=Locale.fromObject(opts),normalized=normalizeObject(obj,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek,startOfWeek}=usesLocalWeekValues(normalized,loc),tsNow=Settings.now(),offsetProvis=isUndefined(opts.specificOffset)?zoneToUse.offset(tsNow):opts.specificOffset,containsOrdinal=!isUndefined(normalized.ordinal),containsGregorYear=!isUndefined(normalized.year),containsGregorMD=!isUndefined(normalized.month)||!isUndefined(normalized.day),containsGregor=containsGregorYear||containsGregorMD,definiteWeekDef=normalized.weekYear||normalized.weekNumber;if((containsGregor||containsOrdinal)&&definiteWeekDef)throw new ConflictingSpecificationError(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(containsGregorMD&&containsOrdinal)throw new ConflictingSpecificationError(`Can't mix ordinal dates with month/day`);let useWeekData=definiteWeekDef||normalized.weekday&&!containsGregor,units,defaultValues,objNow=tsToObj(tsNow,offsetProvis);useWeekData?(units=orderedWeekUnits,defaultValues=defaultWeekUnitValues,objNow=gregorianToWeek(objNow,minDaysInFirstWeek,startOfWeek)):containsOrdinal?(units=orderedOrdinalUnits,defaultValues=defaultOrdinalUnitValues,objNow=gregorianToOrdinal(objNow)):(units=orderedUnits,defaultValues=defaultUnitValues);let foundFirst=!1;for(let u of units){let v=normalized[u];isUndefined(v)?foundFirst?normalized[u]=defaultValues[u]:normalized[u]=objNow[u]:foundFirst=!0}let higherOrderInvalid=useWeekData?hasInvalidWeekData(normalized,minDaysInFirstWeek,startOfWeek):containsOrdinal?hasInvalidOrdinalData(normalized):hasInvalidGregorianData(normalized),invalid$1=higherOrderInvalid||hasInvalidTimeData(normalized);if(invalid$1)return DateTime.invalid(invalid$1);let gregorian=useWeekData?weekToGregorian(normalized,minDaysInFirstWeek,startOfWeek):containsOrdinal?ordinalToGregorian(normalized):normalized,[tsFinal,offsetFinal]=objToTS(gregorian,offsetProvis,zoneToUse),inst=new DateTime({ts:tsFinal,zone:zoneToUse,o:offsetFinal,loc});return normalized.weekday&&containsGregor&&obj.weekday!==inst.weekday?DateTime.invalid(`mismatched weekday`,`you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}`):inst.isValid?inst:DateTime.invalid(inst.invalid)}static fromISO(text,opts={}){let[vals,parsedZone]=parseISODate(text);return parseDataToDateTime(vals,parsedZone,opts,`ISO 8601`,text)}static fromRFC2822(text,opts={}){let[vals,parsedZone]=parseRFC2822Date(text);return parseDataToDateTime(vals,parsedZone,opts,`RFC 2822`,text)}static fromHTTP(text,opts={}){let[vals,parsedZone]=parseHTTPDate(text);return parseDataToDateTime(vals,parsedZone,opts,`HTTP`,opts)}static fromFormat(text,fmt,opts={}){if(isUndefined(text)||isUndefined(fmt))throw new InvalidArgumentError(`fromFormat requires an input string and a format`);let{locale=null,numberingSystem=null}=opts,localeToUse=Locale.fromOpts({locale,numberingSystem,defaultToEN:!0}),[vals,parsedZone,specificOffset,invalid$1]=parseFromTokens(localeToUse,text,fmt);return invalid$1?DateTime.invalid(invalid$1):parseDataToDateTime(vals,parsedZone,opts,`format ${fmt}`,text,specificOffset)}static fromString(text,fmt,opts={}){return DateTime.fromFormat(text,fmt,opts)}static fromSQL(text,opts={}){let[vals,parsedZone]=parseSQL(text);return parseDataToDateTime(vals,parsedZone,opts,`SQL`,text)}static invalid(reason,explanation=null){if(!reason)throw new InvalidArgumentError(`need to specify a reason the DateTime is invalid`);let invalid$1=reason instanceof Invalid?reason:new Invalid(reason,explanation);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(invalid$1);return new DateTime({invalid:invalid$1})}static isDateTime(o){return o&&o.isLuxonDateTime||!1}static parseFormatForOpts(formatOpts,localeOpts={}){let tokenList=formatOptsToTokens(formatOpts,Locale.fromObject(localeOpts));return tokenList?tokenList.map(t$5=>t$5?t$5.val:null).join(``):null}static expandFormat(fmt,localeOpts={}){let expanded=expandMacroTokens(Formatter.parseFormat(fmt),Locale.fromObject(localeOpts));return expanded.map(t$5=>t$5.val).join(``)}static resetCache(){zoneOffsetTs=void 0,zoneOffsetGuessCache.clear()}get(unit){return this[unit]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months(`short`,{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months(`long`,{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays(`short`,{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays(`long`,{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:`short`,locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:`long`,locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let dayMs=864e5,minuteMs=6e4,localTS=objToLocalTS(this.c),oEarlier=this.zone.offset(localTS-dayMs),oLater=this.zone.offset(localTS+dayMs),o1=this.zone.offset(localTS-oEarlier*minuteMs),o2=this.zone.offset(localTS-oLater*minuteMs);if(o1===o2)return[this];let ts1=localTS-o1*minuteMs,ts2=localTS-o2*minuteMs,c1=tsToObj(ts1,o1),c2=tsToObj(ts2,o2);return c1.hour===c2.hour&&c1.minute===c2.minute&&c1.second===c2.second&&c1.millisecond===c2.millisecond?[clone(this,{ts:ts1}),clone(this,{ts:ts2})]:[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(opts={}){let{locale,numberingSystem,calendar}=Formatter.create(this.loc.clone(opts),opts).resolvedOptions(this);return{locale,numberingSystem,outputCalendar:calendar}}toUTC(offset$2=0,opts={}){return this.setZone(FixedOffsetZone.instance(offset$2),opts)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(zone,{keepLocalTime=!1,keepCalendarTime=!1}={}){if(zone=normalizeZone(zone,Settings.defaultZone),zone.equals(this.zone))return this;if(zone.isValid){let newTS=this.ts;if(keepLocalTime||keepCalendarTime){let offsetGuess=zone.offset(this.ts),asObj=this.toObject();[newTS]=objToTS(asObj,offsetGuess,zone)}return clone(this,{ts:newTS,zone})}else return DateTime.invalid(unsupportedZone(zone))}reconfigure({locale,numberingSystem,outputCalendar}={}){let loc=this.loc.clone({locale,numberingSystem,outputCalendar});return clone(this,{loc})}setLocale(locale){return this.reconfigure({locale})}set(values){if(!this.isValid)return this;let normalized=normalizeObject(values,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek,startOfWeek}=usesLocalWeekValues(normalized,this.loc),settingWeekStuff=!isUndefined(normalized.weekYear)||!isUndefined(normalized.weekNumber)||!isUndefined(normalized.weekday),containsOrdinal=!isUndefined(normalized.ordinal),containsGregorYear=!isUndefined(normalized.year),containsGregorMD=!isUndefined(normalized.month)||!isUndefined(normalized.day),containsGregor=containsGregorYear||containsGregorMD,definiteWeekDef=normalized.weekYear||normalized.weekNumber;if((containsGregor||containsOrdinal)&&definiteWeekDef)throw new ConflictingSpecificationError(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(containsGregorMD&&containsOrdinal)throw new ConflictingSpecificationError(`Can't mix ordinal dates with month/day`);let mixed;settingWeekStuff?mixed=weekToGregorian({...gregorianToWeek(this.c,minDaysInFirstWeek,startOfWeek),...normalized},minDaysInFirstWeek,startOfWeek):isUndefined(normalized.ordinal)?(mixed={...this.toObject(),...normalized},isUndefined(normalized.day)&&(mixed.day=Math.min(daysInMonth(mixed.year,mixed.month),mixed.day))):mixed=ordinalToGregorian({...gregorianToOrdinal(this.c),...normalized});let[ts,o]=objToTS(mixed,this.o,this.zone);return clone(this,{ts,o})}plus(duration){if(!this.isValid)return this;let dur=Duration.fromDurationLike(duration);return clone(this,adjustTime(this,dur))}minus(duration){if(!this.isValid)return this;let dur=Duration.fromDurationLike(duration).negate();return clone(this,adjustTime(this,dur))}startOf(unit,{useLocaleWeeks=!1}={}){if(!this.isValid)return this;let o={},normalizedUnit=Duration.normalizeUnit(unit);switch(normalizedUnit){case`years`:o.month=1;case`quarters`:case`months`:o.day=1;case`weeks`:case`days`:o.hour=0;case`hours`:o.minute=0;case`minutes`:o.second=0;case`seconds`:o.millisecond=0;break}if(normalizedUnit===`weeks`)if(useLocaleWeeks){let startOfWeek=this.loc.getStartOfWeek(),{weekday}=this;weekday<startOfWeek&&(o.weekNumber=this.weekNumber-1),o.weekday=startOfWeek}else o.weekday=1;if(normalizedUnit===`quarters`){let q=Math.ceil(this.month/3);o.month=(q-1)*3+1}return this.set(o)}endOf(unit,opts){return this.isValid?this.plus({[unit]:1}).startOf(unit,opts).minus(1):this}toFormat(fmt,opts={}){return this.isValid?Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this,fmt):INVALID}toLocaleString(formatOpts=DATE_SHORT,opts={}){return this.isValid?Formatter.create(this.loc.clone(opts),formatOpts).formatDateTime(this):INVALID}toLocaleParts(opts={}){return this.isValid?Formatter.create(this.loc.clone(opts),opts).formatDateTimeParts(this):[]}toISO({format=`extended`,suppressSeconds=!1,suppressMilliseconds=!1,includeOffset=!0,extendedZone=!1,precision=`milliseconds`}={}){if(!this.isValid)return null;precision=normalizeUnit(precision);let ext=format===`extended`,c$1=toISODate(this,ext,precision);return orderedUnits.indexOf(precision)>=3&&(c$1+=`T`),c$1+=toISOTime(this,ext,suppressSeconds,suppressMilliseconds,includeOffset,extendedZone,precision),c$1}toISODate({format=`extended`,precision=`day`}={}){return this.isValid?toISODate(this,format===`extended`,normalizeUnit(precision)):null}toISOWeekDate(){return toTechFormat(this,`kkkk-'W'WW-c`)}toISOTime({suppressMilliseconds=!1,suppressSeconds=!1,includeOffset=!0,includePrefix=!1,extendedZone=!1,format=`extended`,precision=`milliseconds`}={}){if(!this.isValid)return null;precision=normalizeUnit(precision);let c$1=includePrefix&&orderedUnits.indexOf(precision)>=3?`T`:``;return c$1+toISOTime(this,format===`extended`,suppressSeconds,suppressMilliseconds,includeOffset,extendedZone,precision)}toRFC2822(){return toTechFormat(this,`EEE, dd LLL yyyy HH:mm:ss ZZZ`,!1)}toHTTP(){return toTechFormat(this.toUTC(),`EEE, dd LLL yyyy HH:mm:ss 'GMT'`)}toSQLDate(){return this.isValid?toISODate(this,!0):null}toSQLTime({includeOffset=!0,includeZone=!1,includeOffsetSpace=!0}={}){let fmt=`HH:mm:ss.SSS`;return(includeZone||includeOffset)&&(includeOffsetSpace&&(fmt+=` `),includeZone?fmt+=`z`:includeOffset&&(fmt+=`ZZ`)),toTechFormat(this,fmt,!0)}toSQL(opts={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(opts)}`:null}toString(){return this.isValid?this.toISO():INVALID}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(opts={}){if(!this.isValid)return{};let base={...this.c};return opts.includeConfig&&(base.outputCalendar=this.outputCalendar,base.numberingSystem=this.loc.numberingSystem,base.locale=this.loc.locale),base}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(otherDateTime,unit=`milliseconds`,opts={}){if(!this.isValid||!otherDateTime.isValid)return Duration.invalid(`created by diffing an invalid DateTime`);let durOpts={locale:this.locale,numberingSystem:this.numberingSystem,...opts},units=maybeArray(unit).map(Duration.normalizeUnit),otherIsLater=otherDateTime.valueOf()>this.valueOf(),earlier=otherIsLater?this:otherDateTime,later=otherIsLater?otherDateTime:this,diffed=diff$2(earlier,later,units,durOpts);return otherIsLater?diffed.negate():diffed}diffNow(unit=`milliseconds`,opts={}){return this.diff(DateTime.now(),unit,opts)}until(otherDateTime){return this.isValid?Interval.fromDateTimes(this,otherDateTime):this}hasSame(otherDateTime,unit,opts){if(!this.isValid)return!1;let inputMs=otherDateTime.valueOf(),adjustedToZone=this.setZone(otherDateTime.zone,{keepLocalTime:!0});return adjustedToZone.startOf(unit,opts)<=inputMs&&inputMs<=adjustedToZone.endOf(unit,opts)}equals(other){return this.isValid&&other.isValid&&this.valueOf()===other.valueOf()&&this.zone.equals(other.zone)&&this.loc.equals(other.loc)}toRelative(options={}){if(!this.isValid)return null;let base=options.base||DateTime.fromObject({},{zone:this.zone}),padding=options.padding?this<base?-options.padding:options.padding:0,units=[`years`,`months`,`days`,`hours`,`minutes`,`seconds`],unit=options.unit;return Array.isArray(options.unit)&&(units=options.unit,unit=void 0),diffRelative(base,this.plus(padding),{...options,numeric:`always`,units,unit})}toRelativeCalendar(options={}){return this.isValid?diffRelative(options.base||DateTime.fromObject({},{zone:this.zone}),this,{...options,numeric:`auto`,units:[`years`,`months`,`days`],calendary:!0}):null}static min(...dateTimes){if(!dateTimes.every(DateTime.isDateTime))throw new InvalidArgumentError(`min requires all arguments be DateTimes`);return bestBy(dateTimes,i$4=>i$4.valueOf(),Math.min)}static max(...dateTimes){if(!dateTimes.every(DateTime.isDateTime))throw new InvalidArgumentError(`max requires all arguments be DateTimes`);return bestBy(dateTimes,i$4=>i$4.valueOf(),Math.max)}static fromFormatExplain(text,fmt,options={}){let{locale=null,numberingSystem=null}=options,localeToUse=Locale.fromOpts({locale,numberingSystem,defaultToEN:!0});return explainFromTokens(localeToUse,text,fmt)}static fromStringExplain(text,fmt,options={}){return DateTime.fromFormatExplain(text,fmt,options)}static buildFormatParser(fmt,options={}){let{locale=null,numberingSystem=null}=options,localeToUse=Locale.fromOpts({locale,numberingSystem,defaultToEN:!0});return new TokenParser(localeToUse,fmt)}static fromFormatParser(text,formatParser,opts={}){if(isUndefined(text)||isUndefined(formatParser))throw new InvalidArgumentError(`fromFormatParser requires an input string and a format parser`);let{locale=null,numberingSystem=null}=opts,localeToUse=Locale.fromOpts({locale,numberingSystem,defaultToEN:!0});if(!localeToUse.equals(formatParser.locale))throw new InvalidArgumentError(`fromFormatParser called with a locale of ${localeToUse}, but the format parser was created for ${formatParser.locale}`);let{result,zone,specificOffset,invalidReason}=formatParser.explainFromTokens(text);return invalidReason?DateTime.invalid(invalidReason):parseDataToDateTime(result,zone,opts,`format ${formatParser.format}`,text,specificOffset)}static get DATE_SHORT(){return DATE_SHORT}static get DATE_MED(){return DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return DATE_FULL}static get DATE_HUGE(){return DATE_HUGE}static get TIME_SIMPLE(){return TIME_SIMPLE}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS}};function friendlyDateTime(dateTimeish){if(DateTime.isDateTime(dateTimeish))return dateTimeish;if(dateTimeish&&dateTimeish.valueOf&&isNumber(dateTimeish.valueOf()))return DateTime.fromJSDate(dateTimeish);if(dateTimeish&&typeof dateTimeish==`object`)return DateTime.fromObject(dateTimeish);throw new InvalidArgumentError(`Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`)}var require_dayjs_min=__commonJSMin((exports,module)=>{(function(t$5,e){typeof exports==`object`&&module!==void 0?module.exports=e():typeof define==`function`&&define.amd?define(e):(t$5=typeof globalThis<`u`?globalThis:t$5||self).dayjs=e()})(exports,function(){"use strict";var t$5=1e3,e=6e4,n$2=36e5,r=`millisecond`,i$4=`second`,s$2=`minute`,u=`hour`,a=`day`,o=`week`,c$1=`month`,f=`quarter`,h=`year`,d=`date`,l$2=`Invalid Date`,$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M$1={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(t$6){var e$1=[`th`,`st`,`nd`,`rd`],n$3=t$6%100;return`[`+t$6+(e$1[(n$3-20)%10]||e$1[n$3]||e$1[0])+`]`}},m=function(t$6,e$1,n$3){var r$1=String(t$6);return!r$1||r$1.length>=e$1?t$6:``+Array(e$1+1-r$1.length).join(n$3)+t$6},v={s:m,z:function(t$6){var e$1=-t$6.utcOffset(),n$3=Math.abs(e$1),r$1=Math.floor(n$3/60),i$5=n$3%60;return(e$1<=0?`+`:`-`)+m(r$1,2,`0`)+`:`+m(i$5,2,`0`)},m:function t$6(e$1,n$3){if(e$1.date()<n$3.date())return-t$6(n$3,e$1);var r$1=12*(n$3.year()-e$1.year())+(n$3.month()-e$1.month()),i$5=e$1.clone().add(r$1,c$1),s$3=n$3-i$5<0,u$1=e$1.clone().add(r$1+(s$3?-1:1),c$1);return+(-(r$1+(n$3-i$5)/(s$3?i$5-u$1:u$1-i$5))||0)},a:function(t$6){return t$6<0?Math.ceil(t$6)||0:Math.floor(t$6)},p:function(t$6){return{M:c$1,y:h,w:o,d:a,D:d,h:u,m:s$2,s:i$4,ms:r,Q:f}[t$6]||String(t$6||``).toLowerCase().replace(/s$/,``)},u:function(t$6){return t$6===void 0}},g$2=`en`,D={};D[g$2]=M$1;var p=`$isDayjsObject`,S=function(t$6){return t$6 instanceof _||!(!t$6||!t$6[p])},w=function t$6(e$1,n$3,r$1){var i$5;if(!e$1)return g$2;if(typeof e$1==`string`){var s$3=e$1.toLowerCase();D[s$3]&&(i$5=s$3),n$3&&(D[s$3]=n$3,i$5=s$3);var u$1=e$1.split(`-`);if(!i$5&&u$1.length>1)return t$6(u$1[0])}else{var a$1=e$1.name;D[a$1]=e$1,i$5=a$1}return!r$1&&i$5&&(g$2=i$5),i$5||!r$1&&g$2},O=function(t$6,e$1){if(S(t$6))return t$6.clone();var n$3=typeof e$1==`object`?e$1:{};return n$3.date=t$6,n$3.args=arguments,new _(n$3)},b=v;b.l=w,b.i=S,b.w=function(t$6,e$1){return O(t$6,{locale:e$1.$L,utc:e$1.$u,x:e$1.$x,$offset:e$1.$offset})};var _=function(){function M$2(t$6){this.$L=w(t$6.locale,null,!0),this.parse(t$6),this.$x=this.$x||t$6.x||{},this[p]=!0}var m$1=M$2.prototype;return m$1.parse=function(t$6){this.$d=function(t$7){var e$1=t$7.date,n$3=t$7.utc;if(e$1===null)return new Date(NaN);if(b.u(e$1))return new Date;if(e$1 instanceof Date)return new Date(e$1);if(typeof e$1==`string`&&!/Z$/i.test(e$1)){var r$1=e$1.match($);if(r$1){var i$5=r$1[2]-1||0,s$3=(r$1[7]||`0`).substring(0,3);return n$3?new Date(Date.UTC(r$1[1],i$5,r$1[3]||1,r$1[4]||0,r$1[5]||0,r$1[6]||0,s$3)):new Date(r$1[1],i$5,r$1[3]||1,r$1[4]||0,r$1[5]||0,r$1[6]||0,s$3)}}return new Date(e$1)}(t$6),this.init()},m$1.init=function(){var t$6=this.$d;this.$y=t$6.getFullYear(),this.$M=t$6.getMonth(),this.$D=t$6.getDate(),this.$W=t$6.getDay(),this.$H=t$6.getHours(),this.$m=t$6.getMinutes(),this.$s=t$6.getSeconds(),this.$ms=t$6.getMilliseconds()},m$1.$utils=function(){return b},m$1.isValid=function(){return this.$d.toString()!==l$2},m$1.isSame=function(t$6,e$1){var n$3=O(t$6);return this.startOf(e$1)<=n$3&&n$3<=this.endOf(e$1)},m$1.isAfter=function(t$6,e$1){return O(t$6)<this.startOf(e$1)},m$1.isBefore=function(t$6,e$1){return this.endOf(e$1)<O(t$6)},m$1.$g=function(t$6,e$1,n$3){return b.u(t$6)?this[e$1]:this.set(n$3,t$6)},m$1.unix=function(){return Math.floor(this.valueOf()/1e3)},m$1.valueOf=function(){return this.$d.getTime()},m$1.startOf=function(t$6,e$1){var n$3=this,r$1=!!b.u(e$1)||e$1,f$1=b.p(t$6),l$3=function(t$7,e$2){var i$5=b.w(n$3.$u?Date.UTC(n$3.$y,e$2,t$7):new Date(n$3.$y,e$2,t$7),n$3);return r$1?i$5:i$5.endOf(a)},$$1=function(t$7,e$2){return b.w(n$3.toDate()[t$7].apply(n$3.toDate(`s`),(r$1?[0,0,0,0]:[23,59,59,999]).slice(e$2)),n$3)},y$1=this.$W,M$3=this.$M,m$2=this.$D,v$1=`set`+(this.$u?`UTC`:``);switch(f$1){case h:return r$1?l$3(1,0):l$3(31,11);case c$1:return r$1?l$3(1,M$3):l$3(0,M$3+1);case o:var g$3=this.$locale().weekStart||0,D$1=(y$1<g$3?y$1+7:y$1)-g$3;return l$3(r$1?m$2-D$1:m$2+(6-D$1),M$3);case a:case d:return $$1(v$1+`Hours`,0);case u:return $$1(v$1+`Minutes`,1);case s$2:return $$1(v$1+`Seconds`,2);case i$4:return $$1(v$1+`Milliseconds`,3);default:return this.clone()}},m$1.endOf=function(t$6){return this.startOf(t$6,!1)},m$1.$set=function(t$6,e$1){var n$3,o$1=b.p(t$6),f$1=`set`+(this.$u?`UTC`:``),l$3=(n$3={},n$3[a]=f$1+`Date`,n$3[d]=f$1+`Date`,n$3[c$1]=f$1+`Month`,n$3[h]=f$1+`FullYear`,n$3[u]=f$1+`Hours`,n$3[s$2]=f$1+`Minutes`,n$3[i$4]=f$1+`Seconds`,n$3[r]=f$1+`Milliseconds`,n$3)[o$1],$$1=o$1===a?this.$D+(e$1-this.$W):e$1;if(o$1===c$1||o$1===h){var y$1=this.clone().set(d,1);y$1.$d[l$3]($$1),y$1.init(),this.$d=y$1.set(d,Math.min(this.$D,y$1.daysInMonth())).$d}else l$3&&this.$d[l$3]($$1);return this.init(),this},m$1.set=function(t$6,e$1){return this.clone().$set(t$6,e$1)},m$1.get=function(t$6){return this[b.p(t$6)]()},m$1.add=function(r$1,f$1){var d$1,l$3=this;r$1=Number(r$1);var $$1=b.p(f$1),y$1=function(t$6){var e$1=O(l$3);return b.w(e$1.date(e$1.date()+Math.round(t$6*r$1)),l$3)};if($$1===c$1)return this.set(c$1,this.$M+r$1);if($$1===h)return this.set(h,this.$y+r$1);if($$1===a)return y$1(1);if($$1===o)return y$1(7);var M$3=(d$1={},d$1[s$2]=e,d$1[u]=n$2,d$1[i$4]=t$5,d$1)[$$1]||1,m$2=this.$d.getTime()+r$1*M$3;return b.w(m$2,this)},m$1.subtract=function(t$6,e$1){return this.add(-1*t$6,e$1)},m$1.format=function(t$6){var e$1=this,n$3=this.$locale();if(!this.isValid())return n$3.invalidDate||l$2;var r$1=t$6||`YYYY-MM-DDTHH:mm:ssZ`,i$5=b.z(this),s$3=this.$H,u$1=this.$m,a$1=this.$M,o$1=n$3.weekdays,c$2=n$3.months,f$1=n$3.meridiem,h$1=function(t$7,n$4,i$6,s$4){return t$7&&(t$7[n$4]||t$7(e$1,r$1))||i$6[n$4].slice(0,s$4)},d$1=function(t$7){return b.s(s$3%12||12,t$7,`0`)},$$1=f$1||function(t$7,e$2,n$4){var r$2=t$7<12?`AM`:`PM`;return n$4?r$2.toLowerCase():r$2};return r$1.replace(y,function(t$7,r$2){return r$2||function(t$8){switch(t$8){case`YY`:return String(e$1.$y).slice(-2);case`YYYY`:return b.s(e$1.$y,4,`0`);case`M`:return a$1+1;case`MM`:return b.s(a$1+1,2,`0`);case`MMM`:return h$1(n$3.monthsShort,a$1,c$2,3);case`MMMM`:return h$1(c$2,a$1);case`D`:return e$1.$D;case`DD`:return b.s(e$1.$D,2,`0`);case`d`:return String(e$1.$W);case`dd`:return h$1(n$3.weekdaysMin,e$1.$W,o$1,2);case`ddd`:return h$1(n$3.weekdaysShort,e$1.$W,o$1,3);case`dddd`:return o$1[e$1.$W];case`H`:return String(s$3);case`HH`:return b.s(s$3,2,`0`);case`h`:return d$1(1);case`hh`:return d$1(2);case`a`:return $$1(s$3,u$1,!0);case`A`:return $$1(s$3,u$1,!1);case`m`:return String(u$1);case`mm`:return b.s(u$1,2,`0`);case`s`:return String(e$1.$s);case`ss`:return b.s(e$1.$s,2,`0`);case`SSS`:return b.s(e$1.$ms,3,`0`);case`Z`:return i$5}return null}(t$7)||i$5.replace(`:`,``)})},m$1.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m$1.diff=function(r$1,d$1,l$3){var $$1,y$1=this,M$3=b.p(d$1),m$2=O(r$1),v$1=(m$2.utcOffset()-this.utcOffset())*e,g$3=this-m$2,D$1=function(){return b.m(y$1,m$2)};switch(M$3){case h:$$1=D$1()/12;break;case c$1:$$1=D$1();break;case f:$$1=D$1()/3;break;case o:$$1=(g$3-v$1)/6048e5;break;case a:$$1=(g$3-v$1)/864e5;break;case u:$$1=g$3/n$2;break;case s$2:$$1=g$3/e;break;case i$4:$$1=g$3/t$5;break;default:$$1=g$3}return l$3?$$1:b.a($$1)},m$1.daysInMonth=function(){return this.endOf(c$1).$D},m$1.$locale=function(){return D[this.$L]},m$1.locale=function(t$6,e$1){if(!t$6)return this.$L;var n$3=this.clone(),r$1=w(t$6,e$1,!0);return r$1&&(n$3.$L=r$1),n$3},m$1.clone=function(){return b.w(this.$d,this)},m$1.toDate=function(){return new Date(this.valueOf())},m$1.toJSON=function(){return this.isValid()?this.toISOString():null},m$1.toISOString=function(){return this.$d.toISOString()},m$1.toString=function(){return this.$d.toUTCString()},M$2}(),k=_.prototype;return O.prototype=k,[[`$ms`,r],[`$s`,i$4],[`$m`,s$2],[`$H`,u],[`$W`,a],[`$M`,c$1],[`$y`,h],[`$D`,d]].forEach(function(t$6){k[t$6[1]]=function(e$1){return this.$g(e$1,t$6[0],t$6[1])}}),O.extend=function(t$6,e$1){return t$6.$i||(t$6(e$1,_,O),t$6.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t$6){return O(1e3*t$6)},O.en=D[g$2],O.Ls=D,O.p={},O})});const isInstanceOf=(value,type,ctor)=>{if(ctor!==void 0&&value instanceof ctor||ctor!==void 0&&typeof ctor[Symbol.hasInstance]==`function`&&ctor[Symbol.hasInstance](value))return!0;if(typeof value==`object`&&value){let valueWithConstructor=value,constructorName=valueWithConstructor.constructor?.name;return constructorName===type}return!1},isLuxonDateTime=value=>value instanceof DateTime?!0:typeof value!=`object`||!value||!(`isLuxonDateTime`in value)?!1:value.isLuxonDateTime===!0,isPlainObject=value=>typeof value==`object`&&!!value&&!Array.isArray(value),isDateObjectUnits=value=>{if(!isPlainObject(value))return!1;let keys=Object.keys(value);if(keys.length===0)return!1;let valids=[`year`,`month`,`day`,`ordinal`,`weekYear`,`localWeekYear`,`weekNumber`,`localWeekNumber`,`weekday`,`localWeekday`,`hour`,`minute`,`second`,`millisecond`],invalidKeys=keys.filter(key=>!valids.includes(key));return invalidKeys.length>0?!1:keys.every(key=>{let val=value[key];return typeof val==`number`||val===void 0})};var import_dayjs_min=__toESM(require_dayjs_min());Settings.defaultZone=`utc`,Settings.defaultLocale=`en`,Settings.defaultWeekSettings={firstDay:7,minimalDays:4,weekend:[6,7]},Settings.throwOnInvalid=!1;const removeComments=str=>(str=str.replace(/\/\/.*$/gm,``),str=str.replace(/\/\*[\s\S]*?\*\//g,``),str),extractFunctionBody=fn$1=>{let fnString=fn$1.toString();if(fnString.includes(`[native code]`))throw Error(`Cannot extract body from native function`);let cleanedString=removeComments(fnString),arrowMatch=cleanedString.match(/^\s*(?:async\s+)?(?:\([^)]*\)|[^=]+)\s*=>\s*(.+)$/s);if(arrowMatch&&!arrowMatch[1].trim().startsWith(`{`)){let expression=arrowMatch[1].trim().replace(/;?\s*$/,``);if(expression.startsWith(`(`)&&expression.endsWith(`)`)){let unwrapped=expression.slice(1,-1).trim();if(unwrapped.startsWith(`{`)&&unwrapped.endsWith(`}`))return`return ${unwrapped}`}return`return ${expression}`}let braceCount=0,inString=!1,stringChar=``,inTemplate=!1,escaped=!1,firstBrace=-1,lastBrace=-1;for(let[i$4,char]of Array.from(cleanedString).entries()){if(escaped){escaped=!1;continue}if(char===`\\`){escaped=!0;continue}if(!inString&&!inTemplate){if(char===`"`||char===`'`){inString=!0,stringChar=char;continue}if(char==="`"){inTemplate=!0;continue}}else if(inString&&char===stringChar){inString=!1;continue}else if(inTemplate&&char==="`"){inTemplate=!1;continue}if(!inString&&!inTemplate){if(char===`{`)firstBrace===-1&&(firstBrace=i$4),braceCount++;else if(char===`}`&&(braceCount--,braceCount===0&&firstBrace!==-1)){lastBrace=i$4;break}}}if(firstBrace===-1||lastBrace===-1||firstBrace>=lastBrace)throw Error(`Unable to extract function body - no valid braces found`);let body=cleanedString.slice(firstBrace+1,lastBrace).trim();if(/\breturn\b/.test(body))return body;let beforeBrace=cleanedString.slice(0,firstBrace).trim();if(beforeBrace.endsWith(`=>`)||beforeBrace.endsWith(`=> (`)||beforeBrace.endsWith(`=>(`)){let objectLiteralPattern=/^\s*(?:[a-zA-Z_$][\w$]*\s*:|["'`][^"'`]+["'`]\s*:|get\s+|set\s+|\[)/;if(objectLiteralPattern.test(body))return`return {${body}}`}return`return ${body}`},compileCallback=body=>{try{return Function(`dt`,`helpers`,body)}catch(error){throw Error(`Failed to compile callback: ${error instanceof Error?error.message:String(error)}`)}},messages$2={"datetime.base":`{{#label}} must be a datetime value`,"datetime.exactly":`{{#label}} must be a datetime exactly equal to {{#limit}}`,"datetime.equals":`{{#label}} must be a datetime equal to {{#limit}}`,"datetime.after":`{{#label}} must be a datetime after {{#limit}}`,"datetime.greater":`{{#label}} must be a datetime after {{#limit}}`,"datetime.before":`{{#label}} must be a datetime before {{#limit}}`,"datetime.less":`{{#label}} must be a datetime before {{#limit}}`,"datetime.afterOrEqual":`{{#label}} must be a datetime after or equal to {{#limit}}`,"datetime.min":`{{#label}} must be a datetime after or equal to {{#limit}}`,"datetime.beforeOrEqual":`{{#label}} must be a datetime before or equal to {{#limit}}`,"datetime.max":`{{#label}} must be a datetime before or equal to {{#limit}}`,"datetime.weekend":`{{#label}} is not a weekend`,"datetime.weekday":`{{#label}} is not a weekday`},compare$12=(value,limit,operator)=>{switch(value=toDateTime(value),limit=toDateTime(limit),operator){case`===`:return value.equals(limit);case`=`:return value.hasSame(limit,`millisecond`);case`>`:return value>limit;case`<`:return value<limit;case`>=`:return value>=limit;case`<=`:return value<=limit;default:return!1}},backToDateTime=value=>value instanceof DateTime?value:DateTime.fromObject(value.c,{zone:value.zone}).setLocale(value.loc.locale),toDateTime=(value,format)=>{if(isLuxonDateTime(value))return value instanceof DateTime?value:backToDateTime(value);if(isInstanceOf(value,`Date`,Date))return DateTime.fromJSDate(value);if(isInstanceOf(value,`Dayjs`)||import_dayjs_min.default.isDayjs(value))return DateTime.fromJSDate(value.toDate());if(isDateObjectUnits(value))return DateTime.fromObject(value,{zone:`utc`});if(typeof value==`number`){let day=(0,import_dayjs_min.default)(value);if(day.isValid())return DateTime.fromJSDate(day.toDate(),{zone:`utc`})}if(typeof value==`string`){if(format){let dateTime=DateTime.fromFormat(value,format,{zone:`utc`});if(dateTime.isValid)return dateTime}let isoDateTime=DateTime.fromISO(value,{setZone:!0});if(isoDateTime.isValid)return isoDateTime;let luxonMethods=[DateTime.fromRFC2822,DateTime.fromHTTP,DateTime.fromSQL];for(let method of luxonMethods){let dateTime=method(value,{zone:`utc`});if(dateTime.isValid)return dateTime}let day=(0,import_dayjs_min.default)(value);if(day.isValid())return DateTime.fromJSDate(day.toDate(),{zone:`utc`})}return!1},coerce$2=(value,helpers)=>{let converted=toDateTime(value);if(converted){let{schema,prefs}=helpers;if(prefs.convert){let returnable=converted;if(schema._flags.setZone&&Array.isArray(schema._flags.setZone))if(Array.isArray(schema._flags.setZone[0]))Array.from(schema._flags.setZone).forEach(f=>{if(!f)return;let[zone,opts]=Array.from(f);switch(zone){case`utc`:case`UTC`:returnable=returnable.toUTC();break;case`local`:returnable=returnable.toLocal();break;default:returnable=returnable.setZone(zone,opts);break}});else{let[zone,opts]=Array.from(schema._flags.setZone);switch(zone){case`utc`:case`UTC`:returnable=returnable.toUTC();break;case`local`:returnable=returnable.toLocal();break;default:returnable=returnable.setZone(zone,opts);break}}if(schema._flags.setLocale&&(returnable=returnable.setLocale(schema._flags.setLocale)),schema._flags.toFormat){if(Array.isArray(schema._flags.toFormat)){let fmt=Array.from(schema._flags.toFormat),method=fmt.shift(),processedArgs=fmt.map(arg=>{if(typeof arg==`string`&&arg.includes(`return`)){let compiledFn=compileCallback(arg);return compiledFn(returnable,helpers)}return arg});returnable=returnable[method](...processedArgs)}else if(typeof schema._flags.toFormat==`string`)if(schema._flags.toFormat.includes(`return`)){let compiledFn=compileCallback(schema._flags.toFormat),result=compiledFn(returnable,helpers);returnable=returnable.toFormat(result)}else returnable=returnable.toFormat(schema._flags.toFormat)}return{value:returnable}}return{value:converted}}return{value,errors:[helpers.error(`datetime.base`,{value:String(value)})]}},datetime=function(joi){return{type:`datetime`,base:joi.any(),coerce:{from:[`string`,`number`,`date`,`object`],method:coerce$2},rules:{compare:{method:!1,validate(value,helpers,{limit},{name:name$1,operator}){let src$1=toDateTime(value),threshold=toDateTime(limit);if(!src$1||!threshold)return helpers.error(`datetime.base`,{value:isLuxonDateTime(value)?value.toLocaleString(DateTime.DATETIME_MED):String(value)});let valid$2=compare$12(src$1,threshold,operator);return valid$2?value:helpers.error(`datetime.`+name$1,{limit:threshold.toLocaleString(DateTime.DATETIME_MED),value:src$1.toLocaleString(DateTime.DATETIME_MED)})},args:[{name:`limit`,ref:!0,assert:value=>isLuxonDateTime(toDateTime(value)),message:`must be a datetime`}]},exactly:{method(limit){return this.$_addRule({name:`exactly`,method:`compare`,args:{limit},operator:`===`})}},equals:{method(limit){return this.$_addRule({name:`equals`,method:`compare`,args:{limit},operator:`=`})}},after:{method(limit){return this.$_addRule({name:`after`,method:`compare`,args:{limit},operator:`>`})}},greater:{method(limit){return this.$_addRule({name:`greater`,method:`compare`,args:{limit},operator:`>`})}},before:{method(limit){return this.$_addRule({name:`before`,method:`compare`,args:{limit},operator:`<`})}},less:{method(limit){return this.$_addRule({name:`less`,method:`compare`,args:{limit},operator:`<`})}},afterOrEqual:{method(limit){return this.$_addRule({name:`afterOrEqual`,method:`compare`,args:{limit},operator:`>=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`compare`,args:{limit},operator:`>=`})}},beforeOrEqual:{method(limit){return this.$_addRule({name:`beforeOrEqual`,method:`compare`,args:{limit},operator:`<=`})}},max:{method(limit){return this.$_addRule({name:`max`,method:`compare`,args:{limit},operator:`<=`})}},weekend:{method(){return this.$_addRule({name:`weekend`})},validate(value,helpers){let confirmable=toDateTime(value);return confirmable.isWeekend?value:helpers.error(`datetime.weekend`,{value:confirmable.toLocaleString(DateTime.DATE_MED)})}},weekday:{method(){return this.$_addRule({name:`weekday`})},validate(value,helpers){let confirmable=toDateTime(value);return confirmable.isWeekend?helpers.error(`datetime.weekday`,{value:confirmable.toLocaleString(DateTime.DATE_MED)}):value}},toUTC:{method(){return this.$_setFlag(`setZone`,[`utc`])}},toLocal:{method(){return this.$_setFlag(`setZone`,[`local`])}},setZone:{method(zone,opts){return this.$_setFlag(`setZone`,[zone,opts])}},toFormat:{method(format){let processedFormat=typeof format==`function`?extractFunctionBody(format):format;return this.$_setFlag(`toFormat`,processedFormat,{clone:!0})}},toLocalizedString:{method(formatOpts){let processedOpts=typeof formatOpts==`function`?extractFunctionBody(formatOpts):formatOpts;return this.$_setFlag(`toFormat`,[`toLocaleString`,processedOpts],{clone:!0})}},toISO:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toISO`,processedOpts]:[`toISO`],{clone:!0})}},toISODate:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toISODate`,processedOpts]:[`toISODate`],{clone:!0})}},toISOWeekDate:{method(){return this.$_setFlag(`toFormat`,[`toISOWeekDate`],{clone:!0})}},toISOTime:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toISOTime`,processedOpts]:[`toISOTime`],{clone:!0})}},toRFC2822:{method(){return this.$_setFlag(`toFormat`,[`toRFC2822`],{clone:!0})}},toHTTP:{method(){return this.$_setFlag(`toFormat`,[`toHTTP`],{clone:!0})}},toSQLDate:{method(){return this.$_setFlag(`toFormat`,[`toSQLDate`],{clone:!0})}},toSQLTime:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toSQLTime`,processedOpts]:[`toSQLTime`],{clone:!0})}},toSQL:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toSQL`,processedOpts]:[`toSQL`],{clone:!0})}},toMillis:{method(){return this.$_setFlag(`toFormat`,[`toMillis`],{clone:!0})}},toSeconds:{method(){return this.$_setFlag(`toFormat`,[`toSeconds`],{clone:!0})}},toUnixInteger:{method(){return this.$_setFlag(`toFormat`,[`toUnixInteger`],{clone:!0})}},toJSON:{method(){return this.$_setFlag(`toFormat`,[`toJSON`],{clone:!0})}},toBSON:{method(){return this.$_setFlag(`toFormat`,[`toBSON`],{clone:!0})}},toObject:{method(opts){let config=typeof opts==`function`?extractFunctionBody(opts):opts?.includeConfig===void 0?{includeConfig:!1}:{includeConfig:opts.includeConfig};return this.$_setFlag(`toFormat`,[`toObject`,config],{clone:!0})}},toJSDate:{method(){return this.$_setFlag(`toFormat`,[`toJSDate`],{clone:!0})}},toRelative:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toRelative`,processedOpts]:[`toRelative`],{clone:!0})}},setLocale:{method(locale){return this.$_setFlag(`setLocale`,locale)}}},messages:messages$2}},generate=(root,schema,args$1)=>(schema.$_root=root,!schema._definition.args||!args$1.length?schema:schema._definition.args(schema,...args$1)),knownMessages={"alternatives.all":`{{#label}} does not match all of the required types`,"alternatives.any":`{{#label}} does not match any of the allowed types`,"alternatives.match":`{{#label}} does not match any of the allowed types`,"alternatives.one":`{{#label}} matches more than one allowed type`,"alternatives.types":`{{#label}} must be one of {{#types}}`,"any.custom":`{{#label}} failed custom validation because {{#error.message}}`,"any.default":`{{#label}} threw an error when running default method`,"any.failover":`{{#label}} threw an error when running failover method`,"any.invalid":`{{#label}} contains an invalid value`,"any.only":`{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}`,"any.ref":`{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}`,"any.required":`{{#label}} is required`,"any.unknown":`{{#label}} is not allowed`,"array.base":`{{#label}} must be an array`,"array.excludes":`{{#label}} contains an excluded value`,"array.hasKnown":`{{#label}} does not contain at least one required match for type {:#patternLabel}`,"array.hasUnknown":`{{#label}} does not contain at least one required match`,"array.includes":`{{#label}} does not match any of the allowed types`,"array.includesRequiredBoth":`{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)`,"array.includesRequiredKnowns":`{{#label}} does not contain {{#knownMisses}}`,"array.includesRequiredUnknowns":`{{#label}} does not contain {{#unknownMisses}} required value(s)`,"array.length":`{{#label}} must contain {{#limit}} items`,"array.max":`{{#label}} must contain less than or equal to {{#limit}} items`,"array.min":`{{#label}} must contain at least {{#limit}} items`,"array.orderedLength":`{{#label}} must contain at most {{#limit}} items`,"array.sort":`{{#label}} must be sorted in {#order} order by {{#by}}`,"array.sort.mismatching":`{{#label}} cannot be sorted due to mismatching types`,"array.sort.unsupported":`{{#label}} cannot be sorted due to unsupported type {#type}`,"array.sparse":`{{#label}} must not be a sparse array item`,"array.unique":`{{#label}} contains a duplicate value`,"binary.base":`{{#label}} must be a buffer or a string`,"binary.length":`{{#label}} must be {{#limit}} bytes`,"binary.max":`{{#label}} must be less than or equal to {{#limit}} bytes`,"binary.min":`{{#label}} must be at least {{#limit}} bytes`,"boolean.base":`{{#label}} must be a boolean`,"date.base":`{{#label}} must be a valid date`,"date.format":`{{#label}} must be in {msg("date.format." + #format) || #format} format`,"date.greater":`{{#label}} must be greater than {{:#limit}}`,"date.less":`{{#label}} must be less than {{:#limit}}`,"date.max":`{{#label}} must be less than or equal to {{:#limit}}`,"date.min":`{{#label}} must be greater than or equal to {{:#limit}}`,"date.format.iso":`ISO 8601 date`,"date.format.javascript":`timestamp or number of milliseconds`,"date.format.unix":`timestamp or number of seconds`,"function.arity":`{{#label}} must have an arity of {{#n}}`,"function.class":`{{#label}} must be a class`,"function.maxArity":`{{#label}} must have an arity lesser or equal to {{#n}}`,"function.minArity":`{{#label}} must have an arity greater or equal to {{#n}}`,"object.and":`{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}`,"object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":`{{#label}} must be of type {{#type}}`,"object.instance":`{{#label}} must be an instance of {{:#type}}`,"object.length":`{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}`,"object.max":`{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}`,"object.min":`{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}`,"object.missing":`{{#label}} must contain at least one of {{#peersWithLabels}}`,"object.nand":`{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}`,"object.oxor":`{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}`,"object.pattern.match":`{{#label}} keys failed to match pattern requirements`,"object.refType":`{{#label}} must be a Joi reference`,"object.regex":`{{#label}} must be a RegExp object`,"object.rename.multiple":`{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}`,"object.rename.override":`{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists`,"object.schema":`{{#label}} must be a Joi schema of {{#type}} type`,"object.unknown":`{{#label}} is not allowed`,"object.with":`{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}`,"object.without":`{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}`,"object.xor":`{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}`,"number.base":`{{#label}} must be a number`,"number.greater":`{{#label}} must be greater than {{#limit}}`,"number.infinity":`{{#label}} cannot be infinity`,"number.integer":`{{#label}} must be an integer`,"number.less":`{{#label}} must be less than {{#limit}}`,"number.max":`{{#label}} must be less than or equal to {{#limit}}`,"number.min":`{{#label}} must be greater than or equal to {{#limit}}`,"number.multiple":`{{#label}} must be a multiple of {{#multiple}}`,"number.negative":`{{#label}} must be a negative number`,"number.port":`{{#label}} must be a valid port`,"number.positive":`{{#label}} must be a positive number`,"number.precision":`{{#label}} must have no more than {{#limit}} decimal places`,"number.unsafe":`{{#label}} must be a safe number`,"string.alphanum":`{{#label}} must only contain alpha-numeric characters`,"string.base":`{{#label}} must be a string`,"string.base64":`{{#label}} must be a valid base64 string`,"string.creditCard":`{{#label}} must be a credit card`,"string.dataUri":`{{#label}} must be a valid dataUri string`,"string.domain":`{{#label}} must contain a valid domain name`,"string.email":`{{#label}} must be a valid email`,"string.empty":`{{#label}} is not allowed to be empty`,"string.guid":`{{#label}} must be a valid GUID`,"string.hex":`{{#label}} must only contain hexadecimal characters`,"string.hexAlign":`{{#label}} hex decoded representation must be byte aligned`,"string.hostname":`{{#label}} must be a valid hostname`,"string.ip":`{{#label}} must be a valid ip address with a {{#cidr}} CIDR`,"string.ipVersion":`{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR`,"string.isoDate":`{{#label}} must be in iso format`,"string.isoDuration":`{{#label}} must be a valid ISO 8601 duration`,"string.length":`{{#label}} length must be {{#limit}} characters long`,"string.lowercase":`{{#label}} must only contain lowercase characters`,"string.max":`{{#label}} length must be less than or equal to {{#limit}} characters long`,"string.min":`{{#label}} length must be at least {{#limit}} characters long`,"string.normalize":`{{#label}} must be unicode normalized in the {{#form}} form`,"string.token":`{{#label}} must only contain alpha-numeric and underscore characters`,"string.pattern.base":`{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}`,"string.pattern.name":`{{#label}} with value {:[.]} fails to match the {{#name}} pattern`,"string.pattern.invert.base":`{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}`,"string.pattern.invert.name":`{{#label}} with value {:[.]} matches the inverted {{#name}} pattern`,"string.trim":`{{#label}} must not have leading or trailing whitespace`,"string.uri":`{{#label}} must be a valid uri`,"string.uriCustomScheme":`{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern`,"string.uriRelativeOnly":`{{#label}} must be a valid relative uri`,"string.uppercase":`{{#label}} must only contain uppercase characters`,"symbol.base":`{{#label}} must be a symbol`,"symbol.map":`{{#label}} must be one of {{#map}}`,...messages$1,...messages$2,...messages,...knexMessages};countries.forEach((name$1,iso)=>{knownMessages[`country.${iso}`]=name$1});let globalI18nCallback;const i18n=toPatch=>{let root=toPatch,joi=Object.assign({},root),joiTypes=joi.types(),originalMessages=new Map;Object.entries(knownMessages).forEach(([key,value])=>{originalMessages.set(key,value)});let doUpdateI18n=callback=>{globalI18nCallback=callback;let $t=term=>{if(globalI18nCallback)try{let ret=globalI18nCallback(term);if(typeof ret==`string`)return ret}catch{}return originalMessages.get(term)||term},applyMessagesToSchema=(schema,messages$3)=>schema.messages({"any.custom":$t(`any.custom`),"any.default":$t(`any.default`),"any.failover":$t(`any.failover`),"any.invalid":$t(`any.invalid`),"any.only":$t(`any.only`),"any.ref":$t(`any.ref`),"any.required":$t(`any.required`),"any.unknown":$t(`any.unknown`),...messages$3});Object.defineProperty(root,`$i18n`,{value:term=>$t(term),writable:!1,enumerable:!0,configurable:!0}),Object.keys(joiTypes).forEach(type=>{let t$5=type;if(typeof root[t$5]!=`function`)return;let baseSchema=root[t$5]();root[t$5]=(...args$1)=>{let schema=generate(root,baseSchema,args$1),knexTranslations=Object.fromEntries(Object.entries(knexMessages).map(([k])=>[k,$t(k)]));switch(type){case`alternatives`:return applyMessagesToSchema(schema,{"alternatives.all":$t(`alternatives.all`),"alternatives.any":$t(`alternatives.any`),"alternatives.match":$t(`alternatives.match`),"alternatives.one":$t(`alternatives.one`),"alternatives.types":$t(`alternatives.types`),...knexTranslations});case`any`:return applyMessagesToSchema(schema,{"any.custom":$t(`any.custom`),"any.default":$t(`any.default`),"any.failover":$t(`any.failover`),"any.invalid":$t(`any.invalid`),"any.only":$t(`any.only`),"any.ref":$t(`any.ref`),"any.required":$t(`any.required`),"any.unknown":$t(`any.unknown`),...knexTranslations});case`array`:return applyMessagesToSchema(schema,{"array.base":$t(`array.base`),"array.excludes":$t(`array.excludes`),"array.hasKnown":$t(`array.hasKnown`),"array.hasUnknown":$t(`array.hasUnknown`),"array.includes":$t(`array.includes`),"array.includesRequiredBoth":$t(`array.includesRequiredBoth`),"array.includesRequiredKnowns":$t(`array.includesRequiredKnowns`),"array.includesRequiredUnknowns":$t(`array.includesRequiredUnknowns`),"array.length":$t(`array.length`),"array.max":$t(`array.max`),"array.min":$t(`array.min`),"array.orderedLength":$t(`array.orderedLength`),"array.sort":$t(`array.sort`),"array.sort.mismatching":$t(`array.sort.mismatching`),"array.sort.unsupported":$t(`array.sort.unsupported`),"array.sparse":$t(`array.sparse`),"array.unique":$t(`array.unique`),...knexTranslations});case`binary`:return applyMessagesToSchema(schema,{"binary.base":$t(`binary.base`),"binary.length":$t(`binary.length`),"binary.max":$t(`binary.max`),"binary.min":$t(`binary.min`),...knexTranslations});case`boolean`:return applyMessagesToSchema(schema,{"boolean.base":$t(`boolean.base`),...knexTranslations});case`date`:return applyMessagesToSchema(schema,{"date.base":$t(`date.base`),"date.format":$t(`date.format`),"date.greater":$t(`date.greater`),"date.less":$t(`date.less`),"date.max":$t(`date.max`),"date.min":$t(`date.min`),"date.format.iso":$t(`date.format.iso`),"date.format.javascript":$t(`date.format.javascript`),"date.format.unix":$t(`date.format.unix`),...knexTranslations});case`function`:return applyMessagesToSchema(schema,{"function.arity":$t(`function.arity`),"function.class":$t(`function.class`),"function.maxArity":$t(`function.maxArity`),"function.minArity":$t(`function.minArity`),...knexTranslations});case`object`:case`keys`:return applyMessagesToSchema(schema,{"object.and":$t(`object.and`),"object.assert":$t(`object.assert`),"object.base":$t(`object.base`),"object.instance":$t(`object.instance`),"object.length":$t(`object.length`),"object.max":$t(`object.max`),"object.min":$t(`object.min`),"object.missing":$t(`object.missing`),"object.nand":$t(`object.nand`),"object.oxor":$t(`object.oxor`),"object.pattern.match":$t(`object.pattern.match`),"object.refType":$t(`object.refType`),"object.regex":$t(`object.regex`),"object.rename.multiple":$t(`object.rename.multiple`),"object.rename.override":$t(`object.rename.override`),"object.schema":$t(`object.schema`),"object.unknown":$t(`object.unknown`),"object.with":$t(`object.with`),"object.without":$t(`object.without`),"object.xor":$t(`object.xor`),...knexTranslations});case`number`:return applyMessagesToSchema(schema,{"number.base":$t(`number.base`),"number.greater":$t(`number.greater`),"number.infinity":$t(`number.infinity`),"number.integer":$t(`number.integer`),"number.less":$t(`number.less`),"number.max":$t(`number.max`),"number.min":$t(`number.min`),"number.multiple":$t(`number.multiple`),"number.negative":$t(`number.negative`),"number.port":$t(`number.port`),"number.positive":$t(`number.positive`),"number.precision":$t(`number.precision`),"number.unsafe":$t(`number.unsafe`),...knexTranslations});case`string`:return applyMessagesToSchema(schema,{"string.alphanum":$t(`string.alphanum`),"string.base":$t(`string.base`),"string.base64":$t(`string.base64`),"string.creditCard":$t(`string.creditCard`),"string.dataUri":$t(`string.dataUri`),"string.domain":$t(`string.domain`),"string.email":$t(`string.email`),"string.empty":$t(`string.empty`),"string.guid":$t(`string.guid`),"string.hex":$t(`string.hex`),"string.hexAlign":$t(`string.hexAlign`),"string.hostname":$t(`string.hostname`),"string.ip":$t(`string.ip`),"string.ipVersion":$t(`string.ipVersion`),"string.isoDate":$t(`string.isoDate`),"string.isoDuration":$t(`string.isoDuration`),"string.length":$t(`string.length`),"string.lowercase":$t(`string.lowercase`),"string.max":$t(`string.max`),"string.min":$t(`string.min`),"string.normalize":$t(`string.normalize`),"string.token":$t(`string.token`),"string.pattern.base":$t(`string.pattern.base`),"string.pattern.name":$t(`string.pattern.name`),"string.pattern.invert.base":$t(`string.pattern.invert.base`),"string.pattern.invert.name":$t(`string.pattern.invert.name`),"string.trim":$t(`string.trim`),"string.uri":$t(`string.uri`),"string.uriCustomScheme":$t(`string.uriCustomScheme`),"string.uriRelativeOnly":$t(`string.uriRelativeOnly`),"string.uppercase":$t(`string.uppercase`),...knexTranslations});case`symbol`:return applyMessagesToSchema(schema,{"symbol.base":$t(`symbol.base`),"symbol.map":$t(`symbol.map`),...knexTranslations});case`bigint`:return applyMessagesToSchema(schema,{"bigint.base":$t(`bigint.base`),"bigint.greater":$t(`bigint.greater`),"bigint.less":$t(`bigint.less`),"bigint.max":$t(`bigint.max`),"bigint.min":$t(`bigint.min`),"bigint.multiple":$t(`bigint.multiple`),"bigint.negative":$t(`bigint.negative`),"bigint.positive":$t(`bigint.positive`),...knexTranslations});case`datetime`:return applyMessagesToSchema(schema,{"datetime.base":$t(`datetime.base`),"datetime.exactly":$t(`datetime.exactly`),"datetime.equals":$t(`datetime.equals`),"datetime.after":$t(`datetime.after`),"datetime.greater":$t(`datetime.greater`),"datetime.before":$t(`datetime.before`),"datetime.less":$t(`datetime.less`),"datetime.afterOrEqual":$t(`datetime.afterOrEqual`),"datetime.min":$t(`datetime.min`),"datetime.beforeOrEqual":$t(`datetime.beforeOrEqual`),"datetime.max":$t(`datetime.max`),"datetime.weekend":$t(`datetime.weekend`),"datetime.weekday":$t(`datetime.weekday`),...knexTranslations});case`phone`:return applyMessagesToSchema(schema,{"phone.base":$t(`phone.base`),"phone.invalid":$t(`phone.invalid`),"phone.fixedLine":$t(`phone.fixedLine`),"phone.mobile":$t(`phone.mobile`),"phone.strictFixedLine":$t(`phone.strictFixedLine`),"phone.strictMobile":$t(`phone.strictMobile`),"phone.fixedLineOrMobile":$t(`phone.fixedLineOrMobile`),"phone.tollFree":$t(`phone.tollFree`),"phone.premiumRate":$t(`phone.premiumRate`),"phone.sharedCost":$t(`phone.sharedCost`),"phone.voip":$t(`phone.voip`),"phone.personalNumber":$t(`phone.personalNumber`),"phone.pager":$t(`phone.pager`),"phone.uan":$t(`phone.uan`),"phone.voicemail":$t(`phone.voicemail`),"phone.unknown":$t(`phone.unknown`),"phone.types":$t(`phone.types`),...knexTranslations});default:return applyMessagesToSchema(schema,{...knexTranslations})}}})};return Object.defineProperty(root,`$setI18n`,{value:callback=>(doUpdateI18n(callback),root),writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(root,`$clearI18n`,{value:()=>(doUpdateI18n(),root),writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(root,`$i18n`,{value:term=>{try{return originalMessages.get(term)||term}catch{return term}},writable:!1,enumerable:!0,configurable:!0}),root},patch=root=>(root=json(root),root=i18n(root),root);var require_constants=__commonJSMin((exports,module)=>{let SEMVER_SPEC_VERSION=`2.0.0`,MAX_LENGTH$2=256,MAX_SAFE_INTEGER$1=2**53-1||9007199254740991,MAX_SAFE_COMPONENT_LENGTH$1=16,MAX_SAFE_BUILD_LENGTH$1=MAX_LENGTH$2-6,RELEASE_TYPES=[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`];module.exports={MAX_LENGTH:MAX_LENGTH$2,MAX_SAFE_COMPONENT_LENGTH:MAX_SAFE_COMPONENT_LENGTH$1,MAX_SAFE_BUILD_LENGTH:MAX_SAFE_BUILD_LENGTH$1,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$1,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}),require_debug=__commonJSMin((exports,module)=>{init_dist();let debug$4=typeof process$1==`object`&&process$1.env&&process$1.env.NODE_DEBUG&&/\bsemver\b/i.test(process$1.env.NODE_DEBUG)?(...args$1)=>console.error(`SEMVER`,...args$1):()=>{};module.exports=debug$4}),require_re=__commonJSMin((exports,module)=>{let{MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_LENGTH:MAX_LENGTH$1}=require_constants(),debug$3=require_debug();exports=module.exports={};let re$4=exports.re=[],safeRe=exports.safeRe=[],src=exports.src=[],safeSrc=exports.safeSrc=[],t$4=exports.t={},R=0,LETTERDASHNUMBER=`[a-zA-Z0-9-]`,safeRegexReplacements=[[`\\s`,1],[`\\d`,MAX_LENGTH$1],[LETTERDASHNUMBER,MAX_SAFE_BUILD_LENGTH]],makeSafeRegex=value=>{for(let[token,max$3]of safeRegexReplacements)value=value.split(`${token}*`).join(`${token}{0,${max$3}}`).split(`${token}+`).join(`${token}{1,${max$3}}`);return value},createToken=(name$1,value,isGlobal)=>{let safe=makeSafeRegex(value),index=R++;debug$3(name$1,index,value),t$4[name$1]=index,src[index]=value,safeSrc[index]=safe,re$4[index]=new RegExp(value,isGlobal?`g`:void 0),safeRe[index]=new RegExp(safe,isGlobal?`g`:void 0)};createToken(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),createToken(`NUMERICIDENTIFIERLOOSE`,`\\d+`),createToken(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`),createToken(`MAINVERSION`,`(${src[t$4.NUMERICIDENTIFIER]})\\.(${src[t$4.NUMERICIDENTIFIER]})\\.(${src[t$4.NUMERICIDENTIFIER]})`),createToken(`MAINVERSIONLOOSE`,`(${src[t$4.NUMERICIDENTIFIERLOOSE]})\\.(${src[t$4.NUMERICIDENTIFIERLOOSE]})\\.(${src[t$4.NUMERICIDENTIFIERLOOSE]})`),createToken(`PRERELEASEIDENTIFIER`,`(?:${src[t$4.NONNUMERICIDENTIFIER]}|${src[t$4.NUMERICIDENTIFIER]})`),createToken(`PRERELEASEIDENTIFIERLOOSE`,`(?:${src[t$4.NONNUMERICIDENTIFIER]}|${src[t$4.NUMERICIDENTIFIERLOOSE]})`),createToken(`PRERELEASE`,`(?:-(${src[t$4.PRERELEASEIDENTIFIER]}(?:\\.${src[t$4.PRERELEASEIDENTIFIER]})*))`),createToken(`PRERELEASELOOSE`,`(?:-?(${src[t$4.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t$4.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken(`BUILDIDENTIFIER`,`${LETTERDASHNUMBER}+`),createToken(`BUILD`,`(?:\\+(${src[t$4.BUILDIDENTIFIER]}(?:\\.${src[t$4.BUILDIDENTIFIER]})*))`),createToken(`FULLPLAIN`,`v?${src[t$4.MAINVERSION]}${src[t$4.PRERELEASE]}?${src[t$4.BUILD]}?`),createToken(`FULL`,`^${src[t$4.FULLPLAIN]}$`),createToken(`LOOSEPLAIN`,`[v=\\s]*${src[t$4.MAINVERSIONLOOSE]}${src[t$4.PRERELEASELOOSE]}?${src[t$4.BUILD]}?`),createToken(`LOOSE`,`^${src[t$4.LOOSEPLAIN]}$`),createToken(`GTLT`,`((?:<|>)?=?)`),createToken(`XRANGEIDENTIFIERLOOSE`,`${src[t$4.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken(`XRANGEIDENTIFIER`,`${src[t$4.NUMERICIDENTIFIER]}|x|X|\\*`),createToken(`XRANGEPLAIN`,`[v=\\s]*(${src[t$4.XRANGEIDENTIFIER]})(?:\\.(${src[t$4.XRANGEIDENTIFIER]})(?:\\.(${src[t$4.XRANGEIDENTIFIER]})(?:${src[t$4.PRERELEASE]})?${src[t$4.BUILD]}?)?)?`),createToken(`XRANGEPLAINLOOSE`,`[v=\\s]*(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:${src[t$4.PRERELEASELOOSE]})?${src[t$4.BUILD]}?)?)?`),createToken(`XRANGE`,`^${src[t$4.GTLT]}\\s*${src[t$4.XRANGEPLAIN]}$`),createToken(`XRANGELOOSE`,`^${src[t$4.GTLT]}\\s*${src[t$4.XRANGEPLAINLOOSE]}$`),createToken(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`),createToken(`COERCE`,`${src[t$4.COERCEPLAIN]}(?:$|[^\\d])`),createToken(`COERCEFULL`,src[t$4.COERCEPLAIN]+`(?:${src[t$4.PRERELEASE]})?(?:${src[t$4.BUILD]})?(?:$|[^\\d])`),createToken(`COERCERTL`,src[t$4.COERCE],!0),createToken(`COERCERTLFULL`,src[t$4.COERCEFULL],!0),createToken(`LONETILDE`,`(?:~>?)`),createToken(`TILDETRIM`,`(\\s*)${src[t$4.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace=`$1~`,createToken(`TILDE`,`^${src[t$4.LONETILDE]}${src[t$4.XRANGEPLAIN]}$`),createToken(`TILDELOOSE`,`^${src[t$4.LONETILDE]}${src[t$4.XRANGEPLAINLOOSE]}$`),createToken(`LONECARET`,`(?:\\^)`),createToken(`CARETTRIM`,`(\\s*)${src[t$4.LONECARET]}\\s+`,!0),exports.caretTrimReplace=`$1^`,createToken(`CARET`,`^${src[t$4.LONECARET]}${src[t$4.XRANGEPLAIN]}$`),createToken(`CARETLOOSE`,`^${src[t$4.LONECARET]}${src[t$4.XRANGEPLAINLOOSE]}$`),createToken(`COMPARATORLOOSE`,`^${src[t$4.GTLT]}\\s*(${src[t$4.LOOSEPLAIN]})$|^$`),createToken(`COMPARATOR`,`^${src[t$4.GTLT]}\\s*(${src[t$4.FULLPLAIN]})$|^$`),createToken(`COMPARATORTRIM`,`(\\s*)${src[t$4.GTLT]}\\s*(${src[t$4.LOOSEPLAIN]}|${src[t$4.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace=`$1$2$3`,createToken(`HYPHENRANGE`,`^\\s*(${src[t$4.XRANGEPLAIN]})\\s+-\\s+(${src[t$4.XRANGEPLAIN]})\\s*$`),createToken(`HYPHENRANGELOOSE`,`^\\s*(${src[t$4.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t$4.XRANGEPLAINLOOSE]})\\s*$`),createToken(`STAR`,`(<|>)?=?\\s*\\*`),createToken(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),createToken(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)}),require_parse_options=__commonJSMin((exports,module)=>{let looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions$3=options=>options?typeof options==`object`?options:looseOption:emptyOpts;module.exports=parseOptions$3}),require_identifiers=__commonJSMin((exports,module)=>{let numeric=/^[0-9]+$/,compareIdentifiers$1=(a,b)=>{if(typeof a==`number`&&typeof b==`number`)return a===b?0:a<b?-1:1;let anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1},rcompareIdentifiers=(a,b)=>compareIdentifiers$1(b,a);module.exports={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers}}),require_semver$1=__commonJSMin((exports,module)=>{let debug$2=require_debug(),{MAX_LENGTH,MAX_SAFE_INTEGER}=require_constants(),{safeRe:re$3,t:t$3}=require_re(),parseOptions$2=require_parse_options(),{compareIdentifiers}=require_identifiers();var SemVer$15=class SemVer$15{constructor(version$3,options){if(options=parseOptions$2(options),version$3 instanceof SemVer$15){if(version$3.loose===!!options.loose&&version$3.includePrerelease===!!options.includePrerelease)return version$3;version$3=version$3.version}else if(typeof version$3!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof version$3}".`);if(version$3.length>MAX_LENGTH)throw TypeError(`version is longer than ${MAX_LENGTH} characters`);debug$2(`SemVer`,version$3,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;let m=version$3.trim().match(options.loose?re$3[t$3.LOOSE]:re$3[t$3.FULL]);if(!m)throw TypeError(`Invalid Version: ${version$3}`);if(this.raw=version$3,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw TypeError(`Invalid patch version`);m[4]?this.prerelease=m[4].split(`.`).map(id=>{if(/^[0-9]+$/.test(id)){let num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id}):this.prerelease=[],this.build=m[5]?m[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(other){if(debug$2(`SemVer.compare`,this.version,this.options,other),!(other instanceof SemVer$15)){if(typeof other==`string`&&other===this.version)return 0;other=new SemVer$15(other,this.options)}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof SemVer$15||(other=new SemVer$15(other,this.options)),this.major<other.major?-1:this.major>other.major?1:this.minor<other.minor?-1:this.minor>other.minor?1:this.patch<other.patch?-1:this.patch>other.patch?1:0}comparePre(other){if(other instanceof SemVer$15||(other=new SemVer$15(other,this.options)),this.prerelease.length&&!other.prerelease.length)return-1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i$4=0;do{let a=this.prerelease[i$4],b=other.prerelease[i$4];if(debug$2(`prerelease compare`,i$4,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i$4)}compareBuild(other){other instanceof SemVer$15||(other=new SemVer$15(other,this.options));let i$4=0;do{let a=this.build[i$4],b=other.build[i$4];if(debug$2(`build compare`,i$4,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i$4)}inc(release,identifier,identifierBase){if(release.startsWith(`pre`)){if(!identifier&&identifierBase===!1)throw Error(`invalid increment argument: identifier is empty`);if(identifier){let match$2=`-${identifier}`.match(this.options.loose?re$3[t$3.PRERELEASELOOSE]:re$3[t$3.PRERELEASE]);if(!match$2||match$2[1]!==identifier)throw Error(`invalid identifier: ${identifier}`)}}switch(release){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,identifier,identifierBase);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,identifier,identifierBase);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,identifier,identifierBase),this.inc(`pre`,identifier,identifierBase);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,identifier,identifierBase),this.inc(`pre`,identifier,identifierBase);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let base=Number(identifierBase)?1:0;if(this.prerelease.length===0)this.prerelease=[base];else{let i$4=this.prerelease.length;for(;--i$4>=0;)typeof this.prerelease[i$4]==`number`&&(this.prerelease[i$4]++,i$4=-2);if(i$4===-1){if(identifier===this.prerelease.join(`.`)&&identifierBase===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(base)}}if(identifier){let prerelease$2=[identifier,base];identifierBase===!1&&(prerelease$2=[identifier]),compareIdentifiers(this.prerelease[0],identifier)===0?isNaN(this.prerelease[1])&&(this.prerelease=prerelease$2):this.prerelease=prerelease$2}break}default:throw Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}};module.exports=SemVer$15}),require_parse=__commonJSMin((exports,module)=>{let SemVer$14=require_semver$1(),parse$6=(version$3,options,throwErrors=!1)=>{if(version$3 instanceof SemVer$14)return version$3;try{return new SemVer$14(version$3,options)}catch(er){if(!throwErrors)return null;throw er}};module.exports=parse$6}),require_valid$1=__commonJSMin((exports,module)=>{let parse$5=require_parse(),valid$1=(version$3,options)=>{let v=parse$5(version$3,options);return v?v.version:null};module.exports=valid$1}),require_clean=__commonJSMin((exports,module)=>{let parse$4=require_parse(),clean$1=(version$3,options)=>{let s$2=parse$4(version$3.trim().replace(/^[=v]+/,``),options);return s$2?s$2.version:null};module.exports=clean$1}),require_inc=__commonJSMin((exports,module)=>{let SemVer$13=require_semver$1(),inc$1=(version$3,release,options,identifier,identifierBase)=>{typeof options==`string`&&(identifierBase=identifier,identifier=options,options=void 0);try{return new SemVer$13(version$3 instanceof SemVer$13?version$3.version:version$3,options).inc(release,identifier,identifierBase).version}catch{return null}};module.exports=inc$1}),require_diff=__commonJSMin((exports,module)=>{let parse$3=require_parse(),diff$1=(version1,version2)=>{let v1=parse$3(version1,null,!0),v2=parse$3(version2,null,!0),comparison=v1.compare(v2);if(comparison===0)return null;let v1Higher=comparison>0,highVersion=v1Higher?v1:v2,lowVersion=v1Higher?v2:v1,highHasPre=!!highVersion.prerelease.length,lowHasPre=!!lowVersion.prerelease.length;if(lowHasPre&&!highHasPre){if(!lowVersion.patch&&!lowVersion.minor)return`major`;if(lowVersion.compareMain(highVersion)===0)return lowVersion.minor&&!lowVersion.patch?`minor`:`patch`}let prefix=highHasPre?`pre`:``;return v1.major===v2.major?v1.minor===v2.minor?v1.patch===v2.patch?`prerelease`:prefix+`patch`:prefix+`minor`:prefix+`major`};module.exports=diff$1}),require_major=__commonJSMin((exports,module)=>{let SemVer$12=require_semver$1(),major$1=(a,loose)=>new SemVer$12(a,loose).major;module.exports=major$1}),require_minor=__commonJSMin((exports,module)=>{let SemVer$11=require_semver$1(),minor$1=(a,loose)=>new SemVer$11(a,loose).minor;module.exports=minor$1}),require_patch=__commonJSMin((exports,module)=>{let SemVer$10=require_semver$1(),patch$2=(a,loose)=>new SemVer$10(a,loose).patch;module.exports=patch$2}),require_prerelease=__commonJSMin((exports,module)=>{let parse$2=require_parse(),prerelease$1=(version$3,options)=>{let parsed=parse$2(version$3,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};module.exports=prerelease$1}),require_compare=__commonJSMin((exports,module)=>{let SemVer$9=require_semver$1(),compare$11=(a,b,loose)=>new SemVer$9(a,loose).compare(new SemVer$9(b,loose));module.exports=compare$11}),require_rcompare=__commonJSMin((exports,module)=>{let compare$10=require_compare(),rcompare$1=(a,b,loose)=>compare$10(b,a,loose);module.exports=rcompare$1}),require_compare_loose=__commonJSMin((exports,module)=>{let compare$9=require_compare(),compareLoose$1=(a,b)=>compare$9(a,b,!0);module.exports=compareLoose$1}),require_compare_build=__commonJSMin((exports,module)=>{let SemVer$8=require_semver$1(),compareBuild$3=(a,b,loose)=>{let versionA=new SemVer$8(a,loose),versionB=new SemVer$8(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};module.exports=compareBuild$3}),require_sort=__commonJSMin((exports,module)=>{let compareBuild$2=require_compare_build(),sort$1=(list,loose)=>list.sort((a,b)=>compareBuild$2(a,b,loose));module.exports=sort$1}),require_rsort=__commonJSMin((exports,module)=>{let compareBuild$1=require_compare_build(),rsort$1=(list,loose)=>list.sort((a,b)=>compareBuild$1(b,a,loose));module.exports=rsort$1}),require_gt=__commonJSMin((exports,module)=>{let compare$8=require_compare(),gt$4=(a,b,loose)=>compare$8(a,b,loose)>0;module.exports=gt$4}),require_lt=__commonJSMin((exports,module)=>{let compare$7=require_compare(),lt$3=(a,b,loose)=>compare$7(a,b,loose)<0;module.exports=lt$3}),require_eq=__commonJSMin((exports,module)=>{let compare$6=require_compare(),eq$2=(a,b,loose)=>compare$6(a,b,loose)===0;module.exports=eq$2}),require_neq=__commonJSMin((exports,module)=>{let compare$5=require_compare(),neq$2=(a,b,loose)=>compare$5(a,b,loose)!==0;module.exports=neq$2}),require_gte=__commonJSMin((exports,module)=>{let compare$4=require_compare(),gte$3=(a,b,loose)=>compare$4(a,b,loose)>=0;module.exports=gte$3}),require_lte=__commonJSMin((exports,module)=>{let compare$3=require_compare(),lte$3=(a,b,loose)=>compare$3(a,b,loose)<=0;module.exports=lte$3}),require_cmp=__commonJSMin((exports,module)=>{let eq$1=require_eq(),neq$1=require_neq(),gt$3=require_gt(),gte$2=require_gte(),lt$2=require_lt(),lte$2=require_lte(),cmp$2=(a,op,b,loose)=>{switch(op){case`===`:return typeof a==`object`&&(a=a.version),typeof b==`object`&&(b=b.version),a===b;case`!==`:return typeof a==`object`&&(a=a.version),typeof b==`object`&&(b=b.version),a!==b;case``:case`=`:case`==`:return eq$1(a,b,loose);case`!=`:return neq$1(a,b,loose);case`>`:return gt$3(a,b,loose);case`>=`:return gte$2(a,b,loose);case`<`:return lt$2(a,b,loose);case`<=`:return lte$2(a,b,loose);default:throw TypeError(`Invalid operator: ${op}`)}};module.exports=cmp$2}),require_coerce=__commonJSMin((exports,module)=>{let SemVer$7=require_semver$1(),parse$1=require_parse(),{safeRe:re$2,t:t$2}=require_re(),coerce$1=(version$3,options)=>{if(version$3 instanceof SemVer$7)return version$3;if(typeof version$3==`number`&&(version$3=String(version$3)),typeof version$3!=`string`)return null;options||={};let match$2=null;if(!options.rtl)match$2=version$3.match(options.includePrerelease?re$2[t$2.COERCEFULL]:re$2[t$2.COERCE]);else{let coerceRtlRegex=options.includePrerelease?re$2[t$2.COERCERTLFULL]:re$2[t$2.COERCERTL],next;for(;(next=coerceRtlRegex.exec(version$3))&&(!match$2||match$2.index+match$2[0].length!==version$3.length);)(!match$2||next.index+next[0].length!==match$2.index+match$2[0].length)&&(match$2=next),coerceRtlRegex.lastIndex=next.index+next[1].length+next[2].length;coerceRtlRegex.lastIndex=-1}if(match$2===null)return null;let major$2=match$2[2],minor$2=match$2[3]||`0`,patch$3=match$2[4]||`0`,prerelease$2=options.includePrerelease&&match$2[5]?`-${match$2[5]}`:``,build=options.includePrerelease&&match$2[6]?`+${match$2[6]}`:``;return parse$1(`${major$2}.${minor$2}.${patch$3}${prerelease$2}${build}`,options)};module.exports=coerce$1}),require_lrucache=__commonJSMin((exports,module)=>{var LRUCache=class{constructor(){this.max=1e3,this.map=new Map}get(key){let value=this.map.get(key);if(value!==void 0)return this.map.delete(key),this.map.set(key,value),value}delete(key){return this.map.delete(key)}set(key,value){let deleted=this.delete(key);if(!deleted&&value!==void 0){if(this.map.size>=this.max){let firstKey=this.map.keys().next().value;this.delete(firstKey)}this.map.set(key,value)}return this}};module.exports=LRUCache}),require_range=__commonJSMin((exports,module)=>{let SPACE_CHARACTERS=/\s+/g;var Range$11=class Range$11{constructor(range,options){if(options=parseOptions$1(options),range instanceof Range$11)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range$11(range.raw,options);if(range instanceof Comparator$4)return this.raw=range.value,this.set=[[range]],this.formatted=void 0,this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().replace(SPACE_CHARACTERS,` `),this.set=this.raw.split(`||`).map(r=>this.parseRange(r.trim())).filter(c$1=>c$1.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let first=this.set[0];if(this.set=this.set.filter(c$1=>!isNullSet(c$1[0])),this.set.length===0)this.set=[first];else if(this.set.length>1){for(let c$1 of this.set)if(c$1.length===1&&isAny(c$1[0])){this.set=[c$1];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let i$4=0;i$4<this.set.length;i$4++){i$4>0&&(this.formatted+=`||`);let comps=this.set[i$4];for(let k=0;k<comps.length;k++)k>0&&(this.formatted+=` `),this.formatted+=comps[k].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(range){let memoOpts=(this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE),memoKey=memoOpts+`:`+range,cached=cache.get(memoKey);if(cached)return cached;let loose=this.options.loose,hr=loose?re$1[t$1.HYPHENRANGELOOSE]:re$1[t$1.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug$1(`hyphen replace`,range),range=range.replace(re$1[t$1.COMPARATORTRIM],comparatorTrimReplace),debug$1(`comparator trim`,range),range=range.replace(re$1[t$1.TILDETRIM],tildeTrimReplace),debug$1(`tilde trim`,range),range=range.replace(re$1[t$1.CARETTRIM],caretTrimReplace),debug$1(`caret trim`,range);let rangeList=range.split(` `).map(comp=>parseComparator(comp,this.options)).join(` `).split(/\s+/).map(comp=>replaceGTE0(comp,this.options));loose&&(rangeList=rangeList.filter(comp=>(debug$1(`loose invalid filter`,comp,this.options),!!comp.match(re$1[t$1.COMPARATORLOOSE])))),debug$1(`range list`,rangeList);let rangeMap=new Map,comparators=rangeList.map(comp=>new Comparator$4(comp,this.options));for(let comp of comparators){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has(``)&&rangeMap.delete(``);let result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof Range$11))throw TypeError(`a Range is required`);return this.set.some(thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options)))))}test(version$3){if(!version$3)return!1;if(typeof version$3==`string`)try{version$3=new SemVer$6(version$3,this.options)}catch{return!1}for(let i$4=0;i$4<this.set.length;i$4++)if(testSet(this.set[i$4],version$3,this.options))return!0;return!1}};module.exports=Range$11;let LRU=require_lrucache(),cache=new LRU,parseOptions$1=require_parse_options(),Comparator$4=require_comparator(),debug$1=require_debug(),SemVer$6=require_semver$1(),{safeRe:re$1,t:t$1,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=require_re(),{FLAG_INCLUDE_PRERELEASE,FLAG_LOOSE}=require_constants(),isNullSet=c$1=>c$1.value===`<0.0.0-0`,isAny=c$1=>c$1.value===``,isSatisfiable=(comparators,options)=>{let result=!0,remainingComparators=comparators.slice(),testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options)),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(comp=comp.replace(re$1[t$1.BUILD],``),debug$1(`comp`,comp,options),comp=replaceCarets(comp,options),debug$1(`caret`,comp),comp=replaceTildes(comp,options),debug$1(`tildes`,comp),comp=replaceXRanges(comp,options),debug$1(`xrange`,comp),comp=replaceStars(comp,options),debug$1(`stars`,comp),comp),isX=id=>!id||id.toLowerCase()===`x`||id===`*`,replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map(c$1=>replaceTilde(c$1,options)).join(` `),replaceTilde=(comp,options)=>{let r=options.loose?re$1[t$1.TILDELOOSE]:re$1[t$1.TILDE];return comp.replace(r,(_,M$1,m,p,pr)=>{debug$1(`tilde`,comp,_,M$1,m,p,pr);let ret;return isX(M$1)?ret=``:isX(m)?ret=`>=${M$1}.0.0 <${+M$1+1}.0.0-0`:isX(p)?ret=`>=${M$1}.${m}.0 <${M$1}.${+m+1}.0-0`:pr?(debug$1(`replaceTilde pr`,pr),ret=`>=${M$1}.${m}.${p}-${pr} <${M$1}.${+m+1}.0-0`):ret=`>=${M$1}.${m}.${p} <${M$1}.${+m+1}.0-0`,debug$1(`tilde return`,ret),ret})},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map(c$1=>replaceCaret(c$1,options)).join(` `),replaceCaret=(comp,options)=>{debug$1(`caret`,comp,options);let r=options.loose?re$1[t$1.CARETLOOSE]:re$1[t$1.CARET],z$1=options.includePrerelease?`-0`:``;return comp.replace(r,(_,M$1,m,p,pr)=>{debug$1(`caret`,comp,_,M$1,m,p,pr);let ret;return isX(M$1)?ret=``:isX(m)?ret=`>=${M$1}.0.0${z$1} <${+M$1+1}.0.0-0`:isX(p)?ret=M$1===`0`?`>=${M$1}.${m}.0${z$1} <${M$1}.${+m+1}.0-0`:`>=${M$1}.${m}.0${z$1} <${+M$1+1}.0.0-0`:pr?(debug$1(`replaceCaret pr`,pr),ret=M$1===`0`?m===`0`?`>=${M$1}.${m}.${p}-${pr} <${M$1}.${m}.${+p+1}-0`:`>=${M$1}.${m}.${p}-${pr} <${M$1}.${+m+1}.0-0`:`>=${M$1}.${m}.${p}-${pr} <${+M$1+1}.0.0-0`):(debug$1(`no pr`),ret=M$1===`0`?m===`0`?`>=${M$1}.${m}.${p}${z$1} <${M$1}.${m}.${+p+1}-0`:`>=${M$1}.${m}.${p}${z$1} <${M$1}.${+m+1}.0-0`:`>=${M$1}.${m}.${p} <${+M$1+1}.0.0-0`),debug$1(`caret return`,ret),ret})},replaceXRanges=(comp,options)=>(debug$1(`replaceXRanges`,comp,options),comp.split(/\s+/).map(c$1=>replaceXRange(c$1,options)).join(` `)),replaceXRange=(comp,options)=>{comp=comp.trim();let r=options.loose?re$1[t$1.XRANGELOOSE]:re$1[t$1.XRANGE];return comp.replace(r,(ret,gtlt,M$1,m,p,pr)=>{debug$1(`xRange`,comp,ret,gtlt,M$1,m,p,pr);let xM=isX(M$1),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return gtlt===`=`&&anyX&&(gtlt=``),pr=options.includePrerelease?`-0`:``,xM?ret=gtlt===`>`||gtlt===`<`?`<0.0.0-0`:`*`:gtlt&&anyX?(xm&&(m=0),p=0,gtlt===`>`?(gtlt=`>=`,xm?(M$1=+M$1+1,m=0,p=0):(m=+m+1,p=0)):gtlt===`<=`&&(gtlt=`<`,xm?M$1=+M$1+1:m=+m+1),gtlt===`<`&&(pr=`-0`),ret=`${gtlt+M$1}.${m}.${p}${pr}`):xm?ret=`>=${M$1}.0.0${pr} <${+M$1+1}.0.0-0`:xp&&(ret=`>=${M$1}.${m}.0${pr} <${M$1}.${+m+1}.0-0`),debug$1(`xRange return`,ret),ret})},replaceStars=(comp,options)=>(debug$1(`replaceStars`,comp,options),comp.trim().replace(re$1[t$1.STAR],``)),replaceGTE0=(comp,options)=>(debug$1(`replaceGTE0`,comp,options),comp.trim().replace(re$1[options.includePrerelease?t$1.GTE0PRE:t$1.GTE0],``)),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr)=>(from=isX(fM)?``:isX(fm)?`>=${fM}.0.0${incPr?`-0`:``}`:isX(fp)?`>=${fM}.${fm}.0${incPr?`-0`:``}`:fpr?`>=${from}`:`>=${from}${incPr?`-0`:``}`,to=isX(tM)?``:isX(tm)?`<${+tM+1}.0.0-0`:isX(tp)?`<${tM}.${+tm+1}.0-0`:tpr?`<=${tM}.${tm}.${tp}-${tpr}`:incPr?`<${tM}.${tm}.${+tp+1}-0`:`<=${to}`,`${from} ${to}`.trim()),testSet=(set,version$3,options)=>{for(let i$4=0;i$4<set.length;i$4++)if(!set[i$4].test(version$3))return!1;if(version$3.prerelease.length&&!options.includePrerelease){for(let i$4=0;i$4<set.length;i$4++)if(debug$1(set[i$4].semver),set[i$4].semver!==Comparator$4.ANY&&set[i$4].semver.prerelease.length>0){let allowed=set[i$4].semver;if(allowed.major===version$3.major&&allowed.minor===version$3.minor&&allowed.patch===version$3.patch)return!0}return!1}return!0}}),require_comparator=__commonJSMin((exports,module)=>{let ANY$2=Symbol(`SemVer ANY`);var Comparator$3=class Comparator$3{static get ANY(){return ANY$2}constructor(comp,options){if(options=parseOptions(options),comp instanceof Comparator$3){if(comp.loose===!!options.loose)return comp;comp=comp.value}comp=comp.trim().split(/\s+/).join(` `),debug(`comparator`,comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY$2?this.value=``:this.value=this.operator+this.semver.version,debug(`comp`,this)}parse(comp){let r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw TypeError(`Invalid comparator: ${comp}`);this.operator=m[1]===void 0?``:m[1],this.operator===`=`&&(this.operator=``),m[2]?this.semver=new SemVer$5(m[2],this.options.loose):this.semver=ANY$2}toString(){return this.value}test(version$3){if(debug(`Comparator.test`,version$3,this.options.loose),this.semver===ANY$2||version$3===ANY$2)return!0;if(typeof version$3==`string`)try{version$3=new SemVer$5(version$3,this.options)}catch{return!1}return cmp$1(version$3,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof Comparator$3))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new Range$10(comp.value,options).test(this.value):comp.operator===``?comp.value===``?!0:new Range$10(this.value,options).test(comp.semver):(options=parseOptions(options),options.includePrerelease&&(this.value===`<0.0.0-0`||comp.value===`<0.0.0-0`)||!options.includePrerelease&&(this.value.startsWith(`<0.0.0`)||comp.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&comp.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&comp.operator.startsWith(`<`)||this.semver.version===comp.semver.version&&this.operator.includes(`=`)&&comp.operator.includes(`=`)||cmp$1(this.semver,`<`,comp.semver,options)&&this.operator.startsWith(`>`)&&comp.operator.startsWith(`<`)||cmp$1(this.semver,`>`,comp.semver,options)&&this.operator.startsWith(`<`)&&comp.operator.startsWith(`>`)))}};module.exports=Comparator$3;let parseOptions=require_parse_options(),{safeRe:re,t}=require_re(),cmp$1=require_cmp(),debug=require_debug(),SemVer$5=require_semver$1(),Range$10=require_range()}),require_satisfies=__commonJSMin((exports,module)=>{let Range$9=require_range(),satisfies$4=(version$3,range,options)=>{try{range=new Range$9(range,options)}catch{return!1}return range.test(version$3)};module.exports=satisfies$4}),require_to_comparators=__commonJSMin((exports,module)=>{let Range$8=require_range(),toComparators$1=(range,options)=>new Range$8(range,options).set.map(comp=>comp.map(c$1=>c$1.value).join(` `).trim().split(` `));module.exports=toComparators$1}),require_max_satisfying=__commonJSMin((exports,module)=>{let SemVer$4=require_semver$1(),Range$7=require_range(),maxSatisfying$1=(versions,range,options)=>{let max$3=null,maxSV=null,rangeObj=null;try{rangeObj=new Range$7(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!max$3||maxSV.compare(v)===-1)&&(max$3=v,maxSV=new SemVer$4(max$3,options))}),max$3};module.exports=maxSatisfying$1}),require_min_satisfying=__commonJSMin((exports,module)=>{let SemVer$3=require_semver$1(),Range$6=require_range(),minSatisfying$1=(versions,range,options)=>{let min$1=null,minSV=null,rangeObj=null;try{rangeObj=new Range$6(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!min$1||minSV.compare(v)===1)&&(min$1=v,minSV=new SemVer$3(min$1,options))}),min$1};module.exports=minSatisfying$1}),require_min_version=__commonJSMin((exports,module)=>{let SemVer$2=require_semver$1(),Range$5=require_range(),gt$2=require_gt(),minVersion$1=(range,loose)=>{range=new Range$5(range,loose);let minver=new SemVer$2(`0.0.0`);if(range.test(minver)||(minver=new SemVer$2(`0.0.0-0`),range.test(minver)))return minver;minver=null;for(let i$4=0;i$4<range.set.length;++i$4){let comparators=range.set[i$4],setMin=null;comparators.forEach(comparator=>{let compver=new SemVer$2(comparator.semver.version);switch(comparator.operator){case`>`:compver.prerelease.length===0?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case``:case`>=`:(!setMin||gt$2(compver,setMin))&&(setMin=compver);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${comparator.operator}`)}}),setMin&&(!minver||gt$2(minver,setMin))&&(minver=setMin)}return minver&&range.test(minver)?minver:null};module.exports=minVersion$1}),require_valid=__commonJSMin((exports,module)=>{let Range$4=require_range(),validRange$1=(range,options)=>{try{return new Range$4(range,options).range||`*`}catch{return null}};module.exports=validRange$1}),require_outside=__commonJSMin((exports,module)=>{let SemVer$1=require_semver$1(),Comparator$2=require_comparator(),{ANY:ANY$1}=Comparator$2,Range$3=require_range(),satisfies$3=require_satisfies(),gt$1=require_gt(),lt$1=require_lt(),lte$1=require_lte(),gte$1=require_gte(),outside$3=(version$3,range,hilo,options)=>{version$3=new SemVer$1(version$3,options),range=new Range$3(range,options);let gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case`>`:gtfn=gt$1,ltefn=lte$1,ltfn=lt$1,comp=`>`,ecomp=`>=`;break;case`<`:gtfn=lt$1,ltefn=gte$1,ltfn=gt$1,comp=`<`,ecomp=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(satisfies$3(version$3,range,options))return!1;for(let i$4=0;i$4<range.set.length;++i$4){let comparators=range.set[i$4],high=null,low=null;if(comparators.forEach(comparator=>{comparator.semver===ANY$1&&(comparator=new Comparator$2(`>=0.0.0`)),high||=comparator,low||=comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&&ltefn(version$3,low.semver)||low.operator===ecomp&&ltfn(version$3,low.semver))return!1}return!0};module.exports=outside$3}),require_gtr=__commonJSMin((exports,module)=>{let outside$2=require_outside(),gtr$1=(version$3,range,options)=>outside$2(version$3,range,`>`,options);module.exports=gtr$1}),require_ltr=__commonJSMin((exports,module)=>{let outside$1=require_outside(),ltr$1=(version$3,range,options)=>outside$1(version$3,range,`<`,options);module.exports=ltr$1}),require_intersects=__commonJSMin((exports,module)=>{let Range$2=require_range(),intersects$1=(r1,r2,options)=>(r1=new Range$2(r1,options),r2=new Range$2(r2,options),r1.intersects(r2,options));module.exports=intersects$1}),require_simplify=__commonJSMin((exports,module)=>{let satisfies$2=require_satisfies(),compare$2=require_compare();module.exports=(versions,range,options)=>{let set=[],first=null,prev=null,v=versions.sort((a,b)=>compare$2(a,b,options));for(let version$3 of v){let included=satisfies$2(version$3,range,options);included?(prev=version$3,first||=version$3):(prev&&set.push([first,prev]),prev=null,first=null)}first&&set.push([first,null]);let ranges=[];for(let[min$1,max$3]of set)min$1===max$3?ranges.push(min$1):!max$3&&min$1===v[0]?ranges.push(`*`):max$3?min$1===v[0]?ranges.push(`<=${max$3}`):ranges.push(`${min$1} - ${max$3}`):ranges.push(`>=${min$1}`);let simplified=ranges.join(` || `),original=typeof range.raw==`string`?range.raw:String(range);return simplified.length<original.length?simplified:range}}),require_subset=__commonJSMin((exports,module)=>{let Range$1=require_range(),Comparator$1=require_comparator(),{ANY}=Comparator$1,satisfies$1=require_satisfies(),compare$1=require_compare(),subset$1=(sub,dom,options={})=>{if(sub===dom)return!0;sub=new Range$1(sub,options),dom=new Range$1(dom,options);let sawNonNull=!1;OUTER:for(let simpleSub of sub.set){for(let simpleDom of dom.set){let isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull||=isSub!==null,isSub)continue OUTER}if(sawNonNull)return!1}return!0},minimumVersionWithPreRelease=[new Comparator$1(`>=0.0.0-0`)],minimumVersion=[new Comparator$1(`>=0.0.0`)],simpleSubset=(sub,dom,options)=>{if(sub===dom)return!0;if(sub.length===1&&sub[0].semver===ANY){if(dom.length===1&&dom[0].semver===ANY)return!0;sub=options.includePrerelease?minimumVersionWithPreRelease:minimumVersion}if(dom.length===1&&dom[0].semver===ANY){if(options.includePrerelease)return!0;dom=minimumVersion}let eqSet=new Set,gt$5,lt$4;for(let c$1 of sub)c$1.operator===`>`||c$1.operator===`>=`?gt$5=higherGT(gt$5,c$1,options):c$1.operator===`<`||c$1.operator===`<=`?lt$4=lowerLT(lt$4,c$1,options):eqSet.add(c$1.semver);if(eqSet.size>1)return null;let gtltComp;if(gt$5&&lt$4&&(gtltComp=compare$1(gt$5.semver,lt$4.semver,options),gtltComp>0||gtltComp===0&&(gt$5.operator!==`>=`||lt$4.operator!==`<=`)))return null;for(let eq$3 of eqSet){if(gt$5&&!satisfies$1(eq$3,String(gt$5),options)||lt$4&&!satisfies$1(eq$3,String(lt$4),options))return null;for(let c$1 of dom)if(!satisfies$1(eq$3,String(c$1),options))return!1;return!0}let higher,lower,hasDomLT,hasDomGT,needDomLTPre=lt$4&&!options.includePrerelease&&lt$4.semver.prerelease.length?lt$4.semver:!1,needDomGTPre=gt$5&&!options.includePrerelease&&gt$5.semver.prerelease.length?gt$5.semver:!1;needDomLTPre&&needDomLTPre.prerelease.length===1&&lt$4.operator===`<`&&needDomLTPre.prerelease[0]===0&&(needDomLTPre=!1);for(let c$1 of dom){if(hasDomGT=hasDomGT||c$1.operator===`>`||c$1.operator===`>=`,hasDomLT=hasDomLT||c$1.operator===`<`||c$1.operator===`<=`,gt$5){if(needDomGTPre&&c$1.semver.prerelease&&c$1.semver.prerelease.length&&c$1.semver.major===needDomGTPre.major&&c$1.semver.minor===needDomGTPre.minor&&c$1.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),c$1.operator===`>`||c$1.operator===`>=`){if(higher=higherGT(gt$5,c$1,options),higher===c$1&&higher!==gt$5)return!1}else if(gt$5.operator===`>=`&&!satisfies$1(gt$5.semver,String(c$1),options))return!1}if(lt$4){if(needDomLTPre&&c$1.semver.prerelease&&c$1.semver.prerelease.length&&c$1.semver.major===needDomLTPre.major&&c$1.semver.minor===needDomLTPre.minor&&c$1.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),c$1.operator===`<`||c$1.operator===`<=`){if(lower=lowerLT(lt$4,c$1,options),lower===c$1&&lower!==lt$4)return!1}else if(lt$4.operator===`<=`&&!satisfies$1(lt$4.semver,String(c$1),options))return!1}if(!c$1.operator&&(lt$4||gt$5)&&gtltComp!==0)return!1}return!(gt$5&&hasDomLT&&!lt$4&&gtltComp!==0||lt$4&&hasDomGT&&!gt$5&&gtltComp!==0||needDomGTPre||needDomLTPre)},higherGT=(a,b,options)=>{if(!a)return b;let comp=compare$1(a.semver,b.semver,options);return comp>0?a:comp<0||b.operator===`>`&&a.operator===`>=`?b:a},lowerLT=(a,b,options)=>{if(!a)return b;let comp=compare$1(a.semver,b.semver,options);return comp<0?a:comp>0||b.operator===`<`&&a.operator===`<=`?b:a};module.exports=subset$1}),require_semver=__commonJSMin((exports,module)=>{let internalRe=require_re(),constants=require_constants(),SemVer=require_semver$1(),identifiers=require_identifiers(),parse=require_parse(),valid=require_valid$1(),clean=require_clean(),inc=require_inc(),diff=require_diff(),major=require_major(),minor=require_minor(),patch$1=require_patch(),prerelease=require_prerelease(),compare=require_compare(),rcompare=require_rcompare(),compareLoose=require_compare_loose(),compareBuild=require_compare_build(),sort=require_sort(),rsort=require_rsort(),gt=require_gt(),lt=require_lt(),eq=require_eq(),neq=require_neq(),gte=require_gte(),lte=require_lte(),cmp=require_cmp(),coerce=require_coerce(),Comparator=require_comparator(),Range=require_range(),satisfies=require_satisfies(),toComparators=require_to_comparators(),maxSatisfying=require_max_satisfying(),minSatisfying=require_min_satisfying(),minVersion=require_min_version(),validRange=require_valid(),outside=require_outside(),gtr=require_gtr(),ltr=require_ltr(),intersects=require_intersects(),simplifyRange=require_simplify(),subset=require_subset();module.exports={parse,valid,clean,inc,diff,major,minor,patch:patch$1,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers}}),u8=Uint8Array,u16=Uint16Array,i32=Int32Array,fleb=new u8([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fdeb=new u8([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),clim=new u8([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function(eb,start){for(var b=new u16(31),i$4=0;i$4<31;++i$4)b[i$4]=start+=1<<eb[i$4-1];for(var r=new i32(b[30]),i$4=1;i$4<30;++i$4)for(var j$1=b[i$4];j$1<b[i$4+1];++j$1)r[j$1]=j$1-b[i$4]<<5|i$4;return{b,r}},_a=freb(fleb,2),fl=_a.b,revfl=_a.r;fl[28]=258,revfl[258]=28;for(var _b=freb(fdeb,0),fd=_b.b,revfd=_b.r,rev=new u16(32768),i=0;i<32768;++i){var x=(i&43690)>>1|(i&21845)<<1;x=(x&52428)>>2|(x&13107)<<2,x=(x&61680)>>4|(x&3855)<<4,rev[i]=((x&65280)>>8|(x&255)<<8)>>1}for(var hMap=function(cd,mb,r){for(var s$2=cd.length,i$4=0,l$2=new u16(mb);i$4<s$2;++i$4)cd[i$4]&&++l$2[cd[i$4]-1];var le$1=new u16(mb);for(i$4=1;i$4<mb;++i$4)le$1[i$4]=le$1[i$4-1]+l$2[i$4-1]<<1;var co;if(r){co=new u16(1<<mb);var rvb=15-mb;for(i$4=0;i$4<s$2;++i$4)if(cd[i$4])for(var sv=i$4<<4|cd[i$4],r_1=mb-cd[i$4],v=le$1[cd[i$4]-1]++<<r_1,m=v|(1<<r_1)-1;v<=m;++v)co[rev[v]>>rvb]=sv}else for(co=new u16(s$2),i$4=0;i$4<s$2;++i$4)cd[i$4]&&(co[i$4]=rev[le$1[cd[i$4]-1]++]>>15-cd[i$4]);return co},flt=new u8(288),i=0;i<144;++i)flt[i]=8;for(var i=144;i<256;++i)flt[i]=9;for(var i=256;i<280;++i)flt[i]=7;for(var i=280;i<288;++i)flt[i]=8;for(var fdt=new u8(32),i=0;i<32;++i)fdt[i]=5;var flm=hMap(flt,9,0),flrm=hMap(flt,9,1),fdm=hMap(fdt,5,0),fdrm=hMap(fdt,5,1),max=function(a){for(var m=a[0],i$4=1;i$4<a.length;++i$4)a[i$4]>m&&(m=a[i$4]);return m},bits=function(d,p,m){var o=p/8|0;return(d[o]|d[o+1]<<8)>>(p&7)&m},bits16=function(d,p){var o=p/8|0;return(d[o]|d[o+1]<<8|d[o+2]<<16)>>(p&7)},shft=function(p){return(p+7)/8|0},slc=function(v,s$2,e){return(s$2==null||s$2<0)&&(s$2=0),(e==null||e>v.length)&&(e=v.length),new u8(v.subarray(s$2,e))},ec=[`unexpected EOF`,`invalid block type`,`invalid length/literal`,`invalid distance`,`stream finished`,`no stream handler`,,`no callback`,`invalid UTF-8 data`,`extra field too long`,`date not in range 1980-2099`,`filename too long`,`stream finishing`,`invalid zip data`],err=function(ind,msg,nt){var e=Error(msg||ec[ind]);if(e.code=ind,Error.captureStackTrace&&Error.captureStackTrace(e,err),!nt)throw e;return e},inflt=function(dat,st,buf,dict){var sl=dat.length,dl=dict?dict.length:0;if(!sl||st.f&&!st.l)return buf||new u8(0);var noBuf=!buf,resize=noBuf||st.i!=2,noSt=st.i;noBuf&&(buf=new u8(sl*3));var cbuf=function(l$3){var bl=buf.length;if(l$3>bl){var nbuf=new u8(Math.max(bl*2,l$3));nbuf.set(buf),buf=nbuf}},final=st.f||0,pos=st.p||0,bt=st.b||0,lm=st.l,dm=st.d,lbt=st.m,dbt=st.n,tbts=sl*8;do{if(!lm){final=bits(dat,pos,1);var type=bits(dat,pos+1,3);if(pos+=3,type)if(type==1)lm=flrm,dm=fdrm,lbt=9,dbt=5;else if(type==2){var hLit=bits(dat,pos,31)+257,hcLen=bits(dat,pos+10,15)+4,tl=hLit+bits(dat,pos+5,31)+1;pos+=14;for(var ldt=new u8(tl),clt=new u8(19),i$4=0;i$4<hcLen;++i$4)clt[clim[i$4]]=bits(dat,pos+i$4*3,7);pos+=hcLen*3;for(var clb=max(clt),clbmsk=(1<<clb)-1,clm=hMap(clt,clb,1),i$4=0;i$4<tl;){var r=clm[bits(dat,pos,clbmsk)];pos+=r&15;var s$2=r>>4;if(s$2<16)ldt[i$4++]=s$2;else{var c$1=0,n$2=0;for(s$2==16?(n$2=3+bits(dat,pos,3),pos+=2,c$1=ldt[i$4-1]):s$2==17?(n$2=3+bits(dat,pos,7),pos+=3):s$2==18&&(n$2=11+bits(dat,pos,127),pos+=7);n$2--;)ldt[i$4++]=c$1}}var lt$4=ldt.subarray(0,hLit),dt=ldt.subarray(hLit);lbt=max(lt$4),dbt=max(dt),lm=hMap(lt$4,lbt,1),dm=hMap(dt,dbt,1)}else err(1);else{var s$2=shft(pos)+4,l$2=dat[s$2-4]|dat[s$2-3]<<8,t$5=s$2+l$2;if(t$5>sl){noSt&&err(0);break}resize&&cbuf(bt+l$2),buf.set(dat.subarray(s$2,t$5),bt),st.b=bt+=l$2,st.p=pos=t$5*8,st.f=final;continue}if(pos>tbts){noSt&&err(0);break}}resize&&cbuf(bt+131072);for(var lms=(1<<lbt)-1,dms=(1<<dbt)-1,lpos=pos;;lpos=pos){var c$1=lm[bits16(dat,pos)&lms],sym=c$1>>4;if(pos+=c$1&15,pos>tbts){noSt&&err(0);break}if(c$1||err(2),sym<256)buf[bt++]=sym;else if(sym==256){lpos=pos,lm=null;break}else{var add=sym-254;if(sym>264){var i$4=sym-257,b=fleb[i$4];add=bits(dat,pos,(1<<b)-1)+fl[i$4],pos+=b}var d=dm[bits16(dat,pos)&dms],dsym=d>>4;d||err(3),pos+=d&15;var dt=fd[dsym];if(dsym>3){var b=fdeb[dsym];dt+=bits16(dat,pos)&(1<<b)-1,pos+=b}if(pos>tbts){noSt&&err(0);break}resize&&cbuf(bt+131072);var end=bt+add;if(bt<dt){var shift=dl-dt,dend=Math.min(dt,end);for(shift+bt<0&&err(3);bt<dend;++bt)buf[bt]=dict[shift+bt]}for(;bt<end;++bt)buf[bt]=buf[bt-dt]}}st.l=lm,st.p=lpos,st.b=bt,st.f=final,lm&&(final=1,st.m=lbt,st.d=dm,st.n=dbt)}while(!final);return bt!=buf.length&&noBuf?slc(buf,0,bt):buf.subarray(0,bt)},wbits=function(d,p,v){v<<=p&7;var o=p/8|0;d[o]|=v,d[o+1]|=v>>8},wbits16=function(d,p,v){v<<=p&7;var o=p/8|0;d[o]|=v,d[o+1]|=v>>8,d[o+2]|=v>>16},hTree=function(d,mb){for(var t$5=[],i$4=0;i$4<d.length;++i$4)d[i$4]&&t$5.push({s:i$4,f:d[i$4]});var s$2=t$5.length,t2=t$5.slice();if(!s$2)return{t:et,l:0};if(s$2==1){var v=new u8(t$5[0].s+1);return v[t$5[0].s]=1,{t:v,l:1}}t$5.sort(function(a,b){return a.f-b.f}),t$5.push({s:-1,f:25001});var l$2=t$5[0],r=t$5[1],i0=0,i1=1,i2=2;for(t$5[0]={s:-1,f:l$2.f+r.f,l:l$2,r};i1!=s$2-1;)l$2=t$5[t$5[i0].f<t$5[i2].f?i0++:i2++],r=t$5[i0!=i1&&t$5[i0].f<t$5[i2].f?i0++:i2++],t$5[i1++]={s:-1,f:l$2.f+r.f,l:l$2,r};for(var maxSym=t2[0].s,i$4=1;i$4<s$2;++i$4)t2[i$4].s>maxSym&&(maxSym=t2[i$4].s);var tr=new u16(maxSym+1),mbt=ln(t$5[i1-1],tr,0);if(mbt>mb){var i$4=0,dt=0,lft=mbt-mb,cst=1<<lft;for(t2.sort(function(a,b){return tr[b.s]-tr[a.s]||a.f-b.f});i$4<s$2;++i$4){var i2_1=t2[i$4].s;if(tr[i2_1]>mb)dt+=cst-(1<<mbt-tr[i2_1]),tr[i2_1]=mb;else break}for(dt>>=lft;dt>0;){var i2_2=t2[i$4].s;tr[i2_2]<mb?dt-=1<<mb-tr[i2_2]++-1:++i$4}for(;i$4>=0&&dt;--i$4){var i2_3=t2[i$4].s;tr[i2_3]==mb&&(--tr[i2_3],++dt)}mbt=mb}return{t:new u8(tr),l:mbt}},ln=function(n$2,l$2,d){return n$2.s==-1?Math.max(ln(n$2.l,l$2,d+1),ln(n$2.r,l$2,d+1)):l$2[n$2.s]=d},lc=function(c$1){for(var s$2=c$1.length;s$2&&!c$1[--s$2];);for(var cl=new u16(++s$2),cli=0,cln=c$1[0],cls=1,w=function(v){cl[cli++]=v},i$4=1;i$4<=s$2;++i$4)if(c$1[i$4]==cln&&i$4!=s$2)++cls;else{if(!cln&&cls>2){for(;cls>138;cls-=138)w(32754);cls>2&&(w(cls>10?cls-11<<5|28690:cls-3<<5|12305),cls=0)}else if(cls>3){for(w(cln),--cls;cls>6;cls-=6)w(8304);cls>2&&(w(cls-3<<5|8208),cls=0)}for(;cls--;)w(cln);cls=1,cln=c$1[i$4]}return{c:cl.subarray(0,cli),n:s$2}},clen=function(cf,cl){for(var l$2=0,i$4=0;i$4<cl.length;++i$4)l$2+=cf[i$4]*cl[i$4];return l$2},wfblk=function(out,pos,dat){var s$2=dat.length,o=shft(pos+2);out[o]=s$2&255,out[o+1]=s$2>>8,out[o+2]=out[o]^255,out[o+3]=out[o+1]^255;for(var i$4=0;i$4<s$2;++i$4)out[o+i$4+4]=dat[i$4];return(o+4+s$2)*8},wblk=function(dat,out,final,syms,lf,df,eb,li,bs,bl,p){wbits(out,p++,final),++lf[256];for(var _a$1=hTree(lf,15),dlt=_a$1.t,mlb=_a$1.l,_b$1=hTree(df,15),ddt=_b$1.t,mdb=_b$1.l,_c=lc(dlt),lclt=_c.c,nlc=_c.n,_d=lc(ddt),lcdt=_d.c,ndc=_d.n,lcfreq=new u16(19),i$4=0;i$4<lclt.length;++i$4)++lcfreq[lclt[i$4]&31];for(var i$4=0;i$4<lcdt.length;++i$4)++lcfreq[lcdt[i$4]&31];for(var _e=hTree(lcfreq,7),lct=_e.t,mlcb=_e.l,nlcc=19;nlcc>4&&!lct[clim[nlcc-1]];--nlcc);var flen=bl+5<<3,ftlen=clen(lf,flt)+clen(df,fdt)+eb,dtlen=clen(lf,dlt)+clen(df,ddt)+eb+14+3*nlcc+clen(lcfreq,lct)+2*lcfreq[16]+3*lcfreq[17]+7*lcfreq[18];if(bs>=0&&flen<=ftlen&&flen<=dtlen)return wfblk(out,p,dat.subarray(bs,bs+bl));var lm,ll,dm,dl;if(wbits(out,p,1+(dtlen<ftlen)),p+=2,dtlen<ftlen){lm=hMap(dlt,mlb,0),ll=dlt,dm=hMap(ddt,mdb,0),dl=ddt;var llm=hMap(lct,mlcb,0);wbits(out,p,nlc-257),wbits(out,p+5,ndc-1),wbits(out,p+10,nlcc-4),p+=14;for(var i$4=0;i$4<nlcc;++i$4)wbits(out,p+3*i$4,lct[clim[i$4]]);p+=3*nlcc;for(var lcts=[lclt,lcdt],it=0;it<2;++it)for(var clct=lcts[it],i$4=0;i$4<clct.length;++i$4){var len$2=clct[i$4]&31;wbits(out,p,llm[len$2]),p+=lct[len$2],len$2>15&&(wbits(out,p,clct[i$4]>>5&127),p+=clct[i$4]>>12)}}else lm=flm,ll=flt,dm=fdm,dl=fdt;for(var i$4=0;i$4<li;++i$4){var sym=syms[i$4];if(sym>255){var len$2=sym>>18&31;wbits16(out,p,lm[len$2+257]),p+=ll[len$2+257],len$2>7&&(wbits(out,p,sym>>23&31),p+=fleb[len$2]);var dst=sym&31;wbits16(out,p,dm[dst]),p+=dl[dst],dst>3&&(wbits16(out,p,sym>>5&8191),p+=fdeb[dst])}else wbits16(out,p,lm[sym]),p+=ll[sym]}return wbits16(out,p,lm[256]),p+ll[256]},deo=new i32([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),et=new u8(0),dflt=function(dat,lvl,plvl,pre,post,st){var s$2=st.z||dat.length,o=new u8(pre+s$2+5*(1+Math.ceil(s$2/7e3))+post),w=o.subarray(pre,o.length-post),lst=st.l,pos=(st.r||0)&7;if(lvl){pos&&(w[0]=st.r>>3);for(var opt=deo[lvl-1],n$2=opt>>13,c$1=opt&8191,msk_1=(1<<plvl)-1,prev=st.p||new u16(32768),head=st.h||new u16(msk_1+1),bs1_1=Math.ceil(plvl/3),bs2_1=2*bs1_1,hsh=function(i$5){return(dat[i$5]^dat[i$5+1]<<bs1_1^dat[i$5+2]<<bs2_1)&msk_1},syms=new i32(25e3),lf=new u16(288),df=new u16(32),lc_1=0,eb=0,i$4=st.i||0,li=0,wi=st.w||0,bs=0;i$4+2<s$2;++i$4){var hv=hsh(i$4),imod=i$4&32767,pimod=head[hv];if(prev[imod]=pimod,head[hv]=imod,wi<=i$4){var rem=s$2-i$4;if((lc_1>7e3||li>24576)&&(rem>423||!lst)){pos=wblk(dat,w,0,syms,lf,df,eb,li,bs,i$4-bs,pos),li=lc_1=eb=0,bs=i$4;for(var j$1=0;j$1<286;++j$1)lf[j$1]=0;for(var j$1=0;j$1<30;++j$1)df[j$1]=0}var l$2=2,d=0,ch_1=c$1,dif=imod-pimod&32767;if(rem>2&&hv==hsh(i$4-dif))for(var maxn=Math.min(n$2,rem)-1,maxd=Math.min(32767,i$4),ml=Math.min(258,rem);dif<=maxd&&--ch_1&&imod!=pimod;){if(dat[i$4+l$2]==dat[i$4+l$2-dif]){for(var nl=0;nl<ml&&dat[i$4+nl]==dat[i$4+nl-dif];++nl);if(nl>l$2){if(l$2=nl,d=dif,nl>maxn)break;for(var mmd=Math.min(dif,nl-2),md=0,j$1=0;j$1<mmd;++j$1){var ti=i$4-dif+j$1&32767,pti=prev[ti],cd=ti-pti&32767;cd>md&&(md=cd,pimod=ti)}}}imod=pimod,pimod=prev[imod],dif+=imod-pimod&32767}if(d){syms[li++]=268435456|revfl[l$2]<<18|revfd[d];var lin=revfl[l$2]&31,din=revfd[d]&31;eb+=fleb[lin]+fdeb[din],++lf[257+lin],++df[din],wi=i$4+l$2,++lc_1}else syms[li++]=dat[i$4],++lf[dat[i$4]]}}for(i$4=Math.max(i$4,wi);i$4<s$2;++i$4)syms[li++]=dat[i$4],++lf[dat[i$4]];pos=wblk(dat,w,lst,syms,lf,df,eb,li,bs,i$4-bs,pos),lst||(st.r=pos&7|w[pos/8|0]<<3,pos-=7,st.h=head,st.p=prev,st.i=i$4,st.w=wi)}else{for(var i$4=st.w||0;i$4<s$2+lst;i$4+=65535){var e=i$4+65535;e>=s$2&&(w[pos/8|0]=lst,e=s$2),pos=wfblk(w,pos+1,dat.subarray(i$4,e))}st.i=s$2}return slc(o,0,pre+shft(pos)+post)},adler=function(){var a=1,b=0;return{p:function(d){for(var n$2=a,m=b,l$2=d.length|0,i$4=0;i$4!=l$2;){for(var e=Math.min(i$4+2655,l$2);i$4<e;++i$4)m+=n$2+=d[i$4];n$2=(n$2&65535)+15*(n$2>>16),m=(m&65535)+15*(m>>16)}a=n$2,b=m},d:function(){return a%=65521,b%=65521,(a&255)<<24|(a&65280)<<8|(b&255)<<8|b>>8}}},dopt=function(dat,opt,pre,post,st){if(!st&&(st={l:1},opt.dictionary)){var dict=opt.dictionary.subarray(-32768),newDat=new u8(dict.length+dat.length);newDat.set(dict),newDat.set(dat,dict.length),dat=newDat,st.w=dict.length}return dflt(dat,opt.level==null?6:opt.level,opt.mem==null?st.l?Math.ceil(Math.max(8,Math.min(13,Math.log(dat.length)))*1.5):20:12+opt.mem,pre,post,st)},wbytes=function(d,b,v){for(;v;++b)d[b]=v,v>>>=8},zlh=function(c$1,o){var lv=o.level,fl$1=lv==0?0:lv<6?1:lv==9?3:2;if(c$1[0]=120,c$1[1]=fl$1<<6|(o.dictionary&&32),c$1[1]|=31-(c$1[0]<<8|c$1[1])%31,o.dictionary){var h=adler();h.p(o.dictionary),wbytes(c$1,2,h.d())}},zls=function(d,dict){return((d[0]&15)!=8||d[0]>>4>7||(d[0]<<8|d[1])%31)&&err(6,`invalid zlib data`),(d[1]>>5&1)==+!dict&&err(6,`invalid zlib data: `+(d[1]&32?`need`:`unexpected`)+` dictionary`),(d[1]>>3&4)+2};function zlibSync(data,opts){opts||={};var a=adler();a.p(data);var d=dopt(data,opts,opts.dictionary?6:2,4);return zlh(d,opts),wbytes(d,d.length-4,a.d()),d}function unzlibSync(data,opts){return inflt(data.subarray(zls(data,opts&&opts.dictionary),-4),{i:2},opts&&opts.out,opts&&opts.dictionary)}var te=typeof TextEncoder<`u`&&new TextEncoder,td=typeof TextDecoder<`u`&&new TextDecoder,tds=0;try{td.decode(et,{stream:!0}),tds=1}catch{}var dutf8=function(d){for(var r=``,i$4=0;;){var c$1=d[i$4++],eb=(c$1>127)+(c$1>223)+(c$1>239);if(i$4+eb>d.length)return{s:r,r:slc(d,i$4-1)};eb?eb==3?(c$1=((c$1&15)<<18|(d[i$4++]&63)<<12|(d[i$4++]&63)<<6|d[i$4++]&63)-65536,r+=String.fromCharCode(55296|c$1>>10,56320|c$1&1023)):eb&1?r+=String.fromCharCode((c$1&31)<<6|d[i$4++]&63):r+=String.fromCharCode((c$1&15)<<12|(d[i$4++]&63)<<6|d[i$4++]&63):r+=String.fromCharCode(c$1)}};function strToU8(str,latin1){if(latin1){for(var ar_1=new u8(str.length),i$4=0;i$4<str.length;++i$4)ar_1[i$4]=str.charCodeAt(i$4);return ar_1}if(te)return te.encode(str);for(var l$2=str.length,ar=new u8(str.length+(str.length>>1)),ai=0,w=function(v){ar[ai++]=v},i$4=0;i$4<l$2;++i$4){if(ai+5>ar.length){var n$2=new u8(ai+8+(l$2-i$4<<1));n$2.set(ar),ar=n$2}var c$1=str.charCodeAt(i$4);c$1<128||latin1?w(c$1):c$1<2048?(w(192|c$1>>6),w(128|c$1&63)):c$1>55295&&c$1<57344?(c$1=65536+(c$1&1047552)|str.charCodeAt(++i$4)&1023,w(240|c$1>>18),w(128|c$1>>12&63),w(128|c$1>>6&63),w(128|c$1&63)):(w(224|c$1>>12),w(128|c$1>>6&63),w(128|c$1&63))}return slc(ar,0,ai)}function strFromU8(dat,latin1){if(latin1){for(var r=``,i$4=0;i$4<dat.length;i$4+=16384)r+=String.fromCharCode.apply(null,dat.subarray(i$4,i$4+16384));return r}else if(td)return td.decode(dat);else{var _a$1=dutf8(dat),s$2=_a$1.s,r=_a$1.r;return r.length&&err(8),s$2}}var import_semver=__toESM(require_semver()),StringifiedFunctionParser=class StringifiedFunctionParser{#namedBindings;#argNames;#functionBody;#isExpressionBody=!1;#isAsync=!1;#isGenerator=!1;constructor(functionString,namedBindings){this.#namedBindings=new Map,this.#argNames=[],this.#functionBody=``,isPlainObject(namedBindings)&&Object.entries(namedBindings).forEach(([key,value])=>{this.#namedBindings.set(key,value)});let trimmed=functionString.trim();this.#parseArgNames(trimmed),this.#parseFunctionBody(trimmed)}#parseArgNames(trimmed){let patterns=[/^\s*(?:async\s+)?\(([^)]*)\)\s*=>/,/^\s*(?:async\s+)?([a-zA-Z_$][a-zA-Z0-9_$]*)\s*=>/,/^\s*(?:async\s+)?function\s*(?:\*\s*)?(?:[a-zA-Z_$][a-zA-Z0-9_$]*)?\s*\(([^)]*)\)/,/^\s*(?:async\s+)?(?:\*\s*)?([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\(([^)]*)\)\s*\{/],paramString=``;for(let pattern of patterns){let match$2=trimmed.match(pattern);if(match$2){paramString=match$2[1]||match$2[2]||``;break}}if(!paramString||!paramString.trim())return;let args$1=[],current=``,depth=0,inString=!1,stringChar=``;for(let i$4=0;i$4<paramString.length;i$4++){let char=paramString[i$4],prevChar=i$4>0?paramString[i$4-1]:``;if((char===`"`||char===`'`||char==="`")&&prevChar!==`\\`&&(inString?char===stringChar&&(inString=!1):(inString=!0,stringChar=char)),!inString&&(char===`{`||char===`[`||char===`(`?depth++:(char===`}`||char===`]`||char===`)`)&&depth--,char===`,`&&depth===0)){let processed=this.#processParameter(current.trim());processed&&args$1.push(processed),current=``;continue}current+=char}if(current.trim()){let processed=this.#processParameter(current.trim());processed&&args$1.push(processed)}this.#argNames.push(...args$1)}#processParameter(param){if(!param)return``;if(param=param.trim(),param.startsWith(`...`))return param.slice(3).trim().split(/[\s=]/)[0];if(param.startsWith(`{`)||param.startsWith(`[`))return param.split(/[\s=:]/)[0];let nameMatch=param.match(/^([a-zA-Z_$][a-zA-Z0-9_$]*)/);return nameMatch?nameMatch[1]:``}#parseFunctionBody(trimmed){this.#isAsync=/^\s*async\s+/.test(trimmed);let arrowExpressionMatch=trimmed.match(/^\s*(async\s+)?(?:\([^)]*\)|[a-zA-Z_$][a-zA-Z0-9_$]*)\s*=>\s*(.+)$/s);if(arrowExpressionMatch&&!arrowExpressionMatch[2].trimStart().startsWith(`{`)){this.#isExpressionBody=!0,this.#functionBody=arrowExpressionMatch[2].trim();return}let arrowBlockMatch=trimmed.match(/^\s*(async\s+)?(?:\([^)]*\)|[a-zA-Z_$][a-zA-Z0-9_$]*)\s*=>\s*\{([\s\S]*)\}\s*$/);if(arrowBlockMatch){this.#functionBody=arrowBlockMatch[2].trim();return}let functionMatch=trimmed.match(/^\s*(async\s+)?function\s*(\*\s*)?(?:[a-zA-Z_$][a-zA-Z0-9_$]*)?\s*\([^)]*\)\s*\{([\s\S]*)\}\s*$/);if(functionMatch){this.#isGenerator=!!functionMatch[2],this.#functionBody=functionMatch[3].trim();return}let methodMatch=trimmed.match(/^\s*(async\s+)?(\*\s*)?[a-zA-Z_$][a-zA-Z0-9_$]*\s*\([^)]*\)\s*\{([\s\S]*)\}\s*$/);if(methodMatch){this.#isGenerator=!!methodMatch[2],this.#functionBody=methodMatch[3].trim();return}let firstBrace=trimmed.indexOf(`{`),lastBrace=trimmed.lastIndexOf(`}`);if(firstBrace!==-1&&lastBrace!==-1&&lastBrace>firstBrace){this.#functionBody=trimmed.substring(firstBrace+1,lastBrace);return}}asFunction(){let functionBody=this.#isExpressionBody?`return ${this.#functionBody}`:this.#functionBody,bindingNames=Array.from(this.#namedBindings.keys()),allParams=[...bindingNames,...this.#argNames],paramList=allParams.join(`, `),functionCode=``;functionCode=this.#isAsync?this.#isGenerator?`async function*(${paramList}) { ${functionBody} }`:`async function(${paramList}) { ${functionBody} }`:this.#isGenerator?`function*(${paramList}) { ${functionBody} }`:`function(${paramList}) { ${functionBody} }`;let callable=Function(`return ${functionCode}`)(),namedBindingValues=Array.from(this.#namedBindings.values());function wrapper(...args$1){return callable.call(this,...namedBindingValues,...args$1)}return wrapper}static parse(functionString,namedBindings){let parser=new StringifiedFunctionParser(functionString,namedBindings);return parser.asFunction()}};const utoa=data=>{let buffer$2=strToU8(data),zipped=zlibSync(buffer$2,{level:9}),binary=strFromU8(zipped,!0);return btoa(binary)},atou=base64=>{let binary=atob(base64);if(binary.startsWith(`xÚ`)){let buffer$2=strToU8(binary,!0),unzipped=unzlibSync(buffer$2);return strFromU8(unzipped)}return decodeURIComponent(escape(binary))},defaultEncoderOptions={withDatabase:!1},isDehydratedValue=value=>isPlainObject(value)&&`_encodedType`in value&&`_encodedValueType`in value&&`_encodedValue`in value,dehydrateValue=(type,value)=>(typeof value==`function`&&(value=value.toString()),{_encodedType:type,_encodedValueType:typeof value,_encodedValue:value}),dehydrateKnexConnection=connection=>{if(isPlainObject(connection))return`getReadClient`in connection?dehydrateValue(`knexConnection`,connection.getReadClient()):dehydrateValue(`knexConnection`,connection);if(typeof connection==`function`&&connection.client!==void 0&&isPlainObject(connection.client.config))return dehydrateValue(`knexConnection`,connection.client.config);throw TypeError(`Cannot dehydrate unexpected type of Knex connection`)},rehydrateKnexConnection=dehydrated=>{let db=vitePluginRequire_1761728761605_47468118;return db(dehydrated._encodedValue)},rehydrateFunction=(functionString,namedBindings)=>StringifiedFunctionParser.parse(functionString,namedBindings),isReference=(obj,root)=>root.isRef(obj),rehydrateDatabaseFunction=dehydrated=>{let{_encodedValue:encodedValue}=dehydrated,{connection:dehydratedConnection,external}=encodedValue,connection=typeof dehydratedConnection==`function`&&dehydratedConnection.name===`knex`?dehydratedConnection:rehydrateKnexConnection(dehydratedConnection),rehydratedMethod=rehydrateFunction(external.method,{connection,isReference,resolveQueryBuilder});return{...external,method:rehydratedMethod}},rehydrateValue=dehydrated=>{let{_encodedType:encodedType,_encodedValue:encodedValue}=dehydrated;if(encodedType===`function`){let returnable=rehydrateFunction(encodedValue);if(typeof returnable!=`function`)throw TypeError(`Rehydrated value is not a function`);return returnable}else if(encodedType===`knexConnection`)return rehydrateKnexConnection(dehydrated);else if(encodedType===`databaseFunction`)return rehydrateDatabaseFunction(dehydrated);return encodedValue},isDatabaseRelatedFunction=fn$1=>{let functionString=fn$1.toString();return functionString.includes(`connection =`)&&functionString.includes(`.knexConnection`)},isExternalsWithDatabaseRelatedFunctionality=obj=>Array.isArray(obj)&&obj.some(item=>isPlainObject(item)&&`method`in item&&typeof item.method==`function`&&isDatabaseRelatedFunction(item.method)),hasExternalsWithDatabaseRelatedFunctionality=obj=>isPlainObject(obj)&&`externals`in obj&&isExternalsWithDatabaseRelatedFunctionality(obj.externals),encode=(schema,options={})=>{let opts={...defaultEncoderOptions,...options},description$1=schema.describe();for(let key in description$1.keys){if(description$1.keys[key]===void 0||description$1.keys[key].rules===void 0)continue;description$1.keys[key].rules=description$1.keys[key].rules.map(rule=>{for(let argKey in rule.args){let value=rule.args[argKey];value instanceof Phone&&(rule.args[argKey]=value.e164)}return rule})}let json$1=JSON.stringify({version:`1.20251029.1`,schema:description$1},(key,value)=>{if(typeof value==`bigint`)return value.toString();if(value===void 0)return null;if(value instanceof DateTime)return value.toObject();if(value instanceof Date)return DateTime.fromJSDate(value).toObject();if(hasExternalsWithDatabaseRelatedFunctionality(value)){let connection=value.flags.knexConnection;value.externals=value.externals.filter(external=>!(isDatabaseRelatedFunction(external.method)&&!opts.withDatabase)).map(external=>{if(isDatabaseRelatedFunction(external.method))return dehydrateValue(`databaseFunction`,{external:{...external,method:external.method.toString()},connection:dehydrateKnexConnection(connection)})})}return key===`knexConnection`?opts.withDatabase?dehydrateKnexConnection(value):void 0:typeof value==`function`?isDatabaseRelatedFunction(value)&&!opts.withDatabase?dehydrateValue(`function`,()=>{}):dehydrateValue(`function`,value):value});return utoa(json$1)},decode=(base64,options={})=>{let opts={...defaultEncoderOptions,...options},json$1=atou(base64),description$1=JSON.parse(json$1,(_,value)=>!opts.withDatabase&&isPlainObject(value)&&`knexConnection`in value?(delete value.knexConnection,value):isDehydratedValue(value)?rehydrateValue(value):value);if(!isPlainObject(description$1)||!(`version`in description$1)||!(`schema`in description$1)||typeof description$1.version!=`string`||!isPlainObject(description$1.schema))throw TypeError(`Not a valid encoded schema`);let{version:schemaVersion,schema}=description$1;if(import_semver.valid(`1.20251029.1`)){if(!import_semver.valid(import_semver.coerce(schemaVersion)))throw TypeError(`Invalid schema version: ${schemaVersion}`);if(import_semver.gt(import_semver.coerce(schemaVersion),`1.20251029.1`))throw TypeError(`Schema version ${schemaVersion} is not compatible with current version 1.20251029.1`)}return validator.build(schema)},Joi=RootFactory.create({schemaTypeModifiers:[knex],shortcutsModifiers:[]}),validator=patch(Joi.extend(bigint).extend(datetime).extend(phone)),TLDS=`AAA.AARP.ABB.ABBOTT.ABBVIE.ABC.ABLE.ABOGADO.ABUDHABI.AC.ACADEMY.ACCENTURE.ACCOUNTANT.ACCOUNTANTS.ACO.ACTOR.AD.ADS.ADULT.AE.AEG.AERO.AETNA.AF.AFL.AFRICA.AG.AGAKHAN.AGENCY.AI.AIG.AIRBUS.AIRFORCE.AIRTEL.AKDN.AL.ALIBABA.ALIPAY.ALLFINANZ.ALLSTATE.ALLY.ALSACE.ALSTOM.AM.AMAZON.AMERICANEXPRESS.AMERICANFAMILY.AMEX.AMFAM.AMICA.AMSTERDAM.ANALYTICS.ANDROID.ANQUAN.ANZ.AO.AOL.APARTMENTS.APP.APPLE.AQ.AQUARELLE.AR.ARAB.ARAMCO.ARCHI.ARMY.ARPA.ART.ARTE.AS.ASDA.ASIA.ASSOCIATES.AT.ATHLETA.ATTORNEY.AU.AUCTION.AUDI.AUDIBLE.AUDIO.AUSPOST.AUTHOR.AUTO.AUTOS.AW.AWS.AX.AXA.AZ.AZURE.BA.BABY.BAIDU.BANAMEX.BAND.BANK.BAR.BARCELONA.BARCLAYCARD.BARCLAYS.BAREFOOT.BARGAINS.BASEBALL.BASKETBALL.BAUHAUS.BAYERN.BB.BBC.BBT.BBVA.BCG.BCN.BD.BE.BEATS.BEAUTY.BEER.BERLIN.BEST.BESTBUY.BET.BF.BG.BH.BHARTI.BI.BIBLE.BID.BIKE.BING.BINGO.BIO.BIZ.BJ.BLACK.BLACKFRIDAY.BLOCKBUSTER.BLOG.BLOOMBERG.BLUE.BM.BMS.BMW.BN.BNPPARIBAS.BO.BOATS.BOEHRINGER.BOFA.BOM.BOND.BOO.BOOK.BOOKING.BOSCH.BOSTIK.BOSTON.BOT.BOUTIQUE.BOX.BR.BRADESCO.BRIDGESTONE.BROADWAY.BROKER.BROTHER.BRUSSELS.BS.BT.BUILD.BUILDERS.BUSINESS.BUY.BUZZ.BV.BW.BY.BZ.BZH.CA.CAB.CAFE.CAL.CALL.CALVINKLEIN.CAM.CAMERA.CAMP.CANON.CAPETOWN.CAPITAL.CAPITALONE.CAR.CARAVAN.CARDS.CARE.CAREER.CAREERS.CARS.CASA.CASE.CASH.CASINO.CAT.CATERING.CATHOLIC.CBA.CBN.CBRE.CC.CD.CENTER.CEO.CERN.CF.CFA.CFD.CG.CH.CHANEL.CHANNEL.CHARITY.CHASE.CHAT.CHEAP.CHINTAI.CHRISTMAS.CHROME.CHURCH.CI.CIPRIANI.CIRCLE.CISCO.CITADEL.CITI.CITIC.CITY.CK.CL.CLAIMS.CLEANING.CLICK.CLINIC.CLINIQUE.CLOTHING.CLOUD.CLUB.CLUBMED.CM.CN.CO.COACH.CODES.COFFEE.COLLEGE.COLOGNE.COM.COMMBANK.COMMUNITY.COMPANY.COMPARE.COMPUTER.COMSEC.CONDOS.CONSTRUCTION.CONSULTING.CONTACT.CONTRACTORS.COOKING.COOL.COOP.CORSICA.COUNTRY.COUPON.COUPONS.COURSES.CPA.CR.CREDIT.CREDITCARD.CREDITUNION.CRICKET.CROWN.CRS.CRUISE.CRUISES.CU.CUISINELLA.CV.CW.CX.CY.CYMRU.CYOU.CZ.DAD.DANCE.DATA.DATE.DATING.DATSUN.DAY.DCLK.DDS.DE.DEAL.DEALER.DEALS.DEGREE.DELIVERY.DELL.DELOITTE.DELTA.DEMOCRAT.DENTAL.DENTIST.DESI.DESIGN.DEV.DHL.DIAMONDS.DIET.DIGITAL.DIRECT.DIRECTORY.DISCOUNT.DISCOVER.DISH.DIY.DJ.DK.DM.DNP.DO.DOCS.DOCTOR.DOG.DOMAINS.DOT.DOWNLOAD.DRIVE.DTV.DUBAI.DUPONT.DURBAN.DVAG.DVR.DZ.EARTH.EAT.EC.ECO.EDEKA.EDU.EDUCATION.EE.EG.EMAIL.EMERCK.ENERGY.ENGINEER.ENGINEERING.ENTERPRISES.EPSON.EQUIPMENT.ER.ERICSSON.ERNI.ES.ESQ.ESTATE.ET.EU.EUROVISION.EUS.EVENTS.EXCHANGE.EXPERT.EXPOSED.EXPRESS.EXTRASPACE.FAGE.FAIL.FAIRWINDS.FAITH.FAMILY.FAN.FANS.FARM.FARMERS.FASHION.FAST.FEDEX.FEEDBACK.FERRARI.FERRERO.FI.FIDELITY.FIDO.FILM.FINAL.FINANCE.FINANCIAL.FIRE.FIRESTONE.FIRMDALE.FISH.FISHING.FIT.FITNESS.FJ.FK.FLICKR.FLIGHTS.FLIR.FLORIST.FLOWERS.FLY.FM.FO.FOO.FOOD.FOOTBALL.FORD.FOREX.FORSALE.FORUM.FOUNDATION.FOX.FR.FREE.FRESENIUS.FRL.FROGANS.FRONTIER.FTR.FUJITSU.FUN.FUND.FURNITURE.FUTBOL.FYI.GA.GAL.GALLERY.GALLO.GALLUP.GAME.GAMES.GAP.GARDEN.GAY.GB.GBIZ.GD.GDN.GE.GEA.GENT.GENTING.GEORGE.GF.GG.GGEE.GH.GI.GIFT.GIFTS.GIVES.GIVING.GL.GLASS.GLE.GLOBAL.GLOBO.GM.GMAIL.GMBH.GMO.GMX.GN.GODADDY.GOLD.GOLDPOINT.GOLF.GOO.GOODYEAR.GOOG.GOOGLE.GOP.GOT.GOV.GP.GQ.GR.GRAINGER.GRAPHICS.GRATIS.GREEN.GRIPE.GROCERY.GROUP.GS.GT.GU.GUCCI.GUGE.GUIDE.GUITARS.GURU.GW.GY.HAIR.HAMBURG.HANGOUT.HAUS.HBO.HDFC.HDFCBANK.HEALTH.HEALTHCARE.HELP.HELSINKI.HERE.HERMES.HIPHOP.HISAMITSU.HITACHI.HIV.HK.HKT.HM.HN.HOCKEY.HOLDINGS.HOLIDAY.HOMEDEPOT.HOMEGOODS.HOMES.HOMESENSE.HONDA.HORSE.HOSPITAL.HOST.HOSTING.HOT.HOTELS.HOTMAIL.HOUSE.HOW.HR.HSBC.HT.HU.HUGHES.HYATT.HYUNDAI.IBM.ICBC.ICE.ICU.ID.IE.IEEE.IFM.IKANO.IL.IM.IMAMAT.IMDB.IMMO.IMMOBILIEN.IN.INC.INDUSTRIES.INFINITI.INFO.ING.INK.INSTITUTE.INSURANCE.INSURE.INT.INTERNATIONAL.INTUIT.INVESTMENTS.IO.IPIRANGA.IQ.IR.IRISH.IS.ISMAILI.IST.ISTANBUL.IT.ITAU.ITV.JAGUAR.JAVA.JCB.JE.JEEP.JETZT.JEWELRY.JIO.JLL.JM.JMP.JNJ.JO.JOBS.JOBURG.JOT.JOY.JP.JPMORGAN.JPRS.JUEGOS.JUNIPER.KAUFEN.KDDI.KE.KERRYHOTELS.KERRYPROPERTIES.KFH.KG.KH.KI.KIA.KIDS.KIM.KINDLE.KITCHEN.KIWI.KM.KN.KOELN.KOMATSU.KOSHER.KP.KPMG.KPN.KR.KRD.KRED.KUOKGROUP.KW.KY.KYOTO.KZ.LA.LACAIXA.LAMBORGHINI.LAMER.LAND.LANDROVER.LANXESS.LASALLE.LAT.LATINO.LATROBE.LAW.LAWYER.LB.LC.LDS.LEASE.LECLERC.LEFRAK.LEGAL.LEGO.LEXUS.LGBT.LI.LIDL.LIFE.LIFEINSURANCE.LIFESTYLE.LIGHTING.LIKE.LILLY.LIMITED.LIMO.LINCOLN.LINK.LIVE.LIVING.LK.LLC.LLP.LOAN.LOANS.LOCKER.LOCUS.LOL.LONDON.LOTTE.LOTTO.LOVE.LPL.LPLFINANCIAL.LR.LS.LT.LTD.LTDA.LU.LUNDBECK.LUXE.LUXURY.LV.LY.MA.MADRID.MAIF.MAISON.MAKEUP.MAN.MANAGEMENT.MANGO.MAP.MARKET.MARKETING.MARKETS.MARRIOTT.MARSHALLS.MATTEL.MBA.MC.MCKINSEY.MD.ME.MED.MEDIA.MEET.MELBOURNE.MEME.MEMORIAL.MEN.MENU.MERCKMSD.MG.MH.MIAMI.MICROSOFT.MIL.MINI.MINT.MIT.MITSUBISHI.MK.ML.MLB.MLS.MM.MMA.MN.MO.MOBI.MOBILE.MODA.MOE.MOI.MOM.MONASH.MONEY.MONSTER.MORMON.MORTGAGE.MOSCOW.MOTO.MOTORCYCLES.MOV.MOVIE.MP.MQ.MR.MS.MSD.MT.MTN.MTR.MU.MUSEUM.MUSIC.MV.MW.MX.MY.MZ.NA.NAB.NAGOYA.NAME.NAVY.NBA.NC.NE.NEC.NET.NETBANK.NETFLIX.NETWORK.NEUSTAR.NEW.NEWS.NEXT.NEXTDIRECT.NEXUS.NF.NFL.NG.NGO.NHK.NI.NICO.NIKE.NIKON.NINJA.NISSAN.NISSAY.NL.NO.NOKIA.NORTON.NOW.NOWRUZ.NOWTV.NP.NR.NRA.NRW.NTT.NU.NYC.NZ.OBI.OBSERVER.OFFICE.OKINAWA.OLAYAN.OLAYANGROUP.OLLO.OM.OMEGA.ONE.ONG.ONL.ONLINE.OOO.OPEN.ORACLE.ORANGE.ORG.ORGANIC.ORIGINS.OSAKA.OTSUKA.OTT.OVH.PA.PAGE.PANASONIC.PARIS.PARS.PARTNERS.PARTS.PARTY.PAY.PCCW.PE.PET.PF.PFIZER.PG.PH.PHARMACY.PHD.PHILIPS.PHONE.PHOTO.PHOTOGRAPHY.PHOTOS.PHYSIO.PICS.PICTET.PICTURES.PID.PIN.PING.PINK.PIONEER.PIZZA.PK.PL.PLACE.PLAY.PLAYSTATION.PLUMBING.PLUS.PM.PN.PNC.POHL.POKER.POLITIE.PORN.POST.PR.PRAXI.PRESS.PRIME.PRO.PROD.PRODUCTIONS.PROF.PROGRESSIVE.PROMO.PROPERTIES.PROPERTY.PROTECTION.PRU.PRUDENTIAL.PS.PT.PUB.PW.PWC.PY.QA.QPON.QUEBEC.QUEST.RACING.RADIO.RE.READ.REALESTATE.REALTOR.REALTY.RECIPES.RED.REDUMBRELLA.REHAB.REISE.REISEN.REIT.RELIANCE.REN.RENT.RENTALS.REPAIR.REPORT.REPUBLICAN.REST.RESTAURANT.REVIEW.REVIEWS.REXROTH.RICH.RICHARDLI.RICOH.RIL.RIO.RIP.RO.ROCKS.RODEO.ROGERS.ROOM.RS.RSVP.RU.RUGBY.RUHR.RUN.RW.RWE.RYUKYU.SA.SAARLAND.SAFE.SAFETY.SAKURA.SALE.SALON.SAMSCLUB.SAMSUNG.SANDVIK.SANDVIKCOROMANT.SANOFI.SAP.SARL.SAS.SAVE.SAXO.SB.SBI.SBS.SC.SCB.SCHAEFFLER.SCHMIDT.SCHOLARSHIPS.SCHOOL.SCHULE.SCHWARZ.SCIENCE.SCOT.SD.SE.SEARCH.SEAT.SECURE.SECURITY.SEEK.SELECT.SENER.SERVICES.SEVEN.SEW.SEX.SEXY.SFR.SG.SH.SHANGRILA.SHARP.SHELL.SHIA.SHIKSHA.SHOES.SHOP.SHOPPING.SHOUJI.SHOW.SI.SILK.SINA.SINGLES.SITE.SJ.SK.SKI.SKIN.SKY.SKYPE.SL.SLING.SM.SMART.SMILE.SN.SNCF.SO.SOCCER.SOCIAL.SOFTBANK.SOFTWARE.SOHU.SOLAR.SOLUTIONS.SONG.SONY.SOY.SPA.SPACE.SPORT.SPOT.SR.SRL.SS.ST.STADA.STAPLES.STAR.STATEBANK.STATEFARM.STC.STCGROUP.STOCKHOLM.STORAGE.STORE.STREAM.STUDIO.STUDY.STYLE.SU.SUCKS.SUPPLIES.SUPPLY.SUPPORT.SURF.SURGERY.SUZUKI.SV.SWATCH.SWISS.SX.SY.SYDNEY.SYSTEMS.SZ.TAB.TAIPEI.TALK.TAOBAO.TARGET.TATAMOTORS.TATAR.TATTOO.TAX.TAXI.TC.TCI.TD.TDK.TEAM.TECH.TECHNOLOGY.TEL.TEMASEK.TENNIS.TEVA.TF.TG.TH.THD.THEATER.THEATRE.TIAA.TICKETS.TIENDA.TIPS.TIRES.TIROL.TJ.TJMAXX.TJX.TK.TKMAXX.TL.TM.TMALL.TN.TO.TODAY.TOKYO.TOOLS.TOP.TORAY.TOSHIBA.TOTAL.TOURS.TOWN.TOYOTA.TOYS.TR.TRADE.TRADING.TRAINING.TRAVEL.TRAVELERS.TRAVELERSINSURANCE.TRUST.TRV.TT.TUBE.TUI.TUNES.TUSHU.TV.TVS.TW.TZ.UA.UBANK.UBS.UG.UK.UNICOM.UNIVERSITY.UNO.UOL.UPS.US.UY.UZ.VA.VACATIONS.VANA.VANGUARD.VC.VE.VEGAS.VENTURES.VERISIGN.VERSICHERUNG.VET.VG.VI.VIAJES.VIDEO.VIG.VIKING.VILLAS.VIN.VIP.VIRGIN.VISA.VISION.VIVA.VIVO.VLAANDEREN.VN.VODKA.VOLVO.VOTE.VOTING.VOTO.VOYAGE.VU.WALES.WALMART.WALTER.WANG.WANGGOU.WATCH.WATCHES.WEATHER.WEATHERCHANNEL.WEBCAM.WEBER.WEBSITE.WED.WEDDING.WEIBO.WEIR.WF.WHOSWHO.WIEN.WIKI.WILLIAMHILL.WIN.WINDOWS.WINE.WINNERS.WME.WOLTERSKLUWER.WOODSIDE.WORK.WORKS.WORLD.WOW.WS.WTC.WTF.XBOX.XEROX.XIHUAN.XIN.XN--11B4C3D.XN--1CK2E1B.XN--1QQW23A.XN--2SCRJ9C.XN--30RR7Y.XN--3BST00M.XN--3DS443G.XN--3E0B707E.XN--3HCRJ9C.XN--3PXU8K.XN--42C2D9A.XN--45BR5CYL.XN--45BRJ9C.XN--45Q11C.XN--4DBRK0CE.XN--4GBRIM.XN--54B7FTA0CC.XN--55QW42G.XN--55QX5D.XN--5SU34J936BGSG.XN--5TZM5G.XN--6FRZ82G.XN--6QQ986B3XL.XN--80ADXHKS.XN--80AO21A.XN--80AQECDR1A.XN--80ASEHDB.XN--80ASWG.XN--8Y0A063A.XN--90A3AC.XN--90AE.XN--90AIS.XN--9DBQ2A.XN--9ET52U.XN--9KRT00A.XN--B4W605FERD.XN--BCK1B9A5DRE4C.XN--C1AVG.XN--C2BR7G.XN--CCK2B3B.XN--CCKWCXETD.XN--CG4BKI.XN--CLCHC0EA0B2G2A9GCD.XN--CZR694B.XN--CZRS0T.XN--CZRU2D.XN--D1ACJ3B.XN--D1ALF.XN--E1A4C.XN--ECKVDTC9D.XN--EFVY88H.XN--FCT429K.XN--FHBEI.XN--FIQ228C5HS.XN--FIQ64B.XN--FIQS8S.XN--FIQZ9S.XN--FJQ720A.XN--FLW351E.XN--FPCRJ9C3D.XN--FZC2C9E2C.XN--FZYS8D69UVGM.XN--G2XX48C.XN--GCKR3F0F.XN--GECRJ9C.XN--GK3AT1E.XN--H2BREG3EVE.XN--H2BRJ9C.XN--H2BRJ9C8C.XN--HXT814E.XN--I1B6B1A6A2E.XN--IMR513N.XN--IO0A7I.XN--J1AEF.XN--J1AMH.XN--J6W193G.XN--JLQ480N2RG.XN--JVR189M.XN--KCRX77D1X4A.XN--KPRW13D.XN--KPRY57D.XN--KPUT3I.XN--L1ACC.XN--LGBBAT1AD8J.XN--MGB9AWBF.XN--MGBA3A3EJT.XN--MGBA3A4F16A.XN--MGBA7C0BBN0A.XN--MGBAAM7A8H.XN--MGBAB2BD.XN--MGBAH1A3HJKRD.XN--MGBAI9AZGQP6J.XN--MGBAYH7GPA.XN--MGBBH1A.XN--MGBBH1A71E.XN--MGBC0A9AZCG.XN--MGBCA7DZDO.XN--MGBCPQ6GPA1A.XN--MGBERP4A5D4AR.XN--MGBGU82A.XN--MGBI4ECEXP.XN--MGBPL2FH.XN--MGBT3DHD.XN--MGBTX2B.XN--MGBX4CD0AB.XN--MIX891F.XN--MK1BU44C.XN--MXTQ1M.XN--NGBC5AZD.XN--NGBE9E0A.XN--NGBRX.XN--NODE.XN--NQV7F.XN--NQV7FS00EMA.XN--NYQY26A.XN--O3CW4H.XN--OGBPF8FL.XN--OTU796D.XN--P1ACF.XN--P1AI.XN--PGBS0DH.XN--PSSY2U.XN--Q7CE6A.XN--Q9JYB4C.XN--QCKA1PMC.XN--QXA6A.XN--QXAM.XN--RHQV96G.XN--ROVU88B.XN--RVC1E0AM3E.XN--S9BRJ9C.XN--SES554G.XN--T60B56A.XN--TCKWE.XN--TIQ49XQYJ.XN--UNUP4Y.XN--VERMGENSBERATER-CTB.XN--VERMGENSBERATUNG-PWB.XN--VHQUV.XN--VUQ861B.XN--W4R85EL8FHU5DNRA.XN--W4RS40L.XN--WGBH1C.XN--WGBL6A.XN--XHQ521B.XN--XKC2AL3HYE2A.XN--XKC2DL3A5EE0H.XN--Y9A3AQ.XN--YFRO4I67O.XN--YGBI2AMMX.XN--ZFR164B.XXX.XYZ.YACHTS.YAHOO.YAMAXUN.YANDEX.YE.YODOBASHI.YOGA.YOKOHAMA.YOU.YOUTUBE.YT.YUN.ZA.ZAPPOS.ZARA.ZERO.ZIP.ZM.ZONE.ZUERICH.ZW`.split(`.`),tlds=new Set(TLDS.map(tld=>tld.toLowerCase()));init_esm();var import_lib=__toESM(require_lib$3()),import_lib$1=__toESM(require_lib$2()),import_lib$2=__toESM(require_lib());const version=`1.20251029.1`;var ValidationError=import_lib$2.ValidationError,location=import_lib$1.location;export{ValidationError,esm_exports as address,decode,encode,import_lib as formula,location,tlds,validator,version};
44
44
  //# sourceMappingURL=index.mjs.map