diff --git a/404.html b/404.html index f037dbe..5616595 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/_next/data/_wpvZaCPyFV60BzQS82Pj/docs/quick-start/infrastructure/cloudformation.json b/_next/data/u7b9c-obwCTlbUIiUzxte/docs/quick-start/infrastructure/cloudformation.json similarity index 100% rename from _next/data/_wpvZaCPyFV60BzQS82Pj/docs/quick-start/infrastructure/cloudformation.json rename to _next/data/u7b9c-obwCTlbUIiUzxte/docs/quick-start/infrastructure/cloudformation.json diff --git a/_next/data/_wpvZaCPyFV60BzQS82Pj/docs/quick-start/infrastructure/terraform.json b/_next/data/u7b9c-obwCTlbUIiUzxte/docs/quick-start/infrastructure/terraform.json similarity index 100% rename from _next/data/_wpvZaCPyFV60BzQS82Pj/docs/quick-start/infrastructure/terraform.json rename to _next/data/u7b9c-obwCTlbUIiUzxte/docs/quick-start/infrastructure/terraform.json diff --git a/_next/static/_wpvZaCPyFV60BzQS82Pj/_buildManifest.js b/_next/static/_wpvZaCPyFV60BzQS82Pj/_buildManifest.js deleted file mode 100644 index ee369da..0000000 --- a/_next/static/_wpvZaCPyFV60BzQS82Pj/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,c,t,a){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,c,"static/css/e0e7c22adcdbef21.css","static/chunks/pages/index-b062a586561c5988.js"],"/_error":["static/chunks/pages/_error-3986dd5834f581dc.js"],"/about":[s,c,"static/css/e7f1e959babc9570.css","static/chunks/pages/about-e662bd8f70c38c72.js"],"/docs":[s,c,"static/css/a328a878aafba2bc.css","static/chunks/pages/docs-46629c768c19fc59.js"],"/docs/advanced-usage/cors":[s,c,"static/chunks/pages/docs/advanced-usage/cors-a9faf9093272b15b.js"],"/docs/advanced-usage/request-response-functions":[s,c,"static/chunks/pages/docs/advanced-usage/request-response-functions-e138ebc00c0d846c.js"],"/docs/communities/iiif":[s,c,"static/chunks/pages/docs/communities/iiif-c3927a1c9260d3b6.js"],"/docs/communities/samvera":[s,c,"static/chunks/pages/docs/communities/samvera-3161149847eedfd4.js"],"/docs/contributors":[s,c,"static/chunks/pages/docs/contributors-69d9377700444bd8.js"],"/docs/custom-sharp-layer":[s,c,"static/chunks/pages/docs/custom-sharp-layer-d361db2698530a51.js"],"/docs/how-to-contribute":[s,c,"static/chunks/pages/docs/how-to-contribute-2cebc410a768d885.js"],"/docs/notes":[s,c,"static/chunks/pages/docs/notes-264d5568aa5525ee.js"],"/docs/quick-start":[s,c,"static/chunks/pages/docs/quick-start-5012cae04aed3794.js"],"/docs/quick-start/deleting-the-app":[s,c,"static/chunks/pages/docs/quick-start/deleting-the-app-11ed476e975ee197.js"],"/docs/quick-start/deployment-command-line":[s,c,"static/chunks/pages/docs/quick-start/deployment-command-line-f74d9fd6127a5f28.js"],"/docs/quick-start/deployment-sam":[s,c,"static/chunks/pages/docs/quick-start/deployment-sam-6de0eb275bb2c58f.js"],"/docs/quick-start/infrastructure":[s,c,"static/chunks/pages/docs/quick-start/infrastructure-37ee25d6e5baed6a.js"],"/docs/quick-start/infrastructure/cloudformation":[s,c,t,a,"static/chunks/pages/docs/quick-start/infrastructure/cloudformation-a4993a2455d98be1.js"],"/docs/quick-start/infrastructure/terraform":[s,c,t,a,"static/chunks/pages/docs/quick-start/infrastructure/terraform-b4ca1a226e0b8ee4.js"],"/docs/source-images":[s,c,"static/chunks/pages/docs/source-images-72b43f64ab58c2f3.js"],"/docs/testing":[s,c,"static/chunks/pages/docs/testing-68cda51fcbcb1d9f.js"],sortedPages:["/","/_app","/_error","/about","/docs","/docs/advanced-usage/cors","/docs/advanced-usage/request-response-functions","/docs/communities/iiif","/docs/communities/samvera","/docs/contributors","/docs/custom-sharp-layer","/docs/how-to-contribute","/docs/notes","/docs/quick-start","/docs/quick-start/deleting-the-app","/docs/quick-start/deployment-command-line","/docs/quick-start/deployment-sam","/docs/quick-start/infrastructure","/docs/quick-start/infrastructure/cloudformation","/docs/quick-start/infrastructure/terraform","/docs/source-images","/docs/testing"]}}("static/css/75660a9d0f8e50cc.css","static/chunks/797-6c3e90f4c1329391.js","static/chunks/160-d5400c1a13bec5f8.js","static/css/2799bd547bb37cdf.css"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/chunks/160-79ce157fbae21c70.js b/_next/static/chunks/160-79ce157fbae21c70.js new file mode 100644 index 0000000..8c80235 --- /dev/null +++ b/_next/static/chunks/160-79ce157fbae21c70.js @@ -0,0 +1,30 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[160],{1876:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=getLens(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,s=getLens(e),o=s[0],a=s[1],l=new i((o+a)*3/4-a),c=0,u=a>0?o-4:o;for(r=0;r>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[c++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,s=[],o=0,a=n-i;o>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}(e,o,o+16383>a?a:o+16383));return 1===i?s.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&s.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),s.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(e,t,r){"use strict";/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */var n=r(675),i=r(783),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function createBuffer(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,Buffer.prototype),t}function Buffer(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(e)}return from(e,t,r)}function from(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!Buffer.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|byteLength(e,t),n=createBuffer(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return fromArrayLike(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(isInstance(e,ArrayBuffer)||e&&isInstance(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(e,SharedArrayBuffer)||e&&isInstance(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function byteLength(e,t){if(Buffer.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||isInstance(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return base64ToBytes(e).length;default:if(i)return n?-1:utf8ToBytes(e).length;t=(""+t).toLowerCase(),i=!0}}function slowToString(e,t,r){var i,s,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",s=t;s2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(s=r=+r)!=s&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=Buffer.from(t,n)),Buffer.isBuffer(t))return 0===t.length?-1:arrayIndexOf(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):arrayIndexOf(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,t,r,n,i){var s,o=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,a/=2,l/=2,r/=2}function read(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(s=r;sa&&(r=a-l),s=r;s>=0;s--){for(var u=!0,f=0;f239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(u=c);break;case 2:(192&(s=e[i+1]))==128&&(l=(31&c)<<6|63&s)>127&&(u=l);break;case 3:s=e[i+1],o=e[i+2],(192&s)==128&&(192&o)==128&&(l=(15&c)<<12|(63&s)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:s=e[i+1],o=e[i+2],a=e[i+3],(192&s)==128&&(192&o)==128&&(192&a)==128&&(l=(15&c)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function checkInt(e,t,r,n,i,s){if(!Buffer.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function checkIEEE754(e,t,r,n,i,s){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function writeFloat(e,t,r,n,s){return t=+t,r>>>=0,s||checkIEEE754(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function writeDouble(e,t,r,n,s){return t=+t,r>>>=0,s||checkIEEE754(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=Buffer,t.SlowBuffer=function(e){return+e!=e&&(e=0),Buffer.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,Buffer.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||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."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(e,t,r){return from(e,t,r)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(e,t,r){return(assertSize(e),e<=0)?createBuffer(e):void 0!==t?"string"==typeof r?createBuffer(e).fill(t,r):createBuffer(e).fill(t):createBuffer(e)},Buffer.allocUnsafe=function(e){return allocUnsafe(e)},Buffer.allocUnsafeSlow=function(e){return allocUnsafe(e)},Buffer.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==Buffer.prototype},Buffer.compare=function(e,t){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),isInstance(t,Uint8Array)&&(t=Buffer.from(t,t.offset,t.byteLength)),!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,s=Math.min(r,n);ir&&(e+=" ... "),""},s&&(Buffer.prototype[s]=Buffer.prototype.inspect),Buffer.prototype.compare=function(e,t,r,n,i){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),!Buffer.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var s=i-n,o=r-t,a=Math.min(s,o),l=this.slice(n,i),c=e.slice(t,r),u=0;u>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,s,o,a,l,c,u,f,h,p,d,m,y=this.length-t;if((void 0===r||r>y)&&(r=y),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var g=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var s=t.length;n>s/2&&(n=s/2);for(var o=0;o>8,i.push(r%256),i.push(n);return i}(e,this.length-d),this,d,m);default:if(g)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),g=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||checkOffset(e,t,this.length);for(var n=this[e],i=1,s=0;++s>>=0,t>>>=0,r||checkOffset(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},Buffer.prototype.readUInt8=function(e,t){return e>>>=0,t||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUInt16LE=function(e,t){return e>>>=0,t||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUInt16BE=function(e,t){return e>>>=0,t||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUInt32LE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUInt32BE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);for(var n=this[e],i=1,s=0;++s=(i*=128)&&(n-=Math.pow(2,8*t)),n},Buffer.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);for(var n=t,i=1,s=this[e+--n];n>0&&(i*=256);)s+=this[e+--n]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*t)),s},Buffer.prototype.readInt8=function(e,t){return(e>>>=0,t||checkOffset(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},Buffer.prototype.readInt16LE=function(e,t){e>>>=0,t||checkOffset(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt16BE=function(e,t){e>>>=0,t||checkOffset(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt32LE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readFloatLE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),i.read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),i.read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function(e,t){return e>>>=0,t||checkOffset(e,8,this.length),i.read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function(e,t){return e>>>=0,t||checkOffset(e,8,this.length),i.read(this,e,!1,52,8)},Buffer.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;checkInt(this,e,t,r,i,0)}var s=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;checkInt(this,e,t,r,i,0)}var s=r-1,o=1;for(this[t+s]=255&e;--s>=0&&(o*=256);)this[t+s]=e/o&255;return t+r},Buffer.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,1,255,0),this[t]=255&e,t+1},Buffer.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Buffer.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Buffer.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},Buffer.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Buffer.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);checkInt(this,e,t,r,i-1,-i)}var s=0,o=1,a=0;for(this[t]=255&e;++s>0)-a&255;return t+r},Buffer.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);checkInt(this,e,t,r,i-1,-i)}var s=r-1,o=1,a=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+r},Buffer.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Buffer.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Buffer.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Buffer.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},Buffer.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Buffer.prototype.writeFloatLE=function(e,t,r){return writeFloat(this,e,t,!0,r)},Buffer.prototype.writeFloatBE=function(e,t,r){return writeFloat(this,e,t,!1,r)},Buffer.prototype.writeDoubleLE=function(e,t,r){return writeDouble(this,e,t,!0,r)},Buffer.prototype.writeDoubleBE=function(e,t,r){return writeDouble(this,e,t,!1,r)},Buffer.prototype.copy=function(e,t,r,n){if(!Buffer.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--s)e[s+t]=this[s+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},Buffer.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!Buffer.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,s=e.charCodeAt(0);("utf8"===n&&s<128||"latin1"===n)&&(e=s)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||o+1===n){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return s}function asciiToBytes(e){for(var t=[],r=0;r=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function isInstance(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var a=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,r,n,i){var s,o,a=8*i-n-1,l=(1<>1,u=-7,f=r?i-1:0,h=r?-1:1,p=e[t+f];for(f+=h,s=p&(1<<-u)-1,p>>=-u,u+=a;u>0;s=256*s+e[t+f],f+=h,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=n;u>0;o=256*o+e[t+f],f+=h,u-=8);if(0===s)s=1-c;else{if(s===l)return o?NaN:(p?-1:1)*(1/0);o+=Math.pow(2,n),s-=c}return(p?-1:1)*o*Math.pow(2,s-n)},t.write=function(e,t,r,n,i,s){var o,a,l,c=8*s-i-1,u=(1<>1,h=23===i?5960464477539062e-23:0,p=n?0:s-1,d=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=h/l:t+=h*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=u?(a=0,o=u):o+f>=1?(a=(t*l-1)*Math.pow(2,i),o+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=255&a,p+=d,a/=256,i-=8);for(o=o<0;e[r+p]=255&o,p+=d,o/=256,c-=8);e[r+p-d]|=128*m}}},r={};function __nccwpck_require__(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}},s=!0;try{t[e](i,i.exports,__nccwpck_require__),s=!1}finally{s&&delete r[e]}return i.exports}__nccwpck_require__.ab="//";var n=__nccwpck_require__(72);e.exports=n}()},4160:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{Alias:function(){return Alias},CST:function(){return i},Composer:function(){return Composer},Document:function(){return Document},Lexer:function(){return Lexer},LineCounter:function(){return LineCounter},Pair:function(){return Pair},Parser:function(){return Parser},Scalar:function(){return Scalar},Schema:function(){return Schema},YAMLError:function(){return YAMLError},YAMLMap:function(){return YAMLMap},YAMLParseError:function(){return YAMLParseError},YAMLSeq:function(){return YAMLSeq},YAMLWarning:function(){return YAMLWarning},default:function(){return eu},isAlias:function(){return isAlias},isCollection:function(){return isCollection},isDocument:function(){return isDocument},isMap:function(){return isMap},isNode:function(){return isNode},isPair:function(){return isPair},isScalar:function(){return isScalar},isSeq:function(){return isSeq},parse:function(){return parse},parseAllDocuments:function(){return parseAllDocuments},parseDocument:function(){return parseDocument},stringify:function(){return public_api_stringify},visit:function(){return visit},visitAsync:function(){return visitAsync}});var i={};r.r(i),r.d(i,{BOM:function(){return er},DOCUMENT:function(){return en},FLOW_END:function(){return ei},SCALAR:function(){return es},createScalarToken:function(){return createScalarToken},isCollection:function(){return cst_isCollection},isScalar:function(){return cst_isScalar},prettyToken:function(){return prettyToken},resolveAsScalar:function(){return resolveAsScalar},setScalarValue:function(){return setScalarValue},stringify:function(){return cst_stringify_stringify},tokenType:function(){return tokenType},visit:function(){return cst_visit_visit}});var s={};r.r(s),r.d(s,{Alias:function(){return Alias},CST:function(){return i},Composer:function(){return Composer},Document:function(){return Document},Lexer:function(){return Lexer},LineCounter:function(){return LineCounter},Pair:function(){return Pair},Parser:function(){return Parser},Scalar:function(){return Scalar},Schema:function(){return Schema},YAMLError:function(){return YAMLError},YAMLMap:function(){return YAMLMap},YAMLParseError:function(){return YAMLParseError},YAMLSeq:function(){return YAMLSeq},YAMLWarning:function(){return YAMLWarning},isAlias:function(){return isAlias},isCollection:function(){return isCollection},isDocument:function(){return isDocument},isMap:function(){return isMap},isNode:function(){return isNode},isPair:function(){return isPair},isScalar:function(){return isScalar},isSeq:function(){return isSeq},parse:function(){return parse},parseAllDocuments:function(){return parseAllDocuments},parseDocument:function(){return parseDocument},stringify:function(){return public_api_stringify},visit:function(){return visit},visitAsync:function(){return visitAsync}});let o=Symbol.for("yaml.alias"),a=Symbol.for("yaml.document"),l=Symbol.for("yaml.map"),c=Symbol.for("yaml.pair"),u=Symbol.for("yaml.scalar"),f=Symbol.for("yaml.seq"),h=Symbol.for("yaml.node.type"),isAlias=e=>!!e&&"object"==typeof e&&e[h]===o,isDocument=e=>!!e&&"object"==typeof e&&e[h]===a,isMap=e=>!!e&&"object"==typeof e&&e[h]===l,isPair=e=>!!e&&"object"==typeof e&&e[h]===c,isScalar=e=>!!e&&"object"==typeof e&&e[h]===u,isSeq=e=>!!e&&"object"==typeof e&&e[h]===f;function isCollection(e){if(e&&"object"==typeof e)switch(e[h]){case l:case f:return!0}return!1}function isNode(e){if(e&&"object"==typeof e)switch(e[h]){case o:case l:case u:case f:return!0}return!1}let hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor,p=Symbol("break visit"),d=Symbol("skip children"),m=Symbol("remove node");function visit(e,t){let r=initVisitor(t);if(isDocument(e)){let t=visit_(null,e.contents,r,Object.freeze([e]));t===m&&(e.contents=null)}else visit_(null,e,r,Object.freeze([]))}function visit_(e,t,r,n){let i=callVisitor(e,t,r,n);if(isNode(i)||isPair(i))return replaceNode(e,n,i),visit_(e,i,r,n);if("symbol"!=typeof i){if(isCollection(t)){n=Object.freeze(n.concat(t));for(let e=0;ee.replace(/[!,[\]{}]/g,e=>y[e]);let Directives=class Directives{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Directives.defaultYaml,e),this.tags=Object.assign({},Directives.defaultTags,t)}clone(){let e=new Directives(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Directives.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Directives.defaultTags),this.atNextDocument=!1);let r=e.trim().split(/[ \t]+/),n=r.shift();switch(n){case"%TAG":{if(2!==r.length&&(t(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;let[e,n]=r;return this.tags[e]=n,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==r.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=r;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let r=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,r),!1}}default:return t(0,`Unknown directive ${n}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let r=e.slice(2,-1);return"!"===r||"!!"===r?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),r)}let[,r,n]=e.match(/^(.*!)([^!]*)$/);n||t(`The ${e} tag has no suffix`);let i=this.tags[r];return i?i+decodeURIComponent(n):"!"===r?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,r]of Object.entries(this.tags))if(e.startsWith(r))return t+escapeTagName(e.substring(r.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t;let r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);if(e&&n.length>0&&isNode(e.contents)){let r={};visit(e.contents,(e,t)=>{isNode(t)&&t.tag&&(r[t.tag]=!0)}),t=Object.keys(r)}else t=[];for(let[i,s]of n)("!!"!==i||"tag:yaml.org,2002:"!==s)&&(!e||t.some(e=>e.startsWith(s)))&&r.push(`%TAG ${i} ${s}`);return r.join("\n")}};function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e),r=`Anchor must not contain whitespace or control characters: ${t}`;throw Error(r)}return!0}function anchorNames(e){let t=new Set;return visit(e,{Value(e,r){r.anchor&&t.add(r.anchor)}}),t}function findNewAnchor(e,t){for(let r=1;;++r){let n=`${e}${r}`;if(!t.has(n))return n}}function applyReviver(e,t,r,n){if(n&&"object"==typeof n){if(Array.isArray(n))for(let t=0,r=n.length;ttoJS(e,String(t),r));if(e&&"function"==typeof e.toJSON){if(!r||!hasAnchor(e))return e.toJSON(t,r);let n={aliasCount:0,count:1,res:void 0};r.anchors.set(e,n),r.onCreate=e=>{n.res=e,delete r.onCreate};let i=e.toJSON(t,r);return r.onCreate&&r.onCreate(i),i}return"bigint"!=typeof e||r?.keep?e:Number(e)}Directives.defaultYaml={explicit:!1,version:"1.2"},Directives.defaultTags={"!!":"tag:yaml.org,2002:"};let NodeBase=class NodeBase{constructor(e){Object.defineProperty(this,h,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:n,reviver:i}={}){if(!isDocument(e))throw TypeError("A document argument is required");let s={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},o=toJS(this,"",s);if("function"==typeof n)for(let{count:e,res:t}of s.anchors.values())n(t,e);return"function"==typeof i?applyReviver(i,{"":o},"",o):o}};let Alias=class Alias extends NodeBase{constructor(e){super(o),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e){let t;return visit(e,{Node:(e,r)=>{if(r===this)return visit.BREAK;r.anchor===this.source&&(t=r)}}),t}toJSON(e,t){if(!t)return{source:this.source};let{anchors:r,doc:n,maxAliasCount:i}=t,s=this.resolve(n);if(!s){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=r.get(s);if(o||(toJS(s,null,t),o=r.get(s)),!o||void 0===o.res)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=function getAliasCount(e,t,r){if(isAlias(t)){let n=t.resolve(e),i=r&&n&&r.get(n);return i?i.count*i.aliasCount:0}if(isCollection(t)){let n=0;for(let i of t.items){let t=getAliasCount(e,i,r);t>n&&(n=t)}return n}if(isPair(t)){let n=getAliasCount(e,t.key,r),i=getAliasCount(e,t.value,r);return Math.max(n,i)}return 1}(n,s,r)),o.count*o.aliasCount>i))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return o.res}toString(e,t,r){let n=`*${this.source}`;if(e){if(anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${n} `}return n}};let isScalarValue=e=>!e||"function"!=typeof e&&"object"!=typeof e;let Scalar=class Scalar extends NodeBase{constructor(e){super(u),this.value=e}toJSON(e,t){return t?.keep?this.value:toJS(this.value,e,t)}toString(){return String(this.value)}};function createNode(e,t,r){let n;if(isDocument(e)&&(e=e.contents),isNode(e))return e;if(isPair(e)){let t=r.schema[l].createNode?.(r.schema,null,r);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:s,onTagObj:o,schema:a,sourceObjects:c}=r;if(i&&e&&"object"==typeof e){if(n=c.get(e))return n.anchor||(n.anchor=s(e)),new Alias(n.anchor);n={anchor:null,node:null},c.set(e,n)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let u=function(e,t,r){if(t){let e=r.filter(e=>e.tag===t),n=e.find(e=>!e.format)??e[0];if(!n)throw Error(`Tag ${t} not found`);return n}return r.find(t=>t.identify?.(e)&&!t.format)}(e,t,a.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new Scalar(e);return n&&(n.node=t),t}u=e instanceof Map?a[l]:Symbol.iterator in Object(e)?a[f]:a[l]}o&&(o(u),delete r.onTagObj);let h=u?.createNode?u.createNode(r.schema,e,r):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(r.schema,e,r):new Scalar(e);return t?h.tag=t:u.default||(h.tag=u.tag),n&&(n.node=h),h}function collectionFromPath(e,t,r){let n=r;for(let e=t.length-1;e>=0;--e){let r=t[e];if("number"==typeof r&&Number.isInteger(r)&&r>=0){let e=[];e[r]=n,n=e}else n=new Map([[r,n]])}return createNode(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}Scalar.BLOCK_FOLDED="BLOCK_FOLDED",Scalar.BLOCK_LITERAL="BLOCK_LITERAL",Scalar.PLAIN="PLAIN",Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE",Scalar.QUOTE_SINGLE="QUOTE_SINGLE";let isEmptyPath=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;let Collection=class Collection extends NodeBase{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>isNode(t)||isPair(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{let[r,...n]=e,i=this.get(r,!0);if(isCollection(i))i.addIn(n,t);else if(void 0===i&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){let[t,...r]=e;if(0===r.length)return this.delete(t);let n=this.get(t,!0);if(isCollection(n))return n.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...n]=e,i=this.get(r,!0);return 0===n.length?!t&&isScalar(i)?i.value:i:isCollection(i)?i.getIn(n,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!isPair(t))return!1;let r=t.value;return null==r||e&&isScalar(r)&&null==r.value&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(0===r.length)return this.has(t);let n=this.get(t,!0);return!!isCollection(n)&&n.hasIn(r)}setIn(e,t){let[r,...n]=e;if(0===n.length)this.set(r,t);else{let e=this.get(r,!0);if(isCollection(e))e.setIn(n,t);else if(void 0===e&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}};Collection.maxFlowStringSingleLineLength=60;let stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r,g="flow",b="block",v="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:n,lineWidth:i=80,minContentWidth:s=20,onFold:o,onOverflow:a}={}){let l,c,u;if(!i||i<0)return e;let f=Math.max(1+s,1+i-t.length);if(e.length<=f)return e;let h=[],p={},d=i-t.length;"number"==typeof n&&(n>i-Math.max(2,s)?h.push(0):d=i-n);let m=!1,y=-1,g=-1,k=-1;for(r===b&&-1!==(y=consumeMoreIndentedLines(e,y))&&(d=y+f);u=e[y+=1];){if(r===v&&"\\"===u){switch(g=y,e[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}k=y}if("\n"===u)r===b&&(y=consumeMoreIndentedLines(e,y)),d=y+f,l=void 0;else{if(" "===u&&c&&" "!==c&&"\n"!==c&&" "!==c){let t=e[y+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(l=y)}if(y>=d){if(l)h.push(l),d=l+f,l=void 0;else if(r===v){for(;" "===c||" "===c;)c=u,u=e[y+=1],m=!0;let t=y>k+1?y-2:g-1;if(p[t])return e;h.push(t),p[t]=!0,d=t+f,l=void 0}else m=!0}}c=u}if(m&&a&&a(),0===h.length)return e;o&&o();let w=e.slice(0,h[0]);for(let n=0;n({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function doubleQuotedString(e,t){let r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;let{implicitKey:n}=t,i=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(containsDocumentMarker(e)?" ":""),o="",a=0;for(let e=0,t=r[e];t;t=r[++e])if(" "===t&&"\\"===r[e+1]&&"n"===r[e+2]&&(o+=r.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(r[e+1]){case"u":{o+=r.slice(a,e);let t=r.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===t.substr(0,2)?o+="\\x"+t.substr(2):o+=r.substr(e,6)}e+=5,a=e+1}break;case"n":if(n||'"'===r[e+2]||r.lengthn)return!0;if(i-(r=t+1)<=n)return!1}return!0}(r,h,p.length));if(!r)return d?"|\n":">\n";for(l=r.length;l>0;--l){let e=r[l-1];if("\n"!==e&&" "!==e&&" "!==e)break}let m=r.substring(l),y=m.indexOf("\n");-1===y?a="-":r===m||y!==m.length-1?(a="+",o&&o()):a="",m&&(r=r.slice(0,-m.length),"\n"===m[m.length-1]&&(m=m.slice(0,-1)),m=m.replace(n,`$&${p}`));let g=!1,v=-1;for(c=0;c")+(g?w:"")+a;if(e&&(S+=" "+f(e.replace(/ ?[\r\n]+/g," ")),s&&s()),d)return r=r.replace(/\n+/g,`$&${p}`),`${S} +${p}${k}${r}${m}`;r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`);let E=foldFlowLines(`${k}${r}${m}`,p,b,getFoldOptions(i,!0));return`${S} +${p}${E}`}function stringifyString(e,t,r,n){let{implicitKey:i,inFlow:s}=t,o="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)}),{type:a}=e;a!==Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=Scalar.QUOTE_DOUBLE);let _stringify=e=>{switch(e){case Scalar.BLOCK_FOLDED:case Scalar.BLOCK_LITERAL:return i||s?quotedString(o.value,t):blockString(o,t,r,n);case Scalar.QUOTE_DOUBLE:return doubleQuotedString(o.value,t);case Scalar.QUOTE_SINGLE:return singleQuotedString(o.value,t);case Scalar.PLAIN:return function(e,t,r,n){let{type:i,value:s}=e,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:u}=t;if(a&&/[\n[\]{},]/.test(s)||u&&/[[\]{},]/.test(s))return quotedString(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return a||u||!s.includes("\n")?quotedString(s,t):blockString(e,t,r,n);if(!a&&!u&&i!==Scalar.PLAIN&&s.includes("\n"))return blockString(e,t,r,n);if(containsDocumentMarker(s)){if(""===l)return t.forceBlockIndent=!0,blockString(e,t,r,n);if(a&&l===c)return quotedString(s,t)}let f=s.replace(/\n+/g,`$& +${l}`);if(o){let test=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(f),{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(s,t)}return a?f:foldFlowLines(f,l,g,getFoldOptions(t,!1))}(o,t,r,n);default:return null}},l=_stringify(a);if(null===l){let{defaultKeyType:e,defaultStringType:r}=t.options,n=i&&e||r;if(null===(l=_stringify(n)))throw Error(`Unsupported default string type ${n}`)}return l}function createStringifyContext(e,t){let r;let n=Object.assign({blockQuote:!0,commentString:stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:r,options:n}}function stringify(e,t,r,n){let i;if(isPair(e))return e.toString(t,r,n);if(isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let s=isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i||(i=function(e,t){let r,n;if(t.tag){let r=e.filter(e=>e.tag===t.tag);if(r.length>0)return r.find(e=>e.format===t.format)??r[0]}if(isScalar(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??typeof r;throw Error(`Tag not resolved for ${e} value`)}return n}(t.doc.schema.tags,s));let o=function(e,t,{anchors:r,doc:n}){if(!n.directives)return"";let i=[],s=(isScalar(e)||isCollection(e))&&e.anchor;s&&anchorIsValid(s)&&(r.add(s),i.push(`&${s}`));let o=e.tag?e.tag:t.default?null:t.tag;return o&&i.push(n.directives.tagString(o)),i.join(" ")}(s,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let a="function"==typeof i.stringify?i.stringify(s,t,r,n):isScalar(s)?stringifyString(s,t,r,n):s.toString(t,r,n);return o?isScalar(s)||"{"===a[0]||"["===a[0]?`${o} ${a}`:`${o} +${t.indent}${a}`:a}var k=r(3454);function warn(e,t){("debug"===e||"warn"===e)&&(void 0!==k&&k.emitWarning?k.emitWarning(t):console.warn(t))}function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){if(isSeq(n=isAlias(n)?n.resolve(e.doc):n))for(let r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(let r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{let i=toJS(r,"",e);if(t instanceof Map)t.set(i,toJS(n,i,e));else if(t instanceof Set)t.add(i);else{let s=function(e,t,r){if(null===t)return"";if("object"!=typeof t)return String(t);if(isNode(e)&&r&&r.doc){let t=createStringifyContext(r.doc,{});for(let e of(t.anchors=new Set,r.anchors.keys()))t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let n=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(n);e.length>40&&(e=e.substring(0,36)+'..."'),warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return n}return JSON.stringify(t)}(r,i,e),o=toJS(n,s,e);s in t?Object.defineProperty(t,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[s]=o}}return t}let isMergeKey=e=>"<<"===e||isScalar(e)&&"<<"===e.value&&(!e.type||e.type===Scalar.PLAIN);function mergeToJSMap(e,t,r){let n=e&&isAlias(r)?r.resolve(e.doc):r;if(!isMap(n))throw Error("Merge sources must be maps or map aliases");let i=n.toJSON(null,e,Map);for(let[e,r]of i)t instanceof Map?t.has(e)||t.set(e,r):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0});return t}function createPair(e,t,r){let n=createNode(e,void 0,r),i=createNode(t,void 0,r);return new Pair(n,i)}let Pair=class Pair{constructor(e,t=null){Object.defineProperty(this,h,{value:c}),this.key=e,this.value=t}clone(e){let{key:t,value:r}=this;return isNode(t)&&(t=t.clone(e)),isNode(r)&&(r=r.clone(e)),new Pair(t,r)}toJSON(e,t){let r=t?.mapAsMap?new Map:{};return addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?function({key:e,value:t},r,n,i){let s,o,a;let{allNullValues:l,doc:c,indent:u,indentStep:f,options:{commentString:h,indentSeq:p,simpleKeys:d}}=r,m=isNode(e)&&e.comment||null;if(d){if(m)throw Error("With simple keys, key nodes cannot have comments");if(isCollection(e))throw Error("With simple keys, collection cannot be used as a key value")}let y=!d&&(!e||m&&null==t&&!r.inFlow||isCollection(e)||(isScalar(e)?e.type===Scalar.BLOCK_FOLDED||e.type===Scalar.BLOCK_LITERAL:"object"==typeof e));r=Object.assign({},r,{allNullValues:!1,implicitKey:!y&&(d||!l),indent:u+f});let g=!1,b=!1,v=stringify(e,r,()=>g=!0,()=>b=!0);if(!y&&!r.inFlow&&v.length>1024){if(d)throw Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(r.inFlow){if(l||null==t)return g&&n&&n(),""===v?"?":y?`? ${v}`:v}else if(l&&!d||null==t&&y)return v=`? ${v}`,m&&!g?v+=lineComment(v,r.indent,h(m)):b&&i&&i(),v;g&&(m=null),y?(m&&(v+=lineComment(v,r.indent,h(m))),v=`? ${v} +${u}:`):(v=`${v}:`,m&&(v+=lineComment(v,r.indent,h(m)))),isNode(t)?(s=!!t.spaceBefore,o=t.commentBefore,a=t.comment):(s=!1,o=null,a=null,t&&"object"==typeof t&&(t=c.createNode(t))),r.implicitKey=!1,!y&&!m&&isScalar(t)&&(r.indentAtStart=v.length+1),b=!1,!(!p&&f.length>=2&&!r.inFlow&&!y&&isSeq(t))||t.flow||t.tag||t.anchor||(r.indent=r.indent.substring(2));let k=!1,w=stringify(t,r,()=>k=!0,()=>b=!0),S=" ";if(m||s||o){if(S=s?"\n":"",o){let e=h(o);S+=` +${indentComment(e,r.indent)}`}""!==w||r.inFlow?S+=` +${r.indent}`:"\n"===S&&(S="\n\n")}else if(!y&&isCollection(t)){let e=w[0],n=w.indexOf("\n"),i=-1!==n,s=r.inFlow??t.flow??0===t.items.length;if(i||!s){let t=!1;if(i&&("&"===e||"!"===e)){let r=w.indexOf(" ");"&"===e&&-1!==r&&rs=null);ep||o.includes("\n"))&&(h=!0),d.push(o),p=d.length}let{start:m,end:y}=n;if(0===d.length)o=m+y;else{if(!h){let e=d.reduce((e,t)=>e+t.length+2,2);h=e>Collection.maxFlowStringSingleLineLength}if(h){for(let e of(o=m,d))o+=e?` +${l}${a}${e}`:"\n";o+=` +${a}${y}`}else o=`${m}${c}${d.join(" ")}${c}${y}`}return e&&(o+=lineComment(o,a,u(e)),s&&s()),o}:function({comment:e,items:t},r,{blockItemPrefix:n,flowChars:i,itemIndent:s,onChompKeep:o,onComment:a}){let l;let{indent:c,options:{commentString:u}}=r,f=Object.assign({},r,{indent:s,type:null}),h=!1,p=[];for(let e=0;eo=null,()=>h=!0);o&&(a+=lineComment(a,s,u(o))),h&&o&&(h=!1),p.push(n+a)}if(0===p.length)l=i.start+i.end;else{l=p[0];for(let e=1;e{if("function"==typeof i)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==o||n)&&s.items.push(createPair(e,o,r))};if(t instanceof Map)for(let[e,r]of t)add(e,r);else if(t&&"object"==typeof t)for(let e of Object.keys(t))add(e,t[e]);return"function"==typeof e.sortMapEntries&&s.items.sort(e.sortMapEntries),s}add(e,t){let r;r=isPair(e)?e:e&&"object"==typeof e&&"key"in e?new Pair(e.key,e.value):new Pair(e,e?.value);let n=findPair(this.items,r.key),i=this.schema?.sortMapEntries;if(n){if(!t)throw Error(`Key ${r.key} already set`);isScalar(n.value)&&isScalarValue(r.value)?n.value.value=r.value:n.value=r.value}else if(i){let e=this.items.findIndex(e=>0>i(r,e));-1===e?this.items.push(r):this.items.splice(e,0,r)}else this.items.push(r)}delete(e){let t=findPair(this.items,e);if(!t)return!1;let r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){let r=findPair(this.items,e),n=r?.value;return(!t&&isScalar(n)?n.value:n)??void 0}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new Pair(e,t),!0)}toJSON(e,t,r){let n=r?new r:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(n),this.items))addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(let e of this.items)if(!isPair(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}};let w={collection:"map",default:!0,nodeClass:YAMLMap,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(isMap(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,r)=>YAMLMap.from(e,t,r)};let YAMLSeq=class YAMLSeq extends Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(f,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=asItemIndex(e);if("number"!=typeof t)return!1;let r=this.items.splice(t,1);return r.length>0}get(e,t){let r=asItemIndex(e);if("number"!=typeof r)return;let n=this.items[r];return!t&&isScalar(n)?n.value:n}has(e){let t=asItemIndex(e);return"number"==typeof t&&t=0?t:null}let S={collection:"seq",default:!0,nodeClass:YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(isSeq(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,r)=>YAMLSeq.from(e,t,r)},E={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,r,n)=>stringifyString(e,t=Object.assign({actualString:!0},t),r,n)},A={identify:e=>null==e,createNode:()=>new Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Scalar(null),stringify:({source:e},t)=>"string"==typeof e&&A.test.test(e)?e:t.options.nullStr},N={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Scalar("t"===e[0]||"T"===e[0]),stringify({source:e,value:t},r){if(e&&N.test.test(e)){let r="t"===e[0]||"T"===e[0];if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if("bigint"==typeof n)return String(n);let i="number"==typeof n?n:Number(n);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(n);if(!e&&t&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(s)){let e=s.indexOf(".");e<0&&(e=s.length,s+=".");let r=t-(s.length-e-1);for(;r-- >0;)s+="0"}return s}let B={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:stringifyNumber},I={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():stringifyNumber(e)}},L={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new Scalar(parseFloat(e)),r=e.indexOf(".");return -1!==r&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-r-1),t},stringify:stringifyNumber},intIdentify=e=>"bigint"==typeof e||Number.isInteger(e),intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){let{value:n}=e;return intIdentify(n)&&n>=0?r+n.toString(t):stringifyNumber(e)}let O={identify:e=>intIdentify(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")},T={identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:stringifyNumber},C={identify:e=>intIdentify(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")},_=[w,S,E,A,N,O,T,C,B,I,L];function schema_intIdentify(e){return"bigint"==typeof e||Number.isInteger(e)}let stringifyJSON=({value:e})=>JSON.stringify(e),x=[{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>null==e,createNode:()=>new Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:stringifyJSON},{identify:schema_intIdentify,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>schema_intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}],M=[w,S].concat(x,{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)});var P=r(1876).Buffer;let $={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof P)return P.from(e,"base64");if("function"!=typeof atob)return t("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let t=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(t.length);for(let e=0;e1&&t("Each pair must have its own sequence indicator");let e=n.items[0]||new Pair(new Scalar(null));if(n.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${n.commentBefore} +${e.key.commentBefore}`:n.commentBefore),n.comment){let t=e.value??e.key;t.comment=t.comment?`${n.comment} +${t.comment}`:n.comment}n=e}e.items[r]=isPair(n)?n:new Pair(n)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){let{replacer:n}=r,i=new YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let o,a;if("function"==typeof n&&(e=n.call(t,String(s++),e)),Array.isArray(e)){if(2===e.length)o=e[0],a=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)a=e[o=t[0]];else throw TypeError(`Expected { key: value } tuple: ${e}`)}else o=e;i.items.push(createPair(o,a,r))}return i}let D={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};let YAMLOMap=class YAMLOMap extends YAMLSeq{constructor(){super(),this.add=YAMLMap.prototype.add.bind(this),this.delete=YAMLMap.prototype.delete.bind(this),this.get=YAMLMap.prototype.get.bind(this),this.has=YAMLMap.prototype.has.bind(this),this.set=YAMLMap.prototype.set.bind(this),this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);let r=new Map;for(let e of(t?.onCreate&&t.onCreate(r),this.items)){let n,i;if(isPair(e)?(n=toJS(e.key,"",t),i=toJS(e.value,n,t)):n=toJS(e,"",t),r.has(n))throw Error("Ordered maps must not include duplicate keys");r.set(n,i)}return r}static from(e,t,r){let n=createPairs(e,t,r),i=new this;return i.items=n.items,i}};YAMLOMap.tag="tag:yaml.org,2002:omap";let q={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let r=resolvePairs(e,t),n=[];for(let{key:e}of r.items)isScalar(e)&&(n.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):n.push(e.value));return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};function boolStringify({value:e,source:t},r){return t&&(e?U:j).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}let U={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Scalar(!0),stringify:boolStringify},j={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Scalar(!1),stringify:boolStringify},int_intIdentify=e=>"bigint"==typeof e||Number.isInteger(e);function int_intResolve(e,t,r,{intAsBigInt:n}){let i=e[0];if(("-"===i||"+"===i)&&(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===i?BigInt(-1)*t:t}let s=parseInt(e,r);return"-"===i?-1*s:s}function int_intStringify(e,t,r){let{value:n}=e;if(int_intIdentify(n)){let e=n.toString(t);return n<0?"-"+r+e.substr(1):r+e}return stringifyNumber(e)}let YAMLSet=class YAMLSet extends YAMLMap{constructor(e){super(e),this.tag=YAMLSet.tag}add(e){let t;t=isPair(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new Pair(e.key,null):new Pair(e,null);let r=findPair(this.items,t.key);r||this.items.push(t)}get(e,t){let r=findPair(this.items,e);return!t&&isPair(r)?isScalar(r.key)?r.key.value:r.key:r}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let r=findPair(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,r);throw Error("Set items must all have null values")}static from(e,t,r){let{replacer:n}=r,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof n&&(e=n.call(t,e,e)),i.items.push(createPair(e,null,r));return i}};YAMLSet.tag="tag:yaml.org,2002:set";let R={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new YAMLSet,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function parseSexagesimal(e,t){let r=e[0],n="-"===r||"+"===r?e.substring(1):e,num=e=>t?BigInt(e):Number(e),i=n.replace(/_/g,"").split(":").reduce((e,t)=>e*num(60)+num(t),num(0));return"-"===r?num(-1)*i:i}function stringifySexagesimal(e){let{value:t}=e,num=e=>e;if("bigint"==typeof t)num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return stringifyNumber(e);let r="";t<0&&(r="-",t*=num(-1));let n=num(60),i=[t%n];return t<60?i.unshift(0):(t=(t-i[0])/n,i.unshift(t%n),t>=60&&(t=(t-i[0])/n,i.unshift(t))),r+i.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let F={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal},K={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,!1),stringify:stringifySexagesimal},Y={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(Y.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,r,n,i,s,o,a]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0,c=Date.UTC(r,n-1,i,s||0,o||0,a||0,l),u=t[8];if(u&&"Z"!==u){let e=parseSexagesimal(u,!1);30>Math.abs(e)&&(e*=60),c-=6e4*e}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},V=[w,S,E,A,U,j,{identify:int_intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>int_intResolve(e,2,2,r),stringify:e=>int_intStringify(e,2,"0b")},{identify:int_intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>int_intResolve(e,1,8,r),stringify:e=>int_intStringify(e,8,"0")},{identify:int_intIdentify,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>int_intResolve(e,0,10,r),stringify:stringifyNumber},{identify:int_intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>int_intResolve(e,2,16,r),stringify:e=>int_intStringify(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():stringifyNumber(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new Scalar(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(-1!==r){let n=e.substring(r+1).replace(/_/g,"");"0"===n[n.length-1]&&(t.minFractionDigits=n.length)}return t},stringify:stringifyNumber},$,q,D,R,F,K,Y],J=new Map([["core",_],["failsafe",[w,S,E]],["json",M],["yaml11",V],["yaml-1.1",V]]),W={binary:$,bool:N,float:L,floatExp:I,floatNaN:B,floatTime:K,int:T,intHex:C,intOct:O,intTime:F,map:w,null:A,omap:q,pairs:D,seq:S,set:R,timestamp:Y},Q={"tag:yaml.org,2002:binary":$,"tag:yaml.org,2002:omap":q,"tag:yaml.org,2002:pairs":D,"tag:yaml.org,2002:set":R,"tag:yaml.org,2002:timestamp":Y};function getTags(e,t){let r=J.get(t);if(!r){if(Array.isArray(e))r=[];else{let e=Array.from(J.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)r=r.concat(t);else"function"==typeof e&&(r=e(r.slice()));return r.map(e=>{if("string"!=typeof e)return e;let t=W[e];if(t)return t;let r=Object.keys(W).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag "${e}"; use one of ${r}`)})}let sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;let Schema=class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:n,schema:i,sortMapEntries:s,toStringDefaults:o}){this.compat=Array.isArray(e)?getTags(e,"compat"):e?getTags(null,e):null,this.merge=!!r,this.name="string"==typeof i&&i||"core",this.knownTags=n?Q:{},this.tags=getTags(t,this.name),this.toStringOptions=o??null,Object.defineProperty(this,l,{value:w}),Object.defineProperty(this,u,{value:E}),Object.defineProperty(this,f,{value:S}),this.sortMapEntries="function"==typeof s?s:!0===s?sortMapEntriesByKey:null}clone(){let e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};let Document=class Document{constructor(e,t,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,h,{value:a});let n=null;"function"==typeof t||Array.isArray(t)?n=t:void 0===r&&t&&(r=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=i;let{version:s}=i;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new Directives({version:s}),this.setSchema(s,r),this.contents=void 0===e?null:this.createNode(e,n,r)}clone(){let e=Object.create(Document.prototype,{[h]:{value:a}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){assertCollection(this.contents)&&this.contents.add(e)}addIn(e,t){assertCollection(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let r=anchorNames(this);e.anchor=!t||r.has(t)?findNewAnchor(t||"a",r):t}return new Alias(e.anchor)}createNode(e,t,r){let n;if("function"==typeof t)e=t.call({"":e},"",e),n=t;else if(Array.isArray(t)){let e=t.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),n=t}else void 0===r&&t&&(r=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:s,flow:o,keepUndefined:a,onTagObj:l,tag:c}=r??{},{onAnchor:u,setAnchors:f,sourceObjects:h}=function(e,t){let r=[],n=new Map,i=null;return{onAnchor:n=>{r.push(n),i||(i=anchorNames(e));let s=findNewAnchor(t,i);return i.add(s),s},setAnchors:()=>{for(let e of r){let t=n.get(e);if("object"==typeof t&&t.anchor&&(isScalar(t.node)||isCollection(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:n}}(this,s||"a"),p={aliasDuplicateObjects:i??!0,keepUndefined:a??!1,onAnchor:u,onTagObj:l,replacer:n,schema:this.schema,sourceObjects:h},d=createNode(e,c,p);return o&&isCollection(d)&&(d.flow=!0),f(),d}createPair(e,t,r={}){let n=this.createNode(e,null,r),i=this.createNode(t,null,r);return new Pair(n,i)}delete(e){return!!assertCollection(this.contents)&&this.contents.delete(e)}deleteIn(e){return isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):!!assertCollection(this.contents)&&this.contents.deleteIn(e)}get(e,t){return isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return isEmptyPath(e)?!t&&isScalar(this.contents)?this.contents.value:this.contents:isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!isCollection(this.contents)&&this.contents.has(e)}hasIn(e){return isEmptyPath(e)?void 0!==this.contents:!!isCollection(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=collectionFromPath(this.schema,[e],t):assertCollection(this.contents)&&this.contents.set(e,t)}setIn(e,t){isEmptyPath(e)?this.contents=t:null==this.contents?this.contents=collectionFromPath(this.schema,Array.from(e),t):assertCollection(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let r;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Directives({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Directives({version:e}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new Schema(Object.assign(r,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:i,reviver:s}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===r,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},a=toJS(this.contents,t??"",o);if("function"==typeof i)for(let{count:e,res:t}of o.anchors.values())i(t,e);return"function"==typeof s?applyReviver(s,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){let r=[],n=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(r.push(t),n=!0):e.directives.docStart&&(n=!0)}n&&r.push("---");let i=createStringifyContext(e,t),{commentString:s}=i.options;if(e.commentBefore){1!==r.length&&r.unshift("");let t=s(e.commentBefore);r.unshift(indentComment(t,""))}let o=!1,a=null;if(e.contents){if(isNode(e.contents)){if(e.contents.spaceBefore&&n&&r.push(""),e.contents.commentBefore){let t=s(e.contents.commentBefore);r.push(indentComment(t,""))}i.forceBlockIndent=!!e.comment,a=e.contents.comment}let t=a?void 0:()=>o=!0,l=stringify(e.contents,i,()=>a=null,t);a&&(l+=lineComment(l,"",s(a))),("|"===l[0]||">"===l[0])&&"---"===r[r.length-1]?r[r.length-1]=`--- ${l}`:r.push(l)}else r.push(stringify(e.contents,i));if(e.directives?.docEnd){if(e.comment){let t=s(e.comment);t.includes("\n")?(r.push("..."),r.push(indentComment(t,""))):r.push(`... ${t}`)}else r.push("...")}else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,"")),t&&((!o||a)&&""!==r[r.length-1]&&r.push(""),r.push(indentComment(s(t),"")))}return r.join("\n")+"\n"}(this,e)}};function assertCollection(e){if(isCollection(e))return!0;throw Error("Expected a YAML collection as document contents")}let YAMLError=class YAMLError extends Error{constructor(e,t,r,n){super(),this.name=e,this.code=r,this.message=n,this.pos=t}};let YAMLParseError=class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}};let YAMLWarning=class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}};let prettifyError=(e,t)=>r=>{if(-1===r.pos[0])return;r.linePos=r.pos.map(e=>t.linePos(e));let{line:n,col:i}=r.linePos[0];r.message+=` at line ${n}, column ${i}`;let s=i-1,o=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){let e=Math.min(s-39,o.length-79);o="…"+o.substring(e),s-=e-1}if(o.length>80&&(o=o.substring(0,79)+"…"),n>1&&/^ *$/.test(o.substring(0,s))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);r.length>80&&(r=r.substring(0,79)+"…\n"),o=r+o}if(/[^ ]/.test(o)){let e=1,t=r.linePos[1];t&&t.line===n&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-s)));let a=" ".repeat(s)+"^".repeat(e);r.message+=`: + +${o} +${a} +`}};function resolveProps(e,{flow:t,indicator:r,next:n,offset:i,onError:s,startOnNewline:o}){let a=!1,l=o,c=o,u="",f="",h=!1,p=!1,d=!1,m=null,y=null,g=null,b=null,v=null;for(let n of e)switch(d&&("space"!==n.type&&"newline"!==n.type&&"comma"!==n.type&&s(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d=!1),n.type){case"space":!t&&l&&"doc-start"!==r&&" "===n.source[0]&&s(n,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||s(n,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=n.source.substring(1)||" ";u?u+=f+e:u=e,f="",l=!1;break}case"newline":l?u?u+=n.source:a=!0:f+=n.source,l=!0,h=!0,(m||y)&&(p=!0),c=!0;break;case"anchor":m&&s(n,"MULTIPLE_ANCHORS","A node can have at most one anchor"),n.source.endsWith(":")&&s(n.offset+n.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=n,null===v&&(v=n.offset),l=!1,c=!1,d=!0;break;case"tag":y&&s(n,"MULTIPLE_TAGS","A node can have at most one tag"),y=n,null===v&&(v=n.offset),l=!1,c=!1,d=!0;break;case r:(m||y)&&s(n,"BAD_PROP_ORDER",`Anchors and tags must be after the ${n.source} indicator`),b&&s(n,"UNEXPECTED_TOKEN",`Unexpected ${n.source} in ${t??"collection"}`),b=n,l=!1,c=!1;break;case"comma":if(t){g&&s(n,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),g=n,l=!1,c=!1;break}default:s(n,"UNEXPECTED_TOKEN",`Unexpected ${n.type} token`),l=!1,c=!1}let k=e[e.length-1],w=k?k.offset+k.source.length:i;return d&&n&&"space"!==n.type&&"newline"!==n.type&&"comma"!==n.type&&("scalar"!==n.type||""!==n.source)&&s(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:g,found:b,spaceBefore:a,comment:u,hasNewline:h,hasNewlineAfterProp:p,anchor:m,tag:y,end:w,start:v??w}}function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end){for(let t of e.end)if("newline"===t.type)return!0}return!1;case"flow-collection":for(let t of e.items){for(let e of t.start)if("newline"===e.type)return!0;if(t.sep){for(let e of t.sep)if("newline"===e.type)return!0}if(containsNewline(t.key)||containsNewline(t.value))return!0}return!1;default:return!0}}function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){let n=t.end[0];n.indent===e&&("]"===n.source||"}"===n.source)&&containsNewline(t)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function mapIncludes(e,t,r){let{uniqueKeys:n}=e.options;if(!1===n)return!1;let i="function"==typeof n?n:(t,r)=>t===r||isScalar(t)&&isScalar(r)&&t.value===r.value&&!("<<"===t.value&&e.schema.merge);return t.some(e=>i(e.key,r))}let G="All mapping items must start at the same column";function resolveEnd(e,t,r,n){let i="";if(e){let s=!1,o="";for(let a of e){let{source:e,type:l}=a;switch(l){case"space":s=!0;break;case"comment":{r&&!s&&n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let t=e.substring(1)||" ";i?i+=o+t:i=t,o="";break}case"newline":i&&(o+=e),s=!0;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=e.length}}return{comment:i,offset:t}}let H="Block collections are not allowed within flow collections",isBlock=e=>e&&("block-map"===e.type||"block-seq"===e.type);function resolveCollection(e,t,r,n,i,s){let o="block-map"===r.type?function({composeNode:e,composeEmptyNode:t},r,n,i,s){let o=s?.nodeClass??YAMLMap,a=new o(r.schema);r.atRoot&&(r.atRoot=!1);let l=n.offset,c=null;for(let s of n.items){let{start:o,key:u,sep:f,value:h}=s,p=resolveProps(o,{indicator:"explicit-key-ind",next:u??f?.[0],offset:l,onError:i,startOnNewline:!0}),d=!p.found;if(d){if(u&&("block-seq"===u.type?i(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in u&&u.indent!==n.indent&&i(l,"BAD_INDENT",G)),!p.anchor&&!p.tag&&!f){c=p.end,p.comment&&(a.comment?a.comment+="\n"+p.comment:a.comment=p.comment);continue}(p.hasNewlineAfterProp||containsNewline(u))&&i(u??o[o.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else p.found?.indent!==n.indent&&i(l,"BAD_INDENT",G);let m=p.end,y=u?e(r,u,p,i):t(r,m,o,null,p,i);r.schema.compat&&flowIndentCheck(n.indent,u,i),mapIncludes(r,a.items,y)&&i(m,"DUPLICATE_KEY","Map keys must be unique");let g=resolveProps(f??[],{indicator:"map-value-ind",next:h,offset:y.range[2],onError:i,startOnNewline:!u||"block-scalar"===u.type});if(l=g.end,g.found){d&&(h?.type!=="block-map"||g.hasNewline||i(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&p.start0){let e=resolveEnd(d,m,r.options.strict,i);e.comment&&(c.comment?c.comment+="\n"+e.comment:c.comment=e.comment),c.range=[n.offset,m,e.offset]}else c.range=[n.offset,m,m];return c}(e,t,r,n,s),a=o.constructor;return"!"===i||i===a.tagName?o.tag=a.tagName:i&&(o.tag=i),o}function resolveBlockScalar(e,t,r){let n=e.offset,i=function({offset:e,props:t},r,n){if("block-scalar-header"!==t[0].type)return n(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=t[0],s=i[0],o=0,a="",l=-1;for(let t=1;t=0;--e){let t=o[e][1];if(""===t||"\r"===t)a=e;else break}if(0===a){let t="+"===i.chomp&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"",r=n+i.length;return e.source&&(r+=e.source.length),{value:t,type:s,comment:i.comment,range:[n,r,r]}}let l=e.indent+i.indent,c=e.offset+i.length,u=0;for(let e=0;el&&(l=t.length);else{t.length=a;--e)o[e][0].length>l&&(a=e+1);let f="",h="",p=!1;for(let e=0;el||" "===n[0]?(" "===h?h="\n":p||"\n"!==h||(h="\n\n"),f+=h+t.slice(l)+n,h="\n",p=!0):""===n?"\n"===h?f+="\n":h="\n":(f+=h+n,h=" ",p=!1)}switch(i.chomp){case"-":break;case"+":for(let e=a;er(s+e,t,n);switch(o){case"scalar":n=Scalar.PLAIN,i=function(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":r=`block scalar indicator ${e[0]}`;break;case"@":case"`":r=`reserved character ${e[0]}`}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),foldLines(e)}(a,_onError);break;case"single-quoted-scalar":n=Scalar.QUOTE_SINGLE,("'"!==a[a.length-1]||1===a.length)&&_onError(a.length,"MISSING_CHAR","Missing closing 'quote"),i=foldLines(a.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":n=Scalar.QUOTE_DOUBLE,i=function(e,t){let r="";for(let n=1;nt?e.slice(t,n+1):i)}else r+=i}}return('"'!==e[e.length-1]||1===e.length)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}(a,_onError);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[s,s+a.length,s+a.length]}}let c=s+a.length,u=resolveEnd(l,c,t,r);return{value:i,type:n,comment:u.comment,range:[s,c,u.offset]}}function foldLines(e){let t,r;try{t=RegExp("(.*?)(?n(r,"TAG_RESOLVE_FAILED",e)):null,f=r&&c?function(e,t,r,n,i){if("!"===r)return e[u];let s=[];for(let t of e.tags)if(!t.collection&&t.tag===r){if(!t.default||!t.test)return t;s.push(t)}for(let e of s)if(e.test?.test(t))return e;let o=e.knownTags[r];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,"tag:yaml.org,2002:str"!==r),e[u])}(e.schema,s,c,r,n):"scalar"===t.type?function({directives:e,schema:t},r,n,i){let s=t.tags.find(e=>e.default&&e.test?.test(r))||t[u];if(t.compat){let o=t.compat.find(e=>e.default&&e.test?.test(r))??t[u];if(s.tag!==o.tag){let t=e.tagString(s.tag),r=e.tagString(o.tag),a=`Value may be parsed as either ${t} or ${r}`;i(n,"TAG_RESOLVE_FAILED",a,!0)}}return s}(e,s,t,n):e.schema[u];try{let o=f.resolve(s,e=>n(r??t,"TAG_RESOLVE_FAILED",e),e.options);i=isScalar(o)?o:new Scalar(o)}catch(o){let e=o instanceof Error?o.message:String(o);n(r??t,"TAG_RESOLVE_FAILED",e),i=new Scalar(s)}return i.range=l,i.source=s,o&&(i.type=o),c&&(i.tag=c),f.format&&(i.format=f.format),a&&(i.comment=a),i}let X={composeNode,composeEmptyNode};function composeNode(e,t,r,n){let i;let{spaceBefore:s,comment:o,anchor:a,tag:l}=r,c=!0;switch(t.type){case"alias":i=function({options:e},{offset:t,source:r,end:n},i){let s=new Alias(r.substring(1));""===s.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=t+r.length,a=resolveEnd(n,o,e.strict,i);return s.range=[t,o,a.offset],a.comment&&(s.comment=a.comment),s}(e,t,n),(a||l)&&n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":i=composeScalar(e,t,l,n),a&&(i.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":i=function(e,t,r,n,i){let s=n?t.directives.tagName(n.source,e=>i(n,"TAG_RESOLVE_FAILED",e)):null,o="block-map"===r.type?"map":"block-seq"===r.type?"seq":"{"===r.start.source?"map":"seq";if(!n||!s||"!"===s||s===YAMLMap.tagName&&"map"===o||s===YAMLSeq.tagName&&"seq"===o||!o)return resolveCollection(e,t,r,i,s);let a=t.schema.tags.find(e=>e.tag===s&&e.collection===o);if(!a){let l=t.schema.knownTags[s];if(!l||l.collection!==o)return l?.collection?i(n,"BAD_COLLECTION_TYPE",`${l.tag} used for ${o} collection, but expects ${l.collection}`,!0):i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),resolveCollection(e,t,r,i,s);t.schema.tags.push(Object.assign({},l,{default:!1})),a=l}let l=resolveCollection(e,t,r,i,s,a),c=a.resolve?.(l,e=>i(n,"TAG_RESOLVE_FAILED",e),t.options)??l,u=isNode(c)?c:new Scalar(c);return u.range=l.range,u.tag=s,a?.format&&(u.format=a.format),u}(X,e,t,l,n),a&&(i.anchor=a.source.substring(1));break;default:{let s="error"===t.type?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s),i=composeEmptyNode(e,t.offset,void 0,null,r,n),c=!1}}return a&&""===i.anchor&&n(a,"BAD_ALIAS","Anchor cannot be an empty string"),s&&(i.spaceBefore=!0),o&&("scalar"===t.type&&""===t.source?i.comment=o:i.commentBefore=o),e.options.keepSourceTokens&&c&&(i.srcToken=t),i}function composeEmptyNode(e,t,r,n,{spaceBefore:i,comment:s,anchor:o,tag:a,end:l},c){let u={type:"scalar",offset:function(e,t,r){if(t){null===r&&(r=t.length);for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}for(r=t[++n];r?.type==="space";)e+=r.source.length,r=t[++n];break}}return e}(t,r,n),indent:-1,source:""},f=composeScalar(e,u,a,c);return o&&(f.anchor=o.source.substring(1),""===f.anchor&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(f.spaceBefore=!0),s&&(f.comment=s,f.range[2]=l),f}function getErrorPos(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];let{offset:t,source:r}=e;return[t,t+("string"==typeof r?r.length:1)]}function parsePrelude(e){let t="",r=!1,n=!1;for(let i=0;i{let i=getErrorPos(e);n?this.warnings.push(new YAMLWarning(i,t,r)):this.errors.push(new YAMLParseError(i,t,r))},this.directives=new Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){let i=e.contents;if(t)e.comment=e.comment?`${e.comment} +${r}`:r;else if(n||e.directives.docStart||!i)e.commentBefore=r;else if(isCollection(i)&&!i.flow&&i.items.length>0){let e=i.items[0];isPair(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${r} +${t}`:r}else{let e=i.commentBefore;i.commentBefore=e?`${r} +${e}`:r}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,r=-1){for(let t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,r,n)=>{let i=getErrorPos(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",r,n)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=function(e,t,{offset:r,start:n,value:i,end:s},o){let a=Object.assign({_directives:t},e),l=new Document(void 0,a),c={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=resolveProps(n,{indicator:"doc-start",next:i??s?.[0],offset:r,onError:o,startOnNewline:!0});u.found&&(l.directives.docStart=!0,i&&("block-map"===i.type||"block-seq"===i.type)&&!u.hasNewline&&o(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?composeNode(c,i,u,o):composeEmptyNode(c,u.end,n,null,u,o);let f=l.contents.range[2],h=resolveEnd(s,f,!1,o);return h.comment&&(l.comment=h.comment),l.range=[r,f,h.offset],l}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,r=new YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){this.errors.push(new YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let t=resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e} +${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=Object.assign({_directives:this.directives},this.options),r=new Document(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,t,t],this.decorate(r,!1),yield r}}};function resolveAsScalar(e,t=!0,r){if(e){let _onError=(e,t,n)=>{let i="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(r)r(i,t,n);else throw new YAMLParseError([i,i+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return resolveFlowScalar(e,t,_onError);case"block-scalar":return resolveBlockScalar(e,t,_onError)}}return null}function createScalarToken(e,t){let{implicitKey:r=!1,indent:n,inFlow:i=!1,offset:s=-1,type:o="PLAIN"}=t,a=stringifyString({type:o,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(a[0]){case"|":case">":{let e=a.indexOf("\n"),t=a.substring(0,e),r=a.substring(e+1)+"\n",i=[{type:"block-scalar-header",offset:s,indent:n,source:t}];return addEndtoBlockProps(i,l)||i.push({type:"newline",offset:-1,indent:n,source:"\n"}),{type:"block-scalar",offset:s,indent:n,props:i,source:r}}case'"':return{type:"double-quoted-scalar",offset:s,indent:n,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:s,indent:n,source:a,end:l};default:return{type:"scalar",offset:s,indent:n,source:a,end:l}}}function setScalarValue(e,t,r={}){let{afterKey:n=!1,implicitKey:i=!1,inFlow:s=!1,type:o}=r,a="indent"in e?e.indent:null;if(n&&"number"==typeof a&&(a+=2),!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");o=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let l=stringifyString({type:o,value:t},{implicitKey:i||null===a,indent:null!==a&&a>0?" ".repeat(a):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":!function(e,t){let r=t.indexOf("\n"),n=t.substring(0,r),i=t.substring(r+1)+"\n";if("block-scalar"===e.type){let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");t.source=n,e.source=i}else{let{offset:t}=e,r="indent"in e?e.indent:-1,s=[{type:"block-scalar-header",offset:t,indent:r,source:n}];for(let t of(addEndtoBlockProps(s,"end"in e?e.end:void 0)||s.push({type:"newline",offset:-1,indent:r,source:"\n"}),Object.keys(e)))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:s,source:i})}}(e,l);break;case'"':setFlowScalarValue(e,l,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,l,"single-quoted-scalar");break;default:setFlowScalarValue(e,l,"scalar")}}function addEndtoBlockProps(e,t){if(t)for(let r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{let n=e.props.slice(1),i=t.length;for(let t of("block-scalar-header"===e.props[0].type&&(i-=e.props[0].source.length),n))t.offset+=i;delete e.props,Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{let n=e.offset+t.length,i={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:r,source:t,end:[i]});break}default:{let n="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter(e=>"space"===e.type||"comment"===e.type||"newline"===e.type):[];for(let t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:i})}}}let cst_stringify_stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(let r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(let r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(let r of e.items)t+=stringifyItem(r);for(let r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(let r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let i="";for(let t of e)i+=t.source;if(t&&(i+=stringifyToken(t)),r)for(let e of r)i+=e.source;return n&&(i+=stringifyToken(n)),i}let Z=Symbol("break visit"),ee=Symbol("skip children"),et=Symbol("remove item");function cst_visit_visit(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function _visit(e,t,r){let n=r(t,e);if("symbol"==typeof n)return n;for(let i of["key","value"]){let s=t[i];if(s&&"items"in s){for(let t=0;t{let r=e;for(let[e,n]of t){let t=r?.[e];if(!t||!("items"in t))return;r=t.items[n]}return r},cst_visit_visit.parentCollection=(e,t)=>{let r=cst_visit_visit.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],i=r?.[n];if(i&&"items"in i)return i;throw Error("Parent collection not found")};let er="\uFEFF",en="\x02",ei="\x18",es="\x1f",cst_isCollection=e=>!!e&&"items"in e,cst_isScalar=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type);function prettyToken(e){switch(e){case er:return"";case en:return"";case ei:return"";case es:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case er:return"byte-order-mark";case en:return"doc-mode";case ei:return"flow-error-end";case es:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function isEmpty(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}let eo="0123456789ABCDEFabcdef".split(""),ea="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),el=",[]{}".split(""),ec=" ,[]{}\n\r ".split(""),isNotAnchorChar=e=>!e||ec.includes(e);let Lexer=class Lexer{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let r=this.next??"stream";for(;r&&(t||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||" "===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;for(;" "===t;)t=this.buffer[++r+e];if("\r"===t){let t=this.buffer[r+e+1];if("\n"===t||!t&&!this.atEnd)return e+r+1}return"\n"!==t&&!(r>=this.indentNext)&&(t||this.atEnd)?-1:e+r}if("-"===t||"."===t){let t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&isEmpty(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return(("number"!=typeof e||-1!==e&&ethis.indentValue&&!isEmpty(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&isEmpty(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(isNotAnchorChar),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader())+(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do(e=yield*this.pushNewline())>0?(t=yield*this.pushSpaces(!1),this.indentValue=r=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let n=this.getLine();if(null===n)return this.setNext("flow");if(-1!==r&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil(e=>isEmpty(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,r=0;e:for(let n=this.pos;e=this.buffer[n];++n)switch(e){case" ":r+=1;break;case"\n":t=n,r=0;break;case"\r":{let e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=r:this.indentNext+=this.blockScalarIndent;do{let e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let e=t-1,n=this.buffer[e];"\r"===n&&(n=this.buffer[--e]);let i=e;for(;" "===n||" "===n;)n=this.buffer[--e];if("\n"===n&&e>=this.pos&&e+1+r>i)t=e;else break}return yield es,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e;let t=this.flowLevel>0,r=this.pos-1,n=this.pos-1;for(;e=this.buffer[++n];)if(":"===e){let e=this.buffer[n+1];if(isEmpty(e)||t&&","===e)break;r=n}else if(isEmpty(e)){let i=this.buffer[n+1];if("\r"===e&&("\n"===i?(n+=1,e="\n",i=this.buffer[n+1]):r=n),"#"===i||t&&el.includes(i))break;if("\n"===e){let e=this.continueScalar(n+1);if(-1===e)break;n=Math.max(n,e-2)}}else{if(t&&el.includes(e))break;r=n}return e||this.atEnd?(yield es,yield*this.pushToIndex(r+1,!0),t?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let r=this.buffer.slice(this.pos,e);return r?(yield r,this.pos+=r.length,r.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,t=this.charAt(1);if(isEmpty(t)||e&&el.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!isEmpty(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(ea.includes(t))t=this.buffer[++e];else if("%"===t&&eo.includes(this.buffer[e+1])&&eo.includes(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,r=this.pos-1;do t=this.buffer[++r];while(" "===t||e&&" "===t);let n=r-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=r),n}*pushUntil(e){let t=this.pos,r=this.buffer[t];for(;!e(r);)r=this.buffer[++t];return yield*this.pushToIndex(t,!1)}};let LineCounter=class LineCounter{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,r=this.lineStarts.length;for(;t>1;this.lineStarts[n]=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function fixFlowSeqItems(e){if("flow-seq-start"===e.start.type)for(let t of e.items)!t.sep||t.value||includesToken(t.start,"explicit-key-ind")||includesToken(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,isFlowToken(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}let Parser=class Parser{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Lexer,this.onNewLine=e}*parse(e,t=!1){for(let r of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,t)))yield*this.next(r);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=tokenType(e);if(t){if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){let e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){let e=this.peek(1);if("doc-end"===this.type&&(!e||"doc-end"!==e.type)){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(t){if(0===this.stack.length)yield t;else{let e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&fixFlowSeqItems(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{let r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(r.sep)r.value=t;else{Object.assign(r,{key:t,sep:[]}),this.onKeyLine=!includesToken(r.start,"explicit-key-ind");return}break}case"block-seq":{let r=e.items[e.items.length-1];r.value?e.items.push({start:[],value:t}):r.value=t;break}case"flow-collection":{let r=e.items[e.items.length-1];!r||r.value?e.items.push({start:[],key:t,sep:[]}):r.sep?r.value=t:Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===t.type||"block-seq"===t.type)){let r=t.items[t.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&-1===findNonEmptyIndex(r.start)&&(0===t.indent||r.start.every(e=>"comment"!==e.type||e.indent=e.indent){let r=!this.onKeyLine&&this.indent===e.indent&&t.sep,n=[];if(r&&t.sep&&!t.value){let r=[];for(let n=0;ne.indent&&(r.length=0);break;default:r.length=0}}r.length>=2&&(n=t.sep.splice(r[1]))}switch(this.type){case"anchor":case"tag":r||t.value?(n.push(this.sourceToken),e.items.push({start:n}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":t.sep||includesToken(t.start,"explicit-key-ind")?r||t.value?(n.push(this.sourceToken),e.items.push({start:n})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):t.start.push(this.sourceToken),this.onKeyLine=!0;return;case"map-value-ind":if(includesToken(t.start,"explicit-key-ind")){if(t.sep){if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(includesToken(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]});else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){let e=getFirstKeyStartProps(t.start),r=t.key,n=t.sep;n.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else n.length>0?t.sep=t.sep.concat(n,this.sourceToken):t.sep.push(this.sourceToken)}else if(includesToken(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else t.sep?t.value||r?e.items.push({start:n,key:null,sep:[this.sourceToken]}):includesToken(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let i=this.flowScalar(this.type);r||t.value?(e.items.push({start:n,key:i,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(i):(Object.assign(t,{key:i,sep:[]}),this.onKeyLine=!0);return}default:{let i=this.startBlockValue(e);if(i){r&&"block-seq"!==i.type&&includesToken(t.start,"explicit-key-ind")&&e.items.push({start:n}),this.stack.push(i);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let r="end"in t.value?t.value.end:void 0,n=Array.isArray(r)?r[r.length-1]:void 0;n?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let r=e.items[e.items.length-2],n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||includesToken(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do yield*this.pop(),e=this.peek(1);while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let r=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:r,sep:[]}):t.sep?this.stack.push(r):Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if("block-map"!==t.type||("map-value-ind"!==this.type||t.indent!==e.indent)&&("newline"!==this.type||t.items[t.items.length-1].sep)){if("map-value-ind"===this.type&&"flow-collection"!==t.type){let r=getPrevProps(t),n=getFirstKeyStartProps(r);fixFlowSeqItems(e);let i=e.end.splice(1,e.end.length);i.push(this.sourceToken);let s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=getPrevProps(e),r=getFirstKeyStartProps(t);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r}]}}case"map-value-ind":{this.onKeyLine=!0;let t=getPrevProps(e),r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every(e=>"newline"===e.type||"space"===e.type)}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}};function parseOptions(e){let t=!1!==e.prettyErrors,r=e.lineCounter||t&&new LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){let{lineCounter:r,prettyErrors:n}=parseOptions(t),i=new Parser(r?.addNewLine),s=new Composer(t),o=Array.from(s.compose(i.parse(e)));if(n&&r)for(let t of o)t.errors.forEach(prettifyError(e,r)),t.warnings.forEach(prettifyError(e,r));return o.length>0?o:Object.assign([],{empty:!0},s.streamInfo())}function parseDocument(e,t={}){let{lineCounter:r,prettyErrors:n}=parseOptions(t),i=new Parser(r?.addNewLine),s=new Composer(t),o=null;for(let t of s.compose(i.parse(e),!0,e.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=t;return n&&r&&(o.errors.forEach(prettifyError(e,r)),o.warnings.forEach(prettifyError(e,r))),o}function parse(e,t,r){let n;"function"==typeof t?n=t:void 0===r&&t&&"object"==typeof t&&(r=t);let i=parseDocument(e,r);if(!i)return null;if(i.warnings.forEach(e=>warn(i.options.logLevel,e)),i.errors.length>0){if("silent"!==i.options.logLevel)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:n},r))}function public_api_stringify(e,t,r){let n=null;if("function"==typeof t||Array.isArray(t)?n=t:void 0===r&&t&&(r=t),"string"==typeof r&&(r=r.length),"number"==typeof r){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=r??t??{};if(!e)return}return new Document(e,n,r).toString(r)}var eu=s}}]); \ No newline at end of file diff --git a/_next/static/chunks/160-d5400c1a13bec5f8.js b/_next/static/chunks/160-d5400c1a13bec5f8.js deleted file mode 100644 index 41d99aa..0000000 --- a/_next/static/chunks/160-d5400c1a13bec5f8.js +++ /dev/null @@ -1,30 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[160],{1876:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,i=l(e),o=i[0],a=i[1],c=new s((o+a)*3/4-a),u=0,f=a>0?o-4:o;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,s=r%3,i=[],o=0,a=r-s;o>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return i.join("")}(e,o,o+16383>a?a:o+16383));return 1===s?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===s&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};for(var n=[],r=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=i.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */var r=n(675),s=n(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=o(n),s=r.write(e,t);return s!==n&&(r=r.slice(0,s)),r}(e,t);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var s=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return T(e).length;default:if(s)return r?-1:N(e).length;t=(""+t).toLowerCase(),s=!0}}function d(e,t,n){var s,i,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var s="",i=t;i2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(i=n=+n)!=i&&(n=s?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(s)return -1;n=e.length-1}else if(n<0){if(!s)return -1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,s);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?s?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,s);throw TypeError("val must be string, number or Buffer")}function g(e,t,n,r,s){var i,o=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;o=2,a/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(s){var u=-1;for(i=n;ia&&(n=a-l),i=n;i>=0;i--){for(var f=!0,h=0;h239?4:c>223?3:c>191?2:1;if(s+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:(192&(i=e[s+1]))==128&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[s+1],o=e[s+2],(192&i)==128&&(192&o)==128&&(l=(15&c)<<12|(63&i)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[s+1],o=e[s+2],a=e[s+3],(192&i)==128&&(192&o)==128&&(192&a)==128&&(l=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),s+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function v(e,t,n,r,s,i){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>s||te.length)throw RangeError("Index out of range")}function k(e,t,n,r,s,i){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function E(e,t,n,r,i){return t=+t,n>>>=0,i||k(e,t,n,4,34028234663852886e22,-34028234663852886e22),s.write(e,t,n,r,23,4),n+4}function S(e,t,n,r,i){return t=+t,n>>>=0,i||k(e,t,n,8,17976931348623157e292,-17976931348623157e292),s.write(e,t,n,r,52,8),n+8}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||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."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,n){return(c(e),e<=0)?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)},a.allocUnsafe=function(e){return u(e)},a.allocUnsafeSlow=function(e){return u(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(L(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,s=0,i=Math.min(n,r);sn&&(e+=" ... "),""},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(e,t,n,r,s){if(L(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===s&&(s=this.length),t<0||n>e.length||r<0||s>this.length)throw RangeError("out of range index");if(r>=s&&t>=n)return 0;if(r>=s)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,s>>>=0,this===e)return 0;for(var i=s-r,o=n-t,l=Math.min(i,o),c=this.slice(r,s),u=e.slice(t,n),f=0;f>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s,i,o,a,l,c,u,f,h,p,d,m,y=this.length-t;if((void 0===n||n>y)&&(n=y),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var g=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var s=e.length-n;r?(r=Number(r))>s&&(r=s):r=s;var i=t.length;r>i/2&&(r=i/2);for(var o=0;o>8,s.push(n%256),s.push(r);return s}(e,this.length-d),this,d,m);default:if(g)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),g=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||w(e,t,this.length);for(var r=this[e],s=1,i=0;++i>>=0,t>>>=0,n||w(e,t,this.length);for(var r=this[e+--t],s=1;t>0&&(s*=256);)r+=this[e+--t]*s;return r},a.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);for(var r=this[e],s=1,i=0;++i=(s*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);for(var r=t,s=1,i=this[e+--r];r>0&&(s*=256);)i+=this[e+--r]*s;return i>=(s*=128)&&(i-=Math.pow(2,8*t)),i},a.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),s.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),s.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),s.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),s.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var s=Math.pow(2,8*n)-1;v(this,e,t,n,s,0)}var i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){var s=Math.pow(2,8*n)-1;v(this,e,t,n,s,0)}var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var s=Math.pow(2,8*n-1);v(this,e,t,n,s-1,-s)}var i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var s=Math.pow(2,8*n-1);v(this,e,t,n,s-1,-s)}var i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||v(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,n){return E(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return E(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return S(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return S(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return s},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var s,i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(s=t;s55295&&n<57344){if(!s){if(n>56319||o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}s=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),s=n;continue}n=(s-55296<<10|n-56320)+65536}else s&&(t-=3)>-1&&i.push(239,191,189);if(s=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return i}function O(e){for(var t=[],n=0;n=t.length)&&!(s>=e.length);++s)t[s+n]=e[s];return s}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var x=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,s=0;s<16;++s)t[r+s]=e[n]+e[s];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,n,r,s){var i,o,a=8*s-r-1,l=(1<>1,u=-7,f=n?s-1:0,h=n?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-u)-1,p>>=-u,u+=a;u>0;i=256*i+e[t+f],f+=h,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=r;u>0;o=256*o+e[t+f],f+=h,u-=8);if(0===i)i=1-c;else{if(i===l)return o?NaN:(p?-1:1)*(1/0);o+=Math.pow(2,r),i-=c}return(p?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,s,i){var o,a,l,c=8*i-s-1,u=(1<>1,h=23===s?5960464477539062e-23:0,p=r?0:i-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=h/l:t+=h*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=u?(a=0,o=u):o+f>=1?(a=(t*l-1)*Math.pow(2,s),o+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,s),o=0));s>=8;e[n+p]=255&a,p+=d,a/=256,s-=8);for(o=o<0;e[n+p]=255&o,p+=d,o/=256,c-=8);e[n+p-d]|=128*m}}},n={};function r(e){var s=n[e];if(void 0!==s)return s.exports;var i=n[e]={exports:{}},o=!0;try{t[e](i,i.exports,r),o=!1}finally{o&&delete n[e]}return i.exports}r.ab="//";var s=r(72);e.exports=s}()},4160:function(e,t,n){"use strict";let r;n.r(t),n.d(t,{Alias:function(){return R},CST:function(){return s},Composer:function(){return t_},Document:function(){return tc},Lexer:function(){return t3},LineCounter:function(){return t9},Pair:function(){return eg},Parser:function(){return ni},Scalar:function(){return F},Schema:function(){return tl},YAMLError:function(){return tf},YAMLMap:function(){return eS},YAMLParseError:function(){return th},YAMLSeq:function(){return eN},YAMLWarning:function(){return tp},default:function(){return nf},isAlias:function(){return p},isCollection:function(){return w},isDocument:function(){return d},isMap:function(){return m},isNode:function(){return v},isPair:function(){return y},isScalar:function(){return g},isSeq:function(){return b},parse:function(){return nc},parseAllDocuments:function(){return na},parseDocument:function(){return nl},stringify:function(){return nu},visit:function(){return N},visitAsync:function(){return T}});var s={};n.r(s),n.d(s,{BOM:function(){return tW},DOCUMENT:function(){return tG},FLOW_END:function(){return tQ},SCALAR:function(){return tH},createScalarToken:function(){return tj},isCollection:function(){return tX},isScalar:function(){return tz},prettyToken:function(){return tZ},resolveAsScalar:function(){return tM},setScalarValue:function(){return tU},stringify:function(){return tq},tokenType:function(){return t0},visit:function(){return tJ}});var i={};n.r(i),n.d(i,{Alias:function(){return R},CST:function(){return s},Composer:function(){return t_},Document:function(){return tc},Lexer:function(){return t3},LineCounter:function(){return t9},Pair:function(){return eg},Parser:function(){return ni},Scalar:function(){return F},Schema:function(){return tl},YAMLError:function(){return tf},YAMLMap:function(){return eS},YAMLParseError:function(){return th},YAMLSeq:function(){return eN},YAMLWarning:function(){return tp},isAlias:function(){return p},isCollection:function(){return w},isDocument:function(){return d},isMap:function(){return m},isNode:function(){return v},isPair:function(){return y},isScalar:function(){return g},isSeq:function(){return b},parse:function(){return nc},parseAllDocuments:function(){return na},parseDocument:function(){return nl},stringify:function(){return nu},visit:function(){return N},visitAsync:function(){return T}});let o=Symbol.for("yaml.alias"),a=Symbol.for("yaml.document"),l=Symbol.for("yaml.map"),c=Symbol.for("yaml.pair"),u=Symbol.for("yaml.scalar"),f=Symbol.for("yaml.seq"),h=Symbol.for("yaml.node.type"),p=e=>!!e&&"object"==typeof e&&e[h]===o,d=e=>!!e&&"object"==typeof e&&e[h]===a,m=e=>!!e&&"object"==typeof e&&e[h]===l,y=e=>!!e&&"object"==typeof e&&e[h]===c,g=e=>!!e&&"object"==typeof e&&e[h]===u,b=e=>!!e&&"object"==typeof e&&e[h]===f;function w(e){if(e&&"object"==typeof e)switch(e[h]){case l:case f:return!0}return!1}function v(e){if(e&&"object"==typeof e)switch(e[h]){case o:case l:case u:case f:return!0}return!1}let k=e=>(g(e)||w(e))&&!!e.anchor,E=Symbol("break visit"),S=Symbol("skip children"),A=Symbol("remove node");function N(e,t){let n=L(t);if(d(e)){let t=O(null,e.contents,n,Object.freeze([e]));t===A&&(e.contents=null)}else O(null,e,n,Object.freeze([]))}function O(e,t,n,r){let s=x(e,t,n,r);if(v(s)||y(s))return C(e,r,s),O(e,s,n,r);if("symbol"!=typeof s){if(w(t)){r=Object.freeze(r.concat(t));for(let e=0;ee.replace(/[!,[\]{}]/g,e=>B[e]);class _{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},_.defaultYaml,e),this.tags=Object.assign({},_.defaultTags,t)}clone(){let e=new _(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new _(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:_.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},_.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:_.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},_.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let n=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,n),!1}}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/);r||t(`The ${e} tag has no suffix`);let s=this.tags[n];return s?s+decodeURIComponent(r):"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+$(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t;let n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);if(e&&r.length>0&&v(e.contents)){let n={};N(e.contents,(e,t)=>{v(t)&&t.tag&&(n[t.tag]=!0)}),t=Object.keys(n)}else t=[];for(let[s,i]of r)("!!"!==s||"tag:yaml.org,2002:"!==i)&&(!e||t.some(e=>e.startsWith(i)))&&n.push(`%TAG ${s} ${i}`);return n.join("\n")}}function M(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e),n=`Anchor must not contain whitespace or control characters: ${t}`;throw Error(n)}return!0}function j(e){let t=new Set;return N(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function U(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function D(e,t,n,r){if(r&&"object"==typeof r){if(Array.isArray(r))for(let t=0,n=r.length;tP(e,String(t),n));if(e&&"function"==typeof e.toJSON){if(!n||!k(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let s=e.toJSON(t,n);return n.onCreate&&n.onCreate(s),s}return"bigint"!=typeof e||n?.keep?e:Number(e)}_.defaultYaml={explicit:!1,version:"1.2"},_.defaultTags={"!!":"tag:yaml.org,2002:"};class q{constructor(e){Object.defineProperty(this,h,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:s}={}){if(!d(e))throw TypeError("A document argument is required");let i={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},o=P(this,"",i);if("function"==typeof r)for(let{count:e,res:t}of i.anchors.values())r(t,e);return"function"==typeof s?D(s,{"":o},"",o):o}}class R extends q{constructor(e){super(o),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e){let t;return N(e,{Node:(e,n)=>{if(n===this)return N.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:s}=t,i=this.resolve(r);if(!i){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(i);if(o||(P(i,null,t),o=n.get(i)),!o||void 0===o.res)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(s>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=function e(t,n,r){if(p(n)){let e=n.resolve(t),s=r&&e&&r.get(e);return s?s.count*s.aliasCount:0}if(w(n)){let s=0;for(let i of n.items){let n=e(t,i,r);n>s&&(s=n)}return s}if(y(n)){let s=e(t,n.key,r),i=e(t,n.value,r);return Math.max(s,i)}return 1}(r,i,n)),o.count*o.aliasCount>s))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(M(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}}let K=e=>!e||"function"!=typeof e&&"object"!=typeof e;class F extends q{constructor(e){super(u),this.value=e}toJSON(e,t){return t?.keep?this.value:P(this.value,e,t)}toString(){return String(this.value)}}function Y(e,t,n){let r;if(d(e)&&(e=e.contents),v(e))return e;if(y(e)){let t=n.schema[l].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:s,onAnchor:i,onTagObj:o,schema:a,sourceObjects:c}=n;if(s&&e&&"object"==typeof e){if(r=c.get(e))return r.anchor||(r.anchor=i(e)),new R(r.anchor);r={anchor:null,node:null},c.set(e,r)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let u=function(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}(e,t,a.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new F(e);return r&&(r.node=t),t}u=e instanceof Map?a[l]:Symbol.iterator in Object(e)?a[f]:a[l]}o&&(o(u),delete n.onTagObj);let h=u?.createNode?u.createNode(n.schema,e,n):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(n.schema,e,n):new F(e);return t?h.tag=t:u.default||(h.tag=u.tag),r&&(r.node=h),h}function V(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return Y(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}F.BLOCK_FOLDED="BLOCK_FOLDED",F.BLOCK_LITERAL="BLOCK_LITERAL",F.PLAIN="PLAIN",F.QUOTE_DOUBLE="QUOTE_DOUBLE",F.QUOTE_SINGLE="QUOTE_SINGLE";let J=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class W extends q{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>v(t)||y(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(J(e))this.add(t);else{let[n,...r]=e,s=this.get(n,!0);if(w(s))s.addIn(r,t);else if(void 0===s&&this.schema)this.set(n,V(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let r=this.get(t,!0);if(w(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,s=this.get(n,!0);return 0===r.length?!t&&g(s)?s.value:s:w(s)?s.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!y(t))return!1;let n=t.value;return null==n||e&&g(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let r=this.get(t,!0);return!!w(r)&&r.hasIn(n)}setIn(e,t){let[n,...r]=e;if(0===r.length)this.set(n,t);else{let e=this.get(n,!0);if(w(e))e.setIn(r,t);else if(void 0===e&&this.schema)this.set(n,V(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}W.maxFlowStringSingleLineLength=60;let G=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Q(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let H=(e,t,n)=>e.endsWith("\n")?Q(n,t):n.includes("\n")?"\n"+Q(n,t):(e.endsWith(" ")?"":" ")+n,X="flow",z="block",Z="quoted";function ee(e,t,n="flow",{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}={}){let l,c,u;if(!s||s<0)return e;let f=Math.max(1+i,1+s-t.length);if(e.length<=f)return e;let h=[],p={},d=s-t.length;"number"==typeof r&&(r>s-Math.max(2,i)?h.push(0):d=s-r);let m=!1,y=-1,g=-1,b=-1;for(n===z&&-1!==(y=et(e,y))&&(d=y+f);u=e[y+=1];){if(n===Z&&"\\"===u){switch(g=y,e[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}b=y}if("\n"===u)n===z&&(y=et(e,y)),d=y+f,l=void 0;else{if(" "===u&&c&&" "!==c&&"\n"!==c&&" "!==c){let t=e[y+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(l=y)}if(y>=d){if(l)h.push(l),d=l+f,l=void 0;else if(n===Z){for(;" "===c||" "===c;)c=u,u=e[y+=1],m=!0;let t=y>b+1?y-2:g-1;if(p[t])return e;h.push(t),p[t]=!0,d=t+f,l=void 0}else m=!0}}c=u}if(m&&a&&a(),0===h.length)return e;o&&o();let w=e.slice(0,h[0]);for(let r=0;r({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),er=e=>/^(%|---|\.\.\.)/m.test(e);function es(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,s=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(er(e)?" ":""),o="",a=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(o+=n.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{o+=n.slice(a,e);let t=n.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===t.substr(0,2)?o+="\\x"+t.substr(2):o+=n.substr(e,6)}e+=5,a=e+1}break;case"n":if(r||'"'===n[e+2]||n.lengthr)return!0;if(s-(n=t+1)<=r)return!1}return!0}(n,h,p.length));if(!n)return d?"|\n":">\n";for(l=n.length;l>0;--l){let e=n[l-1];if("\n"!==e&&" "!==e&&" "!==e)break}let m=n.substring(l),y=m.indexOf("\n");-1===y?a="-":n===m||y!==m.length-1?(a="+",o&&o()):a="",m&&(n=n.slice(0,-m.length),"\n"===m[m.length-1]&&(m=m.slice(0,-1)),m=m.replace(r,`$&${p}`));let g=!1,b=-1;for(c=0;c")+(g?v:"")+a;if(e&&(k+=" "+f(e.replace(/ ?[\r\n]+/g," ")),i&&i()),d)return`${k} -${p}${w}${n=n.replace(/\n+/g,`$&${p}`)}${m}`;n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`);let E=ee(`${w}${n}${m}`,p,z,en(s,!0));return`${k} -${p}${E}`}function el(e,t,n,r){let{implicitKey:s,inFlow:i}=t,o="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)}),{type:a}=e;a!==F.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=F.QUOTE_DOUBLE);let l=e=>{switch(e){case F.BLOCK_FOLDED:case F.BLOCK_LITERAL:return s||i?eo(o.value,t):ea(o,t,n,r);case F.QUOTE_DOUBLE:return es(o.value,t);case F.QUOTE_SINGLE:return ei(o.value,t);case F.PLAIN:return function(e,t,n,r){let{type:s,value:i}=e,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:u}=t;if(a&&/[\n[\]{},]/.test(i)||u&&/[[\]{},]/.test(i))return eo(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||u||!i.includes("\n")?eo(i,t):ea(e,t,n,r);if(!a&&!u&&s!==F.PLAIN&&i.includes("\n"))return ea(e,t,n,r);if(er(i)){if(""===l)return t.forceBlockIndent=!0,ea(e,t,n,r);if(a&&l===c)return eo(i,t)}let f=i.replace(/\n+/g,`$& -${l}`);if(o){let e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(f),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return eo(i,t)}return a?f:ee(f,l,X,en(t,!1))}(o,t,n,r);default:return null}},c=l(a);if(null===c){let{defaultKeyType:e,defaultStringType:n}=t.options,r=s&&e||n;if(null===(c=l(r)))throw Error(`Unsupported default string type ${r}`)}return c}function ec(e,t){let n;let r=Object.assign({blockQuote:!0,commentString:G,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof r.indent?" ".repeat(r.indent):" ",inFlow:n,options:r}}function eu(e,t,n,r){let s;if(y(e))return e.toString(t,n,r);if(p(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i=v(e)?e:t.doc.createNode(e,{onTagObj:e=>s=e});s||(s=function(e,t){let n,r;if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}if(g(t)){n=t.value;let s=e.filter(e=>e.identify?.(n));r=s.find(e=>e.format===t.format)??s.find(e=>!e.format)}else n=t,r=e.find(e=>e.nodeClass&&n instanceof e.nodeClass);if(!r){let e=n?.constructor?.name??typeof n;throw Error(`Tag not resolved for ${e} value`)}return r}(t.doc.schema.tags,i));let o=function(e,t,{anchors:n,doc:r}){if(!r.directives)return"";let s=[],i=(g(e)||w(e))&&e.anchor;i&&M(i)&&(n.add(i),s.push(`&${i}`));let o=e.tag?e.tag:t.default?null:t.tag;return o&&s.push(r.directives.tagString(o)),s.join(" ")}(i,s,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let a="function"==typeof s.stringify?s.stringify(i,t,n,r):g(i)?el(i,t,n,r):i.toString(t,n,r);return o?g(i)||"{"===a[0]||"["===a[0]?`${o} ${a}`:`${o} -${t.indent}${a}`:a}var ef=n(3454);function eh(e,t){("debug"===e||"warn"===e)&&(void 0!==ef&&ef.emitWarning?ef.emitWarning(t):console.warn(t))}function ep(e,t,{key:n,value:r}){if(e?.doc.schema.merge&&ed(n)){if(b(r=p(r)?r.resolve(e.doc):r))for(let n of r.items)em(e,t,n);else if(Array.isArray(r))for(let n of r)em(e,t,n);else em(e,t,r)}else{let s=P(n,"",e);if(t instanceof Map)t.set(s,P(r,s,e));else if(t instanceof Set)t.add(s);else{let i=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(v(e)&&n&&n.doc){let t=ec(n.doc,{});for(let e of(t.anchors=new Set,n.anchors.keys()))t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+'..."'),eh(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(n,s,e),o=P(r,i,e);i in t?Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[i]=o}}return t}let ed=e=>"<<"===e||g(e)&&"<<"===e.value&&(!e.type||e.type===F.PLAIN);function em(e,t,n){let r=e&&p(n)?n.resolve(e.doc):n;if(!m(r))throw Error("Merge sources must be maps or map aliases");let s=r.toJSON(null,e,Map);for(let[e,n]of s)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function ey(e,t,n){let r=Y(e,void 0,n),s=Y(t,void 0,n);return new eg(r,s)}class eg{constructor(e,t=null){Object.defineProperty(this,h,{value:c}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return v(t)&&(t=t.clone(e)),v(n)&&(n=n.clone(e)),new eg(t,n)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return ep(t,n,this)}toString(e,t,n){return e?.doc?function({key:e,value:t},n,r,s){let i,o,a;let{allNullValues:l,doc:c,indent:u,indentStep:f,options:{commentString:h,indentSeq:p,simpleKeys:d}}=n,m=v(e)&&e.comment||null;if(d){if(m)throw Error("With simple keys, key nodes cannot have comments");if(w(e))throw Error("With simple keys, collection cannot be used as a key value")}let y=!d&&(!e||m&&null==t&&!n.inFlow||w(e)||(g(e)?e.type===F.BLOCK_FOLDED||e.type===F.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!y&&(d||!l),indent:u+f});let k=!1,E=!1,S=eu(e,n,()=>k=!0,()=>E=!0);if(!y&&!n.inFlow&&S.length>1024){if(d)throw Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(n.inFlow){if(l||null==t)return k&&r&&r(),""===S?"?":y?`? ${S}`:S}else if(l&&!d||null==t&&y)return S=`? ${S}`,m&&!k?S+=H(S,n.indent,h(m)):E&&s&&s(),S;k&&(m=null),y?(m&&(S+=H(S,n.indent,h(m))),S=`? ${S} -${u}:`):(S=`${S}:`,m&&(S+=H(S,n.indent,h(m)))),v(t)?(i=!!t.spaceBefore,o=t.commentBefore,a=t.comment):(i=!1,o=null,a=null,t&&"object"==typeof t&&(t=c.createNode(t))),n.implicitKey=!1,!y&&!m&&g(t)&&(n.indentAtStart=S.length+1),E=!1,!(!p&&f.length>=2&&!n.inFlow&&!y&&b(t))||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let A=!1,N=eu(t,n,()=>A=!0,()=>E=!0),O=" ";if(m||i||o){if(O=i?"\n":"",o){let e=h(o);O+=` -${Q(e,n.indent)}`}""!==N||n.inFlow?O+=` -${n.indent}`:"\n"===O&&(O="\n\n")}else if(!y&&w(t)){let e=N[0],r=N.indexOf("\n"),s=-1!==r,i=n.inFlow??t.flow??0===t.items.length;if(s||!i){let t=!1;if(s&&("&"===e||"!"===e)){let n=N.indexOf(" ");"&"===e&&-1!==n&&no=null,()=>h=!0);o&&(a+=H(a,i,u(o))),h&&o&&(h=!1),p.push(r+a)}if(0===p.length)l=s.start+s.end;else{l=p[0];for(let e=1;ei=null);ep||o.includes("\n"))&&(h=!0),d.push(o),p=d.length}let{start:m,end:g}=r;if(0===d.length)o=m+g;else{if(!h){let e=d.reduce((e,t)=>e+t.length+2,2);h=e>W.maxFlowStringSingleLineLength}if(h){for(let e of(o=m,d))o+=e?` -${l}${a}${e}`:"\n";o+=` -${a}${g}`}else o=`${m}${c}${d.join(" ")}${c}${g}`}return e&&(o+=H(o,a,u(e)),i&&i()),o}function ek({indent:e,options:{commentString:t}},n,r,s){if(r&&s&&(r=r.replace(/^\n+/,"")),r){let s=Q(t(r),e);n.push(s.trimStart())}}function eE(e,t){let n=g(t)?t.value:t;for(let r of e)if(y(r)&&(r.key===t||r.key===n||g(r.key)&&r.key.value===n))return r}class eS extends W{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(l,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:s}=n,i=new this(e),o=(e,o)=>{if("function"==typeof s)o=s.call(t,e,o);else if(Array.isArray(s)&&!s.includes(e))return;(void 0!==o||r)&&i.items.push(ey(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&"object"==typeof t)for(let e of Object.keys(t))o(e,t[e]);return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i}add(e,t){let n;n=y(e)?e:e&&"object"==typeof e&&"key"in e?new eg(e.key,e.value):new eg(e,e?.value);let r=eE(this.items,n.key),s=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);g(r.value)&&K(n.value)?r.value.value=n.value:r.value=n.value}else if(s){let e=this.items.findIndex(e=>0>s(n,e));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=eE(this.items,e);if(!t)return!1;let n=this.items.splice(this.items.indexOf(t),1);return n.length>0}get(e,t){let n=eE(this.items,e),r=n?.value;return(!t&&g(r)?r.value:r)??void 0}has(e){return!!eE(this.items,e)}set(e,t){this.add(new eg(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(r),this.items))ep(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!y(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),eb(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}let eA={collection:"map",default:!0,nodeClass:eS,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(m(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>eS.from(e,t,n)};class eN extends W{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(f,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=eO(e);if("number"!=typeof t)return!1;let n=this.items.splice(t,1);return n.length>0}get(e,t){let n=eO(e);if("number"!=typeof n)return;let r=this.items[n];return!t&&g(r)?r.value:r}has(e){let t=eO(e);return"number"==typeof t&&t=0?t:null}let eT={collection:"seq",default:!0,nodeClass:eN,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(b(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>eN.from(e,t,n)},eI={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>el(e,t=Object.assign({actualString:!0},t),n,r)},eL={identify:e=>null==e,createNode:()=>new F(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new F(null),stringify:({source:e},t)=>"string"==typeof e&&eL.test.test(e)?e:t.options.nullStr},ex={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new F("t"===e[0]||"T"===e[0]),stringify({source:e,value:t},n){if(e&&ex.test.test(e)){let n="t"===e[0]||"T"===e[0];if(t===n)return e}return t?n.options.trueStr:n.options.falseStr}};function eC({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);let s="number"==typeof r?r:Number(r);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1);for(;n-- >0;)i+="0"}return i}let eB={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:eC},e$={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eC(e)}},e_={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new F(parseFloat(e)),n=e.indexOf(".");return -1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:eC},eM=e=>"bigint"==typeof e||Number.isInteger(e),ej=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function eU(e,t,n){let{value:r}=e;return eM(r)&&r>=0?n+r.toString(t):eC(e)}let eD={identify:e=>eM(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>ej(e,2,8,n),stringify:e=>eU(e,8,"0o")},eP={identify:eM,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>ej(e,0,10,n),stringify:eC},eq={identify:e=>eM(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>ej(e,2,16,n),stringify:e=>eU(e,16,"0x")},eR=[eA,eT,eI,eL,ex,eD,eP,eq,eB,e$,e_];function eK(e){return"bigint"==typeof e||Number.isInteger(e)}let eF=({value:e})=>JSON.stringify(e),eY=[{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:eF},{identify:e=>null==e,createNode:()=>new F(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:eF},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:eF},{identify:eK,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>eK(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:eF}],eV=[eA,eT].concat(eY,{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)});var eJ=n(1876).Buffer;let eW={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof eJ)return eJ.from(e,"base64");if("function"!=typeof atob)return t("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e1&&t("Each pair must have its own sequence indicator");let e=r.items[0]||new eg(new F(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore} -${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment} -${t.comment}`:r.comment}r=e}e.items[n]=y(r)?r:new eg(r)}}else t("Expected a sequence for this tag");return e}function eQ(e,t,n){let{replacer:r}=n,s=new eN(e);s.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let o,a;if("function"==typeof r&&(e=r.call(t,String(i++),e)),Array.isArray(e)){if(2===e.length)o=e[0],a=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)a=e[o=t[0]];else throw TypeError(`Expected { key: value } tuple: ${e}`)}else o=e;s.items.push(ey(o,a,n))}return s}let eH={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:eG,createNode:eQ};class eX extends eN{constructor(){super(),this.add=eS.prototype.add.bind(this),this.delete=eS.prototype.delete.bind(this),this.get=eS.prototype.get.bind(this),this.has=eS.prototype.has.bind(this),this.set=eS.prototype.set.bind(this),this.tag=eX.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;for(let e of(t?.onCreate&&t.onCreate(n),this.items)){let r,s;if(y(e)?(r=P(e.key,"",t),s=P(e.value,r,t)):r=P(e,"",t),n.has(r))throw Error("Ordered maps must not include duplicate keys");n.set(r,s)}return n}static from(e,t,n){let r=eQ(e,t,n),s=new this;return s.items=r.items,s}}eX.tag="tag:yaml.org,2002:omap";let ez={collection:"seq",identify:e=>e instanceof Map,nodeClass:eX,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let n=eG(e,t),r=[];for(let{key:e}of n.items)g(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new eX,n)},createNode:(e,t,n)=>eX.from(e,t,n)};function eZ({value:e,source:t},n){return t&&(e?e0:e1).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let e0={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new F(!0),stringify:eZ},e1={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new F(!1),stringify:eZ},e2=e=>"bigint"==typeof e||Number.isInteger(e);function e6(e,t,n,{intAsBigInt:r}){let s=e[0];if(("-"===s||"+"===s)&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===s?BigInt(-1)*t:t}let i=parseInt(e,n);return"-"===s?-1*i:i}function e8(e,t,n){let{value:r}=e;if(e2(r)){let e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return eC(e)}class e5 extends eS{constructor(e){super(e),this.tag=e5.tag}add(e){let t;t=y(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new eg(e.key,null):new eg(e,null);let n=eE(this.items,t.key);n||this.items.push(t)}get(e,t){let n=eE(this.items,e);return!t&&y(n)?g(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=eE(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new eg(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error("Set items must all have null values")}static from(e,t,n){let{replacer:r}=n,s=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),s.items.push(ey(e,null,n));return s}}e5.tag="tag:yaml.org,2002:set";let e4={collection:"map",identify:e=>e instanceof Set,nodeClass:e5,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>e5.from(e,t,n),resolve(e,t){if(m(e)){if(e.hasAllNullValues(!0))return Object.assign(new e5,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function e3(e,t){let n=e[0],r="-"===n||"+"===n?e.substring(1):e,s=e=>t?BigInt(e):Number(e),i=r.replace(/_/g,"").split(":").reduce((e,t)=>e*s(60)+s(t),s(0));return"-"===n?s(-1)*i:i}function e9(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return eC(e);let r="";t<0&&(r="-",t*=n(-1));let s=n(60),i=[t%s];return t<60?i.unshift(0):(t=(t-i[0])/s,i.unshift(t%s),t>=60&&(t=(t-i[0])/s,i.unshift(t))),r+i.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let e7={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>e3(e,n),stringify:e9},te={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>e3(e,!1),stringify:e9},tt={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(tt.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,r,s,i,o,a]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0,c=Date.UTC(n,r-1,s,i||0,o||0,a||0,l),u=t[8];if(u&&"Z"!==u){let e=e3(u,!1);30>Math.abs(e)&&(e*=60),c-=6e4*e}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},tn=[eA,eT,eI,eL,e0,e1,{identify:e2,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>e6(e,2,2,n),stringify:e=>e8(e,2,"0b")},{identify:e2,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>e6(e,1,8,n),stringify:e=>e8(e,8,"0")},{identify:e2,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>e6(e,0,10,n),stringify:eC},{identify:e2,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>e6(e,2,16,n),stringify:e=>e8(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:eC},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eC(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new F(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){let r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:eC},eW,ez,eH,e4,e7,te,tt],tr=new Map([["core",eR],["failsafe",[eA,eT,eI]],["json",eV],["yaml11",tn],["yaml-1.1",tn]]),ts={binary:eW,bool:ex,float:e_,floatExp:e$,floatNaN:eB,floatTime:te,int:eP,intHex:eq,intOct:eD,intTime:e7,map:eA,null:eL,omap:ez,pairs:eH,seq:eT,set:e4,timestamp:tt},ti={"tag:yaml.org,2002:binary":eW,"tag:yaml.org,2002:omap":ez,"tag:yaml.org,2002:pairs":eH,"tag:yaml.org,2002:set":e4,"tag:yaml.org,2002:timestamp":tt};function to(e,t){let n=tr.get(t);if(!n){if(Array.isArray(e))n=[];else{let e=Array.from(tr.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)n=n.concat(t);else"function"==typeof e&&(n=e(n.slice()));return n.map(e=>{if("string"!=typeof e)return e;let t=ts[e];if(t)return t;let n=Object.keys(ts).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag "${e}"; use one of ${n}`)})}let ta=(e,t)=>e.keyt.key?1:0;class tl{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:s,sortMapEntries:i,toStringDefaults:o}){this.compat=Array.isArray(e)?to(e,"compat"):e?to(null,e):null,this.merge=!!n,this.name="string"==typeof s&&s||"core",this.knownTags=r?ti:{},this.tags=to(t,this.name),this.toStringOptions=o??null,Object.defineProperty(this,l,{value:eA}),Object.defineProperty(this,u,{value:eI}),Object.defineProperty(this,f,{value:eT}),this.sortMapEntries="function"==typeof i?i:!0===i?ta:null}clone(){let e=Object.create(tl.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class tc{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,h,{value:a});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);let s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=s;let{version:i}=s;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new _({version:i}),this.setSchema(i,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){let e=Object.create(tc.prototype,{[h]:{value:a}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=v(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){tu(this.contents)&&this.contents.add(e)}addIn(e,t){tu(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=j(this);e.anchor=!t||n.has(t)?U(t||"a",n):t}return new R(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else void 0===n&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:s,anchorPrefix:i,flow:o,keepUndefined:a,onTagObj:l,tag:c}=n??{},{onAnchor:u,setAnchors:f,sourceObjects:h}=function(e,t){let n=[],r=new Map,s=null;return{onAnchor:r=>{n.push(r),s||(s=j(e));let i=U(t,s);return s.add(i),i},setAnchors:()=>{for(let e of n){let t=r.get(e);if("object"==typeof t&&t.anchor&&(g(t.node)||w(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:r}}(this,i||"a"),p={aliasDuplicateObjects:s??!0,keepUndefined:a??!1,onAnchor:u,onTagObj:l,replacer:r,schema:this.schema,sourceObjects:h},d=Y(e,c,p);return o&&w(d)&&(d.flow=!0),f(),d}createPair(e,t,n={}){let r=this.createNode(e,null,n),s=this.createNode(t,null,n);return new eg(r,s)}delete(e){return!!tu(this.contents)&&this.contents.delete(e)}deleteIn(e){return J(e)?null!=this.contents&&(this.contents=null,!0):!!tu(this.contents)&&this.contents.deleteIn(e)}get(e,t){return w(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return J(e)?!t&&g(this.contents)?this.contents.value:this.contents:w(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!w(this.contents)&&this.contents.has(e)}hasIn(e){return J(e)?void 0!==this.contents:!!w(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=V(this.schema,[e],t):tu(this.contents)&&this.contents.set(e,t)}setIn(e,t){J(e)?this.contents=t:null==this.contents?this.contents=V(this.schema,Array.from(e),t):tu(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new _({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new _({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new tl(Object.assign(n,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:s,reviver:i}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},a=P(this.contents,t??"",o);if("function"==typeof s)for(let{count:e,res:t}of o.anchors.values())s(t,e);return"function"==typeof i?D(i,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){let n=[],r=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");let s=ec(e,t),{commentString:i}=s.options;if(e.commentBefore){1!==n.length&&n.unshift("");let t=i(e.commentBefore);n.unshift(Q(t,""))}let o=!1,a=null;if(e.contents){if(v(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){let t=i(e.contents.commentBefore);n.push(Q(t,""))}s.forceBlockIndent=!!e.comment,a=e.contents.comment}let t=a?void 0:()=>o=!0,l=eu(e.contents,s,()=>a=null,t);a&&(l+=H(l,"",i(a))),("|"===l[0]||">"===l[0])&&"---"===n[n.length-1]?n[n.length-1]=`--- ${l}`:n.push(l)}else n.push(eu(e.contents,s));if(e.directives?.docEnd){if(e.comment){let t=i(e.comment);t.includes("\n")?(n.push("..."),n.push(Q(t,""))):n.push(`... ${t}`)}else n.push("...")}else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,"")),t&&((!o||a)&&""!==n[n.length-1]&&n.push(""),n.push(Q(i(t),"")))}return n.join("\n")+"\n"}(this,e)}}function tu(e){if(w(e))return!0;throw Error("Expected a YAML collection as document contents")}class tf extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class th extends tf{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class tp extends tf{constructor(e,t,n){super("YAMLWarning",e,t,n)}}let td=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:s}=n.linePos[0];n.message+=` at line ${r}, column ${s}`;let i=s-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){let e=Math.min(i-39,o.length-79);o="…"+o.substring(e),i-=e-1}if(o.length>80&&(o=o.substring(0,79)+"…"),r>1&&/^ *$/.test(o.substring(0,i))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t&&t.line===r&&t.col>s&&(e=Math.max(1,Math.min(t.col-s,80-i)));let a=" ".repeat(i)+"^".repeat(e);n.message+=`: - -${o} -${a} -`}};function tm(e,{flow:t,indicator:n,next:r,offset:s,onError:i,startOnNewline:o}){let a=!1,l=o,c=o,u="",f="",h=!1,p=!1,d=!1,m=null,y=null,g=null,b=null,w=null;for(let r of e)switch(d&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d=!1),r.type){case"space":!t&&l&&"doc-start"!==n&&" "===r.source[0]&&i(r,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||i(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=r.source.substring(1)||" ";u?u+=f+e:u=e,f="",l=!1;break}case"newline":l?u?u+=r.source:a=!0:f+=r.source,l=!0,h=!0,(m||y)&&(p=!0),c=!0;break;case"anchor":m&&i(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),r.source.endsWith(":")&&i(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=r,null===w&&(w=r.offset),l=!1,c=!1,d=!0;break;case"tag":y&&i(r,"MULTIPLE_TAGS","A node can have at most one tag"),y=r,null===w&&(w=r.offset),l=!1,c=!1,d=!0;break;case n:(m||y)&&i(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),b&&i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${t??"collection"}`),b=r,l=!1,c=!1;break;case"comma":if(t){g&&i(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),g=r,l=!1,c=!1;break}default:i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),l=!1,c=!1}let v=e[e.length-1],k=v?v.offset+v.source.length:s;return d&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:g,found:b,spaceBefore:a,comment:u,hasNewline:h,hasNewlineAfterProp:p,anchor:m,tag:y,end:k,start:w??k}}function ty(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end){for(let t of e.end)if("newline"===t.type)return!0}return!1;case"flow-collection":for(let t of e.items){for(let e of t.start)if("newline"===e.type)return!0;if(t.sep){for(let e of t.sep)if("newline"===e.type)return!0}if(ty(t.key)||ty(t.value))return!0}return!1;default:return!0}}function tg(e,t,n){if(t?.type==="flow-collection"){let r=t.end[0];r.indent===e&&("]"===r.source||"}"===r.source)&&ty(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function tb(e,t,n){let{uniqueKeys:r}=e.options;if(!1===r)return!1;let s="function"==typeof r?r:(t,n)=>t===n||g(t)&&g(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge);return t.some(e=>s(e.key,n))}let tw="All mapping items must start at the same column";function tv(e,t,n,r){let s="";if(e){let i=!1,o="";for(let a of e){let{source:e,type:l}=a;switch(l){case"space":i=!0;break;case"comment":{n&&!i&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let t=e.substring(1)||" ";s?s+=o+t:s=t,o="";break}case"newline":s&&(o+=e),i=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=e.length}}return{comment:s,offset:t}}let tk="Block collections are not allowed within flow collections",tE=e=>e&&("block-map"===e.type||"block-seq"===e.type);function tS(e,t,n,r,s,i){let o="block-map"===n.type?function({composeNode:e,composeEmptyNode:t},n,r,s,i){let o=i?.nodeClass??eS,a=new o(n.schema);n.atRoot&&(n.atRoot=!1);let l=r.offset,c=null;for(let i of r.items){let{start:o,key:u,sep:f,value:h}=i,p=tm(o,{indicator:"explicit-key-ind",next:u??f?.[0],offset:l,onError:s,startOnNewline:!0}),d=!p.found;if(d){if(u&&("block-seq"===u.type?s(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in u&&u.indent!==r.indent&&s(l,"BAD_INDENT",tw)),!p.anchor&&!p.tag&&!f){c=p.end,p.comment&&(a.comment?a.comment+="\n"+p.comment:a.comment=p.comment);continue}(p.hasNewlineAfterProp||ty(u))&&s(u??o[o.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else p.found?.indent!==r.indent&&s(l,"BAD_INDENT",tw);let m=p.end,y=u?e(n,u,p,s):t(n,m,o,null,p,s);n.schema.compat&&tg(r.indent,u,s),tb(n,a.items,y)&&s(m,"DUPLICATE_KEY","Map keys must be unique");let g=tm(f??[],{indicator:"map-value-ind",next:h,offset:y.range[2],onError:s,startOnNewline:!u||"block-scalar"===u.type});if(l=g.end,g.found){d&&(h?.type!=="block-map"||g.hasNewline||s(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&p.start0){let e=tv(d,m,n.options.strict,s);e.comment&&(c.comment?c.comment+="\n"+e.comment:c.comment=e.comment),c.range=[r.offset,m,e.offset]}else c.range=[r.offset,m,m];return c}(e,t,n,r,i),a=o.constructor;return"!"===s||s===a.tagName?o.tag=a.tagName:s&&(o.tag=s),o}function tA(e,t,n){let r=e.offset,s=function({offset:e,props:t},n,r){if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:s}=t[0],i=s[0],o=0,a="",l=-1;for(let t=1;t=0;--e){let t=o[e][1];if(""===t||"\r"===t)a=e;else break}if(0===a){let t="+"===s.chomp&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"",n=r+s.length;return e.source&&(n+=e.source.length),{value:t,type:i,comment:s.comment,range:[r,n,n]}}let l=e.indent+s.indent,c=e.offset+s.length,u=0;for(let e=0;el&&(l=t.length);else{t.length=a;--e)o[e][0].length>l&&(a=e+1);let f="",h="",p=!1;for(let e=0;el||" "===r[0]?(" "===h?h="\n":p||"\n"!==h||(h="\n\n"),f+=h+t.slice(l)+r,h="\n",p=!0):""===r?"\n"===h?f+="\n":h="\n":(f+=h+r,h=" ",p=!1)}switch(s.chomp){case"-":break;case"+":for(let e=a;en(i+e,t,r);switch(o){case"scalar":r=F.PLAIN,s=function(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),tO(e)}(a,c);break;case"single-quoted-scalar":r=F.QUOTE_SINGLE,("'"!==a[a.length-1]||1===a.length)&&c(a.length,"MISSING_CHAR","Missing closing 'quote"),s=tO(a.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":r=F.QUOTE_DOUBLE,s=function(e,t){let n="";for(let r=1;rt?e.slice(t,r+1):s)}else n+=s}}return('"'!==e[e.length-1]||1===e.length)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(a,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[i,i+a.length,i+a.length]}}let u=i+a.length,f=tv(l,u,t,n);return{value:s,type:r,comment:f.comment,range:[i,u,f.offset]}}function tO(e){let t,n;try{t=RegExp("(.*?)(?r(n,"TAG_RESOLVE_FAILED",e)):null,f=n&&c?function(e,t,n,r,s){if("!"===n)return e[u];let i=[];for(let t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;i.push(t)}for(let e of i)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(s(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[u])}(e.schema,i,c,n,r):"scalar"===t.type?function({directives:e,schema:t},n,r,s){let i=t.tags.find(e=>e.default&&e.test?.test(n))||t[u];if(t.compat){let o=t.compat.find(e=>e.default&&e.test?.test(n))??t[u];if(i.tag!==o.tag){let t=e.tagString(i.tag),n=e.tagString(o.tag),a=`Value may be parsed as either ${t} or ${n}`;s(r,"TAG_RESOLVE_FAILED",a,!0)}}return i}(e,i,t,r):e.schema[u];try{let o=f.resolve(i,e=>r(n??t,"TAG_RESOLVE_FAILED",e),e.options);s=g(o)?o:new F(o)}catch(o){let e=o instanceof Error?o.message:String(o);r(n??t,"TAG_RESOLVE_FAILED",e),s=new F(i)}return s.range=l,s.source=i,o&&(s.type=o),c&&(s.tag=c),f.format&&(s.format=f.format),a&&(s.comment=a),s}let tL={composeNode:tx,composeEmptyNode:tC};function tx(e,t,n,r){let s;let{spaceBefore:i,comment:o,anchor:a,tag:l}=n,c=!0;switch(t.type){case"alias":s=function({options:e},{offset:t,source:n,end:r},s){let i=new R(n.substring(1));""===i.source&&s(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&s(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=t+n.length,a=tv(r,o,e.strict,s);return i.range=[t,o,a.offset],a.comment&&(i.comment=a.comment),i}(e,t,r),(a||l)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":s=tI(e,t,l,r),a&&(s.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":s=function(e,t,n,r,s){let i=r?t.directives.tagName(r.source,e=>s(r,"TAG_RESOLVE_FAILED",e)):null,o="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq";if(!r||!i||"!"===i||i===eS.tagName&&"map"===o||i===eN.tagName&&"seq"===o||!o)return tS(e,t,n,s,i);let a=t.schema.tags.find(e=>e.tag===i&&e.collection===o);if(!a){let l=t.schema.knownTags[i];if(!l||l.collection!==o)return l?.collection?s(r,"BAD_COLLECTION_TYPE",`${l.tag} used for ${o} collection, but expects ${l.collection}`,!0):s(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),tS(e,t,n,s,i);t.schema.tags.push(Object.assign({},l,{default:!1})),a=l}let l=tS(e,t,n,s,i,a),c=a.resolve?.(l,e=>s(r,"TAG_RESOLVE_FAILED",e),t.options)??l,u=v(c)?c:new F(c);return u.range=l.range,u.tag=i,a?.format&&(u.format=a.format),u}(tL,e,t,l,r),a&&(s.anchor=a.source.substring(1));break;default:{let i="error"===t.type?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",i),s=tC(e,t.offset,void 0,null,n,r),c=!1}}return a&&""===s.anchor&&r(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(s.spaceBefore=!0),o&&("scalar"===t.type&&""===t.source?s.comment=o:s.commentBefore=o),e.options.keepSourceTokens&&c&&(s.srcToken=t),s}function tC(e,t,n,r,{spaceBefore:s,comment:i,anchor:o,tag:a,end:l},c){let u={type:"scalar",offset:function(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];n?.type==="space";)e+=n.source.length,n=t[++r];break}}return e}(t,n,r),indent:-1,source:""},f=tI(e,u,a,c);return o&&(f.anchor=o.source.substring(1),""===f.anchor&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),s&&(f.spaceBefore=!0),i&&(f.comment=i,f.range[2]=l),f}function tB(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}function t$(e){let t="",n=!1,r=!1;for(let s=0;s{let s=tB(e);r?this.warnings.push(new tp(s,t,n)):this.errors.push(new th(s,t,n))},this.directives=new _({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=t$(this.prelude);if(n){let s=e.contents;if(t)e.comment=e.comment?`${e.comment} -${n}`:n;else if(r||e.directives.docStart||!s)e.commentBefore=n;else if(w(s)&&!s.flow&&s.items.length>0){let e=s.items[0];y(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n} -${t}`:n}else{let e=s.commentBefore;s.commentBefore=e?`${n} -${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:t$(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,n,r)=>{let s=tB(e);s[0]+=t,this.onError(s,"BAD_DIRECTIVE",n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=function(e,t,{offset:n,start:r,value:s,end:i},o){let a=Object.assign({_directives:t},e),l=new tc(void 0,a),c={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=tm(r,{indicator:"doc-start",next:s??i?.[0],offset:n,onError:o,startOnNewline:!0});u.found&&(l.directives.docStart=!0,s&&("block-map"===s.type||"block-seq"===s.type)&&!u.hasNewline&&o(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=s?tx(c,s,u,o):tC(c,u.end,r,null,u,o);let f=l.contents.range[2],h=tv(i,f,!1,o);return h.comment&&(l.comment=h.comment),l.range=[n,f,h.offset],l}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new th(tB(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){this.errors.push(new th(tB(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let t=tv(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e} -${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new th(tB(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=Object.assign({_directives:this.directives},this.options),n=new tc(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}}function tM(e,t=!0,n){if(e){let r=(e,t,r)=>{let s="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(n)n(s,t,r);else throw new th([s,s+1],t,r)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return tN(e,t,r);case"block-scalar":return tA(e,t,r)}}return null}function tj(e,t){let{implicitKey:n=!1,indent:r,inFlow:s=!1,offset:i=-1,type:o="PLAIN"}=t,a=el({type:o,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:r,source:"\n"}];switch(a[0]){case"|":case">":{let e=a.indexOf("\n"),t=a.substring(0,e),n=a.substring(e+1)+"\n",s=[{type:"block-scalar-header",offset:i,indent:r,source:t}];return tD(s,l)||s.push({type:"newline",offset:-1,indent:r,source:"\n"}),{type:"block-scalar",offset:i,indent:r,props:s,source:n}}case'"':return{type:"double-quoted-scalar",offset:i,indent:r,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:i,indent:r,source:a,end:l};default:return{type:"scalar",offset:i,indent:r,source:a,end:l}}}function tU(e,t,n={}){let{afterKey:r=!1,implicitKey:s=!1,inFlow:i=!1,type:o}=n,a="indent"in e?e.indent:null;if(r&&"number"==typeof a&&(a+=2),!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");o=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let l=el({type:o,value:t},{implicitKey:s||null===a,indent:null!==a&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":!function(e,t){let n=t.indexOf("\n"),r=t.substring(0,n),s=t.substring(n+1)+"\n";if("block-scalar"===e.type){let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");t.source=r,e.source=s}else{let{offset:t}=e,n="indent"in e?e.indent:-1,i=[{type:"block-scalar-header",offset:t,indent:n,source:r}];for(let t of(tD(i,"end"in e?e.end:void 0)||i.push({type:"newline",offset:-1,indent:n,source:"\n"}),Object.keys(e)))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:n,props:i,source:s})}}(e,l);break;case'"':tP(e,l,"double-quoted-scalar");break;case"'":tP(e,l,"single-quoted-scalar");break;default:tP(e,l,"scalar")}}function tD(e,t){if(t)for(let n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function tP(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{let r=e.props.slice(1),s=t.length;for(let t of("block-scalar-header"===e.props[0].type&&(s-=e.props[0].source.length),r))t.offset+=s;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{let r=e.offset+t.length,s={type:"newline",offset:r,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:n,source:t,end:[s]});break}default:{let r="indent"in e?e.indent:-1,s="end"in e&&Array.isArray(e.end)?e.end.filter(e=>"space"===e.type||"comment"===e.type||"newline"===e.type):[];for(let t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:s})}}}let tq=e=>"type"in e?tR(e):tK(e);function tR(e){switch(e.type){case"block-scalar":{let t="";for(let n of e.props)t+=tR(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(let n of e.items)t+=tK(n);return t}case"flow-collection":{let t=e.start.source;for(let n of e.items)t+=tK(n);for(let n of e.end)t+=n.source;return t}case"document":{let t=tK(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function tK({start:e,key:t,sep:n,value:r}){let s="";for(let t of e)s+=t.source;if(t&&(s+=tR(t)),n)for(let e of n)s+=e.source;return r&&(s+=tR(r)),s}let tF=Symbol("break visit"),tY=Symbol("skip children"),tV=Symbol("remove item");function tJ(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,n,r){let s=r(n,t);if("symbol"==typeof s)return s;for(let i of["key","value"]){let o=n[i];if(o&&"items"in o){for(let n=0;n{let n=e;for(let[e,r]of t){let t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},tJ.parentCollection=(e,t)=>{let n=tJ.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],s=n?.[r];if(s&&"items"in s)return s;throw Error("Parent collection not found")};let tW="\uFEFF",tG="\x02",tQ="\x18",tH="\x1f",tX=e=>!!e&&"items"in e,tz=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type);function tZ(e){switch(e){case tW:return"";case tG:return"";case tQ:return"";case tH:return"";default:return JSON.stringify(e)}}function t0(e){switch(e){case tW:return"byte-order-mark";case tG:return"doc-mode";case tQ:return"flow-error-end";case tH:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function t1(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}let t2="0123456789ABCDEFabcdef".split(""),t6="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),t8=",[]{}".split(""),t5=" ,[]{}\n\r ".split(""),t4=e=>!e||t5.includes(e);class t3{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||" "===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){let t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"!==t&&!(n>=this.indentNext)&&(t||this.atEnd)?-1:e+n}if("-"===t||"."===t){let t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&t1(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return(("number"!=typeof e||-1!==e&&ethis.indentValue&&!t1(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&t1(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(t4),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader())+(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let n=-1;do(e=yield*this.pushNewline())>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(null===r)return this.setNext("flow");if(-1!==n&&n"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil(e=>t1(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{let e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let e=t-1,r=this.buffer[e];"\r"===r&&(r=this.buffer[--e]);let s=e;for(;" "===r||" "===r;)r=this.buffer[--e];if("\n"===r&&e>=this.pos&&e+1+n>s)t=e;else break}return yield tH,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e;let t=this.flowLevel>0,n=this.pos-1,r=this.pos-1;for(;e=this.buffer[++r];)if(":"===e){let e=this.buffer[r+1];if(t1(e)||t&&","===e)break;n=r}else if(t1(e)){let s=this.buffer[r+1];if("\r"===e&&("\n"===s?(r+=1,e="\n",s=this.buffer[r+1]):n=r),"#"===s||t&&t8.includes(s))break;if("\n"===e){let e=this.continueScalar(r+1);if(-1===e)break;r=Math.max(r,e-2)}}else{if(t&&t8.includes(e))break;n=r}return e||this.atEnd?(yield tH,yield*this.pushToIndex(n+1,!0),t?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(t4))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,t=this.charAt(1);if(t1(t)||e&&t8.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!t1(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(t6.includes(t))t=this.buffer[++e];else if("%"===t&&t2.includes(this.buffer[e+1])&&t2.includes(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do t=this.buffer[++n];while(" "===t||e&&" "===t);let r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class t9{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function ns(e){if("flow-seq-start"===e.start.type)for(let t of e.items)!t.sep||t.value||t7(t.start,"explicit-key-ind")||t7(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,nt(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class ni{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new t3,this.onNewLine=e}*parse(e,t=!1){for(let n of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,t)))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=t0(e);if(t){if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){let e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){let e=this.peek(1);if("doc-end"===this.type&&(!e||"doc-end"!==e.type)){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(t){if(0===this.stack.length)yield t;else{let e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&ns(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!t7(n.start,"explicit-key-ind");return}break}case"block-seq":{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===t.type||"block-seq"===t.type)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===ne(n.start)&&(0===t.indent||n.start.every(e=>"comment"!==e.type||e.indent=e.indent){let n=!this.onKeyLine&&this.indent===e.indent&&t.sep,r=[];if(n&&t.sep&&!t.value){let n=[];for(let r=0;re.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(r=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":n||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":t.sep||t7(t.start,"explicit-key-ind")?n||t.value?(r.push(this.sourceToken),e.items.push({start:r})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):t.start.push(this.sourceToken),this.onKeyLine=!0;return;case"map-value-ind":if(t7(t.start,"explicit-key-ind")){if(t.sep){if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t7(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(nt(t.key)&&!t7(t.sep,"newline")){let e=nr(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken)}else if(t7(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=nr(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else t.sep?t.value||n?e.items.push({start:r,key:null,sep:[this.sourceToken]}):t7(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let s=this.flowScalar(this.type);n||t.value?(e.items.push({start:r,key:s,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(s):(Object.assign(t,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{let s=this.startBlockValue(e);if(s){n&&"block-seq"!==s.type&&t7(t.start,"explicit-key-ind")&&e.items.push({start:r}),this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;r?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||t7(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do yield*this.pop(),e=this.peek(1);while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if("block-map"!==t.type||("map-value-ind"!==this.type||t.indent!==e.indent)&&("newline"!==this.type||t.items[t.items.length-1].sep)){if("map-value-ind"===this.type&&"flow-collection"!==t.type){let n=nn(t),r=nr(n);ns(e);let s=e.end.splice(1,e.end.length);s.push(this.sourceToken);let i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=nn(e),n=nr(t);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n}]}}case"map-value-ind":{this.onKeyLine=!0;let t=nn(e),n=nr(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every(e=>"newline"===e.type||"space"===e.type)}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function no(e){let t=!1!==e.prettyErrors,n=e.lineCounter||t&&new t9||null;return{lineCounter:n,prettyErrors:t}}function na(e,t={}){let{lineCounter:n,prettyErrors:r}=no(t),s=new ni(n?.addNewLine),i=new t_(t),o=Array.from(i.compose(s.parse(e)));if(r&&n)for(let t of o)t.errors.forEach(td(e,n)),t.warnings.forEach(td(e,n));return o.length>0?o:Object.assign([],{empty:!0},i.streamInfo())}function nl(e,t={}){let{lineCounter:n,prettyErrors:r}=no(t),s=new ni(n?.addNewLine),i=new t_(t),o=null;for(let t of i.compose(s.parse(e),!0,e.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new th(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=t;return r&&n&&(o.errors.forEach(td(e,n)),o.warnings.forEach(td(e,n))),o}function nc(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);let s=nl(e,n);if(!s)return null;if(s.warnings.forEach(e=>eh(s.options.logLevel,e)),s.errors.length>0){if("silent"!==s.options.logLevel)throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:r},n))}function nu(e,t,n){let r=null;if("function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=n??t??{};if(!e)return}return new tc(e,r,n).toString(n)}var nf=i}}]); \ No newline at end of file diff --git a/_next/static/chunks/539-ad9c25cc02d6d9d3.js b/_next/static/chunks/539-ad9c25cc02d6d9d3.js new file mode 100644 index 0000000..852c8ad --- /dev/null +++ b/_next/static/chunks/539-ad9c25cc02d6d9d3.js @@ -0,0 +1,26 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[539],{6304:function(module,__unused_webpack_exports,__webpack_require__){module=__webpack_require__.nmd(module),function _f(self){"use strict";let Y;try{module&&(self=module)}catch(e){}function u(ee){return void 0===ee||ee}function aa(ee){let en=Array(ee);for(let er=0;er=eo))));en++);if(er)return es?ta(ed,eo,0):void(en[en.length]=ed)}return!er&&ed}function ta(ee,en,er){return ee=1===ee.length?ee[0]:[].concat.apply([],ee),er||ee.length>en?ee.slice(er,er+en):ee}function ua(ee,en,er,eo){return ee=er?(ee=ee[(eo=eo&&en>er)?en:er])&&ee[eo?er:en]:ee[en]}function N(ee,en,er,eo,ei){let es=0;if(ee.constructor===Array){if(ei)-1!==(en=ee.indexOf(en))?1=this.B&&(eh||!ef[eg])){var es=L(em,eo,ex),eu="";switch(this.G){case"full":if(2es;ec--)if(ec-es>=this.B){var ed=L(em,eo,ex,ei,es);M(this,ef,eu=eg.substring(es,ec),ed,ee,er)}break}case"reverse":if(1=this.B&&M(this,ef,eu,L(em,eo,ex,ei,ec),ee,er);eu=""}case"forward":if(1=this.B&&M(this,ef,eu,es,ee,er);break}default:if(this.C&&(es=Math.min(es/this.C(en,eg,ex)|0,em-1)),M(this,ef,eg,es,ee,er),eh&&1=this.B&&!ei[eg]){ei[eg]=1;let en=this.l&&eg>es;M(this,ep,en?es:eg,L(eu+(eo/2>eu?0:1),eo,ex,ec-1,ed-1),ee,er,en?eg:es)}}}}}this.m||(this.register[ee]=1)}}return this},t.search=function(ee,en,er){let eo,ei,es;er||(!en&&C(ee)?ee=(er=ee).query:C(en)&&(er=en));let eu=[],ec,ed,ep=0;if(er){ee=er.query||ee,en=er.limit,ep=er.offset||0;var ef=er.context;ed=er.suggest}if(ee&&1<(ec=(ee=this.encode(""+ee)).length)){er=v();var eh=[];for(let en=0,eo=0,ei;en=this.B&&!er[ei]){if(!this.s&&!ed&&!this.map[ei])return eu;eh[eo++]=ei,er[ei]=1}ec=(ee=eh).length}if(!ec)return eu;for(en||(en=100),ef=this.depth&&1en||er)&&(ei=ei.slice(er,er+en)),eo&&(ei=za.call(this,ei)),{tag:ee,result:ei}}function za(ee){let en=Array(ee.length);for(let er=0,eo;er2?er.slice(1-er.length).join("."):en.source=en.resource,en.git_suffix=/\.git$/.test(en.pathname),en.name=decodeURIComponent((en.pathname||en.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),en.owner=decodeURIComponent(en.user),en.source){case"git.cloudforge.com":en.owner=en.user,en.organization=er[0],en.source="cloudforge.com";break;case"visualstudio.com":if("vs-ssh.visualstudio.com"===en.resource){4===(ei=en.name.split("/")).length&&(en.organization=ei[1],en.owner=ei[2],en.name=ei[3],en.full_name=ei[2]+"/"+ei[3]);break}2===(ei=en.name.split("/")).length?(en.owner=ei[1],en.name=ei[1],en.full_name="_git/"+en.name):3===ei.length?(en.name=ei[2],"DefaultCollection"===ei[0]?(en.owner=ei[2],en.organization=ei[0],en.full_name=en.organization+"/_git/"+en.name):(en.owner=ei[0],en.full_name=en.owner+"/_git/"+en.name)):4===ei.length&&(en.organization=ei[0],en.owner=ei[1],en.name=ei[3],en.full_name=en.organization+"/"+en.owner+"/_git/"+en.name);break;case"dev.azure.com":case"azure.com":if("ssh.dev.azure.com"===en.resource){4===(ei=en.name.split("/")).length&&(en.organization=ei[1],en.owner=ei[2],en.name=ei[3]);break}5===(ei=en.name.split("/")).length?(en.organization=ei[0],en.owner=ei[1],en.name=ei[4],en.full_name="_git/"+en.name):3===ei.length?(en.name=ei[2],"DefaultCollection"===ei[0]?(en.owner=ei[2],en.organization=ei[0],en.full_name=en.organization+"/_git/"+en.name):(en.owner=ei[0],en.full_name=en.owner+"/_git/"+en.name)):4===ei.length&&(en.organization=ei[0],en.owner=ei[1],en.name=ei[3],en.full_name=en.organization+"/"+en.owner+"/_git/"+en.name),en.query&&en.query.path&&(en.filepath=en.query.path.replace(/^\/+/g,"")),en.query&&en.query.version&&(en.ref=en.query.version.replace(/^GB/,""));break;default:var es=(ei=en.name.split("/")).length-1;if(ei.length>=2){var eu=ei.indexOf("-",2),ec=ei.indexOf("blob",2),ed=ei.indexOf("tree",2),ep=ei.indexOf("commit",2),ef=ei.indexOf("src",2),eh=ei.indexOf("raw",2),em=ei.indexOf("edit",2);es=eu>0?eu-1:ec>0?ec-1:ed>0?ed-1:ep>0?ep-1:ef>0?ef-1:eh>0?eh-1:em>0?em-1:es,en.owner=ei.slice(0,es).join("/"),en.name=ei[es],ep&&(en.commit=ei[es+2])}en.ref="",en.filepathtype="",en.filepath="";var ex=ei.length>es&&"-"===ei[es+1]?es+1:es;ei.length>ex+2&&["raw","src","blob","tree","edit"].indexOf(ei[ex+1])>=0&&(en.filepathtype=ei[ex+1],en.ref=ei[ex+2],ei.length>ex+3&&(en.filepath=ei.slice(ex+3).join("/"))),en.organization=en.owner}!en.full_name&&(en.full_name=en.owner,en.name&&(en.full_name&&(en.full_name+="/"),en.full_name+=en.name)),en.owner.startsWith("scm/")&&(en.source="bitbucket-server",en.owner=en.owner.replace("scm/",""),en.organization=en.owner,en.full_name=en.owner+"/"+en.name);var eg=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/.exec(en.pathname);return null!=eg&&(en.source="bitbucket-server","users"===eg[1]?en.owner="~"+eg[2]:en.owner=eg[2],en.organization=en.owner,en.name=eg[3],(ei=eg[4].split("/")).length>1&&(["raw","browse"].indexOf(ei[1])>=0?(en.filepathtype=ei[1],ei.length>2&&(en.filepath=ei.slice(2).join("/"))):"commits"===ei[1]&&ei.length>2&&(en.commit=ei[2])),en.full_name=en.owner+"/"+en.name,en.query.at?en.ref=en.query.at:en.ref=""),en}/*! + * buildToken + * Builds OAuth token prefix (helper function) + * + * @name buildToken + * @function + * @param {GitUrl} obj The parsed Git url object. + * @return {String} token prefix + */function buildToken(ee){return"bitbucket.org"===ee.source?"x-token-auth:"+ee.token+"@":ee.token+"@"}function buildPath(ee){return"bitbucket-server"===ee.source?"scm/"+ee.full_name:""+ee.full_name}gitUrlParse.stringify=function(ee,en){en=en||(ee.protocols&&ee.protocols.length?ee.protocols.join("+"):ee.protocol);var er=ee.port?":"+ee.port:"",eo=ee.user||"git",ei=ee.git_suffix?".git":"";switch(en){case"ssh":if(er)return"ssh://"+eo+"@"+ee.resource+er+"/"+ee.full_name+ei;return eo+"@"+ee.resource+":"+ee.full_name+ei;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return en+"://"+eo+"@"+ee.resource+er+"/"+ee.full_name+ei;case"http":case"https":return en+"://"+(ee.token?buildToken(ee):ee.user&&(ee.protocols.includes("http")||ee.protocols.includes("https"))?ee.user+"@":"")+ee.resource+er+"/"+buildPath(ee)+ei;default:return ee.href}},ee.exports=gitUrlParse},6337:function(){!function(){"use strict";if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var ee=function(ee){for(var en=ee,er=getFrameElement(en);er;)er=getFrameElement(en=er.ownerDocument);return en}(window.document),en=[],er=null,eo=null;IntersectionObserver.prototype.THROTTLE_TIMEOUT=100,IntersectionObserver.prototype.POLL_INTERVAL=null,IntersectionObserver.prototype.USE_MUTATION_OBSERVER=!0,IntersectionObserver._setupCrossOriginUpdater=function(){return er||(er=function(ee,er){eo=ee&&er?convertFromParentRect(ee,er):getEmptyRect(),en.forEach(function(ee){ee._checkForIntersections()})}),er},IntersectionObserver._resetCrossOriginUpdater=function(){er=null,eo=null},IntersectionObserver.prototype.observe=function(ee){if(!this._observationTargets.some(function(en){return en.element==ee})){if(!(ee&&1==ee.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:ee,entry:null}),this._monitorIntersections(ee.ownerDocument),this._checkForIntersections()}},IntersectionObserver.prototype.unobserve=function(ee){this._observationTargets=this._observationTargets.filter(function(en){return en.element!=ee}),this._unmonitorIntersections(ee.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},IntersectionObserver.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},IntersectionObserver.prototype.takeRecords=function(){var ee=this._queuedEntries.slice();return this._queuedEntries=[],ee},IntersectionObserver.prototype._initThresholds=function(ee){var en=ee||[0];return Array.isArray(en)||(en=[en]),en.sort().filter(function(ee,en,er){if("number"!=typeof ee||isNaN(ee)||ee<0||ee>1)throw Error("threshold must be a number between 0 and 1 inclusively");return ee!==er[en-1]})},IntersectionObserver.prototype._parseRootMargin=function(ee){var en=(ee||"0px").split(/\s+/).map(function(ee){var en=/^(-?\d*\.?\d+)(px|%)$/.exec(ee);if(!en)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(en[1]),unit:en[2]}});return en[1]=en[1]||en[0],en[2]=en[2]||en[0],en[3]=en[3]||en[1],en},IntersectionObserver.prototype._monitorIntersections=function(en){var er=en.defaultView;if(er&&-1==this._monitoringDocuments.indexOf(en)){var eo=this._checkForIntersections,ei=null,es=null;if(this.POLL_INTERVAL?ei=er.setInterval(eo,this.POLL_INTERVAL):(addEvent(er,"resize",eo,!0),addEvent(en,"scroll",eo,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in er&&(es=new er.MutationObserver(eo)).observe(en,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(en),this._monitoringUnsubscribes.push(function(){var ee=en.defaultView;ee&&(ei&&ee.clearInterval(ei),removeEvent(ee,"resize",eo,!0)),removeEvent(en,"scroll",eo,!0),es&&es.disconnect()}),en!=(this.root&&(this.root.ownerDocument||this.root)||ee)){var eu=getFrameElement(en);eu&&this._monitorIntersections(eu.ownerDocument)}}},IntersectionObserver.prototype._unmonitorIntersections=function(en){var er=this._monitoringDocuments.indexOf(en);if(-1!=er){var eo=this.root&&(this.root.ownerDocument||this.root)||ee;if(!this._observationTargets.some(function(ee){var er=ee.element.ownerDocument;if(er==en)return!0;for(;er&&er!=eo;){var ei=getFrameElement(er);if((er=ei&&ei.ownerDocument)==en)return!0}return!1})){var ei=this._monitoringUnsubscribes[er];if(this._monitoringDocuments.splice(er,1),this._monitoringUnsubscribes.splice(er,1),ei(),en!=eo){var es=getFrameElement(en);es&&this._unmonitorIntersections(es.ownerDocument)}}}},IntersectionObserver.prototype._unmonitorAllIntersections=function(){var ee=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var en=0;enen.indexOf(this)&&en.push(this)},IntersectionObserver.prototype._unregisterInstance=function(){var ee=en.indexOf(this);-1!=ee&&en.splice(ee,1)},window.IntersectionObserver=IntersectionObserver,window.IntersectionObserverEntry=IntersectionObserverEntry}function getFrameElement(ee){try{return ee.defaultView&&ee.defaultView.frameElement||null}catch(ee){return null}}function IntersectionObserverEntry(ee){this.time=ee.time,this.target=ee.target,this.rootBounds=ensureDOMRect(ee.rootBounds),this.boundingClientRect=ensureDOMRect(ee.boundingClientRect),this.intersectionRect=ensureDOMRect(ee.intersectionRect||getEmptyRect()),this.isIntersecting=!!ee.intersectionRect;var en=this.boundingClientRect,er=en.width*en.height,eo=this.intersectionRect,ei=eo.width*eo.height;er?this.intersectionRatio=Number((ei/er).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function IntersectionObserver(ee,en){var er=en||{};if("function"!=typeof ee)throw Error("callback must be a function");if(er.root&&1!=er.root.nodeType&&9!=er.root.nodeType)throw Error("root must be a Document or Element");this._checkForIntersections=throttle(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=ee,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(er.rootMargin),this.thresholds=this._initThresholds(er.threshold),this.root=er.root||null,this.rootMargin=this._rootMarginValues.map(function(ee){return ee.value+ee.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function now(){return window.performance&&performance.now&&performance.now()}function throttle(ee,en){var er=null;return function(){er||(er=setTimeout(function(){ee(),er=null},en))}}function addEvent(ee,en,er,eo){"function"==typeof ee.addEventListener?ee.addEventListener(en,er,eo||!1):"function"==typeof ee.attachEvent&&ee.attachEvent("on"+en,er)}function removeEvent(ee,en,er,eo){"function"==typeof ee.removeEventListener?ee.removeEventListener(en,er,eo||!1):"function"==typeof ee.detachEvent&&ee.detachEvent("on"+en,er)}function computeRectIntersection(ee,en){var er=Math.max(ee.top,en.top),eo=Math.min(ee.bottom,en.bottom),ei=Math.max(ee.left,en.left),es=Math.min(ee.right,en.right),eu=es-ei,ec=eo-er;return eu>=0&&ec>=0&&{top:er,bottom:eo,left:ei,right:es,width:eu,height:ec}||null}function getBoundingClientRect(ee){var en;try{en=ee.getBoundingClientRect()}catch(ee){}return en?(en.width&&en.height||(en={top:en.top,right:en.right,bottom:en.bottom,left:en.left,width:en.right-en.left,height:en.bottom-en.top}),en):getEmptyRect()}function getEmptyRect(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function ensureDOMRect(ee){return!ee||"x"in ee?ee:{top:ee.top,y:ee.top,bottom:ee.bottom,left:ee.left,x:ee.left,right:ee.right,width:ee.width,height:ee.height}}function convertFromParentRect(ee,en){var er=en.top-ee.top,eo=en.left-ee.left;return{top:er,left:eo,height:en.height,width:en.width,bottom:er+en.height,right:eo+en.width}}function containsDeep(ee,en){for(var er=en;er;){if(er==ee)return!0;er=getParentNode(er)}return!1}function getParentNode(en){var er=en.parentNode;return 9==en.nodeType&&en!=ee?getFrameElement(en):(er&&er.assignedSlot&&(er=er.assignedSlot.parentNode),er&&11==er.nodeType&&er.host)?er.host:er}function isDoc(ee){return ee&&9===ee.nodeType}}()},9073:function(ee,en,er){"use strict";var eo=er(2337);function isSsh(ee){if(Array.isArray(ee))return -1!==ee.indexOf("ssh")||-1!==ee.indexOf("rsync");if("string"!=typeof ee)return!1;var en=eo(ee);if(ee=ee.substring(ee.indexOf("://")+3),isSsh(en))return!0;var er=RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!ee.match(er)&&ee.indexOf("@")-1}function listCacheSet(ee,en){var er=this.__data__,eo=assocIndexOf(er,ee);return eo<0?er.push([ee,en]):er[eo][1]=en,this}function MapCache(ee){var en=-1,er=ee?ee.length:0;for(this.clear();++en{}).then(()=>{if(ee.parentElement&&ee.isConnected){if("empty"!==en&&ei(!0),null==er?void 0:er.current){let en=new Event("load");Object.defineProperty(en,"target",{writable:!1,value:ee});let eo=!1,ei=!1;er.current({...en,nativeEvent:en,currentTarget:ee,target:ee,isDefaultPrevented:()=>eo,isPropagationStopped:()=>ei,persist:()=>{},preventDefault:()=>{eo=!0,en.preventDefault()},stopPropagation:()=>{ei=!0,en.stopPropagation()}})}(null==eo?void 0:eo.current)&&eo.current(ee)}})}function getDynamicProps(ee){let[en,er]=es.version.split("."),eo=parseInt(en,10),ei=parseInt(er,10);return eo>18||18===eo&&ei>=3?{fetchPriority:ee}:{fetchpriority:ee}}let eg=(0,es.forwardRef)((ee,en)=>{let{src:er,srcSet:eo,sizes:ei,height:eu,width:ec,decoding:ed,className:ep,style:ef,fetchPriority:eh,placeholder:em,loading:ex,unoptimized:eg,fill:ev,onLoadRef:ey,onLoadingCompleteRef:eb,setBlurComplete:e_,setShowAltText:ew,onLoad:ek,onError:eC,...eT}=ee;return es.default.createElement("img",{...eT,...getDynamicProps(eh),loading:ex,width:ec,height:eu,decoding:ed,"data-nimg":ev?"fill":"1",className:ep,style:ef,sizes:ei,srcSet:eo,src:er,ref:(0,es.useCallback)(ee=>{en&&("function"==typeof en?en(ee):"object"==typeof en&&(en.current=ee)),ee&&(eC&&(ee.src=ee.src),ee.complete&&handleLoading(ee,em,ey,eb,e_,eg))},[er,em,ey,eb,e_,eC,eg,en]),onLoad:ee=>{let en=ee.currentTarget;handleLoading(en,em,ey,eb,e_,eg)},onError:ee=>{ew(!0),"empty"!==em&&e_(!0),eC&&eC(ee)}})});function ImagePreload(ee){let{isAppRouter:en,imgAttributes:er}=ee,eo={as:"image",imageSrcSet:er.srcSet,imageSizes:er.sizes,crossOrigin:er.crossOrigin,referrerPolicy:er.referrerPolicy,...getDynamicProps(er.fetchPriority)};return en&&eu.default.preload?(eu.default.preload(er.src,eo),null):es.default.createElement(ec.default,null,es.default.createElement("link",{key:"__nimg-"+er.src+er.srcSet+er.sizes,rel:"preload",href:er.srcSet?void 0:er.src,...eo}))}let ev=(0,es.forwardRef)((ee,en)=>{let er=(0,es.useContext)(eh.RouterContext),eo=!er,ei=(0,es.useContext)(ef.ImageConfigContext),eu=(0,es.useMemo)(()=>{let ee=ex||ei||ep.imageConfigDefault,en=[...ee.deviceSizes,...ee.imageSizes].sort((ee,en)=>ee-en),er=ee.deviceSizes.sort((ee,en)=>ee-en);return{...ee,allSizes:en,deviceSizes:er}},[ei]),{onLoad:ec,onLoadingComplete:ev}=ee,ey=(0,es.useRef)(ec);(0,es.useEffect)(()=>{ey.current=ec},[ec]);let eb=(0,es.useRef)(ev);(0,es.useEffect)(()=>{eb.current=ev},[ev]);let[e_,ew]=(0,es.useState)(!1),[ek,eC]=(0,es.useState)(!1),{props:eT,meta:eS}=(0,ed.getImgProps)(ee,{defaultLoader:em.default,imgConf:eu,blurComplete:e_,showAltText:ek});return es.default.createElement(es.default.Fragment,null,es.default.createElement(eg,{...eT,unoptimized:eS.unoptimized,placeholder:eS.placeholder,fill:eS.fill,onLoadRef:ey,onLoadingCompleteRef:eb,setBlurComplete:ew,setShowAltText:eC,ref:en}),eS.priority?es.default.createElement(ImagePreload,{isAppRouter:eo,imgAttributes:eT}):null)});("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},5170:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"default",{enumerable:!0,get:function(){return e_}});let eo=er(8754),ei=eo._(er(7294)),es=er(4450),eu=er(2227),ec=er(4364),ed=er(109),ep=er(3607),ef=er(1823),eh=er(9031),em=er(920),ex=er(30),eg=er(7192),ev=er(7498),ey=new Set;function prefetch(ee,en,er,eo,ei,es){if(!es&&!(0,eu.isLocalURL)(en))return;if(!eo.bypassPrefetchedCheck){let ei=void 0!==eo.locale?eo.locale:"locale"in ee?ee.locale:void 0,es=en+"%"+er+"%"+ei;if(ey.has(es))return;ey.add(es)}let ec=es?ee.prefetch(en,ei):ee.prefetch(en,er,eo);Promise.resolve(ec).catch(ee=>{})}function isModifiedEvent(ee){let en=ee.currentTarget,er=en.getAttribute("target");return er&&"_self"!==er||ee.metaKey||ee.ctrlKey||ee.shiftKey||ee.altKey||ee.nativeEvent&&2===ee.nativeEvent.which}function linkClicked(ee,en,er,eo,es,ec,ed,ep,ef,eh){let{nodeName:em}=ee.currentTarget,ex="A"===em.toUpperCase();if(ex&&(isModifiedEvent(ee)||!ef&&!(0,eu.isLocalURL)(er)))return;ee.preventDefault();let navigate=()=>{let ee=null==ed||ed;"beforePopState"in en?en[es?"replace":"push"](er,eo,{shallow:ec,locale:ep,scroll:ee}):en[es?"replace":"push"](eo||er,{forceOptimisticNavigation:!eh,scroll:ee})};ef?ei.default.startTransition(navigate):navigate()}function formatStringOrUrl(ee){return"string"==typeof ee?ee:(0,ec.formatUrl)(ee)}let eb=ei.default.forwardRef(function(ee,en){let er,eo;let{href:eu,as:ec,children:ey,prefetch:eb=null,passHref:e_,replace:ew,shallow:ek,scroll:eC,locale:eT,onClick:eS,onMouseEnter:eE,onTouchStart:eO,legacyBehavior:ej=!1,...eI}=ee;er=ey,ej&&("string"==typeof er||"number"==typeof er)&&(er=ei.default.createElement("a",null,er));let eP=ei.default.useContext(ef.RouterContext),eR=ei.default.useContext(eh.AppRouterContext),eN=null!=eP?eP:eR,eZ=!eP,eM=!1!==eb,eA=null===eb?ev.PrefetchKind.AUTO:ev.PrefetchKind.FULL,{href:eL,as:eD}=ei.default.useMemo(()=>{if(!eP){let ee=formatStringOrUrl(eu);return{href:ee,as:ec?formatStringOrUrl(ec):ee}}let[ee,en]=(0,es.resolveHref)(eP,eu,!0);return{href:ee,as:ec?(0,es.resolveHref)(eP,ec):en||ee}},[eP,eu,ec]),eF=ei.default.useRef(eL),ez=ei.default.useRef(eD);ej&&(eo=ei.default.Children.only(er));let eV=ej?eo&&"object"==typeof eo&&eo.ref:en,[eU,e$,eH]=(0,em.useIntersection)({rootMargin:"200px"}),eB=ei.default.useCallback(ee=>{(ez.current!==eD||eF.current!==eL)&&(eH(),ez.current=eD,eF.current=eL),eU(ee),eV&&("function"==typeof eV?eV(ee):"object"==typeof eV&&(eV.current=ee))},[eD,eV,eL,eH,eU]);ei.default.useEffect(()=>{eN&&e$&&eM&&prefetch(eN,eL,eD,{locale:eT},{kind:eA},eZ)},[eD,eL,e$,eT,eM,null==eP?void 0:eP.locale,eN,eZ,eA]);let eW={ref:eB,onClick(ee){ej||"function"!=typeof eS||eS(ee),ej&&eo.props&&"function"==typeof eo.props.onClick&&eo.props.onClick(ee),eN&&!ee.defaultPrevented&&linkClicked(ee,eN,eL,eD,ew,ek,eC,eT,eZ,eM)},onMouseEnter(ee){ej||"function"!=typeof eE||eE(ee),ej&&eo.props&&"function"==typeof eo.props.onMouseEnter&&eo.props.onMouseEnter(ee),eN&&(eM||!eZ)&&prefetch(eN,eL,eD,{locale:eT,priority:!0,bypassPrefetchedCheck:!0},{kind:eA},eZ)},onTouchStart(ee){ej||"function"!=typeof eO||eO(ee),ej&&eo.props&&"function"==typeof eo.props.onTouchStart&&eo.props.onTouchStart(ee),eN&&(eM||!eZ)&&prefetch(eN,eL,eD,{locale:eT,priority:!0,bypassPrefetchedCheck:!0},{kind:eA},eZ)}};if((0,ed.isAbsoluteUrl)(eD))eW.href=eD;else if(!ej||e_||"a"===eo.type&&!("href"in eo.props)){let ee=void 0!==eT?eT:null==eP?void 0:eP.locale,en=(null==eP?void 0:eP.isLocaleDomain)&&(0,ex.getDomainLocale)(eD,ee,null==eP?void 0:eP.locales,null==eP?void 0:eP.domainLocales);eW.href=en||(0,eg.addBasePath)((0,ep.addLocale)(eD,ee,null==eP?void 0:eP.defaultLocale))}return ej?ei.default.cloneElement(eo,eW):ei.default.createElement("a",{...eI,...eW},er)}),e_=eb;("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},920:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let eo=er(7294),ei=er(3436),es="function"==typeof IntersectionObserver,eu=new Map,ec=[];function createObserver(ee){let en;let er={root:ee.root||null,margin:ee.rootMargin||""},eo=ec.find(ee=>ee.root===er.root&&ee.margin===er.margin);if(eo&&(en=eu.get(eo)))return en;let ei=new Map,es=new IntersectionObserver(ee=>{ee.forEach(ee=>{let en=ei.get(ee.target),er=ee.isIntersecting||ee.intersectionRatio>0;en&&er&&en(er)})},ee);return en={id:er,observer:es,elements:ei},ec.push(er),eu.set(er,en),en}function observe(ee,en,er){let{id:eo,observer:ei,elements:es}=createObserver(er);return es.set(ee,en),ei.observe(ee),function(){if(es.delete(ee),ei.unobserve(ee),0===es.size){ei.disconnect(),eu.delete(eo);let ee=ec.findIndex(ee=>ee.root===eo.root&&ee.margin===eo.margin);ee>-1&&ec.splice(ee,1)}}}function useIntersection(ee){let{rootRef:en,rootMargin:er,disabled:eu}=ee,ec=eu||!es,[ed,ep]=(0,eo.useState)(!1),ef=(0,eo.useRef)(null),eh=(0,eo.useCallback)(ee=>{ef.current=ee},[]);(0,eo.useEffect)(()=>{if(es){if(ec||ed)return;let ee=ef.current;if(ee&&ee.tagName){let eo=observe(ee,ee=>ee&&ep(ee),{root:null==en?void 0:en.current,rootMargin:er});return eo}}else if(!ed){let ee=(0,ei.requestIdleCallback)(()=>ep(!0));return()=>(0,ei.cancelIdleCallback)(ee)}},[ec,er,en,ed,ef.current]);let em=(0,eo.useCallback)(()=>{ep(!1)},[]);return[eh,ed,em]}("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},3914:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"getImgProps",{enumerable:!0,get:function(){return getImgProps}}),er(1905);let eo=er(2393),ei=er(5494);function isStaticRequire(ee){return void 0!==ee.default}function isStaticImageData(ee){return void 0!==ee.src}function isStaticImport(ee){return"object"==typeof ee&&(isStaticRequire(ee)||isStaticImageData(ee))}function getInt(ee){return void 0===ee?ee:"number"==typeof ee?Number.isFinite(ee)?ee:NaN:"string"==typeof ee&&/^[0-9]+$/.test(ee)?parseInt(ee,10):NaN}function getWidths(ee,en,er){let{deviceSizes:eo,allSizes:ei}=ee;if(er){let ee=/(^|\s)(1?\d?\d)vw/g,en=[];for(let eo;eo=ee.exec(er);eo)en.push(parseInt(eo[2]));if(en.length){let ee=.01*Math.min(...en);return{widths:ei.filter(en=>en>=eo[0]*ee),kind:"w"}}return{widths:ei,kind:"w"}}if("number"!=typeof en)return{widths:eo,kind:"w"};let es=[...new Set([en,2*en].map(ee=>ei.find(en=>en>=ee)||ei[ei.length-1]))];return{widths:es,kind:"x"}}function generateImgAttrs(ee){let{config:en,src:er,unoptimized:eo,width:ei,quality:es,sizes:eu,loader:ec}=ee;if(eo)return{src:er,srcSet:void 0,sizes:void 0};let{widths:ed,kind:ep}=getWidths(en,ei,eu),ef=ed.length-1;return{sizes:eu||"w"!==ep?eu:"100vw",srcSet:ed.map((ee,eo)=>ec({config:en,src:er,quality:es,width:ee})+" "+("w"===ep?ee:eo+1)+ep).join(", "),src:ec({config:en,src:er,quality:es,width:ed[ef]})}}function getImgProps(ee,en){let er,es,eu,{src:ec,sizes:ed,unoptimized:ep=!1,priority:ef=!1,loading:eh,className:em,quality:ex,width:eg,height:ev,fill:ey=!1,style:eb,onLoad:e_,onLoadingComplete:ew,placeholder:ek="empty",blurDataURL:eC,fetchPriority:eT,layout:eS,objectFit:eE,objectPosition:eO,lazyBoundary:ej,lazyRoot:eI,...eP}=ee,{imgConf:eR,showAltText:eN,blurComplete:eZ,defaultLoader:eM}=en,eA=eR||ei.imageConfigDefault;if("allSizes"in eA)er=eA;else{let ee=[...eA.deviceSizes,...eA.imageSizes].sort((ee,en)=>ee-en),en=eA.deviceSizes.sort((ee,en)=>ee-en);er={...eA,allSizes:ee,deviceSizes:en}}let eL=eP.loader||eM;delete eP.loader,delete eP.srcSet;let eD="__next_img_default"in eL;if(eD){if("custom"===er.loader)throw Error('Image with src "'+ec+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let ee=eL;eL=en=>{let{config:er,...eo}=en;return ee(eo)}}if(eS){"fill"===eS&&(ey=!0);let ee={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},en={responsive:"100vw",fill:"100vw"},er=ee[eS];er&&(eb={...eb,...er});let eo=en[eS];eo&&!ed&&(ed=eo)}let eF="",ez=getInt(eg),eV=getInt(ev);if(isStaticImport(ec)){let ee=isStaticRequire(ec)?ec.default:ec;if(!ee.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(ee));if(!ee.height||!ee.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(ee));if(es=ee.blurWidth,eu=ee.blurHeight,eC=eC||ee.blurDataURL,eF=ee.src,!ey){if(ez||eV){if(ez&&!eV){let en=ez/ee.width;eV=Math.round(ee.height*en)}else if(!ez&&eV){let en=eV/ee.height;ez=Math.round(ee.width*en)}}else ez=ee.width,eV=ee.height}}let eU=!ef&&("lazy"===eh||void 0===eh);(!(ec="string"==typeof ec?ec:eF)||ec.startsWith("data:")||ec.startsWith("blob:"))&&(ep=!0,eU=!1),er.unoptimized&&(ep=!0),eD&&ec.endsWith(".svg")&&!er.dangerouslyAllowSVG&&(ep=!0),ef&&(eT="high");let e$=getInt(ex),eH=Object.assign(ey?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:eE,objectPosition:eO}:{},eN?{}:{color:"transparent"},eb),eB=eZ||"empty"===ek?null:"blur"===ek?'url("data:image/svg+xml;charset=utf-8,'+(0,eo.getImageBlurSvg)({widthInt:ez,heightInt:eV,blurWidth:es,blurHeight:eu,blurDataURL:eC||"",objectFit:eH.objectFit})+'")':'url("'+ek+'")',eW=eB?{backgroundSize:eH.objectFit||"cover",backgroundPosition:eH.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:eB}:{},eG=generateImgAttrs({config:er,src:ec,unoptimized:ep,width:ez,quality:e$,sizes:ed,loader:eL}),eK={...eP,loading:eU?"lazy":eh,fetchPriority:eT,width:ez,height:eV,decoding:"async",className:em,style:{...eH,...eW},sizes:eG.sizes,srcSet:eG.srcSet,src:eG.src},eX={unoptimized:ep,priority:ef,placeholder:ek,fill:ey};return{props:eK,meta:eX}}},2393:function(ee,en){"use strict";function getImageBlurSvg(ee){let{widthInt:en,heightInt:er,blurWidth:eo,blurHeight:ei,blurDataURL:es,objectFit:eu}=ee,ec=20,ed=eo?40*eo:en,ep=ei?40*ei:er,ef=ed&&ep?"viewBox='0 0 "+ed+" "+ep+"'":"",eh=ef?"none":"contain"===eu?"xMidYMid":"cover"===eu?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+ef+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+ec+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+ec+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+eh+"' style='filter: url(%23b);' href='"+es+"'/%3E%3C/svg%3E"}Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"getImageBlurSvg",{enumerable:!0,get:function(){return getImageBlurSvg}})},645:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),function(ee,en){for(var er in en)Object.defineProperty(ee,er,{enumerable:!0,get:en[er]})}(en,{unstable_getImgProps:function(){return unstable_getImgProps},default:function(){return ed}});let eo=er(8754),ei=er(3914),es=er(1905),eu=er(3271),ec=eo._(er(4545)),unstable_getImgProps=ee=>{(0,es.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:en}=(0,ei.getImgProps)(ee,{defaultLoader:ec.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/serverless-iiif/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[ee,er]of Object.entries(en))void 0===er&&delete en[ee];return{props:en}},ed=eu.Image},4545:function(ee,en){"use strict";function defaultLoader(ee){let{config:en,src:er,width:eo,quality:ei}=ee;return en.path+"?url="+encodeURIComponent(er)+"&w="+eo+"&q="+(ei||75)}Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"default",{enumerable:!0,get:function(){return er}}),defaultLoader.__next_img_default=!0;let er=defaultLoader},597:function(ee,en,er){var eo,ei=er(3454);er(1479);var es=er(7294),eu=function(ee){return ee&&"object"==typeof ee&&"default"in ee?ee:{default:ee}}(es);function _defineProperties(ee,en){for(var er=0;er>>0},ep={};function computeId(ee,en){if(!en)return"jsx-"+ee;var er=String(en),eo=ee+er;return ep[eo]||(ep[eo]="jsx-"+stringHash(ee+"-"+er)),ep[eo]}function computeSelector(ee,en){var er=/__jsx-style-dynamic-selector/g,eo=ee+en;return ep[eo]||(ep[eo]=en.replace(er,ee)),ep[eo]}function mapRulesToStyle(ee,en){return void 0===en&&(en={}),ee.map(function(ee){var er=ee[0],eo=ee[1];return eu.default.createElement("style",{id:"__"+er,key:"__"+er,nonce:en.nonce?en.nonce:void 0,dangerouslySetInnerHTML:{__html:eo}})})}var ef=function(){function StyleSheetRegistry(ee){var en=void 0===ee?{}:ee,er=en.styleSheet,eo=void 0===er?null:er,ei=en.optimizeForSpeed,es=void 0!==ei&&ei;this._sheet=eo||new ed({name:"styled-jsx",optimizeForSpeed:es}),this._sheet.inject(),eo&&"boolean"==typeof es&&(this._sheet.setOptimizeForSpeed(es),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var ee=StyleSheetRegistry.prototype;return ee.add=function(ee){var en=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(ee.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(ee,en){return ee[en]=0,ee},{}));var er=this.getIdAndRules(ee),eo=er.styleId,ei=er.rules;if(eo in this._instancesCounts){this._instancesCounts[eo]+=1;return}var es=ei.map(function(ee){return en._sheet.insertRule(ee)}).filter(function(ee){return -1!==ee});this._indices[eo]=es,this._instancesCounts[eo]=1},ee.remove=function(ee){var en=this,er=this.getIdAndRules(ee).styleId;if(invariant(er in this._instancesCounts,"styleId: `"+er+"` not found"),this._instancesCounts[er]-=1,this._instancesCounts[er]<1){var eo=this._fromServer&&this._fromServer[er];eo?(eo.parentNode.removeChild(eo),delete this._fromServer[er]):(this._indices[er].forEach(function(ee){return en._sheet.deleteRule(ee)}),delete this._indices[er]),delete this._instancesCounts[er]}},ee.update=function(ee,en){this.add(en),this.remove(ee)},ee.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},ee.cssRules=function(){var ee=this,en=this._fromServer?Object.keys(this._fromServer).map(function(en){return[en,ee._fromServer[en]]}):[],er=this._sheet.cssRules();return en.concat(Object.keys(this._indices).map(function(en){return[en,ee._indices[en].map(function(ee){return er[ee].cssText}).join(ee._optimizeForSpeed?"":"\n")]}).filter(function(ee){return!!ee[1]}))},ee.styles=function(ee){return mapRulesToStyle(this.cssRules(),ee)},ee.getIdAndRules=function(ee){var en=ee.children,er=ee.dynamic,eo=ee.id;if(er){var ei=computeId(eo,er);return{styleId:ei,rules:Array.isArray(en)?en.map(function(ee){return computeSelector(ei,ee)}):[computeSelector(ei,en)]}}return{styleId:computeId(eo),rules:Array.isArray(en)?en:[en]}},ee.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(ee,en){return ee[en.id.slice(2)]=en,ee},{})},StyleSheetRegistry}();function invariant(ee,en){if(!ee)throw Error("StyleSheetRegistry: "+en+".")}var eh=es.createContext(null);function createStyleRegistry(){return new ef}function StyleRegistry(ee){var en=ee.registry,er=ee.children,eo=es.useContext(eh),ei=es.useState(function(){return eo||en||createStyleRegistry()})[0];return eu.default.createElement(eh.Provider,{value:ei},er)}function useStyleRegistry(){return es.useContext(eh)}eh.displayName="StyleSheetContext";var em=eu.default.useInsertionEffect||eu.default.useLayoutEffect,ex=createStyleRegistry();function JSXStyle(ee){var en=ex||useStyleRegistry();return en&&em(function(){return en.add(ee),function(){en.remove(ee)}},[ee.id,String(ee.dynamic)]),null}JSXStyle.dynamic=function(ee){return ee.map(function(ee){return computeId(ee[0],ee[1])}).join(" ")},eo=StyleRegistry,eo=createStyleRegistry,en.style=JSXStyle},5379:function(ee,en,er){"use strict";ee.exports=er(597).style},1479:function(){},9128:function(){},1864:function(ee){var en="/";!function(){"use strict";var er={114:function(ee){function assertPath(ee){if("string"!=typeof ee)throw TypeError("Path must be a string. Received "+JSON.stringify(ee))}function normalizeStringPosix(ee,en){for(var er,eo="",ei=0,es=-1,eu=0,ec=0;ec<=ee.length;++ec){if(ec2){var ed=eo.lastIndexOf("/");if(ed!==eo.length-1){-1===ed?(eo="",ei=0):ei=(eo=eo.slice(0,ed)).length-1-eo.lastIndexOf("/"),es=ec,eu=0;continue}}else if(2===eo.length||1===eo.length){eo="",ei=0,es=ec,eu=0;continue}}en&&(eo.length>0?eo+="/..":eo="..",ei=2)}else eo.length>0?eo+="/"+ee.slice(es+1,ec):eo=ee.slice(es+1,ec),ei=ec-es-1;es=ec,eu=0}else 46===er&&-1!==eu?++eu:eu=-1}return eo}function _format(ee,en){var er=en.dir||en.root,eo=en.base||(en.name||"")+(en.ext||"");return er?er===en.root?er+eo:er+ee+eo:eo}var en={resolve:function(){for(var ee,en,er="",eo=!1,ei=arguments.length-1;ei>=-1&&!eo;ei--)ei>=0?en=arguments[ei]:(void 0===ee&&(ee=""),en=ee),assertPath(en),0!==en.length&&(er=en+"/"+er,eo=47===en.charCodeAt(0));return(er=normalizeStringPosix(er,!eo),eo)?er.length>0?"/"+er:"/":er.length>0?er:"."},normalize:function(ee){if(assertPath(ee),0===ee.length)return".";var en=47===ee.charCodeAt(0),er=47===ee.charCodeAt(ee.length-1);return(0!==(ee=normalizeStringPosix(ee,!en)).length||en||(ee="."),ee.length>0&&er&&(ee+="/"),en)?"/"+ee:ee},isAbsolute:function(ee){return assertPath(ee),ee.length>0&&47===ee.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var ee,er=0;er0&&(void 0===ee?ee=eo:ee+="/"+eo)}return void 0===ee?".":en.normalize(ee)},relative:function(ee,er){if(assertPath(ee),assertPath(er),ee===er||(ee=en.resolve(ee))===(er=en.resolve(er)))return"";for(var eo=1;eoed){if(47===er.charCodeAt(eu+ef))return er.slice(eu+ef+1);if(0===ef)return er.slice(eu+ef)}else es>ed&&(47===ee.charCodeAt(eo+ef)?ep=ef:0===ef&&(ep=0));break}var eh=ee.charCodeAt(eo+ef);if(eh!==er.charCodeAt(eu+ef))break;47===eh&&(ep=ef)}var em="";for(ef=eo+ep+1;ef<=ei;++ef)(ef===ei||47===ee.charCodeAt(ef))&&(0===em.length?em+="..":em+="/..");return em.length>0?em+er.slice(eu+ep):(eu+=ep,47===er.charCodeAt(eu)&&++eu,er.slice(eu))},_makeLong:function(ee){return ee},dirname:function(ee){if(assertPath(ee),0===ee.length)return".";for(var en=ee.charCodeAt(0),er=47===en,eo=-1,ei=!0,es=ee.length-1;es>=1;--es)if(47===(en=ee.charCodeAt(es))){if(!ei){eo=es;break}}else ei=!1;return -1===eo?er?"/":".":er&&1===eo?"//":ee.slice(0,eo)},basename:function(ee,en){if(void 0!==en&&"string"!=typeof en)throw TypeError('"ext" argument must be a string');assertPath(ee);var er,eo=0,ei=-1,es=!0;if(void 0!==en&&en.length>0&&en.length<=ee.length){if(en.length===ee.length&&en===ee)return"";var eu=en.length-1,ec=-1;for(er=ee.length-1;er>=0;--er){var ed=ee.charCodeAt(er);if(47===ed){if(!es){eo=er+1;break}}else -1===ec&&(es=!1,ec=er+1),eu>=0&&(ed===en.charCodeAt(eu)?-1==--eu&&(ei=er):(eu=-1,ei=ec))}return eo===ei?ei=ec:-1===ei&&(ei=ee.length),ee.slice(eo,ei)}for(er=ee.length-1;er>=0;--er)if(47===ee.charCodeAt(er)){if(!es){eo=er+1;break}}else -1===ei&&(es=!1,ei=er+1);return -1===ei?"":ee.slice(eo,ei)},extname:function(ee){assertPath(ee);for(var en=-1,er=0,eo=-1,ei=!0,es=0,eu=ee.length-1;eu>=0;--eu){var ec=ee.charCodeAt(eu);if(47===ec){if(!ei){er=eu+1;break}continue}-1===eo&&(ei=!1,eo=eu+1),46===ec?-1===en?en=eu:1!==es&&(es=1):-1!==en&&(es=-1)}return -1===en||-1===eo||0===es||1===es&&en===eo-1&&en===er+1?"":ee.slice(en,eo)},format:function(ee){if(null===ee||"object"!=typeof ee)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ee);return _format("/",ee)},parse:function(ee){assertPath(ee);var en,er={root:"",dir:"",base:"",ext:"",name:""};if(0===ee.length)return er;var eo=ee.charCodeAt(0),ei=47===eo;ei?(er.root="/",en=1):en=0;for(var es=-1,eu=0,ec=-1,ed=!0,ep=ee.length-1,ef=0;ep>=en;--ep){if(47===(eo=ee.charCodeAt(ep))){if(!ed){eu=ep+1;break}continue}-1===ec&&(ed=!1,ec=ep+1),46===eo?-1===es?es=ep:1!==ef&&(ef=1):-1!==es&&(ef=-1)}return -1===es||-1===ec||0===ef||1===ef&&es===ec-1&&es===eu+1?-1!==ec&&(0===eu&&ei?er.base=er.name=ee.slice(1,ec):er.base=er.name=ee.slice(eu,ec)):(0===eu&&ei?(er.name=ee.slice(1,es),er.base=ee.slice(1,ec)):(er.name=ee.slice(eu,es),er.base=ee.slice(eu,ec)),er.ext=ee.slice(es,ec)),eu>0?er.dir=ee.slice(0,eu-1):ei&&(er.dir="/"),er},sep:"/",delimiter:":",win32:null,posix:null};en.posix=en,ee.exports=en}},eo={};function __nccwpck_require__(ee){var en=eo[ee];if(void 0!==en)return en.exports;var ei=eo[ee]={exports:{}},es=!0;try{er[ee](ei,ei.exports,__nccwpck_require__),es=!1}finally{es&&delete eo[ee]}return ei.exports}__nccwpck_require__.ab=en+"/";var ei=__nccwpck_require__(114);ee.exports=ei}()},7663:function(ee){var en="/";!function(){var er={229:function(ee){var en,er,eo,ei=ee.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(ee){if(en===setTimeout)return setTimeout(ee,0);if((en===defaultSetTimout||!en)&&setTimeout)return en=setTimeout,setTimeout(ee,0);try{return en(ee,0)}catch(er){try{return en.call(null,ee,0)}catch(er){return en.call(this,ee,0)}}}function runClearTimeout(ee){if(er===clearTimeout)return clearTimeout(ee);if((er===defaultClearTimeout||!er)&&clearTimeout)return er=clearTimeout,clearTimeout(ee);try{return er(ee)}catch(en){try{return er.call(null,ee)}catch(en){return er.call(this,ee)}}}!function(){try{en="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(ee){en=defaultSetTimout}try{er="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(ee){er=defaultClearTimeout}}();var es=[],eu=!1,ec=-1;function cleanUpNextTick(){eu&&eo&&(eu=!1,eo.length?es=eo.concat(es):ec=-1,es.length&&drainQueue())}function drainQueue(){if(!eu){var ee=runTimeout(cleanUpNextTick);eu=!0;for(var en=es.length;en;){for(eo=es,es=[];++ec1)for(var er=1;er{en(!0)},[]),ee}var eT=er(7222),eS="https://nextra.vercel.app",useFSRoute=()=>{let{locale:ee=eT.ZW,asPath:en,route:er}=(0,ew.useRouter)();return(0,ek.useMemo)(()=>{let eo=eT.hV.has(er)?er:en,{pathname:ei}=new URL(eo,eS),es=ee?ei.replace(RegExp(`\\.${ee}(\\/|$)`),"$1"):ei;return es.replace(/\.html$/,"").replace(/\/index(\/|$)/,"$1").replace(/\/$/,"")||"/"},[en,ee,er])},eE=er(9575),eO=er(4861);!function(ee){function assertIs(ee){}function assertNever(ee){throw Error()}function joinValues(ee,en=" | "){return ee.map(ee=>"string"==typeof ee?`'${ee}'`:ee).join(en)}ee.assertEqual=ee=>ee,ee.assertIs=assertIs,ee.assertNever=assertNever,ee.arrayToEnum=ee=>{let en={};for(let er of ee)en[er]=er;return en},ee.getValidEnumValues=en=>{let er=ee.objectKeys(en).filter(ee=>"number"!=typeof en[en[ee]]),eo={};for(let ee of er)eo[ee]=en[ee];return ee.objectValues(eo)},ee.objectValues=en=>ee.objectKeys(en).map(function(ee){return en[ee]}),ee.objectKeys="function"==typeof Object.keys?ee=>Object.keys(ee):ee=>{let en=[];for(let er in ee)Object.prototype.hasOwnProperty.call(ee,er)&&en.push(er);return en},ee.find=(ee,en)=>{for(let er of ee)if(en(er))return er},ee.isInteger="function"==typeof Number.isInteger?ee=>Number.isInteger(ee):ee=>"number"==typeof ee&&isFinite(ee)&&Math.floor(ee)===ee,ee.joinValues=joinValues,ee.jsonStringifyReplacer=(ee,en)=>"bigint"==typeof en?en.toString():en}(eg||(eg={})),function(ee){ee.mergeShapes=(ee,en)=>({...ee,...en})}(ev||(ev={}));let ej=eg.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),getParsedType=ee=>{let en=typeof ee;switch(en){case"undefined":return ej.undefined;case"string":return ej.string;case"number":return isNaN(ee)?ej.nan:ej.number;case"boolean":return ej.boolean;case"function":return ej.function;case"bigint":return ej.bigint;case"symbol":return ej.symbol;case"object":if(Array.isArray(ee))return ej.array;if(null===ee)return ej.null;if(ee.then&&"function"==typeof ee.then&&ee.catch&&"function"==typeof ee.catch)return ej.promise;if("undefined"!=typeof Map&&ee instanceof Map)return ej.map;if("undefined"!=typeof Set&&ee instanceof Set)return ej.set;if("undefined"!=typeof Date&&ee instanceof Date)return ej.date;return ej.object;default:return ej.unknown}},eI=eg.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),quotelessJson=ee=>{let en=JSON.stringify(ee,null,2);return en.replace(/"([^"]+)":/g,"$1:")};let ZodError=class ZodError extends Error{constructor(ee){super(),this.issues=[],this.addIssue=ee=>{this.issues=[...this.issues,ee]},this.addIssues=(ee=[])=>{this.issues=[...this.issues,...ee]};let en=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,en):this.__proto__=en,this.name="ZodError",this.issues=ee}get errors(){return this.issues}format(ee){let en=ee||function(ee){return ee.message},er={_errors:[]},processError=ee=>{for(let eo of ee.issues)if("invalid_union"===eo.code)eo.unionErrors.map(processError);else if("invalid_return_type"===eo.code)processError(eo.returnTypeError);else if("invalid_arguments"===eo.code)processError(eo.argumentsError);else if(0===eo.path.length)er._errors.push(en(eo));else{let ee=er,ei=0;for(;eiee.message){let en={},er=[];for(let eo of this.issues)eo.path.length>0?(en[eo.path[0]]=en[eo.path[0]]||[],en[eo.path[0]].push(ee(eo))):er.push(ee(eo));return{formErrors:er,fieldErrors:en}}get formErrors(){return this.flatten()}};ZodError.create=ee=>{let en=new ZodError(ee);return en};let errorMap=(ee,en)=>{let er;switch(ee.code){case eI.invalid_type:er=ee.received===ej.undefined?"Required":`Expected ${ee.expected}, received ${ee.received}`;break;case eI.invalid_literal:er=`Invalid literal value, expected ${JSON.stringify(ee.expected,eg.jsonStringifyReplacer)}`;break;case eI.unrecognized_keys:er=`Unrecognized key(s) in object: ${eg.joinValues(ee.keys,", ")}`;break;case eI.invalid_union:er="Invalid input";break;case eI.invalid_union_discriminator:er=`Invalid discriminator value. Expected ${eg.joinValues(ee.options)}`;break;case eI.invalid_enum_value:er=`Invalid enum value. Expected ${eg.joinValues(ee.options)}, received '${ee.received}'`;break;case eI.invalid_arguments:er="Invalid function arguments";break;case eI.invalid_return_type:er="Invalid function return type";break;case eI.invalid_date:er="Invalid date";break;case eI.invalid_string:"object"==typeof ee.validation?"includes"in ee.validation?(er=`Invalid input: must include "${ee.validation.includes}"`,"number"==typeof ee.validation.position&&(er=`${er} at one or more positions greater than or equal to ${ee.validation.position}`)):"startsWith"in ee.validation?er=`Invalid input: must start with "${ee.validation.startsWith}"`:"endsWith"in ee.validation?er=`Invalid input: must end with "${ee.validation.endsWith}"`:eg.assertNever(ee.validation):er="regex"!==ee.validation?`Invalid ${ee.validation}`:"Invalid";break;case eI.too_small:er="array"===ee.type?`Array must contain ${ee.exact?"exactly":ee.inclusive?"at least":"more than"} ${ee.minimum} element(s)`:"string"===ee.type?`String must contain ${ee.exact?"exactly":ee.inclusive?"at least":"over"} ${ee.minimum} character(s)`:"number"===ee.type?`Number must be ${ee.exact?"exactly equal to ":ee.inclusive?"greater than or equal to ":"greater than "}${ee.minimum}`:"date"===ee.type?`Date must be ${ee.exact?"exactly equal to ":ee.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(ee.minimum))}`:"Invalid input";break;case eI.too_big:er="array"===ee.type?`Array must contain ${ee.exact?"exactly":ee.inclusive?"at most":"less than"} ${ee.maximum} element(s)`:"string"===ee.type?`String must contain ${ee.exact?"exactly":ee.inclusive?"at most":"under"} ${ee.maximum} character(s)`:"number"===ee.type?`Number must be ${ee.exact?"exactly":ee.inclusive?"less than or equal to":"less than"} ${ee.maximum}`:"bigint"===ee.type?`BigInt must be ${ee.exact?"exactly":ee.inclusive?"less than or equal to":"less than"} ${ee.maximum}`:"date"===ee.type?`Date must be ${ee.exact?"exactly":ee.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(ee.maximum))}`:"Invalid input";break;case eI.custom:er="Invalid input";break;case eI.invalid_intersection_types:er="Intersection results could not be merged";break;case eI.not_multiple_of:er=`Number must be a multiple of ${ee.multipleOf}`;break;case eI.not_finite:er="Number must be finite";break;default:er=en.defaultError,eg.assertNever(ee)}return{message:er}},eP=errorMap;function setErrorMap(ee){eP=ee}function getErrorMap(){return eP}let makeIssue=ee=>{let{data:en,path:er,errorMaps:eo,issueData:ei}=ee,es=[...er,...ei.path||[]],eu={...ei,path:es},ec="",ed=eo.filter(ee=>!!ee).slice().reverse();for(let ee of ed)ec=ee(eu,{data:en,defaultError:ec}).message;return{...ei,path:es,message:ei.message||ec}},eR=[];function addIssueToContext(ee,en){let er=makeIssue({issueData:en,data:ee.data,path:ee.path,errorMaps:[ee.common.contextualErrorMap,ee.schemaErrorMap,getErrorMap(),errorMap].filter(ee=>!!ee)});ee.common.issues.push(er)}let ParseStatus=class ParseStatus{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(ee,en){let er=[];for(let eo of en){if("aborted"===eo.status)return eN;"dirty"===eo.status&&ee.dirty(),er.push(eo.value)}return{status:ee.value,value:er}}static async mergeObjectAsync(ee,en){let er=[];for(let ee of en)er.push({key:await ee.key,value:await ee.value});return ParseStatus.mergeObjectSync(ee,er)}static mergeObjectSync(ee,en){let er={};for(let eo of en){let{key:en,value:ei}=eo;if("aborted"===en.status||"aborted"===ei.status)return eN;"dirty"===en.status&&ee.dirty(),"dirty"===ei.status&&ee.dirty(),"__proto__"!==en.value&&(void 0!==ei.value||eo.alwaysSet)&&(er[en.value]=ei.value)}return{status:ee.value,value:er}}};let eN=Object.freeze({status:"aborted"}),DIRTY=ee=>({status:"dirty",value:ee}),OK=ee=>({status:"valid",value:ee}),isAborted=ee=>"aborted"===ee.status,isDirty=ee=>"dirty"===ee.status,isValid=ee=>"valid"===ee.status,isAsync=ee=>"undefined"!=typeof Promise&&ee instanceof Promise;!function(ee){ee.errToObj=ee=>"string"==typeof ee?{message:ee}:ee||{},ee.toString=ee=>"string"==typeof ee?ee:null==ee?void 0:ee.message}(ey||(ey={}));let ParseInputLazyPath=class ParseInputLazyPath{constructor(ee,en,er,eo){this._cachedPath=[],this.parent=ee,this.data=en,this._path=er,this._key=eo}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}};let handleResult=(ee,en)=>{if(isValid(en))return{success:!0,data:en.value};if(!ee.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let en=new ZodError(ee.common.issues);return this._error=en,this._error}}};function processCreateParams(ee){if(!ee)return{};let{errorMap:en,invalid_type_error:er,required_error:eo,description:ei}=ee;if(en&&(er||eo))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(en)return{errorMap:en,description:ei};let customMap=(ee,en)=>"invalid_type"!==ee.code?{message:en.defaultError}:void 0===en.data?{message:null!=eo?eo:en.defaultError}:{message:null!=er?er:en.defaultError};return{errorMap:customMap,description:ei}}let ZodType=class ZodType{constructor(ee){this.spa=this.safeParseAsync,this._def=ee,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(ee){return getParsedType(ee.data)}_getOrReturnCtx(ee,en){return en||{common:ee.parent.common,data:ee.data,parsedType:getParsedType(ee.data),schemaErrorMap:this._def.errorMap,path:ee.path,parent:ee.parent}}_processInputParams(ee){return{status:new ParseStatus,ctx:{common:ee.parent.common,data:ee.data,parsedType:getParsedType(ee.data),schemaErrorMap:this._def.errorMap,path:ee.path,parent:ee.parent}}}_parseSync(ee){let en=this._parse(ee);if(isAsync(en))throw Error("Synchronous parse encountered promise.");return en}_parseAsync(ee){let en=this._parse(ee);return Promise.resolve(en)}parse(ee,en){let er=this.safeParse(ee,en);if(er.success)return er.data;throw er.error}safeParse(ee,en){var er;let eo={common:{issues:[],async:null!==(er=null==en?void 0:en.async)&&void 0!==er&&er,contextualErrorMap:null==en?void 0:en.errorMap},path:(null==en?void 0:en.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:ee,parsedType:getParsedType(ee)},ei=this._parseSync({data:ee,path:eo.path,parent:eo});return handleResult(eo,ei)}async parseAsync(ee,en){let er=await this.safeParseAsync(ee,en);if(er.success)return er.data;throw er.error}async safeParseAsync(ee,en){let er={common:{issues:[],contextualErrorMap:null==en?void 0:en.errorMap,async:!0},path:(null==en?void 0:en.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:ee,parsedType:getParsedType(ee)},eo=this._parse({data:ee,path:er.path,parent:er}),ei=await (isAsync(eo)?eo:Promise.resolve(eo));return handleResult(er,ei)}refine(ee,en){let getIssueProperties=ee=>"string"==typeof en||void 0===en?{message:en}:"function"==typeof en?en(ee):en;return this._refinement((en,er)=>{let eo=ee(en),setError=()=>er.addIssue({code:eI.custom,...getIssueProperties(en)});return"undefined"!=typeof Promise&&eo instanceof Promise?eo.then(ee=>!!ee||(setError(),!1)):!!eo||(setError(),!1)})}refinement(ee,en){return this._refinement((er,eo)=>!!ee(er)||(eo.addIssue("function"==typeof en?en(er,eo):en),!1))}_refinement(ee){return new ZodEffects({schema:this,typeName:eb.ZodEffects,effect:{type:"refinement",refinement:ee}})}superRefine(ee){return this._refinement(ee)}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this,this._def)}promise(){return ZodPromise.create(this,this._def)}or(ee){return ZodUnion.create([this,ee],this._def)}and(ee){return ZodIntersection.create(this,ee,this._def)}transform(ee){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:eb.ZodEffects,effect:{type:"transform",transform:ee}})}default(ee){let en="function"==typeof ee?ee:()=>ee;return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:en,typeName:eb.ZodDefault})}brand(){return new ZodBranded({typeName:eb.ZodBranded,type:this,...processCreateParams(this._def)})}catch(ee){let en="function"==typeof ee?ee:()=>ee;return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:en,typeName:eb.ZodCatch})}describe(ee){let en=this.constructor;return new en({...this._def,description:ee})}pipe(ee){return ZodPipeline.create(this,ee)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};let eZ=/^c[^\s-]{8,}$/i,eM=/^[a-z][a-z0-9]*$/,eA=/^[0-9A-HJKMNP-TV-Z]{26}$/,eL=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,eD=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,eF="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ez=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,eV=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,datetimeRegex=ee=>ee.precision?ee.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${ee.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${ee.precision}}Z$`):0===ee.precision?ee.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):ee.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function isValidIP(ee,en){return!!(("v4"===en||!en)&&ez.test(ee)||("v6"===en||!en)&&eV.test(ee))}let ZodString=class ZodString extends ZodType{_parse(ee){let en;this._def.coerce&&(ee.data=String(ee.data));let er=this._getType(ee);if(er!==ej.string){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.string,received:en.parsedType}),eN}let ei=new ParseStatus;for(let er of this._def.checks)if("min"===er.kind)ee.data.lengther.value&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.too_big,maximum:er.value,type:"string",inclusive:!0,exact:!1,message:er.message}),ei.dirty());else if("length"===er.kind){let eo=ee.data.length>er.value,es=ee.data.lengthee.test(en),{validation:en,code:eI.invalid_string,...ey.errToObj(er)})}_addCheck(ee){return new ZodString({...this._def,checks:[...this._def.checks,ee]})}email(ee){return this._addCheck({kind:"email",...ey.errToObj(ee)})}url(ee){return this._addCheck({kind:"url",...ey.errToObj(ee)})}emoji(ee){return this._addCheck({kind:"emoji",...ey.errToObj(ee)})}uuid(ee){return this._addCheck({kind:"uuid",...ey.errToObj(ee)})}cuid(ee){return this._addCheck({kind:"cuid",...ey.errToObj(ee)})}cuid2(ee){return this._addCheck({kind:"cuid2",...ey.errToObj(ee)})}ulid(ee){return this._addCheck({kind:"ulid",...ey.errToObj(ee)})}ip(ee){return this._addCheck({kind:"ip",...ey.errToObj(ee)})}datetime(ee){var en;return"string"==typeof ee?this._addCheck({kind:"datetime",precision:null,offset:!1,message:ee}):this._addCheck({kind:"datetime",precision:void 0===(null==ee?void 0:ee.precision)?null:null==ee?void 0:ee.precision,offset:null!==(en=null==ee?void 0:ee.offset)&&void 0!==en&&en,...ey.errToObj(null==ee?void 0:ee.message)})}regex(ee,en){return this._addCheck({kind:"regex",regex:ee,...ey.errToObj(en)})}includes(ee,en){return this._addCheck({kind:"includes",value:ee,position:null==en?void 0:en.position,...ey.errToObj(null==en?void 0:en.message)})}startsWith(ee,en){return this._addCheck({kind:"startsWith",value:ee,...ey.errToObj(en)})}endsWith(ee,en){return this._addCheck({kind:"endsWith",value:ee,...ey.errToObj(en)})}min(ee,en){return this._addCheck({kind:"min",value:ee,...ey.errToObj(en)})}max(ee,en){return this._addCheck({kind:"max",value:ee,...ey.errToObj(en)})}length(ee,en){return this._addCheck({kind:"length",value:ee,...ey.errToObj(en)})}nonempty(ee){return this.min(1,ey.errToObj(ee))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(ee=>"datetime"===ee.kind)}get isEmail(){return!!this._def.checks.find(ee=>"email"===ee.kind)}get isURL(){return!!this._def.checks.find(ee=>"url"===ee.kind)}get isEmoji(){return!!this._def.checks.find(ee=>"emoji"===ee.kind)}get isUUID(){return!!this._def.checks.find(ee=>"uuid"===ee.kind)}get isCUID(){return!!this._def.checks.find(ee=>"cuid"===ee.kind)}get isCUID2(){return!!this._def.checks.find(ee=>"cuid2"===ee.kind)}get isULID(){return!!this._def.checks.find(ee=>"ulid"===ee.kind)}get isIP(){return!!this._def.checks.find(ee=>"ip"===ee.kind)}get minLength(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxLength(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.valueeo?er:eo,es=parseInt(ee.toFixed(ei).replace(".","")),eu=parseInt(en.toFixed(ei).replace(".",""));return es%eu/Math.pow(10,ei)}ZodString.create=ee=>{var en;return new ZodString({checks:[],typeName:eb.ZodString,coerce:null!==(en=null==ee?void 0:ee.coerce)&&void 0!==en&&en,...processCreateParams(ee)})};let ZodNumber=class ZodNumber extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(ee){let en;this._def.coerce&&(ee.data=Number(ee.data));let er=this._getType(ee);if(er!==ej.number){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.number,received:en.parsedType}),eN}let eo=new ParseStatus;for(let er of this._def.checks)if("int"===er.kind)eg.isInteger(ee.data)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.invalid_type,expected:"integer",received:"float",message:er.message}),eo.dirty());else if("min"===er.kind){let ei=er.inclusive?ee.dataer.value:ee.data>=er.value;ei&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.too_big,maximum:er.value,type:"number",inclusive:er.inclusive,exact:!1,message:er.message}),eo.dirty())}else"multipleOf"===er.kind?0!==floatSafeRemainder(ee.data,er.value)&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.not_multiple_of,multipleOf:er.value,message:er.message}),eo.dirty()):"finite"===er.kind?Number.isFinite(ee.data)||(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.not_finite,message:er.message}),eo.dirty()):eg.assertNever(er);return{status:eo.value,value:ee.data}}gte(ee,en){return this.setLimit("min",ee,!0,ey.toString(en))}gt(ee,en){return this.setLimit("min",ee,!1,ey.toString(en))}lte(ee,en){return this.setLimit("max",ee,!0,ey.toString(en))}lt(ee,en){return this.setLimit("max",ee,!1,ey.toString(en))}setLimit(ee,en,er,eo){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:ee,value:en,inclusive:er,message:ey.toString(eo)}]})}_addCheck(ee){return new ZodNumber({...this._def,checks:[...this._def.checks,ee]})}int(ee){return this._addCheck({kind:"int",message:ey.toString(ee)})}positive(ee){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ey.toString(ee)})}negative(ee){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ey.toString(ee)})}nonpositive(ee){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ey.toString(ee)})}nonnegative(ee){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ey.toString(ee)})}multipleOf(ee,en){return this._addCheck({kind:"multipleOf",value:ee,message:ey.toString(en)})}finite(ee){return this._addCheck({kind:"finite",message:ey.toString(ee)})}safe(ee){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ey.toString(ee)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ey.toString(ee)})}get minValue(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxValue(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.value"int"===ee.kind||"multipleOf"===ee.kind&&eg.isInteger(ee.value))}get isFinite(){let ee=null,en=null;for(let er of this._def.checks){if("finite"===er.kind||"int"===er.kind||"multipleOf"===er.kind)return!0;"min"===er.kind?(null===en||er.value>en)&&(en=er.value):"max"===er.kind&&(null===ee||er.valuenew ZodNumber({checks:[],typeName:eb.ZodNumber,coerce:(null==ee?void 0:ee.coerce)||!1,...processCreateParams(ee)});let ZodBigInt=class ZodBigInt extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(ee){let en;this._def.coerce&&(ee.data=BigInt(ee.data));let er=this._getType(ee);if(er!==ej.bigint){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.bigint,received:en.parsedType}),eN}let eo=new ParseStatus;for(let er of this._def.checks)if("min"===er.kind){let ei=er.inclusive?ee.dataer.value:ee.data>=er.value;ei&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.too_big,type:"bigint",maximum:er.value,inclusive:er.inclusive,message:er.message}),eo.dirty())}else"multipleOf"===er.kind?ee.data%er.value!==BigInt(0)&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.not_multiple_of,multipleOf:er.value,message:er.message}),eo.dirty()):eg.assertNever(er);return{status:eo.value,value:ee.data}}gte(ee,en){return this.setLimit("min",ee,!0,ey.toString(en))}gt(ee,en){return this.setLimit("min",ee,!1,ey.toString(en))}lte(ee,en){return this.setLimit("max",ee,!0,ey.toString(en))}lt(ee,en){return this.setLimit("max",ee,!1,ey.toString(en))}setLimit(ee,en,er,eo){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:ee,value:en,inclusive:er,message:ey.toString(eo)}]})}_addCheck(ee){return new ZodBigInt({...this._def,checks:[...this._def.checks,ee]})}positive(ee){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ey.toString(ee)})}negative(ee){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ey.toString(ee)})}nonpositive(ee){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ey.toString(ee)})}nonnegative(ee){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ey.toString(ee)})}multipleOf(ee,en){return this._addCheck({kind:"multipleOf",value:ee,message:ey.toString(en)})}get minValue(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxValue(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.value{var en;return new ZodBigInt({checks:[],typeName:eb.ZodBigInt,coerce:null!==(en=null==ee?void 0:ee.coerce)&&void 0!==en&&en,...processCreateParams(ee)})};let ZodBoolean=class ZodBoolean extends ZodType{_parse(ee){this._def.coerce&&(ee.data=!!ee.data);let en=this._getType(ee);if(en!==ej.boolean){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.boolean,received:en.parsedType}),eN}return OK(ee.data)}};ZodBoolean.create=ee=>new ZodBoolean({typeName:eb.ZodBoolean,coerce:(null==ee?void 0:ee.coerce)||!1,...processCreateParams(ee)});let ZodDate=class ZodDate extends ZodType{_parse(ee){let en;this._def.coerce&&(ee.data=new Date(ee.data));let er=this._getType(ee);if(er!==ej.date){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.date,received:en.parsedType}),eN}if(isNaN(ee.data.getTime())){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_date}),eN}let eo=new ParseStatus;for(let er of this._def.checks)"min"===er.kind?ee.data.getTime()er.value&&(addIssueToContext(en=this._getOrReturnCtx(ee,en),{code:eI.too_big,message:er.message,inclusive:!0,exact:!1,maximum:er.value,type:"date"}),eo.dirty()):eg.assertNever(er);return{status:eo.value,value:new Date(ee.data.getTime())}}_addCheck(ee){return new ZodDate({...this._def,checks:[...this._def.checks,ee]})}min(ee,en){return this._addCheck({kind:"min",value:ee.getTime(),message:ey.toString(en)})}max(ee,en){return this._addCheck({kind:"max",value:ee.getTime(),message:ey.toString(en)})}get minDate(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return null!=ee?new Date(ee):null}get maxDate(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.valuenew ZodDate({checks:[],coerce:(null==ee?void 0:ee.coerce)||!1,typeName:eb.ZodDate,...processCreateParams(ee)});let ZodSymbol=class ZodSymbol extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.symbol){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.symbol,received:en.parsedType}),eN}return OK(ee.data)}};ZodSymbol.create=ee=>new ZodSymbol({typeName:eb.ZodSymbol,...processCreateParams(ee)});let ZodUndefined=class ZodUndefined extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.undefined){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.undefined,received:en.parsedType}),eN}return OK(ee.data)}};ZodUndefined.create=ee=>new ZodUndefined({typeName:eb.ZodUndefined,...processCreateParams(ee)});let ZodNull=class ZodNull extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.null){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.null,received:en.parsedType}),eN}return OK(ee.data)}};ZodNull.create=ee=>new ZodNull({typeName:eb.ZodNull,...processCreateParams(ee)});let ZodAny=class ZodAny extends ZodType{constructor(){super(...arguments),this._any=!0}_parse(ee){return OK(ee.data)}};ZodAny.create=ee=>new ZodAny({typeName:eb.ZodAny,...processCreateParams(ee)});let ZodUnknown=class ZodUnknown extends ZodType{constructor(){super(...arguments),this._unknown=!0}_parse(ee){return OK(ee.data)}};ZodUnknown.create=ee=>new ZodUnknown({typeName:eb.ZodUnknown,...processCreateParams(ee)});let ZodNever=class ZodNever extends ZodType{_parse(ee){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.never,received:en.parsedType}),eN}};ZodNever.create=ee=>new ZodNever({typeName:eb.ZodNever,...processCreateParams(ee)});let ZodVoid=class ZodVoid extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.undefined){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.void,received:en.parsedType}),eN}return OK(ee.data)}};ZodVoid.create=ee=>new ZodVoid({typeName:eb.ZodVoid,...processCreateParams(ee)});let ZodArray=class ZodArray extends ZodType{_parse(ee){let{ctx:en,status:er}=this._processInputParams(ee),eo=this._def;if(en.parsedType!==ej.array)return addIssueToContext(en,{code:eI.invalid_type,expected:ej.array,received:en.parsedType}),eN;if(null!==eo.exactLength){let ee=en.data.length>eo.exactLength.value,ei=en.data.lengtheo.maxLength.value&&(addIssueToContext(en,{code:eI.too_big,maximum:eo.maxLength.value,type:"array",inclusive:!0,exact:!1,message:eo.maxLength.message}),er.dirty()),en.common.async)return Promise.all([...en.data].map((ee,er)=>eo.type._parseAsync(new ParseInputLazyPath(en,ee,en.path,er)))).then(ee=>ParseStatus.mergeArray(er,ee));let ei=[...en.data].map((ee,er)=>eo.type._parseSync(new ParseInputLazyPath(en,ee,en.path,er)));return ParseStatus.mergeArray(er,ei)}get element(){return this._def.type}min(ee,en){return new ZodArray({...this._def,minLength:{value:ee,message:ey.toString(en)}})}max(ee,en){return new ZodArray({...this._def,maxLength:{value:ee,message:ey.toString(en)}})}length(ee,en){return new ZodArray({...this._def,exactLength:{value:ee,message:ey.toString(en)}})}nonempty(ee){return this.min(1,ee)}};function deepPartialify(ee){if(ee instanceof ZodObject){let en={};for(let er in ee.shape){let eo=ee.shape[er];en[er]=ZodOptional.create(deepPartialify(eo))}return new ZodObject({...ee._def,shape:()=>en})}return ee instanceof ZodArray?new ZodArray({...ee._def,type:deepPartialify(ee.element)}):ee instanceof ZodOptional?ZodOptional.create(deepPartialify(ee.unwrap())):ee instanceof ZodNullable?ZodNullable.create(deepPartialify(ee.unwrap())):ee instanceof ZodTuple?ZodTuple.create(ee.items.map(ee=>deepPartialify(ee))):ee}ZodArray.create=(ee,en)=>new ZodArray({type:ee,minLength:null,maxLength:null,exactLength:null,typeName:eb.ZodArray,...processCreateParams(en)});let ZodObject=class ZodObject extends ZodType{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let ee=this._def.shape(),en=eg.objectKeys(ee);return this._cached={shape:ee,keys:en}}_parse(ee){let en=this._getType(ee);if(en!==ej.object){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.object,received:en.parsedType}),eN}let{status:er,ctx:eo}=this._processInputParams(ee),{shape:ei,keys:es}=this._getCached(),eu=[];if(!(this._def.catchall instanceof ZodNever&&"strip"===this._def.unknownKeys))for(let ee in eo.data)es.includes(ee)||eu.push(ee);let ec=[];for(let ee of es){let en=ei[ee],er=eo.data[ee];ec.push({key:{status:"valid",value:ee},value:en._parse(new ParseInputLazyPath(eo,er,eo.path,ee)),alwaysSet:ee in eo.data})}if(this._def.catchall instanceof ZodNever){let ee=this._def.unknownKeys;if("passthrough"===ee)for(let ee of eu)ec.push({key:{status:"valid",value:ee},value:{status:"valid",value:eo.data[ee]}});else if("strict"===ee)eu.length>0&&(addIssueToContext(eo,{code:eI.unrecognized_keys,keys:eu}),er.dirty());else if("strip"===ee);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let ee=this._def.catchall;for(let en of eu){let er=eo.data[en];ec.push({key:{status:"valid",value:en},value:ee._parse(new ParseInputLazyPath(eo,er,eo.path,en)),alwaysSet:en in eo.data})}}return eo.common.async?Promise.resolve().then(async()=>{let ee=[];for(let en of ec){let er=await en.key;ee.push({key:er,value:await en.value,alwaysSet:en.alwaysSet})}return ee}).then(ee=>ParseStatus.mergeObjectSync(er,ee)):ParseStatus.mergeObjectSync(er,ec)}get shape(){return this._def.shape()}strict(ee){return ey.errToObj,new ZodObject({...this._def,unknownKeys:"strict",...void 0!==ee?{errorMap:(en,er)=>{var eo,ei,es,eu;let ec=null!==(es=null===(ei=(eo=this._def).errorMap)||void 0===ei?void 0:ei.call(eo,en,er).message)&&void 0!==es?es:er.defaultError;return"unrecognized_keys"===en.code?{message:null!==(eu=ey.errToObj(ee).message)&&void 0!==eu?eu:ec}:{message:ec}}}:{}})}strip(){return new ZodObject({...this._def,unknownKeys:"strip"})}passthrough(){return new ZodObject({...this._def,unknownKeys:"passthrough"})}extend(ee){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...ee})})}merge(ee){let en=new ZodObject({unknownKeys:ee._def.unknownKeys,catchall:ee._def.catchall,shape:()=>({...this._def.shape(),...ee._def.shape()}),typeName:eb.ZodObject});return en}setKey(ee,en){return this.augment({[ee]:en})}catchall(ee){return new ZodObject({...this._def,catchall:ee})}pick(ee){let en={};return eg.objectKeys(ee).forEach(er=>{ee[er]&&this.shape[er]&&(en[er]=this.shape[er])}),new ZodObject({...this._def,shape:()=>en})}omit(ee){let en={};return eg.objectKeys(this.shape).forEach(er=>{ee[er]||(en[er]=this.shape[er])}),new ZodObject({...this._def,shape:()=>en})}deepPartial(){return deepPartialify(this)}partial(ee){let en={};return eg.objectKeys(this.shape).forEach(er=>{let eo=this.shape[er];ee&&!ee[er]?en[er]=eo:en[er]=eo.optional()}),new ZodObject({...this._def,shape:()=>en})}required(ee){let en={};return eg.objectKeys(this.shape).forEach(er=>{if(ee&&!ee[er])en[er]=this.shape[er];else{let ee=this.shape[er],eo=ee;for(;eo instanceof ZodOptional;)eo=eo._def.innerType;en[er]=eo}}),new ZodObject({...this._def,shape:()=>en})}keyof(){return createZodEnum(eg.objectKeys(this.shape))}};ZodObject.create=(ee,en)=>new ZodObject({shape:()=>ee,unknownKeys:"strip",catchall:ZodNever.create(),typeName:eb.ZodObject,...processCreateParams(en)}),ZodObject.strictCreate=(ee,en)=>new ZodObject({shape:()=>ee,unknownKeys:"strict",catchall:ZodNever.create(),typeName:eb.ZodObject,...processCreateParams(en)}),ZodObject.lazycreate=(ee,en)=>new ZodObject({shape:ee,unknownKeys:"strip",catchall:ZodNever.create(),typeName:eb.ZodObject,...processCreateParams(en)});let ZodUnion=class ZodUnion extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=this._def.options;function handleResults(ee){for(let en of ee)if("valid"===en.result.status)return en.result;for(let er of ee)if("dirty"===er.result.status)return en.common.issues.push(...er.ctx.common.issues),er.result;let er=ee.map(ee=>new ZodError(ee.ctx.common.issues));return addIssueToContext(en,{code:eI.invalid_union,unionErrors:er}),eN}if(en.common.async)return Promise.all(er.map(async ee=>{let er={...en,common:{...en.common,issues:[]},parent:null};return{result:await ee._parseAsync({data:en.data,path:en.path,parent:er}),ctx:er}})).then(handleResults);{let ee;let eo=[];for(let ei of er){let er={...en,common:{...en.common,issues:[]},parent:null},es=ei._parseSync({data:en.data,path:en.path,parent:er});if("valid"===es.status)return es;"dirty"!==es.status||ee||(ee={result:es,ctx:er}),er.common.issues.length&&eo.push(er.common.issues)}if(ee)return en.common.issues.push(...ee.ctx.common.issues),ee.result;let ei=eo.map(ee=>new ZodError(ee));return addIssueToContext(en,{code:eI.invalid_union,unionErrors:ei}),eN}}get options(){return this._def.options}};ZodUnion.create=(ee,en)=>new ZodUnion({options:ee,typeName:eb.ZodUnion,...processCreateParams(en)});let getDiscriminator=ee=>{if(ee instanceof ZodLazy)return getDiscriminator(ee.schema);if(ee instanceof ZodEffects)return getDiscriminator(ee.innerType());if(ee instanceof ZodLiteral)return[ee.value];if(ee instanceof ZodEnum)return ee.options;if(ee instanceof ZodNativeEnum)return Object.keys(ee.enum);if(ee instanceof ZodDefault)return getDiscriminator(ee._def.innerType);if(ee instanceof ZodUndefined)return[void 0];else if(ee instanceof ZodNull)return[null];else return null};let ZodDiscriminatedUnion=class ZodDiscriminatedUnion extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==ej.object)return addIssueToContext(en,{code:eI.invalid_type,expected:ej.object,received:en.parsedType}),eN;let er=this.discriminator,eo=en.data[er],ei=this.optionsMap.get(eo);return ei?en.common.async?ei._parseAsync({data:en.data,path:en.path,parent:en}):ei._parseSync({data:en.data,path:en.path,parent:en}):(addIssueToContext(en,{code:eI.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[er]}),eN)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(ee,en,er){let eo=new Map;for(let er of en){let en=getDiscriminator(er.shape[ee]);if(!en)throw Error(`A discriminator value for key \`${ee}\` could not be extracted from all schema options`);for(let ei of en){if(eo.has(ei))throw Error(`Discriminator property ${String(ee)} has duplicate value ${String(ei)}`);eo.set(ei,er)}}return new ZodDiscriminatedUnion({typeName:eb.ZodDiscriminatedUnion,discriminator:ee,options:en,optionsMap:eo,...processCreateParams(er)})}};function mergeValues(ee,en){let er=getParsedType(ee),eo=getParsedType(en);if(ee===en)return{valid:!0,data:ee};if(er===ej.object&&eo===ej.object){let er=eg.objectKeys(en),eo=eg.objectKeys(ee).filter(ee=>-1!==er.indexOf(ee)),ei={...ee,...en};for(let er of eo){let eo=mergeValues(ee[er],en[er]);if(!eo.valid)return{valid:!1};ei[er]=eo.data}return{valid:!0,data:ei}}if(er===ej.array&&eo===ej.array){if(ee.length!==en.length)return{valid:!1};let er=[];for(let eo=0;eo{if(isAborted(ee)||isAborted(eo))return eN;let ei=mergeValues(ee.value,eo.value);return ei.valid?((isDirty(ee)||isDirty(eo))&&en.dirty(),{status:en.value,value:ei.data}):(addIssueToContext(er,{code:eI.invalid_intersection_types}),eN)};return er.common.async?Promise.all([this._def.left._parseAsync({data:er.data,path:er.path,parent:er}),this._def.right._parseAsync({data:er.data,path:er.path,parent:er})]).then(([ee,en])=>handleParsed(ee,en)):handleParsed(this._def.left._parseSync({data:er.data,path:er.path,parent:er}),this._def.right._parseSync({data:er.data,path:er.path,parent:er}))}};ZodIntersection.create=(ee,en,er)=>new ZodIntersection({left:ee,right:en,typeName:eb.ZodIntersection,...processCreateParams(er)});let ZodTuple=class ZodTuple extends ZodType{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==ej.array)return addIssueToContext(er,{code:eI.invalid_type,expected:ej.array,received:er.parsedType}),eN;if(er.data.lengththis._def.items.length&&(addIssueToContext(er,{code:eI.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),en.dirty());let ei=[...er.data].map((ee,en)=>{let eo=this._def.items[en]||this._def.rest;return eo?eo._parse(new ParseInputLazyPath(er,ee,er.path,en)):null}).filter(ee=>!!ee);return er.common.async?Promise.all(ei).then(ee=>ParseStatus.mergeArray(en,ee)):ParseStatus.mergeArray(en,ei)}get items(){return this._def.items}rest(ee){return new ZodTuple({...this._def,rest:ee})}};ZodTuple.create=(ee,en)=>{if(!Array.isArray(ee))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ZodTuple({items:ee,typeName:eb.ZodTuple,rest:null,...processCreateParams(en)})};let ZodRecord=class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==ej.object)return addIssueToContext(er,{code:eI.invalid_type,expected:ej.object,received:er.parsedType}),eN;let eo=[],ei=this._def.keyType,es=this._def.valueType;for(let ee in er.data)eo.push({key:ei._parse(new ParseInputLazyPath(er,ee,er.path,ee)),value:es._parse(new ParseInputLazyPath(er,er.data[ee],er.path,ee))});return er.common.async?ParseStatus.mergeObjectAsync(en,eo):ParseStatus.mergeObjectSync(en,eo)}get element(){return this._def.valueType}static create(ee,en,er){return new ZodRecord(en instanceof ZodType?{keyType:ee,valueType:en,typeName:eb.ZodRecord,...processCreateParams(er)}:{keyType:ZodString.create(),valueType:ee,typeName:eb.ZodRecord,...processCreateParams(en)})}};let ZodMap=class ZodMap extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==ej.map)return addIssueToContext(er,{code:eI.invalid_type,expected:ej.map,received:er.parsedType}),eN;let eo=this._def.keyType,ei=this._def.valueType,es=[...er.data.entries()].map(([ee,en],es)=>({key:eo._parse(new ParseInputLazyPath(er,ee,er.path,[es,"key"])),value:ei._parse(new ParseInputLazyPath(er,en,er.path,[es,"value"]))}));if(er.common.async){let ee=new Map;return Promise.resolve().then(async()=>{for(let er of es){let eo=await er.key,ei=await er.value;if("aborted"===eo.status||"aborted"===ei.status)return eN;("dirty"===eo.status||"dirty"===ei.status)&&en.dirty(),ee.set(eo.value,ei.value)}return{status:en.value,value:ee}})}{let ee=new Map;for(let er of es){let eo=er.key,ei=er.value;if("aborted"===eo.status||"aborted"===ei.status)return eN;("dirty"===eo.status||"dirty"===ei.status)&&en.dirty(),ee.set(eo.value,ei.value)}return{status:en.value,value:ee}}}};ZodMap.create=(ee,en,er)=>new ZodMap({valueType:en,keyType:ee,typeName:eb.ZodMap,...processCreateParams(er)});let ZodSet=class ZodSet extends ZodType{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==ej.set)return addIssueToContext(er,{code:eI.invalid_type,expected:ej.set,received:er.parsedType}),eN;let eo=this._def;null!==eo.minSize&&er.data.sizeeo.maxSize.value&&(addIssueToContext(er,{code:eI.too_big,maximum:eo.maxSize.value,type:"set",inclusive:!0,exact:!1,message:eo.maxSize.message}),en.dirty());let ei=this._def.valueType;function finalizeSet(ee){let er=new Set;for(let eo of ee){if("aborted"===eo.status)return eN;"dirty"===eo.status&&en.dirty(),er.add(eo.value)}return{status:en.value,value:er}}let es=[...er.data.values()].map((ee,en)=>ei._parse(new ParseInputLazyPath(er,ee,er.path,en)));return er.common.async?Promise.all(es).then(ee=>finalizeSet(ee)):finalizeSet(es)}min(ee,en){return new ZodSet({...this._def,minSize:{value:ee,message:ey.toString(en)}})}max(ee,en){return new ZodSet({...this._def,maxSize:{value:ee,message:ey.toString(en)}})}size(ee,en){return this.min(ee,en).max(ee,en)}nonempty(ee){return this.min(1,ee)}};ZodSet.create=(ee,en)=>new ZodSet({valueType:ee,minSize:null,maxSize:null,typeName:eb.ZodSet,...processCreateParams(en)});let ZodFunction=class ZodFunction extends ZodType{constructor(){super(...arguments),this.validate=this.implement}_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==ej.function)return addIssueToContext(en,{code:eI.invalid_type,expected:ej.function,received:en.parsedType}),eN;function makeArgsIssue(ee,er){return makeIssue({data:ee,path:en.path,errorMaps:[en.common.contextualErrorMap,en.schemaErrorMap,getErrorMap(),errorMap].filter(ee=>!!ee),issueData:{code:eI.invalid_arguments,argumentsError:er}})}function makeReturnsIssue(ee,er){return makeIssue({data:ee,path:en.path,errorMaps:[en.common.contextualErrorMap,en.schemaErrorMap,getErrorMap(),errorMap].filter(ee=>!!ee),issueData:{code:eI.invalid_return_type,returnTypeError:er}})}let er={errorMap:en.common.contextualErrorMap},eo=en.data;if(this._def.returns instanceof ZodPromise){let ee=this;return OK(async function(...en){let ei=new ZodError([]),es=await ee._def.args.parseAsync(en,er).catch(ee=>{throw ei.addIssue(makeArgsIssue(en,ee)),ei}),eu=await Reflect.apply(eo,this,es),ec=await ee._def.returns._def.type.parseAsync(eu,er).catch(ee=>{throw ei.addIssue(makeReturnsIssue(eu,ee)),ei});return ec})}{let ee=this;return OK(function(...en){let ei=ee._def.args.safeParse(en,er);if(!ei.success)throw new ZodError([makeArgsIssue(en,ei.error)]);let es=Reflect.apply(eo,this,ei.data),eu=ee._def.returns.safeParse(es,er);if(!eu.success)throw new ZodError([makeReturnsIssue(es,eu.error)]);return eu.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...ee){return new ZodFunction({...this._def,args:ZodTuple.create(ee).rest(ZodUnknown.create())})}returns(ee){return new ZodFunction({...this._def,returns:ee})}implement(ee){let en=this.parse(ee);return en}strictImplement(ee){let en=this.parse(ee);return en}static create(ee,en,er){return new ZodFunction({args:ee||ZodTuple.create([]).rest(ZodUnknown.create()),returns:en||ZodUnknown.create(),typeName:eb.ZodFunction,...processCreateParams(er)})}};let ZodLazy=class ZodLazy extends ZodType{get schema(){return this._def.getter()}_parse(ee){let{ctx:en}=this._processInputParams(ee),er=this._def.getter();return er._parse({data:en.data,path:en.path,parent:en})}};ZodLazy.create=(ee,en)=>new ZodLazy({getter:ee,typeName:eb.ZodLazy,...processCreateParams(en)});let ZodLiteral=class ZodLiteral extends ZodType{_parse(ee){if(ee.data!==this._def.value){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{received:en.data,code:eI.invalid_literal,expected:this._def.value}),eN}return{status:"valid",value:ee.data}}get value(){return this._def.value}};function createZodEnum(ee,en){return new ZodEnum({values:ee,typeName:eb.ZodEnum,...processCreateParams(en)})}ZodLiteral.create=(ee,en)=>new ZodLiteral({value:ee,typeName:eb.ZodLiteral,...processCreateParams(en)});let ZodEnum=class ZodEnum extends ZodType{_parse(ee){if("string"!=typeof ee.data){let en=this._getOrReturnCtx(ee),er=this._def.values;return addIssueToContext(en,{expected:eg.joinValues(er),received:en.parsedType,code:eI.invalid_type}),eN}if(-1===this._def.values.indexOf(ee.data)){let en=this._getOrReturnCtx(ee),er=this._def.values;return addIssueToContext(en,{received:en.data,code:eI.invalid_enum_value,options:er}),eN}return OK(ee.data)}get options(){return this._def.values}get enum(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}get Values(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}get Enum(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}extract(ee){return ZodEnum.create(ee)}exclude(ee){return ZodEnum.create(this.options.filter(en=>!ee.includes(en)))}};ZodEnum.create=createZodEnum;let ZodNativeEnum=class ZodNativeEnum extends ZodType{_parse(ee){let en=eg.getValidEnumValues(this._def.values),er=this._getOrReturnCtx(ee);if(er.parsedType!==ej.string&&er.parsedType!==ej.number){let ee=eg.objectValues(en);return addIssueToContext(er,{expected:eg.joinValues(ee),received:er.parsedType,code:eI.invalid_type}),eN}if(-1===en.indexOf(ee.data)){let ee=eg.objectValues(en);return addIssueToContext(er,{received:er.data,code:eI.invalid_enum_value,options:ee}),eN}return OK(ee.data)}get enum(){return this._def.values}};ZodNativeEnum.create=(ee,en)=>new ZodNativeEnum({values:ee,typeName:eb.ZodNativeEnum,...processCreateParams(en)});let ZodPromise=class ZodPromise extends ZodType{unwrap(){return this._def.type}_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==ej.promise&&!1===en.common.async)return addIssueToContext(en,{code:eI.invalid_type,expected:ej.promise,received:en.parsedType}),eN;let er=en.parsedType===ej.promise?en.data:Promise.resolve(en.data);return OK(er.then(ee=>this._def.type.parseAsync(ee,{path:en.path,errorMap:en.common.contextualErrorMap})))}};ZodPromise.create=(ee,en)=>new ZodPromise({type:ee,typeName:eb.ZodPromise,...processCreateParams(en)});let ZodEffects=class ZodEffects extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===eb.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee),eo=this._def.effect||null,ei={addIssue:ee=>{addIssueToContext(er,ee),ee.fatal?en.abort():en.dirty()},get path(){return er.path}};if(ei.addIssue=ei.addIssue.bind(ei),"preprocess"===eo.type){let ee=eo.transform(er.data,ei);return er.common.issues.length?{status:"dirty",value:er.data}:er.common.async?Promise.resolve(ee).then(ee=>this._def.schema._parseAsync({data:ee,path:er.path,parent:er})):this._def.schema._parseSync({data:ee,path:er.path,parent:er})}if("refinement"===eo.type){let executeRefinement=ee=>{let en=eo.refinement(ee,ei);if(er.common.async)return Promise.resolve(en);if(en instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return ee};if(!1!==er.common.async)return this._def.schema._parseAsync({data:er.data,path:er.path,parent:er}).then(ee=>"aborted"===ee.status?eN:("dirty"===ee.status&&en.dirty(),executeRefinement(ee.value).then(()=>({status:en.value,value:ee.value}))));{let ee=this._def.schema._parseSync({data:er.data,path:er.path,parent:er});return"aborted"===ee.status?eN:("dirty"===ee.status&&en.dirty(),executeRefinement(ee.value),{status:en.value,value:ee.value})}}if("transform"===eo.type){if(!1!==er.common.async)return this._def.schema._parseAsync({data:er.data,path:er.path,parent:er}).then(ee=>isValid(ee)?Promise.resolve(eo.transform(ee.value,ei)).then(ee=>({status:en.value,value:ee})):ee);{let ee=this._def.schema._parseSync({data:er.data,path:er.path,parent:er});if(!isValid(ee))return ee;let es=eo.transform(ee.value,ei);if(es instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:en.value,value:es}}}eg.assertNever(eo)}};ZodEffects.create=(ee,en,er)=>new ZodEffects({schema:ee,typeName:eb.ZodEffects,effect:en,...processCreateParams(er)}),ZodEffects.createWithPreprocess=(ee,en,er)=>new ZodEffects({schema:en,effect:{type:"preprocess",transform:ee},typeName:eb.ZodEffects,...processCreateParams(er)});let ZodOptional=class ZodOptional extends ZodType{_parse(ee){let en=this._getType(ee);return en===ej.undefined?OK(void 0):this._def.innerType._parse(ee)}unwrap(){return this._def.innerType}};ZodOptional.create=(ee,en)=>new ZodOptional({innerType:ee,typeName:eb.ZodOptional,...processCreateParams(en)});let ZodNullable=class ZodNullable extends ZodType{_parse(ee){let en=this._getType(ee);return en===ej.null?OK(null):this._def.innerType._parse(ee)}unwrap(){return this._def.innerType}};ZodNullable.create=(ee,en)=>new ZodNullable({innerType:ee,typeName:eb.ZodNullable,...processCreateParams(en)});let ZodDefault=class ZodDefault extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=en.data;return en.parsedType===ej.undefined&&(er=this._def.defaultValue()),this._def.innerType._parse({data:er,path:en.path,parent:en})}removeDefault(){return this._def.innerType}};ZodDefault.create=(ee,en)=>new ZodDefault({innerType:ee,typeName:eb.ZodDefault,defaultValue:"function"==typeof en.default?en.default:()=>en.default,...processCreateParams(en)});let ZodCatch=class ZodCatch extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee),er={...en,common:{...en.common,issues:[]}},eo=this._def.innerType._parse({data:er.data,path:er.path,parent:{...er}});return isAsync(eo)?eo.then(ee=>({status:"valid",value:"valid"===ee.status?ee.value:this._def.catchValue({get error(){return new ZodError(er.common.issues)},input:er.data})})):{status:"valid",value:"valid"===eo.status?eo.value:this._def.catchValue({get error(){return new ZodError(er.common.issues)},input:er.data})}}removeCatch(){return this._def.innerType}};ZodCatch.create=(ee,en)=>new ZodCatch({innerType:ee,typeName:eb.ZodCatch,catchValue:"function"==typeof en.catch?en.catch:()=>en.catch,...processCreateParams(en)});let ZodNaN=class ZodNaN extends ZodType{_parse(ee){let en=this._getType(ee);if(en!==ej.nan){let en=this._getOrReturnCtx(ee);return addIssueToContext(en,{code:eI.invalid_type,expected:ej.nan,received:en.parsedType}),eN}return{status:"valid",value:ee.data}}};ZodNaN.create=ee=>new ZodNaN({typeName:eb.ZodNaN,...processCreateParams(ee)});let eU=Symbol("zod_brand");let ZodBranded=class ZodBranded extends ZodType{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=en.data;return this._def.type._parse({data:er,path:en.path,parent:en})}unwrap(){return this._def.type}};let ZodPipeline=class ZodPipeline extends ZodType{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.common.async){let handleAsync=async()=>{let ee=await this._def.in._parseAsync({data:er.data,path:er.path,parent:er});return"aborted"===ee.status?eN:"dirty"===ee.status?(en.dirty(),DIRTY(ee.value)):this._def.out._parseAsync({data:ee.value,path:er.path,parent:er})};return handleAsync()}{let ee=this._def.in._parseSync({data:er.data,path:er.path,parent:er});return"aborted"===ee.status?eN:"dirty"===ee.status?(en.dirty(),{status:"dirty",value:ee.value}):this._def.out._parseSync({data:ee.value,path:er.path,parent:er})}}static create(ee,en){return new ZodPipeline({in:ee,out:en,typeName:eb.ZodPipeline})}};let ZodReadonly=class ZodReadonly extends ZodType{_parse(ee){let en=this._def.innerType._parse(ee);return isValid(en)&&(en.value=Object.freeze(en.value)),en}};ZodReadonly.create=(ee,en)=>new ZodReadonly({innerType:ee,typeName:eb.ZodReadonly,...processCreateParams(en)});let custom=(ee,en={},er)=>ee?ZodAny.create().superRefine((eo,ei)=>{var es,eu;if(!ee(eo)){let ee="function"==typeof en?en(eo):"string"==typeof en?{message:en}:en,ec=null===(eu=null!==(es=ee.fatal)&&void 0!==es?es:er)||void 0===eu||eu,ed="string"==typeof ee?{message:ee}:ee;ei.addIssue({code:"custom",...ed,fatal:ec})}}):ZodAny.create(),e$={object:ZodObject.lazycreate};!function(ee){ee.ZodString="ZodString",ee.ZodNumber="ZodNumber",ee.ZodNaN="ZodNaN",ee.ZodBigInt="ZodBigInt",ee.ZodBoolean="ZodBoolean",ee.ZodDate="ZodDate",ee.ZodSymbol="ZodSymbol",ee.ZodUndefined="ZodUndefined",ee.ZodNull="ZodNull",ee.ZodAny="ZodAny",ee.ZodUnknown="ZodUnknown",ee.ZodNever="ZodNever",ee.ZodVoid="ZodVoid",ee.ZodArray="ZodArray",ee.ZodObject="ZodObject",ee.ZodUnion="ZodUnion",ee.ZodDiscriminatedUnion="ZodDiscriminatedUnion",ee.ZodIntersection="ZodIntersection",ee.ZodTuple="ZodTuple",ee.ZodRecord="ZodRecord",ee.ZodMap="ZodMap",ee.ZodSet="ZodSet",ee.ZodFunction="ZodFunction",ee.ZodLazy="ZodLazy",ee.ZodLiteral="ZodLiteral",ee.ZodEnum="ZodEnum",ee.ZodEffects="ZodEffects",ee.ZodNativeEnum="ZodNativeEnum",ee.ZodOptional="ZodOptional",ee.ZodNullable="ZodNullable",ee.ZodDefault="ZodDefault",ee.ZodCatch="ZodCatch",ee.ZodPromise="ZodPromise",ee.ZodBranded="ZodBranded",ee.ZodPipeline="ZodPipeline",ee.ZodReadonly="ZodReadonly"}(eb||(eb={}));let instanceOfType=(ee,en={message:`Input not instance of ${ee.name}`})=>custom(en=>en instanceof ee,en),eH=ZodString.create,eB=ZodNumber.create,eW=ZodNaN.create,eG=ZodBigInt.create,eK=ZodBoolean.create,eX=ZodDate.create,eY=ZodSymbol.create,eQ=ZodUndefined.create,eJ=ZodNull.create,e0=ZodAny.create,e1=ZodUnknown.create,e2=ZodNever.create,e4=ZodVoid.create,e5=ZodArray.create,e3=ZodObject.create,e7=ZodObject.strictCreate,e6=ZodUnion.create,e9=ZodDiscriminatedUnion.create,e8=ZodIntersection.create,tt=ZodTuple.create,tn=ZodRecord.create,tr=ZodMap.create,to=ZodSet.create,ti=ZodFunction.create,ts=ZodLazy.create,tl=ZodLiteral.create,tu=ZodEnum.create,tc=ZodNativeEnum.create,td=ZodPromise.create,tp=ZodEffects.create,tf=ZodOptional.create,th=ZodNullable.create,tm=ZodEffects.createWithPreprocess,tx=ZodPipeline.create,ostring=()=>eH().optional(),onumber=()=>eB().optional(),oboolean=()=>eK().optional(),tg={string:ee=>ZodString.create({...ee,coerce:!0}),number:ee=>ZodNumber.create({...ee,coerce:!0}),boolean:ee=>ZodBoolean.create({...ee,coerce:!0}),bigint:ee=>ZodBigInt.create({...ee,coerce:!0}),date:ee=>ZodDate.create({...ee,coerce:!0})},tv=eN;var ty=Object.freeze({__proto__:null,defaultErrorMap:errorMap,setErrorMap:setErrorMap,getErrorMap:getErrorMap,makeIssue:makeIssue,EMPTY_PATH:eR,addIssueToContext:addIssueToContext,ParseStatus:ParseStatus,INVALID:eN,DIRTY:DIRTY,OK:OK,isAborted:isAborted,isDirty:isDirty,isValid:isValid,isAsync:isAsync,get util(){return eg},get objectUtil(){return ev},ZodParsedType:ej,getParsedType:getParsedType,ZodType:ZodType,ZodString:ZodString,ZodNumber:ZodNumber,ZodBigInt:ZodBigInt,ZodBoolean:ZodBoolean,ZodDate:ZodDate,ZodSymbol:ZodSymbol,ZodUndefined:ZodUndefined,ZodNull:ZodNull,ZodAny:ZodAny,ZodUnknown:ZodUnknown,ZodNever:ZodNever,ZodVoid:ZodVoid,ZodArray:ZodArray,ZodObject:ZodObject,ZodUnion:ZodUnion,ZodDiscriminatedUnion:ZodDiscriminatedUnion,ZodIntersection:ZodIntersection,ZodTuple:ZodTuple,ZodRecord:ZodRecord,ZodMap:ZodMap,ZodSet:ZodSet,ZodFunction:ZodFunction,ZodLazy:ZodLazy,ZodLiteral:ZodLiteral,ZodEnum:ZodEnum,ZodNativeEnum:ZodNativeEnum,ZodPromise:ZodPromise,ZodEffects:ZodEffects,ZodTransformer:ZodEffects,ZodOptional:ZodOptional,ZodNullable:ZodNullable,ZodDefault:ZodDefault,ZodCatch:ZodCatch,ZodNaN:ZodNaN,BRAND:eU,ZodBranded:ZodBranded,ZodPipeline:ZodPipeline,ZodReadonly:ZodReadonly,custom:custom,Schema:ZodType,ZodSchema:ZodType,late:e$,get ZodFirstPartyTypeKind(){return eb},coerce:tg,any:e0,array:e5,bigint:eG,boolean:eK,date:eX,discriminatedUnion:e9,effect:tp,enum:tu,function:ti,instanceof:instanceOfType,intersection:e8,lazy:ts,literal:tl,map:tr,nan:eW,nativeEnum:tc,never:e2,null:eJ,nullable:th,number:eB,object:e3,oboolean:oboolean,onumber:onumber,optional:tf,ostring:ostring,pipeline:tx,preprocess:tm,promise:td,record:tn,set:to,strictObject:e7,string:eH,symbol:eY,transformer:tp,tuple:tt,undefined:eQ,union:e6,unknown:e1,void:e4,NEVER:tv,ZodIssueCode:eI,quotelessJson:quotelessJson,ZodError:ZodError}),tb=er(1664),t_=er.n(tb),tw={i8:"13.5.6"};er(6337);var tk=er(5893);let tC=["light","dark"],tT="(prefers-color-scheme: dark)",tS="undefined"==typeof window,tE=(0,ek.createContext)(void 0),tO={setTheme:ee=>{},themes:[]},y=()=>{var ee;return null!==(ee=(0,ek.useContext)(tE))&&void 0!==ee?ee:tO},$=ee=>(0,ek.useContext)(tE)?ek.createElement(ek.Fragment,null,ee.children):ek.createElement(f,ee),tj=["light","dark"],f=({forcedTheme:ee,disableTransitionOnChange:en=!1,enableSystem:er=!0,enableColorScheme:eo=!0,storageKey:ei="theme",themes:es=tj,defaultTheme:eu=er?"system":"light",attribute:ec="data-theme",value:ed,children:ep,nonce:ef})=>{let[eh,em]=(0,ek.useState)(()=>S(ei,eu)),[ex,eg]=(0,ek.useState)(()=>S(ei)),ev=ed?Object.values(ed):es,ey=(0,ek.useCallback)(ee=>{let ei=ee;if(!ei)return;"system"===ee&&er&&(ei=p());let es=ed?ed[ei]:ei,ep=en?b():null,ef=document.documentElement;if("class"===ec?(ef.classList.remove(...ev),es&&ef.classList.add(es)):es?ef.setAttribute(ec,es):ef.removeAttribute(ec),eo){let ee=tC.includes(eu)?eu:null,en=tC.includes(ei)?ei:ee;ef.style.colorScheme=en}null==ep||ep()},[]),eb=(0,ek.useCallback)(ee=>{em(ee);try{localStorage.setItem(ei,ee)}catch(ee){}},[ee]),e_=(0,ek.useCallback)(en=>{let eo=p(en);eg(eo),"system"===eh&&er&&!ee&&ey("system")},[eh,ee]);(0,ek.useEffect)(()=>{let ee=window.matchMedia(tT);return ee.addListener(e_),e_(ee),()=>ee.removeListener(e_)},[e_]),(0,ek.useEffect)(()=>{let e=ee=>{ee.key===ei&&eb(ee.newValue||eu)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[eb]),(0,ek.useEffect)(()=>{ey(null!=ee?ee:eh)},[ee,eh]);let ew=(0,ek.useMemo)(()=>({theme:eh,setTheme:eb,forcedTheme:ee,resolvedTheme:"system"===eh?ex:eh,themes:er?[...es,"system"]:es,systemTheme:er?ex:void 0}),[eh,eb,ee,ex,er,es]);return ek.createElement(tE.Provider,{value:ew},ek.createElement(tI,{forcedTheme:ee,disableTransitionOnChange:en,enableSystem:er,enableColorScheme:eo,storageKey:ei,themes:es,defaultTheme:eu,attribute:ec,value:ed,children:ep,attrs:ev,nonce:ef}),ep)},tI=(0,ek.memo)(({forcedTheme:ee,storageKey:en,attribute:er,enableSystem:eo,enableColorScheme:ei,defaultTheme:es,value:eu,attrs:ec,nonce:ed})=>{let ep="system"===es,ef="class"===er?`var d=document.documentElement,c=d.classList;c.remove(${ec.map(ee=>`'${ee}'`).join(",")});`:`var d=document.documentElement,n='${er}',s='setAttribute';`,eh=ei?tC.includes(es)&&es?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${es}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",$=(ee,en=!1,eo=!0)=>{let es=eu?eu[ee]:ee,ec=en?ee+"|| ''":`'${es}'`,ed="";return ei&&eo&&!en&&tC.includes(ee)&&(ed+=`d.style.colorScheme = '${ee}';`),"class"===er?ed+=en||es?`c.add(${ec})`:"null":es&&(ed+=`d[s](n,${ec})`),ed},em=ee?`!function(){${ef}${$(ee)}}()`:eo?`!function(){try{${ef}var e=localStorage.getItem('${en}');if('system'===e||(!e&&${ep})){var t='${tT}',m=window.matchMedia(t);if(m.media!==t||m.matches){${$("dark")}}else{${$("light")}}}else if(e){${eu?`var x=${JSON.stringify(eu)};`:""}${$(eu?"x[e]":"e",!0)}}${ep?"":"else{"+$(es,!1,!1)+"}"}${eh}}catch(e){}}()`:`!function(){try{${ef}var e=localStorage.getItem('${en}');if(e){${eu?`var x=${JSON.stringify(eu)};`:""}${$(eu?"x[e]":"e",!0)}}else{${$(es,!1,!1)};}${eh}}catch(t){}}();`;return ek.createElement("script",{nonce:ed,dangerouslySetInnerHTML:{__html:em}})},()=>!0),S=(ee,en)=>{let er;if(!tS){try{er=localStorage.getItem(ee)||void 0}catch(ee){}return er||en}},b=()=>{let ee=document.createElement("style");return ee.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(ee),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(ee)},1)}},p=ee=>(ee||(ee=window.matchMedia(tT)),ee.matches?"dark":"light");var tP={breadcrumb:!0,collapsed:!1,footer:!0,layout:"default",navbar:!0,pagination:!0,sidebar:!0,timestamp:!0,toc:!0,typesetting:"default"},tR=ty.strictObject({breadcrumb:ty.boolean(),collapsed:ty.boolean(),footer:ty.boolean(),layout:ty.enum(["default","full","raw"]),navbar:ty.boolean(),pagination:ty.boolean(),sidebar:ty.boolean(),timestamp:ty.boolean(),toc:ty.boolean(),typesetting:ty.enum(["default","article"])}),tN=ty.enum(["normal","hidden","children"]),tZ=ty.string(),tM=ty.strictObject({href:ty.string(),newWindow:ty.boolean(),title:tZ}),tA=ty.strictObject({display:tN.optional(),items:ty.record(tM.partial({href:!0,newWindow:!0})),title:tZ,type:ty.literal("menu")}),tL=ty.strictObject({title:tZ,type:ty.literal("separator")}),tD=tM.extend({display:tN,theme:tR,title:tZ,type:ty.enum(["page","doc"])}).deepPartial();function extendMeta(ee={},en){"string"==typeof ee&&(ee={title:ee});let er=Object.assign({},en.theme,ee.theme);return Object.assign({},en,ee,{theme:er})}function findFirstRoute(ee){for(let en of ee){if(en.route)return en.route;if(en.children){let ee=findFirstRoute(en.children);if(ee)return ee}}}function normalizePages({list:ee,locale:en,defaultLocale:er,route:eo,docsRoot:ei="",underCurrentDocsRoot:es=!1,pageThemeContext:eu=tP}){let ec,ed;for(let er of ee)if("Meta"===er.kind){if(er.locale===en){ec=er.data;break}ec||(ec=er.data)}let ep=ec||{},ef=Object.keys(ep);for(let ee of ef)"string"==typeof ep[ee]&&(ep[ee]={title:ep[ee]});let eh=[],em=[],ex=[],eg=[],ev=[],ey=0,eb=eu,e_=[],ew=-1,ek=ep["*"]||{};delete ek.title,delete ek.href;let eC=ee.filter(ee=>"Meta"!==ee.kind&&!ee.name.startsWith("_")&&(!("locale"in ee)||!ee.locale||[en,er].includes(ee.locale))).sort((ee,en)=>{let er=ef.indexOf(ee.name),eo=ef.indexOf(en.name);return -1===er&&-1===eo?ee.name{let en;let er=[],eo=ef.indexOf(ee.name);if(-1!==eo){for(let ee=ew+1;ee({...ec,type:eS,...eI&&{title:eI},...ew&&{display:ew},...ej&&{children:[]}}),eP=getItem(),eR=getItem(),eN=getItem();if(eR.isUnderCurrentDocsTree=eO,"separator"===eS&&(eP.isUnderCurrentDocsTree=eO),ec.route===eo)switch(e_=[eP],ed=eS,eb={...eb,...eE},eS){case"page":case"menu":ey=ev.length;break;case"doc":ey=eg.length}if(!("hidden"===ew&&"Folder"!==eP.kind||eT.hV.has(ec.route))){if(ej){if(void 0!==ej.activeIndex&&void 0!==ej.activeType){switch(eb=ej.activeThemeContext,ed=ej.activeType,e_=[eP,...ej.activePath],ed){case"page":case"menu":ey=ev.length+ej.activeIndex;break;case"doc":ey=eg.length+ej.activeIndex}ec.withIndexPage&&"doc"===eS&&ey++}switch(eS){case"page":case"menu":eN.children.push(...ej.directories),ex.push(...ej.docsDirectories),ej.flatDirectories.length?(eN.firstChildRoute=findFirstRoute(ej.flatDirectories),ev.push(eN)):eN.withIndexPage&&ev.push(eN);break;case"doc":Array.isArray(eR.children)&&eR.children.push(...ej.docsDirectories),eP.withIndexPage&&"children"!==ew&&eg.push(eR)}em.push(...ej.flatDirectories),eg.push(...ej.flatDocsDirectories),Array.isArray(eP.children)&&eP.children.push(...ej.directories)}else switch(em.push(eP),eS){case"page":case"menu":ev.push(eN);break;case"doc":eg.push(eR)}switch("doc"===eS&&"children"===ew?eR.children&&(eh.push(...eR.children),ex.push(...eR.children)):eh.push(eP),eS){case"page":case"menu":ex.push(eN);break;case"doc":"children"!==ew&&ex.push(eR);break;case"separator":ex.push(eP)}}}return{activeType:ed,activeIndex:ey,activeThemeContext:eb,activePath:e_,directories:eh,flatDirectories:em,docsDirectories:ex,flatDocsDirectories:eg,topLevelNavbarItems:ev}}ty.string().or(tA).or(tL).or(tD);var tF=er(3458),tz=er.n(tF);function getWindow(ee){if(null==ee)return window;if("[object Window]"!==ee.toString()){var en=ee.ownerDocument;return en&&en.defaultView||window}return ee}function isElement(ee){var en=getWindow(ee).Element;return ee instanceof en||ee instanceof Element}function isHTMLElement(ee){var en=getWindow(ee).HTMLElement;return ee instanceof en||ee instanceof HTMLElement}function isShadowRoot(ee){if("undefined"==typeof ShadowRoot)return!1;var en=getWindow(ee).ShadowRoot;return ee instanceof en||ee instanceof ShadowRoot}var tV=Math.max,tU=Math.min,t$=Math.round;function getUAString(){var ee=navigator.userAgentData;return null!=ee&&ee.brands&&Array.isArray(ee.brands)?ee.brands.map(function(ee){return ee.brand+"/"+ee.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(ee,en,er){void 0===en&&(en=!1),void 0===er&&(er=!1);var eo=ee.getBoundingClientRect(),ei=1,es=1;en&&isHTMLElement(ee)&&(ei=ee.offsetWidth>0&&t$(eo.width)/ee.offsetWidth||1,es=ee.offsetHeight>0&&t$(eo.height)/ee.offsetHeight||1);var eu=(isElement(ee)?getWindow(ee):window).visualViewport,ec=!isLayoutViewport()&&er,ed=(eo.left+(ec&&eu?eu.offsetLeft:0))/ei,ep=(eo.top+(ec&&eu?eu.offsetTop:0))/es,ef=eo.width/ei,eh=eo.height/es;return{width:ef,height:eh,top:ep,right:ed+ef,bottom:ep+eh,left:ed,x:ed,y:ep}}function getWindowScroll(ee){var en=getWindow(ee);return{scrollLeft:en.pageXOffset,scrollTop:en.pageYOffset}}function getHTMLElementScroll(ee){return{scrollLeft:ee.scrollLeft,scrollTop:ee.scrollTop}}function getNodeScroll(ee){return ee!==getWindow(ee)&&isHTMLElement(ee)?getHTMLElementScroll(ee):getWindowScroll(ee)}function getNodeName(ee){return ee?(ee.nodeName||"").toLowerCase():null}function getDocumentElement(ee){return((isElement(ee)?ee.ownerDocument:ee.document)||window.document).documentElement}function getWindowScrollBarX(ee){return getBoundingClientRect(getDocumentElement(ee)).left+getWindowScroll(ee).scrollLeft}function getComputedStyle_getComputedStyle(ee){return getWindow(ee).getComputedStyle(ee)}function isScrollParent(ee){var en=getComputedStyle_getComputedStyle(ee),er=en.overflow,eo=en.overflowX,ei=en.overflowY;return/auto|scroll|overlay|hidden/.test(er+ei+eo)}function isElementScaled(ee){var en=ee.getBoundingClientRect(),er=t$(en.width)/ee.offsetWidth||1,eo=t$(en.height)/ee.offsetHeight||1;return 1!==er||1!==eo}function getCompositeRect(ee,en,er){void 0===er&&(er=!1);var eo=isHTMLElement(en),ei=isHTMLElement(en)&&isElementScaled(en),es=getDocumentElement(en),eu=getBoundingClientRect(ee,ei,er),ec={scrollLeft:0,scrollTop:0},ed={x:0,y:0};return(eo||!eo&&!er)&&(("body"!==getNodeName(en)||isScrollParent(es))&&(ec=getNodeScroll(en)),isHTMLElement(en)?(ed=getBoundingClientRect(en,!0),ed.x+=en.clientLeft,ed.y+=en.clientTop):es&&(ed.x=getWindowScrollBarX(es))),{x:eu.left+ec.scrollLeft-ed.x,y:eu.top+ec.scrollTop-ed.y,width:eu.width,height:eu.height}}function getLayoutRect(ee){var en=getBoundingClientRect(ee),er=ee.offsetWidth,eo=ee.offsetHeight;return 1>=Math.abs(en.width-er)&&(er=en.width),1>=Math.abs(en.height-eo)&&(eo=en.height),{x:ee.offsetLeft,y:ee.offsetTop,width:er,height:eo}}function getParentNode(ee){return"html"===getNodeName(ee)?ee:ee.assignedSlot||ee.parentNode||(isShadowRoot(ee)?ee.host:null)||getDocumentElement(ee)}function getScrollParent(ee){return["html","body","#document"].indexOf(getNodeName(ee))>=0?ee.ownerDocument.body:isHTMLElement(ee)&&isScrollParent(ee)?ee:getScrollParent(getParentNode(ee))}function listScrollParents(ee,en){void 0===en&&(en=[]);var er,eo=getScrollParent(ee),ei=eo===(null==(er=ee.ownerDocument)?void 0:er.body),es=getWindow(eo),eu=ei?[es].concat(es.visualViewport||[],isScrollParent(eo)?eo:[]):eo,ec=en.concat(eu);return ei?ec:ec.concat(listScrollParents(getParentNode(eu)))}function isTableElement(ee){return["table","td","th"].indexOf(getNodeName(ee))>=0}function getTrueOffsetParent(ee){return isHTMLElement(ee)&&"fixed"!==getComputedStyle_getComputedStyle(ee).position?ee.offsetParent:null}function getContainingBlock(ee){var en=/firefox/i.test(getUAString());if(/Trident/i.test(getUAString())&&isHTMLElement(ee)&&"fixed"===getComputedStyle_getComputedStyle(ee).position)return null;var er=getParentNode(ee);for(isShadowRoot(er)&&(er=er.host);isHTMLElement(er)&&0>["html","body"].indexOf(getNodeName(er));){var eo=getComputedStyle_getComputedStyle(er);if("none"!==eo.transform||"none"!==eo.perspective||"paint"===eo.contain||-1!==["transform","perspective"].indexOf(eo.willChange)||en&&"filter"===eo.willChange||en&&eo.filter&&"none"!==eo.filter)return er;er=er.parentNode}return null}function getOffsetParent(ee){for(var en=getWindow(ee),er=getTrueOffsetParent(ee);er&&isTableElement(er)&&"static"===getComputedStyle_getComputedStyle(er).position;)er=getTrueOffsetParent(er);return er&&("html"===getNodeName(er)||"body"===getNodeName(er)&&"static"===getComputedStyle_getComputedStyle(er).position)?en:er||getContainingBlock(ee)||en}var tH="top",tB="bottom",tW="right",tG="left",tK="auto",tq=[tH,tB,tW,tG],tX="start",tY="end",tQ="clippingParents",tJ="viewport",t0="popper",t1="reference",t2=tq.reduce(function(ee,en){return ee.concat([en+"-"+tX,en+"-"+tY])},[]),t4=[].concat(tq,[tK]).reduce(function(ee,en){return ee.concat([en,en+"-"+tX,en+"-"+tY])},[]),t5=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function order(ee){var en=new Map,er=new Set,eo=[];function sort(ee){er.add(ee.name),[].concat(ee.requires||[],ee.requiresIfExists||[]).forEach(function(ee){if(!er.has(ee)){var eo=en.get(ee);eo&&sort(eo)}}),eo.push(ee)}return ee.forEach(function(ee){en.set(ee.name,ee)}),ee.forEach(function(ee){er.has(ee.name)||sort(ee)}),eo}function orderModifiers(ee){var en=order(ee);return t5.reduce(function(ee,er){return ee.concat(en.filter(function(ee){return ee.phase===er}))},[])}function debounce(ee){var en;return function(){return en||(en=new Promise(function(er){Promise.resolve().then(function(){en=void 0,er(ee())})})),en}}function mergeByName(ee){var en=ee.reduce(function(ee,en){var er=ee[en.name];return ee[en.name]=er?Object.assign({},er,en,{options:Object.assign({},er.options,en.options),data:Object.assign({},er.data,en.data)}):en,ee},{});return Object.keys(en).map(function(ee){return en[ee]})}var t3={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var ee=arguments.length,en=Array(ee),er=0;er=0?"x":"y"}function computeOffsets(ee){var en,er=ee.reference,eo=ee.element,ei=ee.placement,es=ei?getBasePlacement(ei):null,eu=ei?getVariation(ei):null,ec=er.x+er.width/2-eo.width/2,ed=er.y+er.height/2-eo.height/2;switch(es){case tH:en={x:ec,y:er.y-eo.height};break;case tB:en={x:ec,y:er.y+er.height};break;case tW:en={x:er.x+er.width,y:ed};break;case tG:en={x:er.x-eo.width,y:ed};break;default:en={x:er.x,y:er.y}}var ep=es?getMainAxisFromPlacement(es):null;if(null!=ep){var ef="y"===ep?"height":"width";switch(eu){case tX:en[ep]=en[ep]-(er[ef]/2-eo[ef]/2);break;case tY:en[ep]=en[ep]+(er[ef]/2-eo[ef]/2)}}return en}var t6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(ee,en){var er=ee.x,eo=ee.y,ei=en.devicePixelRatio||1;return{x:t$(er*ei)/ei||0,y:t$(eo*ei)/ei||0}}function mapToStyles(ee){var en,er,eo=ee.popper,ei=ee.popperRect,es=ee.placement,eu=ee.variation,ec=ee.offsets,ed=ee.position,ep=ee.gpuAcceleration,ef=ee.adaptive,eh=ee.roundOffsets,em=ee.isFixed,ex=ec.x,eg=void 0===ex?0:ex,ev=ec.y,ey=void 0===ev?0:ev,eb="function"==typeof eh?eh({x:eg,y:ey}):{x:eg,y:ey};eg=eb.x,ey=eb.y;var e_=ec.hasOwnProperty("x"),ew=ec.hasOwnProperty("y"),ek=tG,eC=tH,eT=window;if(ef){var eS=getOffsetParent(eo),eE="clientHeight",eO="clientWidth";eS===getWindow(eo)&&"static"!==getComputedStyle_getComputedStyle(eS=getDocumentElement(eo)).position&&"absolute"===ed&&(eE="scrollHeight",eO="scrollWidth"),(es===tH||(es===tG||es===tW)&&eu===tY)&&(eC=tB,ey-=(em&&eS===eT&&eT.visualViewport?eT.visualViewport.height:eS[eE])-ei.height,ey*=ep?1:-1),(es===tG||(es===tH||es===tB)&&eu===tY)&&(ek=tW,eg-=(em&&eS===eT&&eT.visualViewport?eT.visualViewport.width:eS[eO])-ei.width,eg*=ep?1:-1)}var ej=Object.assign({position:ed},ef&&t6),eI=!0===eh?roundOffsetsByDPR({x:eg,y:ey},getWindow(eo)):{x:eg,y:ey};return(eg=eI.x,ey=eI.y,ep)?Object.assign({},ej,((er={})[eC]=ew?"0":"",er[ek]=e_?"0":"",er.transform=1>=(eT.devicePixelRatio||1)?"translate("+eg+"px, "+ey+"px)":"translate3d("+eg+"px, "+ey+"px, 0)",er)):Object.assign({},ej,((en={})[eC]=ew?ey+"px":"",en[ek]=e_?eg+"px":"",en.transform="",en))}function distanceAndSkiddingToXY(ee,en,er){var eo=getBasePlacement(ee),ei=[tG,tH].indexOf(eo)>=0?-1:1,es="function"==typeof er?er(Object.assign({},en,{placement:ee})):er,eu=es[0],ec=es[1];return eu=eu||0,ec=(ec||0)*ei,[tG,tW].indexOf(eo)>=0?{x:ec,y:eu}:{x:eu,y:ec}}var t9={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(ee){return ee.replace(/left|right|bottom|top/g,function(ee){return t9[ee]})}var t8={start:"end",end:"start"};function getOppositeVariationPlacement(ee){return ee.replace(/start|end/g,function(ee){return t8[ee]})}function getViewportRect(ee,en){var er=getWindow(ee),eo=getDocumentElement(ee),ei=er.visualViewport,es=eo.clientWidth,eu=eo.clientHeight,ec=0,ed=0;if(ei){es=ei.width,eu=ei.height;var ep=isLayoutViewport();(ep||!ep&&"fixed"===en)&&(ec=ei.offsetLeft,ed=ei.offsetTop)}return{width:es,height:eu,x:ec+getWindowScrollBarX(ee),y:ed}}function getDocumentRect(ee){var en,er=getDocumentElement(ee),eo=getWindowScroll(ee),ei=null==(en=ee.ownerDocument)?void 0:en.body,es=tV(er.scrollWidth,er.clientWidth,ei?ei.scrollWidth:0,ei?ei.clientWidth:0),eu=tV(er.scrollHeight,er.clientHeight,ei?ei.scrollHeight:0,ei?ei.clientHeight:0),ec=-eo.scrollLeft+getWindowScrollBarX(ee),ed=-eo.scrollTop;return"rtl"===getComputedStyle_getComputedStyle(ei||er).direction&&(ec+=tV(er.clientWidth,ei?ei.clientWidth:0)-es),{width:es,height:eu,x:ec,y:ed}}function contains(ee,en){var er=en.getRootNode&&en.getRootNode();if(ee.contains(en))return!0;if(er&&isShadowRoot(er)){var eo=en;do{if(eo&&ee.isSameNode(eo))return!0;eo=eo.parentNode||eo.host}while(eo)}return!1}function rectToClientRect(ee){return Object.assign({},ee,{left:ee.x,top:ee.y,right:ee.x+ee.width,bottom:ee.y+ee.height})}function getInnerBoundingClientRect(ee,en){var er=getBoundingClientRect(ee,!1,"fixed"===en);return er.top=er.top+ee.clientTop,er.left=er.left+ee.clientLeft,er.bottom=er.top+ee.clientHeight,er.right=er.left+ee.clientWidth,er.width=ee.clientWidth,er.height=ee.clientHeight,er.x=er.left,er.y=er.top,er}function getClientRectFromMixedType(ee,en,er){return en===tJ?rectToClientRect(getViewportRect(ee,er)):isElement(en)?getInnerBoundingClientRect(en,er):rectToClientRect(getDocumentRect(getDocumentElement(ee)))}function getClippingParents(ee){var en=listScrollParents(getParentNode(ee)),er=["absolute","fixed"].indexOf(getComputedStyle_getComputedStyle(ee).position)>=0&&isHTMLElement(ee)?getOffsetParent(ee):ee;return isElement(er)?en.filter(function(ee){return isElement(ee)&&contains(ee,er)&&"body"!==getNodeName(ee)}):[]}function getClippingRect(ee,en,er,eo){var ei=[].concat("clippingParents"===en?getClippingParents(ee):[].concat(en),[er]),es=ei[0],eu=ei.reduce(function(en,er){var ei=getClientRectFromMixedType(ee,er,eo);return en.top=tV(ei.top,en.top),en.right=tU(ei.right,en.right),en.bottom=tU(ei.bottom,en.bottom),en.left=tV(ei.left,en.left),en},getClientRectFromMixedType(ee,es,eo));return eu.width=eu.right-eu.left,eu.height=eu.bottom-eu.top,eu.x=eu.left,eu.y=eu.top,eu}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(ee){return Object.assign({},getFreshSideObject(),ee)}function expandToHashMap(ee,en){return en.reduce(function(en,er){return en[er]=ee,en},{})}function detectOverflow(ee,en){void 0===en&&(en={});var er=en,eo=er.placement,ei=void 0===eo?ee.placement:eo,es=er.strategy,eu=void 0===es?ee.strategy:es,ec=er.boundary,ed=void 0===ec?tQ:ec,ep=er.rootBoundary,ef=void 0===ep?tJ:ep,eh=er.elementContext,em=void 0===eh?t0:eh,ex=er.altBoundary,eg=void 0!==ex&&ex,ev=er.padding,ey=void 0===ev?0:ev,eb=mergePaddingObject("number"!=typeof ey?ey:expandToHashMap(ey,tq)),e_=em===t0?t1:t0,ew=ee.rects.popper,ek=ee.elements[eg?e_:em],eC=getClippingRect(isElement(ek)?ek:ek.contextElement||getDocumentElement(ee.elements.popper),ed,ef,eu),eT=getBoundingClientRect(ee.elements.reference),eS=computeOffsets({reference:eT,element:ew,strategy:"absolute",placement:ei}),eE=rectToClientRect(Object.assign({},ew,eS)),eO=em===t0?eE:eT,ej={top:eC.top-eO.top+eb.top,bottom:eO.bottom-eC.bottom+eb.bottom,left:eC.left-eO.left+eb.left,right:eO.right-eC.right+eb.right},eI=ee.modifiersData.offset;if(em===t0&&eI){var eP=eI[ei];Object.keys(ej).forEach(function(ee){var en=[tW,tB].indexOf(ee)>=0?1:-1,er=[tH,tB].indexOf(ee)>=0?"y":"x";ej[ee]+=eP[er]*en})}return ej}function computeAutoPlacement(ee,en){void 0===en&&(en={});var er=en,eo=er.placement,ei=er.boundary,es=er.rootBoundary,eu=er.padding,ec=er.flipVariations,ed=er.allowedAutoPlacements,ep=void 0===ed?t4:ed,ef=getVariation(eo),eh=ef?ec?t2:t2.filter(function(ee){return getVariation(ee)===ef}):tq,em=eh.filter(function(ee){return ep.indexOf(ee)>=0});0===em.length&&(em=eh);var ex=em.reduce(function(en,er){return en[er]=detectOverflow(ee,{placement:er,boundary:ei,rootBoundary:es,padding:eu})[getBasePlacement(er)],en},{});return Object.keys(ex).sort(function(ee,en){return ex[ee]-ex[en]})}function getExpandedFallbackPlacements(ee){if(getBasePlacement(ee)===tK)return[];var en=getOppositePlacement(ee);return[getOppositeVariationPlacement(ee),en,getOppositeVariationPlacement(en)]}function getAltAxis(ee){return"x"===ee?"y":"x"}function within(ee,en,er){return tV(ee,tU(en,er))}function withinMaxClamp(ee,en,er){var eo=within(ee,en,er);return eo>er?er:eo}var toPaddingObject=function(ee,en){return mergePaddingObject("number"!=typeof(ee="function"==typeof ee?ee(Object.assign({},en.rects,{placement:en.placement})):ee)?ee:expandToHashMap(ee,tq))};function getSideOffsets(ee,en,er){return void 0===er&&(er={x:0,y:0}),{top:ee.top-en.height-er.y,right:ee.right-en.width+er.x,bottom:ee.bottom-en.height+er.y,left:ee.left-en.width-er.x}}function isAnySideFullyClipped(ee){return[tH,tW,tB,tG].some(function(en){return ee[en]>=0})}var ne=function(ee){void 0===ee&&(ee={});var en=ee,er=en.defaultModifiers,eo=void 0===er?[]:er,ei=en.defaultOptions,es=void 0===ei?t3:ei;return function(ee,en,er){void 0===er&&(er=es);var ei={placement:"bottom",orderedModifiers:[],options:Object.assign({},t3,es),modifiersData:{},elements:{reference:ee,popper:en},attributes:{},styles:{}},eu=[],ec=!1,ed={state:ei,setOptions:function(er){var eu="function"==typeof er?er(ei.options):er;cleanupModifierEffects(),ei.options=Object.assign({},es,ei.options,eu),ei.scrollParents={reference:isElement(ee)?listScrollParents(ee):ee.contextElement?listScrollParents(ee.contextElement):[],popper:listScrollParents(en)};var ec=orderModifiers(mergeByName([].concat(eo,ei.options.modifiers)));return ei.orderedModifiers=ec.filter(function(ee){return ee.enabled}),runModifierEffects(),ed.update()},forceUpdate:function(){if(!ec){var ee=ei.elements,en=ee.reference,er=ee.popper;if(areValidElements(en,er)){ei.rects={reference:getCompositeRect(en,getOffsetParent(er),"fixed"===ei.options.strategy),popper:getLayoutRect(er)},ei.reset=!1,ei.placement=ei.options.placement,ei.orderedModifiers.forEach(function(ee){return ei.modifiersData[ee.name]=Object.assign({},ee.data)});for(var eo=0;eo=0,eN=eR?"width":"height",eZ=detectOverflow(en,{placement:ej,boundary:ef,rootBoundary:eh,altBoundary:em,padding:ep}),eM=eR?eP?tW:tG:eP?tB:tH;ek[eN]>eC[eN]&&(eM=getOppositePlacement(eM));var eA=getOppositePlacement(eM),eL=[];if(es&&eL.push(eZ[eI]<=0),ec&&eL.push(eZ[eM]<=0,eZ[eA]<=0),eL.every(function(ee){return ee})){eE=ej,eS=!1;break}eT.set(ej,eL)}if(eS)for(var eD=eg?3:1,_loop=function(ee){var en=ew.find(function(en){var er=eT.get(en);if(er)return er.slice(0,ee).every(function(ee){return ee})});if(en)return eE=en,"break"},eF=eD;eF>0&&"break"!==_loop(eF);eF--);en.placement!==eE&&(en.modifiersData[eo]._skip=!0,en.placement=eE,en.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(ee){var en=ee.state,er=ee.options,eo=ee.name,ei=er.mainAxis,es=void 0===ei||ei,eu=er.altAxis,ec=void 0!==eu&&eu,ed=er.boundary,ep=er.rootBoundary,ef=er.altBoundary,eh=er.padding,em=er.tether,ex=void 0===em||em,eg=er.tetherOffset,ev=void 0===eg?0:eg,ey=detectOverflow(en,{boundary:ed,rootBoundary:ep,padding:eh,altBoundary:ef}),eb=getBasePlacement(en.placement),e_=getVariation(en.placement),ew=!e_,ek=getMainAxisFromPlacement(eb),eC=getAltAxis(ek),eT=en.modifiersData.popperOffsets,eS=en.rects.reference,eE=en.rects.popper,eO="function"==typeof ev?ev(Object.assign({},en.rects,{placement:en.placement})):ev,ej="number"==typeof eO?{mainAxis:eO,altAxis:eO}:Object.assign({mainAxis:0,altAxis:0},eO),eI=en.modifiersData.offset?en.modifiersData.offset[en.placement]:null,eP={x:0,y:0};if(eT){if(es){var eR,eN="y"===ek?tH:tG,eZ="y"===ek?tB:tW,eM="y"===ek?"height":"width",eA=eT[ek],eL=eA+ey[eN],eD=eA-ey[eZ],eF=ex?-eE[eM]/2:0,ez=e_===tX?eS[eM]:eE[eM],eV=e_===tX?-eE[eM]:-eS[eM],eU=en.elements.arrow,e$=ex&&eU?getLayoutRect(eU):{width:0,height:0},eH=en.modifiersData["arrow#persistent"]?en.modifiersData["arrow#persistent"].padding:getFreshSideObject(),eB=eH[eN],eW=eH[eZ],eG=within(0,eS[eM],e$[eM]),eK=ew?eS[eM]/2-eF-eG-eB-ej.mainAxis:ez-eG-eB-ej.mainAxis,eX=ew?-eS[eM]/2+eF+eG+eW+ej.mainAxis:eV+eG+eW+ej.mainAxis,eY=en.elements.arrow&&getOffsetParent(en.elements.arrow),eQ=eY?"y"===ek?eY.clientTop||0:eY.clientLeft||0:0,eJ=null!=(eR=null==eI?void 0:eI[ek])?eR:0,e0=eA+eK-eJ-eQ,e1=eA+eX-eJ,e2=within(ex?tU(eL,e0):eL,eA,ex?tV(eD,e1):eD);eT[ek]=e2,eP[ek]=e2-eA}if(ec){var e4,e5="x"===ek?tH:tG,e3="x"===ek?tB:tW,e7=eT[eC],e6="y"===eC?"height":"width",e9=e7+ey[e5],e8=e7-ey[e3],tt=-1!==[tH,tG].indexOf(eb),tn=null!=(e4=null==eI?void 0:eI[eC])?e4:0,tr=tt?e9:e7-eS[e6]-eE[e6]-tn+ej.altAxis,to=tt?e7+eS[e6]+eE[e6]-tn-ej.altAxis:e8,ti=ex&&tt?withinMaxClamp(tr,e7,to):within(ex?tr:e9,e7,ex?to:e8);eT[eC]=ti,eP[eC]=ti-e7}en.modifiersData[eo]=eP}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(ee){var en,er=ee.state,eo=ee.name,ei=ee.options,es=er.elements.arrow,eu=er.modifiersData.popperOffsets,ec=getBasePlacement(er.placement),ed=getMainAxisFromPlacement(ec),ep=[tG,tW].indexOf(ec)>=0?"height":"width";if(es&&eu){var ef=toPaddingObject(ei.padding,er),eh=getLayoutRect(es),em="y"===ed?tH:tG,ex="y"===ed?tB:tW,eg=er.rects.reference[ep]+er.rects.reference[ed]-eu[ed]-er.rects.popper[ep],ev=eu[ed]-er.rects.reference[ed],ey=getOffsetParent(es),eb=ey?"y"===ed?ey.clientHeight||0:ey.clientWidth||0:0,e_=eg/2-ev/2,ew=ef[em],ek=eb-eh[ep]-ef[ex],eC=eb/2-eh[ep]/2+e_,eT=within(ew,eC,ek),eS=ed;er.modifiersData[eo]=((en={})[eS]=eT,en.centerOffset=eT-eC,en)}},effect:function(ee){var en=ee.state,er=ee.options.element,eo=void 0===er?"[data-popper-arrow]":er;null!=eo&&("string"!=typeof eo||(eo=en.elements.popper.querySelector(eo)))&&contains(en.elements.popper,eo)&&(en.elements.arrow=eo)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(ee){var en=ee.state,er=ee.name,eo=en.rects.reference,ei=en.rects.popper,es=en.modifiersData.preventOverflow,eu=detectOverflow(en,{elementContext:"reference"}),ec=detectOverflow(en,{altBoundary:!0}),ed=getSideOffsets(eu,eo),ep=getSideOffsets(ec,ei,es),ef=isAnySideFullyClipped(ed),eh=isAnySideFullyClipped(ep);en.modifiersData[er]={referenceClippingOffsets:ed,popperEscapeOffsets:ep,isReferenceHidden:ef,hasPopperEscaped:eh},en.attributes.popper=Object.assign({},en.attributes.popper,{"data-popper-reference-hidden":ef,"data-popper-escaped":eh})}}]}),nt=er(6304),nn=er.n(nt);function escapeStringRegexp(ee){if("string"!=typeof ee)throw TypeError("Expected a string");return ee.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var nr=er(2351);let no=(0,ek.createContext)(null);no.displayName="OpenClosedContext";var ni=((ei=ni||{})[ei.Open=1]="Open",ei[ei.Closed=2]="Closed",ei[ei.Closing=4]="Closing",ei[ei.Opening=8]="Opening",ei);function C(){return(0,ek.useContext)(no)}function open_closed_c({value:ee,children:en}){return ek.createElement(no.Provider,{value:ee},en)}var ns=er(2984),nl=er(4879),nu=er(6723),nc=er(3855),nd=er(2180),np=er(3784);function once_l(ee){let en={called:!1};return(...er)=>{if(!en.called)return en.called=!0,ee(...er)}}var nf=er(9362);function transition_d(ee,...en){ee&&en.length>0&&ee.classList.add(...en)}function transition_v(ee,...en){ee&&en.length>0&&ee.classList.remove(...en)}function F(ee,en){let er=(0,nf.k)();if(!ee)return er.dispose;let{transitionDuration:eo,transitionDelay:ei}=getComputedStyle(ee),[es,eu]=[eo,ei].map(ee=>{let[en=0]=ee.split(",").filter(Boolean).map(ee=>ee.includes("ms")?parseFloat(ee):1e3*parseFloat(ee)).sort((ee,en)=>en-ee);return en}),ec=es+eu;if(0!==ec){er.group(er=>{er.setTimeout(()=>{en(),er.dispose()},ec),er.addEventListener(ee,"transitionrun",ee=>{ee.target===ee.currentTarget&&er.dispose()})});let eo=er.addEventListener(ee,"transitionend",ee=>{ee.target===ee.currentTarget&&(en(),eo())})}else en();return er.add(()=>en()),er.dispose}function transition_y(ee,en,er,eo){let ei=er?"enter":"leave",es=(0,nf.k)(),eu=void 0!==eo?once_l(eo):()=>{};"enter"===ei&&(ee.removeAttribute("hidden"),ee.style.display="");let ec=(0,ns.E)(ei,{enter:()=>en.enter,leave:()=>en.leave}),ed=(0,ns.E)(ei,{enter:()=>en.enterTo,leave:()=>en.leaveTo}),ep=(0,ns.E)(ei,{enter:()=>en.enterFrom,leave:()=>en.leaveFrom});return transition_v(ee,...en.enter,...en.enterTo,...en.enterFrom,...en.leave,...en.leaveFrom,...en.leaveTo,...en.entered),transition_d(ee,...ec,...ep),es.nextFrame(()=>{transition_v(ee,...ep),transition_d(ee,...ed),F(ee,()=>(transition_v(ee,...ec),transition_d(ee,...en.entered),eu()))}),es.dispose}function use_disposables_p(){let[ee]=(0,ek.useState)(nf.k);return(0,ek.useEffect)(()=>()=>ee.dispose(),[ee]),ee}function use_transition_D({container:ee,direction:en,classes:er,onStart:eo,onStop:ei}){let es=(0,nl.t)(),eu=use_disposables_p(),ec=(0,nc.E)(en);(0,nu.e)(()=>{let en=(0,nf.k)();eu.add(en.dispose);let ed=ee.current;if(ed&&"idle"!==ec.current&&es.current)return en.dispose(),eo.current(ec.current),en.add(transition_y(ed,er.current,"enter"===ec.current,()=>{en.dispose(),ei.current(ec.current)})),en.dispose},[en])}var nh=er(3781),nm=er(4067);function use_flags_c(ee=0){let[en,er]=(0,ek.useState)(ee),eo=(0,nl.t)(),ei=(0,ek.useCallback)(ee=>{eo.current&&er(en=>en|ee)},[en,eo]),es=(0,ek.useCallback)(ee=>!!(en&ee),[en]);return{flags:en,addFlag:ei,hasFlag:es,removeFlag:(0,ek.useCallback)(ee=>{eo.current&&er(en=>en&~ee)},[er,eo]),toggleFlag:(0,ek.useCallback)(ee=>{eo.current&&er(en=>en^ee)},[er])}}function x(ee=""){return ee.split(" ").filter(ee=>ee.trim().length>1)}let nx=(0,ek.createContext)(null);nx.displayName="TransitionContext";var ng=((es=ng||{}).Visible="visible",es.Hidden="hidden",es);function Ee(){let ee=(0,ek.useContext)(nx);if(null===ee)throw Error("A is used but it is missing a parent or .");return ee}function be(){let ee=(0,ek.useContext)(nv);if(null===ee)throw Error("A is used but it is missing a parent or .");return ee}let nv=(0,ek.createContext)(null);function M(ee){return"children"in ee?M(ee.children):ee.current.filter(({el:ee})=>null!==ee.current).filter(({state:ee})=>"visible"===ee).length>0}function re(ee,en){let er=(0,nc.E)(ee),eo=(0,ek.useRef)([]),ei=(0,nl.t)(),es=use_disposables_p(),eu=(0,nh.z)((ee,en=nr.l4.Hidden)=>{let eu=eo.current.findIndex(({el:en})=>en===ee);-1!==eu&&((0,ns.E)(en,{[nr.l4.Unmount](){eo.current.splice(eu,1)},[nr.l4.Hidden](){eo.current[eu].state="hidden"}}),es.microTask(()=>{var ee;!M(eo)&&ei.current&&(null==(ee=er.current)||ee.call(er))}))}),ec=(0,nh.z)(ee=>{let en=eo.current.find(({el:en})=>en===ee);return en?"visible"!==en.state&&(en.state="visible"):eo.current.push({el:ee,state:"visible"}),()=>eu(ee,nr.l4.Unmount)}),ed=(0,ek.useRef)([]),ep=(0,ek.useRef)(Promise.resolve()),ef=(0,ek.useRef)({enter:[],leave:[],idle:[]}),eh=(0,nh.z)((ee,er,eo)=>{ed.current.splice(0),en&&(en.chains.current[er]=en.chains.current[er].filter(([en])=>en!==ee)),null==en||en.chains.current[er].push([ee,new Promise(ee=>{ed.current.push(ee)})]),null==en||en.chains.current[er].push([ee,new Promise(ee=>{Promise.all(ef.current[er].map(([ee,en])=>en)).then(()=>ee())})]),"enter"===er?ep.current=ep.current.then(()=>null==en?void 0:en.wait.current).then(()=>eo(er)):eo(er)}),em=(0,nh.z)((ee,en,er)=>{Promise.all(ef.current[en].splice(0).map(([ee,en])=>en)).then(()=>{var ee;null==(ee=ed.current.shift())||ee()}).then(()=>er(en))});return(0,ek.useMemo)(()=>({children:eo,register:ec,unregister:eu,onStart:eh,onStop:em,wait:ep,chains:ef}),[ec,eu,eo,eh,em,ef,ep])}function Se(){}nv.displayName="NestingContext";let ny=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ie(ee){var en;let er={};for(let eo of ny)er[eo]=null!=(en=ee[eo])?en:Se;return er}function Pe(ee){let en=(0,ek.useRef)(ie(ee));return(0,ek.useEffect)(()=>{en.current=ie(ee)},[ee]),en}let nb="div",n_=nr.AN.RenderStrategy;function ye(ee,en){let{beforeEnter:er,afterEnter:eo,beforeLeave:ei,afterLeave:es,enter:eu,enterFrom:ec,enterTo:ed,entered:ep,leave:ef,leaveFrom:eh,leaveTo:em,...ex}=ee,eg=(0,ek.useRef)(null),ev=(0,np.T)(eg,en),ey=ex.unmount?nr.l4.Unmount:nr.l4.Hidden,{show:eb,appear:e_,initial:ew}=Ee(),[eC,eT]=(0,ek.useState)(eb?"visible":"hidden"),eS=be(),{register:eE,unregister:eO}=eS,ej=(0,ek.useRef)(null);(0,ek.useEffect)(()=>eE(eg),[eE,eg]),(0,ek.useEffect)(()=>{if(ey===nr.l4.Hidden&&eg.current){if(eb&&"visible"!==eC){eT("visible");return}return(0,ns.E)(eC,{hidden:()=>eO(eg),visible:()=>eE(eg)})}},[eC,eg,eE,eO,eb,ey]);let eI=(0,nc.E)({enter:x(eu),enterFrom:x(ec),enterTo:x(ed),entered:x(ep),leave:x(ef),leaveFrom:x(eh),leaveTo:x(em)}),eP=Pe({beforeEnter:er,afterEnter:eo,beforeLeave:ei,afterLeave:es}),eR=(0,nd.H)();(0,ek.useEffect)(()=>{if(eR&&"visible"===eC&&null===eg.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[eg,eC,eR]);let eN=ew&&!e_,eZ=!eR||eN||ej.current===eb?"idle":eb?"enter":"leave",eM=use_flags_c(0),eA=(0,nh.z)(ee=>(0,ns.E)(ee,{enter:()=>{eM.addFlag(ni.Opening),eP.current.beforeEnter()},leave:()=>{eM.addFlag(ni.Closing),eP.current.beforeLeave()},idle:()=>{}})),eL=(0,nh.z)(ee=>(0,ns.E)(ee,{enter:()=>{eM.removeFlag(ni.Opening),eP.current.afterEnter()},leave:()=>{eM.removeFlag(ni.Closing),eP.current.afterLeave()},idle:()=>{}})),eD=re(()=>{eT("hidden"),eO(eg)},eS);use_transition_D({container:eg,classes:eI,direction:eZ,onStart:(0,nc.E)(ee=>{eD.onStart(eg,ee,eA)}),onStop:(0,nc.E)(ee=>{eD.onStop(eg,ee,eL),"leave"!==ee||M(eD)||(eT("hidden"),eO(eg))})}),(0,ek.useEffect)(()=>{eN&&(ey===nr.l4.Hidden?ej.current=null:ej.current=eb)},[eb,eN,eC]);let eF=ex,ez={ref:ev};return e_&&eb&&ew&&(eF={...eF,className:(0,nm.A)(ex.className,...eI.current.enter,...eI.current.enterFrom)}),ek.createElement(nv.Provider,{value:eD},ek.createElement(open_closed_c,{value:(0,ns.E)(eC,{visible:ni.Open,hidden:ni.Closed})|eM.flags},(0,nr.sY)({ourProps:ez,theirProps:eF,defaultTag:nb,features:n_,visible:"visible"===eC,name:"Transition.Child"})))}function Ne(ee,en){let{show:er,appear:eo=!1,unmount:ei,...es}=ee,eu=(0,ek.useRef)(null),ec=(0,np.T)(eu,en);(0,nd.H)();let ed=C();if(void 0===er&&null!==ed&&(er=(ed&ni.Open)===ni.Open),![!0,!1].includes(er))throw Error("A is used but it is missing a `show={true | false}` prop.");let[ep,ef]=(0,ek.useState)(er?"visible":"hidden"),eh=re(()=>{ef("hidden")}),[em,ex]=(0,ek.useState)(!0),eg=(0,ek.useRef)([er]);(0,nu.e)(()=>{!1!==em&&eg.current[eg.current.length-1]!==er&&(eg.current.push(er),ex(!1))},[eg,er]);let ev=(0,ek.useMemo)(()=>({show:er,appear:eo,initial:em}),[er,eo,em]);(0,ek.useEffect)(()=>{if(er)ef("visible");else if(M(eh)){let ee=eu.current;if(!ee)return;let en=ee.getBoundingClientRect();0===en.x&&0===en.y&&0===en.width&&0===en.height&&ef("hidden")}else ef("hidden")},[er,eh]);let ey={unmount:ei},eb=(0,nh.z)(()=>{var en;em&&ex(!1),null==(en=ee.beforeEnter)||en.call(ee)}),e_=(0,nh.z)(()=>{var en;em&&ex(!1),null==(en=ee.beforeLeave)||en.call(ee)});return ek.createElement(nv.Provider,{value:eh},ek.createElement(nx.Provider,{value:ev},(0,nr.sY)({ourProps:{...ey,as:ek.Fragment,children:ek.createElement(nk,{ref:ec,...ey,...es,beforeEnter:eb,beforeLeave:e_})},theirProps:{},defaultTag:ek.Fragment,features:n_,visible:"visible"===ep,name:"Transition"})))}function He(ee,en){let er=null!==(0,ek.useContext)(nx),eo=null!==C();return ek.createElement(ek.Fragment,null,!er&&eo?ek.createElement(nw,{ref:en,...ee}):ek.createElement(nk,{ref:en,...ee}))}let nw=(0,nr.yV)(Ne),nk=(0,nr.yV)(ye),nC=Object.assign(nw,{Child:(0,nr.yV)(He),Root:nw});var nT=er(7192),nS=er(9946);function use_computed_i(ee,en){let[er,eo]=(0,ek.useState)(ee),ei=(0,nc.E)(ee);return(0,nu.e)(()=>eo(ei.current),[ei,eo,...en]),er}var nE=er(1363);function calculate_active_index_f(ee){throw Error("Unexpected object: "+ee)}var nO=((eu=nO||{})[eu.First=0]="First",eu[eu.Previous=1]="Previous",eu[eu.Next=2]="Next",eu[eu.Last=3]="Last",eu[eu.Specific=4]="Specific",eu[eu.Nothing=5]="Nothing",eu);function calculate_active_index_x(ee,en){let er=en.resolveItems();if(er.length<=0)return null;let eo=en.resolveActiveIndex(),ei=null!=eo?eo:-1,es=(()=>{switch(ee.focus){case 0:return er.findIndex(ee=>!en.resolveDisabled(ee));case 1:{let ee=er.slice().reverse().findIndex((ee,er,eo)=>(-1===ei||!(eo.length-er-1>=ei))&&!en.resolveDisabled(ee));return -1===ee?ee:er.length-1-ee}case 2:return er.findIndex((ee,er)=>!(er<=ei)&&!en.resolveDisabled(ee));case 3:{let ee=er.slice().reverse().findIndex(ee=>!en.resolveDisabled(ee));return -1===ee?ee:er.length-1-ee}case 4:return er.findIndex(er=>en.resolveId(er)===ee.id);case 5:return null;default:calculate_active_index_f(ee)}})();return -1===es?eo:es}function bugs_r(ee){let en=ee.parentElement,er=null;for(;en&&!(en instanceof HTMLFieldSetElement);)en instanceof HTMLLegendElement&&(er=en),en=en.parentElement;let eo=(null==en?void 0:en.getAttribute("disabled"))==="";return!(eo&&bugs_i(er))&&eo}function bugs_i(ee){if(!ee)return!1;let en=ee.previousElementSibling;for(;null!==en;){if(en instanceof HTMLLegendElement)return!1;en=en.previousElementSibling}return!0}var nj=er(4575),nI=er(4157);function use_document_event_d(ee,en,er){let eo=(0,nc.E)(en);(0,ek.useEffect)(()=>{function t(ee){eo.current(ee)}return document.addEventListener(ee,t,er),()=>document.removeEventListener(ee,t,er)},[ee,er])}function use_window_event_s(ee,en,er){let eo=(0,nc.E)(en);(0,ek.useEffect)(()=>{function t(ee){eo.current(ee)}return window.addEventListener(ee,t,er),()=>window.removeEventListener(ee,t,er)},[ee,er])}function use_outside_click_h(ee,en,er=!0){let eo=(0,ek.useRef)(!1);function c(er,ei){if(!eo.current||er.defaultPrevented)return;let es=ei(er);if(null!==es&&es.getRootNode().contains(es)&&es.isConnected){for(let en of function u(ee){return"function"==typeof ee?u(ee()):Array.isArray(ee)||ee instanceof Set?ee:[ee]}(ee)){if(null===en)continue;let ee=en instanceof HTMLElement?en:en.current;if(null!=ee&&ee.contains(es)||er.composed&&er.composedPath().includes(ee))return}return(0,nj.sP)(es,nj.tJ.Loose)||-1===es.tabIndex||er.preventDefault(),en(er,es)}}(0,ek.useEffect)(()=>{requestAnimationFrame(()=>{eo.current=er})},[er]);let ei=(0,ek.useRef)(null);use_document_event_d("pointerdown",ee=>{var en,er;eo.current&&(ei.current=(null==(er=null==(en=ee.composedPath)?void 0:en.call(ee))?void 0:er[0])||ee.target)},!0),use_document_event_d("mousedown",ee=>{var en,er;eo.current&&(ei.current=(null==(er=null==(en=ee.composedPath)?void 0:en.call(ee))?void 0:er[0])||ee.target)},!0),use_document_event_d("click",ee=>{ei.current&&(c(ee,()=>ei.current),ei.current=null)},!0),use_document_event_d("touchend",ee=>c(ee,()=>ee.target instanceof HTMLElement?ee.target:null),!0),use_window_event_s("blur",ee=>c(ee,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var nP=er(6045);function form_e(ee={},en=null,er=[]){for(let[eo,ei]of Object.entries(ee))form_f(er,s(en,eo),ei);return er}function s(ee,en){return ee?ee+"["+en+"]":en}function form_f(ee,en,er){if(Array.isArray(er))for(let[eo,ei]of er.entries())form_f(ee,s(en,eo.toString()),ei);else er instanceof Date?ee.push([en,er.toISOString()]):"boolean"==typeof er?ee.push([en,er?"1":"0"]):"string"==typeof er?ee.push([en,er]):"number"==typeof er?ee.push([en,`${er}`]):null==er?ee.push([en,""]):form_e(er,en,ee)}var nR=er(5466);function use_controllable_T(ee,en,er){let[eo,ei]=(0,ek.useState)(er),es=void 0!==ee,eu=(0,ek.useRef)(es),ec=(0,ek.useRef)(!1),ed=(0,ek.useRef)(!1);return!es||eu.current||ec.current?es||!eu.current||ed.current||(ed.current=!0,eu.current=es,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(ec.current=!0,eu.current=es,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[es?ee:eo,(0,nh.z)(ee=>(es||ei(ee),null==en?void 0:en(ee)))]}function t(ee){return[ee.screenX,ee.screenY]}function use_tracked_pointer_u(){let ee=(0,ek.useRef)([-1,-1]);return{wasMoved(en){let er=t(en);return(ee.current[0]!==er[0]||ee.current[1]!==er[1])&&(ee.current=er,!0)},update(en){ee.current=t(en)}}}let nN=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function o(ee){var en,er;let eo=null!=(en=ee.innerText)?en:"",ei=ee.cloneNode(!0);if(!(ei instanceof HTMLElement))return eo;let es=!1;for(let ee of ei.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))ee.remove(),es=!0;let eu=es?null!=(er=ei.innerText)?er:"":eo;return nN.test(eu)&&(eu=eu.replace(nN,"")),eu}function get_text_value_g(ee){let en=ee.getAttribute("aria-label");if("string"==typeof en)return en.trim();let er=ee.getAttribute("aria-labelledby");if(er){let ee=er.split(" ").map(ee=>{let en=document.getElementById(ee);if(en){let ee=en.getAttribute("aria-label");return"string"==typeof ee?ee.trim():o(en).trim()}return null}).filter(Boolean);if(ee.length>0)return ee.join(", ")}return o(ee).trim()}function use_text_value_b(ee){let en=(0,ek.useRef)(""),er=(0,ek.useRef)("");return(0,nh.z)(()=>{let eo=ee.current;if(!eo)return"";let ei=eo.innerText;if(en.current===ei)return er.current;let es=get_text_value_g(eo).trim().toLowerCase();return en.current=ei,er.current=es,es})}var nZ=((ec=nZ||{})[ec.Open=0]="Open",ec[ec.Closed=1]="Closed",ec),nM=((ed=nM||{})[ed.Single=0]="Single",ed[ed.Multi=1]="Multi",ed),nA=((ep=nA||{})[ep.Pointer=0]="Pointer",ep[ep.Other=1]="Other",ep),nL=((ef=nL||{})[ef.OpenListbox=0]="OpenListbox",ef[ef.CloseListbox=1]="CloseListbox",ef[ef.GoToOption=2]="GoToOption",ef[ef.Search=3]="Search",ef[ef.ClearSearch=4]="ClearSearch",ef[ef.RegisterOption=5]="RegisterOption",ef[ef.UnregisterOption=6]="UnregisterOption",ef[ef.RegisterLabel=7]="RegisterLabel",ef);function listbox_z(ee,en=ee=>ee){let er=null!==ee.activeOptionIndex?ee.options[ee.activeOptionIndex]:null,eo=(0,nj.z2)(en(ee.options.slice()),ee=>ee.dataRef.current.domRef.current),ei=er?eo.indexOf(er):null;return -1===ei&&(ei=null),{options:eo,activeOptionIndex:ei}}let nD={1:ee=>ee.dataRef.current.disabled||1===ee.listboxState?ee:{...ee,activeOptionIndex:null,listboxState:1},0(ee){if(ee.dataRef.current.disabled||0===ee.listboxState)return ee;let en=ee.activeOptionIndex,{isSelected:er}=ee.dataRef.current,eo=ee.options.findIndex(ee=>er(ee.dataRef.current.value));return -1!==eo&&(en=eo),{...ee,listboxState:0,activeOptionIndex:en}},2(ee,en){var er;if(ee.dataRef.current.disabled||1===ee.listboxState)return ee;let eo=listbox_z(ee),ei=calculate_active_index_x(en,{resolveItems:()=>eo.options,resolveActiveIndex:()=>eo.activeOptionIndex,resolveId:ee=>ee.id,resolveDisabled:ee=>ee.dataRef.current.disabled});return{...ee,...eo,searchQuery:"",activeOptionIndex:ei,activationTrigger:null!=(er=en.trigger)?er:1}},3:(ee,en)=>{if(ee.dataRef.current.disabled||1===ee.listboxState)return ee;let er=""!==ee.searchQuery?0:1,eo=ee.searchQuery+en.value.toLowerCase(),ei=(null!==ee.activeOptionIndex?ee.options.slice(ee.activeOptionIndex+er).concat(ee.options.slice(0,ee.activeOptionIndex+er)):ee.options).find(ee=>{var en;return!ee.dataRef.current.disabled&&(null==(en=ee.dataRef.current.textValue)?void 0:en.startsWith(eo))}),es=ei?ee.options.indexOf(ei):-1;return -1===es||es===ee.activeOptionIndex?{...ee,searchQuery:eo}:{...ee,searchQuery:eo,activeOptionIndex:es,activationTrigger:1}},4:ee=>ee.dataRef.current.disabled||1===ee.listboxState||""===ee.searchQuery?ee:{...ee,searchQuery:""},5:(ee,en)=>{let er={id:en.id,dataRef:en.dataRef},eo=listbox_z(ee,ee=>[...ee,er]);return null===ee.activeOptionIndex&&ee.dataRef.current.isSelected(en.dataRef.current.value)&&(eo.activeOptionIndex=eo.options.indexOf(er)),{...ee,...eo}},6:(ee,en)=>{let er=listbox_z(ee,ee=>{let er=ee.findIndex(ee=>ee.id===en.id);return -1!==er&&ee.splice(er,1),ee});return{...ee,...er,activationTrigger:1}},7:(ee,en)=>({...ee,labelId:en.id})},nF=(0,ek.createContext)(null);function U(ee){let en=(0,ek.useContext)(nF);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,U),en}return en}nF.displayName="ListboxActionsContext";let nz=(0,ek.createContext)(null);function B(ee){let en=(0,ek.useContext)(nz);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,B),en}return en}function Ve(ee,en){return(0,ns.E)(en.type,nD,ee,en)}nz.displayName="ListboxDataContext";let nV=ek.Fragment;function Qe(ee,en){let{value:er,defaultValue:eo,form:ei,name:es,onChange:eu,by:ec=(ee,en)=>ee===en,disabled:ed=!1,horizontal:ep=!1,multiple:ef=!1,...eh}=ee,em=ep?"horizontal":"vertical",ex=(0,np.T)(en),[eg=ef?[]:void 0,ev]=use_controllable_T(er,eu,eo),[ey,eb]=(0,ek.useReducer)(Ve,{dataRef:(0,ek.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),e_=(0,ek.useRef)({static:!1,hold:!1}),ew=(0,ek.useRef)(null),eC=(0,ek.useRef)(null),eT=(0,ek.useRef)(null),eS=(0,nh.z)("string"==typeof ec?(ee,en)=>{let er=ec;return(null==ee?void 0:ee[er])===(null==en?void 0:en[er])}:ec),eE=(0,ek.useCallback)(ee=>(0,ns.E)(eO.mode,{1:()=>eg.some(en=>eS(en,ee)),0:()=>eS(eg,ee)}),[eg]),eO=(0,ek.useMemo)(()=>({...ey,value:eg,disabled:ed,mode:ef?1:0,orientation:em,compare:eS,isSelected:eE,optionsPropsRef:e_,labelRef:ew,buttonRef:eC,optionsRef:eT}),[eg,ed,ef,ey]);(0,nu.e)(()=>{ey.dataRef.current=eO},[eO]),use_outside_click_h([eO.buttonRef,eO.optionsRef],(ee,en)=>{var er;eb({type:1}),(0,nj.sP)(en,nj.tJ.Loose)||(ee.preventDefault(),null==(er=eO.buttonRef.current)||er.focus())},0===eO.listboxState);let ej=(0,ek.useMemo)(()=>({open:0===eO.listboxState,disabled:ed,value:eg}),[eO,ed,eg]),eI=(0,nh.z)(ee=>{let en=eO.options.find(en=>en.id===ee);en&&eL(en.dataRef.current.value)}),eP=(0,nh.z)(()=>{if(null!==eO.activeOptionIndex){let{dataRef:ee,id:en}=eO.options[eO.activeOptionIndex];eL(ee.current.value),eb({type:2,focus:nO.Specific,id:en})}}),eR=(0,nh.z)(()=>eb({type:0})),eN=(0,nh.z)(()=>eb({type:1})),eZ=(0,nh.z)((ee,en,er)=>ee===nO.Specific?eb({type:2,focus:nO.Specific,id:en,trigger:er}):eb({type:2,focus:ee,trigger:er})),eM=(0,nh.z)((ee,en)=>(eb({type:5,id:ee,dataRef:en}),()=>eb({type:6,id:ee}))),eA=(0,nh.z)(ee=>(eb({type:7,id:ee}),()=>eb({type:7,id:null}))),eL=(0,nh.z)(ee=>(0,ns.E)(eO.mode,{0:()=>null==ev?void 0:ev(ee),1(){let en=eO.value.slice(),er=en.findIndex(en=>eS(en,ee));return -1===er?en.push(ee):en.splice(er,1),null==ev?void 0:ev(en)}})),eD=(0,nh.z)(ee=>eb({type:3,value:ee})),eF=(0,nh.z)(()=>eb({type:4})),ez=(0,ek.useMemo)(()=>({onChange:eL,registerOption:eM,registerLabel:eA,goToOption:eZ,closeListbox:eN,openListbox:eR,selectActiveOption:eP,selectOption:eI,search:eD,clearSearch:eF}),[]),eV={ref:ex},eU=(0,ek.useRef)(null),e$=use_disposables_p();return(0,ek.useEffect)(()=>{eU.current&&void 0!==eo&&e$.addEventListener(eU.current,"reset",()=>{eL(eo)})},[eU,eL]),ek.createElement(nF.Provider,{value:ez},ek.createElement(nz.Provider,{value:eO},ek.createElement(open_closed_c,{value:(0,ns.E)(eO.listboxState,{0:ni.Open,1:ni.Closed})},null!=es&&null!=eg&&form_e({[es]:eg}).map(([ee,en],er)=>ek.createElement(nP._,{features:nP.A.Hidden,ref:0===er?ee=>{var en;eU.current=null!=(en=null==ee?void 0:ee.closest("form"))?en:null}:void 0,...(0,nr.oA)({key:ee,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:ei,name:ee,value:en})})),(0,nr.sY)({ourProps:eV,theirProps:eh,slot:ej,defaultTag:nV,name:"Listbox"}))))}let nU="button";function Xe(ee,en){var er;let eo=(0,nS.M)(),{id:ei=`headlessui-listbox-button-${eo}`,...es}=ee,eu=B("Listbox.Button"),ec=U("Listbox.Button"),ed=(0,np.T)(eu.buttonRef,en),ep=use_disposables_p(),ef=(0,nh.z)(ee=>{switch(ee.key){case nE.R.Space:case nE.R.Enter:case nE.R.ArrowDown:ee.preventDefault(),ec.openListbox(),ep.nextFrame(()=>{eu.value||ec.goToOption(nO.First)});break;case nE.R.ArrowUp:ee.preventDefault(),ec.openListbox(),ep.nextFrame(()=>{eu.value||ec.goToOption(nO.Last)})}}),eh=(0,nh.z)(ee=>{ee.key===nE.R.Space&&ee.preventDefault()}),em=(0,nh.z)(ee=>{if(bugs_r(ee.currentTarget))return ee.preventDefault();0===eu.listboxState?(ec.closeListbox(),ep.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})})):(ee.preventDefault(),ec.openListbox())}),ex=use_computed_i(()=>{if(eu.labelId)return[eu.labelId,ei].join(" ")},[eu.labelId,ei]),eg=(0,ek.useMemo)(()=>({open:0===eu.listboxState,disabled:eu.disabled,value:eu.value}),[eu]),ev={ref:ed,id:ei,type:(0,nI.f)(ee,eu.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(er=eu.optionsRef.current)?void 0:er.id,"aria-expanded":0===eu.listboxState,"aria-labelledby":ex,disabled:eu.disabled,onKeyDown:ef,onKeyUp:eh,onClick:em};return(0,nr.sY)({ourProps:ev,theirProps:es,slot:eg,defaultTag:nU,name:"Listbox.Button"})}let n$="label";function ze(ee,en){let er=(0,nS.M)(),{id:eo=`headlessui-listbox-label-${er}`,...ei}=ee,es=B("Listbox.Label"),eu=U("Listbox.Label"),ec=(0,np.T)(es.labelRef,en);(0,nu.e)(()=>eu.registerLabel(eo),[eo]);let ed=(0,nh.z)(()=>{var ee;return null==(ee=es.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}),ep=(0,ek.useMemo)(()=>({open:0===es.listboxState,disabled:es.disabled}),[es]);return(0,nr.sY)({ourProps:{ref:ec,id:eo,onClick:ed},theirProps:ei,slot:ep,defaultTag:n$,name:"Listbox.Label"})}let nH="ul",nB=nr.AN.RenderStrategy|nr.AN.Static;function Ye(ee,en){var er;let eo=(0,nS.M)(),{id:ei=`headlessui-listbox-options-${eo}`,...es}=ee,eu=B("Listbox.Options"),ec=U("Listbox.Options"),ed=(0,np.T)(eu.optionsRef,en),ep=use_disposables_p(),ef=use_disposables_p(),eh=C(),em=null!==eh?(eh&ni.Open)===ni.Open:0===eu.listboxState;(0,ek.useEffect)(()=>{var ee;let en=eu.optionsRef.current;en&&0===eu.listboxState&&en!==(null==(ee=(0,nR.r)(en))?void 0:ee.activeElement)&&en.focus({preventScroll:!0})},[eu.listboxState,eu.optionsRef]);let ex=(0,nh.z)(ee=>{switch(ef.dispose(),ee.key){case nE.R.Space:if(""!==eu.searchQuery)return ee.preventDefault(),ee.stopPropagation(),ec.search(ee.key);case nE.R.Enter:if(ee.preventDefault(),ee.stopPropagation(),null!==eu.activeOptionIndex){let{dataRef:ee}=eu.options[eu.activeOptionIndex];ec.onChange(ee.current.value)}0===eu.mode&&(ec.closeListbox(),(0,nf.k)().nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}));break;case(0,ns.E)(eu.orientation,{vertical:nE.R.ArrowDown,horizontal:nE.R.ArrowRight}):return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(nO.Next);case(0,ns.E)(eu.orientation,{vertical:nE.R.ArrowUp,horizontal:nE.R.ArrowLeft}):return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(nO.Previous);case nE.R.Home:case nE.R.PageUp:return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(nO.First);case nE.R.End:case nE.R.PageDown:return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(nO.Last);case nE.R.Escape:return ee.preventDefault(),ee.stopPropagation(),ec.closeListbox(),ep.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})});case nE.R.Tab:ee.preventDefault(),ee.stopPropagation();break;default:1===ee.key.length&&(ec.search(ee.key),ef.setTimeout(()=>ec.clearSearch(),350))}}),eg=use_computed_i(()=>{var ee,en,er;return null!=(er=null==(ee=eu.labelRef.current)?void 0:ee.id)?er:null==(en=eu.buttonRef.current)?void 0:en.id},[eu.labelRef.current,eu.buttonRef.current]),ev=(0,ek.useMemo)(()=>({open:0===eu.listboxState}),[eu]),ey={"aria-activedescendant":null===eu.activeOptionIndex||null==(er=eu.options[eu.activeOptionIndex])?void 0:er.id,"aria-multiselectable":1===eu.mode||void 0,"aria-labelledby":eg,"aria-orientation":eu.orientation,id:ei,onKeyDown:ex,role:"listbox",tabIndex:0,ref:ed};return(0,nr.sY)({ourProps:ey,theirProps:es,slot:ev,defaultTag:nH,features:nB,visible:em,name:"Listbox.Options"})}let nW="li";function et(ee,en){let er=(0,nS.M)(),{id:eo=`headlessui-listbox-option-${er}`,disabled:ei=!1,value:es,...eu}=ee,ec=B("Listbox.Option"),ed=U("Listbox.Option"),ep=null!==ec.activeOptionIndex&&ec.options[ec.activeOptionIndex].id===eo,ef=ec.isSelected(es),eh=(0,ek.useRef)(null),em=use_text_value_b(eh),ex=(0,nc.E)({disabled:ei,value:es,domRef:eh,get textValue(){return em()}}),eg=(0,np.T)(en,eh);(0,nu.e)(()=>{if(0!==ec.listboxState||!ep||0===ec.activationTrigger)return;let ee=(0,nf.k)();return ee.requestAnimationFrame(()=>{var ee,en;null==(en=null==(ee=eh.current)?void 0:ee.scrollIntoView)||en.call(ee,{block:"nearest"})}),ee.dispose},[eh,ep,ec.listboxState,ec.activationTrigger,ec.activeOptionIndex]),(0,nu.e)(()=>ed.registerOption(eo,ex),[ex,eo]);let ev=(0,nh.z)(ee=>{if(ei)return ee.preventDefault();ed.onChange(es),0===ec.mode&&(ed.closeListbox(),(0,nf.k)().nextFrame(()=>{var ee;return null==(ee=ec.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}))}),ey=(0,nh.z)(()=>{if(ei)return ed.goToOption(nO.Nothing);ed.goToOption(nO.Specific,eo)}),eb=use_tracked_pointer_u(),e_=(0,nh.z)(ee=>eb.update(ee)),ew=(0,nh.z)(ee=>{eb.wasMoved(ee)&&(ei||ep||ed.goToOption(nO.Specific,eo,0))}),eC=(0,nh.z)(ee=>{eb.wasMoved(ee)&&(ei||ep&&ed.goToOption(nO.Nothing))}),eT=(0,ek.useMemo)(()=>({active:ep,selected:ef,disabled:ei}),[ep,ef,ei]);return(0,nr.sY)({ourProps:{id:eo,ref:eg,role:"option",tabIndex:!0===ei?void 0:-1,"aria-disabled":!0===ei||void 0,"aria-selected":ef,disabled:void 0,onClick:ev,onFocus:ey,onPointerEnter:e_,onMouseEnter:e_,onPointerMove:ew,onMouseMove:ew,onPointerLeave:eC,onMouseLeave:eC},theirProps:eu,slot:eT,defaultTag:nW,name:"Listbox.Option"})}let nG=Object.assign((0,nr.yV)(Qe),{Button:(0,nr.yV)(Xe),Label:(0,nr.yV)(ze),Options:(0,nr.yV)(Ye),Option:(0,nr.yV)(et)});var nK=er(3935),nq=er(9008),nX=er.n(nq);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(ee){for(var en=1;en=0||(ei[er]=ee[er]);return ei}var nY=["keyOverride"],nQ=["crossOrigin"],nJ={templateTitle:"",noindex:!1,nofollow:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},buildOpenGraphMediaTags=function(ee,en,er){void 0===en&&(en=[]);var eo=void 0===er?{}:er,ei=eo.defaultWidth,es=eo.defaultHeight;return en.reduce(function(en,er,eo){return en.push(ek.createElement("meta",{key:"og:"+ee+":0"+eo,property:"og:"+ee,content:er.url})),er.alt&&en.push(ek.createElement("meta",{key:"og:"+ee+":alt0"+eo,property:"og:"+ee+":alt",content:er.alt})),er.secureUrl&&en.push(ek.createElement("meta",{key:"og:"+ee+":secure_url0"+eo,property:"og:"+ee+":secure_url",content:er.secureUrl.toString()})),er.type&&en.push(ek.createElement("meta",{key:"og:"+ee+":type0"+eo,property:"og:"+ee+":type",content:er.type.toString()})),er.width?en.push(ek.createElement("meta",{key:"og:"+ee+":width0"+eo,property:"og:"+ee+":width",content:er.width.toString()})):ei&&en.push(ek.createElement("meta",{key:"og:"+ee+":width0"+eo,property:"og:"+ee+":width",content:ei.toString()})),er.height?en.push(ek.createElement("meta",{key:"og:"+ee+":height"+eo,property:"og:"+ee+":height",content:er.height.toString()})):es&&en.push(ek.createElement("meta",{key:"og:"+ee+":height"+eo,property:"og:"+ee+":height",content:es.toString()})),en},[])},buildTags=function(ee){var en,er,eo,ei,es,eu=[];ee.titleTemplate&&(nJ.templateTitle=ee.titleTemplate);var ec="";ee.title?(ec=ee.title,nJ.templateTitle&&(ec=nJ.templateTitle.replace(/%s/g,function(){return ec}))):ee.defaultTitle&&(ec=ee.defaultTitle),ec&&eu.push(ek.createElement("title",{key:"title"},ec));var ed=void 0===ee.noindex?nJ.noindex||ee.dangerouslySetAllPagesToNoIndex:ee.noindex,ep=void 0===ee.nofollow?nJ.nofollow||ee.dangerouslySetAllPagesToNoFollow:ee.nofollow,ef="";if(ee.robotsProps){var eh=ee.robotsProps,em=eh.nosnippet,ex=eh.maxSnippet,eg=eh.maxImagePreview,ev=eh.maxVideoPreview,ey=eh.noarchive,eb=eh.noimageindex,e_=eh.notranslate,ew=eh.unavailableAfter;ef=(em?",nosnippet":"")+(ex?",max-snippet:"+ex:"")+(eg?",max-image-preview:"+eg:"")+(ey?",noarchive":"")+(ew?",unavailable_after:"+ew:"")+(eb?",noimageindex":"")+(ev?",max-video-preview:"+ev:"")+(e_?",notranslate":"")}if(ed||ep?(ee.dangerouslySetAllPagesToNoIndex&&(nJ.noindex=!0),ee.dangerouslySetAllPagesToNoFollow&&(nJ.nofollow=!0),eu.push(ek.createElement("meta",{key:"robots",name:"robots",content:(ed?"noindex":"index")+","+(ep?"nofollow":"follow")+ef}))):eu.push(ek.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+ef})),ee.description&&eu.push(ek.createElement("meta",{key:"description",name:"description",content:ee.description})),ee.themeColor&&eu.push(ek.createElement("meta",{key:"theme-color",name:"theme-color",content:ee.themeColor})),ee.mobileAlternate&&eu.push(ek.createElement("link",{rel:"alternate",key:"mobileAlternate",media:ee.mobileAlternate.media,href:ee.mobileAlternate.href})),ee.languageAlternates&&ee.languageAlternates.length>0&&ee.languageAlternates.forEach(function(ee){eu.push(ek.createElement("link",{rel:"alternate",key:"languageAlternate-"+ee.hrefLang,hrefLang:ee.hrefLang,href:ee.href}))}),ee.twitter&&(ee.twitter.cardType&&eu.push(ek.createElement("meta",{key:"twitter:card",name:"twitter:card",content:ee.twitter.cardType})),ee.twitter.site&&eu.push(ek.createElement("meta",{key:"twitter:site",name:"twitter:site",content:ee.twitter.site})),ee.twitter.handle&&eu.push(ek.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:ee.twitter.handle}))),ee.facebook&&ee.facebook.appId&&eu.push(ek.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:ee.facebook.appId})),(null!=(en=ee.openGraph)&&en.title||ec)&&eu.push(ek.createElement("meta",{key:"og:title",property:"og:title",content:(null==(ei=ee.openGraph)?void 0:ei.title)||ec})),(null!=(er=ee.openGraph)&&er.description||ee.description)&&eu.push(ek.createElement("meta",{key:"og:description",property:"og:description",content:(null==(es=ee.openGraph)?void 0:es.description)||ee.description})),ee.openGraph){if((ee.openGraph.url||ee.canonical)&&eu.push(ek.createElement("meta",{key:"og:url",property:"og:url",content:ee.openGraph.url||ee.canonical})),ee.openGraph.type){var eC=ee.openGraph.type.toLowerCase();eu.push(ek.createElement("meta",{key:"og:type",property:"og:type",content:eC})),"profile"===eC&&ee.openGraph.profile?(ee.openGraph.profile.firstName&&eu.push(ek.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:ee.openGraph.profile.firstName})),ee.openGraph.profile.lastName&&eu.push(ek.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:ee.openGraph.profile.lastName})),ee.openGraph.profile.username&&eu.push(ek.createElement("meta",{key:"profile:username",property:"profile:username",content:ee.openGraph.profile.username})),ee.openGraph.profile.gender&&eu.push(ek.createElement("meta",{key:"profile:gender",property:"profile:gender",content:ee.openGraph.profile.gender}))):"book"===eC&&ee.openGraph.book?(ee.openGraph.book.authors&&ee.openGraph.book.authors.length&&ee.openGraph.book.authors.forEach(function(ee,en){eu.push(ek.createElement("meta",{key:"book:author:0"+en,property:"book:author",content:ee}))}),ee.openGraph.book.isbn&&eu.push(ek.createElement("meta",{key:"book:isbn",property:"book:isbn",content:ee.openGraph.book.isbn})),ee.openGraph.book.releaseDate&&eu.push(ek.createElement("meta",{key:"book:release_date",property:"book:release_date",content:ee.openGraph.book.releaseDate})),ee.openGraph.book.tags&&ee.openGraph.book.tags.length&&ee.openGraph.book.tags.forEach(function(ee,en){eu.push(ek.createElement("meta",{key:"book:tag:0"+en,property:"book:tag",content:ee}))})):"article"===eC&&ee.openGraph.article?(ee.openGraph.article.publishedTime&&eu.push(ek.createElement("meta",{key:"article:published_time",property:"article:published_time",content:ee.openGraph.article.publishedTime})),ee.openGraph.article.modifiedTime&&eu.push(ek.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:ee.openGraph.article.modifiedTime})),ee.openGraph.article.expirationTime&&eu.push(ek.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:ee.openGraph.article.expirationTime})),ee.openGraph.article.authors&&ee.openGraph.article.authors.length&&ee.openGraph.article.authors.forEach(function(ee,en){eu.push(ek.createElement("meta",{key:"article:author:0"+en,property:"article:author",content:ee}))}),ee.openGraph.article.section&&eu.push(ek.createElement("meta",{key:"article:section",property:"article:section",content:ee.openGraph.article.section})),ee.openGraph.article.tags&&ee.openGraph.article.tags.length&&ee.openGraph.article.tags.forEach(function(ee,en){eu.push(ek.createElement("meta",{key:"article:tag:0"+en,property:"article:tag",content:ee}))})):("video.movie"===eC||"video.episode"===eC||"video.tv_show"===eC||"video.other"===eC)&&ee.openGraph.video&&(ee.openGraph.video.actors&&ee.openGraph.video.actors.length&&ee.openGraph.video.actors.forEach(function(ee,en){ee.profile&&eu.push(ek.createElement("meta",{key:"video:actor:0"+en,property:"video:actor",content:ee.profile})),ee.role&&eu.push(ek.createElement("meta",{key:"video:actor:role:0"+en,property:"video:actor:role",content:ee.role}))}),ee.openGraph.video.directors&&ee.openGraph.video.directors.length&&ee.openGraph.video.directors.forEach(function(ee,en){eu.push(ek.createElement("meta",{key:"video:director:0"+en,property:"video:director",content:ee}))}),ee.openGraph.video.writers&&ee.openGraph.video.writers.length&&ee.openGraph.video.writers.forEach(function(ee,en){eu.push(ek.createElement("meta",{key:"video:writer:0"+en,property:"video:writer",content:ee}))}),ee.openGraph.video.duration&&eu.push(ek.createElement("meta",{key:"video:duration",property:"video:duration",content:ee.openGraph.video.duration.toString()})),ee.openGraph.video.releaseDate&&eu.push(ek.createElement("meta",{key:"video:release_date",property:"video:release_date",content:ee.openGraph.video.releaseDate})),ee.openGraph.video.tags&&ee.openGraph.video.tags.length&&ee.openGraph.video.tags.forEach(function(ee,en){eu.push(ek.createElement("meta",{key:"video:tag:0"+en,property:"video:tag",content:ee}))}),ee.openGraph.video.series&&eu.push(ek.createElement("meta",{key:"video:series",property:"video:series",content:ee.openGraph.video.series})))}ee.defaultOpenGraphImageWidth&&(nJ.defaultOpenGraphImageWidth=ee.defaultOpenGraphImageWidth),ee.defaultOpenGraphImageHeight&&(nJ.defaultOpenGraphImageHeight=ee.defaultOpenGraphImageHeight),ee.openGraph.images&&ee.openGraph.images.length&&eu.push.apply(eu,buildOpenGraphMediaTags("image",ee.openGraph.images,{defaultWidth:nJ.defaultOpenGraphImageWidth,defaultHeight:nJ.defaultOpenGraphImageHeight})),ee.defaultOpenGraphVideoWidth&&(nJ.defaultOpenGraphVideoWidth=ee.defaultOpenGraphVideoWidth),ee.defaultOpenGraphVideoHeight&&(nJ.defaultOpenGraphVideoHeight=ee.defaultOpenGraphVideoHeight),ee.openGraph.videos&&ee.openGraph.videos.length&&eu.push.apply(eu,buildOpenGraphMediaTags("video",ee.openGraph.videos,{defaultWidth:nJ.defaultOpenGraphVideoWidth,defaultHeight:nJ.defaultOpenGraphVideoHeight})),ee.openGraph.audio&&eu.push.apply(eu,buildOpenGraphMediaTags("audio",ee.openGraph.audio)),ee.openGraph.locale&&eu.push(ek.createElement("meta",{key:"og:locale",property:"og:locale",content:ee.openGraph.locale})),(ee.openGraph.siteName||ee.openGraph.site_name)&&eu.push(ek.createElement("meta",{key:"og:site_name",property:"og:site_name",content:ee.openGraph.siteName||ee.openGraph.site_name}))}return ee.canonical&&eu.push(ek.createElement("link",{rel:"canonical",href:ee.canonical,key:"canonical"})),ee.additionalMetaTags&&ee.additionalMetaTags.length>0&&ee.additionalMetaTags.forEach(function(ee){var en,er,eo=ee.keyOverride,ei=_objectWithoutPropertiesLoose(ee,nY);eu.push(ek.createElement("meta",_extends({key:"meta:"+(null!=(en=null!=(er=null!=eo?eo:ei.name)?er:ei.property)?en:ei.httpEquiv)},ei)))}),null!=(eo=ee.additionalLinkTags)&&eo.length&&ee.additionalLinkTags.forEach(function(ee){var en,er=ee.crossOrigin,eo=_objectWithoutPropertiesLoose(ee,nQ),ei="anonymous"===er||"use-credentials"===er||""===er?er:void 0;eu.push(ek.createElement("link",_extends({key:"link"+(null!=(en=eo.keyOverride)?en:eo.href)+eo.rel},eo,{crossOrigin:ei})))}),eu},WithHead=function(ee){return ek.createElement(nX(),null,buildTags(ee))},NextSeo=function(ee){var en=ee.title,er=ee.themeColor,eo=ee.noindex,ei=ee.nofollow,es=ee.robotsProps,eu=ee.description,ec=ee.canonical,ed=ee.openGraph,ep=ee.facebook,ef=ee.twitter,eh=ee.additionalMetaTags,em=ee.titleTemplate,ex=ee.defaultTitle,eg=ee.mobileAlternate,ev=ee.languageAlternates,ey=ee.additionalLinkTags;return ek.createElement(ek.Fragment,null,ek.createElement(WithHead,{title:en,themeColor:er,noindex:eo,nofollow:ei,robotsProps:es,description:eu,canonical:ec,facebook:ep,openGraph:ed,additionalMetaTags:eh,twitter:ef,titleTemplate:em,defaultTitle:ex,mobileAlternate:eg,languageAlternates:ev,additionalLinkTags:ey}))};function use_tree_walker_F({container:ee,accept:en,walk:er,enabled:eo=!0}){let ei=(0,ek.useRef)(en),es=(0,ek.useRef)(er);(0,ek.useEffect)(()=>{ei.current=en,es.current=er},[en,er]),(0,nu.e)(()=>{if(!ee||!eo)return;let en=(0,nR.r)(ee);if(!en)return;let er=ei.current,eu=es.current,ec=Object.assign(ee=>er(ee),{acceptNode:er}),ed=en.createTreeWalker(ee,NodeFilter.SHOW_ELEMENT,ec,!1);for(;ed.nextNode();)eu(ed.currentNode)},[ee,eo,ei,es])}function use_owner_n(...ee){return(0,ek.useMemo)(()=>(0,nR.r)(...ee),[...ee])}RegExp("["+Object.keys(Object.freeze({"&":"&","<":"<",">":">",'"':""","'":"'"})).join("")+"]","g");var n0=((eh=n0||{})[eh.Open=0]="Open",eh[eh.Closed=1]="Closed",eh),n1=((em=n1||{})[em.Pointer=0]="Pointer",em[em.Other=1]="Other",em),n2=((ex=n2||{})[ex.OpenMenu=0]="OpenMenu",ex[ex.CloseMenu=1]="CloseMenu",ex[ex.GoToItem=2]="GoToItem",ex[ex.Search=3]="Search",ex[ex.ClearSearch=4]="ClearSearch",ex[ex.RegisterItem=5]="RegisterItem",ex[ex.UnregisterItem=6]="UnregisterItem",ex);function w(ee,en=ee=>ee){let er=null!==ee.activeItemIndex?ee.items[ee.activeItemIndex]:null,eo=(0,nj.z2)(en(ee.items.slice()),ee=>ee.dataRef.current.domRef.current),ei=er?eo.indexOf(er):null;return -1===ei&&(ei=null),{items:eo,activeItemIndex:ei}}let n4={1:ee=>1===ee.menuState?ee:{...ee,activeItemIndex:null,menuState:1},0:ee=>0===ee.menuState?ee:{...ee,__demoMode:!1,menuState:0},2:(ee,en)=>{var er;let eo=w(ee),ei=calculate_active_index_x(en,{resolveItems:()=>eo.items,resolveActiveIndex:()=>eo.activeItemIndex,resolveId:ee=>ee.id,resolveDisabled:ee=>ee.dataRef.current.disabled});return{...ee,...eo,searchQuery:"",activeItemIndex:ei,activationTrigger:null!=(er=en.trigger)?er:1}},3:(ee,en)=>{let er=""!==ee.searchQuery?0:1,eo=ee.searchQuery+en.value.toLowerCase(),ei=(null!==ee.activeItemIndex?ee.items.slice(ee.activeItemIndex+er).concat(ee.items.slice(0,ee.activeItemIndex+er)):ee.items).find(ee=>{var en;return(null==(en=ee.dataRef.current.textValue)?void 0:en.startsWith(eo))&&!ee.dataRef.current.disabled}),es=ei?ee.items.indexOf(ei):-1;return -1===es||es===ee.activeItemIndex?{...ee,searchQuery:eo}:{...ee,searchQuery:eo,activeItemIndex:es,activationTrigger:1}},4:ee=>""===ee.searchQuery?ee:{...ee,searchQuery:"",searchActiveItemIndex:null},5:(ee,en)=>{let er=w(ee,ee=>[...ee,{id:en.id,dataRef:en.dataRef}]);return{...ee,...er}},6:(ee,en)=>{let er=w(ee,ee=>{let er=ee.findIndex(ee=>ee.id===en.id);return -1!==er&&ee.splice(er,1),ee});return{...ee,...er,activationTrigger:1}}},n5=(0,ek.createContext)(null);function O(ee){let en=(0,ek.useContext)(n5);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,O),en}return en}function menu_ye(ee,en){return(0,ns.E)(en.type,n4,ee,en)}n5.displayName="MenuContext";let n3=ek.Fragment;function Me(ee,en){let{__demoMode:er=!1,...eo}=ee,ei=(0,ek.useReducer)(menu_ye,{__demoMode:er,menuState:er?0:1,buttonRef:(0,ek.createRef)(),itemsRef:(0,ek.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:es,itemsRef:eu,buttonRef:ec},ed]=ei,ep=(0,np.T)(en);use_outside_click_h([ec,eu],(ee,en)=>{var er;ed({type:1}),(0,nj.sP)(en,nj.tJ.Loose)||(ee.preventDefault(),null==(er=ec.current)||er.focus())},0===es);let ef=(0,nh.z)(()=>{ed({type:1})}),eh=(0,ek.useMemo)(()=>({open:0===es,close:ef}),[es,ef]),em={ref:ep};return ek.createElement(n5.Provider,{value:ei},ek.createElement(open_closed_c,{value:(0,ns.E)(es,{0:ni.Open,1:ni.Closed})},(0,nr.sY)({ourProps:em,theirProps:eo,slot:eh,defaultTag:n3,name:"Menu"})))}let n7="button";function menu_Re(ee,en){var er;let eo=(0,nS.M)(),{id:ei=`headlessui-menu-button-${eo}`,...es}=ee,[eu,ec]=O("Menu.Button"),ed=(0,np.T)(eu.buttonRef,en),ep=use_disposables_p(),ef=(0,nh.z)(ee=>{switch(ee.key){case nE.R.Space:case nE.R.Enter:case nE.R.ArrowDown:ee.preventDefault(),ee.stopPropagation(),ec({type:0}),ep.nextFrame(()=>ec({type:2,focus:nO.First}));break;case nE.R.ArrowUp:ee.preventDefault(),ee.stopPropagation(),ec({type:0}),ep.nextFrame(()=>ec({type:2,focus:nO.Last}))}}),eh=(0,nh.z)(ee=>{ee.key===nE.R.Space&&ee.preventDefault()}),em=(0,nh.z)(en=>{if(bugs_r(en.currentTarget))return en.preventDefault();ee.disabled||(0===eu.menuState?(ec({type:1}),ep.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})})):(en.preventDefault(),ec({type:0})))}),ex=(0,ek.useMemo)(()=>({open:0===eu.menuState}),[eu]),eg={ref:ed,id:ei,type:(0,nI.f)(ee,eu.buttonRef),"aria-haspopup":"menu","aria-controls":null==(er=eu.itemsRef.current)?void 0:er.id,"aria-expanded":0===eu.menuState,onKeyDown:ef,onKeyUp:eh,onClick:em};return(0,nr.sY)({ourProps:eg,theirProps:es,slot:ex,defaultTag:n7,name:"Menu.Button"})}let n6="div",n9=nr.AN.RenderStrategy|nr.AN.Static;function menu_Ee(ee,en){var er,eo;let ei=(0,nS.M)(),{id:es=`headlessui-menu-items-${ei}`,...eu}=ee,[ec,ed]=O("Menu.Items"),ep=(0,np.T)(ec.itemsRef,en),ef=use_owner_n(ec.itemsRef),eh=use_disposables_p(),em=C(),ex=null!==em?(em&ni.Open)===ni.Open:0===ec.menuState;(0,ek.useEffect)(()=>{let ee=ec.itemsRef.current;ee&&0===ec.menuState&&ee!==(null==ef?void 0:ef.activeElement)&&ee.focus({preventScroll:!0})},[ec.menuState,ec.itemsRef,ef]),use_tree_walker_F({container:ec.itemsRef.current,enabled:0===ec.menuState,accept:ee=>"menuitem"===ee.getAttribute("role")?NodeFilter.FILTER_REJECT:ee.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(ee){ee.setAttribute("role","none")}});let eg=(0,nh.z)(ee=>{var en,er;switch(eh.dispose(),ee.key){case nE.R.Space:if(""!==ec.searchQuery)return ee.preventDefault(),ee.stopPropagation(),ed({type:3,value:ee.key});case nE.R.Enter:if(ee.preventDefault(),ee.stopPropagation(),ed({type:1}),null!==ec.activeItemIndex){let{dataRef:ee}=ec.items[ec.activeItemIndex];null==(er=null==(en=ee.current)?void 0:en.domRef.current)||er.click()}(0,nj.wI)(ec.buttonRef.current);break;case nE.R.ArrowDown:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:nO.Next});case nE.R.ArrowUp:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:nO.Previous});case nE.R.Home:case nE.R.PageUp:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:nO.First});case nE.R.End:case nE.R.PageDown:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:nO.Last});case nE.R.Escape:ee.preventDefault(),ee.stopPropagation(),ed({type:1}),(0,nf.k)().nextFrame(()=>{var ee;return null==(ee=ec.buttonRef.current)?void 0:ee.focus({preventScroll:!0})});break;case nE.R.Tab:ee.preventDefault(),ee.stopPropagation(),ed({type:1}),(0,nf.k)().nextFrame(()=>{(0,nj.EO)(ec.buttonRef.current,ee.shiftKey?nj.TO.Previous:nj.TO.Next)});break;default:1===ee.key.length&&(ed({type:3,value:ee.key}),eh.setTimeout(()=>ed({type:4}),350))}}),ev=(0,nh.z)(ee=>{ee.key===nE.R.Space&&ee.preventDefault()}),ey=(0,ek.useMemo)(()=>({open:0===ec.menuState}),[ec]),eb={"aria-activedescendant":null===ec.activeItemIndex||null==(er=ec.items[ec.activeItemIndex])?void 0:er.id,"aria-labelledby":null==(eo=ec.buttonRef.current)?void 0:eo.id,id:es,onKeyDown:eg,onKeyUp:ev,role:"menu",tabIndex:0,ref:ep};return(0,nr.sY)({ourProps:eb,theirProps:eu,slot:ey,defaultTag:n6,features:n9,visible:ex,name:"Menu.Items"})}let n8=ek.Fragment;function menu_Pe(ee,en){let er=(0,nS.M)(),{id:eo=`headlessui-menu-item-${er}`,disabled:ei=!1,...es}=ee,[eu,ec]=O("Menu.Item"),ed=null!==eu.activeItemIndex&&eu.items[eu.activeItemIndex].id===eo,ep=(0,ek.useRef)(null),ef=(0,np.T)(en,ep);(0,nu.e)(()=>{if(eu.__demoMode||0!==eu.menuState||!ed||0===eu.activationTrigger)return;let ee=(0,nf.k)();return ee.requestAnimationFrame(()=>{var ee,en;null==(en=null==(ee=ep.current)?void 0:ee.scrollIntoView)||en.call(ee,{block:"nearest"})}),ee.dispose},[eu.__demoMode,ep,ed,eu.menuState,eu.activationTrigger,eu.activeItemIndex]);let eh=use_text_value_b(ep),em=(0,ek.useRef)({disabled:ei,domRef:ep,get textValue(){return eh()}});(0,nu.e)(()=>{em.current.disabled=ei},[em,ei]),(0,nu.e)(()=>(ec({type:5,id:eo,dataRef:em}),()=>ec({type:6,id:eo})),[em,eo]);let ex=(0,nh.z)(()=>{ec({type:1})}),eg=(0,nh.z)(ee=>{if(ei)return ee.preventDefault();ec({type:1}),(0,nj.wI)(eu.buttonRef.current)}),ev=(0,nh.z)(()=>{if(ei)return ec({type:2,focus:nO.Nothing});ec({type:2,focus:nO.Specific,id:eo})}),ey=use_tracked_pointer_u(),eb=(0,nh.z)(ee=>ey.update(ee)),e_=(0,nh.z)(ee=>{ey.wasMoved(ee)&&(ei||ed||ec({type:2,focus:nO.Specific,id:eo,trigger:0}))}),ew=(0,nh.z)(ee=>{ey.wasMoved(ee)&&(ei||ed&&ec({type:2,focus:nO.Nothing}))}),eC=(0,ek.useMemo)(()=>({active:ed,disabled:ei,close:ex}),[ed,ei,ex]);return(0,nr.sY)({ourProps:{id:eo,ref:ef,role:"menuitem",tabIndex:!0===ei?void 0:-1,"aria-disabled":!0===ei||void 0,disabled:void 0,onClick:eg,onFocus:ev,onPointerEnter:eb,onMouseEnter:eb,onPointerMove:e_,onMouseMove:e_,onPointerLeave:ew,onMouseLeave:ew},theirProps:es,slot:eC,defaultTag:n8,name:"Menu.Item"})}let rn=Object.assign((0,nr.yV)(Me),{Button:(0,nr.yV)(menu_Re),Items:(0,nr.yV)(menu_Ee),Item:(0,nr.yV)(menu_Pe)}),dist_t=ee=>"object"==typeof ee&&null!=ee&&1===ee.nodeType,e=(ee,en)=>(!en||"hidden"!==ee)&&"visible"!==ee&&"clip"!==ee,dist_n=(ee,en)=>{if(ee.clientHeight{let en=(ee=>{if(!ee.ownerDocument||!ee.ownerDocument.defaultView)return null;try{return ee.ownerDocument.defaultView.frameElement}catch(ee){return null}})(ee);return!!en&&(en.clientHeightesen||es>ee&&eu=en&&ec>=er?es-ee-eo:eu>en&&ecer?eu-en+ei:0,dist_i=ee=>{let en=ee.parentElement;return null==en?ee.getRootNode().host||null:en},dist_l=(ee,en)=>{var er,eo,ei,es;if("undefined"==typeof document)return[];let{scrollMode:eu,block:ec,inline:ed,boundary:ep,skipOverflowHiddenElements:ef}=en,eh="function"==typeof ep?ep:ee=>ee!==ep;if(!dist_t(ee))throw TypeError("Invalid target");let em=document.scrollingElement||document.documentElement,ex=[],eg=ee;for(;dist_t(eg)&&eh(eg);){if((eg=dist_i(eg))===em){ex.push(eg);break}null!=eg&&eg===document.body&&dist_n(eg)&&!dist_n(document.documentElement)||null!=eg&&dist_n(eg,ef)&&ex.push(eg)}let ev=null!=(eo=null==(er=window.visualViewport)?void 0:er.width)?eo:innerWidth,ey=null!=(es=null==(ei=window.visualViewport)?void 0:ei.height)?es:innerHeight,{scrollX:eb,scrollY:e_}=window,{height:ew,width:ek,top:eC,right:eT,bottom:eS,left:eE}=ee.getBoundingClientRect(),eO="start"===ec||"nearest"===ec?eC:"end"===ec?eS:eC+ew/2,ej="center"===ed?eE+ek/2:"end"===ed?eT:eE,eI=[];for(let ee=0;ee=0&&eE>=0&&eS<=ey&&eT<=ev&&eC>=ei&&eS<=ep&&eE>=ef&&eT<=es)break;let eh=getComputedStyle(en),eg=parseInt(eh.borderLeftWidth,10),eP=parseInt(eh.borderTopWidth,10),eR=parseInt(eh.borderRightWidth,10),eN=parseInt(eh.borderBottomWidth,10),eZ=0,eM=0,eA="offsetWidth"in en?en.offsetWidth-en.clientWidth-eg-eR:0,eL="offsetHeight"in en?en.offsetHeight-en.clientHeight-eP-eN:0,eD="offsetWidth"in en?0===en.offsetWidth?0:eo/en.offsetWidth:0,eF="offsetHeight"in en?0===en.offsetHeight?0:er/en.offsetHeight:0;if(em===en)eZ="start"===ec?eO:"end"===ec?eO-ey:"nearest"===ec?dist_o(e_,e_+ey,ey,eP,eN,e_+eO,e_+eO+ew,ew):eO-ey/2,eM="start"===ed?ej:"center"===ed?ej-ev/2:"end"===ed?ej-ev:dist_o(eb,eb+ev,ev,eg,eR,eb+ej,eb+ej+ek,ek),eZ=Math.max(0,eZ+e_),eM=Math.max(0,eM+eb);else{eZ="start"===ec?eO-ei-eP:"end"===ec?eO-ep+eN+eL:"nearest"===ec?dist_o(ei,ep,er,eP,eN+eL,eO,eO+ew,ew):eO-(ei+er/2)+eL/2,eM="start"===ed?ej-ef-eg:"center"===ed?ej-(ef+eo/2)+eA/2:"end"===ed?ej-es+eR+eA:dist_o(ef,es,eo,eg,eR+eA,ej,ej+ek,ek);let{scrollLeft:ee,scrollTop:eu}=en;eZ=Math.max(0,Math.min(eu+eZ/eF,en.scrollHeight-er/eF+eL)),eM=Math.max(0,Math.min(ee+eM/eD,en.scrollWidth-eo/eD+eA)),eO+=eu-eZ,ej+=ee-eM}eI.push({el:en,top:eZ,left:eM})}return eI},scroll_into_view_if_needed_dist_o=ee=>{var en;return!1===ee?{block:"end",inline:"nearest"}:(en=ee,en===Object(en)&&0!==Object.keys(en).length)?ee:{block:"start",inline:"nearest"}};function scroll_into_view_if_needed_dist_t(ee,en){var er;if(!ee.isConnected||!(ee=>{let en=ee;for(;en&&en.parentNode;){if(en.parentNode===document)return!0;en=en.parentNode instanceof ShadowRoot?en.parentNode.host:en.parentNode}return!1})(ee))return;if("object"==typeof(er=en)&&"function"==typeof er.behavior)return en.behavior(dist_l(ee,en));let eo="boolean"==typeof en||null==en?void 0:en.behavior;for(let{el:er,top:ei,left:es}of dist_l(ee,scroll_into_view_if_needed_dist_o(en)))er.scroll({top:ei,left:es,behavior:eo})}function extends_extends(){return(extends_extends=Object.assign?Object.assign.bind():function(ee){for(var en=1;en=(void 0===ep?eu:ep)&&ee.push(extends_extends({},ec,{item:eo,index:es})),ee}}function getHighestRanking(ee,en,er,eo){if(!en){var ei=ee;return{rankedValue:ei,rank:getMatchRanking(ei,er,eo),keyIndex:-1,keyThreshold:eo.threshold}}return getAllValuesToRank(ee,en).reduce(function(ee,en,ei){var es=ee.rank,eu=ee.rankedValue,ec=ee.keyIndex,ed=ee.keyThreshold,ep=en.itemValue,ef=en.attributes,eh=getMatchRanking(ep,er,eo),em=eu,ex=ef.minRanking,eg=ef.maxRanking,ev=ef.threshold;return eh=ri.MATCHES?eh=ex:eh>eg&&(eh=eg),eh>es&&(es=eh,ec=ei,ed=ev,em=ep),{rankedValue:em,rank:es,keyIndex:ec,keyThreshold:ed}},{rankedValue:ee,rank:ri.NO_MATCH,keyIndex:-1,keyThreshold:eo.threshold})}function getMatchRanking(ee,en,er){return(ee=prepareValueForComparison(ee,er),(en=prepareValueForComparison(en,er)).length>ee.length)?ri.NO_MATCH:ee===en?ri.CASE_SENSITIVE_EQUAL:(ee=ee.toLowerCase())===(en=en.toLowerCase())?ri.EQUAL:ee.startsWith(en)?ri.STARTS_WITH:ee.includes(" "+en)?ri.WORD_STARTS_WITH:ee.includes(en)?ri.CONTAINS:1===en.length?ri.NO_MATCH:getAcronym(ee).includes(en)?ri.ACRONYM:getClosenessRanking(ee,en)}function getAcronym(ee){var en="";return ee.split(" ").forEach(function(ee){ee.split("-").forEach(function(ee){en+=ee.substr(0,1)})}),en}function getClosenessRanking(ee,en){var er=0,eo=0;function findMatchingCharacter(ee,en,eo){for(var ei=eo,es=en.length;ei-1))return ri.NO_MATCH;return getRanking(eo-ei)}function sortRankedValues(ee,en,er){var eo=-1,ei=1,es=ee.rank,eu=ee.keyIndex,ec=en.rank,ed=en.keyIndex;return es!==ec?es>ec?eo:ei:eu===ed?er(ee,en):euen in ee?ru(ee,en,{enumerable:!0,configurable:!0,writable:!0,value:er}):ee[en]=er,__spreadValues=(ee,en)=>{for(var er in en||(en={}))rf.call(en,er)&&__defNormalProp(ee,er,en[er]);if(rp)for(var er of rp(en))rh.call(en,er)&&__defNormalProp(ee,er,en[er]);return ee},__spreadProps=(ee,en)=>rc(ee,rd(en)),__objRest=(ee,en)=>{var er={};for(var eo in ee)rf.call(ee,eo)&&0>en.indexOf(eo)&&(er[eo]=ee[eo]);if(null!=ee&&rp)for(var eo of rp(ee))0>en.indexOf(eo)&&rh.call(ee,eo)&&(er[eo]=ee[eo]);return er},__async=(ee,en,er)=>new Promise((eo,ei)=>{var fulfilled=ee=>{try{step(er.next(ee))}catch(ee){ei(ee)}},rejected=ee=>{try{step(er.throw(ee))}catch(ee){ei(ee)}},step=ee=>ee.done?eo(ee.value):Promise.resolve(ee.value).then(fulfilled,rejected);step((er=er.apply(ee,en)).next())}),rm=(0,ek.createContext)({}),rx=(0,ek.createContext)(ee=>ee),rg=(0,ek.createContext)(null),rv=new WeakMap,ry=(0,ek.createContext)(rv),useActiveAnchor=()=>(0,ek.useContext)(rm),useSetActiveAnchor=()=>(0,ek.useContext)(rx),useIntersectionObserver=()=>(0,ek.useContext)(rg),useSlugs=()=>(0,ek.useContext)(ry),ActiveAnchorProvider=({children:ee})=>{let[en,er]=(0,ek.useState)({}),eo=(0,ek.useRef)(null);return rW&&!eo.current&&(eo.current=new IntersectionObserver(ee=>{er(en=>{let er=__spreadValues({},en);for(let en of ee)if((null==en?void 0:en.rootBounds)&&rv.has(en.target)){let[ee,eo]=rv.get(en.target),ei=en.boundingClientRect.y+en.boundingClientRect.height<=en.rootBounds.y+en.rootBounds.height,es=en.intersectionRatio>0;er[ee]={index:eo,aboveHalfViewport:ei,insideHalfViewport:es}}let eo="",ei=1/0,es=-1;for(let ee in er)er[ee].isActive=!1,er[ee].insideHalfViewport&&er[ee].indexes&&(es=er[ee].index,eo=ee);return er[eo]&&(er[eo].isActive=!0),er})},{rootMargin:"0px 0px -50%",threshold:[0,1]})),(0,tk.jsx)(rm.Provider,{value:en,children:(0,tk.jsx)(rx.Provider,{value:er,children:(0,tk.jsx)(ry.Provider,{value:rv,children:(0,tk.jsx)(rg.Provider,{value:eo.current,children:ee})})})})},rb=(0,ek.createContext)({menu:!1,setMenu:()=>!1}),useMenu=()=>(0,ek.useContext)(rb),r_=rb.Provider,rw=(0,ek.createContext)(__spreadValues({title:"",frontMatter:{}},rQ));function useConfig(){return(0,ek.useContext)(rw)}var ConfigProvider=({children:ee,value:{themeConfig:en,pageOpts:er}})=>{let[eo,ei]=(0,ek.useState)(!1);e_||(e_=__spreadValues(__spreadValues({},rQ),Object.fromEntries(Object.entries(en).map(([ee,en])=>[ee,en&&"object"==typeof en&&rJ.includes(ee)?__spreadValues(__spreadValues({},rQ[ee]),en):en]))));let es=__spreadProps(__spreadValues(__spreadProps(__spreadValues({},e_),{flexsearch:er.flexsearch}),"boolean"==typeof er.newNextLinkBehavior&&{newNextLinkBehavior:er.newNextLinkBehavior}),{title:er.title,frontMatter:er.frontMatter}),{nextThemes:eu}=es;return(0,tk.jsx)($,{attribute:"class",disableTransitionOnChange:!0,defaultTheme:eu.defaultTheme,storageKey:eu.storageKey,forcedTheme:eu.forcedTheme,children:(0,tk.jsx)(rw.Provider,{value:es,children:(0,tk.jsx)(r_,{value:{menu:eo,setMenu:ei},children:ee})})})},rk=(0,ek.createContext)(ee=>ee),useDetails=()=>(0,ek.useContext)(rk),rC=rk.Provider,rT=Number(tw.i8.split(".")[0]),rS=(0,ek.forwardRef)(function(ee,en){var er=ee,{href:eo="",children:ei,newWindow:es}=er,eu=__objRest(er,["href","children","newWindow"]);let ec=useConfig();return es?(0,tk.jsxs)("a",__spreadProps(__spreadValues({ref:en,href:eo,target:"_blank",rel:"noreferrer"},eu),{children:[ei,(0,tk.jsx)("span",{className:"nx-sr-only nx-select-none",children:" (opens in a new tab)"})]})):eo?rT>12||ec.newNextLinkBehavior?(0,tk.jsx)(t_(),__spreadProps(__spreadValues({ref:en,href:eo},eu),{children:ei})):(0,tk.jsx)(t_(),{href:eo,passHref:!0,children:(0,tk.jsx)("a",__spreadProps(__spreadValues({ref:en},eu),{children:ei}))}):(0,tk.jsx)("a",__spreadProps(__spreadValues({ref:en},eu),{children:ei}))});rS.displayName="Anchor";var getGitIssueUrl=({repository:ee="",title:en,labels:er})=>{let eo=tz()(ee);if(!eo)throw Error("Invalid `docsRepositoryBase` URL!");return eo.resource.includes("gitlab")?`${eo.protocol}://${eo.resource}/${eo.owner}/${eo.name}/-/issues/new?issue[title]=${encodeURIComponent(en)}${er?`&issue[description]=/label${encodeURIComponent(` ~${er} +`)}`:""}`:eo.resource.includes("github")?`${eo.protocol}://${eo.resource}/${eo.owner}/${eo.name}/issues/new?title=${encodeURIComponent(en)}&labels=${er||""}`:"#"};function renderComponent(ee,en){return ee?"function"!=typeof ee?ee:(0,tk.jsx)(ee,__spreadValues({},en)):null}function renderString(ee,en={}){let er="function"==typeof ee?ee(en):ee;return er||""}function usePopper(ee){let en=(0,ek.useRef)(null),er=(0,ek.useRef)(null),eo=(0,ek.useRef)(),ei=(0,ek.useCallback)(()=>{var ei;en.current&&er.current&&(null==(ei=eo.current)||ei.call(eo),eo.current=ne(en.current,er.current,ee).destroy)},[en,er,eo,ee]);return(0,ek.useMemo)(()=>[ee=>{en.current=ee,ei()},ee=>{er.current=ee,ei()}],[en,er,ei])}function useGitEditUrl(ee=""){let en=useConfig(),er=tz()(en.docsRepositoryBase||"");if(!er)throw Error("Invalid `docsRepositoryBase` URL!");return`${er.href}/${ee}`}function Banner(){let{banner:ee}=useConfig();if(!ee.text)return null;let en=`try{if(localStorage.getItem(${JSON.stringify(ee.key)})==='0'){document.body.classList.add('nextra-banner-hidden')}}catch(e){}`;return(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)("script",{dangerouslySetInnerHTML:{__html:en}}),(0,tk.jsxs)("div",{className:(0,eC.Z)("nextra-banner-container nx-sticky nx-top-0 nx-z-20 nx-flex nx-items-center md:nx-relative","nx-h-[var(--nextra-banner-height)] [body.nextra-banner-hidden_&]:nx-hidden","nx-text-slate-50 dark:nx-text-white nx-bg-neutral-900 dark:nx-bg-[linear-gradient(1deg,#383838,#212121)]","nx-px-2 ltr:nx-pl-10 rtl:nx-pr-10 print:nx-hidden"),children:[(0,tk.jsx)("div",{className:"nx-w-full nx-truncate nx-px-4 nx-text-center nx-font-medium nx-text-sm",children:renderComponent(ee.text)}),ee.dismissible&&(0,tk.jsx)("button",{type:"button","aria-label":"Dismiss banner",className:"nx-w-8 nx-h-8 nx-opacity-80 hover:nx-opacity-100",onClick:()=>{try{localStorage.setItem(ee.key,"0")}catch(ee){}document.body.classList.add("nextra-banner-hidden")},children:(0,tk.jsx)(eO.b0,{className:"nx-mx-auto nx-h-4 nx-w-4"})})]})]})}function Breadcrumb({activePath:ee}){return(0,tk.jsx)("div",{className:"nextra-breadcrumb nx-mt-1.5 nx-flex nx-items-center nx-gap-1 nx-overflow-hidden nx-text-sm nx-text-gray-500 dark:nx-text-gray-400 contrast-more:nx-text-current",children:ee.map((en,er)=>{let eo=!en.children||en.withIndexPage,ei=er===ee.length-1;return(0,tk.jsxs)(ek.Fragment,{children:[er>0&&(0,tk.jsx)(eO.LZ,{className:"nx-w-3.5 nx-shrink-0"}),(0,tk.jsx)("div",{className:(0,eC.Z)("nx-whitespace-nowrap nx-transition-colors",ei?"nx-font-medium nx-text-gray-700 contrast-more:nx-font-bold contrast-more:nx-text-current dark:nx-text-gray-100 contrast-more:dark:nx-text-current":["nx-min-w-[24px] nx-overflow-hidden nx-text-ellipsis",eo&&"hover:nx-text-gray-900 dark:hover:nx-text-gray-100"]),title:en.title,children:eo&&!ei?(0,tk.jsx)(rS,{href:en.route,children:en.title}):en.title})]},en.route+en.name)})})}function Collapse({children:ee,className:en,isOpen:er,horizontal:eo=!1}){let ei=(0,ek.useRef)(null),es=(0,ek.useRef)(null),eu=(0,ek.useRef)(0),ec=(0,ek.useRef)(er),ed=(0,ek.useRef)(!0);return(0,ek.useEffect)(()=>{let ee=ei.current,en=es.current,ec=eu.current;ec&&clearTimeout(ec),!ed.current&&ee&&en&&(ee.classList.toggle("nx-duration-500",!er),ee.classList.toggle("nx-duration-300",er),eo?(en.style.width=`${en.clientWidth}px`,ee.style.width=`${en.clientWidth}px`):ee.style.height=`${en.clientHeight}px`,er?eu.current=window.setTimeout(()=>{ee.style.removeProperty("height")},300):setTimeout(()=>{eo?ee.style.width="0px":ee.style.height="0px"},0))},[eo,er]),(0,ek.useEffect)(()=>{ed.current=!1},[]),(0,tk.jsx)("div",{ref:ei,className:"nx-transform-gpu nx-overflow-hidden nx-transition-all nx-ease-in-out motion-reduce:nx-transition-none",style:ec.current||eo?void 0:{height:0},children:(0,tk.jsx)("div",{ref:es,className:(0,eC.Z)("nx-transition-opacity nx-duration-500 nx-ease-in-out motion-reduce:nx-transition-none",er?"nx-opacity-100":"nx-opacity-0",en),children:ee})})}var rE=(0,ek.memo)(function({value:ee,match:en}){let er;if(!ee)return null;let eo=ee.split(""),ei=escapeStringRegexp(en.trim()),es=RegExp(ei.replaceAll(" ","|"),"ig"),eu=0,ec=[];for(;(er=es.exec(ee))&&0!==es.lastIndex;){let ee=eo.splice(0,er.index-eu).join(""),en=eo.splice(0,es.lastIndex-er.index).join("");ec.push(ee,(0,tk.jsx)("span",{className:"nx-text-primary-600",children:en},er.index)),eu=es.lastIndex}return(0,tk.jsxs)(tk.Fragment,{children:[ec,eo.join("")]})}),rO=(0,ek.forwardRef)((ee,en)=>{var er=ee,{className:eo,suffix:ei}=er,es=__objRest(er,["className","suffix"]);return(0,tk.jsxs)("div",{className:"nx-relative nx-flex nx-items-center nx-text-gray-900 contrast-more:nx-text-gray-800 dark:nx-text-gray-300 contrast-more:dark:nx-text-gray-300",children:[(0,tk.jsx)("input",__spreadValues({ref:en,spellCheck:!1,className:(0,eC.Z)(eo,"nx-block nx-w-full nx-appearance-none nx-rounded-lg nx-px-3 nx-py-2 nx-transition-colors","nx-text-base nx-leading-tight md:nx-text-sm","nx-bg-black/[.05] dark:nx-bg-gray-50/10","focus:nx-bg-white dark:focus:nx-bg-dark","placeholder:nx-text-gray-500 dark:placeholder:nx-text-gray-400","contrast-more:nx-border contrast-more:nx-border-current")},es)),ei]})});rO.displayName="Input";var rj=["input","select","button","textarea"];function Search({className:ee,overlayClassName:en,value:er,onChange:eo,onActive:ei,loading:es,error:eu,results:ec}){let[ed,ep]=(0,ek.useState)(!1),ef=useConfig(),[eh,em]=(0,ek.useState)(0),ex=(0,ew.useRouter)(),{setMenu:eg}=useMenu(),ev=(0,ek.useRef)(null),ey=(0,ek.useRef)(null),[eb,e_]=(0,ek.useState)(!1),[eT,eS]=(0,ek.useState)(!0);(0,ek.useEffect)(()=>{em(0)},[er]),(0,ek.useEffect)(()=>{let down=ee=>{let en=document.activeElement,er=null==en?void 0:en.tagName.toLowerCase();!ev.current||!er||rj.includes(er)||null!=en&&en.isContentEditable||("/"===ee.key||"k"===ee.key&&(ee.metaKey||ee.ctrlKey)?(ee.preventDefault(),ev.current.focus({preventScroll:!0})):"Escape"===ee.key&&(ep(!1),ev.current.blur()))};return window.addEventListener("keydown",down),()=>{window.removeEventListener("keydown",down)}},[]);let eE=(0,ek.useCallback)(()=>{var ee;null==(ee=ev.current)||ee.blur(),eo(""),ep(!1),eg(!1)},[eo,eg]),ej=(0,ek.useCallback)(ee=>{let{index:en}=ee.currentTarget.dataset;em(Number(en))},[]),eI=(0,ek.useCallback)(function(ee){var en,er,eo;switch(ee.key){case"ArrowDown":if(eh+1 a`);er&&(ee.preventDefault(),ej({currentTarget:er}),er.focus())}break;case"ArrowUp":if(eh-1>=0){let en=null==(er=ey.current)?void 0:er.querySelector(`li:nth-of-type(${eh}) > a`);en&&(ee.preventDefault(),ej({currentTarget:en}),en.focus())}break;case"Enter":{let ee=ec[eh];ee&&eT&&(ex.push(ee.route),eE());break}case"Escape":ep(!1),null==(eo=ev.current)||eo.blur()}},[eh,ec,ex,eE,ej,eT]),eP=useMounted(),eR=ed&&!!er,eN=(0,tk.jsx)(nC,{show:eP&&(!ed||!!er),as:ek.Fragment,enter:"nx-transition-opacity",enterFrom:"nx-opacity-0",enterTo:"nx-opacity-100",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,tk.jsx)("kbd",{className:(0,eC.Z)("nx-absolute nx-my-1.5 nx-select-none ltr:nx-right-1.5 rtl:nx-left-1.5","nx-h-5 nx-rounded nx-bg-white nx-px-1.5 nx-font-mono nx-text-[10px] nx-font-medium nx-text-gray-500","nx-border dark:nx-border-gray-100/20 dark:nx-bg-dark/50","contrast-more:nx-border-current contrast-more:nx-text-current contrast-more:dark:nx-border-current","nx-items-center nx-gap-1 nx-transition-opacity",er?"nx-z-20 nx-flex nx-cursor-pointer hover:nx-opacity-70":"nx-pointer-events-none nx-hidden sm:nx-flex"),title:er?"Clear":void 0,onClick:()=>{eo("")},children:er&&eb?"ESC":eP&&(navigator.userAgent.includes("Macintosh")?(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)("span",{className:"nx-text-xs",children:"⌘"}),"K"]}):"CTRL K")})}),eZ=(0,ek.useCallback)(ee=>{eS("compositionend"===ee.type)},[]);return(0,tk.jsxs)("div",{className:(0,eC.Z)("nextra-search nx-relative md:nx-w-64",ee),children:[eR&&(0,tk.jsx)("div",{className:"nx-fixed nx-inset-0 nx-z-10",onClick:()=>ep(!1)}),(0,tk.jsx)(rO,{ref:ev,value:er,onChange:ee=>{let{value:en}=ee.target;eo(en),ep(!!en)},onFocus:()=>{null==ei||ei(!0),e_(!0)},onBlur:()=>{e_(!1)},onCompositionStart:eZ,onCompositionEnd:eZ,type:"search",placeholder:renderString(ef.search.placeholder),onKeyDown:eI,suffix:eN}),(0,tk.jsx)(nC,{show:eR,as:nC.Child,leave:"nx-transition-opacity nx-duration-100",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,tk.jsx)("ul",{className:(0,eC.Z)("nextra-scrollbar","nx-border nx-border-gray-200 nx-bg-white nx-text-gray-100 dark:nx-border-neutral-800 dark:nx-bg-neutral-900","nx-absolute nx-top-full nx-z-20 nx-mt-2 nx-overflow-auto nx-overscroll-contain nx-rounded-xl nx-py-2.5 nx-shadow-xl","nx-max-h-[min(calc(50vh-11rem-env(safe-area-inset-bottom)),400px)]","md:nx-max-h-[min(calc(100vh-5rem-env(safe-area-inset-bottom)),400px)]","nx-inset-x-0 ltr:md:nx-left-auto rtl:md:nx-right-auto","contrast-more:nx-border contrast-more:nx-border-gray-900 contrast-more:dark:nx-border-gray-50",en),ref:ey,style:{transition:"max-height .2s ease"},children:eu?(0,tk.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-red-500",children:[(0,tk.jsx)(eO.AV,{className:"nx-h-5 nx-w-5"}),renderString(ef.search.error)]}):es?(0,tk.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:[(0,tk.jsx)(eO.L4,{className:"nx-h-5 nx-w-5 nx-animate-spin"}),renderComponent(ef.search.loading)]}):ec.length>0?ec.map(({route:ee,prefix:en,children:er,id:eo},ei)=>(0,tk.jsxs)(ek.Fragment,{children:[en,(0,tk.jsx)("li",{className:(0,eC.Z)("nx-mx-2.5 nx-break-words nx-rounded-md","contrast-more:nx-border",ei===eh?"nx-bg-primary-500/10 nx-text-primary-600 contrast-more:nx-border-primary-500":"nx-text-gray-800 contrast-more:nx-border-transparent dark:nx-text-gray-300"),children:(0,tk.jsx)(rS,{className:"nx-block nx-scroll-m-12 nx-px-2.5 nx-py-2",href:ee,"data-index":ei,onFocus:ej,onMouseMove:ej,onClick:eE,onKeyDown:eI,children:er})})]},eo)):renderComponent(ef.search.emptyResult)})})]})}var rI={},rP=new Map,loadIndexes=(ee,en)=>{let er=ee+"@"+en;if(rP.has(er))return rP.get(er);let eo=loadIndexesImpl(ee,en);return rP.set(er,eo),eo},loadIndexesImpl=(ee,en)=>__async(void 0,null,function*(){let er=yield fetch(`${ee}/_next/static/chunks/nextra-data-${en}.json`),eo=yield er.json(),ei=new(nn()).Document({cache:100,tokenize:"full",document:{id:"id",index:"content",store:["title"]},context:{resolution:9,depth:2,bidirectional:!0}}),es=new(nn()).Document({cache:100,tokenize:"full",document:{id:"id",index:"content",tag:"pageId",store:["title","content","url","display"]},context:{resolution:9,depth:2,bidirectional:!0}}),eu=0;for(let[ee,en]of Object.entries(eo)){let er="";for(let[eo,ei]of(++eu,Object.entries(en.data))){let[ec,ed]=eo.split("#"),ep=ee+(ec?"#"+ec:""),ef=ed||en.title,eh=ei.split("\n");es.add(__spreadValues({id:ep,url:ep,title:ef,pageId:`page_${eu}`,content:ef},eh[0]&&{display:eh[0]}));for(let ee=0;ee{var er,eo;if(!ee)return;let[ei,es]=rI[en],eu=(null==(er=ei.search(ee,5,{enrich:!0,suggest:!0})[0])?void 0:er.result)||[],ec=[],ep={};for(let en=0;enee._page_rk===en._page_rk?ee._section_rk-en._section_rk:ep[ee._page_rk]!==ep[en._page_rk]?ep[en._page_rk]-ep[ee._page_rk]:ee._page_rk-en._page_rk).map(ee=>({id:`${ee._page_rk}_${ee._section_rk}`,route:ee.route,prefix:ee.prefix,children:ee.children})))},eh=(0,ek.useCallback)(ee=>__async(this,null,function*(){if(ee&&!rI[en]){ei(!0);try{yield loadIndexes(er,en)}catch(ee){eu(!0)}ei(!1)}}),[en,er]),handleChange=ee=>__async(this,null,function*(){if(ef(ee),!eo){if(!rI[en]){ei(!0);try{yield loadIndexes(er,en)}catch(ee){eu(!0)}ei(!1)}doSearch(ee)}});return(0,tk.jsx)(Search,{loading:eo,error:es,value:ep,onChange:handleChange,onActive:eh,className:ee,overlayClassName:"nx-w-screen nx-min-h-[100px] nx-max-w-[min(calc(100vw-2rem),calc(100%+20rem))]",results:ec})}function Select({options:ee,selected:en,onChange:er,title:eo,className:ei}){let[es,eu]=usePopper({strategy:"fixed",placement:"top-start",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn({state:ee}){ee.styles.popper.minWidth=`${ee.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return(0,tk.jsx)(nG,{value:en,onChange:er,children:({open:er})=>(0,tk.jsxs)(nG.Button,{ref:es,title:eo,className:(0,eC.Z)("nx-h-7 nx-rounded-md nx-px-2 nx-text-left nx-text-xs nx-font-medium nx-text-gray-600 nx-transition-colors dark:nx-text-gray-400",er?"nx-bg-gray-200 nx-text-gray-900 dark:nx-bg-primary-100/10 dark:nx-text-gray-50":"hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",ei),children:[en.name,(0,tk.jsx)(Portal,{children:(0,tk.jsx)(nC,{ref:eu,show:er,as:nG.Options,className:"nx-z-20 nx-max-h-64 nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:ee.map(ee=>(0,tk.jsxs)(nG.Option,{value:ee,className:({active:ee})=>(0,eC.Z)(ee?"nx-bg-primary-50 nx-text-primary-600 dark:nx-bg-primary-500/10":"nx-text-gray-800 dark:nx-text-gray-100","nx-relative nx-cursor-pointer nx-whitespace-nowrap nx-py-1.5","nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),children:[ee.name,ee.key===en.key&&(0,tk.jsx)("span",{className:"nx-absolute nx-inset-y-0 nx-flex nx-items-center ltr:nx-right-3 rtl:nx-left-3",children:(0,tk.jsx)(eO.nQ,{})})]},ee.key))})})]})})}function Portal(ee){let en=useMounted();return en?(0,nK.createPortal)(ee.children,document.body):null}function LocaleSwitch({lite:ee,className:en}){let er=useConfig(),{locale:eo,asPath:ei}=(0,ew.useRouter)(),es=er.i18n;if(!es.length)return null;let eu=es.find(ee=>eo===ee.locale);return(0,tk.jsx)(Select,{title:"Change language",className:en,onChange:ee=>{let en=new Date(Date.now()+31536e6);document.cookie=`NEXT_LOCALE=${ee.key}; expires=${en.toUTCString()}; path=/`,location.href=(0,nT.addBasePath)(ei)},selected:{key:(null==eu?void 0:eu.locale)||"",name:(0,tk.jsxs)("span",{className:"nx-flex nx-items-center nx-gap-2",children:[(0,tk.jsx)(eO.n9,{}),(0,tk.jsx)("span",{className:ee?"nx-hidden":"",children:null==eu?void 0:eu.text})]})},options:es.map(ee=>({key:ee.locale,name:ee.text}))})}function Footer({menu:ee}){let en=useConfig();return(0,tk.jsxs)("footer",{className:"nx-bg-gray-100 nx-pb-[env(safe-area-inset-bottom)] dark:nx-bg-neutral-900 print:nx-bg-transparent",children:[(0,tk.jsxs)("div",{className:(0,eC.Z)("nx-mx-auto nx-flex nx-max-w-[90rem] nx-gap-2 nx-py-2 nx-px-4",ee&&(en.i18n.length>0||en.darkMode)?"nx-flex":"nx-hidden"),children:[(0,tk.jsx)(LocaleSwitch,{}),en.darkMode&&renderComponent(en.themeSwitch.component)]}),(0,tk.jsx)("hr",{className:"dark:nx-border-neutral-800"}),(0,tk.jsx)("div",{className:(0,eC.Z)("nx-mx-auto nx-flex nx-max-w-[90rem] nx-justify-center nx-py-12 nx-text-gray-600 dark:nx-text-gray-400 md:nx-justify-start","nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:renderComponent(en.footer.text)})]})}function dist_Head(){var ee;let en=useConfig(),{resolvedTheme:er}=y(),eo=useMounted(),ei="function"==typeof en.head?en.head({}):en.head,{primaryHue:es,primarySaturation:eu}=en,{dark:ec,light:ed}="number"==typeof es?{dark:es,light:es}:es,{dark:ep,light:ef}="number"==typeof eu?{dark:eu,light:eu}:eu,eh=en.frontMatter;return(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)(NextSeo,__spreadValues({title:en.title,description:eh.description,canonical:eh.canonical,openGraph:eh.openGraph},null==(ee=en.useNextSeoProps)?void 0:ee.call(en))),(0,tk.jsxs)(nX(),{children:[en.faviconGlyph?(0,tk.jsx)("link",{rel:"icon",href:`data:image/svg+xml;utf8,${en.faviconGlyph}`}):null,eo?(0,tk.jsx)("meta",{name:"theme-color",content:"dark"===er?"#111":"#fff"}):(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)("meta",{name:"theme-color",content:"#fff",media:"(prefers-color-scheme: light)"}),(0,tk.jsx)("meta",{name:"theme-color",content:"#111",media:"(prefers-color-scheme: dark)"})]}),(0,tk.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, viewport-fit=cover"}),(0,tk.jsx)("style",{children:` + :root { + --nextra-primary-hue: ${ed}deg; + --nextra-primary-saturation: ${ef}%; + --nextra-navbar-height: 4rem; + --nextra-menu-height: 3.75rem; + --nextra-banner-height: 2.5rem; + } + + .dark { + --nextra-primary-hue: ${ec}deg; + --nextra-primary-saturation: ${ep}%; + } + `}),ei]})]})}var rR={link:(0,eC.Z)("nx-flex nx-max-w-[50%] nx-items-center nx-gap-1 nx-py-4 nx-text-base nx-font-medium nx-text-gray-600 nx-transition-colors [word-break:break-word] hover:nx-text-primary-600 dark:nx-text-gray-300 md:nx-text-lg"),icon:(0,eC.Z)("nx-inline nx-h-5 nx-shrink-0")},NavLinks=({flatDirectories:ee,currentIndex:en})=>{let er=useConfig(),eo=er.navigation,ei="boolean"==typeof eo?{prev:eo,next:eo}:eo,es=ei.prev&&ee[en-1],eu=ei.next&&ee[en+1];return(es&&!es.isUnderCurrentDocsTree&&(es=!1),eu&&!eu.isUnderCurrentDocsTree&&(eu=!1),es||eu)?(0,tk.jsxs)("div",{className:(0,eC.Z)("nx-mb-8 nx-flex nx-items-center nx-border-t nx-pt-8 dark:nx-border-neutral-800","contrast-more:nx-border-neutral-400 dark:contrast-more:nx-border-neutral-400","print:nx-hidden"),children:[es&&(0,tk.jsxs)(rS,{href:es.route,title:es.title,className:(0,eC.Z)(rR.link,"ltr:nx-pr-4 rtl:nx-pl-4"),children:[(0,tk.jsx)(eO.LZ,{className:(0,eC.Z)(rR.icon,"ltr:nx-rotate-180")}),es.title]}),eu&&(0,tk.jsxs)(rS,{href:eu.route,title:eu.title,className:(0,eC.Z)(rR.link,"ltr:nx-ml-auto ltr:nx-pl-4 ltr:nx-text-right rtl:nx-mr-auto rtl:nx-pr-4 rtl:nx-text-left"),children:[eu.title,(0,tk.jsx)(eO.LZ,{className:(0,eC.Z)(rR.icon,"rtl:nx-rotate-180")})]})]}):null},rN={link:(0,eC.Z)("nx-text-sm contrast-more:nx-text-gray-700 contrast-more:dark:nx-text-gray-100"),active:(0,eC.Z)("nx-font-medium nx-subpixel-antialiased"),inactive:(0,eC.Z)("nx-text-gray-600 hover:nx-text-gray-800 dark:nx-text-gray-400 dark:hover:nx-text-gray-200")};function NavbarMenu({className:ee,menu:en,children:er}){let{items:eo}=en,ei=Object.fromEntries((en.children||[]).map(ee=>[ee.name,ee]));return(0,tk.jsx)("div",{className:"nx-relative nx-inline-block",children:(0,tk.jsxs)(rn,{children:[(0,tk.jsx)(rn.Button,{className:(0,eC.Z)(ee,"-nx-ml-2 nx-hidden nx-items-center nx-whitespace-nowrap nx-rounded nx-p-2 md:nx-inline-flex",rN.inactive),children:er}),(0,tk.jsx)(nC,{leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,tk.jsx)(rn.Items,{className:"nx-absolute nx-right-0 nx-z-20 nx-mt-1 nx-max-h-64 nx-min-w-full nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",tabIndex:0,children:Object.entries(eo||{}).map(([ee,er])=>{var eo;return(0,tk.jsx)(rn.Item,{children:(0,tk.jsx)(rS,{href:er.href||(null==(eo=ei[ee])?void 0:eo.route)||en.route+"/"+ee,className:(0,eC.Z)("nx-relative nx-hidden nx-w-full nx-select-none nx-whitespace-nowrap nx-text-gray-600 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100 md:nx-inline-block","nx-py-1.5 nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),newWindow:er.newWindow,children:er.title||ee})},ee)})})})]})})}function Navbar({flatDirectories:ee,items:en}){let er=useConfig(),eo=useFSRoute(),{menu:ei,setMenu:es}=useMenu();return(0,tk.jsxs)("div",{className:"nextra-nav-container nx-sticky nx-top-0 nx-z-20 nx-w-full nx-bg-transparent print:nx-hidden",children:[(0,tk.jsx)("div",{className:(0,eC.Z)("nextra-nav-container-blur","nx-pointer-events-none nx-absolute nx-z-[-1] nx-h-full nx-w-full nx-bg-white dark:nx-bg-dark","nx-shadow-[0_2px_4px_rgba(0,0,0,.02),0_1px_0_rgba(0,0,0,.06)] dark:nx-shadow-[0_-1px_0_rgba(255,255,255,.1)_inset]","contrast-more:nx-shadow-[0_0_0_1px_#000] contrast-more:dark:nx-shadow-[0_0_0_1px_#fff]")}),(0,tk.jsxs)("nav",{className:"nx-mx-auto nx-flex nx-h-[var(--nextra-navbar-height)] nx-max-w-[90rem] nx-items-center nx-justify-end nx-gap-2 nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]",children:[er.logoLink?(0,tk.jsx)(rS,{href:"string"==typeof er.logoLink?er.logoLink:"/",className:"nx-flex nx-items-center hover:nx-opacity-75 ltr:nx-mr-auto rtl:nx-ml-auto",children:renderComponent(er.logo)}):(0,tk.jsx)("div",{className:"nx-flex nx-items-center ltr:nx-mr-auto rtl:nx-ml-auto",children:renderComponent(er.logo)}),en.map(ee=>{if("hidden"===ee.display)return null;if("menu"===ee.type){let en=ee;return(0,tk.jsxs)(NavbarMenu,{className:(0,eC.Z)(rN.link,"nx-flex nx-gap-1",rN.inactive),menu:en,children:[en.title,(0,tk.jsx)(eO.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5",pathClassName:"nx-origin-center nx-transition-transform nx-rotate-90"})]},en.title)}let en=ee,er=en.href||en.route||"#";en.children&&(er=(en.withIndexPage?en.route:en.firstChildRoute)||er);let ei=en.route===eo||eo.startsWith(en.route+"/");return(0,tk.jsxs)(rS,{href:er,className:(0,eC.Z)(rN.link,"nx-relative -nx-ml-2 nx-hidden nx-whitespace-nowrap nx-p-2 md:nx-inline-block",!ei||en.newWindow?rN.inactive:rN.active),newWindow:en.newWindow,"aria-current":!en.newWindow&&ei,children:[(0,tk.jsx)("span",{className:"nx-absolute nx-inset-x-0 nx-text-center",children:en.title}),(0,tk.jsx)("span",{className:"nx-invisible nx-font-medium",children:en.title})]},er)}),renderComponent(er.search.component,{directories:ee,className:"nx-hidden md:nx-inline-block mx-min-w-[200px]"}),er.project.link?(0,tk.jsx)(rS,{className:"nx-p-2 nx-text-current",href:er.project.link,newWindow:!0,children:renderComponent(er.project.icon)}):null,er.chat.link?(0,tk.jsx)(rS,{className:"nx-p-2 nx-text-current",href:er.chat.link,newWindow:!0,children:renderComponent(er.chat.icon)}):null,renderComponent(er.navbar.extraContent),(0,tk.jsx)("button",{type:"button","aria-label":"Menu",className:"nextra-hamburger -nx-mr-2 nx-rounded nx-p-2 active:nx-bg-gray-400/20 md:nx-hidden",onClick:()=>es(!ei),children:(0,tk.jsx)(eO.Oq,{className:(0,eC.Z)({open:ei})})})]})]})}var rZ=Object.create(null),rM=(0,ek.createContext)(null),rA=(0,ek.createContext)(null),rL=(0,ek.createContext)(0),rD=(0,ek.memo)(function(ee){let en=(0,ek.useContext)(rL);return(0,tk.jsx)(rL.Provider,{value:en+1,children:(0,tk.jsx)(FolderImpl,__spreadValues({},ee))})}),rF={link:(0,eC.Z)("nx-flex nx-rounded nx-px-2 nx-py-1.5 nx-text-sm nx-transition-colors [word-break:break-word]","nx-cursor-pointer [-webkit-tap-highlight-color:transparent] [-webkit-touch-callout:none] contrast-more:nx-border"),inactive:(0,eC.Z)("nx-text-gray-500 hover:nx-bg-gray-100 hover:nx-text-gray-900","dark:nx-text-neutral-400 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50","contrast-more:nx-text-gray-900 contrast-more:dark:nx-text-gray-50","contrast-more:nx-border-transparent contrast-more:hover:nx-border-gray-900 contrast-more:dark:hover:nx-border-gray-50"),active:(0,eC.Z)("nx-bg-primary-100 nx-font-semibold nx-text-primary-800 dark:nx-bg-primary-400/10 dark:nx-text-primary-600","contrast-more:nx-border-primary-500 contrast-more:dark:nx-border-primary-500"),list:(0,eC.Z)("nx-flex nx-flex-col nx-gap-1"),border:(0,eC.Z)("nx-relative before:nx-absolute before:nx-inset-y-1",'before:nx-w-px before:nx-bg-gray-200 before:nx-content-[""] dark:before:nx-bg-neutral-800',"ltr:nx-pl-3 ltr:before:nx-left-0 rtl:nx-pr-3 rtl:before:nx-right-0")};function FolderImpl({item:ee,anchors:en}){let er=useFSRoute(),[eo]=er.split("#"),ei=[eo,eo+"/"].includes(ee.route+"/"),es=ei||eo.startsWith(ee.route+"/"),eu=(0,ek.useContext)(rM),ec=!!(null==eu?void 0:eu.startsWith(ee.route+"/")),ed=(0,ek.useContext)(rL),{setMenu:ep}=useMenu(),ef=useConfig(),{theme:eh}=ee,em=void 0===rZ[ee.route]?ei||es||ec||(eh&&"collapsed"in eh?!eh.collapsed:ed{let updateTreeState=()=>{(es||ec)&&(rZ[ee.route]=!0)},updateAndPruneTreeState=()=>{es&&ec?rZ[ee.route]=!0:delete rZ[ee.route]};ef.sidebar.autoCollapse?updateAndPruneTreeState():updateTreeState()},[es,ec,ee.route,ef.sidebar.autoCollapse]),"menu"===ee.type){let en=ee,er=Object.fromEntries((en.children||[]).map(ee=>[ee.name,ee]));ee.children=Object.entries(en.items||{}).map(([ee,eo])=>{let ei=er[ee]||__spreadProps(__spreadValues({name:ee},"locale"in en&&{locale:en.locale}),{route:en.route+"/"+ee});return __spreadValues(__spreadValues({},ei),eo)})}let eg="withIndexPage"in ee&&ee.withIndexPage,ev=eg?rS:"button";return(0,tk.jsxs)("li",{className:(0,eC.Z)({open:em,active:ei}),children:[(0,tk.jsxs)(ev,{href:eg?ee.route:void 0,className:(0,eC.Z)("nx-items-center nx-justify-between nx-gap-2",!eg&&"nx-text-left nx-w-full",rF.link,ei?rF.active:rF.inactive),onClick:en=>{let er=["svg","path"].includes(en.target.tagName.toLowerCase());if(er&&en.preventDefault(),eg){ei||er?rZ[ee.route]=!em:(rZ[ee.route]=!0,ep(!1)),ex({});return}ei||(rZ[ee.route]=!em,ex({}))},children:[renderComponent(ef.sidebar.titleComponent,{title:ee.title,type:ee.type,route:ee.route}),(0,tk.jsx)(eO.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5 hover:nx-bg-gray-800/5 dark:hover:nx-bg-gray-100/5",pathClassName:(0,eC.Z)("nx-origin-center nx-transition-transform rtl:-nx-rotate-180",em&&"ltr:nx-rotate-90 rtl:nx-rotate-[-270deg]")})]}),(0,tk.jsx)(Collapse,{className:"ltr:nx-pr-0 rtl:nx-pl-0 nx-pt-1",isOpen:em,children:Array.isArray(ee.children)?(0,tk.jsx)(Menu2,{className:(0,eC.Z)(rF.border,"ltr:nx-ml-3 rtl:nx-mr-3"),directories:ee.children,base:ee.route,anchors:en}):null})]})}function Separator({title:ee}){let en=useConfig();return(0,tk.jsx)("li",{className:(0,eC.Z)("[word-break:break-word]",ee?"nx-mt-5 nx-mb-2 nx-px-2 nx-py-1.5 nx-text-sm nx-font-semibold nx-text-gray-900 first:nx-mt-0 dark:nx-text-gray-100":"nx-my-4"),children:ee?renderComponent(en.sidebar.titleComponent,{title:ee,type:"separator",route:""}):(0,tk.jsx)("hr",{className:"nx-mx-2 nx-border-t nx-border-gray-200 dark:nx-border-primary-100/10"})})}function File({item:ee,anchors:en}){let er=useFSRoute(),eo=(0,ek.useContext)(rA),ei=ee.route&&[er,er+"/"].includes(ee.route+"/"),es=useActiveAnchor(),{setMenu:eu}=useMenu(),ec=useConfig();return"separator"===ee.type?(0,tk.jsx)(Separator,{title:ee.title}):(0,tk.jsxs)("li",{className:(0,eC.Z)(rF.list,{active:ei}),children:[(0,tk.jsx)(rS,{href:ee.href||ee.route,newWindow:ee.newWindow,className:(0,eC.Z)(rF.link,ei?rF.active:rF.inactive),onClick:()=>{eu(!1)},onFocus:()=>{null==eo||eo(ee.route)},onBlur:()=>{null==eo||eo(null)},children:renderComponent(ec.sidebar.titleComponent,{title:ee.title,type:ee.type,route:ee.route})}),ei&&en.length>0&&(0,tk.jsx)("ul",{className:(0,eC.Z)(rF.list,rF.border,"ltr:nx-ml-3 rtl:nx-mr-3"),children:en.map(({id:ee,value:en})=>{var er;return(0,tk.jsx)("li",{children:(0,tk.jsx)("a",{href:`#${ee}`,className:(0,eC.Z)(rF.link,'nx-flex nx-gap-2 before:nx-opacity-25 before:nx-content-["#"]',(null==(er=es[ee])?void 0:er.isActive)?rF.active:rF.inactive),onClick:()=>{eu(!1)},children:en})},ee)})})]})}function Menu2({directories:ee,anchors:en,className:er,onlyCurrentDocs:eo}){return(0,tk.jsx)("ul",{className:(0,eC.Z)(rF.list,er),children:ee.map(ee=>!eo||ee.isUnderCurrentDocsTree?"menu"===ee.type||ee.children&&(ee.children.length||!ee.withIndexPage)?(0,tk.jsx)(rD,{item:ee,anchors:en},ee.name):(0,tk.jsx)(File,{item:ee,anchors:en},ee.name):null)})}function Sidebar({docsDirectories:ee,flatDirectories:en,fullDirectories:er,asPopover:eo=!1,headings:ei,includePlaceholder:es}){let eu=useConfig(),{menu:ec,setMenu:ed}=useMenu(),ep=(0,ew.useRouter)(),[ef,eh]=(0,ek.useState)(null),[em,ex]=(0,ek.useState)(!0),[eg,ev]=(0,ek.useState)(!1),ey=(0,ek.useMemo)(()=>ei.filter(ee=>2===ee.depth),[ei]),eb=(0,ek.useRef)(null),e_=(0,ek.useRef)(null),eT=useMounted();(0,ek.useEffect)(()=>{ec?document.body.classList.add("nx-overflow-hidden","md:nx-overflow-auto"):document.body.classList.remove("nx-overflow-hidden","md:nx-overflow-auto")},[ec]),(0,ek.useEffect)(()=>{var ee;let en=null==(ee=eb.current)?void 0:ee.querySelector("li.active");if(en&&(window.innerWidth>767||ec)){let scroll=()=>{scroll_into_view_if_needed_dist_t(en,{block:"center",inline:"center",scrollMode:"always",boundary:e_.current})};ec?setTimeout(scroll,300):scroll()}},[ec]),(0,ek.useEffect)(()=>{ed(!1)},[ep.asPath,ed]);let eS=eu.i18n.length>0,eE=eu.darkMode||eS||eu.sidebar.toggleButton;return(0,tk.jsxs)(tk.Fragment,{children:[es&&eo?(0,tk.jsx)("div",{className:"max-xl:nx-hidden nx-h-0 nx-w-64 nx-shrink-0"}):null,(0,tk.jsx)("div",{className:(0,eC.Z)("motion-reduce:nx-transition-none [transition:background-color_1.5s_ease]",ec?"nx-fixed nx-inset-0 nx-z-10 nx-bg-black/80 dark:nx-bg-black/60":"nx-bg-transparent"),onClick:()=>ed(!1)}),(0,tk.jsxs)("aside",{className:(0,eC.Z)("nextra-sidebar-container nx-flex nx-flex-col","md:nx-top-16 md:nx-shrink-0 motion-reduce:nx-transform-none","nx-transform-gpu nx-transition-all nx-ease-in-out","print:nx-hidden",em?"md:nx-w-64":"md:nx-w-20",eo?"md:nx-hidden":"md:nx-sticky md:nx-self-start",ec?"max-md:[transform:translate3d(0,0,0)]":"max-md:[transform:translate3d(0,-100%,0)]"),ref:e_,children:[(0,tk.jsx)("div",{className:"nx-px-4 nx-pt-4 md:nx-hidden",children:renderComponent(eu.search.component,{directories:en})}),(0,tk.jsx)(rM.Provider,{value:ef,children:(0,tk.jsx)(rA.Provider,{value:ee=>{eh(ee)},children:(0,tk.jsxs)("div",{className:(0,eC.Z)("nx-overflow-y-auto nx-overflow-x-hidden","nx-p-4 nx-grow md:nx-h-[calc(100vh-var(--nextra-navbar-height)-var(--nextra-menu-height))]",em?"nextra-scrollbar":"no-scrollbar"),ref:eb,children:[(!eo||!em)&&(0,tk.jsx)(Collapse,{isOpen:em,horizontal:!0,children:(0,tk.jsx)(Menu2,{className:"nextra-menu-desktop max-md:nx-hidden",directories:ee,anchors:eu.toc.float?[]:ey,onlyCurrentDocs:!0})}),eT&&window.innerWidth<768&&(0,tk.jsx)(Menu2,{className:"nextra-menu-mobile md:nx-hidden",directories:er,anchors:ey})]})})}),eE&&(0,tk.jsxs)("div",{className:(0,eC.Z)("nx-sticky nx-bottom-0","nx-bg-white dark:nx-bg-dark","nx-mx-4 nx-py-4 nx-shadow-[0_-12px_16px_#fff]","nx-flex nx-items-center nx-gap-2","dark:nx-border-neutral-800 dark:nx-shadow-[0_-12px_16px_#111]","contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-shadow-none",em?(0,eC.Z)(eS&&"nx-justify-end","nx-border-t"):"nx-py-4 nx-flex-wrap nx-justify-center"),"data-toggle-animation":eg?em?"show":"hide":"off",children:[(0,tk.jsx)(LocaleSwitch,{lite:!em,className:(0,eC.Z)(em?"nx-grow":"max-md:nx-grow")}),eu.darkMode&&(0,tk.jsx)("div",{className:em&&!eS?"nx-grow nx-flex nx-flex-col":"",children:renderComponent(eu.themeSwitch.component,{lite:!em||eS})}),eu.sidebar.toggleButton&&(0,tk.jsx)("button",{title:em?"Hide sidebar":"Show sidebar",className:"max-md:nx-hidden nx-h-7 nx-rounded-md nx-transition-colors nx-text-gray-600 dark:nx-text-gray-400 nx-px-2 hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",onClick:()=>{ex(!em),ev(!0)},children:(0,tk.jsx)(eO.Qq,{isOpen:em})})]})]})]})}var rz="reach-skip-nav",rV="Skip to content";(0,ek.forwardRef)(function(ee,en){var er=ee,{className:eo,id:ei,label:es=rV,styled:eu}=er,ec=__objRest(er,["className","id","label","styled"]);let ed=void 0===eo?eu?(0,eC.Z)("nx-sr-only","focus:nx-not-sr-only focus:nx-fixed focus:nx-z-50 focus:nx-m-3 focus:nx-ml-4 focus:nx-h-[calc(var(--nextra-navbar-height)-1.5rem)] focus:nx-rounded-lg focus:nx-border focus:nx-px-3 focus:nx-py-2 focus:nx-align-middle focus:nx-text-sm focus:nx-font-bold","focus:nx-text-gray-900 focus:dark:nx-text-gray-100","focus:nx-bg-white focus:dark:nx-bg-neutral-900","focus:nx-border-neutral-400 focus:dark:nx-border-neutral-800"):"":eo;return(0,tk.jsx)("a",__spreadProps(__spreadValues({},ec),{ref:en,href:`#${ei||rz}`,className:ed,"data-reach-skip-link":"",children:es}))}).displayName="SkipNavLink";var rU=(0,ek.forwardRef)(function(ee,en){var er=ee,{id:eo}=er,ei=__objRest(er,["id"]);return(0,tk.jsx)("div",__spreadProps(__spreadValues({},ei),{ref:en,id:eo||rz}))});rU.displayName="SkipNavContent";var r$=ty.strictObject({light:ty.string(),dark:ty.string(),system:ty.string()});function ThemeSwitch({lite:ee,className:en}){let{setTheme:er,resolvedTheme:eo,theme:ei=""}=y(),es=useMounted(),eu=useConfig().themeSwitch,ec=es&&"dark"===eo?eO.kL:eO.NW,ed="function"==typeof eu.useOptions?eu.useOptions():eu.useOptions;return(0,tk.jsx)(Select,{className:en,title:"Change theme",options:[{key:"light",name:ed.light},{key:"dark",name:ed.dark},{key:"system",name:ed.system}],onChange:ee=>{er(ee.key)},selected:{key:ei,name:(0,tk.jsxs)("div",{className:"nx-flex nx-items-center nx-gap-2 nx-capitalize",children:[(0,tk.jsx)(ec,{}),(0,tk.jsx)("span",{className:ee?"md:nx-hidden":"",children:es?ed[ei]:ed.light})]})}})}function scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}function BackToTop({className:ee}){let en=(0,ek.useRef)(null);return(0,ek.useEffect)(()=>{function toggleVisible(){var ee;let{scrollTop:er}=document.documentElement;null==(ee=en.current)||ee.classList.toggle("nx-opacity-0",er<300)}return window.addEventListener("scroll",toggleVisible),()=>{window.removeEventListener("scroll",toggleVisible)}},[]),(0,tk.jsxs)("button",{ref:en,"aria-hidden":"true",onClick:scrollToTop,className:(0,eC.Z)("nx-flex nx-items-center nx-gap-1.5 nx-transition nx-opacity-0",ee),children:["Scroll to top",(0,tk.jsx)(eO.LZ,{className:"-nx-rotate-90 nx-w-3.5 nx-h-3.5 nx-border nx-rounded-full nx-border-current"})]})}var rH=(0,eC.Z)("nx-text-xs nx-font-medium nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100","contrast-more:nx-text-gray-800 contrast-more:dark:nx-text-gray-50");function TOC({headings:ee,filePath:en}){var er;let eo=useActiveAnchor(),ei=useConfig(),es=(0,ek.useRef)(null),eu=(0,ek.useMemo)(()=>ee.filter(ee=>ee.depth>1),[ee]),ec=eu.length>0,ed=!!(ei.feedback.content||ei.editLink.component||ei.toc.extraContent),ep=null==(er=Object.entries(eo).find(([,{isActive:ee}])=>ee))?void 0:er[0];return(0,ek.useEffect)(()=>{var ee;if(!ep)return;let en=null==(ee=es.current)?void 0:ee.querySelector(`li > a[href="#${ep}"]`);en&&scroll_into_view_if_needed_dist_t(en,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:es.current})},[ep]),(0,tk.jsxs)("div",{ref:es,className:(0,eC.Z)("nextra-scrollbar nx-sticky nx-top-16 nx-overflow-y-auto nx-pr-4 nx-pt-6 nx-text-sm [hyphens:auto]","nx-max-h-[calc(100vh-var(--nextra-navbar-height)-env(safe-area-inset-bottom))] ltr:-nx-mr-4 rtl:-nx-ml-4"),children:[ec&&(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)("p",{className:"nx-mb-4 nx-font-semibold nx-tracking-tight",children:renderComponent(ei.toc.title)}),(0,tk.jsx)("ul",{children:eu.map(({id:ee,value:en,depth:er})=>{var es,eu,ec,ed;return(0,tk.jsx)("li",{className:"nx-my-2 nx-scroll-my-6 nx-scroll-py-6",children:(0,tk.jsx)("a",{href:`#${ee}`,className:(0,eC.Z)({2:"nx-font-semibold",3:"ltr:nx-pl-4 rtl:nx-pr-4",4:"ltr:nx-pl-8 rtl:nx-pr-8",5:"ltr:nx-pl-12 rtl:nx-pr-12",6:"ltr:nx-pl-16 rtl:nx-pr-16"}[er],"nx-inline-block",(null==(es=eo[ee])?void 0:es.isActive)?"nx-text-primary-600 nx-subpixel-antialiased contrast-more:!nx-text-primary-600":"nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-300","contrast-more:nx-text-gray-900 contrast-more:nx-underline contrast-more:dark:nx-text-gray-50 nx-w-full nx-break-words"),children:null!=(ed=null==(ec=(eu=ei.toc).headingComponent)?void 0:ec.call(eu,{id:ee,children:en}))?ed:en})},ee)})})]}),ed&&(0,tk.jsxs)("div",{className:(0,eC.Z)(ec&&"nx-mt-8 nx-border-t nx-bg-white nx-pt-8 nx-shadow-[0_-12px_16px_white] dark:nx-bg-dark dark:nx-shadow-[0_-12px_16px_#111]","nx-sticky nx-bottom-0 nx-flex nx-flex-col nx-items-start nx-gap-2 nx-pb-8 dark:nx-border-neutral-800","contrast-more:nx-border-t contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-border-neutral-400"),children:[ei.feedback.content?(0,tk.jsx)(rS,{className:rH,href:ei.feedback.useLink(),newWindow:!0,children:renderComponent(ei.feedback.content)}):null,renderComponent(ei.editLink.component,{filePath:en,className:rH,children:renderComponent(ei.editLink.text)}),renderComponent(ei.toc.extraContent),ei.toc.backToTop&&(0,tk.jsx)(BackToTop,{className:rH})]})]})}function MatchSorterSearch({className:ee,directories:en}){let[er,eo]=(0,ek.useState)(""),ei=(0,ek.useMemo)(()=>er?matchSorter(en,er,{keys:["title"]}).map(({route:ee,title:en})=>({id:ee+en,route:ee,children:(0,tk.jsx)(rE,{value:en,match:er})})):[],[er,en]);return(0,tk.jsx)(Search,{value:er,onChange:eo,className:ee,overlayClassName:"nx-w-full",results:ei})}var rB="en-US",rW="undefined"!=typeof window;function isReactNode(ee){return null==ee||"string"==typeof ee||isFunction(ee)||(0,ek.isValidElement)(ee)}function isFunction(ee){return"function"==typeof ee}var rG=ty.array(ty.strictObject({direction:ty.enum(["ltr","rtl"]).optional(),locale:ty.string(),text:ty.string()})),rK=[isReactNode,{message:"Must be React.ReactNode or React.FC"}],rq=[isFunction,{message:"Must be React.FC"}];ty.strictObject({banner:ty.strictObject({dismissible:ty.boolean(),key:ty.string(),text:ty.custom(...rK).optional()}),chat:ty.strictObject({icon:ty.custom(...rK),link:ty.string().startsWith("https://").optional()}),components:ty.record(ty.custom(...rq)).optional(),darkMode:ty.boolean(),direction:ty.enum(["ltr","rtl"]),docsRepositoryBase:ty.string().startsWith("https://"),editLink:ty.strictObject({component:ty.custom(...rq),text:ty.custom(...rK)}),faviconGlyph:ty.string().optional(),feedback:ty.strictObject({content:ty.custom(...rK),labels:ty.string(),useLink:ty.function().returns(ty.string())}),footer:ty.strictObject({component:ty.custom(...rK),text:ty.custom(...rK)}),gitTimestamp:ty.custom(...rK),head:ty.custom(...rK),i18n:rG,logo:ty.custom(...rK),logoLink:ty.boolean().or(ty.string()),main:ty.custom(...rq).optional(),navbar:ty.strictObject({component:ty.custom(...rK),extraContent:ty.custom(...rK).optional()}),navigation:ty.boolean().or(ty.strictObject({next:ty.boolean(),prev:ty.boolean()})),nextThemes:ty.strictObject({defaultTheme:ty.string(),forcedTheme:ty.string().optional(),storageKey:ty.string()}),notFound:ty.strictObject({content:ty.custom(...rK),labels:ty.string()}),primaryHue:ty.number().or(ty.strictObject({dark:ty.number(),light:ty.number()})),primarySaturation:ty.number().or(ty.strictObject({dark:ty.number(),light:ty.number()})),project:ty.strictObject({icon:ty.custom(...rK),link:ty.string().startsWith("https://").optional()}),search:ty.strictObject({component:ty.custom(...rK),emptyResult:ty.custom(...rK),error:ty.string().or(ty.function().returns(ty.string())),loading:ty.custom(...rK),placeholder:ty.string().or(ty.function().returns(ty.string()))}),serverSideError:ty.strictObject({content:ty.custom(...rK),labels:ty.string()}),sidebar:ty.strictObject({autoCollapse:ty.boolean().optional(),defaultMenuCollapseLevel:ty.number().min(1).int(),titleComponent:ty.custom(...rK),toggleButton:ty.boolean()}),themeSwitch:ty.strictObject({component:ty.custom(...rK),useOptions:r$.or(ty.function().returns(r$))}),toc:ty.strictObject({backToTop:ty.boolean(),component:ty.custom(...rK),extraContent:ty.custom(...rK),float:ty.boolean(),headingComponent:ty.custom(...rq).optional(),title:ty.custom(...rK)}),useNextSeoProps:ty.custom(isFunction)}).deepPartial().extend({i18n:rG.optional()});var rX={"en-US":"Loading",fr:"Сhargement",ru:"Загрузка","zh-CN":"正在加载"},rY={"en-US":"Search documentation",fr:"Rechercher documents",ru:"Поиск документации","zh-CN":"搜索文档"},rQ={banner:{dismissible:!0,key:"nextra-banner"},chat:{icon:(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)(eO.D7,{}),(0,tk.jsx)("span",{className:"nx-sr-only",children:"Discord"})]})},darkMode:!0,direction:"ltr",docsRepositoryBase:"https://github.com/shuding/nextra",editLink:{component:function({className:ee,filePath:en,children:er}){let eo=useGitEditUrl(en);return eo?(0,tk.jsx)(rS,{className:ee,href:eo,children:er}):null},text:"Edit this page"},feedback:{content:"Question? Give us feedback →",labels:"feedback",useLink(){let ee=useConfig();return getGitIssueUrl({labels:ee.feedback.labels,repository:ee.docsRepositoryBase,title:`Feedback for \u201C${ee.title}\u201D`})}},footer:{component:Footer,text:`MIT ${new Date().getFullYear()} \xa9 Nextra.`},gitTimestamp:function({timestamp:ee}){let{locale:en=rB}=(0,ew.useRouter)();return(0,tk.jsxs)(tk.Fragment,{children:["Last updated on"," ",(0,tk.jsx)("time",{dateTime:ee.toISOString(),children:ee.toLocaleDateString(en,{day:"numeric",month:"long",year:"numeric"})})]})},head:(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)("meta",{name:"msapplication-TileColor",content:"#fff"}),(0,tk.jsx)("meta",{httpEquiv:"Content-Language",content:"en"}),(0,tk.jsx)("meta",{name:"description",content:"Nextra: the next docs builder"}),(0,tk.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,tk.jsx)("meta",{name:"twitter:site",content:"@shuding_"}),(0,tk.jsx)("meta",{property:"og:title",content:"Nextra: the next docs builder"}),(0,tk.jsx)("meta",{property:"og:description",content:"Nextra: the next docs builder"}),(0,tk.jsx)("meta",{name:"apple-mobile-web-app-title",content:"Nextra"})]}),i18n:[],logo:(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)("span",{className:"nx-font-extrabold",children:"Nextra"}),(0,tk.jsx)("span",{className:"nx-ml-2 nx-hidden nx-font-normal nx-text-gray-600 md:nx-inline",children:"The Next Docs Builder"})]}),logoLink:!0,navbar:{component:Navbar},navigation:!0,nextThemes:{defaultTheme:"system",storageKey:"theme"},notFound:{content:"Submit an issue about broken link →",labels:"bug"},primaryHue:{dark:204,light:212},primarySaturation:{dark:100,light:100},project:{icon:(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)(eO.fy,{}),(0,tk.jsx)("span",{className:"nx-sr-only",children:"GitHub"})]})},search:{component:function({className:ee,directories:en}){let er=useConfig();return er.flexsearch?(0,tk.jsx)(Flexsearch,{className:ee}):(0,tk.jsx)(MatchSorterSearch,{className:ee,directories:en})},emptyResult:(0,tk.jsx)("span",{className:"nx-block nx-select-none nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:"No results found."}),error:"Failed to load search index.",loading:function(){let{locale:ee,defaultLocale:en=rB}=(0,ew.useRouter)(),er=ee&&rX[ee]||rX[en];return(0,tk.jsxs)(tk.Fragment,{children:[er,"…"]})},placeholder:function(){let{locale:ee,defaultLocale:en=rB}=(0,ew.useRouter)(),er=ee&&rY[ee]||rY[en];return`${er}\u2026`}},serverSideError:{content:"Submit an issue about error in url →",labels:"bug"},sidebar:{defaultMenuCollapseLevel:2,titleComponent:({title:ee})=>(0,tk.jsx)(tk.Fragment,{children:ee}),toggleButton:!1},themeSwitch:{component:ThemeSwitch,useOptions(){let{locale:ee}=(0,ew.useRouter)();return"zh-CN"===ee?{dark:"深色主题",light:"浅色主题",system:"系统默认"}:{dark:"Dark",light:"Light",system:"System"}}},toc:{backToTop:!1,component:TOC,float:!0,title:"On This Page"},useNextSeoProps:()=>({titleTemplate:"%s – Nextra"})},rJ=Object.entries(rQ).map(([ee,en])=>{let er=en&&"object"==typeof en&&!Array.isArray(en)&&!(0,ek.isValidElement)(en);if(er)return ee}).filter(Boolean);if(rW){let ee;let addResizingClass=()=>{document.body.classList.add("resizing"),clearTimeout(ee),ee=setTimeout(()=>{document.body.classList.remove("resizing")},200)};window.addEventListener("resize",addResizingClass)}function HeadingLink(ee){var en=ee,{tag:er,context:eo,children:ei,id:es,className:eu}=en,ec=__objRest(en,["tag","context","children","id","className"]);let ed=useSetActiveAnchor(),ep=useSlugs(),ef=useIntersectionObserver(),eh=(0,ek.useRef)(null);return(0,ek.useEffect)(()=>{if(!es)return;let ee=eh.current;if(ee)return ep.set(ee,[es,eo.index+=1]),null==ef||ef.observe(ee),()=>{null==ef||ef.disconnect(),ep.delete(ee),ed(ee=>{let en=__spreadValues({},ee);return delete en[es],en})}},[es,eo,ep,ef,ed]),(0,tk.jsxs)(er,__spreadProps(__spreadValues({className:"sr-only"===eu?"nx-sr-only":(0,eC.Z)("nx-font-semibold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100",{h2:"nx-mt-10 nx-border-b nx-pb-1 nx-text-3xl nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400",h3:"nx-mt-8 nx-text-2xl",h4:"nx-mt-8 nx-text-xl",h5:"nx-mt-8 nx-text-lg",h6:"nx-mt-8 nx-text-base"}[er])},ec),{children:[ei,es&&(0,tk.jsx)("a",{href:`#${es}`,id:es,className:"subheading-anchor","aria-label":"Permalink for this section",ref:eh})]}))}var findSummary=ee=>{let en=null,er=[];return ek.Children.forEach(ee,(ee,eo)=>{var ei;if(ee&&ee.type===Summary){en||(en=ee);return}let es=ee;if(!en&&ee&&"object"==typeof ee&&ee.type!==Details&&"props"in ee&&ee.props){let er=findSummary(ee.props.children);en=er[0],es=(0,ek.cloneElement)(ee,__spreadProps(__spreadValues({},ee.props),{children:(null==(ei=er[1])?void 0:ei.length)?er[1]:void 0,key:eo}))}er.push(es)}),[en,er]},Details=ee=>{var en=ee,{children:er,open:eo}=en,ei=__objRest(en,["children","open"]);let[es,eu]=(0,ek.useState)(!!eo),[ec,ed]=findSummary(er),[ep,ef]=(0,ek.useState)(es);return(0,ek.useEffect)(()=>{if(es)ef(!0);else{let ee=setTimeout(()=>ef(es),500);return()=>clearTimeout(ee)}},[es]),(0,tk.jsxs)("details",__spreadProps(__spreadValues(__spreadProps(__spreadValues({className:"nx-my-4 nx-rounded nx-border nx-border-gray-200 nx-bg-white nx-p-2 nx-shadow-sm first:nx-mt-0 dark:nx-border-neutral-800 dark:nx-bg-neutral-900"},ei),{open:ep}),es&&{"data-expanded":!0}),{children:[(0,tk.jsx)(rC,{value:eu,children:ec}),(0,tk.jsx)(Collapse,{isOpen:es,children:ed})]}))},Summary=ee=>{let en=useDetails();return(0,tk.jsx)("summary",__spreadProps(__spreadValues({className:(0,eC.Z)("nx-flex nx-items-center nx-cursor-pointer nx-list-none nx-p-1 nx-transition-colors hover:nx-bg-gray-100 dark:hover:nx-bg-neutral-800","before:nx-mr-1 before:nx-inline-block before:nx-transition-transform before:nx-content-[''] dark:before:nx-invert before:nx-shrink-0","rtl:before:nx-rotate-180 [[data-expanded]>&]:before:nx-rotate-90")},ee),{onClick:ee=>{ee.preventDefault(),en(ee=>!ee)}}))},r0=/https?:\/\//,Link=ee=>{var en=ee,{href:er="",className:eo}=en,ei=__objRest(en,["href","className"]);return(0,tk.jsx)(rS,__spreadValues({href:er,newWindow:r0.test(er),className:(0,eC.Z)("nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font]",eo)},ei))},A=ee=>{var en=ee,{href:er=""}=en,eo=__objRest(en,["href"]);return(0,tk.jsx)(rS,__spreadValues({href:er,newWindow:r0.test(er)},eo))},getComponents=({isRawLayout:ee,components:en})=>{if(ee)return{a:A};let er={index:0};return __spreadValues({h1:ee=>(0,tk.jsx)("h1",__spreadValues({className:"nx-mt-2 nx-text-4xl nx-font-bold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100"},ee)),h2:ee=>(0,tk.jsx)(HeadingLink,__spreadValues({tag:"h2",context:er},ee)),h3:ee=>(0,tk.jsx)(HeadingLink,__spreadValues({tag:"h3",context:er},ee)),h4:ee=>(0,tk.jsx)(HeadingLink,__spreadValues({tag:"h4",context:er},ee)),h5:ee=>(0,tk.jsx)(HeadingLink,__spreadValues({tag:"h5",context:er},ee)),h6:ee=>(0,tk.jsx)(HeadingLink,__spreadValues({tag:"h6",context:er},ee)),ul:ee=>(0,tk.jsx)("ul",__spreadValues({className:"nx-mt-6 nx-list-disc first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},ee)),ol:ee=>(0,tk.jsx)("ol",__spreadValues({className:"nx-mt-6 nx-list-decimal first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},ee)),li:ee=>(0,tk.jsx)("li",__spreadValues({className:"nx-my-2"},ee)),blockquote:ee=>(0,tk.jsx)("blockquote",__spreadValues({className:(0,eC.Z)("nx-mt-6 nx-border-gray-300 nx-italic nx-text-gray-700 dark:nx-border-gray-700 dark:nx-text-gray-400","first:nx-mt-0 ltr:nx-border-l-2 ltr:nx-pl-6 rtl:nx-border-r-2 rtl:nx-pr-6")},ee)),hr:ee=>(0,tk.jsx)("hr",__spreadValues({className:"nx-my-8 nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400"},ee)),a:Link,table:ee=>(0,tk.jsx)(rl.iA,__spreadValues({className:"nextra-scrollbar nx-mt-6 nx-p-0 first:nx-mt-0"},ee)),p:ee=>(0,tk.jsx)("p",__spreadValues({className:"nx-mt-6 nx-leading-7 first:nx-mt-0"},ee)),tr:rl.Tr,th:rl.Th,td:rl.Td,details:Details,summary:Summary,pre:rl.SU,code:rl.EK},en)},r1={toc:(0,eC.Z)("nextra-toc nx-order-last nx-hidden nx-w-64 nx-shrink-0 xl:nx-block print:nx-hidden"),main:(0,eC.Z)("nx-w-full nx-break-words")},Body=({themeContext:ee,breadcrumb:en,timestamp:er,navigation:eo,children:ei})=>{var es;let eu=useConfig(),ec=useMounted();if("raw"===ee.layout)return(0,tk.jsx)("div",{className:r1.main,children:ei});let ed=ee.timestamp&&eu.gitTimestamp&&er?new Date(er):null,ep=ec&&ed?(0,tk.jsx)("div",{className:"nx-mt-12 nx-mb-8 nx-block nx-text-xs nx-text-gray-500 ltr:nx-text-right rtl:nx-text-left dark:nx-text-gray-400",children:renderComponent(eu.gitTimestamp,{timestamp:ed})}):(0,tk.jsx)("div",{className:"nx-mt-16"}),ef=(0,tk.jsxs)(tk.Fragment,{children:[ei,ep,eo]}),eh=(null==(es=eu.main)?void 0:es.call(eu,{children:ef}))||ef;return"full"===ee.layout?(0,tk.jsx)("article",{className:(0,eC.Z)(r1.main,"nextra-content nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:eh}):(0,tk.jsx)("article",{className:(0,eC.Z)(r1.main,"nextra-content nx-flex nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-min-w-0 nx-justify-center nx-pb-8 nx-pr-[calc(env(safe-area-inset-right)-1.5rem)]","article"===ee.typesetting&&"nextra-body-typesetting-article"),children:(0,tk.jsxs)("main",{className:"nx-w-full nx-min-w-0 nx-max-w-6xl nx-px-6 nx-pt-4 md:nx-px-12",children:[en,eh]})})},InnerLayout=({filePath:ee,pageMap:en,frontMatter:er,headings:eo,timestamp:ei,children:es})=>{let eu=useConfig(),{locale:ec=rB,defaultLocale:ed}=(0,ew.useRouter)(),ep=useFSRoute(),{activeType:ef,activeIndex:eh,activeThemeContext:em,activePath:ex,topLevelNavbarItems:eg,docsDirectories:ev,flatDirectories:ey,flatDocsDirectories:eb,directories:e_}=(0,ek.useMemo)(()=>normalizePages({list:en,locale:ec,defaultLocale:ed,route:ep}),[en,ec,ed,ep]),eT=__spreadValues(__spreadValues({},em),er),eS=!eT.sidebar||"raw"===eT.layout||"page"===ef,eO="page"!==ef&&eT.toc&&"default"===eT.layout?(0,tk.jsx)("nav",{className:(0,eC.Z)(r1.toc,"nx-px-4"),"aria-label":"table of contents",children:renderComponent(eu.toc.component,{headings:eu.toc.float?eo:[],filePath:ee})}):"full"!==eT.layout&&"raw"!==eT.layout&&(0,tk.jsx)("nav",{className:r1.toc,"aria-label":"table of contents"}),ej=eu.i18n.find(ee=>ee.locale===ec),eI=ej?"rtl"===ej.direction:"rtl"===eu.direction,eP=eI?"rtl":"ltr";return(0,tk.jsxs)("div",{dir:eP,children:[(0,tk.jsx)("script",{dangerouslySetInnerHTML:{__html:`document.documentElement.setAttribute('dir','${eP}')`}}),(0,tk.jsx)(dist_Head,{}),(0,tk.jsx)(Banner,{}),eT.navbar&&renderComponent(eu.navbar.component,{flatDirectories:ey,items:eg}),(0,tk.jsx)("div",{className:(0,eC.Z)("nx-mx-auto nx-flex","raw"!==eT.layout&&"nx-max-w-[90rem]"),children:(0,tk.jsxs)(ActiveAnchorProvider,{children:[(0,tk.jsx)(Sidebar,{docsDirectories:ev,flatDirectories:ey,fullDirectories:e_,headings:eo,asPopover:eS,includePlaceholder:"default"===eT.layout}),eO,(0,tk.jsx)(rU,{}),(0,tk.jsx)(Body,{themeContext:eT,breadcrumb:"page"!==ef&&eT.breadcrumb?(0,tk.jsx)(Breadcrumb,{activePath:ex}):null,timestamp:ei,navigation:"page"!==ef&&eT.pagination?(0,tk.jsx)(NavLinks,{flatDirectories:eb,currentIndex:eh}):null,children:(0,tk.jsx)(eE.Z,{components:getComponents({isRawLayout:"raw"===eT.layout,components:eu.components}),children:es})})]})}),eT.footer&&renderComponent(eu.footer.component,{menu:eS})]})};function Layout(ee){var en=ee,{children:er}=en,eo=__objRest(en,["children"]);return(0,tk.jsx)(ConfigProvider,{value:eo,children:(0,tk.jsx)(InnerLayout,__spreadProps(__spreadValues({},eo.pageOpts),{children:er}))})}},9013:function(ee,en,er){"use strict";er.d(en,{UW:function(){return Callout},EK:function(){return Code},SU:function(){return Pre},Rg:function(){return Steps},OK:function(){return Tab},iA:function(){return Table},mQ:function(){return e$},Td:function(){return Td},Th:function(){return Th},Tr:function(){return Tr}});var eo,ei,es,eu=er(512),ec=er(5893),Button=({children:ee,className:en,...er})=>(0,ec.jsx)("button",{className:(0,eu.Z)("nextra-button nx-transition-all active:nx-opacity-50","nx-bg-primary-700/5 nx-border nx-border-black/5 nx-text-gray-600 hover:nx-text-gray-900 nx-rounded-md nx-p-1.5","dark:nx-bg-primary-300/10 dark:nx-border-white/10 dark:nx-text-gray-400 dark:hover:nx-text-gray-50",en),...er,children:ee}),ed=er(4861),ep={default:"\uD83D\uDCA1",error:"\uD83D\uDEAB",info:(0,ec.jsx)(ed.AV,{className:"nx-mt-1"}),warning:"⚠️"},ef={default:(0,eu.Z)("nx-border-orange-100 nx-bg-orange-50 nx-text-orange-800 dark:nx-border-orange-400/30 dark:nx-bg-orange-400/20 dark:nx-text-orange-300"),error:(0,eu.Z)("nx-border-red-200 nx-bg-red-100 nx-text-red-900 dark:nx-border-red-200/30 dark:nx-bg-red-900/30 dark:nx-text-red-200"),info:(0,eu.Z)("nx-border-blue-200 nx-bg-blue-100 nx-text-blue-900 dark:nx-border-blue-200/30 dark:nx-bg-blue-900/30 dark:nx-text-blue-200"),warning:(0,eu.Z)("nx-border-yellow-100 nx-bg-yellow-50 nx-text-yellow-900 dark:nx-border-yellow-200/30 dark:nx-bg-yellow-700/30 dark:nx-text-yellow-200")};function Callout({children:ee,type:en="default",emoji:er=ep[en]}){return(0,ec.jsxs)("div",{className:(0,eu.Z)("nextra-callout nx-overflow-x-auto nx-mt-6 nx-flex nx-rounded-lg nx-border nx-py-2 ltr:nx-pr-4 rtl:nx-pl-4","contrast-more:nx-border-current contrast-more:dark:nx-border-current",ef[en]),children:[(0,ec.jsx)("div",{className:"nx-select-none nx-text-xl ltr:nx-pl-3 ltr:nx-pr-2 rtl:nx-pr-3 rtl:nx-pl-2",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},children:er}),(0,ec.jsx)("div",{className:"nx-w-full nx-min-w-0 nx-leading-7",children:ee})]})}var eh=er(7294),CopyToClipboard=({getValue:ee,...en})=>{let[er,eo]=(0,eh.useState)(!1);(0,eh.useEffect)(()=>{if(!er)return;let ee=setTimeout(()=>{eo(!1)},2e3);return()=>{clearTimeout(ee)}},[er]);let ei=(0,eh.useCallback)(async()=>{eo(!0),navigator?.clipboard||console.error("Access to clipboard rejected!");try{await navigator.clipboard.writeText(ee())}catch{console.error("Failed to copy!")}},[ee]),es=er?ed.nQ:ed.TI;return(0,ec.jsx)(Button,{onClick:ei,title:"Copy code",tabIndex:0,...en,children:(0,ec.jsx)(es,{className:"nextra-copy-icon nx-pointer-events-none nx-h-4 nx-w-4"})})},Code=({children:ee,className:en,...er})=>{let eo="data-line-numbers"in er;return(0,ec.jsx)("code",{className:(0,eu.Z)("nx-border-black nx-border-opacity-[0.04] nx-bg-opacity-[0.03] nx-bg-black nx-break-words nx-rounded-md nx-border nx-py-0.5 nx-px-[.25em] nx-text-[.9em]","dark:nx-border-white/10 dark:nx-bg-white/10",eo&&"[counter-reset:line]",en),dir:"ltr",...er,children:ee})},Pre=({children:ee,className:en,hasCopyCode:er,filename:eo,...ei})=>{let es=(0,eh.useRef)(null),ep=(0,eh.useCallback)(()=>{let ee=document.documentElement.dataset,en="nextraWordWrap"in ee;en?delete ee.nextraWordWrap:ee.nextraWordWrap=""},[]);return(0,ec.jsxs)("div",{className:"nextra-code-block nx-relative nx-mt-6 first:nx-mt-0",children:[eo&&(0,ec.jsx)("div",{className:"nx-absolute nx-top-0 nx-z-[1] nx-w-full nx-truncate nx-rounded-t-xl nx-bg-primary-700/5 nx-py-2 nx-px-4 nx-text-xs nx-text-gray-700 dark:nx-bg-primary-300/10 dark:nx-text-gray-200",children:eo}),(0,ec.jsx)("pre",{className:(0,eu.Z)("nx-bg-primary-700/5 nx-mb-4 nx-overflow-x-auto nx-rounded-xl nx-subpixel-antialiased dark:nx-bg-primary-300/10 nx-text-[.9em]","contrast-more:nx-border contrast-more:nx-border-primary-900/20 contrast-more:nx-contrast-150 contrast-more:dark:nx-border-primary-100/40",eo?"nx-pt-12 nx-pb-4":"nx-py-4",en),ref:es,...ei,children:ee}),(0,ec.jsxs)("div",{className:(0,eu.Z)("nx-opacity-0 nx-transition [div:hover>&]:nx-opacity-100 focus-within:nx-opacity-100","nx-flex nx-gap-1 nx-absolute nx-m-[11px] nx-right-0",eo?"nx-top-8":"nx-top-0"),children:[(0,ec.jsx)(Button,{onClick:ep,className:"md:nx-hidden",title:"Toggle word wrap",children:(0,ec.jsx)(ed.NK,{className:"nx-pointer-events-none nx-h-4 nx-w-4"})}),er&&(0,ec.jsx)(CopyToClipboard,{getValue:()=>es.current?.querySelector("code")?.textContent||""})]})]})};function Steps({children:ee,className:en,...er}){return(0,ec.jsx)("div",{className:(0,eu.Z)("nextra-steps nx-ml-4 nx-mb-12 nx-border-l nx-border-gray-200 nx-pl-6","dark:nx-border-neutral-800 [counter-reset:step]",en),...er,children:ee})}var em=er(2351),ex=er(9946),eg=er(2984),ev=er(1363),ey=er(4575),eb=er(6723),e_=er(3784),ew=er(4157),ek=er(3855),eC=er(4879),eT=er(6045);function focus_sentinel_A({onFocus:ee}){let[en,er]=(0,eh.useState)(!0),eo=(0,eC.t)();return en?eh.createElement(eT._,{as:"button",type:"button",features:eT.A.Focusable,onFocus:en=>{en.preventDefault();let ei,es=50;function t(){if(es--<=0){ei&&cancelAnimationFrame(ei);return}if(ee()){if(cancelAnimationFrame(ei),!eo.current)return;er(!1);return}ei=requestAnimationFrame(t)}ei=requestAnimationFrame(t)}}):null}var eS=er(3781),eE=er(1021),eO=er(5466);let ej=eh.createContext(null);function a(){return{groups:new Map,get(ee,en){var er;let eo=this.groups.get(ee);eo||(eo=new Map,this.groups.set(ee,eo));let ei=null!=(er=eo.get(en))?er:0;function i(){let ee=eo.get(en);ee>1?eo.set(en,ee-1):eo.delete(en)}return eo.set(en,ei+1),[Array.from(eo.keys()).indexOf(en),i]}}}function stable_collection_C({children:ee}){let en=eh.useRef(a());return eh.createElement(ej.Provider,{value:en},ee)}function stable_collection_d(ee){let en=eh.useContext(ej);if(!en)throw Error("You must wrap your component in a ");let er=f(),[eo,ei]=en.current.get(ee,er);return eh.useEffect(()=>ei,[]),eo}function f(){var ee,en,er;let eo=null!=(er=null==(en=null==(ee=eh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:ee.ReactCurrentOwner)?void 0:en.current)?er:null;if(!eo)return Symbol();let ei=[],es=eo;for(;es;)ei.push(es.index),es=es.return;return"$."+ei.join(".")}var eI=((eo=eI||{})[eo.Forwards=0]="Forwards",eo[eo.Backwards=1]="Backwards",eo),eP=((ei=eP||{})[ei.Less=-1]="Less",ei[ei.Equal=0]="Equal",ei[ei.Greater=1]="Greater",ei),eR=((es=eR||{})[es.SetSelectedIndex=0]="SetSelectedIndex",es[es.RegisterTab=1]="RegisterTab",es[es.UnregisterTab=2]="UnregisterTab",es[es.RegisterPanel=3]="RegisterPanel",es[es.UnregisterPanel=4]="UnregisterPanel",es);let eN={0(ee,en){var er;let eo=(0,ey.z2)(ee.tabs,ee=>ee.current),ei=(0,ey.z2)(ee.panels,ee=>ee.current),es=eo.filter(ee=>{var en;return!(null!=(en=ee.current)&&en.hasAttribute("disabled"))}),eu={...ee,tabs:eo,panels:ei};if(en.index<0||en.index>eo.length-1){let er=(0,eg.E)(Math.sign(en.index-ee.selectedIndex),{[-1]:()=>1,0:()=>(0,eg.E)(Math.sign(en.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});return 0===es.length?eu:{...eu,selectedIndex:(0,eg.E)(er,{0:()=>eo.indexOf(es[0]),1:()=>eo.indexOf(es[es.length-1])})}}let ec=eo.slice(0,en.index),ed=[...eo.slice(en.index),...ec].find(ee=>es.includes(ee));if(!ed)return eu;let ep=null!=(er=eo.indexOf(ed))?er:ee.selectedIndex;return -1===ep&&(ep=ee.selectedIndex),{...eu,selectedIndex:ep}},1(ee,en){var er;if(ee.tabs.includes(en.tab))return ee;let eo=ee.tabs[ee.selectedIndex],ei=(0,ey.z2)([...ee.tabs,en.tab],ee=>ee.current),es=null!=(er=ei.indexOf(eo))?er:ee.selectedIndex;return -1===es&&(es=ee.selectedIndex),{...ee,tabs:ei,selectedIndex:es}},2:(ee,en)=>({...ee,tabs:ee.tabs.filter(ee=>ee!==en.tab)}),3:(ee,en)=>ee.panels.includes(en.panel)?ee:{...ee,panels:(0,ey.z2)([...ee.panels,en.panel],ee=>ee.current)},4:(ee,en)=>({...ee,panels:ee.panels.filter(ee=>ee!==en.panel)})},eZ=(0,eh.createContext)(null);function M(ee){let en=(0,eh.useContext)(eZ);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,M),en}return en}eZ.displayName="TabsDataContext";let eM=(0,eh.createContext)(null);function q(ee){let en=(0,eh.useContext)(eM);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,q),en}return en}function fe(ee,en){return(0,eg.E)(en.type,eN,ee,en)}eM.displayName="TabsActionsContext";let eA=eh.Fragment;function me(ee,en){let{defaultIndex:er=0,vertical:eo=!1,manual:ei=!1,onChange:es,selectedIndex:eu=null,...ec}=ee,ed=eo?"vertical":"horizontal",ep=ei?"manual":"auto",ef=null!==eu,ex=(0,e_.T)(en),[eg,ev]=(0,eh.useReducer)(fe,{selectedIndex:null!=eu?eu:er,tabs:[],panels:[]}),ew=(0,eh.useMemo)(()=>({selectedIndex:eg.selectedIndex}),[eg.selectedIndex]),eC=(0,ek.E)(es||(()=>{})),eT=(0,ek.E)(eg.tabs),eE=(0,eh.useMemo)(()=>({orientation:ed,activation:ep,...eg}),[ed,ep,eg]),eO=(0,eS.z)(ee=>(ev({type:1,tab:ee}),()=>ev({type:2,tab:ee}))),ej=(0,eS.z)(ee=>(ev({type:3,panel:ee}),()=>ev({type:4,panel:ee}))),eI=(0,eS.z)(ee=>{eP.current!==ee&&eC.current(ee),ef||ev({type:0,index:ee})}),eP=(0,ek.E)(ef?ee.selectedIndex:eg.selectedIndex),eR=(0,eh.useMemo)(()=>({registerTab:eO,registerPanel:ej,change:eI}),[]);(0,eb.e)(()=>{ev({type:0,index:null!=eu?eu:er})},[eu]),(0,eb.e)(()=>{if(void 0===eP.current||eg.tabs.length<=0)return;let ee=(0,ey.z2)(eg.tabs,ee=>ee.current);ee.some((ee,en)=>eg.tabs[en]!==ee)&&eI(ee.indexOf(eg.tabs[eP.current]))});let eN={ref:ex};return eh.createElement(stable_collection_C,null,eh.createElement(eM.Provider,{value:eR},eh.createElement(eZ.Provider,{value:eE},eE.tabs.length<=0&&eh.createElement(focus_sentinel_A,{onFocus:()=>{var ee,en;for(let er of eT.current)if((null==(ee=er.current)?void 0:ee.tabIndex)===0)return null==(en=er.current)||en.focus(),!0;return!1}}),(0,em.sY)({ourProps:eN,theirProps:ec,slot:ew,defaultTag:eA,name:"Tabs"}))))}let eL="div";function ge(ee,en){let{orientation:er,selectedIndex:eo}=M("Tab.List"),ei=(0,e_.T)(en);return(0,em.sY)({ourProps:{ref:ei,role:"tablist","aria-orientation":er},theirProps:ee,slot:{selectedIndex:eo},defaultTag:eL,name:"Tabs.List"})}let eD="button";function xe(ee,en){var er,eo;let ei=(0,ex.M)(),{id:es=`headlessui-tabs-tab-${ei}`,...eu}=ee,{orientation:ec,activation:ed,selectedIndex:ep,tabs:ef,panels:ek}=M("Tab"),eC=q("Tab"),eT=M("Tab"),ej=(0,eh.useRef)(null),eI=(0,e_.T)(ej,en);(0,eb.e)(()=>eC.registerTab(ej),[eC,ej]);let eP=stable_collection_d("tabs"),eR=ef.indexOf(ej);-1===eR&&(eR=eP);let eN=eR===ep,eZ=(0,eS.z)(ee=>{var en;let er=ee();if(er===ey.fE.Success&&"auto"===ed){let ee=null==(en=(0,eO.r)(ej))?void 0:en.activeElement,er=eT.tabs.findIndex(en=>en.current===ee);-1!==er&&eC.change(er)}return er}),eM=(0,eS.z)(ee=>{let en=ef.map(ee=>ee.current).filter(Boolean);if(ee.key===ev.R.Space||ee.key===ev.R.Enter){ee.preventDefault(),ee.stopPropagation(),eC.change(eR);return}switch(ee.key){case ev.R.Home:case ev.R.PageUp:return ee.preventDefault(),ee.stopPropagation(),eZ(()=>(0,ey.jA)(en,ey.TO.First));case ev.R.End:case ev.R.PageDown:return ee.preventDefault(),ee.stopPropagation(),eZ(()=>(0,ey.jA)(en,ey.TO.Last))}if(eZ(()=>(0,eg.E)(ec,{vertical:()=>ee.key===ev.R.ArrowUp?(0,ey.jA)(en,ey.TO.Previous|ey.TO.WrapAround):ee.key===ev.R.ArrowDown?(0,ey.jA)(en,ey.TO.Next|ey.TO.WrapAround):ey.fE.Error,horizontal:()=>ee.key===ev.R.ArrowLeft?(0,ey.jA)(en,ey.TO.Previous|ey.TO.WrapAround):ee.key===ev.R.ArrowRight?(0,ey.jA)(en,ey.TO.Next|ey.TO.WrapAround):ey.fE.Error}))===ey.fE.Success)return ee.preventDefault()}),eA=(0,eh.useRef)(!1),eL=(0,eS.z)(()=>{var ee;eA.current||(eA.current=!0,null==(ee=ej.current)||ee.focus(),eC.change(eR),(0,eE.Y)(()=>{eA.current=!1}))}),eF=(0,eS.z)(ee=>{ee.preventDefault()}),ez=(0,eh.useMemo)(()=>({selected:eN}),[eN]),eV={ref:eI,onKeyDown:eM,onMouseDown:eF,onClick:eL,id:es,role:"tab",type:(0,ew.f)(ee,ej),"aria-controls":null==(eo=null==(er=ek[eR])?void 0:er.current)?void 0:eo.id,"aria-selected":eN,tabIndex:eN?0:-1};return(0,em.sY)({ourProps:eV,theirProps:eu,slot:ez,defaultTag:eD,name:"Tabs.Tab"})}let eF="div";function Ae(ee,en){let{selectedIndex:er}=M("Tab.Panels"),eo=(0,e_.T)(en),ei=(0,eh.useMemo)(()=>({selectedIndex:er}),[er]);return(0,em.sY)({ourProps:{ref:eo},theirProps:ee,slot:ei,defaultTag:eF,name:"Tabs.Panels"})}let ez="div",eV=em.AN.RenderStrategy|em.AN.Static;function De(ee,en){var er,eo,ei,es;let eu=(0,ex.M)(),{id:ec=`headlessui-tabs-panel-${eu}`,tabIndex:ed=0,...ep}=ee,{selectedIndex:ef,tabs:eg,panels:ev}=M("Tab.Panel"),ey=q("Tab.Panel"),ew=(0,eh.useRef)(null),ek=(0,e_.T)(ew,en);(0,eb.e)(()=>ey.registerPanel(ew),[ey,ew]);let eC=stable_collection_d("panels"),eS=ev.indexOf(ew);-1===eS&&(eS=eC);let eE=eS===ef,eO=(0,eh.useMemo)(()=>({selected:eE}),[eE]),ej={ref:ek,id:ec,role:"tabpanel","aria-labelledby":null==(eo=null==(er=eg[eS])?void 0:er.current)?void 0:eo.id,tabIndex:eE?ed:-1};return eE||null!=(ei=ep.unmount)&&!ei||null!=(es=ep.static)&&es?(0,em.sY)({ourProps:ej,theirProps:ep,slot:eO,defaultTag:ez,features:eV,visible:eE,name:"Tabs.Panel"}):eh.createElement(eT._,{as:"span",...ej})}let eU=Object.assign((0,em.yV)(xe),{Group:(0,em.yV)(me),List:(0,em.yV)(ge),Panels:(0,em.yV)(Ae),Panel:(0,em.yV)(De)});function isTabObjectItem(ee){return!!ee&&"object"==typeof ee&&"label"in ee}function Tab({children:ee,...en}){return(0,ec.jsx)(eU.Panel,{...en,className:"nx-rounded nx-pt-6",children:ee})}var e$=Object.assign(function({items:ee,selectedIndex:en,defaultIndex:er=0,onChange:eo,children:ei,storageKey:es}){let[ed,ep]=(0,eh.useState)(er);(0,eh.useEffect)(()=>{void 0!==en&&ep(en)},[en]),(0,eh.useEffect)(()=>{if(!es)return;function fn(ee){ee.key===es&&ep(Number(ee.newValue))}let ee=Number(localStorage.getItem(es));return ep(Number.isNaN(ee)?0:ee),window.addEventListener("storage",fn),()=>{window.removeEventListener("storage",fn)}},[]);let ef=(0,eh.useCallback)(ee=>{if(es){let en=String(ee);localStorage.setItem(es,en),window.dispatchEvent(new StorageEvent("storage",{key:es,newValue:en}));return}ep(ee),eo?.(ee)},[]);return(0,ec.jsxs)(eU.Group,{selectedIndex:ed,defaultIndex:er,onChange:ef,children:[(0,ec.jsx)("div",{className:"nextra-scrollbar nx-overflow-x-auto nx-overflow-y-hidden nx-overscroll-x-contain",children:(0,ec.jsx)(eU.List,{className:"nx-mt-4 nx-flex nx-w-max nx-min-w-full nx-border-b nx-border-gray-200 nx-pb-px dark:nx-border-neutral-800",children:ee.map((ee,en)=>{let er=isTabObjectItem(ee)&&ee.disabled;return(0,ec.jsx)(eU,{disabled:er,className:({selected:ee})=>(0,eu.Z)("nx-mr-2 nx-rounded-t nx-p-2 nx-font-medium nx-leading-5 nx-transition-colors","-nx-mb-0.5 nx-select-none nx-border-b-2",ee?"nx-border-primary-500 nx-text-primary-600":"nx-border-transparent nx-text-gray-600 hover:nx-border-gray-200 hover:nx-text-black dark:nx-text-gray-200 dark:hover:nx-border-neutral-800 dark:hover:nx-text-white",er&&"nx-pointer-events-none nx-text-gray-400 dark:nx-text-neutral-600"),children:isTabObjectItem(ee)?ee.label:ee},en)})})}),(0,ec.jsx)(eU.Panels,{children:ei})]})},{displayName:"Tabs",Tab}),Td=({className:ee="",...en})=>(0,ec.jsx)("td",{className:(0,eu.Z)("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 dark:nx-border-gray-600",ee),...en}),Table=({className:ee="",...en})=>(0,ec.jsx)("table",{className:(0,eu.Z)("nx-block nx-overflow-x-scroll",ee),...en}),Th=({className:ee="",...en})=>(0,ec.jsx)("th",{className:(0,eu.Z)("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 nx-font-semibold dark:nx-border-gray-600",ee),...en}),Tr=({className:ee="",...en})=>(0,ec.jsx)("tr",{className:(0,eu.Z)("nx-m-0 nx-border-t nx-border-gray-300 nx-p-0 dark:nx-border-gray-600","even:nx-bg-gray-100 even:dark:nx-bg-gray-600/20",ee),...en}),eH=er(1664),eB=er.n(eH),eW={cards:(0,eu.Z)("nextra-cards nx-mt-4 nx-gap-4 nx-grid","nx-not-prose"),card:(0,eu.Z)("nextra-card nx-group nx-flex nx-flex-col nx-justify-start nx-overflow-hidden nx-rounded-lg nx-border nx-border-gray-200","nx-text-current nx-no-underline dark:nx-shadow-none","hover:nx-shadow-gray-100 dark:hover:nx-shadow-none nx-shadow-gray-100","active:nx-shadow-sm active:nx-shadow-gray-200","nx-transition-all nx-duration-200 hover:nx-border-gray-300"),title:(0,eu.Z)("nx-flex nx-font-semibold nx-items-start nx-gap-2 nx-p-4 nx-text-gray-700 hover:nx-text-gray-900")},eG=(0,ec.jsx)("span",{className:"nx-transition-transform nx-duration-75 group-hover:nx-translate-x-[2px]",children:"→"});Object.assign(function({children:ee,num:en=3,className:er,style:eo,...ei}){return(0,ec.jsx)("div",{className:(0,eu.Z)(eW.cards,er),...ei,style:{...eo,"--rows":en},children:ee})},{displayName:"Cards",Card:function({children:ee,title:en,icon:er,image:eo,arrow:ei,href:es,...ed}){let ep=ei?eG:null;return eo?(0,ec.jsxs)(eB(),{href:es,className:(0,eu.Z)(eW.card,"nx-bg-gray-100 nx-shadow dark:nx-border-neutral-700 dark:nx-bg-neutral-800 dark:nx-text-gray-50 hover:nx-shadow-lg dark:hover:nx-border-neutral-500 dark:hover:nx-bg-neutral-700"),...ed,children:[ee,(0,ec.jsxs)("span",{className:(0,eu.Z)(eW.title,"dark:nx-text-gray-300 dark:hover:nx-text-gray-100"),children:[er,(0,ec.jsxs)("span",{className:"nx-flex nx-gap-1",children:[en,ep]})]})]}):(0,ec.jsx)(eB(),{href:es,className:(0,eu.Z)(eW.card,"nx-bg-transparent nx-shadow-sm dark:nx-border-neutral-800 hover:nx-bg-slate-50 hover:nx-shadow-md dark:hover:nx-border-neutral-700 dark:hover:nx-bg-neutral-900"),...ed,children:(0,ec.jsxs)("span",{className:(0,eu.Z)(eW.title,"dark:nx-text-neutral-200 dark:hover:nx-text-neutral-50 nx-flex nx-items-center"),children:[er,en,ep]})})}});var eK=(0,eh.createContext)(0);function useIndent(){return(0,eh.useContext)(eK)}function Tree({children:ee}){return(0,ec.jsx)("div",{className:(0,eu.Z)("nextra-filetree nx-mt-6 nx-select-none nx-text-sm nx-text-gray-800 dark:nx-text-gray-300","nx-not-prose"),children:(0,ec.jsx)("div",{className:"nx-inline-block nx-rounded-lg nx-border nx-px-4 nx-py-2 dark:nx-border-neutral-800",children:ee})})}function Ident(){let ee=useIndent();return(0,ec.jsx)(ec.Fragment,{children:Array.from({length:ee},(ee,en)=>(0,ec.jsx)("span",{className:"nx-w-5"},en))})}var eX=(0,eh.memo)(({label:ee,name:en,open:er,children:eo,defaultOpen:ei=!1,onToggle:es})=>{let eu=useIndent(),[ed,ep]=(0,eh.useState)(ei),ef=(0,eh.useCallback)(()=>{es?.(!ed),ep(!ed)},[ed,es]),em=void 0===er?ed:er;return(0,ec.jsxs)("li",{className:"nx-flex nx-list-none nx-flex-col",children:[(0,ec.jsxs)("button",{onClick:ef,title:en,className:"nx-inline-flex nx-cursor-pointer nx-items-center nx-py-1 hover:nx-opacity-60",children:[(0,ec.jsx)(Ident,{}),(0,ec.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,ec.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:em?"M5 19a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4l2 2h4a2 2 0 0 1 2 2v1M5 19h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2Z":"M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6l-2-2H5a2 2 0 0 0-2 2Z"})}),(0,ec.jsx)("span",{className:"nx-ml-1",children:ee??en})]}),em&&(0,ec.jsx)("ul",{children:(0,ec.jsx)(eK.Provider,{value:eu+1,children:eo})})]})});eX.displayName="Folder";var eY=(0,eh.memo)(({label:ee,name:en,active:er})=>(0,ec.jsx)("li",{className:(0,eu.Z)("nx-flex nx-list-none",er&&"nx-text-primary-600 contrast-more:nx-underline"),children:(0,ec.jsxs)("span",{className:"nx-inline-flex nx-cursor-default nx-items-center nx-py-1",children:[(0,ec.jsx)(Ident,{}),(0,ec.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,ec.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2Z"})}),(0,ec.jsx)("span",{className:"nx-ml-1",children:ee??en})]})}));eY.displayName="File",Object.assign(Tree,{Folder:eX,File:eY})},4861:function(ee,en,er){"use strict";er.d(en,{LZ:function(){return ArrowRightIcon},nQ:function(){return CheckIcon},TI:function(){return CopyIcon},D7:function(){return DiscordIcon},Qq:function(){return ExpandIcon},fy:function(){return GitHubIcon},n9:function(){return GlobeIcon},AV:function(){return InformationCircleIcon},Oq:function(){return MenuIcon},kL:function(){return MoonIcon},L4:function(){return SpinnerIcon},NW:function(){return SunIcon},NK:function(){return WordWrapIcon},b0:function(){return XIcon}});var eo=er(5893);function ArrowRightIcon({pathClassName:ee,...en}){return(0,eo.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...en,children:(0,eo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5l7 7-7 7",className:ee})})}function CheckIcon(ee){return(0,eo.jsx)("svg",{viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor",...ee,children:(0,eo.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function CopyIcon(ee){return(0,eo.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",...ee,children:[(0,eo.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,eo.jsx)("path",{d:"M5 15H4C2.89543 15 2 14.1046 2 13V4C2 2.89543 2.89543 2 4 2H13C14.1046 2 15 2.89543 15 4V5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function DiscordIcon(ee){return(0,eo.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 5 30.67 23.25",...ee,children:[(0,eo.jsx)("title",{children:"Discord"}),(0,eo.jsx)("path",{d:"M26.0015 6.9529C24.0021 6.03845 21.8787 5.37198 19.6623 5C19.3833 5.48048 19.0733 6.13144 18.8563 6.64292C16.4989 6.30193 14.1585 6.30193 11.8336 6.64292C11.6166 6.13144 11.2911 5.48048 11.0276 5C8.79575 5.37198 6.67235 6.03845 4.6869 6.9529C0.672601 12.8736 -0.41235 18.6548 0.130124 24.3585C2.79599 26.2959 5.36889 27.4739 7.89682 28.2489C8.51679 27.4119 9.07477 26.5129 9.55525 25.5675C8.64079 25.2265 7.77283 24.808 6.93587 24.312C7.15286 24.1571 7.36986 23.9866 7.57135 23.8161C12.6241 26.1255 18.0969 26.1255 23.0876 23.8161C23.3046 23.9866 23.5061 24.1571 23.7231 24.312C22.8861 24.808 22.0182 25.2265 21.1037 25.5675C21.5842 26.5129 22.1422 27.4119 22.7621 28.2489C25.2885 27.4739 27.8769 26.2959 30.5288 24.3585C31.1952 17.7559 29.4733 12.0212 26.0015 6.9529ZM10.2527 20.8402C8.73376 20.8402 7.49382 19.4608 7.49382 17.7714C7.49382 16.082 8.70276 14.7025 10.2527 14.7025C11.7871 14.7025 13.0425 16.082 13.0115 17.7714C13.0115 19.4608 11.7871 20.8402 10.2527 20.8402ZM20.4373 20.8402C18.9183 20.8402 17.6768 19.4608 17.6768 17.7714C17.6768 16.082 18.8873 14.7025 20.4373 14.7025C21.9717 14.7025 23.2271 16.082 23.1961 17.7714C23.1961 19.4608 21.9872 20.8402 20.4373 20.8402Z"})]})}function ExpandIcon({isOpen:ee,...en}){return(0,eo.jsxs)("svg",{height:"12",width:"12",viewBox:"0 0 16 16",fill:"currentColor",...en,children:[(0,eo.jsx)("path",{fillRule:"evenodd",d:"M4.177 7.823l2.396-2.396A.25.25 0 017 5.604v4.792a.25.25 0 01-.427.177L4.177 8.177a.25.25 0 010-.354z",className:ee?"":"nx-origin-[35%] nx-rotate-180"}),(0,eo.jsx)("path",{fillRule:"evenodd",d:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0114.25 16H1.75A1.75 1.75 0 010 14.25V1.75zm1.75-.25a.25.25 0 00-.25.25v12.5c0 .138.112.25.25.25H9.5v-13H1.75zm12.5 13H11v-13h3.25a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25z"})]})}function GitHubIcon(ee){return(0,eo.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",viewBox:"3 3 18 18",...ee,children:[(0,eo.jsx)("title",{children:"GitHub"}),(0,eo.jsx)("path",{d:"M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z"})]})}function GlobeIcon(ee){return(0,eo.jsx)("svg",{viewBox:"2 2 16 16",width:"12",height:"12",fill:"currentColor",...ee,children:(0,eo.jsx)("path",{fillRule:"evenodd",d:"M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z",clipRule:"evenodd"})})}function InformationCircleIcon(ee){return(0,eo.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"20",height:"20",...ee,children:(0,eo.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"})})}function MenuIcon(ee){return(0,eo.jsxs)("svg",{fill:"none",width:"24",height:"24",viewBox:"0 0 24 24",stroke:"currentColor",...ee,children:[(0,eo.jsx)("g",{children:(0,eo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16"})}),(0,eo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 12h16"}),(0,eo.jsx)("g",{children:(0,eo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 18h16"})})]})}function MoonIcon(ee){return(0,eo.jsx)("svg",{fill:"none",viewBox:"2 2 20 20",width:"12",height:"12",stroke:"currentColor",...ee,children:(0,eo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})}function SpinnerIcon(ee){return(0,eo.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24",...ee,children:[(0,eo.jsx)("circle",{className:"nx-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,eo.jsx)("path",{className:"nx-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function SunIcon(ee){return(0,eo.jsx)("svg",{fill:"none",viewBox:"3 3 18 18",width:"12",height:"12",stroke:"currentColor",...ee,children:(0,eo.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})})}function WordWrapIcon(ee){return(0,eo.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",...ee,children:(0,eo.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}function XIcon(ee){return(0,eo.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",...ee,children:(0,eo.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}},9575:function(ee,en,er){"use strict";er.d(en,{Z:function(){return eo.Zo},a:function(){return useMDXComponents}});var eo=er(1151),ei=er(5675),es=er.n(ei),eu=er(7294),ec={img:ee=>(0,eu.createElement)("object"==typeof ee.src?es():"img",ee)},useMDXComponents=ee=>(0,eo.ah)({...ec,...ee})},6997:function(ee,en,er){"use strict";er.d(en,{j:function(){return setupNextraPage}});var eo,ei=er(9208),es=er.n(ei),eu=er(7222),ec=er(7308),ed=er(1163),ep=er(7294);function useInternals(){let ee=globalThis[eu.eZ],{route:en}=(0,ed.useRouter)();(0,ep.useState)({})[1];let er=ee.context[en];if(!er)throw Error("No content found for the current route. This is a Nextra bug.");return{context:er,Layout:ee.Layout}}var ef=er(5893);function Nextra({__nextra_pageMap:ee,__nextra_dynamic_opts:en,...er}){let{context:eo,Layout:ei}=useInternals(),{Content:es,...eu}=eo;if(ee&&(eu.pageOpts={...eu.pageOpts,pageMap:ee}),en){let{headings:ee,title:er,frontMatter:eo}=JSON.parse(en);eu.pageOpts={...eu.pageOpts,headings:ee,title:er,frontMatter:eo}}return(0,ef.jsx)(ei,{...eu,pageProps:er,children:(0,ef.jsx)(ec.mK.Provider,{value:er,children:(0,ef.jsx)(es,{...er})})})}var eh=er(1864),em=er(3859),ex=er(6107);function normalizePageRoute(ee,en){return em(eh.join(ee,en.replace(/^index$/,"")))}function pageTitleFromFilename(ee){return ex(ee.replaceAll(/[-_]/g," "))}function isFolder(ee){return!!ee&&"object"==typeof ee&&"folder"===ee.type}function normalizeMetaData(ee){return Object.fromEntries(Object.entries(ee).map(([ee,en])=>{if(isFolder(en)){let er=ee.replace("/","");return[er,en.title||pageTitleFromFilename(er)]}return[ee,en||pageTitleFromFilename(ee)]}))}function collectCatchAllRoutes(ee,en,er=!0){if(er){collectCatchAllRoutes(ee,{kind:"Meta",data:en.data,locale:en.locale},!1),en.data=normalizeMetaData(en.data);return}for(let[er,eo]of Object.entries(en.data)){if(!isFolder(eo)){if("*"===er)continue;ee.children.push({kind:"MdxPage",...en.locale&&{locale:en.locale},name:er,route:normalizePageRoute(ee.route,er)});continue}let ei=er.replace("/",""),es={kind:"Folder",name:ei,route:`${ee.route}/${ei}`,children:[{kind:"Meta",...en.locale&&{locale:en.locale},data:normalizeMetaData(eo.items)}]};ee.children.push(es),collectCatchAllRoutes(es,{kind:"Meta",data:eo.items,locale:en.locale},!1)}}function setupNextraPage({pageNextRoute:ee,pageOpts:en,nextraLayout:er,themeConfig:ei,MDXContent:ec,hot:ed,pageOptsChecksum:ep,dynamicMetaModules:ef=[]}){var eh;"undefined"==typeof window&&(globalThis.__nextra_resolvePageMap=async()=>{if(eo)return eo;let ee=JSON.parse(JSON.stringify(em.pageMap));return await Promise.all(ef.map(async([en,{metaObjectKeyPath:er,metaParentKeyPath:eo}])=>{let ei=await en,eu=await ei.default(),ec=es()(ee,er);ec.data=eu;let ed=es()(ee,eo);collectCatchAllRoutes(ed,ec)})),eo=ee});let em=globalThis[eh=eu.eZ]||(globalThis[eh]=Object.create(null));return en.pageMap?(em.pageMap=en.pageMap,em.Layout=er):(en={...en,pageMap:em.pageMap,flexsearch:em.flexsearch},ei=em.themeConfig),en={frontMatter:{},...en},em.route=en.route,em.context||(em.context=Object.create(null)),em.context[ee]={Content:ec,pageOpts:en,themeConfig:ei},Nextra}},7308:function(ee,en,er){"use strict";er.d(en,{et:function(){return useData},mK:function(){return ei}}),er(1404);var eo=er(7294);er(9575),er(5893);var ei=(0,eo.createContext)(!1),useData=(ee="ssg")=>eo.useContext(ei)?.[ee]},6008:function(ee,en,er){"use strict";var eo=er(2337);function parsePath(ee){var en={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:ee,query:{},parse_failed:!1};try{var er=new URL(ee);en.protocols=eo(er),en.protocol=en.protocols[0],en.port=er.port,en.resource=er.hostname,en.host=er.host,en.user=er.username||"",en.password=er.password||"",en.pathname=er.pathname,en.hash=er.hash.slice(1),en.search=er.search.slice(1),en.href=er.href,en.query=Object.fromEntries(er.searchParams)}catch(er){en.protocols=["file"],en.protocol=en.protocols[0],en.port="",en.resource="",en.user="",en.pathname="",en.hash="",en.search="",en.href=ee,en.query={},en.parse_failed=!0}return en}ee.exports=parsePath},3905:function(ee,en,er){"use strict";var eo=function(ee){return ee&&"object"==typeof ee&&"default"in ee?ee:{default:ee}}(er(6008));let ei="text/plain",es="us-ascii",testParameter=(ee,en)=>en.some(en=>en instanceof RegExp?en.test(ee):en===ee),normalizeDataURL=(ee,{stripHash:en})=>{let er=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(ee);if(!er)throw Error(`Invalid URL: ${ee}`);let{type:eo,data:eu,hash:ec}=er.groups,ed=eo.split(";");ec=en?"":ec;let ep=!1;"base64"===ed[ed.length-1]&&(ed.pop(),ep=!0);let ef=(ed.shift()||"").toLowerCase(),eh=ed.map(ee=>{let[en,er=""]=ee.split("=").map(ee=>ee.trim());return"charset"===en&&(er=er.toLowerCase())===es?"":`${en}${er?`=${er}`:""}`}).filter(Boolean),em=[...eh];return ep&&em.push("base64"),(em.length>0||ef&&ef!==ei)&&em.unshift(ef),`data:${em.join(";")},${ep?eu.trim():eu}${ec?`#${ec}`:""}`};function normalizeUrl(ee,en){if(en={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...en},ee=ee.trim(),/^data:/i.test(ee))return normalizeDataURL(ee,en);if(/^view-source:/i.test(ee))throw Error("`view-source:` is not supported as it is a non-standard protocol");let er=ee.startsWith("//"),eo=!er&&/^\.*\//.test(ee);eo||(ee=ee.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,en.defaultProtocol));let ei=new URL(ee);if(en.forceHttp&&en.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(en.forceHttp&&"https:"===ei.protocol&&(ei.protocol="http:"),en.forceHttps&&"http:"===ei.protocol&&(ei.protocol="https:"),en.stripAuthentication&&(ei.username="",ei.password=""),en.stripHash?ei.hash="":en.stripTextFragment&&(ei.hash=ei.hash.replace(/#?:~:text.*?$/i,"")),ei.pathname){let ee=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,en=0,er="";for(;;){let eo=ee.exec(ei.pathname);if(!eo)break;let es=eo[0],eu=eo.index,ec=ei.pathname.slice(en,eu);er+=ec.replace(/\/{2,}/g,"/")+es,en=eu+es.length}let eo=ei.pathname.slice(en,ei.pathname.length);er+=eo.replace(/\/{2,}/g,"/"),ei.pathname=er}if(ei.pathname)try{ei.pathname=decodeURI(ei.pathname)}catch{}if(!0===en.removeDirectoryIndex&&(en.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(en.removeDirectoryIndex)&&en.removeDirectoryIndex.length>0){let ee=ei.pathname.split("/"),er=ee[ee.length-1];testParameter(er,en.removeDirectoryIndex)&&(ee=ee.slice(0,-1),ei.pathname=ee.slice(1).join("/")+"/")}if(ei.hostname&&(ei.hostname=ei.hostname.replace(/\.$/,""),en.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(ei.hostname)&&(ei.hostname=ei.hostname.replace(/^www\./,""))),Array.isArray(en.removeQueryParameters))for(let ee of[...ei.searchParams.keys()])testParameter(ee,en.removeQueryParameters)&&ei.searchParams.delete(ee);if(!0===en.removeQueryParameters&&(ei.search=""),en.sortQueryParameters){ei.searchParams.sort();try{ei.search=decodeURIComponent(ei.search)}catch{}}en.removeTrailingSlash&&(ei.pathname=ei.pathname.replace(/\/$/,""));let es=ee;return ee=ei.toString(),en.removeSingleSlash||"/"!==ei.pathname||es.endsWith("/")||""!==ei.hash||(ee=ee.replace(/\/$/,"")),(en.removeTrailingSlash||"/"===ei.pathname)&&""===ei.hash&&en.removeSingleSlash&&(ee=ee.replace(/\/$/,"")),er&&!en.normalizeProtocol&&(ee=ee.replace(/^http:\/\//,"//")),en.stripProtocol&&(ee=ee.replace(/^(?:https?:)?\/\//,"")),ee}let parseUrl=(ee,en=!1)=>{let er=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,throwErr=en=>{let er=Error(en);throw er.subject_url=ee,er};"string"==typeof ee&&ee.trim()||throwErr("Invalid url."),ee.length>parseUrl.MAX_INPUT_LENGTH&&throwErr("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),en&&("object"!=typeof en&&(en={stripHash:!1}),ee=normalizeUrl(ee,en));let ei=eo.default(ee);if(ei.parse_failed){let ee=ei.href.match(er);ee?(ei.protocols=["ssh"],ei.protocol="ssh",ei.resource=ee[2],ei.host=ee[2],ei.user=ee[1],ei.pathname=`/${ee[3]}`,ei.parse_failed=!1):throwErr("URL parsing failed.")}return ei};parseUrl.MAX_INPUT_LENGTH=2048,ee.exports=parseUrl},2337:function(ee){"use strict";ee.exports=function(ee,en){!0===en&&(en=0);var er="";if("string"==typeof ee)try{er=new URL(ee).protocol}catch(ee){}else ee&&ee.constructor===URL&&(er=ee.protocol);var eo=er.split(/\:|\+/).filter(Boolean);return"number"==typeof en?eo[en]:eo}},6826:function(ee){var en={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},er=Object.keys(en).join("|"),eo=RegExp(er,"g"),ei=RegExp(er,""),removeAccents=function(ee){return ee.replace(eo,function(ee){return en[ee]})},hasAccents=function(ee){return!!ee.match(ei)};ee.exports=removeAccents,ee.exports.has=hasAccents,ee.exports.remove=removeAccents},3859:function(ee){"use strict";ee.exports=ee=>{let en=/^\\\\\?\\/.test(ee),er=/[^\u0000-\u0080]+/.test(ee);return en||er?ee:ee.replace(/\\/g,"/")}},6107:function(ee,en,er){let eo=er(1439),ei=er(7224),es="[^\\s'’\\(\\)!?;:\"-]",eu=RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${es}))|(${es}))(${es}*[’']*${es}*)`,"g"),convertToRegExp=ee=>ee.map(ee=>[RegExp(`\\b${ee}\\b`,"gi"),ee]);function parseMatch(ee){let en=ee[0];return/\s/.test(en)?ee.slice(1):/[\(\)]/.test(en)?null:ee}ee.exports=(ee,en={})=>{ee=ee.toLowerCase().replace(eu,(ee,en="",er,ei,es,eu,ec)=>{let ed=ee.length+eu>=ec.length,ep=parseMatch(ee);if(!ep)return ee;if(!er){let ee=ei+es;if(eo.has(ee)&&!ed)return ep}return en+(ei||er).toUpperCase()+es});let er=en.special||[],es=[...ei,...er],ec=convertToRegExp(es);return ec.forEach(([en,er])=>{ee=ee.replace(en,er)}),ee}},1439:function(ee){let en=["for","and","nor","but","or","yet","so"],er=["a","an","the"],eo=["aboard","about","above","across","after","against","along","amid","among","anti","around","as","at","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","considering","despite","down","during","except","excepting","excluding","following","for","from","in","inside","into","like","minus","near","of","off","on","onto","opposite","over","past","per","plus","regarding","round","save","since","than","through","to","toward","towards","under","underneath","unlike","until","up","upon","versus","via","with","within","without"];ee.exports=new Set([...en,...er,...eo])},7224:function(ee){let en=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS","SQL","C","C#","GraphQL","GraphiQL","JWT","JWTs"];ee.exports=en},2746:function(ee,en,er){ee.exports.jsxRuntime=er(5893)},1363:function(ee,en,er){"use strict";er.d(en,{R:function(){return ei}});var eo,ei=((eo=ei||{}).Space=" ",eo.Enter="Enter",eo.Escape="Escape",eo.Backspace="Backspace",eo.Delete="Delete",eo.ArrowLeft="ArrowLeft",eo.ArrowUp="ArrowUp",eo.ArrowRight="ArrowRight",eo.ArrowDown="ArrowDown",eo.Home="Home",eo.End="End",eo.PageUp="PageUp",eo.PageDown="PageDown",eo.Tab="Tab",eo)},3781:function(ee,en,er){"use strict";er.d(en,{z:function(){return o}});var eo=er(7294),ei=er(3855);let o=function(ee){let en=(0,ei.E)(ee);return eo.useCallback((...ee)=>en.current(...ee),[en])}},9946:function(ee,en,er){"use strict";er.d(en,{M:function(){return ed}});var eo,ei=er(7294),es=er(6723),eu=er(2180),ec=er(7896);let ed=null!=(eo=ei.useId)?eo:function(){let ee=(0,eu.H)(),[en,er]=ei.useState(ee?()=>ec.O.nextId():null);return(0,es.e)(()=>{null===en&&er(ec.O.nextId())},[en]),null!=en?""+en:void 0}},4879:function(ee,en,er){"use strict";er.d(en,{t:function(){return f}});var eo=er(7294),ei=er(6723);function f(){let ee=(0,eo.useRef)(!1);return(0,ei.e)(()=>(ee.current=!0,()=>{ee.current=!1}),[]),ee}},6723:function(ee,en,er){"use strict";er.d(en,{e:function(){return l}});var eo=er(7294),ei=er(7896);let l=(ee,en)=>{ei.O.isServer?(0,eo.useEffect)(ee,en):(0,eo.useLayoutEffect)(ee,en)}},3855:function(ee,en,er){"use strict";er.d(en,{E:function(){return s}});var eo=er(7294),ei=er(6723);function s(ee){let en=(0,eo.useRef)(ee);return(0,ei.e)(()=>{en.current=ee},[ee]),en}},4157:function(ee,en,er){"use strict";er.d(en,{f:function(){return s}});var eo=er(7294),ei=er(6723);function i(ee){var en;if(ee.type)return ee.type;let er=null!=(en=ee.as)?en:"button";if("string"==typeof er&&"button"===er.toLowerCase())return"button"}function s(ee,en){let[er,es]=(0,eo.useState)(()=>i(ee));return(0,ei.e)(()=>{es(i(ee))},[ee.type,ee.as]),(0,ei.e)(()=>{er||en.current&&en.current instanceof HTMLButtonElement&&!en.current.hasAttribute("type")&&es("button")},[er,en]),er}},2180:function(ee,en,er){"use strict";er.d(en,{H:function(){return l}});var eo=er(7294),ei=er(7896);function l(){let[ee,en]=(0,eo.useState)(ei.O.isHandoffComplete);return ee&&!1===ei.O.isHandoffComplete&&en(!1),(0,eo.useEffect)(()=>{!0!==ee&&en(!0)},[ee]),(0,eo.useEffect)(()=>ei.O.handoff(),[]),ee}},3784:function(ee,en,er){"use strict";er.d(en,{T:function(){return y}});var eo=er(7294),ei=er(3781);let es=Symbol();function y(...ee){let en=(0,eo.useRef)(ee);(0,eo.useEffect)(()=>{en.current=ee},[ee]);let er=(0,ei.z)(ee=>{for(let er of en.current)null!=er&&("function"==typeof er?er(ee):er.current=ee)});return ee.every(ee=>null==ee||(null==ee?void 0:ee[es]))?void 0:er}},6045:function(ee,en,er){"use strict";er.d(en,{A:function(){return eu},_:function(){return ec}});var eo,ei=er(2351);let es="div";var eu=((eo=eu||{})[eo.None=1]="None",eo[eo.Focusable=2]="Focusable",eo[eo.Hidden=4]="Hidden",eo);function s(ee,en){let{features:er=1,...eo}=ee,eu={ref:en,"aria-hidden":(2&er)==2||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&er)==4&&(2&er)!=2&&{display:"none"}}};return(0,ei.sY)({ourProps:eu,theirProps:eo,slot:{},defaultTag:es,name:"Hidden"})}let ec=(0,ei.yV)(s)},4067:function(ee,en,er){"use strict";function e(...ee){return ee.filter(Boolean).join(" ")}er.d(en,{A:function(){return e}})},9362:function(ee,en,er){"use strict";er.d(en,{k:function(){return o}});var eo=er(1021);function o(){let ee=[],en={addEventListener:(ee,er,eo,ei)=>(ee.addEventListener(er,eo,ei),en.add(()=>ee.removeEventListener(er,eo,ei))),requestAnimationFrame(...ee){let er=requestAnimationFrame(...ee);return en.add(()=>cancelAnimationFrame(er))},nextFrame:(...ee)=>en.requestAnimationFrame(()=>en.requestAnimationFrame(...ee)),setTimeout(...ee){let er=setTimeout(...ee);return en.add(()=>clearTimeout(er))},microTask(...ee){let er={current:!0};return(0,eo.Y)(()=>{er.current&&ee[0]()}),en.add(()=>{er.current=!1})},style(ee,en,er){let eo=ee.style.getPropertyValue(en);return Object.assign(ee.style,{[en]:er}),this.add(()=>{Object.assign(ee.style,{[en]:eo})})},group(ee){let en=o();return ee(en),this.add(()=>en.dispose())},add:en=>(ee.push(en),()=>{let er=ee.indexOf(en);if(er>=0)for(let en of ee.splice(er,1))en()}),dispose(){for(let en of ee.splice(0))en()}};return en}},7896:function(ee,en,er){"use strict";er.d(en,{O:function(){return ei}});var eo=Object.defineProperty,d=(ee,en,er)=>en in ee?eo(ee,en,{enumerable:!0,configurable:!0,writable:!0,value:er}):ee[en]=er,r=(ee,en,er)=>(d(ee,"symbol"!=typeof en?en+"":en,er),er);let o=class o{constructor(){r(this,"current",this.detect()),r(this,"handoffState","pending"),r(this,"currentId",0)}set(ee){this.current!==ee&&(this.handoffState="pending",this.currentId=0,this.current=ee)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};let ei=new o},4575:function(ee,en,er){"use strict";er.d(en,{EO:function(){return _},TO:function(){return em},fE:function(){return ex},jA:function(){return O},sP:function(){return h},tJ:function(){return ev},wI:function(){return D},z2:function(){return I}});var eo,ei,es,eu,ec,ed=er(9362),ep=er(2984),ef=er(5466);let eh=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(ee=>`${ee}:not([tabindex='-1'])`).join(",");var em=((eo=em||{})[eo.First=1]="First",eo[eo.Previous=2]="Previous",eo[eo.Next=4]="Next",eo[eo.Last=8]="Last",eo[eo.WrapAround=16]="WrapAround",eo[eo.NoScroll=32]="NoScroll",eo),ex=((ei=ex||{})[ei.Error=0]="Error",ei[ei.Overflow=1]="Overflow",ei[ei.Success=2]="Success",ei[ei.Underflow=3]="Underflow",ei),eg=((es=eg||{})[es.Previous=-1]="Previous",es[es.Next=1]="Next",es);function f(ee=document.body){return null==ee?[]:Array.from(ee.querySelectorAll(eh)).sort((ee,en)=>Math.sign((ee.tabIndex||Number.MAX_SAFE_INTEGER)-(en.tabIndex||Number.MAX_SAFE_INTEGER)))}var ev=((eu=ev||{})[eu.Strict=0]="Strict",eu[eu.Loose=1]="Loose",eu);function h(ee,en=0){var er;return ee!==(null==(er=(0,ef.r)(ee))?void 0:er.body)&&(0,ep.E)(en,{0:()=>ee.matches(eh),1(){let en=ee;for(;null!==en;){if(en.matches(eh))return!0;en=en.parentElement}return!1}})}function D(ee){let en=(0,ef.r)(ee);(0,ed.k)().nextFrame(()=>{en&&!h(en.activeElement,0)&&y(ee)})}var ey=((ec=ey||{})[ec.Keyboard=0]="Keyboard",ec[ec.Mouse=1]="Mouse",ec);function y(ee){null==ee||ee.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",ee=>{ee.metaKey||ee.altKey||ee.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",ee=>{1===ee.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===ee.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let eb="textarea,input";function H(ee){var en,er;return null!=(er=null==(en=null==ee?void 0:ee.matches)?void 0:en.call(ee,eb))&&er}function I(ee,en=ee=>ee){return ee.slice().sort((ee,er)=>{let eo=en(ee),ei=en(er);if(null===eo||null===ei)return 0;let es=eo.compareDocumentPosition(ei);return es&Node.DOCUMENT_POSITION_FOLLOWING?-1:es&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function _(ee,en){return O(f(),en,{relativeTo:ee})}function O(ee,en,{sorted:er=!0,relativeTo:eo=null,skipElements:ei=[]}={}){let es=Array.isArray(ee)?ee.length>0?ee[0].ownerDocument:document:ee.ownerDocument,eu=Array.isArray(ee)?er?I(ee):ee:f(ee);ei.length>0&&eu.length>1&&(eu=eu.filter(ee=>!ei.includes(ee))),eo=null!=eo?eo:es.activeElement;let ec=(()=>{if(5&en)return 1;if(10&en)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),ed=(()=>{if(1&en)return 0;if(2&en)return Math.max(0,eu.indexOf(eo))-1;if(4&en)return Math.max(0,eu.indexOf(eo))+1;if(8&en)return eu.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),ep=32&en?{preventScroll:!0}:{},ef=0,eh=eu.length,em;do{if(ef>=eh||ef+eh<=0)return 0;let ee=ed+ef;if(16&en)ee=(ee+eh)%eh;else{if(ee<0)return 3;if(ee>=eh)return 1}null==(em=eu[ee])||em.focus(ep),ef+=ec}while(em!==es.activeElement);return 6&en&&H(em)&&em.select(),2}},2984:function(ee,en,er){"use strict";function u(ee,en,...er){if(ee in en){let eo=en[ee];return"function"==typeof eo?eo(...er):eo}let eo=Error(`Tried to handle "${ee}" but there is no handler defined. Only defined handlers are: ${Object.keys(en).map(ee=>`"${ee}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(eo,u),eo}er.d(en,{E:function(){return u}})},1021:function(ee,en,er){"use strict";function t(ee){"function"==typeof queueMicrotask?queueMicrotask(ee):Promise.resolve().then(ee).catch(ee=>setTimeout(()=>{throw ee}))}er.d(en,{Y:function(){return t}})},5466:function(ee,en,er){"use strict";er.d(en,{r:function(){return e}});var eo=er(7896);function e(ee){return eo.O.isServer?null:ee instanceof Node?ee.ownerDocument:null!=ee&&ee.hasOwnProperty("current")&&ee.current instanceof Node?ee.current.ownerDocument:document}},2351:function(ee,en,er){"use strict";er.d(en,{AN:function(){return ed},l4:function(){return ep},oA:function(){return R},sY:function(){return X},yV:function(){return D}});var eo,ei,es=er(7294),eu=er(4067),ec=er(2984),ed=((eo=ed||{})[eo.None=0]="None",eo[eo.RenderStrategy=1]="RenderStrategy",eo[eo.Static=2]="Static",eo),ep=((ei=ep||{})[ei.Unmount=0]="Unmount",ei[ei.Hidden=1]="Hidden",ei);function X({ourProps:ee,theirProps:en,slot:er,defaultTag:eo,features:ei,visible:es=!0,name:eu}){let ed=N(en,ee);if(es)return c(ed,er,eo,eu);let ep=null!=ei?ei:0;if(2&ep){let{static:ee=!1,...en}=ed;if(ee)return c(en,er,eo,eu)}if(1&ep){let{unmount:ee=!0,...en}=ed;return(0,ec.E)(ee?0:1,{0:()=>null,1:()=>c({...en,hidden:!0,style:{display:"none"}},er,eo,eu)})}return c(ed,er,eo,eu)}function c(ee,en={},er,eo){let{as:ei=er,children:ec,refName:ed="ref",...ep}=g(ee,["unmount","static"]),ef=void 0!==ee.ref?{[ed]:ee.ref}:{},eh="function"==typeof ec?ec(en):ec;"className"in ep&&ep.className&&"function"==typeof ep.className&&(ep.className=ep.className(en));let em={};if(en){let ee=!1,er=[];for(let[eo,ei]of Object.entries(en))"boolean"==typeof ei&&(ee=!0),!0===ei&&er.push(eo);ee&&(em["data-headlessui-state"]=er.join(" "))}if(ei===es.Fragment&&Object.keys(R(ep)).length>0){if(!(0,es.isValidElement)(eh)||Array.isArray(eh)&&eh.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${eo} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ep).map(ee=>` - ${ee}`).join(` +`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(ee=>` - ${ee}`).join(` +`)].join(` +`));let ee=eh.props,en="function"==typeof(null==ee?void 0:ee.className)?(...en)=>(0,eu.A)(null==ee?void 0:ee.className(...en),ep.className):(0,eu.A)(null==ee?void 0:ee.className,ep.className),er=en?{className:en}:{};return(0,es.cloneElement)(eh,Object.assign({},N(eh.props,R(g(ep,["ref"]))),em,ef,w(eh.ref,ef.ref),er))}return(0,es.createElement)(ei,Object.assign({},g(ep,["ref"]),ei!==es.Fragment&&ef,ei!==es.Fragment&&em),eh)}function w(...ee){return{ref:ee.every(ee=>null==ee)?void 0:en=>{for(let er of ee)null!=er&&("function"==typeof er?er(en):er.current=en)}}}function N(...ee){var en;if(0===ee.length)return{};if(1===ee.length)return ee[0];let er={},eo={};for(let ei of ee)for(let ee in ei)ee.startsWith("on")&&"function"==typeof ei[ee]?(null!=(en=eo[ee])||(eo[ee]=[]),eo[ee].push(ei[ee])):er[ee]=ei[ee];if(er.disabled||er["aria-disabled"])return Object.assign(er,Object.fromEntries(Object.keys(eo).map(ee=>[ee,void 0])));for(let ee in eo)Object.assign(er,{[ee](en,...er){for(let ei of eo[ee]){if((en instanceof Event||(null==en?void 0:en.nativeEvent)instanceof Event)&&en.defaultPrevented)return;ei(en,...er)}}});return er}function D(ee){var en;return Object.assign((0,es.forwardRef)(ee),{displayName:null!=(en=ee.displayName)?en:ee.name})}function R(ee){let en=Object.assign({},ee);for(let ee in en)void 0===en[ee]&&delete en[ee];return en}function g(ee,en=[]){let er=Object.assign({},ee);for(let ee of en)ee in er&&delete er[ee];return er}},1151:function(ee,en,er){"use strict";er.d(en,{NF:function(){return withMDXComponents},Zo:function(){return MDXProvider},ah:function(){return useMDXComponents},pC:function(){return ei}});var eo=er(7294);let ei=eo.createContext({});function withMDXComponents(ee){return boundMDXComponent;function boundMDXComponent(en){let er=useMDXComponents(en.components);return eo.createElement(ee,{...en,allComponents:er})}}function useMDXComponents(ee){let en=eo.useContext(ei);return eo.useMemo(()=>"function"==typeof ee?ee(en):{...en,...ee},[en,ee])}let es={};function MDXProvider({components:ee,children:en,disableParentContext:er}){let eu;return eu=er?"function"==typeof ee?ee({}):ee||es:useMDXComponents(ee),eo.createElement(ei.Provider,{value:eu},en)}},512:function(ee,en,er){"use strict";function r(ee){var en,er,eo="";if("string"==typeof ee||"number"==typeof ee)eo+=ee;else if("object"==typeof ee){if(Array.isArray(ee))for(en=0;en{if(ed){let ee=window.requestIdleCallback(()=>{ef(!0)});return()=>window.cancelIdleCallback(ee)}},[]);let eh=(0,ei.useMemo)(()=>{let ei=Object.assign({opts:{...eo,...es.jsxRuntime}},{frontmatter:en},er),eu=Object.keys(ei),ec=Object.values(ei),ed=Reflect.construct(Function,eu.concat(`${ee}`));return ed.apply(ed,ec).default},[er,ee]);if(!ep)return ei.createElement("div",{dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0});let em=ei.createElement(eu.Zo,{components:ec},ei.createElement(eh,null));return ed?ei.createElement("div",null,em):em}"undefined"!=typeof window&&(window.requestIdleCallback=window.requestIdleCallback||function(ee){var en=Date.now();return setTimeout(function(){ee({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-en))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(ee){clearTimeout(ee)})},7222:function(ee,en,er){"use strict";er.d(en,{ZW:function(){return es},eZ:function(){return ec},hV:function(){return ed}});var eo=er(1864),ei=er(3454),es="en-US",eu=ei.cwd();eo.join(eu,"public");var ec=Symbol.for("__nextra_internal__"),ed=new Set(["/404","/500"])}}]); \ No newline at end of file diff --git a/_next/static/chunks/797-6c3e90f4c1329391.js b/_next/static/chunks/797-6c3e90f4c1329391.js deleted file mode 100644 index 31a6205..0000000 --- a/_next/static/chunks/797-6c3e90f4c1329391.js +++ /dev/null @@ -1,23 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[797],{2350:function(){},6010:function(ee,en,er){"use strict";function ei(ee){var en,er,eo="";if("string"==typeof ee||"number"==typeof ee)eo+=ee;else if("object"==typeof ee){if(Array.isArray(ee))for(en=0;en=ei))));en++);if(er)return es?ta(ed,ei,0):void(en[en.length]=ed)}return!er&&ed}function ta(ee,en,er){return ee=1===ee.length?ee[0]:[].concat.apply([],ee),er||ee.length>en?ee.slice(er,er+en):ee}function ua(ee,en,er,ei){return ee=er?(ee=ee[(ei=ei&&en>er)?en:er])&&ee[ei?er:en]:ee[en]}function N(ee,en,er,ei,eo){let es=0;if(ee.constructor===Array){if(eo)-1!==(en=ee.indexOf(en))?1=this.B&&(ep||!eh[eg])){var es=L(em,ei,ex),eu="";switch(this.G){case"full":if(2es;ec--)if(ec-es>=this.B){var ed=L(em,ei,ex,eo,es);M(this,eh,eu=eg.substring(es,ec),ed,ee,er)}break}case"reverse":if(1=this.B&&M(this,eh,eu,L(em,ei,ex,eo,ec),ee,er);eu=""}case"forward":if(1=this.B&&M(this,eh,eu,es,ee,er);break}default:if(this.C&&(es=Math.min(es/this.C(en,eg,ex)|0,em-1)),M(this,eh,eg,es,ee,er),ep&&1=this.B&&!eo[eg]){eo[eg]=1;let en=this.l&&eg>es;M(this,ef,en?es:eg,L(eu+(ei/2>eu?0:1),ei,ex,ec-1,ed-1),ee,er,en?eg:es)}}}}}this.m||(this.register[ee]=1)}}return this},t.search=function(ee,en,er){let ei,eo,es;er||(!en&&C(ee)?ee=(er=ee).query:C(en)&&(er=en));let eu=[],ec,ed,ef=0;if(er){ee=er.query||ee,en=er.limit,ef=er.offset||0;var eh=er.context;ed=er.suggest}if(ee&&1<(ec=(ee=this.encode(""+ee)).length)){er=v();var ep=[];for(let en=0,ei=0,eo;en=this.B&&!er[eo]){if(!this.s&&!ed&&!this.map[eo])return eu;ep[ei++]=eo,er[eo]=1}ec=(ee=ep).length}if(!ec)return eu;for(en||(en=100),eh=this.depth&&1en||er)&&(eo=eo.slice(er,er+en)),ei&&(eo=za.call(this,eo)),{tag:ee,result:eo}}function za(ee){let en=Array(ee.length);for(let er=0,ei;er2?er.slice(1-er.length).join("."):en.source=en.resource,en.git_suffix=/\.git$/.test(en.pathname),en.name=decodeURIComponent((en.pathname||en.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),en.owner=decodeURIComponent(en.user),en.source){case"git.cloudforge.com":en.owner=en.user,en.organization=er[0],en.source="cloudforge.com";break;case"visualstudio.com":if("vs-ssh.visualstudio.com"===en.resource){4===(es=en.name.split("/")).length&&(en.organization=es[1],en.owner=es[2],en.name=es[3],en.full_name=es[2]+"/"+es[3]);break}2===(es=en.name.split("/")).length?(en.owner=es[1],en.name=es[1],en.full_name="_git/"+en.name):3===es.length?(en.name=es[2],"DefaultCollection"===es[0]?(en.owner=es[2],en.organization=es[0],en.full_name=en.organization+"/_git/"+en.name):(en.owner=es[0],en.full_name=en.owner+"/_git/"+en.name)):4===es.length&&(en.organization=es[0],en.owner=es[1],en.name=es[3],en.full_name=en.organization+"/"+en.owner+"/_git/"+en.name);break;case"dev.azure.com":case"azure.com":if("ssh.dev.azure.com"===en.resource){4===(es=en.name.split("/")).length&&(en.organization=es[1],en.owner=es[2],en.name=es[3]);break}5===(es=en.name.split("/")).length?(en.organization=es[0],en.owner=es[1],en.name=es[4],en.full_name="_git/"+en.name):3===es.length?(en.name=es[2],"DefaultCollection"===es[0]?(en.owner=es[2],en.organization=es[0],en.full_name=en.organization+"/_git/"+en.name):(en.owner=es[0],en.full_name=en.owner+"/_git/"+en.name)):4===es.length&&(en.organization=es[0],en.owner=es[1],en.name=es[3],en.full_name=en.organization+"/"+en.owner+"/_git/"+en.name),en.query&&en.query.path&&(en.filepath=en.query.path.replace(/^\/+/g,"")),en.query&&en.query.version&&(en.ref=en.query.version.replace(/^GB/,""));break;default:var eu=(es=en.name.split("/")).length-1;if(es.length>=2){var ec=es.indexOf("-",2),ed=es.indexOf("blob",2),ef=es.indexOf("tree",2),eh=es.indexOf("commit",2),ep=es.indexOf("src",2),em=es.indexOf("raw",2),ex=es.indexOf("edit",2);eu=ec>0?ec-1:ed>0?ed-1:ef>0?ef-1:eh>0?eh-1:ep>0?ep-1:em>0?em-1:ex>0?ex-1:eu,en.owner=es.slice(0,eu).join("/"),en.name=es[eu],eh&&(en.commit=es[eu+2])}en.ref="",en.filepathtype="",en.filepath="";var eg=es.length>eu&&"-"===es[eu+1]?eu+1:eu;es.length>eg+2&&["raw","src","blob","tree","edit"].indexOf(es[eg+1])>=0&&(en.filepathtype=es[eg+1],en.ref=es[eg+2],es.length>eg+3&&(en.filepath=es.slice(eg+3).join("/"))),en.organization=en.owner}!en.full_name&&(en.full_name=en.owner,en.name&&(en.full_name&&(en.full_name+="/"),en.full_name+=en.name)),en.owner.startsWith("scm/")&&(en.source="bitbucket-server",en.owner=en.owner.replace("scm/",""),en.organization=en.owner,en.full_name=en.owner+"/"+en.name);var ev=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/.exec(en.pathname);return null!=ev&&(en.source="bitbucket-server","users"===ev[1]?en.owner="~"+ev[2]:en.owner=ev[2],en.organization=en.owner,en.name=ev[3],(es=ev[4].split("/")).length>1&&(["raw","browse"].indexOf(es[1])>=0?(en.filepathtype=es[1],es.length>2&&(en.filepath=es.slice(2).join("/"))):"commits"===es[1]&&es.length>2&&(en.commit=es[2])),en.full_name=en.owner+"/"+en.name,en.query.at?en.ref=en.query.at:en.ref=""),en}/*! - * buildToken - * Builds OAuth token prefix (helper function) - * - * @name buildToken - * @function - * @param {GitUrl} obj The parsed Git url object. - * @return {String} token prefix - */function es(ee){return"bitbucket.org"===ee.source?"x-token-auth:"+ee.token+"@":ee.token+"@"}function eu(ee){return"bitbucket-server"===ee.source?"scm/"+ee.full_name:""+ee.full_name}eo.stringify=function(ee,en){en=en||(ee.protocols&&ee.protocols.length?ee.protocols.join("+"):ee.protocol);var er=ee.port?":"+ee.port:"",ei=ee.user||"git",eo=ee.git_suffix?".git":"";switch(en){case"ssh":if(er)return"ssh://"+ei+"@"+ee.resource+er+"/"+ee.full_name+eo;return ei+"@"+ee.resource+":"+ee.full_name+eo;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return en+"://"+ei+"@"+ee.resource+er+"/"+ee.full_name+eo;case"http":case"https":return en+"://"+(ee.token?es(ee):ee.user&&(ee.protocols.includes("http")||ee.protocols.includes("https"))?ee.user+"@":"")+ee.resource+er+"/"+eu(ee)+eo;default:return ee.href}},ee.exports=eo},6337:function(){!function(){"use strict";if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var ee=function(ee){for(var en=ee,er=eo(en);er;)er=eo(en=er.ownerDocument);return en}(window.document),en=[],er=null,ei=null;eu.prototype.THROTTLE_TIMEOUT=100,eu.prototype.POLL_INTERVAL=null,eu.prototype.USE_MUTATION_OBSERVER=!0,eu._setupCrossOriginUpdater=function(){return er||(er=function(ee,er){ei=ee&&er?ev(ee,er):ex(),en.forEach(function(ee){ee._checkForIntersections()})}),er},eu._resetCrossOriginUpdater=function(){er=null,ei=null},eu.prototype.observe=function(ee){if(!this._observationTargets.some(function(en){return en.element==ee})){if(!(ee&&1==ee.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:ee,entry:null}),this._monitorIntersections(ee.ownerDocument),this._checkForIntersections()}},eu.prototype.unobserve=function(ee){this._observationTargets=this._observationTargets.filter(function(en){return en.element!=ee}),this._unmonitorIntersections(ee.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},eu.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},eu.prototype.takeRecords=function(){var ee=this._queuedEntries.slice();return this._queuedEntries=[],ee},eu.prototype._initThresholds=function(ee){var en=ee||[0];return Array.isArray(en)||(en=[en]),en.sort().filter(function(ee,en,er){if("number"!=typeof ee||isNaN(ee)||ee<0||ee>1)throw Error("threshold must be a number between 0 and 1 inclusively");return ee!==er[en-1]})},eu.prototype._parseRootMargin=function(ee){var en=(ee||"0px").split(/\s+/).map(function(ee){var en=/^(-?\d*\.?\d+)(px|%)$/.exec(ee);if(!en)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(en[1]),unit:en[2]}});return en[1]=en[1]||en[0],en[2]=en[2]||en[0],en[3]=en[3]||en[1],en},eu.prototype._monitorIntersections=function(en){var er=en.defaultView;if(er&&-1==this._monitoringDocuments.indexOf(en)){var ei=this._checkForIntersections,es=null,eu=null;if(this.POLL_INTERVAL?es=er.setInterval(ei,this.POLL_INTERVAL):(ef(er,"resize",ei,!0),ef(en,"scroll",ei,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in er&&(eu=new er.MutationObserver(ei)).observe(en,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(en),this._monitoringUnsubscribes.push(function(){var ee=en.defaultView;ee&&(es&&ee.clearInterval(es),eh(ee,"resize",ei,!0)),eh(en,"scroll",ei,!0),eu&&eu.disconnect()}),en!=(this.root&&(this.root.ownerDocument||this.root)||ee)){var ec=eo(en);ec&&this._monitorIntersections(ec.ownerDocument)}}},eu.prototype._unmonitorIntersections=function(en){var er=this._monitoringDocuments.indexOf(en);if(-1!=er){var ei=this.root&&(this.root.ownerDocument||this.root)||ee;if(!this._observationTargets.some(function(ee){var er=ee.element.ownerDocument;if(er==en)return!0;for(;er&&er!=ei;){var es=eo(er);if((er=es&&es.ownerDocument)==en)return!0}return!1})){var es=this._monitoringUnsubscribes[er];if(this._monitoringDocuments.splice(er,1),this._monitoringUnsubscribes.splice(er,1),es(),en!=ei){var eu=eo(en);eu&&this._unmonitorIntersections(eu.ownerDocument)}}}},eu.prototype._unmonitorAllIntersections=function(){var ee=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var en=0;enen.indexOf(this)&&en.push(this)},eu.prototype._unregisterInstance=function(){var ee=en.indexOf(this);-1!=ee&&en.splice(ee,1)},window.IntersectionObserver=eu,window.IntersectionObserverEntry=es}function eo(ee){try{return ee.defaultView&&ee.defaultView.frameElement||null}catch(ee){return null}}function es(ee){this.time=ee.time,this.target=ee.target,this.rootBounds=eg(ee.rootBounds),this.boundingClientRect=eg(ee.boundingClientRect),this.intersectionRect=eg(ee.intersectionRect||ex()),this.isIntersecting=!!ee.intersectionRect;var en=this.boundingClientRect,er=en.width*en.height,ei=this.intersectionRect,eo=ei.width*ei.height;er?this.intersectionRatio=Number((eo/er).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function eu(ee,en){var er=en||{};if("function"!=typeof ee)throw Error("callback must be a function");if(er.root&&1!=er.root.nodeType&&9!=er.root.nodeType)throw Error("root must be a Document or Element");this._checkForIntersections=ed(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=ee,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(er.rootMargin),this.thresholds=this._initThresholds(er.threshold),this.root=er.root||null,this.rootMargin=this._rootMarginValues.map(function(ee){return ee.value+ee.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function ec(){return window.performance&&performance.now&&performance.now()}function ed(ee,en){var er=null;return function(){er||(er=setTimeout(function(){ee(),er=null},en))}}function ef(ee,en,er,ei){"function"==typeof ee.addEventListener?ee.addEventListener(en,er,ei||!1):"function"==typeof ee.attachEvent&&ee.attachEvent("on"+en,er)}function eh(ee,en,er,ei){"function"==typeof ee.removeEventListener?ee.removeEventListener(en,er,ei||!1):"function"==typeof ee.detachEvent&&ee.detachEvent("on"+en,er)}function ep(ee,en){var er=Math.max(ee.top,en.top),ei=Math.min(ee.bottom,en.bottom),eo=Math.max(ee.left,en.left),es=Math.min(ee.right,en.right),eu=es-eo,ec=ei-er;return eu>=0&&ec>=0&&{top:er,bottom:ei,left:eo,right:es,width:eu,height:ec}||null}function em(ee){var en;try{en=ee.getBoundingClientRect()}catch(ee){}return en?(en.width&&en.height||(en={top:en.top,right:en.right,bottom:en.bottom,left:en.left,width:en.right-en.left,height:en.bottom-en.top}),en):ex()}function ex(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function eg(ee){return!ee||"x"in ee?ee:{top:ee.top,y:ee.top,bottom:ee.bottom,left:ee.left,x:ee.left,right:ee.right,width:ee.width,height:ee.height}}function ev(ee,en){var er=en.top-ee.top,ei=en.left-ee.left;return{top:er,left:ei,height:en.height,width:en.width,bottom:er+en.height,right:ei+en.width}}function ey(ee,en){for(var er=en;er;){if(er==ee)return!0;er=eb(er)}return!1}function eb(en){var er=en.parentNode;return 9==en.nodeType&&en!=ee?eo(en):(er&&er.assignedSlot&&(er=er.assignedSlot.parentNode),er&&11==er.nodeType&&er.host)?er.host:er}function ew(ee){return ee&&9===ee.nodeType}}()},9073:function(ee,en,er){"use strict";var ei=er(2337);function eo(ee){if(Array.isArray(ee))return -1!==ee.indexOf("ssh")||-1!==ee.indexOf("rsync");if("string"!=typeof ee)return!1;var en=ei(ee);if(ee=ee.substring(ee.indexOf("://")+3),eo(en))return!0;var er=RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!ee.match(er)&&ee.indexOf("@")-1}function eQ(ee,en){var er=this.__data__,ei=e5(er,ee);return ei<0?er.push([ee,en]):er[ei][1]=en,this}function eJ(ee){var en=-1,er=ee?ee.length:0;for(this.clear();++en{}).then(()=>{if(ee.parentElement&&ee.isConnected){if("blur"===en&&eo(!0),null==er?void 0:er.current){let en=new Event("load");Object.defineProperty(en,"target",{writable:!1,value:ee});let ei=!1,eo=!1;er.current({...en,nativeEvent:en,currentTarget:ee,target:ee,isDefaultPrevented:()=>ei,isPropagationStopped:()=>eo,persist:()=>{},preventDefault:()=>{ei=!0,en.preventDefault()},stopPropagation:()=>{eo=!0,en.stopPropagation()}})}(null==ei?void 0:ei.current)&&ei.current(ee)}})}function ev(ee){let[en,er]=es.version.split("."),ei=parseInt(en,10),eo=parseInt(er,10);return ei>18||18===ei&&eo>=3?{fetchPriority:ee}:{fetchpriority:ee}}let ey=(0,es.forwardRef)((ee,en)=>{let{src:er,srcSet:ei,sizes:eo,height:eu,width:ec,decoding:ed,className:ef,style:eh,fetchPriority:ep,placeholder:em,loading:ex,unoptimized:ey,fill:eb,onLoadRef:ew,onLoadingCompleteRef:e_,setBlurComplete:ek,setShowAltText:ej,onLoad:eE,onError:eO,...eT}=ee;return es.default.createElement("img",{...eT,...ev(ep),loading:ex,width:ec,height:eu,decoding:ed,"data-nimg":eb?"fill":"1",className:ef,style:eh,sizes:eo,srcSet:ei,src:er,ref:(0,es.useCallback)(ee=>{en&&("function"==typeof en?en(ee):"object"==typeof en&&(en.current=ee)),ee&&(eO&&(ee.src=ee.src),ee.complete&&eg(ee,em,ew,e_,ek,ey))},[er,em,ew,e_,ek,eO,ey,en]),onLoad:ee=>{let en=ee.currentTarget;eg(en,em,ew,e_,ek,ey)},onError:ee=>{ej(!0),"blur"===em&&ek(!0),eO&&eO(ee)}})});function eb(ee){let{isAppRouter:en,imgAttributes:er}=ee,ei={as:"image",imageSrcSet:er.srcSet,imageSizes:er.sizes,crossOrigin:er.crossOrigin,referrerPolicy:er.referrerPolicy,...ev(er.fetchPriority)};return en?((0,eu.preload)(er.src,ei),null):es.default.createElement(ec.default,null,es.default.createElement("link",{key:"__nimg-"+er.src+er.srcSet+er.sizes,rel:"preload",href:er.srcSet?void 0:er.src,...ei}))}let ew=(0,es.forwardRef)((ee,en)=>{let er=(0,es.useContext)(ep.RouterContext),ei=!er,eo=(0,es.useContext)(eh.ImageConfigContext),eu=(0,es.useMemo)(()=>{let ee=ex||eo||ef.imageConfigDefault,en=[...ee.deviceSizes,...ee.imageSizes].sort((ee,en)=>ee-en),er=ee.deviceSizes.sort((ee,en)=>ee-en);return{...ee,allSizes:en,deviceSizes:er}},[eo]),{onLoad:ec,onLoadingComplete:eg}=ee,ev=(0,es.useRef)(ec);(0,es.useEffect)(()=>{ev.current=ec},[ec]);let ew=(0,es.useRef)(eg);(0,es.useEffect)(()=>{ew.current=eg},[eg]);let[e_,ek]=(0,es.useState)(!1),[ej,eE]=(0,es.useState)(!1),{props:eO,meta:eT}=(0,ed.getImgProps)(ee,{defaultLoader:em.default,imgConf:eu,blurComplete:e_,showAltText:ej});return es.default.createElement(es.default.Fragment,null,es.default.createElement(ey,{...eO,unoptimized:eT.unoptimized,placeholder:eT.placeholder,fill:eT.fill,onLoadRef:ev,onLoadingCompleteRef:ew,setBlurComplete:ek,setShowAltText:eE,ref:en}),eT.priority?es.default.createElement(eb,{isAppRouter:ei,imgAttributes:eO}):null)});("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},5569:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"default",{enumerable:!0,get:function(){return eE}});let ei=er(8754),eo=ei._(er(7294)),es=er(4532),eu=er(3353),ec=er(1410),ed=er(9064),ef=er(370),eh=er(9955),ep=er(4224),em=er(508),ex=er(1516),eg=er(4266),ev=er(3991),ey=new Set;function eb(ee,en,er,ei,eo,es){if(!es&&!(0,eu.isLocalURL)(en))return;if(!ei.bypassPrefetchedCheck){let eo=void 0!==ei.locale?ei.locale:"locale"in ee?ee.locale:void 0,es=en+"%"+er+"%"+eo;if(ey.has(es))return;ey.add(es)}let ec=es?ee.prefetch(en,eo):ee.prefetch(en,er,ei);Promise.resolve(ec).catch(ee=>{})}function ew(ee){let en=ee.currentTarget,er=en.getAttribute("target");return er&&"_self"!==er||ee.metaKey||ee.ctrlKey||ee.shiftKey||ee.altKey||ee.nativeEvent&&2===ee.nativeEvent.which}function e_(ee,en,er,ei,es,ec,ed,ef,eh,ep){let{nodeName:em}=ee.currentTarget,ex="A"===em.toUpperCase();if(ex&&(ew(ee)||!eh&&!(0,eu.isLocalURL)(er)))return;ee.preventDefault();let eg=()=>{let ee=null==ed||ed;"beforePopState"in en?en[es?"replace":"push"](er,ei,{shallow:ec,locale:ef,scroll:ee}):en[es?"replace":"push"](ei||er,{forceOptimisticNavigation:!ep,scroll:ee})};eh?eo.default.startTransition(eg):eg()}function ek(ee){return"string"==typeof ee?ee:(0,ec.formatUrl)(ee)}let ej=eo.default.forwardRef(function(ee,en){let er,ei;let{href:eu,as:ec,children:ey,prefetch:ew=null,passHref:ej,replace:eE,shallow:eO,scroll:eT,locale:eC,onClick:eS,onMouseEnter:eN,onTouchStart:eR,legacyBehavior:eI=!1,...eA}=ee;er=ey,eI&&("string"==typeof er||"number"==typeof er)&&(er=eo.default.createElement("a",null,er));let eP=eo.default.useContext(eh.RouterContext),eL=eo.default.useContext(ep.AppRouterContext),eM=null!=eP?eP:eL,eZ=!eP,eD=!1!==ew,eF=null===ew?ev.PrefetchKind.AUTO:ev.PrefetchKind.FULL,{href:ez,as:e$}=eo.default.useMemo(()=>{if(!eP){let ee=ek(eu);return{href:ee,as:ec?ek(ec):ee}}let[ee,en]=(0,es.resolveHref)(eP,eu,!0);return{href:ee,as:ec?(0,es.resolveHref)(eP,ec):en||ee}},[eP,eu,ec]),eW=eo.default.useRef(ez),eU=eo.default.useRef(e$);eI&&(ei=eo.default.Children.only(er));let eH=eI?ei&&"object"==typeof ei&&ei.ref:en,[eG,eV,eB]=(0,em.useIntersection)({rootMargin:"200px"}),eK=eo.default.useCallback(ee=>{(eU.current!==e$||eW.current!==ez)&&(eB(),eU.current=e$,eW.current=ez),eG(ee),eH&&("function"==typeof eH?eH(ee):"object"==typeof eH&&(eH.current=ee))},[e$,eH,ez,eB,eG]);eo.default.useEffect(()=>{eM&&eV&&eD&&eb(eM,ez,e$,{locale:eC},{kind:eF},eZ)},[e$,ez,eV,eC,eD,null==eP?void 0:eP.locale,eM,eZ,eF]);let eY={ref:eK,onClick(ee){eI||"function"!=typeof eS||eS(ee),eI&&ei.props&&"function"==typeof ei.props.onClick&&ei.props.onClick(ee),eM&&!ee.defaultPrevented&&e_(ee,eM,ez,e$,eE,eO,eT,eC,eZ,eD)},onMouseEnter(ee){eI||"function"!=typeof eN||eN(ee),eI&&ei.props&&"function"==typeof ei.props.onMouseEnter&&ei.props.onMouseEnter(ee),eM&&(eD||!eZ)&&eb(eM,ez,e$,{locale:eC,priority:!0,bypassPrefetchedCheck:!0},{kind:eF},eZ)},onTouchStart(ee){eI||"function"!=typeof eR||eR(ee),eI&&ei.props&&"function"==typeof ei.props.onTouchStart&&ei.props.onTouchStart(ee),eM&&(eD||!eZ)&&eb(eM,ez,e$,{locale:eC,priority:!0,bypassPrefetchedCheck:!0},{kind:eF},eZ)}};if((0,ed.isAbsoluteUrl)(e$))eY.href=e$;else if(!eI||ej||"a"===ei.type&&!("href"in ei.props)){let ee=void 0!==eC?eC:null==eP?void 0:eP.locale,en=(null==eP?void 0:eP.isLocaleDomain)&&(0,ex.getDomainLocale)(e$,ee,null==eP?void 0:eP.locales,null==eP?void 0:eP.domainLocales);eY.href=en||(0,eg.addBasePath)((0,ef.addLocale)(e$,ee,null==eP?void 0:eP.defaultLocale))}return eI?eo.default.cloneElement(ei,eY):eo.default.createElement("a",{...eA,...eY},er)}),eE=ej;("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},508:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"useIntersection",{enumerable:!0,get:function(){return eh}});let ei=er(7294),eo=er(29),es="function"==typeof IntersectionObserver,eu=new Map,ec=[];function ed(ee){let en;let er={root:ee.root||null,margin:ee.rootMargin||""},ei=ec.find(ee=>ee.root===er.root&&ee.margin===er.margin);if(ei&&(en=eu.get(ei)))return en;let eo=new Map,es=new IntersectionObserver(ee=>{ee.forEach(ee=>{let en=eo.get(ee.target),er=ee.isIntersecting||ee.intersectionRatio>0;en&&er&&en(er)})},ee);return en={id:er,observer:es,elements:eo},ec.push(er),eu.set(er,en),en}function ef(ee,en,er){let{id:ei,observer:eo,elements:es}=ed(er);return es.set(ee,en),eo.observe(ee),function(){if(es.delete(ee),eo.unobserve(ee),0===es.size){eo.disconnect(),eu.delete(ei);let ee=ec.findIndex(ee=>ee.root===ei.root&&ee.margin===ei.margin);ee>-1&&ec.splice(ee,1)}}}function eh(ee){let{rootRef:en,rootMargin:er,disabled:eu}=ee,ec=eu||!es,[ed,eh]=(0,ei.useState)(!1),ep=(0,ei.useRef)(null),em=(0,ei.useCallback)(ee=>{ep.current=ee},[]);(0,ei.useEffect)(()=>{if(es){if(ec||ed)return;let ee=ep.current;if(ee&&ee.tagName){let ei=ef(ee,ee=>ee&&eh(ee),{root:null==en?void 0:en.current,rootMargin:er});return ei}}else if(!ed){let ee=(0,eo.requestIdleCallback)(()=>eh(!0));return()=>(0,eo.cancelIdleCallback)(ee)}},[ec,er,en,ed,ep.current]);let ex=(0,ei.useCallback)(()=>{eh(!1)},[]);return[em,ed,ex]}("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},5471:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"getImgProps",{enumerable:!0,get:function(){return ep}}),er(4210);let ei=er(7757),eo=er(3735);function es(ee){return void 0!==ee.default}function eu(ee){return void 0!==ee.src}function ec(ee){return"object"==typeof ee&&(es(ee)||eu(ee))}function ed(ee){return void 0===ee?ee:"number"==typeof ee?Number.isFinite(ee)?ee:NaN:"string"==typeof ee&&/^[0-9]+$/.test(ee)?parseInt(ee,10):NaN}function ef(ee,en,er){let{deviceSizes:ei,allSizes:eo}=ee;if(er){let ee=/(^|\s)(1?\d?\d)vw/g,en=[];for(let ei;ei=ee.exec(er);ei)en.push(parseInt(ei[2]));if(en.length){let ee=.01*Math.min(...en);return{widths:eo.filter(en=>en>=ei[0]*ee),kind:"w"}}return{widths:eo,kind:"w"}}if("number"!=typeof en)return{widths:ei,kind:"w"};let es=[...new Set([en,2*en].map(ee=>eo.find(en=>en>=ee)||eo[eo.length-1]))];return{widths:es,kind:"x"}}function eh(ee){let{config:en,src:er,unoptimized:ei,width:eo,quality:es,sizes:eu,loader:ec}=ee;if(ei)return{src:er,srcSet:void 0,sizes:void 0};let{widths:ed,kind:eh}=ef(en,eo,eu),ep=ed.length-1;return{sizes:eu||"w"!==eh?eu:"100vw",srcSet:ed.map((ee,ei)=>ec({config:en,src:er,quality:es,width:ee})+" "+("w"===eh?ee:ei+1)+eh).join(", "),src:ec({config:en,src:er,quality:es,width:ed[ep]})}}function ep(ee,en){let er,eu,ef,{src:ep,sizes:em,unoptimized:ex=!1,priority:eg=!1,loading:ev,className:ey,quality:eb,width:ew,height:e_,fill:ek=!1,style:ej,onLoad:eE,onLoadingComplete:eO,placeholder:eT="empty",blurDataURL:eC,fetchPriority:eS,layout:eN,objectFit:eR,objectPosition:eI,lazyBoundary:eA,lazyRoot:eP,...eL}=ee,{imgConf:eM,showAltText:eZ,blurComplete:eD,defaultLoader:eF}=en,ez=eM||eo.imageConfigDefault;if("allSizes"in ez)er=ez;else{let ee=[...ez.deviceSizes,...ez.imageSizes].sort((ee,en)=>ee-en),en=ez.deviceSizes.sort((ee,en)=>ee-en);er={...ez,allSizes:ee,deviceSizes:en}}let e$=eL.loader||eF;delete eL.loader,delete eL.srcSet;let eW="__next_img_default"in e$;if(eW){if("custom"===er.loader)throw Error('Image with src "'+ep+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let ee=e$;e$=en=>{let{config:er,...ei}=en;return ee(ei)}}if(eN){"fill"===eN&&(ek=!0);let ee={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},en={responsive:"100vw",fill:"100vw"},er=ee[eN];er&&(ej={...ej,...er});let ei=en[eN];ei&&!em&&(em=ei)}let eU="",eH=ed(ew),eG=ed(e_);if(ec(ep)){let ee=es(ep)?ep.default:ep;if(!ee.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(ee));if(!ee.height||!ee.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(ee));if(eu=ee.blurWidth,ef=ee.blurHeight,eC=eC||ee.blurDataURL,eU=ee.src,!ek){if(eH||eG){if(eH&&!eG){let en=eH/ee.width;eG=Math.round(ee.height*en)}else if(!eH&&eG){let en=eG/ee.height;eH=Math.round(ee.width*en)}}else eH=ee.width,eG=ee.height}}let eV=!eg&&("lazy"===ev||void 0===ev);(!(ep="string"==typeof ep?ep:eU)||ep.startsWith("data:")||ep.startsWith("blob:"))&&(ex=!0,eV=!1),er.unoptimized&&(ex=!0),eW&&ep.endsWith(".svg")&&!er.dangerouslyAllowSVG&&(ex=!0),eg&&(eS="high");let eB=ed(eb),eK=Object.assign(ek?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:eR,objectPosition:eI}:{},eZ?{}:{color:"transparent"},ej),eY="blur"===eT&&eC&&!eD?{backgroundSize:eK.objectFit||"cover",backgroundPosition:eK.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,ei.getImageBlurSvg)({widthInt:eH,heightInt:eG,blurWidth:eu,blurHeight:ef,blurDataURL:eC,objectFit:eK.objectFit})+'")'}:{},eQ=eh({config:er,src:ep,unoptimized:ex,width:eH,quality:eB,sizes:em,loader:e$}),eJ={...eL,loading:eV?"lazy":ev,fetchPriority:eS,width:eH,height:eG,decoding:"async",className:ey,style:{...eK,...eY},sizes:eQ.sizes,srcSet:eQ.srcSet,src:eQ.src},eX={unoptimized:ex,priority:eg,placeholder:eT,fill:ek};return{props:eJ,meta:eX}}},7757:function(ee,en){"use strict";function er(ee){let{widthInt:en,heightInt:er,blurWidth:ei,blurHeight:eo,blurDataURL:es,objectFit:eu}=ee,ec=ei&&eo?"1":"20",ed=ei||en,ef=eo||er,eh=es.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";if(ed&&ef)return"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+ed+" "+ef+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+ec+"'/%3E"+eh+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+es+"'/%3E%3C/svg%3E";let ep="contain"===eu?"xMidYMid":"cover"===eu?"xMidYMid slice":"none";return"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+ep+"' x='0' y='0' height='100%25' width='100%25' href='"+es+"'/%3E%3C/svg%3E"}Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"getImageBlurSvg",{enumerable:!0,get:function(){return er}})},2555:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),function(ee,en){for(var er in en)Object.defineProperty(ee,er,{enumerable:!0,get:en[er]})}(en,{default:function(){return ef},unstable_getImgProps:function(){return ed}});let ei=er(8754),eo=er(5471),es=er(4210),eu=er(8872),ec=ei._(er(7746)),ed=ee=>{(0,es.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:en}=(0,eo.getImgProps)(ee,{defaultLoader:ec.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/serverless-iiif/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[ee,er]of Object.entries(en))void 0===er&&delete en[ee];return{props:en}},ef=eu.Image},7746:function(ee,en){"use strict";function er(ee){let{config:en,src:er,width:ei,quality:eo}=ee;return en.path+"?url="+encodeURIComponent(er)+"&w="+ei+"&q="+(eo||75)}Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"default",{enumerable:!0,get:function(){return ei}}),er.__next_img_default=!0;let ei=er},9578:function(ee,en,er){var ei,eo=er(3454);er(2350);var es=er(7294),eu=function(ee){return ee&&"object"==typeof ee&&"default"in ee?ee:{default:ee}}(es);function ec(ee,en){for(var er=0;er>>0},eg={};function ev(ee,en){if(!en)return"jsx-"+ee;var er=String(en),ei=ee+er;return eg[ei]||(eg[ei]="jsx-"+ex(ee+"-"+er)),eg[ei]}function ey(ee,en){var er=/__jsx-style-dynamic-selector/g,ei=ee+en;return eg[ei]||(eg[ei]=en.replace(er,ee)),eg[ei]}function eb(ee,en){return void 0===en&&(en={}),ee.map(function(ee){var er=ee[0],ei=ee[1];return eu.default.createElement("style",{id:"__"+er,key:"__"+er,nonce:en.nonce?en.nonce:void 0,dangerouslySetInnerHTML:{__html:ei}})})}var ew=function(){function ee(ee){var en=void 0===ee?{}:ee,er=en.styleSheet,ei=void 0===er?null:er,eo=en.optimizeForSpeed,es=void 0!==eo&&eo;this._sheet=ei||new ep({name:"styled-jsx",optimizeForSpeed:es}),this._sheet.inject(),ei&&"boolean"==typeof es&&(this._sheet.setOptimizeForSpeed(es),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var en=ee.prototype;return en.add=function(ee){var en=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(ee.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(ee,en){return ee[en]=0,ee},{}));var er=this.getIdAndRules(ee),ei=er.styleId,eo=er.rules;if(ei in this._instancesCounts){this._instancesCounts[ei]+=1;return}var es=eo.map(function(ee){return en._sheet.insertRule(ee)}).filter(function(ee){return -1!==ee});this._indices[ei]=es,this._instancesCounts[ei]=1},en.remove=function(ee){var en=this,er=this.getIdAndRules(ee).styleId;if(e_(er in this._instancesCounts,"styleId: `"+er+"` not found"),this._instancesCounts[er]-=1,this._instancesCounts[er]<1){var ei=this._fromServer&&this._fromServer[er];ei?(ei.parentNode.removeChild(ei),delete this._fromServer[er]):(this._indices[er].forEach(function(ee){return en._sheet.deleteRule(ee)}),delete this._indices[er]),delete this._instancesCounts[er]}},en.update=function(ee,en){this.add(en),this.remove(ee)},en.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},en.cssRules=function(){var ee=this,en=this._fromServer?Object.keys(this._fromServer).map(function(en){return[en,ee._fromServer[en]]}):[],er=this._sheet.cssRules();return en.concat(Object.keys(this._indices).map(function(en){return[en,ee._indices[en].map(function(ee){return er[ee].cssText}).join(ee._optimizeForSpeed?"":"\n")]}).filter(function(ee){return!!ee[1]}))},en.styles=function(ee){return eb(this.cssRules(),ee)},en.getIdAndRules=function(ee){var en=ee.children,er=ee.dynamic,ei=ee.id;if(er){var eo=ev(ei,er);return{styleId:eo,rules:Array.isArray(en)?en.map(function(ee){return ey(eo,ee)}):[ey(eo,en)]}}return{styleId:ev(ei),rules:Array.isArray(en)?en:[en]}},en.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(ee,en){return ee[en.id.slice(2)]=en,ee},{})},ee}();function e_(ee,en){if(!ee)throw Error("StyleSheetRegistry: "+en+".")}var ek=es.createContext(null);function ej(){return new ew}function eE(ee){var en=ee.registry,er=ee.children,ei=es.useContext(ek),eo=es.useState(function(){return ei||en||ej()})[0];return eu.default.createElement(ek.Provider,{value:eo},er)}function eO(){return es.useContext(ek)}ek.displayName="StyleSheetContext";var eT=eu.default.useInsertionEffect||eu.default.useLayoutEffect,eC=ej();function eS(ee){var en=eC||eO();return en&&eT(function(){return en.add(ee),function(){en.remove(ee)}},[ee.id,String(ee.dynamic)]),null}eS.dynamic=function(ee){return ee.map(function(ee){return ev(ee[0],ee[1])}).join(" ")},ei=eE,ei=ej,en.style=eS},6465:function(ee,en,er){"use strict";ee.exports=er(9578).style},9966:function(){},1864:function(ee){var en="/";!function(){"use strict";var er={114:function(ee){function en(ee){if("string"!=typeof ee)throw TypeError("Path must be a string. Received "+JSON.stringify(ee))}function er(ee,en){for(var er,ei="",eo=0,es=-1,eu=0,ec=0;ec<=ee.length;++ec){if(ec2){var ed=ei.lastIndexOf("/");if(ed!==ei.length-1){-1===ed?(ei="",eo=0):eo=(ei=ei.slice(0,ed)).length-1-ei.lastIndexOf("/"),es=ec,eu=0;continue}}else if(2===ei.length||1===ei.length){ei="",eo=0,es=ec,eu=0;continue}}en&&(ei.length>0?ei+="/..":ei="..",eo=2)}else ei.length>0?ei+="/"+ee.slice(es+1,ec):ei=ee.slice(es+1,ec),eo=ec-es-1;es=ec,eu=0}else 46===er&&-1!==eu?++eu:eu=-1}return ei}function ei(ee,en){var er=en.dir||en.root,ei=en.base||(en.name||"")+(en.ext||"");return er?er===en.root?er+ei:er+ee+ei:ei}var eo={resolve:function(){for(var ee,ei,eo="",es=!1,eu=arguments.length-1;eu>=-1&&!es;eu--)eu>=0?ei=arguments[eu]:(void 0===ee&&(ee=""),ei=ee),en(ei),0!==ei.length&&(eo=ei+"/"+eo,es=47===ei.charCodeAt(0));return(eo=er(eo,!es),es)?eo.length>0?"/"+eo:"/":eo.length>0?eo:"."},normalize:function(ee){if(en(ee),0===ee.length)return".";var ei=47===ee.charCodeAt(0),eo=47===ee.charCodeAt(ee.length-1);return(0!==(ee=er(ee,!ei)).length||ei||(ee="."),ee.length>0&&eo&&(ee+="/"),ei)?"/"+ee:ee},isAbsolute:function(ee){return en(ee),ee.length>0&&47===ee.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var ee,er=0;er0&&(void 0===ee?ee=ei:ee+="/"+ei)}return void 0===ee?".":eo.normalize(ee)},relative:function(ee,er){if(en(ee),en(er),ee===er||(ee=eo.resolve(ee))===(er=eo.resolve(er)))return"";for(var ei=1;eief){if(47===er.charCodeAt(ec+ep))return er.slice(ec+ep+1);if(0===ep)return er.slice(ec+ep)}else eu>ef&&(47===ee.charCodeAt(ei+ep)?eh=ep:0===ep&&(eh=0));break}var em=ee.charCodeAt(ei+ep);if(em!==er.charCodeAt(ec+ep))break;47===em&&(eh=ep)}var ex="";for(ep=ei+eh+1;ep<=es;++ep)(ep===es||47===ee.charCodeAt(ep))&&(0===ex.length?ex+="..":ex+="/..");return ex.length>0?ex+er.slice(ec+eh):(ec+=eh,47===er.charCodeAt(ec)&&++ec,er.slice(ec))},_makeLong:function(ee){return ee},dirname:function(ee){if(en(ee),0===ee.length)return".";for(var er=ee.charCodeAt(0),ei=47===er,eo=-1,es=!0,eu=ee.length-1;eu>=1;--eu)if(47===(er=ee.charCodeAt(eu))){if(!es){eo=eu;break}}else es=!1;return -1===eo?ei?"/":".":ei&&1===eo?"//":ee.slice(0,eo)},basename:function(ee,er){if(void 0!==er&&"string"!=typeof er)throw TypeError('"ext" argument must be a string');en(ee);var ei,eo=0,es=-1,eu=!0;if(void 0!==er&&er.length>0&&er.length<=ee.length){if(er.length===ee.length&&er===ee)return"";var ec=er.length-1,ed=-1;for(ei=ee.length-1;ei>=0;--ei){var ef=ee.charCodeAt(ei);if(47===ef){if(!eu){eo=ei+1;break}}else -1===ed&&(eu=!1,ed=ei+1),ec>=0&&(ef===er.charCodeAt(ec)?-1==--ec&&(es=ei):(ec=-1,es=ed))}return eo===es?es=ed:-1===es&&(es=ee.length),ee.slice(eo,es)}for(ei=ee.length-1;ei>=0;--ei)if(47===ee.charCodeAt(ei)){if(!eu){eo=ei+1;break}}else -1===es&&(eu=!1,es=ei+1);return -1===es?"":ee.slice(eo,es)},extname:function(ee){en(ee);for(var er=-1,ei=0,eo=-1,es=!0,eu=0,ec=ee.length-1;ec>=0;--ec){var ed=ee.charCodeAt(ec);if(47===ed){if(!es){ei=ec+1;break}continue}-1===eo&&(es=!1,eo=ec+1),46===ed?-1===er?er=ec:1!==eu&&(eu=1):-1!==er&&(eu=-1)}return -1===er||-1===eo||0===eu||1===eu&&er===eo-1&&er===ei+1?"":ee.slice(er,eo)},format:function(ee){if(null===ee||"object"!=typeof ee)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ee);return ei("/",ee)},parse:function(ee){en(ee);var er,ei={root:"",dir:"",base:"",ext:"",name:""};if(0===ee.length)return ei;var eo=ee.charCodeAt(0),es=47===eo;es?(ei.root="/",er=1):er=0;for(var eu=-1,ec=0,ed=-1,ef=!0,eh=ee.length-1,ep=0;eh>=er;--eh){if(47===(eo=ee.charCodeAt(eh))){if(!ef){ec=eh+1;break}continue}-1===ed&&(ef=!1,ed=eh+1),46===eo?-1===eu?eu=eh:1!==ep&&(ep=1):-1!==eu&&(ep=-1)}return -1===eu||-1===ed||0===ep||1===ep&&eu===ed-1&&eu===ec+1?-1!==ed&&(0===ec&&es?ei.base=ei.name=ee.slice(1,ed):ei.base=ei.name=ee.slice(ec,ed)):(0===ec&&es?(ei.name=ee.slice(1,eu),ei.base=ee.slice(1,ed)):(ei.name=ee.slice(ec,eu),ei.base=ee.slice(ec,ed)),ei.ext=ee.slice(eu,ed)),ec>0?ei.dir=ee.slice(0,ec-1):es&&(ei.dir="/"),ei},sep:"/",delimiter:":",win32:null,posix:null};eo.posix=eo,ee.exports=eo}},ei={};function eo(ee){var en=ei[ee];if(void 0!==en)return en.exports;var es=ei[ee]={exports:{}},eu=!0;try{er[ee](es,es.exports,eo),eu=!1}finally{eu&&delete ei[ee]}return es.exports}eo.ab=en+"/";var es=eo(114);ee.exports=es}()},7663:function(ee){var en="/";!function(){var er={229:function(ee){var en,er,ei,eo=ee.exports={};function es(){throw Error("setTimeout has not been defined")}function eu(){throw Error("clearTimeout has not been defined")}function ec(ee){if(en===setTimeout)return setTimeout(ee,0);if((en===es||!en)&&setTimeout)return en=setTimeout,setTimeout(ee,0);try{return en(ee,0)}catch(er){try{return en.call(null,ee,0)}catch(er){return en.call(this,ee,0)}}}function ed(ee){if(er===clearTimeout)return clearTimeout(ee);if((er===eu||!er)&&clearTimeout)return er=clearTimeout,clearTimeout(ee);try{return er(ee)}catch(en){try{return er.call(null,ee)}catch(en){return er.call(this,ee)}}}!function(){try{en="function"==typeof setTimeout?setTimeout:es}catch(ee){en=es}try{er="function"==typeof clearTimeout?clearTimeout:eu}catch(ee){er=eu}}();var ef=[],eh=!1,ep=-1;function em(){eh&&ei&&(eh=!1,ei.length?ef=ei.concat(ef):ep=-1,ef.length&&ex())}function ex(){if(!eh){var ee=ec(em);eh=!0;for(var en=ef.length;en;){for(ei=ef,ef=[];++ep1)for(var er=1;er{en(!0)},[]),ee}var eE=er(7222),eO="https://nextra.vercel.app",eT=()=>{let{locale:ee=eE.ZW,asPath:en,route:er}=(0,ew.useRouter)();return(0,e_.useMemo)(()=>{let ei=eE.hV.has(er)?er:en,{pathname:eo}=new URL(ei,eO),es=ee?eo.replace(RegExp(`\\.${ee}(\\/|$)`),"$1"):eo;return es.replace(/\/index(\/|$)/,"$1").replace(/\/$/,"")||"/"},[en,ee,er])},eC=er(1151),eS=er(4861);!function(ee){function en(ee){}function er(ee){throw Error()}function ei(ee,en=" | "){return ee.map(ee=>"string"==typeof ee?`'${ee}'`:ee).join(en)}ee.assertEqual=ee=>ee,ee.assertIs=en,ee.assertNever=er,ee.arrayToEnum=ee=>{let en={};for(let er of ee)en[er]=er;return en},ee.getValidEnumValues=en=>{let er=ee.objectKeys(en).filter(ee=>"number"!=typeof en[en[ee]]),ei={};for(let ee of er)ei[ee]=en[ee];return ee.objectValues(ei)},ee.objectValues=en=>ee.objectKeys(en).map(function(ee){return en[ee]}),ee.objectKeys="function"==typeof Object.keys?ee=>Object.keys(ee):ee=>{let en=[];for(let er in ee)Object.prototype.hasOwnProperty.call(ee,er)&&en.push(er);return en},ee.find=(ee,en)=>{for(let er of ee)if(en(er))return er},ee.isInteger="function"==typeof Number.isInteger?ee=>Number.isInteger(ee):ee=>"number"==typeof ee&&isFinite(ee)&&Math.floor(ee)===ee,ee.joinValues=ei,ee.jsonStringifyReplacer=(ee,en)=>"bigint"==typeof en?en.toString():en}(ex||(ex={})),function(ee){ee.mergeShapes=(ee,en)=>({...ee,...en})}(eg||(eg={}));let eN=ex.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),eR=ee=>{let en=typeof ee;switch(en){case"undefined":return eN.undefined;case"string":return eN.string;case"number":return isNaN(ee)?eN.nan:eN.number;case"boolean":return eN.boolean;case"function":return eN.function;case"bigint":return eN.bigint;case"symbol":return eN.symbol;case"object":if(Array.isArray(ee))return eN.array;if(null===ee)return eN.null;if(ee.then&&"function"==typeof ee.then&&ee.catch&&"function"==typeof ee.catch)return eN.promise;if("undefined"!=typeof Map&&ee instanceof Map)return eN.map;if("undefined"!=typeof Set&&ee instanceof Set)return eN.set;if("undefined"!=typeof Date&&ee instanceof Date)return eN.date;return eN.object;default:return eN.unknown}},eI=ex.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),eA=ee=>{let en=JSON.stringify(ee,null,2);return en.replace(/"([^"]+)":/g,"$1:")};class eP extends Error{constructor(ee){super(),this.issues=[],this.addIssue=ee=>{this.issues=[...this.issues,ee]},this.addIssues=(ee=[])=>{this.issues=[...this.issues,...ee]};let en=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,en):this.__proto__=en,this.name="ZodError",this.issues=ee}get errors(){return this.issues}format(ee){let en=ee||function(ee){return ee.message},er={_errors:[]},ei=ee=>{for(let eo of ee.issues)if("invalid_union"===eo.code)eo.unionErrors.map(ei);else if("invalid_return_type"===eo.code)ei(eo.returnTypeError);else if("invalid_arguments"===eo.code)ei(eo.argumentsError);else if(0===eo.path.length)er._errors.push(en(eo));else{let ee=er,ei=0;for(;eiee.message){let en={},er=[];for(let ei of this.issues)ei.path.length>0?(en[ei.path[0]]=en[ei.path[0]]||[],en[ei.path[0]].push(ee(ei))):er.push(ee(ei));return{formErrors:er,fieldErrors:en}}get formErrors(){return this.flatten()}}eP.create=ee=>{let en=new eP(ee);return en};let eL=(ee,en)=>{let er;switch(ee.code){case eI.invalid_type:er=ee.received===eN.undefined?"Required":`Expected ${ee.expected}, received ${ee.received}`;break;case eI.invalid_literal:er=`Invalid literal value, expected ${JSON.stringify(ee.expected,ex.jsonStringifyReplacer)}`;break;case eI.unrecognized_keys:er=`Unrecognized key(s) in object: ${ex.joinValues(ee.keys,", ")}`;break;case eI.invalid_union:er="Invalid input";break;case eI.invalid_union_discriminator:er=`Invalid discriminator value. Expected ${ex.joinValues(ee.options)}`;break;case eI.invalid_enum_value:er=`Invalid enum value. Expected ${ex.joinValues(ee.options)}, received '${ee.received}'`;break;case eI.invalid_arguments:er="Invalid function arguments";break;case eI.invalid_return_type:er="Invalid function return type";break;case eI.invalid_date:er="Invalid date";break;case eI.invalid_string:"object"==typeof ee.validation?"includes"in ee.validation?(er=`Invalid input: must include "${ee.validation.includes}"`,"number"==typeof ee.validation.position&&(er=`${er} at one or more positions greater than or equal to ${ee.validation.position}`)):"startsWith"in ee.validation?er=`Invalid input: must start with "${ee.validation.startsWith}"`:"endsWith"in ee.validation?er=`Invalid input: must end with "${ee.validation.endsWith}"`:ex.assertNever(ee.validation):er="regex"!==ee.validation?`Invalid ${ee.validation}`:"Invalid";break;case eI.too_small:er="array"===ee.type?`Array must contain ${ee.exact?"exactly":ee.inclusive?"at least":"more than"} ${ee.minimum} element(s)`:"string"===ee.type?`String must contain ${ee.exact?"exactly":ee.inclusive?"at least":"over"} ${ee.minimum} character(s)`:"number"===ee.type?`Number must be ${ee.exact?"exactly equal to ":ee.inclusive?"greater than or equal to ":"greater than "}${ee.minimum}`:"date"===ee.type?`Date must be ${ee.exact?"exactly equal to ":ee.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(ee.minimum))}`:"Invalid input";break;case eI.too_big:er="array"===ee.type?`Array must contain ${ee.exact?"exactly":ee.inclusive?"at most":"less than"} ${ee.maximum} element(s)`:"string"===ee.type?`String must contain ${ee.exact?"exactly":ee.inclusive?"at most":"under"} ${ee.maximum} character(s)`:"number"===ee.type?`Number must be ${ee.exact?"exactly":ee.inclusive?"less than or equal to":"less than"} ${ee.maximum}`:"bigint"===ee.type?`BigInt must be ${ee.exact?"exactly":ee.inclusive?"less than or equal to":"less than"} ${ee.maximum}`:"date"===ee.type?`Date must be ${ee.exact?"exactly":ee.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(ee.maximum))}`:"Invalid input";break;case eI.custom:er="Invalid input";break;case eI.invalid_intersection_types:er="Intersection results could not be merged";break;case eI.not_multiple_of:er=`Number must be a multiple of ${ee.multipleOf}`;break;case eI.not_finite:er="Number must be finite";break;default:er=en.defaultError,ex.assertNever(ee)}return{message:er}},eM=eL;function eZ(ee){eM=ee}function eD(){return eM}let eF=ee=>{let{data:en,path:er,errorMaps:ei,issueData:eo}=ee,es=[...er,...eo.path||[]],eu={...eo,path:es},ec="",ed=ei.filter(ee=>!!ee).slice().reverse();for(let ee of ed)ec=ee(eu,{data:en,defaultError:ec}).message;return{...eo,path:es,message:eo.message||ec}},ez=[];function e$(ee,en){let er=eF({issueData:en,data:ee.data,path:ee.path,errorMaps:[ee.common.contextualErrorMap,ee.schemaErrorMap,eD(),eL].filter(ee=>!!ee)});ee.common.issues.push(er)}class eW{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(ee,en){let er=[];for(let ei of en){if("aborted"===ei.status)return eU;"dirty"===ei.status&&ee.dirty(),er.push(ei.value)}return{status:ee.value,value:er}}static async mergeObjectAsync(ee,en){let er=[];for(let ee of en)er.push({key:await ee.key,value:await ee.value});return eW.mergeObjectSync(ee,er)}static mergeObjectSync(ee,en){let er={};for(let ei of en){let{key:en,value:eo}=ei;if("aborted"===en.status||"aborted"===eo.status)return eU;"dirty"===en.status&&ee.dirty(),"dirty"===eo.status&&ee.dirty(),(void 0!==eo.value||ei.alwaysSet)&&(er[en.value]=eo.value)}return{status:ee.value,value:er}}}let eU=Object.freeze({status:"aborted"}),eH=ee=>({status:"dirty",value:ee}),eG=ee=>({status:"valid",value:ee}),eV=ee=>"aborted"===ee.status,eB=ee=>"dirty"===ee.status,eK=ee=>"valid"===ee.status,eY=ee=>"undefined"!=typeof Promise&&ee instanceof Promise;!function(ee){ee.errToObj=ee=>"string"==typeof ee?{message:ee}:ee||{},ee.toString=ee=>"string"==typeof ee?ee:null==ee?void 0:ee.message}(ev||(ev={}));class eQ{constructor(ee,en,er,ei){this._cachedPath=[],this.parent=ee,this.data=en,this._path=er,this._key=ei}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let eJ=(ee,en)=>{if(eK(en))return{success:!0,data:en.value};if(!ee.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let en=new eP(ee.common.issues);return this._error=en,this._error}}};function eX(ee){if(!ee)return{};let{errorMap:en,invalid_type_error:er,required_error:ei,description:eo}=ee;if(en&&(er||ei))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(en)return{errorMap:en,description:eo};let es=(ee,en)=>"invalid_type"!==ee.code?{message:en.defaultError}:void 0===en.data?{message:null!=ei?ei:en.defaultError}:{message:null!=er?er:en.defaultError};return{errorMap:es,description:eo}}class e0{constructor(ee){this.spa=this.safeParseAsync,this._def=ee,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(ee){return eR(ee.data)}_getOrReturnCtx(ee,en){return en||{common:ee.parent.common,data:ee.data,parsedType:eR(ee.data),schemaErrorMap:this._def.errorMap,path:ee.path,parent:ee.parent}}_processInputParams(ee){return{status:new eW,ctx:{common:ee.parent.common,data:ee.data,parsedType:eR(ee.data),schemaErrorMap:this._def.errorMap,path:ee.path,parent:ee.parent}}}_parseSync(ee){let en=this._parse(ee);if(eY(en))throw Error("Synchronous parse encountered promise.");return en}_parseAsync(ee){let en=this._parse(ee);return Promise.resolve(en)}parse(ee,en){let er=this.safeParse(ee,en);if(er.success)return er.data;throw er.error}safeParse(ee,en){var er;let ei={common:{issues:[],async:null!==(er=null==en?void 0:en.async)&&void 0!==er&&er,contextualErrorMap:null==en?void 0:en.errorMap},path:(null==en?void 0:en.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:ee,parsedType:eR(ee)},eo=this._parseSync({data:ee,path:ei.path,parent:ei});return eJ(ei,eo)}async parseAsync(ee,en){let er=await this.safeParseAsync(ee,en);if(er.success)return er.data;throw er.error}async safeParseAsync(ee,en){let er={common:{issues:[],contextualErrorMap:null==en?void 0:en.errorMap,async:!0},path:(null==en?void 0:en.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:ee,parsedType:eR(ee)},ei=this._parse({data:ee,path:er.path,parent:er}),eo=await (eY(ei)?ei:Promise.resolve(ei));return eJ(er,eo)}refine(ee,en){let er=ee=>"string"==typeof en||void 0===en?{message:en}:"function"==typeof en?en(ee):en;return this._refinement((en,ei)=>{let eo=ee(en),es=()=>ei.addIssue({code:eI.custom,...er(en)});return"undefined"!=typeof Promise&&eo instanceof Promise?eo.then(ee=>!!ee||(es(),!1)):!!eo||(es(),!1)})}refinement(ee,en){return this._refinement((er,ei)=>!!ee(er)||(ei.addIssue("function"==typeof en?en(er,ei):en),!1))}_refinement(ee){return new tL({schema:this,typeName:ey.ZodEffects,effect:{type:"refinement",refinement:ee}})}superRefine(ee){return this._refinement(ee)}optional(){return tM.create(this,this._def)}nullable(){return tZ.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return tx.create(this,this._def)}promise(){return tP.create(this,this._def)}or(ee){return ty.create([this,ee],this._def)}and(ee){return tk.create(this,ee,this._def)}transform(ee){return new tL({...eX(this._def),schema:this,typeName:ey.ZodEffects,effect:{type:"transform",transform:ee}})}default(ee){let en="function"==typeof ee?ee:()=>ee;return new tD({...eX(this._def),innerType:this,defaultValue:en,typeName:ey.ZodDefault})}brand(){return new tW({typeName:ey.ZodBranded,type:this,...eX(this._def)})}catch(ee){let en="function"==typeof ee?ee:()=>ee;return new tF({...eX(this._def),innerType:this,catchValue:en,typeName:ey.ZodCatch})}describe(ee){let en=this.constructor;return new en({...this._def,description:ee})}pipe(ee){return tU.create(this,ee)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let e1=/^c[^\s-]{8,}$/i,e2=/^[a-z][a-z0-9]*$/,e4=/[0-9A-HJKMNP-TV-Z]{26}/,e5=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,e3=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,e7=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,e6=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,e9=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,e8=ee=>ee.precision?ee.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${ee.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${ee.precision}}Z$`):0===ee.precision?ee.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):ee.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function tt(ee,en){return!!(("v4"===en||!en)&&e6.test(ee)||("v6"===en||!en)&&e9.test(ee))}class tn extends e0{constructor(){super(...arguments),this._regex=(ee,en,er)=>this.refinement(en=>ee.test(en),{validation:en,code:eI.invalid_string,...ev.errToObj(er)}),this.nonempty=ee=>this.min(1,ev.errToObj(ee)),this.trim=()=>new tn({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new tn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new tn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(ee){let en;this._def.coerce&&(ee.data=String(ee.data));let er=this._getType(ee);if(er!==eN.string){let en=this._getOrReturnCtx(ee);return e$(en,{code:eI.invalid_type,expected:eN.string,received:en.parsedType}),eU}let ei=new eW;for(let er of this._def.checks)if("min"===er.kind)ee.data.lengther.value&&(e$(en=this._getOrReturnCtx(ee,en),{code:eI.too_big,maximum:er.value,type:"string",inclusive:!0,exact:!1,message:er.message}),ei.dirty());else if("length"===er.kind){let eo=ee.data.length>er.value,es=ee.data.length"datetime"===ee.kind)}get isEmail(){return!!this._def.checks.find(ee=>"email"===ee.kind)}get isURL(){return!!this._def.checks.find(ee=>"url"===ee.kind)}get isEmoji(){return!!this._def.checks.find(ee=>"emoji"===ee.kind)}get isUUID(){return!!this._def.checks.find(ee=>"uuid"===ee.kind)}get isCUID(){return!!this._def.checks.find(ee=>"cuid"===ee.kind)}get isCUID2(){return!!this._def.checks.find(ee=>"cuid2"===ee.kind)}get isULID(){return!!this._def.checks.find(ee=>"ulid"===ee.kind)}get isIP(){return!!this._def.checks.find(ee=>"ip"===ee.kind)}get minLength(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxLength(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.valueei?er:ei,es=parseInt(ee.toFixed(eo).replace(".","")),eu=parseInt(en.toFixed(eo).replace(".",""));return es%eu/Math.pow(10,eo)}tn.create=ee=>{var en;return new tn({checks:[],typeName:ey.ZodString,coerce:null!==(en=null==ee?void 0:ee.coerce)&&void 0!==en&&en,...eX(ee)})};class ti extends e0{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(ee){let en;this._def.coerce&&(ee.data=Number(ee.data));let er=this._getType(ee);if(er!==eN.number){let en=this._getOrReturnCtx(ee);return e$(en,{code:eI.invalid_type,expected:eN.number,received:en.parsedType}),eU}let ei=new eW;for(let er of this._def.checks)if("int"===er.kind)ex.isInteger(ee.data)||(e$(en=this._getOrReturnCtx(ee,en),{code:eI.invalid_type,expected:"integer",received:"float",message:er.message}),ei.dirty());else if("min"===er.kind){let eo=er.inclusive?ee.dataer.value:ee.data>=er.value;eo&&(e$(en=this._getOrReturnCtx(ee,en),{code:eI.too_big,maximum:er.value,type:"number",inclusive:er.inclusive,exact:!1,message:er.message}),ei.dirty())}else"multipleOf"===er.kind?0!==tr(ee.data,er.value)&&(e$(en=this._getOrReturnCtx(ee,en),{code:eI.not_multiple_of,multipleOf:er.value,message:er.message}),ei.dirty()):"finite"===er.kind?Number.isFinite(ee.data)||(e$(en=this._getOrReturnCtx(ee,en),{code:eI.not_finite,message:er.message}),ei.dirty()):ex.assertNever(er);return{status:ei.value,value:ee.data}}gte(ee,en){return this.setLimit("min",ee,!0,ev.toString(en))}gt(ee,en){return this.setLimit("min",ee,!1,ev.toString(en))}lte(ee,en){return this.setLimit("max",ee,!0,ev.toString(en))}lt(ee,en){return this.setLimit("max",ee,!1,ev.toString(en))}setLimit(ee,en,er,ei){return new ti({...this._def,checks:[...this._def.checks,{kind:ee,value:en,inclusive:er,message:ev.toString(ei)}]})}_addCheck(ee){return new ti({...this._def,checks:[...this._def.checks,ee]})}int(ee){return this._addCheck({kind:"int",message:ev.toString(ee)})}positive(ee){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ev.toString(ee)})}negative(ee){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ev.toString(ee)})}nonpositive(ee){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ev.toString(ee)})}nonnegative(ee){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ev.toString(ee)})}multipleOf(ee,en){return this._addCheck({kind:"multipleOf",value:ee,message:ev.toString(en)})}finite(ee){return this._addCheck({kind:"finite",message:ev.toString(ee)})}safe(ee){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ev.toString(ee)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ev.toString(ee)})}get minValue(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxValue(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.value"int"===ee.kind||"multipleOf"===ee.kind&&ex.isInteger(ee.value))}get isFinite(){let ee=null,en=null;for(let er of this._def.checks){if("finite"===er.kind||"int"===er.kind||"multipleOf"===er.kind)return!0;"min"===er.kind?(null===en||er.value>en)&&(en=er.value):"max"===er.kind&&(null===ee||er.valuenew ti({checks:[],typeName:ey.ZodNumber,coerce:(null==ee?void 0:ee.coerce)||!1,...eX(ee)});class to extends e0{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(ee){let en;this._def.coerce&&(ee.data=BigInt(ee.data));let er=this._getType(ee);if(er!==eN.bigint){let en=this._getOrReturnCtx(ee);return e$(en,{code:eI.invalid_type,expected:eN.bigint,received:en.parsedType}),eU}let ei=new eW;for(let er of this._def.checks)if("min"===er.kind){let eo=er.inclusive?ee.dataer.value:ee.data>=er.value;eo&&(e$(en=this._getOrReturnCtx(ee,en),{code:eI.too_big,type:"bigint",maximum:er.value,inclusive:er.inclusive,message:er.message}),ei.dirty())}else"multipleOf"===er.kind?ee.data%er.value!==BigInt(0)&&(e$(en=this._getOrReturnCtx(ee,en),{code:eI.not_multiple_of,multipleOf:er.value,message:er.message}),ei.dirty()):ex.assertNever(er);return{status:ei.value,value:ee.data}}gte(ee,en){return this.setLimit("min",ee,!0,ev.toString(en))}gt(ee,en){return this.setLimit("min",ee,!1,ev.toString(en))}lte(ee,en){return this.setLimit("max",ee,!0,ev.toString(en))}lt(ee,en){return this.setLimit("max",ee,!1,ev.toString(en))}setLimit(ee,en,er,ei){return new to({...this._def,checks:[...this._def.checks,{kind:ee,value:en,inclusive:er,message:ev.toString(ei)}]})}_addCheck(ee){return new to({...this._def,checks:[...this._def.checks,ee]})}positive(ee){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ev.toString(ee)})}negative(ee){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ev.toString(ee)})}nonpositive(ee){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ev.toString(ee)})}nonnegative(ee){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ev.toString(ee)})}multipleOf(ee,en){return this._addCheck({kind:"multipleOf",value:ee,message:ev.toString(en)})}get minValue(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxValue(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.value{var en;return new to({checks:[],typeName:ey.ZodBigInt,coerce:null!==(en=null==ee?void 0:ee.coerce)&&void 0!==en&&en,...eX(ee)})};class ts extends e0{_parse(ee){this._def.coerce&&(ee.data=!!ee.data);let en=this._getType(ee);if(en!==eN.boolean){let en=this._getOrReturnCtx(ee);return e$(en,{code:eI.invalid_type,expected:eN.boolean,received:en.parsedType}),eU}return eG(ee.data)}}ts.create=ee=>new ts({typeName:ey.ZodBoolean,coerce:(null==ee?void 0:ee.coerce)||!1,...eX(ee)});class tl extends e0{_parse(ee){let en;this._def.coerce&&(ee.data=new Date(ee.data));let er=this._getType(ee);if(er!==eN.date){let en=this._getOrReturnCtx(ee);return e$(en,{code:eI.invalid_type,expected:eN.date,received:en.parsedType}),eU}if(isNaN(ee.data.getTime())){let en=this._getOrReturnCtx(ee);return e$(en,{code:eI.invalid_date}),eU}let ei=new eW;for(let er of this._def.checks)"min"===er.kind?ee.data.getTime()er.value&&(e$(en=this._getOrReturnCtx(ee,en),{code:eI.too_big,message:er.message,inclusive:!0,exact:!1,maximum:er.value,type:"date"}),ei.dirty()):ex.assertNever(er);return{status:ei.value,value:new Date(ee.data.getTime())}}_addCheck(ee){return new tl({...this._def,checks:[...this._def.checks,ee]})}min(ee,en){return this._addCheck({kind:"min",value:ee.getTime(),message:ev.toString(en)})}max(ee,en){return this._addCheck({kind:"max",value:ee.getTime(),message:ev.toString(en)})}get minDate(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return null!=ee?new Date(ee):null}get maxDate(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.valuenew tl({checks:[],coerce:(null==ee?void 0:ee.coerce)||!1,typeName:ey.ZodDate,...eX(ee)});class tu extends e0{_parse(ee){let en=this._getType(ee);if(en!==eN.symbol){let en=this._getOrReturnCtx(ee);return e$(en,{code:eI.invalid_type,expected:eN.symbol,received:en.parsedType}),eU}return eG(ee.data)}}tu.create=ee=>new tu({typeName:ey.ZodSymbol,...eX(ee)});class tc extends e0{_parse(ee){let en=this._getType(ee);if(en!==eN.undefined){let en=this._getOrReturnCtx(ee);return e$(en,{code:eI.invalid_type,expected:eN.undefined,received:en.parsedType}),eU}return eG(ee.data)}}tc.create=ee=>new tc({typeName:ey.ZodUndefined,...eX(ee)});class td extends e0{_parse(ee){let en=this._getType(ee);if(en!==eN.null){let en=this._getOrReturnCtx(ee);return e$(en,{code:eI.invalid_type,expected:eN.null,received:en.parsedType}),eU}return eG(ee.data)}}td.create=ee=>new td({typeName:ey.ZodNull,...eX(ee)});class tf extends e0{constructor(){super(...arguments),this._any=!0}_parse(ee){return eG(ee.data)}}tf.create=ee=>new tf({typeName:ey.ZodAny,...eX(ee)});class th extends e0{constructor(){super(...arguments),this._unknown=!0}_parse(ee){return eG(ee.data)}}th.create=ee=>new th({typeName:ey.ZodUnknown,...eX(ee)});class tp extends e0{_parse(ee){let en=this._getOrReturnCtx(ee);return e$(en,{code:eI.invalid_type,expected:eN.never,received:en.parsedType}),eU}}tp.create=ee=>new tp({typeName:ey.ZodNever,...eX(ee)});class tm extends e0{_parse(ee){let en=this._getType(ee);if(en!==eN.undefined){let en=this._getOrReturnCtx(ee);return e$(en,{code:eI.invalid_type,expected:eN.void,received:en.parsedType}),eU}return eG(ee.data)}}tm.create=ee=>new tm({typeName:ey.ZodVoid,...eX(ee)});class tx extends e0{_parse(ee){let{ctx:en,status:er}=this._processInputParams(ee),ei=this._def;if(en.parsedType!==eN.array)return e$(en,{code:eI.invalid_type,expected:eN.array,received:en.parsedType}),eU;if(null!==ei.exactLength){let ee=en.data.length>ei.exactLength.value,eo=en.data.lengthei.maxLength.value&&(e$(en,{code:eI.too_big,maximum:ei.maxLength.value,type:"array",inclusive:!0,exact:!1,message:ei.maxLength.message}),er.dirty()),en.common.async)return Promise.all([...en.data].map((ee,er)=>ei.type._parseAsync(new eQ(en,ee,en.path,er)))).then(ee=>eW.mergeArray(er,ee));let eo=[...en.data].map((ee,er)=>ei.type._parseSync(new eQ(en,ee,en.path,er)));return eW.mergeArray(er,eo)}get element(){return this._def.type}min(ee,en){return new tx({...this._def,minLength:{value:ee,message:ev.toString(en)}})}max(ee,en){return new tx({...this._def,maxLength:{value:ee,message:ev.toString(en)}})}length(ee,en){return new tx({...this._def,exactLength:{value:ee,message:ev.toString(en)}})}nonempty(ee){return this.min(1,ee)}}function tg(ee){if(ee instanceof tv){let en={};for(let er in ee.shape){let ei=ee.shape[er];en[er]=tM.create(tg(ei))}return new tv({...ee._def,shape:()=>en})}return ee instanceof tx?new tx({...ee._def,type:tg(ee.element)}):ee instanceof tM?tM.create(tg(ee.unwrap())):ee instanceof tZ?tZ.create(tg(ee.unwrap())):ee instanceof tj?tj.create(ee.items.map(ee=>tg(ee))):ee}tx.create=(ee,en)=>new tx({type:ee,minLength:null,maxLength:null,exactLength:null,typeName:ey.ZodArray,...eX(en)});class tv extends e0{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let ee=this._def.shape(),en=ex.objectKeys(ee);return this._cached={shape:ee,keys:en}}_parse(ee){let en=this._getType(ee);if(en!==eN.object){let en=this._getOrReturnCtx(ee);return e$(en,{code:eI.invalid_type,expected:eN.object,received:en.parsedType}),eU}let{status:er,ctx:ei}=this._processInputParams(ee),{shape:eo,keys:es}=this._getCached(),eu=[];if(!(this._def.catchall instanceof tp&&"strip"===this._def.unknownKeys))for(let ee in ei.data)es.includes(ee)||eu.push(ee);let ec=[];for(let ee of es){let en=eo[ee],er=ei.data[ee];ec.push({key:{status:"valid",value:ee},value:en._parse(new eQ(ei,er,ei.path,ee)),alwaysSet:ee in ei.data})}if(this._def.catchall instanceof tp){let ee=this._def.unknownKeys;if("passthrough"===ee)for(let ee of eu)ec.push({key:{status:"valid",value:ee},value:{status:"valid",value:ei.data[ee]}});else if("strict"===ee)eu.length>0&&(e$(ei,{code:eI.unrecognized_keys,keys:eu}),er.dirty());else if("strip"===ee);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let ee=this._def.catchall;for(let en of eu){let er=ei.data[en];ec.push({key:{status:"valid",value:en},value:ee._parse(new eQ(ei,er,ei.path,en)),alwaysSet:en in ei.data})}}return ei.common.async?Promise.resolve().then(async()=>{let ee=[];for(let en of ec){let er=await en.key;ee.push({key:er,value:await en.value,alwaysSet:en.alwaysSet})}return ee}).then(ee=>eW.mergeObjectSync(er,ee)):eW.mergeObjectSync(er,ec)}get shape(){return this._def.shape()}strict(ee){return ev.errToObj,new tv({...this._def,unknownKeys:"strict",...void 0!==ee?{errorMap:(en,er)=>{var ei,eo,es,eu;let ec=null!==(es=null===(eo=(ei=this._def).errorMap)||void 0===eo?void 0:eo.call(ei,en,er).message)&&void 0!==es?es:er.defaultError;return"unrecognized_keys"===en.code?{message:null!==(eu=ev.errToObj(ee).message)&&void 0!==eu?eu:ec}:{message:ec}}}:{}})}strip(){return new tv({...this._def,unknownKeys:"strip"})}passthrough(){return new tv({...this._def,unknownKeys:"passthrough"})}extend(ee){return new tv({...this._def,shape:()=>({...this._def.shape(),...ee})})}merge(ee){let en=new tv({unknownKeys:ee._def.unknownKeys,catchall:ee._def.catchall,shape:()=>({...this._def.shape(),...ee._def.shape()}),typeName:ey.ZodObject});return en}setKey(ee,en){return this.augment({[ee]:en})}catchall(ee){return new tv({...this._def,catchall:ee})}pick(ee){let en={};return ex.objectKeys(ee).forEach(er=>{ee[er]&&this.shape[er]&&(en[er]=this.shape[er])}),new tv({...this._def,shape:()=>en})}omit(ee){let en={};return ex.objectKeys(this.shape).forEach(er=>{ee[er]||(en[er]=this.shape[er])}),new tv({...this._def,shape:()=>en})}deepPartial(){return tg(this)}partial(ee){let en={};return ex.objectKeys(this.shape).forEach(er=>{let ei=this.shape[er];ee&&!ee[er]?en[er]=ei:en[er]=ei.optional()}),new tv({...this._def,shape:()=>en})}required(ee){let en={};return ex.objectKeys(this.shape).forEach(er=>{if(ee&&!ee[er])en[er]=this.shape[er];else{let ee=this.shape[er],ei=ee;for(;ei instanceof tM;)ei=ei._def.innerType;en[er]=ei}}),new tv({...this._def,shape:()=>en})}keyof(){return tR(ex.objectKeys(this.shape))}}tv.create=(ee,en)=>new tv({shape:()=>ee,unknownKeys:"strip",catchall:tp.create(),typeName:ey.ZodObject,...eX(en)}),tv.strictCreate=(ee,en)=>new tv({shape:()=>ee,unknownKeys:"strict",catchall:tp.create(),typeName:ey.ZodObject,...eX(en)}),tv.lazycreate=(ee,en)=>new tv({shape:ee,unknownKeys:"strip",catchall:tp.create(),typeName:ey.ZodObject,...eX(en)});class ty extends e0{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=this._def.options;function ei(ee){for(let en of ee)if("valid"===en.result.status)return en.result;for(let er of ee)if("dirty"===er.result.status)return en.common.issues.push(...er.ctx.common.issues),er.result;let er=ee.map(ee=>new eP(ee.ctx.common.issues));return e$(en,{code:eI.invalid_union,unionErrors:er}),eU}if(en.common.async)return Promise.all(er.map(async ee=>{let er={...en,common:{...en.common,issues:[]},parent:null};return{result:await ee._parseAsync({data:en.data,path:en.path,parent:er}),ctx:er}})).then(ei);{let ee;let ei=[];for(let eo of er){let er={...en,common:{...en.common,issues:[]},parent:null},es=eo._parseSync({data:en.data,path:en.path,parent:er});if("valid"===es.status)return es;"dirty"!==es.status||ee||(ee={result:es,ctx:er}),er.common.issues.length&&ei.push(er.common.issues)}if(ee)return en.common.issues.push(...ee.ctx.common.issues),ee.result;let eo=ei.map(ee=>new eP(ee));return e$(en,{code:eI.invalid_union,unionErrors:eo}),eU}}get options(){return this._def.options}}ty.create=(ee,en)=>new ty({options:ee,typeName:ey.ZodUnion,...eX(en)});let tb=ee=>{if(ee instanceof tS)return tb(ee.schema);if(ee instanceof tL)return tb(ee.innerType());if(ee instanceof tN)return[ee.value];if(ee instanceof tI)return ee.options;if(ee instanceof tA)return Object.keys(ee.enum);if(ee instanceof tD)return tb(ee._def.innerType);if(ee instanceof tc)return[void 0];else if(ee instanceof td)return[null];else return null};class tw extends e0{_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==eN.object)return e$(en,{code:eI.invalid_type,expected:eN.object,received:en.parsedType}),eU;let er=this.discriminator,ei=en.data[er],eo=this.optionsMap.get(ei);return eo?en.common.async?eo._parseAsync({data:en.data,path:en.path,parent:en}):eo._parseSync({data:en.data,path:en.path,parent:en}):(e$(en,{code:eI.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[er]}),eU)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(ee,en,er){let ei=new Map;for(let er of en){let en=tb(er.shape[ee]);if(!en)throw Error(`A discriminator value for key \`${ee}\` could not be extracted from all schema options`);for(let eo of en){if(ei.has(eo))throw Error(`Discriminator property ${String(ee)} has duplicate value ${String(eo)}`);ei.set(eo,er)}}return new tw({typeName:ey.ZodDiscriminatedUnion,discriminator:ee,options:en,optionsMap:ei,...eX(er)})}}function t_(ee,en){let er=eR(ee),ei=eR(en);if(ee===en)return{valid:!0,data:ee};if(er===eN.object&&ei===eN.object){let er=ex.objectKeys(en),ei=ex.objectKeys(ee).filter(ee=>-1!==er.indexOf(ee)),eo={...ee,...en};for(let er of ei){let ei=t_(ee[er],en[er]);if(!ei.valid)return{valid:!1};eo[er]=ei.data}return{valid:!0,data:eo}}if(er===eN.array&&ei===eN.array){if(ee.length!==en.length)return{valid:!1};let er=[];for(let ei=0;ei{if(eV(ee)||eV(ei))return eU;let eo=t_(ee.value,ei.value);return eo.valid?((eB(ee)||eB(ei))&&en.dirty(),{status:en.value,value:eo.data}):(e$(er,{code:eI.invalid_intersection_types}),eU)};return er.common.async?Promise.all([this._def.left._parseAsync({data:er.data,path:er.path,parent:er}),this._def.right._parseAsync({data:er.data,path:er.path,parent:er})]).then(([ee,en])=>ei(ee,en)):ei(this._def.left._parseSync({data:er.data,path:er.path,parent:er}),this._def.right._parseSync({data:er.data,path:er.path,parent:er}))}}tk.create=(ee,en,er)=>new tk({left:ee,right:en,typeName:ey.ZodIntersection,...eX(er)});class tj extends e0{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==eN.array)return e$(er,{code:eI.invalid_type,expected:eN.array,received:er.parsedType}),eU;if(er.data.lengththis._def.items.length&&(e$(er,{code:eI.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),en.dirty());let eo=[...er.data].map((ee,en)=>{let ei=this._def.items[en]||this._def.rest;return ei?ei._parse(new eQ(er,ee,er.path,en)):null}).filter(ee=>!!ee);return er.common.async?Promise.all(eo).then(ee=>eW.mergeArray(en,ee)):eW.mergeArray(en,eo)}get items(){return this._def.items}rest(ee){return new tj({...this._def,rest:ee})}}tj.create=(ee,en)=>{if(!Array.isArray(ee))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new tj({items:ee,typeName:ey.ZodTuple,rest:null,...eX(en)})};class tE extends e0{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==eN.object)return e$(er,{code:eI.invalid_type,expected:eN.object,received:er.parsedType}),eU;let ei=[],eo=this._def.keyType,es=this._def.valueType;for(let ee in er.data)ei.push({key:eo._parse(new eQ(er,ee,er.path,ee)),value:es._parse(new eQ(er,er.data[ee],er.path,ee))});return er.common.async?eW.mergeObjectAsync(en,ei):eW.mergeObjectSync(en,ei)}get element(){return this._def.valueType}static create(ee,en,er){return new tE(en instanceof e0?{keyType:ee,valueType:en,typeName:ey.ZodRecord,...eX(er)}:{keyType:tn.create(),valueType:ee,typeName:ey.ZodRecord,...eX(en)})}}class tO extends e0{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==eN.map)return e$(er,{code:eI.invalid_type,expected:eN.map,received:er.parsedType}),eU;let ei=this._def.keyType,eo=this._def.valueType,es=[...er.data.entries()].map(([ee,en],es)=>({key:ei._parse(new eQ(er,ee,er.path,[es,"key"])),value:eo._parse(new eQ(er,en,er.path,[es,"value"]))}));if(er.common.async){let ee=new Map;return Promise.resolve().then(async()=>{for(let er of es){let ei=await er.key,eo=await er.value;if("aborted"===ei.status||"aborted"===eo.status)return eU;("dirty"===ei.status||"dirty"===eo.status)&&en.dirty(),ee.set(ei.value,eo.value)}return{status:en.value,value:ee}})}{let ee=new Map;for(let er of es){let ei=er.key,eo=er.value;if("aborted"===ei.status||"aborted"===eo.status)return eU;("dirty"===ei.status||"dirty"===eo.status)&&en.dirty(),ee.set(ei.value,eo.value)}return{status:en.value,value:ee}}}}tO.create=(ee,en,er)=>new tO({valueType:en,keyType:ee,typeName:ey.ZodMap,...eX(er)});class tT extends e0{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==eN.set)return e$(er,{code:eI.invalid_type,expected:eN.set,received:er.parsedType}),eU;let ei=this._def;null!==ei.minSize&&er.data.sizeei.maxSize.value&&(e$(er,{code:eI.too_big,maximum:ei.maxSize.value,type:"set",inclusive:!0,exact:!1,message:ei.maxSize.message}),en.dirty());let eo=this._def.valueType;function es(ee){let er=new Set;for(let ei of ee){if("aborted"===ei.status)return eU;"dirty"===ei.status&&en.dirty(),er.add(ei.value)}return{status:en.value,value:er}}let eu=[...er.data.values()].map((ee,en)=>eo._parse(new eQ(er,ee,er.path,en)));return er.common.async?Promise.all(eu).then(ee=>es(ee)):es(eu)}min(ee,en){return new tT({...this._def,minSize:{value:ee,message:ev.toString(en)}})}max(ee,en){return new tT({...this._def,maxSize:{value:ee,message:ev.toString(en)}})}size(ee,en){return this.min(ee,en).max(ee,en)}nonempty(ee){return this.min(1,ee)}}tT.create=(ee,en)=>new tT({valueType:ee,minSize:null,maxSize:null,typeName:ey.ZodSet,...eX(en)});class tC extends e0{constructor(){super(...arguments),this.validate=this.implement}_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==eN.function)return e$(en,{code:eI.invalid_type,expected:eN.function,received:en.parsedType}),eU;function er(ee,er){return eF({data:ee,path:en.path,errorMaps:[en.common.contextualErrorMap,en.schemaErrorMap,eD(),eL].filter(ee=>!!ee),issueData:{code:eI.invalid_arguments,argumentsError:er}})}function ei(ee,er){return eF({data:ee,path:en.path,errorMaps:[en.common.contextualErrorMap,en.schemaErrorMap,eD(),eL].filter(ee=>!!ee),issueData:{code:eI.invalid_return_type,returnTypeError:er}})}let eo={errorMap:en.common.contextualErrorMap},es=en.data;return this._def.returns instanceof tP?eG(async(...ee)=>{let en=new eP([]),eu=await this._def.args.parseAsync(ee,eo).catch(ei=>{throw en.addIssue(er(ee,ei)),en}),ec=await es(...eu),ed=await this._def.returns._def.type.parseAsync(ec,eo).catch(ee=>{throw en.addIssue(ei(ec,ee)),en});return ed}):eG((...ee)=>{let en=this._def.args.safeParse(ee,eo);if(!en.success)throw new eP([er(ee,en.error)]);let eu=es(...en.data),ec=this._def.returns.safeParse(eu,eo);if(!ec.success)throw new eP([ei(eu,ec.error)]);return ec.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...ee){return new tC({...this._def,args:tj.create(ee).rest(th.create())})}returns(ee){return new tC({...this._def,returns:ee})}implement(ee){let en=this.parse(ee);return en}strictImplement(ee){let en=this.parse(ee);return en}static create(ee,en,er){return new tC({args:ee||tj.create([]).rest(th.create()),returns:en||th.create(),typeName:ey.ZodFunction,...eX(er)})}}class tS extends e0{get schema(){return this._def.getter()}_parse(ee){let{ctx:en}=this._processInputParams(ee),er=this._def.getter();return er._parse({data:en.data,path:en.path,parent:en})}}tS.create=(ee,en)=>new tS({getter:ee,typeName:ey.ZodLazy,...eX(en)});class tN extends e0{_parse(ee){if(ee.data!==this._def.value){let en=this._getOrReturnCtx(ee);return e$(en,{received:en.data,code:eI.invalid_literal,expected:this._def.value}),eU}return{status:"valid",value:ee.data}}get value(){return this._def.value}}function tR(ee,en){return new tI({values:ee,typeName:ey.ZodEnum,...eX(en)})}tN.create=(ee,en)=>new tN({value:ee,typeName:ey.ZodLiteral,...eX(en)});class tI extends e0{_parse(ee){if("string"!=typeof ee.data){let en=this._getOrReturnCtx(ee),er=this._def.values;return e$(en,{expected:ex.joinValues(er),received:en.parsedType,code:eI.invalid_type}),eU}if(-1===this._def.values.indexOf(ee.data)){let en=this._getOrReturnCtx(ee),er=this._def.values;return e$(en,{received:en.data,code:eI.invalid_enum_value,options:er}),eU}return eG(ee.data)}get options(){return this._def.values}get enum(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}get Values(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}get Enum(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}extract(ee){return tI.create(ee)}exclude(ee){return tI.create(this.options.filter(en=>!ee.includes(en)))}}tI.create=tR;class tA extends e0{_parse(ee){let en=ex.getValidEnumValues(this._def.values),er=this._getOrReturnCtx(ee);if(er.parsedType!==eN.string&&er.parsedType!==eN.number){let ee=ex.objectValues(en);return e$(er,{expected:ex.joinValues(ee),received:er.parsedType,code:eI.invalid_type}),eU}if(-1===en.indexOf(ee.data)){let ee=ex.objectValues(en);return e$(er,{received:er.data,code:eI.invalid_enum_value,options:ee}),eU}return eG(ee.data)}get enum(){return this._def.values}}tA.create=(ee,en)=>new tA({values:ee,typeName:ey.ZodNativeEnum,...eX(en)});class tP extends e0{unwrap(){return this._def.type}_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==eN.promise&&!1===en.common.async)return e$(en,{code:eI.invalid_type,expected:eN.promise,received:en.parsedType}),eU;let er=en.parsedType===eN.promise?en.data:Promise.resolve(en.data);return eG(er.then(ee=>this._def.type.parseAsync(ee,{path:en.path,errorMap:en.common.contextualErrorMap})))}}tP.create=(ee,en)=>new tP({type:ee,typeName:ey.ZodPromise,...eX(en)});class tL extends e0{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ey.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee),ei=this._def.effect||null;if("preprocess"===ei.type){let ee=ei.transform(er.data);return er.common.async?Promise.resolve(ee).then(ee=>this._def.schema._parseAsync({data:ee,path:er.path,parent:er})):this._def.schema._parseSync({data:ee,path:er.path,parent:er})}let eo={addIssue:ee=>{e$(er,ee),ee.fatal?en.abort():en.dirty()},get path(){return er.path}};if(eo.addIssue=eo.addIssue.bind(eo),"refinement"===ei.type){let ee=ee=>{let en=ei.refinement(ee,eo);if(er.common.async)return Promise.resolve(en);if(en instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return ee};if(!1!==er.common.async)return this._def.schema._parseAsync({data:er.data,path:er.path,parent:er}).then(er=>"aborted"===er.status?eU:("dirty"===er.status&&en.dirty(),ee(er.value).then(()=>({status:en.value,value:er.value}))));{let ei=this._def.schema._parseSync({data:er.data,path:er.path,parent:er});return"aborted"===ei.status?eU:("dirty"===ei.status&&en.dirty(),ee(ei.value),{status:en.value,value:ei.value})}}if("transform"===ei.type){if(!1!==er.common.async)return this._def.schema._parseAsync({data:er.data,path:er.path,parent:er}).then(ee=>eK(ee)?Promise.resolve(ei.transform(ee.value,eo)).then(ee=>({status:en.value,value:ee})):ee);{let ee=this._def.schema._parseSync({data:er.data,path:er.path,parent:er});if(!eK(ee))return ee;let es=ei.transform(ee.value,eo);if(es instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:en.value,value:es}}}ex.assertNever(ei)}}tL.create=(ee,en,er)=>new tL({schema:ee,typeName:ey.ZodEffects,effect:en,...eX(er)}),tL.createWithPreprocess=(ee,en,er)=>new tL({schema:en,effect:{type:"preprocess",transform:ee},typeName:ey.ZodEffects,...eX(er)});class tM extends e0{_parse(ee){let en=this._getType(ee);return en===eN.undefined?eG(void 0):this._def.innerType._parse(ee)}unwrap(){return this._def.innerType}}tM.create=(ee,en)=>new tM({innerType:ee,typeName:ey.ZodOptional,...eX(en)});class tZ extends e0{_parse(ee){let en=this._getType(ee);return en===eN.null?eG(null):this._def.innerType._parse(ee)}unwrap(){return this._def.innerType}}tZ.create=(ee,en)=>new tZ({innerType:ee,typeName:ey.ZodNullable,...eX(en)});class tD extends e0{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=en.data;return en.parsedType===eN.undefined&&(er=this._def.defaultValue()),this._def.innerType._parse({data:er,path:en.path,parent:en})}removeDefault(){return this._def.innerType}}tD.create=(ee,en)=>new tD({innerType:ee,typeName:ey.ZodDefault,defaultValue:"function"==typeof en.default?en.default:()=>en.default,...eX(en)});class tF extends e0{_parse(ee){let{ctx:en}=this._processInputParams(ee),er={...en,common:{...en.common,issues:[]}},ei=this._def.innerType._parse({data:er.data,path:er.path,parent:{...er}});return eY(ei)?ei.then(ee=>({status:"valid",value:"valid"===ee.status?ee.value:this._def.catchValue({get error(){return new eP(er.common.issues)},input:er.data})})):{status:"valid",value:"valid"===ei.status?ei.value:this._def.catchValue({get error(){return new eP(er.common.issues)},input:er.data})}}removeCatch(){return this._def.innerType}}tF.create=(ee,en)=>new tF({innerType:ee,typeName:ey.ZodCatch,catchValue:"function"==typeof en.catch?en.catch:()=>en.catch,...eX(en)});class tz extends e0{_parse(ee){let en=this._getType(ee);if(en!==eN.nan){let en=this._getOrReturnCtx(ee);return e$(en,{code:eI.invalid_type,expected:eN.nan,received:en.parsedType}),eU}return{status:"valid",value:ee.data}}}tz.create=ee=>new tz({typeName:ey.ZodNaN,...eX(ee)});let t$=Symbol("zod_brand");class tW extends e0{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=en.data;return this._def.type._parse({data:er,path:en.path,parent:en})}unwrap(){return this._def.type}}class tU extends e0{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.common.async){let ee=async()=>{let ee=await this._def.in._parseAsync({data:er.data,path:er.path,parent:er});return"aborted"===ee.status?eU:"dirty"===ee.status?(en.dirty(),eH(ee.value)):this._def.out._parseAsync({data:ee.value,path:er.path,parent:er})};return ee()}{let ee=this._def.in._parseSync({data:er.data,path:er.path,parent:er});return"aborted"===ee.status?eU:"dirty"===ee.status?(en.dirty(),{status:"dirty",value:ee.value}):this._def.out._parseSync({data:ee.value,path:er.path,parent:er})}}static create(ee,en){return new tU({in:ee,out:en,typeName:ey.ZodPipeline})}}let tH=(ee,en={},er)=>ee?tf.create().superRefine((ei,eo)=>{var es,eu;if(!ee(ei)){let ee="function"==typeof en?en(ei):"string"==typeof en?{message:en}:en,ec=null===(eu=null!==(es=ee.fatal)&&void 0!==es?es:er)||void 0===eu||eu,ed="string"==typeof ee?{message:ee}:ee;eo.addIssue({code:"custom",...ed,fatal:ec})}}):tf.create(),tG={object:tv.lazycreate};!function(ee){ee.ZodString="ZodString",ee.ZodNumber="ZodNumber",ee.ZodNaN="ZodNaN",ee.ZodBigInt="ZodBigInt",ee.ZodBoolean="ZodBoolean",ee.ZodDate="ZodDate",ee.ZodSymbol="ZodSymbol",ee.ZodUndefined="ZodUndefined",ee.ZodNull="ZodNull",ee.ZodAny="ZodAny",ee.ZodUnknown="ZodUnknown",ee.ZodNever="ZodNever",ee.ZodVoid="ZodVoid",ee.ZodArray="ZodArray",ee.ZodObject="ZodObject",ee.ZodUnion="ZodUnion",ee.ZodDiscriminatedUnion="ZodDiscriminatedUnion",ee.ZodIntersection="ZodIntersection",ee.ZodTuple="ZodTuple",ee.ZodRecord="ZodRecord",ee.ZodMap="ZodMap",ee.ZodSet="ZodSet",ee.ZodFunction="ZodFunction",ee.ZodLazy="ZodLazy",ee.ZodLiteral="ZodLiteral",ee.ZodEnum="ZodEnum",ee.ZodEffects="ZodEffects",ee.ZodNativeEnum="ZodNativeEnum",ee.ZodOptional="ZodOptional",ee.ZodNullable="ZodNullable",ee.ZodDefault="ZodDefault",ee.ZodCatch="ZodCatch",ee.ZodPromise="ZodPromise",ee.ZodBranded="ZodBranded",ee.ZodPipeline="ZodPipeline"}(ey||(ey={}));let tV=(ee,en={message:`Input not instance of ${ee.name}`})=>tH(en=>en instanceof ee,en),tB=tn.create,tq=ti.create,tK=tz.create,tY=to.create,tQ=ts.create,tJ=tl.create,tX=tu.create,t0=tc.create,t1=td.create,t2=tf.create,t4=th.create,t5=tp.create,t3=tm.create,t7=tx.create,t6=tv.create,t9=tv.strictCreate,t8=ty.create,ne=tw.create,nt=tk.create,nn=tj.create,nr=tE.create,ni=tO.create,no=tT.create,ns=tC.create,nl=tS.create,nu=tN.create,nc=tI.create,nd=tA.create,nf=tP.create,nh=tL.create,np=tM.create,nm=tZ.create,nx=tL.createWithPreprocess,ng=tU.create,nv=()=>tB().optional(),ny=()=>tq().optional(),nb=()=>tQ().optional(),nw={string:ee=>tn.create({...ee,coerce:!0}),number:ee=>ti.create({...ee,coerce:!0}),boolean:ee=>ts.create({...ee,coerce:!0}),bigint:ee=>to.create({...ee,coerce:!0}),date:ee=>tl.create({...ee,coerce:!0})},n_=eU;var nk=Object.freeze({__proto__:null,defaultErrorMap:eL,setErrorMap:eZ,getErrorMap:eD,makeIssue:eF,EMPTY_PATH:ez,addIssueToContext:e$,ParseStatus:eW,INVALID:eU,DIRTY:eH,OK:eG,isAborted:eV,isDirty:eB,isValid:eK,isAsync:eY,get util(){return ex},get objectUtil(){return eg},ZodParsedType:eN,getParsedType:eR,ZodType:e0,ZodString:tn,ZodNumber:ti,ZodBigInt:to,ZodBoolean:ts,ZodDate:tl,ZodSymbol:tu,ZodUndefined:tc,ZodNull:td,ZodAny:tf,ZodUnknown:th,ZodNever:tp,ZodVoid:tm,ZodArray:tx,ZodObject:tv,ZodUnion:ty,ZodDiscriminatedUnion:tw,ZodIntersection:tk,ZodTuple:tj,ZodRecord:tE,ZodMap:tO,ZodSet:tT,ZodFunction:tC,ZodLazy:tS,ZodLiteral:tN,ZodEnum:tI,ZodNativeEnum:tA,ZodPromise:tP,ZodEffects:tL,ZodTransformer:tL,ZodOptional:tM,ZodNullable:tZ,ZodDefault:tD,ZodCatch:tF,ZodNaN:tz,BRAND:t$,ZodBranded:tW,ZodPipeline:tU,custom:tH,Schema:e0,ZodSchema:e0,late:tG,get ZodFirstPartyTypeKind(){return ey},coerce:nw,any:t2,array:t7,bigint:tY,boolean:tQ,date:tJ,discriminatedUnion:ne,effect:nh,enum:nc,function:ns,instanceof:tV,intersection:nt,lazy:nl,literal:nu,map:ni,nan:tK,nativeEnum:nd,never:t5,null:t1,nullable:nm,number:tq,object:t6,oboolean:nb,onumber:ny,optional:np,ostring:nv,pipeline:ng,preprocess:nx,promise:nf,record:nr,set:no,strictObject:t9,string:tB,symbol:tX,transformer:nh,tuple:nn,undefined:t0,union:t8,unknown:t4,void:t3,NEVER:n_,ZodIssueCode:eI,quotelessJson:eA,ZodError:eP}),nj=er(1664),nE=er.n(nj);er(6337);var nO=er(5893);let nT=["light","dark"],nC="(prefers-color-scheme: dark)",nS="undefined"==typeof window,nN=(0,e_.createContext)(void 0),nR={setTheme:ee=>{},themes:[]},nI=()=>{var ee;return null!==(ee=(0,e_.useContext)(nN))&&void 0!==ee?ee:nR},nA=ee=>(0,e_.useContext)(nN)?e_.createElement(e_.Fragment,null,ee.children):e_.createElement(nL,ee),nP=["light","dark"],nL=({forcedTheme:ee,disableTransitionOnChange:en=!1,enableSystem:er=!0,enableColorScheme:ei=!0,storageKey:eo="theme",themes:es=nP,defaultTheme:eu=er?"system":"light",attribute:ec="data-theme",value:ed,children:ef,nonce:eh})=>{let[ep,em]=(0,e_.useState)(()=>nZ(eo,eu)),[ex,eg]=(0,e_.useState)(()=>nZ(eo)),ev=ed?Object.values(ed):es,ey=(0,e_.useCallback)(ee=>{let eo=ee;if(!eo)return;"system"===ee&&er&&(eo=nF());let es=ed?ed[eo]:eo,ef=en?nD():null,eh=document.documentElement;if("class"===ec?(eh.classList.remove(...ev),es&&eh.classList.add(es)):es?eh.setAttribute(ec,es):eh.removeAttribute(ec),ei){let ee=nT.includes(eu)?eu:null,en=nT.includes(eo)?eo:ee;eh.style.colorScheme=en}null==ef||ef()},[]),eb=(0,e_.useCallback)(ee=>{em(ee);try{localStorage.setItem(eo,ee)}catch(ee){}},[ee]),ew=(0,e_.useCallback)(en=>{let ei=nF(en);eg(ei),"system"===ep&&er&&!ee&&ey("system")},[ep,ee]);(0,e_.useEffect)(()=>{let ee=window.matchMedia(nC);return ee.addListener(ew),ew(ee),()=>ee.removeListener(ew)},[ew]),(0,e_.useEffect)(()=>{let ee=ee=>{ee.key===eo&&eb(ee.newValue||eu)};return window.addEventListener("storage",ee),()=>window.removeEventListener("storage",ee)},[eb]),(0,e_.useEffect)(()=>{ey(null!=ee?ee:ep)},[ee,ep]);let ek=(0,e_.useMemo)(()=>({theme:ep,setTheme:eb,forcedTheme:ee,resolvedTheme:"system"===ep?ex:ep,themes:er?[...es,"system"]:es,systemTheme:er?ex:void 0}),[ep,eb,ee,ex,er,es]);return e_.createElement(nN.Provider,{value:ek},e_.createElement(nM,{forcedTheme:ee,disableTransitionOnChange:en,enableSystem:er,enableColorScheme:ei,storageKey:eo,themes:es,defaultTheme:eu,attribute:ec,value:ed,children:ef,attrs:ev,nonce:eh}),ef)},nM=(0,e_.memo)(({forcedTheme:ee,storageKey:en,attribute:er,enableSystem:ei,enableColorScheme:eo,defaultTheme:es,value:eu,attrs:ec,nonce:ed})=>{let ef="system"===es,eh="class"===er?`var d=document.documentElement,c=d.classList;c.remove(${ec.map(ee=>`'${ee}'`).join(",")});`:`var d=document.documentElement,n='${er}',s='setAttribute';`,ep=eo?nT.includes(es)&&es?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${es}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",em=(ee,en=!1,ei=!0)=>{let es=eu?eu[ee]:ee,ec=en?ee+"|| ''":`'${es}'`,ed="";return eo&&ei&&!en&&nT.includes(ee)&&(ed+=`d.style.colorScheme = '${ee}';`),"class"===er?ed+=en||es?`c.add(${ec})`:"null":es&&(ed+=`d[s](n,${ec})`),ed},ex=ee?`!function(){${eh}${em(ee)}}()`:ei?`!function(){try{${eh}var e=localStorage.getItem('${en}');if('system'===e||(!e&&${ef})){var t='${nC}',m=window.matchMedia(t);if(m.media!==t||m.matches){${em("dark")}}else{${em("light")}}}else if(e){${eu?`var x=${JSON.stringify(eu)};`:""}${em(eu?"x[e]":"e",!0)}}${ef?"":"else{"+em(es,!1,!1)+"}"}${ep}}catch(e){}}()`:`!function(){try{${eh}var e=localStorage.getItem('${en}');if(e){${eu?`var x=${JSON.stringify(eu)};`:""}${em(eu?"x[e]":"e",!0)}}else{${em(es,!1,!1)};}${ep}}catch(t){}}();`;return e_.createElement("script",{nonce:ed,dangerouslySetInnerHTML:{__html:ex}})},()=>!0),nZ=(ee,en)=>{let er;if(!nS){try{er=localStorage.getItem(ee)||void 0}catch(ee){}return er||en}},nD=()=>{let ee=document.createElement("style");return ee.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(ee),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(ee)},1)}},nF=ee=>(ee||(ee=window.matchMedia(nC)),ee.matches?"dark":"light");var nz={breadcrumb:!0,collapsed:!1,footer:!0,layout:"default",navbar:!0,pagination:!0,sidebar:!0,timestamp:!0,toc:!0,typesetting:"default"},n$=nk.strictObject({breadcrumb:nk.boolean(),collapsed:nk.boolean(),footer:nk.boolean(),layout:nk.enum(["default","full","raw"]),navbar:nk.boolean(),pagination:nk.boolean(),sidebar:nk.boolean(),timestamp:nk.boolean(),toc:nk.boolean(),typesetting:nk.enum(["default","article"])}),nW=nk.enum(["normal","hidden","children"]),nU=nk.string(),nH=nk.strictObject({href:nk.string(),newWindow:nk.boolean(),title:nU}),nG=nk.strictObject({display:nW.optional(),items:nk.record(nH.partial({href:!0,newWindow:!0})),title:nU,type:nk.literal("menu")}),nV=nk.strictObject({title:nU,type:nk.literal("separator")}),nB=nH.extend({display:nW,theme:n$,title:nU,type:nk.enum(["page","doc"])}).deepPartial();function nq(ee={},en){"string"==typeof ee&&(ee={title:ee});let er=Object.assign({},en.theme,ee.theme);return Object.assign({},en,ee,{theme:er})}function nK(ee){for(let en of ee){if(en.route)return en.route;if(en.children){let ee=nK(en.children);if(ee)return ee}}}function nY({list:ee,locale:en,defaultLocale:er,route:ei,docsRoot:eo="",underCurrentDocsRoot:es=!1,pageThemeContext:eu=nz}){let ec,ed;for(let er of ee)if("Meta"===er.kind){if(er.locale===en){ec=er.data;break}ec||(ec=er.data)}let ef=ec||{},eh=Object.keys(ef);for(let ee of eh)"string"==typeof ef[ee]&&(ef[ee]={title:ef[ee]});let ep=[],em=[],ex=[],eg=[],ev=[],ey=0,eb=eu,ew=[],e_=-1,ek=ef["*"]||{};delete ek.title,delete ek.href;let ej=ee.filter(ee=>"Meta"!==ee.kind&&!ee.name.startsWith("_")&&(!("locale"in ee)||!ee.locale||[en,er].includes(ee.locale))).sort((ee,en)=>{let er=eh.indexOf(ee.name),ei=eh.indexOf(en.name);return -1===er&&-1===ei?ee.name{let en;let er=[],ei=eh.indexOf(ee.name);if(-1!==ei){for(let ee=e_+1;ee({...ec,type:eO,...eN&&{title:eN},...e_&&{display:e_},...eS&&{children:[]}}),eI=eR(),eA=eR(),eP=eR();if(eA.isUnderCurrentDocsTree=eC,"separator"===eO&&(eI.isUnderCurrentDocsTree=eC),ec.route===ei)switch(ew=[eI],ed=eO,eb={...eb,...eT},eO){case"page":case"menu":ey=ev.length;break;case"doc":ey=eg.length}if(!("hidden"===e_&&"Folder"!==eI.kind||eE.hV.has(ec.route))){if(eS){if(void 0!==eS.activeIndex&&void 0!==eS.activeType){switch(eb=eS.activeThemeContext,ed=eS.activeType,ew=[eI,...eS.activePath],ed){case"page":case"menu":ey=ev.length+eS.activeIndex;break;case"doc":ey=eg.length+eS.activeIndex}ec.withIndexPage&&"doc"===eO&&ey++}switch(eO){case"page":case"menu":eP.children.push(...eS.directories),ex.push(...eS.docsDirectories),eS.flatDirectories.length?(eP.firstChildRoute=nK(eS.flatDirectories),ev.push(eP)):eP.withIndexPage&&ev.push(eP);break;case"doc":Array.isArray(eA.children)&&eA.children.push(...eS.docsDirectories),eI.withIndexPage&&"children"!==e_&&eg.push(eA)}em.push(...eS.flatDirectories),eg.push(...eS.flatDocsDirectories),Array.isArray(eI.children)&&eI.children.push(...eS.directories)}else switch(em.push(eI),eO){case"page":case"menu":ev.push(eP);break;case"doc":eg.push(eA)}switch("doc"===eO&&"children"===e_?eA.children&&(ep.push(...eA.children),ex.push(...eA.children)):ep.push(eI),eO){case"page":case"menu":ex.push(eP);break;case"doc":"children"!==e_&&ex.push(eA);break;case"separator":ex.push(eI)}}}return{activeType:ed,activeIndex:ey,activeThemeContext:eb,activePath:ew,directories:ep,flatDirectories:em,docsDirectories:ex,flatDocsDirectories:eg,topLevelNavbarItems:ev}}nk.string().or(nG).or(nV).or(nB);var nQ=er(3458),nJ=er.n(nQ);function nX(ee){if(null==ee)return window;if("[object Window]"!==ee.toString()){var en=ee.ownerDocument;return en&&en.defaultView||window}return ee}function n0(ee){var en=nX(ee).Element;return ee instanceof en||ee instanceof Element}function n1(ee){var en=nX(ee).HTMLElement;return ee instanceof en||ee instanceof HTMLElement}function n2(ee){if("undefined"==typeof ShadowRoot)return!1;var en=nX(ee).ShadowRoot;return ee instanceof en||ee instanceof ShadowRoot}var n4=Math.max,n5=Math.min,n3=Math.round;function n7(){var ee=navigator.userAgentData;return null!=ee&&ee.brands&&Array.isArray(ee.brands)?ee.brands.map(function(ee){return ee.brand+"/"+ee.version}).join(" "):navigator.userAgent}function n6(){return!/^((?!chrome|android).)*safari/i.test(n7())}function n9(ee,en,er){void 0===en&&(en=!1),void 0===er&&(er=!1);var ei=ee.getBoundingClientRect(),eo=1,es=1;en&&n1(ee)&&(eo=ee.offsetWidth>0&&n3(ei.width)/ee.offsetWidth||1,es=ee.offsetHeight>0&&n3(ei.height)/ee.offsetHeight||1);var eu=(n0(ee)?nX(ee):window).visualViewport,ec=!n6()&&er,ed=(ei.left+(ec&&eu?eu.offsetLeft:0))/eo,ef=(ei.top+(ec&&eu?eu.offsetTop:0))/es,eh=ei.width/eo,ep=ei.height/es;return{width:eh,height:ep,top:ef,right:ed+eh,bottom:ef+ep,left:ed,x:ed,y:ef}}function n8(ee){var en=nX(ee);return{scrollLeft:en.pageXOffset,scrollTop:en.pageYOffset}}function rn(ee){return{scrollLeft:ee.scrollLeft,scrollTop:ee.scrollTop}}function rr(ee){return ee!==nX(ee)&&n1(ee)?rn(ee):n8(ee)}function ri(ee){return ee?(ee.nodeName||"").toLowerCase():null}function ro(ee){return((n0(ee)?ee.ownerDocument:ee.document)||window.document).documentElement}function rs(ee){return n9(ro(ee)).left+n8(ee).scrollLeft}function rl(ee){return nX(ee).getComputedStyle(ee)}function ru(ee){var en=rl(ee),er=en.overflow,ei=en.overflowX,eo=en.overflowY;return/auto|scroll|overlay|hidden/.test(er+eo+ei)}function rc(ee){var en=ee.getBoundingClientRect(),er=n3(en.width)/ee.offsetWidth||1,ei=n3(en.height)/ee.offsetHeight||1;return 1!==er||1!==ei}function rd(ee,en,er){void 0===er&&(er=!1);var ei=n1(en),eo=n1(en)&&rc(en),es=ro(en),eu=n9(ee,eo,er),ec={scrollLeft:0,scrollTop:0},ed={x:0,y:0};return(ei||!ei&&!er)&&(("body"!==ri(en)||ru(es))&&(ec=rr(en)),n1(en)?(ed=n9(en,!0),ed.x+=en.clientLeft,ed.y+=en.clientTop):es&&(ed.x=rs(es))),{x:eu.left+ec.scrollLeft-ed.x,y:eu.top+ec.scrollTop-ed.y,width:eu.width,height:eu.height}}function rf(ee){var en=n9(ee),er=ee.offsetWidth,ei=ee.offsetHeight;return 1>=Math.abs(en.width-er)&&(er=en.width),1>=Math.abs(en.height-ei)&&(ei=en.height),{x:ee.offsetLeft,y:ee.offsetTop,width:er,height:ei}}function rh(ee){return"html"===ri(ee)?ee:ee.assignedSlot||ee.parentNode||(n2(ee)?ee.host:null)||ro(ee)}function rp(ee){return["html","body","#document"].indexOf(ri(ee))>=0?ee.ownerDocument.body:n1(ee)&&ru(ee)?ee:rp(rh(ee))}function rm(ee,en){void 0===en&&(en=[]);var er,ei=rp(ee),eo=ei===(null==(er=ee.ownerDocument)?void 0:er.body),es=nX(ei),eu=eo?[es].concat(es.visualViewport||[],ru(ei)?ei:[]):ei,ec=en.concat(eu);return eo?ec:ec.concat(rm(rh(eu)))}function rx(ee){return["table","td","th"].indexOf(ri(ee))>=0}function rg(ee){return n1(ee)&&"fixed"!==rl(ee).position?ee.offsetParent:null}function rv(ee){var en=/firefox/i.test(n7());if(/Trident/i.test(n7())&&n1(ee)&&"fixed"===rl(ee).position)return null;var er=rh(ee);for(n2(er)&&(er=er.host);n1(er)&&0>["html","body"].indexOf(ri(er));){var ei=rl(er);if("none"!==ei.transform||"none"!==ei.perspective||"paint"===ei.contain||-1!==["transform","perspective"].indexOf(ei.willChange)||en&&"filter"===ei.willChange||en&&ei.filter&&"none"!==ei.filter)return er;er=er.parentNode}return null}function ry(ee){for(var en=nX(ee),er=rg(ee);er&&rx(er)&&"static"===rl(er).position;)er=rg(er);return er&&("html"===ri(er)||"body"===ri(er)&&"static"===rl(er).position)?en:er||rv(ee)||en}var rb="top",rw="bottom",r_="right",rk="left",rj="auto",rE=[rb,rw,r_,rk],rO="start",rT="end",rC="clippingParents",rS="viewport",rN="popper",rR="reference",rI=rE.reduce(function(ee,en){return ee.concat([en+"-"+rO,en+"-"+rT])},[]),rA=[].concat(rE,[rj]).reduce(function(ee,en){return ee.concat([en,en+"-"+rO,en+"-"+rT])},[]),rP=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function rL(ee){var en=new Map,er=new Set,ei=[];function eo(ee){er.add(ee.name),[].concat(ee.requires||[],ee.requiresIfExists||[]).forEach(function(ee){if(!er.has(ee)){var ei=en.get(ee);ei&&eo(ei)}}),ei.push(ee)}return ee.forEach(function(ee){en.set(ee.name,ee)}),ee.forEach(function(ee){er.has(ee.name)||eo(ee)}),ei}function rM(ee){var en=rL(ee);return rP.reduce(function(ee,er){return ee.concat(en.filter(function(ee){return ee.phase===er}))},[])}function rZ(ee){var en;return function(){return en||(en=new Promise(function(er){Promise.resolve().then(function(){en=void 0,er(ee())})})),en}}function rD(ee){var en=ee.reduce(function(ee,en){var er=ee[en.name];return ee[en.name]=er?Object.assign({},er,en,{options:Object.assign({},er.options,en.options),data:Object.assign({},er.data,en.data)}):en,ee},{});return Object.keys(en).map(function(ee){return en[ee]})}var rF={placement:"bottom",modifiers:[],strategy:"absolute"};function rz(){for(var ee=arguments.length,en=Array(ee),er=0;er=0?"x":"y"}function rG(ee){var en,er=ee.reference,ei=ee.element,eo=ee.placement,es=eo?rW(eo):null,eu=eo?rU(eo):null,ec=er.x+er.width/2-ei.width/2,ed=er.y+er.height/2-ei.height/2;switch(es){case rb:en={x:ec,y:er.y-ei.height};break;case rw:en={x:ec,y:er.y+er.height};break;case r_:en={x:er.x+er.width,y:ed};break;case rk:en={x:er.x-ei.width,y:ed};break;default:en={x:er.x,y:er.y}}var ef=es?rH(es):null;if(null!=ef){var eh="y"===ef?"height":"width";switch(eu){case rO:en[ef]=en[ef]-(er[eh]/2-ei[eh]/2);break;case rT:en[ef]=en[ef]+(er[eh]/2-ei[eh]/2)}}return en}var rV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rB(ee,en){var er=ee.x,ei=ee.y,eo=en.devicePixelRatio||1;return{x:n3(er*eo)/eo||0,y:n3(ei*eo)/eo||0}}function rq(ee){var en,er,ei=ee.popper,eo=ee.popperRect,es=ee.placement,eu=ee.variation,ec=ee.offsets,ed=ee.position,ef=ee.gpuAcceleration,eh=ee.adaptive,ep=ee.roundOffsets,em=ee.isFixed,ex=ec.x,eg=void 0===ex?0:ex,ev=ec.y,ey=void 0===ev?0:ev,eb="function"==typeof ep?ep({x:eg,y:ey}):{x:eg,y:ey};eg=eb.x,ey=eb.y;var ew=ec.hasOwnProperty("x"),e_=ec.hasOwnProperty("y"),ek=rk,ej=rb,eE=window;if(eh){var eO=ry(ei),eT="clientHeight",eC="clientWidth";eO===nX(ei)&&"static"!==rl(eO=ro(ei)).position&&"absolute"===ed&&(eT="scrollHeight",eC="scrollWidth"),(es===rb||(es===rk||es===r_)&&eu===rT)&&(ej=rw,ey-=(em&&eO===eE&&eE.visualViewport?eE.visualViewport.height:eO[eT])-eo.height,ey*=ef?1:-1),(es===rk||(es===rb||es===rw)&&eu===rT)&&(ek=r_,eg-=(em&&eO===eE&&eE.visualViewport?eE.visualViewport.width:eO[eC])-eo.width,eg*=ef?1:-1)}var eS=Object.assign({position:ed},eh&&rV),eN=!0===ep?rB({x:eg,y:ey},nX(ei)):{x:eg,y:ey};return(eg=eN.x,ey=eN.y,ef)?Object.assign({},eS,((er={})[ej]=e_?"0":"",er[ek]=ew?"0":"",er.transform=1>=(eE.devicePixelRatio||1)?"translate("+eg+"px, "+ey+"px)":"translate3d("+eg+"px, "+ey+"px, 0)",er)):Object.assign({},eS,((en={})[ej]=e_?ey+"px":"",en[ek]=ew?eg+"px":"",en.transform="",en))}function rK(ee,en,er){var ei=rW(ee),eo=[rk,rb].indexOf(ei)>=0?-1:1,es="function"==typeof er?er(Object.assign({},en,{placement:ee})):er,eu=es[0],ec=es[1];return eu=eu||0,ec=(ec||0)*eo,[rk,r_].indexOf(ei)>=0?{x:ec,y:eu}:{x:eu,y:ec}}var rY={left:"right",right:"left",bottom:"top",top:"bottom"};function rQ(ee){return ee.replace(/left|right|bottom|top/g,function(ee){return rY[ee]})}var rJ={start:"end",end:"start"};function rX(ee){return ee.replace(/start|end/g,function(ee){return rJ[ee]})}function r0(ee,en){var er=nX(ee),ei=ro(ee),eo=er.visualViewport,es=ei.clientWidth,eu=ei.clientHeight,ec=0,ed=0;if(eo){es=eo.width,eu=eo.height;var ef=n6();(ef||!ef&&"fixed"===en)&&(ec=eo.offsetLeft,ed=eo.offsetTop)}return{width:es,height:eu,x:ec+rs(ee),y:ed}}function r1(ee){var en,er=ro(ee),ei=n8(ee),eo=null==(en=ee.ownerDocument)?void 0:en.body,es=n4(er.scrollWidth,er.clientWidth,eo?eo.scrollWidth:0,eo?eo.clientWidth:0),eu=n4(er.scrollHeight,er.clientHeight,eo?eo.scrollHeight:0,eo?eo.clientHeight:0),ec=-ei.scrollLeft+rs(ee),ed=-ei.scrollTop;return"rtl"===rl(eo||er).direction&&(ec+=n4(er.clientWidth,eo?eo.clientWidth:0)-es),{width:es,height:eu,x:ec,y:ed}}function r2(ee,en){var er=en.getRootNode&&en.getRootNode();if(ee.contains(en))return!0;if(er&&n2(er)){var ei=en;do{if(ei&&ee.isSameNode(ei))return!0;ei=ei.parentNode||ei.host}while(ei)}return!1}function r4(ee){return Object.assign({},ee,{left:ee.x,top:ee.y,right:ee.x+ee.width,bottom:ee.y+ee.height})}function r5(ee,en){var er=n9(ee,!1,"fixed"===en);return er.top=er.top+ee.clientTop,er.left=er.left+ee.clientLeft,er.bottom=er.top+ee.clientHeight,er.right=er.left+ee.clientWidth,er.width=ee.clientWidth,er.height=ee.clientHeight,er.x=er.left,er.y=er.top,er}function r3(ee,en,er){return en===rS?r4(r0(ee,er)):n0(en)?r5(en,er):r4(r1(ro(ee)))}function r7(ee){var en=rm(rh(ee)),er=["absolute","fixed"].indexOf(rl(ee).position)>=0&&n1(ee)?ry(ee):ee;return n0(er)?en.filter(function(ee){return n0(ee)&&r2(ee,er)&&"body"!==ri(ee)}):[]}function r6(ee,en,er,ei){var eo=[].concat("clippingParents"===en?r7(ee):[].concat(en),[er]),es=eo[0],eu=eo.reduce(function(en,er){var eo=r3(ee,er,ei);return en.top=n4(eo.top,en.top),en.right=n5(eo.right,en.right),en.bottom=n5(eo.bottom,en.bottom),en.left=n4(eo.left,en.left),en},r3(ee,es,ei));return eu.width=eu.right-eu.left,eu.height=eu.bottom-eu.top,eu.x=eu.left,eu.y=eu.top,eu}function r9(){return{top:0,right:0,bottom:0,left:0}}function r8(ee){return Object.assign({},r9(),ee)}function it(ee,en){return en.reduce(function(en,er){return en[er]=ee,en},{})}function ir(ee,en){void 0===en&&(en={});var er=en,ei=er.placement,eo=void 0===ei?ee.placement:ei,es=er.strategy,eu=void 0===es?ee.strategy:es,ec=er.boundary,ed=void 0===ec?rC:ec,ef=er.rootBoundary,eh=void 0===ef?rS:ef,ep=er.elementContext,em=void 0===ep?rN:ep,ex=er.altBoundary,eg=void 0!==ex&&ex,ev=er.padding,ey=void 0===ev?0:ev,eb=r8("number"!=typeof ey?ey:it(ey,rE)),ew=em===rN?rR:rN,e_=ee.rects.popper,ek=ee.elements[eg?ew:em],ej=r6(n0(ek)?ek:ek.contextElement||ro(ee.elements.popper),ed,eh,eu),eE=n9(ee.elements.reference),eO=rG({reference:eE,element:e_,strategy:"absolute",placement:eo}),eT=r4(Object.assign({},e_,eO)),eC=em===rN?eT:eE,eS={top:ej.top-eC.top+eb.top,bottom:eC.bottom-ej.bottom+eb.bottom,left:ej.left-eC.left+eb.left,right:eC.right-ej.right+eb.right},eN=ee.modifiersData.offset;if(em===rN&&eN){var eR=eN[eo];Object.keys(eS).forEach(function(ee){var en=[r_,rw].indexOf(ee)>=0?1:-1,er=[rb,rw].indexOf(ee)>=0?"y":"x";eS[ee]+=eR[er]*en})}return eS}function ii(ee,en){void 0===en&&(en={});var er=en,ei=er.placement,eo=er.boundary,es=er.rootBoundary,eu=er.padding,ec=er.flipVariations,ed=er.allowedAutoPlacements,ef=void 0===ed?rA:ed,eh=rU(ei),ep=eh?ec?rI:rI.filter(function(ee){return rU(ee)===eh}):rE,em=ep.filter(function(ee){return ef.indexOf(ee)>=0});0===em.length&&(em=ep);var ex=em.reduce(function(en,er){return en[er]=ir(ee,{placement:er,boundary:eo,rootBoundary:es,padding:eu})[rW(er)],en},{});return Object.keys(ex).sort(function(ee,en){return ex[ee]-ex[en]})}function io(ee){if(rW(ee)===rj)return[];var en=rQ(ee);return[rX(ee),en,rX(en)]}function is(ee){return"x"===ee?"y":"x"}function il(ee,en,er){return n4(ee,n5(en,er))}function iu(ee,en,er){var ei=il(ee,en,er);return ei>er?er:ei}var ic=function(ee,en){return r8("number"!=typeof(ee="function"==typeof ee?ee(Object.assign({},en.rects,{placement:en.placement})):ee)?ee:it(ee,rE))};function ih(ee,en,er){return void 0===er&&(er={x:0,y:0}),{top:ee.top-en.height-er.y,right:ee.right-en.width+er.x,bottom:ee.bottom-en.height+er.y,left:ee.left-en.width-er.x}}function im(ee){return[rb,r_,rw,rk].some(function(en){return ee[en]>=0})}var ix=function(ee){void 0===ee&&(ee={});var en=ee,er=en.defaultModifiers,ei=void 0===er?[]:er,eo=en.defaultOptions,es=void 0===eo?rF:eo;return function(ee,en,er){void 0===er&&(er=es);var eo={placement:"bottom",orderedModifiers:[],options:Object.assign({},rF,es),modifiersData:{},elements:{reference:ee,popper:en},attributes:{},styles:{}},eu=[],ec=!1,ed={state:eo,setOptions:function(er){var eu="function"==typeof er?er(eo.options):er;eh(),eo.options=Object.assign({},es,eo.options,eu),eo.scrollParents={reference:n0(ee)?rm(ee):ee.contextElement?rm(ee.contextElement):[],popper:rm(en)};var ec=rM(rD([].concat(ei,eo.options.modifiers)));return eo.orderedModifiers=ec.filter(function(ee){return ee.enabled}),ef(),ed.update()},forceUpdate:function(){if(!ec){var ee=eo.elements,en=ee.reference,er=ee.popper;if(rz(en,er)){eo.rects={reference:rd(en,ry(er),"fixed"===eo.options.strategy),popper:rf(er)},eo.reset=!1,eo.placement=eo.options.placement,eo.orderedModifiers.forEach(function(ee){return eo.modifiersData[ee.name]=Object.assign({},ee.data)});for(var ei=0;ei=0,eA=eI?"width":"height",eP=ir(en,{placement:eS,boundary:eh,rootBoundary:ep,altBoundary:em,padding:ef}),eL=eI?eR?r_:rk:eR?rw:rb;ek[eA]>ej[eA]&&(eL=rQ(eL));var eM=rQ(eL),eZ=[];if(es&&eZ.push(eP[eN]<=0),ec&&eZ.push(eP[eL]<=0,eP[eM]<=0),eZ.every(function(ee){return ee})){eT=eS,eO=!1;break}eE.set(eS,eZ)}if(eO)for(var eD=eg?3:1,eF=function(ee){var en=e_.find(function(en){var er=eE.get(en);if(er)return er.slice(0,ee).every(function(ee){return ee})});if(en)return eT=en,"break"},ez=eD;ez>0&&"break"!==eF(ez);ez--);en.placement!==eT&&(en.modifiersData[ei]._skip=!0,en.placement=eT,en.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(ee){var en=ee.state,er=ee.options,ei=ee.name,eo=er.mainAxis,es=void 0===eo||eo,eu=er.altAxis,ec=void 0!==eu&&eu,ed=er.boundary,ef=er.rootBoundary,eh=er.altBoundary,ep=er.padding,em=er.tether,ex=void 0===em||em,eg=er.tetherOffset,ev=void 0===eg?0:eg,ey=ir(en,{boundary:ed,rootBoundary:ef,padding:ep,altBoundary:eh}),eb=rW(en.placement),ew=rU(en.placement),e_=!ew,ek=rH(eb),ej=is(ek),eE=en.modifiersData.popperOffsets,eO=en.rects.reference,eT=en.rects.popper,eC="function"==typeof ev?ev(Object.assign({},en.rects,{placement:en.placement})):ev,eS="number"==typeof eC?{mainAxis:eC,altAxis:eC}:Object.assign({mainAxis:0,altAxis:0},eC),eN=en.modifiersData.offset?en.modifiersData.offset[en.placement]:null,eR={x:0,y:0};if(eE){if(es){var eI,eA="y"===ek?rb:rk,eP="y"===ek?rw:r_,eL="y"===ek?"height":"width",eM=eE[ek],eZ=eM+ey[eA],eD=eM-ey[eP],eF=ex?-eT[eL]/2:0,ez=ew===rO?eO[eL]:eT[eL],e$=ew===rO?-eT[eL]:-eO[eL],eW=en.elements.arrow,eU=ex&&eW?rf(eW):{width:0,height:0},eH=en.modifiersData["arrow#persistent"]?en.modifiersData["arrow#persistent"].padding:r9(),eG=eH[eA],eV=eH[eP],eB=il(0,eO[eL],eU[eL]),eK=e_?eO[eL]/2-eF-eB-eG-eS.mainAxis:ez-eB-eG-eS.mainAxis,eY=e_?-eO[eL]/2+eF+eB+eV+eS.mainAxis:e$+eB+eV+eS.mainAxis,eQ=en.elements.arrow&&ry(en.elements.arrow),eJ=eQ?"y"===ek?eQ.clientTop||0:eQ.clientLeft||0:0,eX=null!=(eI=null==eN?void 0:eN[ek])?eI:0,e0=eM+eK-eX-eJ,e1=eM+eY-eX,e2=il(ex?n5(eZ,e0):eZ,eM,ex?n4(eD,e1):eD);eE[ek]=e2,eR[ek]=e2-eM}if(ec){var e4,e5="x"===ek?rb:rk,e3="x"===ek?rw:r_,e7=eE[ej],e6="y"===ej?"height":"width",e9=e7+ey[e5],e8=e7-ey[e3],tt=-1!==[rb,rk].indexOf(eb),tn=null!=(e4=null==eN?void 0:eN[ej])?e4:0,tr=tt?e9:e7-eO[e6]-eT[e6]-tn+eS.altAxis,ti=tt?e7+eO[e6]+eT[e6]-tn-eS.altAxis:e8,to=ex&&tt?iu(tr,e7,ti):il(ex?tr:e9,e7,ex?ti:e8);eE[ej]=to,eR[ej]=to-e7}en.modifiersData[ei]=eR}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(ee){var en,er=ee.state,ei=ee.name,eo=ee.options,es=er.elements.arrow,eu=er.modifiersData.popperOffsets,ec=rW(er.placement),ed=rH(ec),ef=[rk,r_].indexOf(ec)>=0?"height":"width";if(es&&eu){var eh=ic(eo.padding,er),ep=rf(es),em="y"===ed?rb:rk,ex="y"===ed?rw:r_,eg=er.rects.reference[ef]+er.rects.reference[ed]-eu[ed]-er.rects.popper[ef],ev=eu[ed]-er.rects.reference[ed],ey=ry(es),eb=ey?"y"===ed?ey.clientHeight||0:ey.clientWidth||0:0,ew=eg/2-ev/2,e_=eh[em],ek=eb-ep[ef]-eh[ex],ej=eb/2-ep[ef]/2+ew,eE=il(e_,ej,ek),eO=ed;er.modifiersData[ei]=((en={})[eO]=eE,en.centerOffset=eE-ej,en)}},effect:function(ee){var en=ee.state,er=ee.options.element,ei=void 0===er?"[data-popper-arrow]":er;null!=ei&&("string"!=typeof ei||(ei=en.elements.popper.querySelector(ei)))&&r2(en.elements.popper,ei)&&(en.elements.arrow=ei)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(ee){var en=ee.state,er=ee.name,ei=en.rects.reference,eo=en.rects.popper,es=en.modifiersData.preventOverflow,eu=ir(en,{elementContext:"reference"}),ec=ir(en,{altBoundary:!0}),ed=ih(eu,ei),ef=ih(ec,eo,es),eh=im(ed),ep=im(ef);en.modifiersData[er]={referenceClippingOffsets:ed,popperEscapeOffsets:ef,isReferenceHidden:eh,hasPopperEscaped:ep},en.attributes.popper=Object.assign({},en.attributes.popper,{"data-popper-reference-hidden":eh,"data-popper-escaped":ep})}}]}),ig=er(6304),iv=er.n(ig),iy=er(2351);let ib=(0,e_.createContext)(null);ib.displayName="OpenClosedContext";var iw=((ei=iw||{})[ei.Open=1]="Open",ei[ei.Closed=2]="Closed",ei[ei.Closing=4]="Closing",ei[ei.Opening=8]="Opening",ei);function i_(){return(0,e_.useContext)(ib)}function ik({value:ee,children:en}){return e_.createElement(ib.Provider,{value:ee},en)}var ij=er(2984),iE=er(4879),iO=er(6723),iT=er(3855),iC=er(2180),iS=er(3784);function iN(ee){let en={called:!1};return(...er)=>{if(!en.called)return en.called=!0,ee(...er)}}var iR=er(9362);function iI(ee,...en){ee&&en.length>0&&ee.classList.add(...en)}function iA(ee,...en){ee&&en.length>0&&ee.classList.remove(...en)}function iP(ee,en){let er=(0,iR.k)();if(!ee)return er.dispose;let{transitionDuration:ei,transitionDelay:eo}=getComputedStyle(ee),[es,eu]=[ei,eo].map(ee=>{let[en=0]=ee.split(",").filter(Boolean).map(ee=>ee.includes("ms")?parseFloat(ee):1e3*parseFloat(ee)).sort((ee,en)=>en-ee);return en}),ec=es+eu;if(0!==ec){er.group(er=>{er.setTimeout(()=>{en(),er.dispose()},ec),er.addEventListener(ee,"transitionrun",ee=>{ee.target===ee.currentTarget&&er.dispose()})});let ei=er.addEventListener(ee,"transitionend",ee=>{ee.target===ee.currentTarget&&(en(),ei())})}else en();return er.add(()=>en()),er.dispose}function iL(ee,en,er,ei){let eo=er?"enter":"leave",es=(0,iR.k)(),eu=void 0!==ei?iN(ei):()=>{};"enter"===eo&&(ee.removeAttribute("hidden"),ee.style.display="");let ec=(0,ij.E)(eo,{enter:()=>en.enter,leave:()=>en.leave}),ed=(0,ij.E)(eo,{enter:()=>en.enterTo,leave:()=>en.leaveTo}),ef=(0,ij.E)(eo,{enter:()=>en.enterFrom,leave:()=>en.leaveFrom});return iA(ee,...en.enter,...en.enterTo,...en.enterFrom,...en.leave,...en.leaveFrom,...en.leaveTo,...en.entered),iI(ee,...ec,...ef),es.nextFrame(()=>{iA(ee,...ef),iI(ee,...ed),iP(ee,()=>(iA(ee,...ec),iI(ee,...en.entered),eu()))}),es.dispose}function iM(){let[ee]=(0,e_.useState)(iR.k);return(0,e_.useEffect)(()=>()=>ee.dispose(),[ee]),ee}function iZ({container:ee,direction:en,classes:er,onStart:ei,onStop:eo}){let es=(0,iE.t)(),eu=iM(),ec=(0,iT.E)(en);(0,iO.e)(()=>{let en=(0,iR.k)();eu.add(en.dispose);let ed=ee.current;if(ed&&"idle"!==ec.current&&es.current)return en.dispose(),ei.current(ec.current),en.add(iL(ed,er.current,"enter"===ec.current,()=>{en.dispose(),eo.current(ec.current)})),en.dispose},[en])}var iD=er(3781),iF=er(4067);function iz(ee=0){let[en,er]=(0,e_.useState)(ee),ei=(0,iE.t)(),eo=(0,e_.useCallback)(ee=>{ei.current&&er(en=>en|ee)},[en,ei]),es=(0,e_.useCallback)(ee=>!!(en&ee),[en]);return{flags:en,addFlag:eo,hasFlag:es,removeFlag:(0,e_.useCallback)(ee=>{ei.current&&er(en=>en&~ee)},[er,ei]),toggleFlag:(0,e_.useCallback)(ee=>{ei.current&&er(en=>en^ee)},[er])}}function i$(ee=""){return ee.split(" ").filter(ee=>ee.trim().length>1)}let iW=(0,e_.createContext)(null);iW.displayName="TransitionContext";var iU=((eo=iU||{}).Visible="visible",eo.Hidden="hidden",eo);function iH(){let ee=(0,e_.useContext)(iW);if(null===ee)throw Error("A is used but it is missing a parent or .");return ee}function iG(){let ee=(0,e_.useContext)(iV);if(null===ee)throw Error("A is used but it is missing a parent or .");return ee}let iV=(0,e_.createContext)(null);function iB(ee){return"children"in ee?iB(ee.children):ee.current.filter(({el:ee})=>null!==ee.current).filter(({state:ee})=>"visible"===ee).length>0}function iq(ee,en){let er=(0,iT.E)(ee),ei=(0,e_.useRef)([]),eo=(0,iE.t)(),es=iM(),eu=(0,iD.z)((ee,en=iy.l4.Hidden)=>{let eu=ei.current.findIndex(({el:en})=>en===ee);-1!==eu&&((0,ij.E)(en,{[iy.l4.Unmount](){ei.current.splice(eu,1)},[iy.l4.Hidden](){ei.current[eu].state="hidden"}}),es.microTask(()=>{var ee;!iB(ei)&&eo.current&&(null==(ee=er.current)||ee.call(er))}))}),ec=(0,iD.z)(ee=>{let en=ei.current.find(({el:en})=>en===ee);return en?"visible"!==en.state&&(en.state="visible"):ei.current.push({el:ee,state:"visible"}),()=>eu(ee,iy.l4.Unmount)}),ed=(0,e_.useRef)([]),ef=(0,e_.useRef)(Promise.resolve()),eh=(0,e_.useRef)({enter:[],leave:[],idle:[]}),ep=(0,iD.z)((ee,er,ei)=>{ed.current.splice(0),en&&(en.chains.current[er]=en.chains.current[er].filter(([en])=>en!==ee)),null==en||en.chains.current[er].push([ee,new Promise(ee=>{ed.current.push(ee)})]),null==en||en.chains.current[er].push([ee,new Promise(ee=>{Promise.all(eh.current[er].map(([ee,en])=>en)).then(()=>ee())})]),"enter"===er?ef.current=ef.current.then(()=>null==en?void 0:en.wait.current).then(()=>ei(er)):ei(er)}),em=(0,iD.z)((ee,en,er)=>{Promise.all(eh.current[en].splice(0).map(([ee,en])=>en)).then(()=>{var ee;null==(ee=ed.current.shift())||ee()}).then(()=>er(en))});return(0,e_.useMemo)(()=>({children:ei,register:ec,unregister:eu,onStart:ep,onStop:em,wait:ef,chains:eh}),[ec,eu,ei,ep,em,eh,ef])}function iK(){}iV.displayName="NestingContext";let iY=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function iQ(ee){var en;let er={};for(let ei of iY)er[ei]=null!=(en=ee[ei])?en:iK;return er}function iJ(ee){let en=(0,e_.useRef)(iQ(ee));return(0,e_.useEffect)(()=>{en.current=iQ(ee)},[ee]),en}let iX="div",i0=iy.AN.RenderStrategy;function i1(ee,en){let{beforeEnter:er,afterEnter:ei,beforeLeave:eo,afterLeave:es,enter:eu,enterFrom:ec,enterTo:ed,entered:ef,leave:eh,leaveFrom:ep,leaveTo:em,...ex}=ee,eg=(0,e_.useRef)(null),ev=(0,iS.T)(eg,en),ey=ex.unmount?iy.l4.Unmount:iy.l4.Hidden,{show:eb,appear:ew,initial:ek}=iH(),[ej,eE]=(0,e_.useState)(eb?"visible":"hidden"),eO=iG(),{register:eT,unregister:eC}=eO,eS=(0,e_.useRef)(null);(0,e_.useEffect)(()=>eT(eg),[eT,eg]),(0,e_.useEffect)(()=>{if(ey===iy.l4.Hidden&&eg.current){if(eb&&"visible"!==ej){eE("visible");return}return(0,ij.E)(ej,{hidden:()=>eC(eg),visible:()=>eT(eg)})}},[ej,eg,eT,eC,eb,ey]);let eN=(0,iT.E)({enter:i$(eu),enterFrom:i$(ec),enterTo:i$(ed),entered:i$(ef),leave:i$(eh),leaveFrom:i$(ep),leaveTo:i$(em)}),eR=iJ({beforeEnter:er,afterEnter:ei,beforeLeave:eo,afterLeave:es}),eI=(0,iC.H)();(0,e_.useEffect)(()=>{if(eI&&"visible"===ej&&null===eg.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[eg,ej,eI]);let eA=ek&&!ew,eP=!eI||eA||eS.current===eb?"idle":eb?"enter":"leave",eL=iz(0),eM=(0,iD.z)(ee=>(0,ij.E)(ee,{enter:()=>{eL.addFlag(iw.Opening),eR.current.beforeEnter()},leave:()=>{eL.addFlag(iw.Closing),eR.current.beforeLeave()},idle:()=>{}})),eZ=(0,iD.z)(ee=>(0,ij.E)(ee,{enter:()=>{eL.removeFlag(iw.Opening),eR.current.afterEnter()},leave:()=>{eL.removeFlag(iw.Closing),eR.current.afterLeave()},idle:()=>{}})),eD=iq(()=>{eE("hidden"),eC(eg)},eO);iZ({container:eg,classes:eN,direction:eP,onStart:(0,iT.E)(ee=>{eD.onStart(eg,ee,eM)}),onStop:(0,iT.E)(ee=>{eD.onStop(eg,ee,eZ),"leave"!==ee||iB(eD)||(eE("hidden"),eC(eg))})}),(0,e_.useEffect)(()=>{eA&&(ey===iy.l4.Hidden?eS.current=null:eS.current=eb)},[eb,eA,ej]);let eF=ex,ez={ref:ev};return ew&&eb&&ek&&(eF={...eF,className:(0,iF.A)(ex.className,...eN.current.enter,...eN.current.enterFrom)}),e_.createElement(iV.Provider,{value:eD},e_.createElement(ik,{value:(0,ij.E)(ej,{visible:iw.Open,hidden:iw.Closed})|eL.flags},(0,iy.sY)({ourProps:ez,theirProps:eF,defaultTag:iX,features:i0,visible:"visible"===ej,name:"Transition.Child"})))}function i2(ee,en){let{show:er,appear:ei=!1,unmount:eo,...es}=ee,eu=(0,e_.useRef)(null),ec=(0,iS.T)(eu,en);(0,iC.H)();let ed=i_();if(void 0===er&&null!==ed&&(er=(ed&iw.Open)===iw.Open),![!0,!1].includes(er))throw Error("A is used but it is missing a `show={true | false}` prop.");let[ef,eh]=(0,e_.useState)(er?"visible":"hidden"),ep=iq(()=>{eh("hidden")}),[em,ex]=(0,e_.useState)(!0),eg=(0,e_.useRef)([er]);(0,iO.e)(()=>{!1!==em&&eg.current[eg.current.length-1]!==er&&(eg.current.push(er),ex(!1))},[eg,er]);let ev=(0,e_.useMemo)(()=>({show:er,appear:ei,initial:em}),[er,ei,em]);(0,e_.useEffect)(()=>{if(er)eh("visible");else if(iB(ep)){let ee=eu.current;if(!ee)return;let en=ee.getBoundingClientRect();0===en.x&&0===en.y&&0===en.width&&0===en.height&&eh("hidden")}else eh("hidden")},[er,ep]);let ey={unmount:eo},eb=(0,iD.z)(()=>{var en;em&&ex(!1),null==(en=ee.beforeEnter)||en.call(ee)}),ew=(0,iD.z)(()=>{var en;em&&ex(!1),null==(en=ee.beforeLeave)||en.call(ee)});return e_.createElement(iV.Provider,{value:ep},e_.createElement(iW.Provider,{value:ev},(0,iy.sY)({ourProps:{...ey,as:e_.Fragment,children:e_.createElement(i3,{ref:ec,...ey,...es,beforeEnter:eb,beforeLeave:ew})},theirProps:{},defaultTag:e_.Fragment,features:i0,visible:"visible"===ef,name:"Transition"})))}function i4(ee,en){let er=null!==(0,e_.useContext)(iW),ei=null!==i_();return e_.createElement(e_.Fragment,null,!er&&ei?e_.createElement(i5,{ref:en,...ee}):e_.createElement(i3,{ref:en,...ee}))}let i5=(0,iy.yV)(i2),i3=(0,iy.yV)(i1),i7=(0,iy.yV)(i4),i6=Object.assign(i5,{Child:i7,Root:i5});var i9=er(4266),i8=er(9946);function at(ee,en){let[er,ei]=(0,e_.useState)(ee),eo=(0,iT.E)(ee);return(0,iO.e)(()=>ei(eo.current),[eo,ei,...en]),er}var an=er(1363);function ar(ee){throw Error("Unexpected object: "+ee)}var ai=((es=ai||{})[es.First=0]="First",es[es.Previous=1]="Previous",es[es.Next=2]="Next",es[es.Last=3]="Last",es[es.Specific=4]="Specific",es[es.Nothing=5]="Nothing",es);function ao(ee,en){let er=en.resolveItems();if(er.length<=0)return null;let ei=en.resolveActiveIndex(),eo=null!=ei?ei:-1,es=(()=>{switch(ee.focus){case 0:return er.findIndex(ee=>!en.resolveDisabled(ee));case 1:{let ee=er.slice().reverse().findIndex((ee,er,ei)=>(-1===eo||!(ei.length-er-1>=eo))&&!en.resolveDisabled(ee));return -1===ee?ee:er.length-1-ee}case 2:return er.findIndex((ee,er)=>!(er<=eo)&&!en.resolveDisabled(ee));case 3:{let ee=er.slice().reverse().findIndex(ee=>!en.resolveDisabled(ee));return -1===ee?ee:er.length-1-ee}case 4:return er.findIndex(er=>en.resolveId(er)===ee.id);case 5:return null;default:ar(ee)}})();return -1===es?ei:es}function al(ee){let en=ee.parentElement,er=null;for(;en&&!(en instanceof HTMLFieldSetElement);)en instanceof HTMLLegendElement&&(er=en),en=en.parentElement;let ei=(null==en?void 0:en.getAttribute("disabled"))==="";return!(ei&&au(er))&&ei}function au(ee){if(!ee)return!1;let en=ee.previousElementSibling;for(;null!==en;){if(en instanceof HTMLLegendElement)return!1;en=en.previousElementSibling}return!0}var ac=er(4575),ad=er(4157);function af(ee,en,er){let ei=(0,iT.E)(en);(0,e_.useEffect)(()=>{function en(ee){ei.current(ee)}return document.addEventListener(ee,en,er),()=>document.removeEventListener(ee,en,er)},[ee,er])}function ah(ee,en,er){let ei=(0,iT.E)(en);(0,e_.useEffect)(()=>{function en(ee){ei.current(ee)}return window.addEventListener(ee,en,er),()=>window.removeEventListener(ee,en,er)},[ee,er])}function ap(ee,en,er=!0){let ei=(0,e_.useRef)(!1);function eo(er,eo){if(!ei.current||er.defaultPrevented)return;let es=eo(er);if(null!==es&&es.getRootNode().contains(es)&&es.isConnected){for(let en of function ee(en){return"function"==typeof en?ee(en()):Array.isArray(en)||en instanceof Set?en:[en]}(ee)){if(null===en)continue;let ee=en instanceof HTMLElement?en:en.current;if(null!=ee&&ee.contains(es)||er.composed&&er.composedPath().includes(ee))return}return(0,ac.sP)(es,ac.tJ.Loose)||-1===es.tabIndex||er.preventDefault(),en(er,es)}}(0,e_.useEffect)(()=>{requestAnimationFrame(()=>{ei.current=er})},[er]);let es=(0,e_.useRef)(null);af("pointerdown",ee=>{var en,er;ei.current&&(es.current=(null==(er=null==(en=ee.composedPath)?void 0:en.call(ee))?void 0:er[0])||ee.target)},!0),af("mousedown",ee=>{var en,er;ei.current&&(es.current=(null==(er=null==(en=ee.composedPath)?void 0:en.call(ee))?void 0:er[0])||ee.target)},!0),af("click",ee=>{es.current&&(eo(ee,()=>es.current),es.current=null)},!0),af("touchend",ee=>eo(ee,()=>ee.target instanceof HTMLElement?ee.target:null),!0),ah("blur",ee=>eo(ee,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var am=er(6045);function ax(ee={},en=null,er=[]){for(let[ei,eo]of Object.entries(ee))av(er,ag(en,ei),eo);return er}function ag(ee,en){return ee?ee+"["+en+"]":en}function av(ee,en,er){if(Array.isArray(er))for(let[ei,eo]of er.entries())av(ee,ag(en,ei.toString()),eo);else er instanceof Date?ee.push([en,er.toISOString()]):"boolean"==typeof er?ee.push([en,er?"1":"0"]):"string"==typeof er?ee.push([en,er]):"number"==typeof er?ee.push([en,`${er}`]):null==er?ee.push([en,""]):ax(er,en,ee)}var ay=er(5466);function ab(ee,en,er){let[ei,eo]=(0,e_.useState)(er),es=void 0!==ee,eu=(0,e_.useRef)(es),ec=(0,e_.useRef)(!1),ed=(0,e_.useRef)(!1);return!es||eu.current||ec.current?es||!eu.current||ed.current||(ed.current=!0,eu.current=es,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(ec.current=!0,eu.current=es,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[es?ee:ei,(0,iD.z)(ee=>(es||eo(ee),null==en?void 0:en(ee)))]}function aw(ee){return[ee.screenX,ee.screenY]}function a_(){let ee=(0,e_.useRef)([-1,-1]);return{wasMoved(en){let er=aw(en);return(ee.current[0]!==er[0]||ee.current[1]!==er[1])&&(ee.current=er,!0)},update(en){ee.current=aw(en)}}}let ak=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function aj(ee){var en,er;let ei=null!=(en=ee.innerText)?en:"",eo=ee.cloneNode(!0);if(!(eo instanceof HTMLElement))return ei;let es=!1;for(let ee of eo.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))ee.remove(),es=!0;let eu=es?null!=(er=eo.innerText)?er:"":ei;return ak.test(eu)&&(eu=eu.replace(ak,"")),eu}function aE(ee){let en=ee.getAttribute("aria-label");if("string"==typeof en)return en.trim();let er=ee.getAttribute("aria-labelledby");if(er){let ee=er.split(" ").map(ee=>{let en=document.getElementById(ee);if(en){let ee=en.getAttribute("aria-label");return"string"==typeof ee?ee.trim():aj(en).trim()}return null}).filter(Boolean);if(ee.length>0)return ee.join(", ")}return aj(ee).trim()}function aO(ee){let en=(0,e_.useRef)(""),er=(0,e_.useRef)("");return(0,iD.z)(()=>{let ei=ee.current;if(!ei)return"";let eo=ei.innerText;if(en.current===eo)return er.current;let es=aE(ei).trim().toLowerCase();return en.current=eo,er.current=es,es})}var aT=((eu=aT||{})[eu.Open=0]="Open",eu[eu.Closed=1]="Closed",eu),aC=((ec=aC||{})[ec.Single=0]="Single",ec[ec.Multi=1]="Multi",ec),aS=((ed=aS||{})[ed.Pointer=0]="Pointer",ed[ed.Other=1]="Other",ed),aN=((ef=aN||{})[ef.OpenListbox=0]="OpenListbox",ef[ef.CloseListbox=1]="CloseListbox",ef[ef.GoToOption=2]="GoToOption",ef[ef.Search=3]="Search",ef[ef.ClearSearch=4]="ClearSearch",ef[ef.RegisterOption=5]="RegisterOption",ef[ef.UnregisterOption=6]="UnregisterOption",ef[ef.RegisterLabel=7]="RegisterLabel",ef);function aR(ee,en=ee=>ee){let er=null!==ee.activeOptionIndex?ee.options[ee.activeOptionIndex]:null,ei=(0,ac.z2)(en(ee.options.slice()),ee=>ee.dataRef.current.domRef.current),eo=er?ei.indexOf(er):null;return -1===eo&&(eo=null),{options:ei,activeOptionIndex:eo}}let aI={1:ee=>ee.dataRef.current.disabled||1===ee.listboxState?ee:{...ee,activeOptionIndex:null,listboxState:1},0(ee){if(ee.dataRef.current.disabled||0===ee.listboxState)return ee;let en=ee.activeOptionIndex,{isSelected:er}=ee.dataRef.current,ei=ee.options.findIndex(ee=>er(ee.dataRef.current.value));return -1!==ei&&(en=ei),{...ee,listboxState:0,activeOptionIndex:en}},2(ee,en){var er;if(ee.dataRef.current.disabled||1===ee.listboxState)return ee;let ei=aR(ee),eo=ao(en,{resolveItems:()=>ei.options,resolveActiveIndex:()=>ei.activeOptionIndex,resolveId:ee=>ee.id,resolveDisabled:ee=>ee.dataRef.current.disabled});return{...ee,...ei,searchQuery:"",activeOptionIndex:eo,activationTrigger:null!=(er=en.trigger)?er:1}},3:(ee,en)=>{if(ee.dataRef.current.disabled||1===ee.listboxState)return ee;let er=""!==ee.searchQuery?0:1,ei=ee.searchQuery+en.value.toLowerCase(),eo=(null!==ee.activeOptionIndex?ee.options.slice(ee.activeOptionIndex+er).concat(ee.options.slice(0,ee.activeOptionIndex+er)):ee.options).find(ee=>{var en;return!ee.dataRef.current.disabled&&(null==(en=ee.dataRef.current.textValue)?void 0:en.startsWith(ei))}),es=eo?ee.options.indexOf(eo):-1;return -1===es||es===ee.activeOptionIndex?{...ee,searchQuery:ei}:{...ee,searchQuery:ei,activeOptionIndex:es,activationTrigger:1}},4:ee=>ee.dataRef.current.disabled||1===ee.listboxState||""===ee.searchQuery?ee:{...ee,searchQuery:""},5:(ee,en)=>{let er={id:en.id,dataRef:en.dataRef},ei=aR(ee,ee=>[...ee,er]);return null===ee.activeOptionIndex&&ee.dataRef.current.isSelected(en.dataRef.current.value)&&(ei.activeOptionIndex=ei.options.indexOf(er)),{...ee,...ei}},6:(ee,en)=>{let er=aR(ee,ee=>{let er=ee.findIndex(ee=>ee.id===en.id);return -1!==er&&ee.splice(er,1),ee});return{...ee,...er,activationTrigger:1}},7:(ee,en)=>({...ee,labelId:en.id})},aA=(0,e_.createContext)(null);function aP(ee){let en=(0,e_.useContext)(aA);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,aP),en}return en}aA.displayName="ListboxActionsContext";let aL=(0,e_.createContext)(null);function aM(ee){let en=(0,e_.useContext)(aL);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,aM),en}return en}function aZ(ee,en){return(0,ij.E)(en.type,aI,ee,en)}aL.displayName="ListboxDataContext";let aD=e_.Fragment;function aF(ee,en){let{value:er,defaultValue:ei,form:eo,name:es,onChange:eu,by:ec=(ee,en)=>ee===en,disabled:ed=!1,horizontal:ef=!1,multiple:eh=!1,...ep}=ee,em=ef?"horizontal":"vertical",ex=(0,iS.T)(en),[eg=eh?[]:void 0,ev]=ab(er,eu,ei),[ey,eb]=(0,e_.useReducer)(aZ,{dataRef:(0,e_.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),ew=(0,e_.useRef)({static:!1,hold:!1}),ek=(0,e_.useRef)(null),ej=(0,e_.useRef)(null),eE=(0,e_.useRef)(null),eO=(0,iD.z)("string"==typeof ec?(ee,en)=>{let er=ec;return(null==ee?void 0:ee[er])===(null==en?void 0:en[er])}:ec),eT=(0,e_.useCallback)(ee=>(0,ij.E)(eC.mode,{1:()=>eg.some(en=>eO(en,ee)),0:()=>eO(eg,ee)}),[eg]),eC=(0,e_.useMemo)(()=>({...ey,value:eg,disabled:ed,mode:eh?1:0,orientation:em,compare:eO,isSelected:eT,optionsPropsRef:ew,labelRef:ek,buttonRef:ej,optionsRef:eE}),[eg,ed,eh,ey]);(0,iO.e)(()=>{ey.dataRef.current=eC},[eC]),ap([eC.buttonRef,eC.optionsRef],(ee,en)=>{var er;eb({type:1}),(0,ac.sP)(en,ac.tJ.Loose)||(ee.preventDefault(),null==(er=eC.buttonRef.current)||er.focus())},0===eC.listboxState);let eS=(0,e_.useMemo)(()=>({open:0===eC.listboxState,disabled:ed,value:eg}),[eC,ed,eg]),eN=(0,iD.z)(ee=>{let en=eC.options.find(en=>en.id===ee);en&&eZ(en.dataRef.current.value)}),eR=(0,iD.z)(()=>{if(null!==eC.activeOptionIndex){let{dataRef:ee,id:en}=eC.options[eC.activeOptionIndex];eZ(ee.current.value),eb({type:2,focus:ai.Specific,id:en})}}),eI=(0,iD.z)(()=>eb({type:0})),eA=(0,iD.z)(()=>eb({type:1})),eP=(0,iD.z)((ee,en,er)=>ee===ai.Specific?eb({type:2,focus:ai.Specific,id:en,trigger:er}):eb({type:2,focus:ee,trigger:er})),eL=(0,iD.z)((ee,en)=>(eb({type:5,id:ee,dataRef:en}),()=>eb({type:6,id:ee}))),eM=(0,iD.z)(ee=>(eb({type:7,id:ee}),()=>eb({type:7,id:null}))),eZ=(0,iD.z)(ee=>(0,ij.E)(eC.mode,{0:()=>null==ev?void 0:ev(ee),1(){let en=eC.value.slice(),er=en.findIndex(en=>eO(en,ee));return -1===er?en.push(ee):en.splice(er,1),null==ev?void 0:ev(en)}})),eD=(0,iD.z)(ee=>eb({type:3,value:ee})),eF=(0,iD.z)(()=>eb({type:4})),ez=(0,e_.useMemo)(()=>({onChange:eZ,registerOption:eL,registerLabel:eM,goToOption:eP,closeListbox:eA,openListbox:eI,selectActiveOption:eR,selectOption:eN,search:eD,clearSearch:eF}),[]),e$={ref:ex},eW=(0,e_.useRef)(null),eU=iM();return(0,e_.useEffect)(()=>{eW.current&&void 0!==ei&&eU.addEventListener(eW.current,"reset",()=>{eZ(ei)})},[eW,eZ]),e_.createElement(aA.Provider,{value:ez},e_.createElement(aL.Provider,{value:eC},e_.createElement(ik,{value:(0,ij.E)(eC.listboxState,{0:iw.Open,1:iw.Closed})},null!=es&&null!=eg&&ax({[es]:eg}).map(([ee,en],er)=>e_.createElement(am._,{features:am.A.Hidden,ref:0===er?ee=>{var en;eW.current=null!=(en=null==ee?void 0:ee.closest("form"))?en:null}:void 0,...(0,iy.oA)({key:ee,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:eo,name:ee,value:en})})),(0,iy.sY)({ourProps:e$,theirProps:ep,slot:eS,defaultTag:aD,name:"Listbox"}))))}let az="button";function a$(ee,en){var er;let ei=(0,i8.M)(),{id:eo=`headlessui-listbox-button-${ei}`,...es}=ee,eu=aM("Listbox.Button"),ec=aP("Listbox.Button"),ed=(0,iS.T)(eu.buttonRef,en),ef=iM(),eh=(0,iD.z)(ee=>{switch(ee.key){case an.R.Space:case an.R.Enter:case an.R.ArrowDown:ee.preventDefault(),ec.openListbox(),ef.nextFrame(()=>{eu.value||ec.goToOption(ai.First)});break;case an.R.ArrowUp:ee.preventDefault(),ec.openListbox(),ef.nextFrame(()=>{eu.value||ec.goToOption(ai.Last)})}}),ep=(0,iD.z)(ee=>{ee.key===an.R.Space&&ee.preventDefault()}),em=(0,iD.z)(ee=>{if(al(ee.currentTarget))return ee.preventDefault();0===eu.listboxState?(ec.closeListbox(),ef.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})})):(ee.preventDefault(),ec.openListbox())}),ex=at(()=>{if(eu.labelId)return[eu.labelId,eo].join(" ")},[eu.labelId,eo]),eg=(0,e_.useMemo)(()=>({open:0===eu.listboxState,disabled:eu.disabled,value:eu.value}),[eu]),ev={ref:ed,id:eo,type:(0,ad.f)(ee,eu.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(er=eu.optionsRef.current)?void 0:er.id,"aria-expanded":0===eu.listboxState,"aria-labelledby":ex,disabled:eu.disabled,onKeyDown:eh,onKeyUp:ep,onClick:em};return(0,iy.sY)({ourProps:ev,theirProps:es,slot:eg,defaultTag:az,name:"Listbox.Button"})}let aW="label";function aU(ee,en){let er=(0,i8.M)(),{id:ei=`headlessui-listbox-label-${er}`,...eo}=ee,es=aM("Listbox.Label"),eu=aP("Listbox.Label"),ec=(0,iS.T)(es.labelRef,en);(0,iO.e)(()=>eu.registerLabel(ei),[ei]);let ed=(0,iD.z)(()=>{var ee;return null==(ee=es.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}),ef=(0,e_.useMemo)(()=>({open:0===es.listboxState,disabled:es.disabled}),[es]);return(0,iy.sY)({ourProps:{ref:ec,id:ei,onClick:ed},theirProps:eo,slot:ef,defaultTag:aW,name:"Listbox.Label"})}let aH="ul",aG=iy.AN.RenderStrategy|iy.AN.Static;function aV(ee,en){var er;let ei=(0,i8.M)(),{id:eo=`headlessui-listbox-options-${ei}`,...es}=ee,eu=aM("Listbox.Options"),ec=aP("Listbox.Options"),ed=(0,iS.T)(eu.optionsRef,en),ef=iM(),eh=iM(),ep=i_(),em=null!==ep?(ep&iw.Open)===iw.Open:0===eu.listboxState;(0,e_.useEffect)(()=>{var ee;let en=eu.optionsRef.current;en&&0===eu.listboxState&&en!==(null==(ee=(0,ay.r)(en))?void 0:ee.activeElement)&&en.focus({preventScroll:!0})},[eu.listboxState,eu.optionsRef]);let ex=(0,iD.z)(ee=>{switch(eh.dispose(),ee.key){case an.R.Space:if(""!==eu.searchQuery)return ee.preventDefault(),ee.stopPropagation(),ec.search(ee.key);case an.R.Enter:if(ee.preventDefault(),ee.stopPropagation(),null!==eu.activeOptionIndex){let{dataRef:ee}=eu.options[eu.activeOptionIndex];ec.onChange(ee.current.value)}0===eu.mode&&(ec.closeListbox(),(0,iR.k)().nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}));break;case(0,ij.E)(eu.orientation,{vertical:an.R.ArrowDown,horizontal:an.R.ArrowRight}):return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(ai.Next);case(0,ij.E)(eu.orientation,{vertical:an.R.ArrowUp,horizontal:an.R.ArrowLeft}):return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(ai.Previous);case an.R.Home:case an.R.PageUp:return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(ai.First);case an.R.End:case an.R.PageDown:return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(ai.Last);case an.R.Escape:return ee.preventDefault(),ee.stopPropagation(),ec.closeListbox(),ef.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})});case an.R.Tab:ee.preventDefault(),ee.stopPropagation();break;default:1===ee.key.length&&(ec.search(ee.key),eh.setTimeout(()=>ec.clearSearch(),350))}}),eg=at(()=>{var ee,en,er;return null!=(er=null==(ee=eu.labelRef.current)?void 0:ee.id)?er:null==(en=eu.buttonRef.current)?void 0:en.id},[eu.labelRef.current,eu.buttonRef.current]),ev=(0,e_.useMemo)(()=>({open:0===eu.listboxState}),[eu]),ey={"aria-activedescendant":null===eu.activeOptionIndex||null==(er=eu.options[eu.activeOptionIndex])?void 0:er.id,"aria-multiselectable":1===eu.mode||void 0,"aria-labelledby":eg,"aria-orientation":eu.orientation,id:eo,onKeyDown:ex,role:"listbox",tabIndex:0,ref:ed};return(0,iy.sY)({ourProps:ey,theirProps:es,slot:ev,defaultTag:aH,features:aG,visible:em,name:"Listbox.Options"})}let aB="li";function aq(ee,en){let er=(0,i8.M)(),{id:ei=`headlessui-listbox-option-${er}`,disabled:eo=!1,value:es,...eu}=ee,ec=aM("Listbox.Option"),ed=aP("Listbox.Option"),ef=null!==ec.activeOptionIndex&&ec.options[ec.activeOptionIndex].id===ei,eh=ec.isSelected(es),ep=(0,e_.useRef)(null),em=aO(ep),ex=(0,iT.E)({disabled:eo,value:es,domRef:ep,get textValue(){return em()}}),eg=(0,iS.T)(en,ep);(0,iO.e)(()=>{if(0!==ec.listboxState||!ef||0===ec.activationTrigger)return;let ee=(0,iR.k)();return ee.requestAnimationFrame(()=>{var ee,en;null==(en=null==(ee=ep.current)?void 0:ee.scrollIntoView)||en.call(ee,{block:"nearest"})}),ee.dispose},[ep,ef,ec.listboxState,ec.activationTrigger,ec.activeOptionIndex]),(0,iO.e)(()=>ed.registerOption(ei,ex),[ex,ei]);let ev=(0,iD.z)(ee=>{if(eo)return ee.preventDefault();ed.onChange(es),0===ec.mode&&(ed.closeListbox(),(0,iR.k)().nextFrame(()=>{var ee;return null==(ee=ec.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}))}),ey=(0,iD.z)(()=>{if(eo)return ed.goToOption(ai.Nothing);ed.goToOption(ai.Specific,ei)}),eb=a_(),ew=(0,iD.z)(ee=>eb.update(ee)),ek=(0,iD.z)(ee=>{eb.wasMoved(ee)&&(eo||ef||ed.goToOption(ai.Specific,ei,0))}),ej=(0,iD.z)(ee=>{eb.wasMoved(ee)&&(eo||ef&&ed.goToOption(ai.Nothing))}),eE=(0,e_.useMemo)(()=>({active:ef,selected:eh,disabled:eo}),[ef,eh,eo]);return(0,iy.sY)({ourProps:{id:ei,ref:eg,role:"option",tabIndex:!0===eo?void 0:-1,"aria-disabled":!0===eo||void 0,"aria-selected":eh,disabled:void 0,onClick:ev,onFocus:ey,onPointerEnter:ew,onMouseEnter:ew,onPointerMove:ek,onMouseMove:ek,onPointerLeave:ej,onMouseLeave:ej},theirProps:eu,slot:eE,defaultTag:aB,name:"Listbox.Option"})}let aK=Object.assign((0,iy.yV)(aF),{Button:(0,iy.yV)(a$),Label:(0,iy.yV)(aU),Options:(0,iy.yV)(aV),Option:(0,iy.yV)(aq)});var aY=er(3935),aQ=er(9008),aJ=er.n(aQ);function aX(){return(aX=Object.assign?Object.assign.bind():function(ee){for(var en=1;en=0||(eo[er]=ee[er]);return eo}var a1=["keyOverride"],a2=["crossOrigin"],a4={templateTitle:"",noindex:!1,nofollow:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},a5=function(ee,en,er){void 0===en&&(en=[]);var ei=void 0===er?{}:er,eo=ei.defaultWidth,es=ei.defaultHeight;return en.reduce(function(en,er,ei){return en.push(e_.createElement("meta",{key:"og:"+ee+":0"+ei,property:"og:"+ee,content:er.url})),er.alt&&en.push(e_.createElement("meta",{key:"og:"+ee+":alt0"+ei,property:"og:"+ee+":alt",content:er.alt})),er.secureUrl&&en.push(e_.createElement("meta",{key:"og:"+ee+":secure_url0"+ei,property:"og:"+ee+":secure_url",content:er.secureUrl.toString()})),er.type&&en.push(e_.createElement("meta",{key:"og:"+ee+":type0"+ei,property:"og:"+ee+":type",content:er.type.toString()})),er.width?en.push(e_.createElement("meta",{key:"og:"+ee+":width0"+ei,property:"og:"+ee+":width",content:er.width.toString()})):eo&&en.push(e_.createElement("meta",{key:"og:"+ee+":width0"+ei,property:"og:"+ee+":width",content:eo.toString()})),er.height?en.push(e_.createElement("meta",{key:"og:"+ee+":height"+ei,property:"og:"+ee+":height",content:er.height.toString()})):es&&en.push(e_.createElement("meta",{key:"og:"+ee+":height"+ei,property:"og:"+ee+":height",content:es.toString()})),en},[])},a3=function(ee){var en,er,ei,eo,es,eu=[];ee.titleTemplate&&(a4.templateTitle=ee.titleTemplate);var ec="";ee.title?(ec=ee.title,a4.templateTitle&&(ec=a4.templateTitle.replace(/%s/g,function(){return ec}))):ee.defaultTitle&&(ec=ee.defaultTitle),ec&&eu.push(e_.createElement("title",{key:"title"},ec));var ed=void 0===ee.noindex?a4.noindex||ee.dangerouslySetAllPagesToNoIndex:ee.noindex,ef=void 0===ee.nofollow?a4.nofollow||ee.dangerouslySetAllPagesToNoFollow:ee.nofollow,eh="";if(ee.robotsProps){var ep=ee.robotsProps,em=ep.nosnippet,ex=ep.maxSnippet,eg=ep.maxImagePreview,ev=ep.maxVideoPreview,ey=ep.noarchive,eb=ep.noimageindex,ew=ep.notranslate,ek=ep.unavailableAfter;eh=(em?",nosnippet":"")+(ex?",max-snippet:"+ex:"")+(eg?",max-image-preview:"+eg:"")+(ey?",noarchive":"")+(ek?",unavailable_after:"+ek:"")+(eb?",noimageindex":"")+(ev?",max-video-preview:"+ev:"")+(ew?",notranslate":"")}if(ed||ef?(ee.dangerouslySetAllPagesToNoIndex&&(a4.noindex=!0),ee.dangerouslySetAllPagesToNoFollow&&(a4.nofollow=!0),eu.push(e_.createElement("meta",{key:"robots",name:"robots",content:(ed?"noindex":"index")+","+(ef?"nofollow":"follow")+eh}))):eu.push(e_.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+eh})),ee.description&&eu.push(e_.createElement("meta",{key:"description",name:"description",content:ee.description})),ee.themeColor&&eu.push(e_.createElement("meta",{key:"theme-color",name:"theme-color",content:ee.themeColor})),ee.mobileAlternate&&eu.push(e_.createElement("link",{rel:"alternate",key:"mobileAlternate",media:ee.mobileAlternate.media,href:ee.mobileAlternate.href})),ee.languageAlternates&&ee.languageAlternates.length>0&&ee.languageAlternates.forEach(function(ee){eu.push(e_.createElement("link",{rel:"alternate",key:"languageAlternate-"+ee.hrefLang,hrefLang:ee.hrefLang,href:ee.href}))}),ee.twitter&&(ee.twitter.cardType&&eu.push(e_.createElement("meta",{key:"twitter:card",name:"twitter:card",content:ee.twitter.cardType})),ee.twitter.site&&eu.push(e_.createElement("meta",{key:"twitter:site",name:"twitter:site",content:ee.twitter.site})),ee.twitter.handle&&eu.push(e_.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:ee.twitter.handle}))),ee.facebook&&ee.facebook.appId&&eu.push(e_.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:ee.facebook.appId})),(null!=(en=ee.openGraph)&&en.title||ec)&&eu.push(e_.createElement("meta",{key:"og:title",property:"og:title",content:(null==(eo=ee.openGraph)?void 0:eo.title)||ec})),(null!=(er=ee.openGraph)&&er.description||ee.description)&&eu.push(e_.createElement("meta",{key:"og:description",property:"og:description",content:(null==(es=ee.openGraph)?void 0:es.description)||ee.description})),ee.openGraph){if((ee.openGraph.url||ee.canonical)&&eu.push(e_.createElement("meta",{key:"og:url",property:"og:url",content:ee.openGraph.url||ee.canonical})),ee.openGraph.type){var ej=ee.openGraph.type.toLowerCase();eu.push(e_.createElement("meta",{key:"og:type",property:"og:type",content:ej})),"profile"===ej&&ee.openGraph.profile?(ee.openGraph.profile.firstName&&eu.push(e_.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:ee.openGraph.profile.firstName})),ee.openGraph.profile.lastName&&eu.push(e_.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:ee.openGraph.profile.lastName})),ee.openGraph.profile.username&&eu.push(e_.createElement("meta",{key:"profile:username",property:"profile:username",content:ee.openGraph.profile.username})),ee.openGraph.profile.gender&&eu.push(e_.createElement("meta",{key:"profile:gender",property:"profile:gender",content:ee.openGraph.profile.gender}))):"book"===ej&&ee.openGraph.book?(ee.openGraph.book.authors&&ee.openGraph.book.authors.length&&ee.openGraph.book.authors.forEach(function(ee,en){eu.push(e_.createElement("meta",{key:"book:author:0"+en,property:"book:author",content:ee}))}),ee.openGraph.book.isbn&&eu.push(e_.createElement("meta",{key:"book:isbn",property:"book:isbn",content:ee.openGraph.book.isbn})),ee.openGraph.book.releaseDate&&eu.push(e_.createElement("meta",{key:"book:release_date",property:"book:release_date",content:ee.openGraph.book.releaseDate})),ee.openGraph.book.tags&&ee.openGraph.book.tags.length&&ee.openGraph.book.tags.forEach(function(ee,en){eu.push(e_.createElement("meta",{key:"book:tag:0"+en,property:"book:tag",content:ee}))})):"article"===ej&&ee.openGraph.article?(ee.openGraph.article.publishedTime&&eu.push(e_.createElement("meta",{key:"article:published_time",property:"article:published_time",content:ee.openGraph.article.publishedTime})),ee.openGraph.article.modifiedTime&&eu.push(e_.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:ee.openGraph.article.modifiedTime})),ee.openGraph.article.expirationTime&&eu.push(e_.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:ee.openGraph.article.expirationTime})),ee.openGraph.article.authors&&ee.openGraph.article.authors.length&&ee.openGraph.article.authors.forEach(function(ee,en){eu.push(e_.createElement("meta",{key:"article:author:0"+en,property:"article:author",content:ee}))}),ee.openGraph.article.section&&eu.push(e_.createElement("meta",{key:"article:section",property:"article:section",content:ee.openGraph.article.section})),ee.openGraph.article.tags&&ee.openGraph.article.tags.length&&ee.openGraph.article.tags.forEach(function(ee,en){eu.push(e_.createElement("meta",{key:"article:tag:0"+en,property:"article:tag",content:ee}))})):("video.movie"===ej||"video.episode"===ej||"video.tv_show"===ej||"video.other"===ej)&&ee.openGraph.video&&(ee.openGraph.video.actors&&ee.openGraph.video.actors.length&&ee.openGraph.video.actors.forEach(function(ee,en){ee.profile&&eu.push(e_.createElement("meta",{key:"video:actor:0"+en,property:"video:actor",content:ee.profile})),ee.role&&eu.push(e_.createElement("meta",{key:"video:actor:role:0"+en,property:"video:actor:role",content:ee.role}))}),ee.openGraph.video.directors&&ee.openGraph.video.directors.length&&ee.openGraph.video.directors.forEach(function(ee,en){eu.push(e_.createElement("meta",{key:"video:director:0"+en,property:"video:director",content:ee}))}),ee.openGraph.video.writers&&ee.openGraph.video.writers.length&&ee.openGraph.video.writers.forEach(function(ee,en){eu.push(e_.createElement("meta",{key:"video:writer:0"+en,property:"video:writer",content:ee}))}),ee.openGraph.video.duration&&eu.push(e_.createElement("meta",{key:"video:duration",property:"video:duration",content:ee.openGraph.video.duration.toString()})),ee.openGraph.video.releaseDate&&eu.push(e_.createElement("meta",{key:"video:release_date",property:"video:release_date",content:ee.openGraph.video.releaseDate})),ee.openGraph.video.tags&&ee.openGraph.video.tags.length&&ee.openGraph.video.tags.forEach(function(ee,en){eu.push(e_.createElement("meta",{key:"video:tag:0"+en,property:"video:tag",content:ee}))}),ee.openGraph.video.series&&eu.push(e_.createElement("meta",{key:"video:series",property:"video:series",content:ee.openGraph.video.series})))}ee.defaultOpenGraphImageWidth&&(a4.defaultOpenGraphImageWidth=ee.defaultOpenGraphImageWidth),ee.defaultOpenGraphImageHeight&&(a4.defaultOpenGraphImageHeight=ee.defaultOpenGraphImageHeight),ee.openGraph.images&&ee.openGraph.images.length&&eu.push.apply(eu,a5("image",ee.openGraph.images,{defaultWidth:a4.defaultOpenGraphImageWidth,defaultHeight:a4.defaultOpenGraphImageHeight})),ee.defaultOpenGraphVideoWidth&&(a4.defaultOpenGraphVideoWidth=ee.defaultOpenGraphVideoWidth),ee.defaultOpenGraphVideoHeight&&(a4.defaultOpenGraphVideoHeight=ee.defaultOpenGraphVideoHeight),ee.openGraph.videos&&ee.openGraph.videos.length&&eu.push.apply(eu,a5("video",ee.openGraph.videos,{defaultWidth:a4.defaultOpenGraphVideoWidth,defaultHeight:a4.defaultOpenGraphVideoHeight})),ee.openGraph.audio&&eu.push.apply(eu,a5("audio",ee.openGraph.audio)),ee.openGraph.locale&&eu.push(e_.createElement("meta",{key:"og:locale",property:"og:locale",content:ee.openGraph.locale})),(ee.openGraph.siteName||ee.openGraph.site_name)&&eu.push(e_.createElement("meta",{key:"og:site_name",property:"og:site_name",content:ee.openGraph.siteName||ee.openGraph.site_name}))}return ee.canonical&&eu.push(e_.createElement("link",{rel:"canonical",href:ee.canonical,key:"canonical"})),ee.additionalMetaTags&&ee.additionalMetaTags.length>0&&ee.additionalMetaTags.forEach(function(ee){var en,er,ei=ee.keyOverride,eo=a0(ee,a1);eu.push(e_.createElement("meta",aX({key:"meta:"+(null!=(en=null!=(er=null!=ei?ei:eo.name)?er:eo.property)?en:eo.httpEquiv)},eo)))}),null!=(ei=ee.additionalLinkTags)&&ei.length&&ee.additionalLinkTags.forEach(function(ee){var en,er=ee.crossOrigin,ei=a0(ee,a2),eo="anonymous"===er||"use-credentials"===er||""===er?er:void 0;eu.push(e_.createElement("link",aX({key:"link"+(null!=(en=ei.keyOverride)?en:ei.href)+ei.rel},ei,{crossOrigin:eo})))}),eu},a7=function(ee){return e_.createElement(aJ(),null,a3(ee))},a6=function(ee){var en=ee.title,er=ee.themeColor,ei=ee.noindex,eo=ee.nofollow,es=ee.robotsProps,eu=ee.description,ec=ee.canonical,ed=ee.openGraph,ef=ee.facebook,eh=ee.twitter,ep=ee.additionalMetaTags,em=ee.titleTemplate,ex=ee.defaultTitle,eg=ee.mobileAlternate,ev=ee.languageAlternates,ey=ee.additionalLinkTags;return e_.createElement(e_.Fragment,null,e_.createElement(a7,{title:en,themeColor:er,noindex:ei,nofollow:eo,robotsProps:es,description:eu,canonical:ec,facebook:ef,openGraph:ed,additionalMetaTags:ep,twitter:eh,titleTemplate:em,defaultTitle:ex,mobileAlternate:eg,languageAlternates:ev,additionalLinkTags:ey}))};function a9({container:ee,accept:en,walk:er,enabled:ei=!0}){let eo=(0,e_.useRef)(en),es=(0,e_.useRef)(er);(0,e_.useEffect)(()=>{eo.current=en,es.current=er},[en,er]),(0,iO.e)(()=>{if(!ee||!ei)return;let en=(0,ay.r)(ee);if(!en)return;let er=eo.current,eu=es.current,ec=Object.assign(ee=>er(ee),{acceptNode:er}),ed=en.createTreeWalker(ee,NodeFilter.SHOW_ELEMENT,ec,!1);for(;ed.nextNode();)eu(ed.currentNode)},[ee,ei,eo,es])}function a8(...ee){return(0,e_.useMemo)(()=>(0,ay.r)(...ee),[...ee])}RegExp("["+Object.keys(Object.freeze({"&":"&","<":"<",">":">",'"':""","'":"'"})).join("")+"]","g");var ot=((eh=ot||{})[eh.Open=0]="Open",eh[eh.Closed=1]="Closed",eh),on=((ep=on||{})[ep.Pointer=0]="Pointer",ep[ep.Other=1]="Other",ep),or=((em=or||{})[em.OpenMenu=0]="OpenMenu",em[em.CloseMenu=1]="CloseMenu",em[em.GoToItem=2]="GoToItem",em[em.Search=3]="Search",em[em.ClearSearch=4]="ClearSearch",em[em.RegisterItem=5]="RegisterItem",em[em.UnregisterItem=6]="UnregisterItem",em);function oi(ee,en=ee=>ee){let er=null!==ee.activeItemIndex?ee.items[ee.activeItemIndex]:null,ei=(0,ac.z2)(en(ee.items.slice()),ee=>ee.dataRef.current.domRef.current),eo=er?ei.indexOf(er):null;return -1===eo&&(eo=null),{items:ei,activeItemIndex:eo}}let oo={1:ee=>1===ee.menuState?ee:{...ee,activeItemIndex:null,menuState:1},0:ee=>0===ee.menuState?ee:{...ee,__demoMode:!1,menuState:0},2:(ee,en)=>{var er;let ei=oi(ee),eo=ao(en,{resolveItems:()=>ei.items,resolveActiveIndex:()=>ei.activeItemIndex,resolveId:ee=>ee.id,resolveDisabled:ee=>ee.dataRef.current.disabled});return{...ee,...ei,searchQuery:"",activeItemIndex:eo,activationTrigger:null!=(er=en.trigger)?er:1}},3:(ee,en)=>{let er=""!==ee.searchQuery?0:1,ei=ee.searchQuery+en.value.toLowerCase(),eo=(null!==ee.activeItemIndex?ee.items.slice(ee.activeItemIndex+er).concat(ee.items.slice(0,ee.activeItemIndex+er)):ee.items).find(ee=>{var en;return(null==(en=ee.dataRef.current.textValue)?void 0:en.startsWith(ei))&&!ee.dataRef.current.disabled}),es=eo?ee.items.indexOf(eo):-1;return -1===es||es===ee.activeItemIndex?{...ee,searchQuery:ei}:{...ee,searchQuery:ei,activeItemIndex:es,activationTrigger:1}},4:ee=>""===ee.searchQuery?ee:{...ee,searchQuery:"",searchActiveItemIndex:null},5:(ee,en)=>{let er=oi(ee,ee=>[...ee,{id:en.id,dataRef:en.dataRef}]);return{...ee,...er}},6:(ee,en)=>{let er=oi(ee,ee=>{let er=ee.findIndex(ee=>ee.id===en.id);return -1!==er&&ee.splice(er,1),ee});return{...ee,...er,activationTrigger:1}}},os=(0,e_.createContext)(null);function ol(ee){let en=(0,e_.useContext)(os);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,ol),en}return en}function ou(ee,en){return(0,ij.E)(en.type,oo,ee,en)}os.displayName="MenuContext";let oc=e_.Fragment;function od(ee,en){let{__demoMode:er=!1,...ei}=ee,eo=(0,e_.useReducer)(ou,{__demoMode:er,menuState:er?0:1,buttonRef:(0,e_.createRef)(),itemsRef:(0,e_.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:es,itemsRef:eu,buttonRef:ec},ed]=eo,ef=(0,iS.T)(en);ap([ec,eu],(ee,en)=>{var er;ed({type:1}),(0,ac.sP)(en,ac.tJ.Loose)||(ee.preventDefault(),null==(er=ec.current)||er.focus())},0===es);let eh=(0,iD.z)(()=>{ed({type:1})}),ep=(0,e_.useMemo)(()=>({open:0===es,close:eh}),[es,eh]),em={ref:ef};return e_.createElement(os.Provider,{value:eo},e_.createElement(ik,{value:(0,ij.E)(es,{0:iw.Open,1:iw.Closed})},(0,iy.sY)({ourProps:em,theirProps:ei,slot:ep,defaultTag:oc,name:"Menu"})))}let of="button";function oh(ee,en){var er;let ei=(0,i8.M)(),{id:eo=`headlessui-menu-button-${ei}`,...es}=ee,[eu,ec]=ol("Menu.Button"),ed=(0,iS.T)(eu.buttonRef,en),ef=iM(),eh=(0,iD.z)(ee=>{switch(ee.key){case an.R.Space:case an.R.Enter:case an.R.ArrowDown:ee.preventDefault(),ee.stopPropagation(),ec({type:0}),ef.nextFrame(()=>ec({type:2,focus:ai.First}));break;case an.R.ArrowUp:ee.preventDefault(),ee.stopPropagation(),ec({type:0}),ef.nextFrame(()=>ec({type:2,focus:ai.Last}))}}),ep=(0,iD.z)(ee=>{ee.key===an.R.Space&&ee.preventDefault()}),em=(0,iD.z)(en=>{if(al(en.currentTarget))return en.preventDefault();ee.disabled||(0===eu.menuState?(ec({type:1}),ef.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})})):(en.preventDefault(),ec({type:0})))}),ex=(0,e_.useMemo)(()=>({open:0===eu.menuState}),[eu]),eg={ref:ed,id:eo,type:(0,ad.f)(ee,eu.buttonRef),"aria-haspopup":"menu","aria-controls":null==(er=eu.itemsRef.current)?void 0:er.id,"aria-expanded":0===eu.menuState,onKeyDown:eh,onKeyUp:ep,onClick:em};return(0,iy.sY)({ourProps:eg,theirProps:es,slot:ex,defaultTag:of,name:"Menu.Button"})}let op="div",om=iy.AN.RenderStrategy|iy.AN.Static;function ox(ee,en){var er,ei;let eo=(0,i8.M)(),{id:es=`headlessui-menu-items-${eo}`,...eu}=ee,[ec,ed]=ol("Menu.Items"),ef=(0,iS.T)(ec.itemsRef,en),eh=a8(ec.itemsRef),ep=iM(),em=i_(),ex=null!==em?(em&iw.Open)===iw.Open:0===ec.menuState;(0,e_.useEffect)(()=>{let ee=ec.itemsRef.current;ee&&0===ec.menuState&&ee!==(null==eh?void 0:eh.activeElement)&&ee.focus({preventScroll:!0})},[ec.menuState,ec.itemsRef,eh]),a9({container:ec.itemsRef.current,enabled:0===ec.menuState,accept:ee=>"menuitem"===ee.getAttribute("role")?NodeFilter.FILTER_REJECT:ee.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(ee){ee.setAttribute("role","none")}});let eg=(0,iD.z)(ee=>{var en,er;switch(ep.dispose(),ee.key){case an.R.Space:if(""!==ec.searchQuery)return ee.preventDefault(),ee.stopPropagation(),ed({type:3,value:ee.key});case an.R.Enter:if(ee.preventDefault(),ee.stopPropagation(),ed({type:1}),null!==ec.activeItemIndex){let{dataRef:ee}=ec.items[ec.activeItemIndex];null==(er=null==(en=ee.current)?void 0:en.domRef.current)||er.click()}(0,ac.wI)(ec.buttonRef.current);break;case an.R.ArrowDown:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:ai.Next});case an.R.ArrowUp:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:ai.Previous});case an.R.Home:case an.R.PageUp:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:ai.First});case an.R.End:case an.R.PageDown:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:ai.Last});case an.R.Escape:ee.preventDefault(),ee.stopPropagation(),ed({type:1}),(0,iR.k)().nextFrame(()=>{var ee;return null==(ee=ec.buttonRef.current)?void 0:ee.focus({preventScroll:!0})});break;case an.R.Tab:ee.preventDefault(),ee.stopPropagation(),ed({type:1}),(0,iR.k)().nextFrame(()=>{(0,ac.EO)(ec.buttonRef.current,ee.shiftKey?ac.TO.Previous:ac.TO.Next)});break;default:1===ee.key.length&&(ed({type:3,value:ee.key}),ep.setTimeout(()=>ed({type:4}),350))}}),ev=(0,iD.z)(ee=>{ee.key===an.R.Space&&ee.preventDefault()}),ey=(0,e_.useMemo)(()=>({open:0===ec.menuState}),[ec]),eb={"aria-activedescendant":null===ec.activeItemIndex||null==(er=ec.items[ec.activeItemIndex])?void 0:er.id,"aria-labelledby":null==(ei=ec.buttonRef.current)?void 0:ei.id,id:es,onKeyDown:eg,onKeyUp:ev,role:"menu",tabIndex:0,ref:ef};return(0,iy.sY)({ourProps:eb,theirProps:eu,slot:ey,defaultTag:op,features:om,visible:ex,name:"Menu.Items"})}let og=e_.Fragment;function ov(ee,en){let er=(0,i8.M)(),{id:ei=`headlessui-menu-item-${er}`,disabled:eo=!1,...es}=ee,[eu,ec]=ol("Menu.Item"),ed=null!==eu.activeItemIndex&&eu.items[eu.activeItemIndex].id===ei,ef=(0,e_.useRef)(null),eh=(0,iS.T)(en,ef);(0,iO.e)(()=>{if(eu.__demoMode||0!==eu.menuState||!ed||0===eu.activationTrigger)return;let ee=(0,iR.k)();return ee.requestAnimationFrame(()=>{var ee,en;null==(en=null==(ee=ef.current)?void 0:ee.scrollIntoView)||en.call(ee,{block:"nearest"})}),ee.dispose},[eu.__demoMode,ef,ed,eu.menuState,eu.activationTrigger,eu.activeItemIndex]);let ep=aO(ef),em=(0,e_.useRef)({disabled:eo,domRef:ef,get textValue(){return ep()}});(0,iO.e)(()=>{em.current.disabled=eo},[em,eo]),(0,iO.e)(()=>(ec({type:5,id:ei,dataRef:em}),()=>ec({type:6,id:ei})),[em,ei]);let ex=(0,iD.z)(()=>{ec({type:1})}),eg=(0,iD.z)(ee=>{if(eo)return ee.preventDefault();ec({type:1}),(0,ac.wI)(eu.buttonRef.current)}),ev=(0,iD.z)(()=>{if(eo)return ec({type:2,focus:ai.Nothing});ec({type:2,focus:ai.Specific,id:ei})}),ey=a_(),eb=(0,iD.z)(ee=>ey.update(ee)),ew=(0,iD.z)(ee=>{ey.wasMoved(ee)&&(eo||ed||ec({type:2,focus:ai.Specific,id:ei,trigger:0}))}),ek=(0,iD.z)(ee=>{ey.wasMoved(ee)&&(eo||ed&&ec({type:2,focus:ai.Nothing}))}),ej=(0,e_.useMemo)(()=>({active:ed,disabled:eo,close:ex}),[ed,eo,ex]);return(0,iy.sY)({ourProps:{id:ei,ref:eh,role:"menuitem",tabIndex:!0===eo?void 0:-1,"aria-disabled":!0===eo||void 0,disabled:void 0,onClick:eg,onFocus:ev,onPointerEnter:eb,onMouseEnter:eb,onPointerMove:ew,onMouseMove:ew,onPointerLeave:ek,onMouseLeave:ek},theirProps:es,slot:ej,defaultTag:og,name:"Menu.Item"})}let oy=Object.assign((0,iy.yV)(od),{Button:(0,iy.yV)(oh),Items:(0,iy.yV)(ox),Item:(0,iy.yV)(ov)}),ob=ee=>"object"==typeof ee&&null!=ee&&1===ee.nodeType,ow=(ee,en)=>(!en||"hidden"!==ee)&&"visible"!==ee&&"clip"!==ee,o_=(ee,en)=>{if(ee.clientHeight{let en=(ee=>{if(!ee.ownerDocument||!ee.ownerDocument.defaultView)return null;try{return ee.ownerDocument.defaultView.frameElement}catch(ee){return null}})(ee);return!!en&&(en.clientHeightesen||es>ee&&eu=en&&ec>=er?es-ee-ei:eu>en&&ecer?eu-en+eo:0,oj=ee=>{let en=ee.parentElement;return null==en?ee.getRootNode().host||null:en},oE=(ee,en)=>{var er,ei,eo,es;if("undefined"==typeof document)return[];let{scrollMode:eu,block:ec,inline:ed,boundary:ef,skipOverflowHiddenElements:eh}=en,ep="function"==typeof ef?ef:ee=>ee!==ef;if(!ob(ee))throw TypeError("Invalid target");let em=document.scrollingElement||document.documentElement,ex=[],eg=ee;for(;ob(eg)&&ep(eg);){if((eg=oj(eg))===em){ex.push(eg);break}null!=eg&&eg===document.body&&o_(eg)&&!o_(document.documentElement)||null!=eg&&o_(eg,eh)&&ex.push(eg)}let ev=null!=(ei=null==(er=window.visualViewport)?void 0:er.width)?ei:innerWidth,ey=null!=(es=null==(eo=window.visualViewport)?void 0:eo.height)?es:innerHeight,{scrollX:eb,scrollY:ew}=window,{height:e_,width:ek,top:ej,right:eE,bottom:eO,left:eT}=ee.getBoundingClientRect(),eC="start"===ec||"nearest"===ec?ej:"end"===ec?eO:ej+e_/2,eS="center"===ed?eT+ek/2:"end"===ed?eE:eT,eN=[];for(let ee=0;ee=0&&eT>=0&&eO<=ey&&eE<=ev&&ej>=eo&&eO<=ef&&eT>=eh&&eE<=es)break;let ep=getComputedStyle(en),eg=parseInt(ep.borderLeftWidth,10),eR=parseInt(ep.borderTopWidth,10),eI=parseInt(ep.borderRightWidth,10),eA=parseInt(ep.borderBottomWidth,10),eP=0,eL=0,eM="offsetWidth"in en?en.offsetWidth-en.clientWidth-eg-eI:0,eZ="offsetHeight"in en?en.offsetHeight-en.clientHeight-eR-eA:0,eD="offsetWidth"in en?0===en.offsetWidth?0:ei/en.offsetWidth:0,eF="offsetHeight"in en?0===en.offsetHeight?0:er/en.offsetHeight:0;if(em===en)eP="start"===ec?eC:"end"===ec?eC-ey:"nearest"===ec?ok(ew,ew+ey,ey,eR,eA,ew+eC,ew+eC+e_,e_):eC-ey/2,eL="start"===ed?eS:"center"===ed?eS-ev/2:"end"===ed?eS-ev:ok(eb,eb+ev,ev,eg,eI,eb+eS,eb+eS+ek,ek),eP=Math.max(0,eP+ew),eL=Math.max(0,eL+eb);else{eP="start"===ec?eC-eo-eR:"end"===ec?eC-ef+eA+eZ:"nearest"===ec?ok(eo,ef,er,eR,eA+eZ,eC,eC+e_,e_):eC-(eo+er/2)+eZ/2,eL="start"===ed?eS-eh-eg:"center"===ed?eS-(eh+ei/2)+eM/2:"end"===ed?eS-es+eI+eM:ok(eh,es,ei,eg,eI+eM,eS,eS+ek,ek);let{scrollLeft:ee,scrollTop:eu}=en;eP=Math.max(0,Math.min(eu+eP/eF,en.scrollHeight-er/eF+eZ)),eL=Math.max(0,Math.min(ee+eL/eD,en.scrollWidth-ei/eD+eM)),eC+=eu-eP,eS+=ee-eL}eN.push({el:en,top:eP,left:eL})}return eN},oO=ee=>{var en;return!1===ee?{block:"end",inline:"nearest"}:(en=ee,en===Object(en)&&0!==Object.keys(en).length)?ee:{block:"start",inline:"nearest"}};function oT(ee,en){var er;if(!ee.isConnected||!(ee=>{let en=ee;for(;en&&en.parentNode;){if(en.parentNode===document)return!0;en=en.parentNode instanceof ShadowRoot?en.parentNode.host:en.parentNode}return!1})(ee))return;if("object"==typeof(er=en)&&"function"==typeof er.behavior)return en.behavior(oE(ee,en));let ei="boolean"==typeof en||null==en?void 0:en.behavior;for(let{el:er,top:eo,left:es}of oE(ee,oO(en)))er.scroll({top:eo,left:es,behavior:ei})}function oC(){return(oC=Object.assign?Object.assign.bind():function(ee){for(var en=1;en=(void 0===ef?eu:ef)&&ee.push(oC({},ec,{item:ei,index:es})),ee}}function oP(ee,en,er,ei){if(!en){var eo=ee;return{rankedValue:eo,rank:oL(eo,er,ei),keyIndex:-1,keyThreshold:ei.threshold}}return oW(ee,en).reduce(function(ee,en,eo){var es=ee.rank,eu=ee.rankedValue,ec=ee.keyIndex,ed=ee.keyThreshold,ef=en.itemValue,eh=en.attributes,ep=oL(ef,er,ei),em=eu,ex=eh.minRanking,eg=eh.maxRanking,ev=eh.threshold;return ep=oR.MATCHES?ep=ex:ep>eg&&(ep=eg),ep>es&&(es=ep,ec=eo,ed=ev,em=ef),{rankedValue:em,rank:es,keyIndex:ec,keyThreshold:ed}},{rankedValue:ee,rank:oR.NO_MATCH,keyIndex:-1,keyThreshold:ei.threshold})}function oL(ee,en,er){return(ee=oF(ee,er),(en=oF(en,er)).length>ee.length)?oR.NO_MATCH:ee===en?oR.CASE_SENSITIVE_EQUAL:(ee=ee.toLowerCase())===(en=en.toLowerCase())?oR.EQUAL:ee.startsWith(en)?oR.STARTS_WITH:ee.includes(" "+en)?oR.WORD_STARTS_WITH:ee.includes(en)?oR.CONTAINS:1===en.length?oR.NO_MATCH:oM(ee).includes(en)?oR.ACRONYM:oZ(ee,en)}function oM(ee){var en="";return ee.split(" ").forEach(function(ee){ee.split("-").forEach(function(ee){en+=ee.substr(0,1)})}),en}function oZ(ee,en){var er=0,ei=0;function eo(ee,en,ei){for(var eo=ei,es=en.length;eo-1))return oR.NO_MATCH;return es(ei-eu)}function oD(ee,en,er){var ei=-1,eo=1,es=ee.rank,eu=ee.keyIndex,ec=en.rank,ed=en.keyIndex;return es!==ec?es>ec?ei:eo:eu===ed?er(ee,en):euen in ee?oV(ee,en,{enumerable:!0,configurable:!0,writable:!0,value:er}):ee[en]=er,oX=(ee,en)=>{for(var er in en||(en={}))oY.call(en,er)&&oJ(ee,er,en[er]);if(oK)for(var er of oK(en))oQ.call(en,er)&&oJ(ee,er,en[er]);return ee},o0=(ee,en)=>oB(ee,oq(en)),o1=(ee,en)=>{var er={};for(var ei in ee)oY.call(ee,ei)&&0>en.indexOf(ei)&&(er[ei]=ee[ei]);if(null!=ee&&oK)for(var ei of oK(ee))0>en.indexOf(ei)&&oQ.call(ee,ei)&&(er[ei]=ee[ei]);return er},o2=(ee,en,er)=>new Promise((ei,eo)=>{var es=ee=>{try{ec(er.next(ee))}catch(ee){eo(ee)}},eu=ee=>{try{ec(er.throw(ee))}catch(ee){eo(ee)}},ec=ee=>ee.done?ei(ee.value):Promise.resolve(ee.value).then(es,eu);ec((er=er.apply(ee,en)).next())}),o4=(0,e_.createContext)({}),o5=(0,e_.createContext)(ee=>ee),o3=(0,e_.createContext)(null),o7=new WeakMap,o6=(0,e_.createContext)(o7),o9=()=>(0,e_.useContext)(o4),o8=()=>(0,e_.useContext)(o5),st=()=>(0,e_.useContext)(o3),sn=()=>(0,e_.useContext)(o6),sr=({children:ee})=>{let[en,er]=(0,e_.useState)({}),ei=(0,e_.useRef)(null);return s8&&!ei.current&&(ei.current=new IntersectionObserver(ee=>{er(en=>{let er=oX({},en);for(let en of ee)if((null==en?void 0:en.rootBounds)&&o7.has(en.target)){let[ee,ei]=o7.get(en.target),eo=en.boundingClientRect.y+en.boundingClientRect.height<=en.rootBounds.y+en.rootBounds.height,es=en.intersectionRatio>0;er[ee]={index:ei,aboveHalfViewport:eo,insideHalfViewport:es}}let ei="",eo=1/0,es=-1;for(let ee in er)er[ee].isActive=!1,er[ee].insideHalfViewport&&er[ee].indexes&&(es=er[ee].index,ei=ee);return er[ei]&&(er[ei].isActive=!0),er})},{rootMargin:"0px 0px -50%",threshold:[0,1]})),(0,nO.jsx)(o4.Provider,{value:en,children:(0,nO.jsx)(o5.Provider,{value:er,children:(0,nO.jsx)(o6.Provider,{value:o7,children:(0,nO.jsx)(o3.Provider,{value:ei.current,children:ee})})})})},si=(0,e_.createContext)({menu:!1,setMenu:()=>!1}),so=()=>(0,e_.useContext)(si),ss=si.Provider,sl=(0,e_.createContext)(oX({title:"",frontMatter:{}},lc));function su(){return(0,e_.useContext)(sl)}var sc=({children:ee,value:{themeConfig:en,pageOpts:er}})=>{let[ei,eo]=(0,e_.useState)(!1);eb||(eb=oX(oX({},lc),Object.fromEntries(Object.entries(en).map(([ee,en])=>[ee,en&&"object"==typeof en&&ld.includes(ee)?oX(oX({},lc[ee]),en):en]))));let es=o0(oX(o0(oX({},eb),{flexsearch:er.flexsearch}),"boolean"==typeof er.newNextLinkBehavior&&{newNextLinkBehavior:er.newNextLinkBehavior}),{title:er.title,frontMatter:er.frontMatter}),{nextThemes:eu}=es;return(0,nO.jsx)(nA,{attribute:"class",disableTransitionOnChange:!0,defaultTheme:eu.defaultTheme,storageKey:eu.storageKey,forcedTheme:eu.forcedTheme,children:(0,nO.jsx)(sl.Provider,{value:es,children:(0,nO.jsx)(ss,{value:{menu:ei,setMenu:eo},children:ee})})})},sd=(0,e_.createContext)(ee=>ee),sf=()=>(0,e_.useContext)(sd),sh=sd.Provider,sp=Number("13.4.12".split(".")[0]),sm=(0,e_.forwardRef)(function(ee,en){var er=ee,{href:ei="",children:eo,newWindow:es}=er,eu=o1(er,["href","children","newWindow"]);let ec=su();return es?(0,nO.jsxs)("a",o0(oX({ref:en,href:ei,target:"_blank",rel:"noreferrer"},eu),{children:[eo,(0,nO.jsx)("span",{className:"nx-sr-only nx-select-none",children:" (opens in a new tab)"})]})):ei?sp>12||ec.newNextLinkBehavior?(0,nO.jsx)(nE(),o0(oX({ref:en,href:ei},eu),{children:eo})):(0,nO.jsx)(nE(),{href:ei,passHref:!0,children:(0,nO.jsx)("a",o0(oX({ref:en},eu),{children:eo}))}):(0,nO.jsx)("a",o0(oX({ref:en},eu),{children:eo}))});sm.displayName="Anchor";var sx=({repository:ee="",title:en,labels:er})=>{let ei=nJ()(ee);if(!ei)throw Error("Invalid `docsRepositoryBase` URL!");return ei.resource.includes("gitlab")?`${ei.protocol}://${ei.resource}/${ei.owner}/${ei.name}/-/issues/new?issue[title]=${encodeURIComponent(en)}`:ei.resource.includes("github")?`${ei.protocol}://${ei.resource}/${ei.owner}/${ei.name}/issues/new?title=${encodeURIComponent(en)}&labels=${er||""}`:"#"};function sg(ee,en){return ee?"function"!=typeof ee?ee:(0,nO.jsx)(ee,oX({},en)):null}function sv(ee,en={}){let er="function"==typeof ee?ee(en):ee;return er||""}function sy(ee){let en=(0,e_.useRef)(null),er=(0,e_.useRef)(null),ei=(0,e_.useRef)(),eo=(0,e_.useCallback)(()=>{var eo;en.current&&er.current&&(null==(eo=ei.current)||eo.call(ei),ei.current=ix(en.current,er.current,ee).destroy)},[en,er,ei,ee]);return(0,e_.useMemo)(()=>[ee=>{en.current=ee,eo()},ee=>{er.current=ee,eo()}],[en,er,eo])}function sb(ee=""){let en=su(),er=nJ()(en.docsRepositoryBase||"");if(!er)throw Error("Invalid `docsRepositoryBase` URL!");return`${er.href}/${ee}`}function sw(){let{banner:ee}=su();if(!ee.text)return null;let en=`try{if(localStorage.getItem(${JSON.stringify(ee.key)})==='0'){document.body.classList.add('nextra-banner-hidden')}}catch(e){}`;return(0,nO.jsxs)(nO.Fragment,{children:[(0,nO.jsx)("script",{dangerouslySetInnerHTML:{__html:en}}),(0,nO.jsxs)("div",{className:(0,ek.Z)("nextra-banner-container nx-sticky nx-top-0 nx-z-20 nx-flex nx-items-center md:nx-relative","nx-h-[var(--nextra-banner-height)] [body.nextra-banner-hidden_&]:nx-hidden","nx-text-slate-50 dark:nx-text-white nx-bg-neutral-900 dark:nx-bg-[linear-gradient(1deg,#383838,#212121)]","nx-px-2 ltr:nx-pl-10 rtl:nx-pr-10 print:nx-hidden"),children:[(0,nO.jsx)("div",{className:"nx-w-full nx-truncate nx-px-4 nx-text-center nx-font-medium nx-text-sm",children:sg(ee.text)}),ee.dismissible&&(0,nO.jsx)("button",{type:"button","aria-label":"Dismiss banner",className:"nx-w-8 nx-h-8 nx-opacity-80 hover:nx-opacity-100",onClick:()=>{try{localStorage.setItem(ee.key,"0")}catch(ee){}document.body.classList.add("nextra-banner-hidden")},children:(0,nO.jsx)(eS.b0,{className:"nx-mx-auto nx-h-4 nx-w-4"})})]})]})}function s_({activePath:ee}){return(0,nO.jsx)("div",{className:"nextra-breadcrumb nx-mt-1.5 nx-flex nx-items-center nx-gap-1 nx-overflow-hidden nx-text-sm nx-text-gray-500 dark:nx-text-gray-400 contrast-more:nx-text-current",children:ee.map((en,er)=>{let ei=!en.children||en.withIndexPage,eo=er===ee.length-1;return(0,nO.jsxs)(e_.Fragment,{children:[er>0&&(0,nO.jsx)(eS.LZ,{className:"nx-w-3.5 nx-shrink-0"}),(0,nO.jsx)("div",{className:(0,ek.Z)("nx-whitespace-nowrap nx-transition-colors",eo?"nx-font-medium nx-text-gray-700 contrast-more:nx-font-bold contrast-more:nx-text-current dark:nx-text-gray-100 contrast-more:dark:nx-text-current":["nx-min-w-[24px] nx-overflow-hidden nx-text-ellipsis",ei&&"hover:nx-text-gray-900 dark:hover:nx-text-gray-100"]),title:en.title,children:ei&&!eo?(0,nO.jsx)(sm,{href:en.route,children:en.title}):en.title})]},en.route+en.name)})})}function sk({children:ee,className:en,isOpen:er,horizontal:ei=!1}){let eo=(0,e_.useRef)(null),es=(0,e_.useRef)(null),eu=(0,e_.useRef)(0),ec=(0,e_.useRef)(er),ed=(0,e_.useRef)(!0);return(0,e_.useEffect)(()=>{let ee=eo.current,en=es.current,ec=eu.current;ec&&clearTimeout(ec),!ed.current&&ee&&en&&(ee.classList.toggle("nx-duration-500",!er),ee.classList.toggle("nx-duration-300",er),ei?(en.style.width=`${en.clientWidth}px`,ee.style.width=`${en.clientWidth}px`):ee.style.height=`${en.clientHeight}px`,er?eu.current=window.setTimeout(()=>{ee.style.removeProperty("height")},300):setTimeout(()=>{ei?ee.style.width="0px":ee.style.height="0px"},0))},[ei,er]),(0,e_.useEffect)(()=>{ed.current=!1},[]),(0,nO.jsx)("div",{ref:eo,className:"nx-transform-gpu nx-overflow-hidden nx-transition-all nx-ease-in-out motion-reduce:nx-transition-none",style:ec.current||ei?void 0:{height:0},children:(0,nO.jsx)("div",{ref:es,className:(0,ek.Z)("nx-transition-opacity nx-duration-500 nx-ease-in-out motion-reduce:nx-transition-none",er?"nx-opacity-100":"nx-opacity-0",en),children:ee})})}var sj=(0,e_.memo)(function({value:ee,match:en}){let er;let ei=ee?ee.split(""):[],eo=en.trim().replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),es=RegExp("("+eo.replaceAll(" ","|")+")","ig"),eu=0,ec=0,ed=[];if(ee)for(;null!==(er=es.exec(ee));)ed.push((0,nO.jsxs)(e_.Fragment,{children:[ei.splice(0,er.index-ec).join(""),(0,nO.jsx)("span",{className:"nx-text-primary-600",children:ei.splice(0,es.lastIndex-er.index).join("")})]},eu++)),ec=es.lastIndex;return(0,nO.jsxs)(nO.Fragment,{children:[ed,ei.join("")]})}),sE=(0,e_.forwardRef)((ee,en)=>{var er=ee,{className:ei,suffix:eo}=er,es=o1(er,["className","suffix"]);return(0,nO.jsxs)("div",{className:"nx-relative nx-flex nx-items-center nx-text-gray-900 contrast-more:nx-text-gray-800 dark:nx-text-gray-300 contrast-more:dark:nx-text-gray-300",children:[(0,nO.jsx)("input",oX({ref:en,spellCheck:!1,className:(0,ek.Z)(ei,"nx-block nx-w-full nx-appearance-none nx-rounded-lg nx-px-3 nx-py-2 nx-transition-colors","nx-text-base nx-leading-tight md:nx-text-sm","nx-bg-black/[.05] dark:nx-bg-gray-50/10","focus:nx-bg-white dark:focus:nx-bg-dark","placeholder:nx-text-gray-500 dark:placeholder:nx-text-gray-400","contrast-more:nx-border contrast-more:nx-border-current")},es)),eo]})});sE.displayName="Input";var sO=["input","select","button","textarea"];function sT({className:ee,overlayClassName:en,value:er,onChange:ei,onActive:eo,loading:es,error:eu,results:ec}){let[ed,ef]=(0,e_.useState)(!1),eh=su(),[ep,em]=(0,e_.useState)(0),ex=(0,ew.useRouter)(),{setMenu:eg}=so(),ev=(0,e_.useRef)(null),ey=(0,e_.useRef)(null),[eb,eE]=(0,e_.useState)(!1);(0,e_.useEffect)(()=>{em(0)},[er]),(0,e_.useEffect)(()=>{let ee=ee=>{let en=document.activeElement,er=null==en?void 0:en.tagName.toLowerCase();!ev.current||!er||sO.includes(er)||null!=en&&en.isContentEditable||("/"===ee.key||"k"===ee.key&&(ee.metaKey||ee.ctrlKey)?(ee.preventDefault(),ev.current.focus()):"Escape"===ee.key&&(ef(!1),ev.current.blur()))};return window.addEventListener("keydown",ee),()=>{window.removeEventListener("keydown",ee)}},[]);let eO=(0,e_.useCallback)(()=>{var ee;null==(ee=ev.current)||ee.blur(),ei(""),ef(!1),eg(!1)},[ei,eg]),eT=(0,e_.useCallback)(ee=>{let{index:en}=ee.currentTarget.dataset;em(Number(en))},[]),eC=(0,e_.useCallback)(function(ee){var en,er,ei;switch(ee.key){case"ArrowDown":if(ep+1 a`);er&&(ee.preventDefault(),eT({currentTarget:er}),er.focus())}break;case"ArrowUp":if(ep-1>=0){let en=null==(er=ey.current)?void 0:er.querySelector(`li:nth-of-type(${ep}) > a`);en&&(ee.preventDefault(),eT({currentTarget:en}),en.focus())}break;case"Enter":{let ee=ec[ep];ee&&(ex.push(ee.route),eO());break}case"Escape":ef(!1),null==(ei=ev.current)||ei.blur()}},[ep,ec,ex,eO,eT]),eN=ej(),eR=ed&&!!er,eI=(0,nO.jsx)(i6,{show:eN&&(!ed||!!er),as:e_.Fragment,enter:"nx-transition-opacity",enterFrom:"nx-opacity-0",enterTo:"nx-opacity-100",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,nO.jsx)("kbd",{className:(0,ek.Z)("nx-absolute nx-my-1.5 nx-select-none ltr:nx-right-1.5 rtl:nx-left-1.5","nx-h-5 nx-rounded nx-bg-white nx-px-1.5 nx-font-mono nx-text-[10px] nx-font-medium nx-text-gray-500","nx-border dark:nx-border-gray-100/20 dark:nx-bg-dark/50","contrast-more:nx-border-current contrast-more:nx-text-current contrast-more:dark:nx-border-current","nx-items-center nx-gap-1 nx-transition-opacity",er?"nx-z-20 nx-flex nx-cursor-pointer hover:nx-opacity-70":"nx-pointer-events-none nx-hidden sm:nx-flex"),title:er?"Clear":void 0,onClick:()=>{ei("")},children:er&&eb?"ESC":eN&&(navigator.userAgent.includes("Macintosh")?(0,nO.jsxs)(nO.Fragment,{children:[(0,nO.jsx)("span",{className:"nx-text-xs",children:"⌘"}),"K"]}):"CTRL K")})});return(0,nO.jsxs)("div",{className:(0,ek.Z)("nextra-search nx-relative md:nx-w-64",ee),children:[eR&&(0,nO.jsx)("div",{className:"nx-fixed nx-inset-0 nx-z-10",onClick:()=>ef(!1)}),(0,nO.jsx)(sE,{ref:ev,value:er,onChange:ee=>{let{value:en}=ee.target;ei(en),ef(!!en)},onFocus:()=>{null==eo||eo(!0),eE(!0)},onBlur:()=>{eE(!1)},type:"search",placeholder:sv(eh.search.placeholder),onKeyDown:eC,suffix:eI}),(0,nO.jsx)(i6,{show:eR,as:i6.Child,leave:"nx-transition-opacity nx-duration-100",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,nO.jsx)("ul",{className:(0,ek.Z)("nextra-scrollbar","nx-border nx-border-gray-200 nx-bg-white nx-text-gray-100 dark:nx-border-neutral-800 dark:nx-bg-neutral-900","nx-absolute nx-top-full nx-z-20 nx-mt-2 nx-overflow-auto nx-overscroll-contain nx-rounded-xl nx-py-2.5 nx-shadow-xl","nx-max-h-[min(calc(50vh-11rem-env(safe-area-inset-bottom)),400px)]","md:nx-max-h-[min(calc(100vh-5rem-env(safe-area-inset-bottom)),400px)]","nx-inset-x-0 ltr:md:nx-left-auto rtl:md:nx-right-auto","contrast-more:nx-border contrast-more:nx-border-gray-900 contrast-more:dark:nx-border-gray-50",en),ref:ey,style:{transition:"max-height .2s ease"},children:eu?(0,nO.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-red-500",children:[(0,nO.jsx)(eS.AV,{className:"nx-h-5 nx-w-5"}),sv(eh.search.error)]}):es?(0,nO.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:[(0,nO.jsx)(eS.L4,{className:"nx-h-5 nx-w-5 nx-animate-spin"}),sg(eh.search.loading)]}):ec.length>0?ec.map(({route:ee,prefix:en,children:er,id:ei},eo)=>(0,nO.jsxs)(e_.Fragment,{children:[en,(0,nO.jsx)("li",{className:(0,ek.Z)("nx-mx-2.5 nx-break-words nx-rounded-md","contrast-more:nx-border",eo===ep?"nx-bg-primary-500/10 nx-text-primary-600 contrast-more:nx-border-primary-500":"nx-text-gray-800 contrast-more:nx-border-transparent dark:nx-text-gray-300"),children:(0,nO.jsx)(sm,{className:"nx-block nx-scroll-m-12 nx-px-2.5 nx-py-2",href:ee,"data-index":eo,onFocus:eT,onMouseMove:eT,onClick:eO,onKeyDown:eC,children:er})})]},ei)):sg(eh.search.emptyResult)})})]})}var sC={},sS=new Map,sN=(ee,en)=>{let er=ee+"@"+en;if(sS.has(er))return sS.get(er);let ei=sR(ee,en);return sS.set(er,ei),ei},sR=(ee,en)=>o2(void 0,null,function*(){let er=yield fetch(`${ee}/_next/static/chunks/nextra-data-${en}.json`),ei=yield er.json(),eo=new(iv()).Document({cache:100,tokenize:"full",document:{id:"id",index:"content",store:["title"]},context:{resolution:9,depth:2,bidirectional:!0}}),es=new(iv()).Document({cache:100,tokenize:"full",document:{id:"id",index:"content",tag:"pageId",store:["title","content","url","display"]},context:{resolution:9,depth:2,bidirectional:!0}}),eu=0;for(let ee in ei){let en="";for(let er in++eu,ei[ee].data){let[eo,ec]=er.split("#"),ed=ee+(eo?"#"+eo:""),ef=ec||ei[ee].title,eh=ei[ee].data[er]||"",ep=eh.split("\n").filter(Boolean);es.add(oX({id:ed,url:ed,title:ef,pageId:`page_${eu}`,content:ef},ep[0]&&{display:ep[0]}));for(let ee=0;ee{var er,ei;if(!ee)return;let[eo,es]=sC[en],eu=(null==(er=eo.search(ee,5,{enrich:!0,suggest:!0})[0])?void 0:er.result)||[],ec=[],ef={};for(let en=0;enee._page_rk===en._page_rk?ee._section_rk-en._section_rk:ef[ee._page_rk]!==ef[en._page_rk]?ef[en._page_rk]-ef[ee._page_rk]:ee._page_rk-en._page_rk).map(ee=>({id:`${ee._page_rk}_${ee._section_rk}`,route:ee.route,prefix:ee.prefix,children:ee.children})))},em=(0,e_.useCallback)(ee=>o2(this,null,function*(){if(ee&&!sC[en]){eo(!0);try{yield sN(er,en)}catch(ee){eu(!0)}eo(!1)}}),[en,er]),ex=ee=>o2(this,null,function*(){if(eh(ee),!ei){if(!sC[en]){eo(!0);try{yield sN(er,en)}catch(ee){eu(!0)}eo(!1)}ep(ee)}});return(0,nO.jsx)(sT,{loading:ei,error:es,value:ef,onChange:ex,onActive:em,className:ee,overlayClassName:"nx-w-screen nx-min-h-[100px] nx-max-w-[min(calc(100vw-2rem),calc(100%+20rem))]",results:ec})}function sA({options:ee,selected:en,onChange:er,title:ei,className:eo}){let[es,eu]=sy({strategy:"fixed",placement:"top-start",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn({state:ee}){ee.styles.popper.minWidth=`${ee.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return(0,nO.jsx)(aK,{value:en,onChange:er,children:({open:er})=>(0,nO.jsxs)(aK.Button,{ref:es,title:ei,className:(0,ek.Z)("nx-h-7 nx-rounded-md nx-px-2 nx-text-left nx-text-xs nx-font-medium nx-text-gray-600 nx-transition-colors dark:nx-text-gray-400",er?"nx-bg-gray-200 nx-text-gray-900 dark:nx-bg-primary-100/10 dark:nx-text-gray-50":"hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",eo),children:[en.name,(0,nO.jsx)(sP,{children:(0,nO.jsx)(i6,{ref:eu,show:er,as:aK.Options,className:"nx-z-20 nx-max-h-64 nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:ee.map(ee=>(0,nO.jsxs)(aK.Option,{value:ee,className:({active:ee})=>(0,ek.Z)(ee?"nx-bg-primary-50 nx-text-primary-600 dark:nx-bg-primary-500/10":"nx-text-gray-800 dark:nx-text-gray-100","nx-relative nx-cursor-pointer nx-whitespace-nowrap nx-py-1.5","nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),children:[ee.name,ee.key===en.key&&(0,nO.jsx)("span",{className:"nx-absolute nx-inset-y-0 nx-flex nx-items-center ltr:nx-right-3 rtl:nx-left-3",children:(0,nO.jsx)(eS.nQ,{})})]},ee.key))})})]})})}function sP(ee){let en=ej();return en?(0,aY.createPortal)(ee.children,document.body):null}function sL({options:ee,lite:en,className:er}){let{locale:ei,asPath:eo}=(0,ew.useRouter)(),es=ee.find(ee=>ei===ee.locale);return(0,nO.jsx)(sA,{title:"Change language",className:er,onChange:ee=>{let en=new Date(Date.now()+31536e6);document.cookie=`NEXT_LOCALE=${ee.key}; expires=${en.toUTCString()}; path=/`,location.href=(0,i9.addBasePath)(eo)},selected:{key:(null==es?void 0:es.locale)||"",name:(0,nO.jsxs)("span",{className:"nx-flex nx-items-center nx-gap-2",children:[(0,nO.jsx)(eS.n9,{}),(0,nO.jsx)("span",{className:en?"nx-hidden":"",children:null==es?void 0:es.text})]})},options:ee.map(ee=>({key:ee.locale,name:ee.text}))})}function sM({menu:ee}){let en=su();return(0,nO.jsxs)("footer",{className:"nx-bg-gray-100 nx-pb-[env(safe-area-inset-bottom)] dark:nx-bg-neutral-900 print:nx-bg-transparent",children:[(0,nO.jsxs)("div",{className:(0,ek.Z)("nx-mx-auto nx-flex nx-max-w-[90rem] nx-gap-2 nx-py-2 nx-px-4",ee&&(en.i18n.length>0||en.darkMode)?"nx-flex":"nx-hidden"),children:[en.i18n.length>0&&(0,nO.jsx)(sL,{options:en.i18n}),en.darkMode&&sg(en.themeSwitch.component)]}),(0,nO.jsx)("hr",{className:"dark:nx-border-neutral-800"}),(0,nO.jsx)("div",{className:(0,ek.Z)("nx-mx-auto nx-flex nx-max-w-[90rem] nx-justify-center nx-py-12 nx-text-gray-600 dark:nx-text-gray-400 md:nx-justify-start","nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:sg(en.footer.text)})]})}function sZ(){var ee;let en=su(),{resolvedTheme:er}=nI(),ei=ej(),eo="function"==typeof en.head?en.head({}):en.head,es=en.primaryHue,{dark:eu,light:ec}="number"==typeof es?{dark:es,light:es}:es,ed=en.frontMatter;return(0,nO.jsxs)(nO.Fragment,{children:[(0,nO.jsx)(a6,oX({title:en.title,description:ed.description,canonical:ed.canonical,openGraph:ed.openGraph},null==(ee=en.useNextSeoProps)?void 0:ee.call(en))),(0,nO.jsxs)(aJ(),{children:[en.faviconGlyph?(0,nO.jsx)("link",{rel:"icon",href:`data:image/svg+xml;utf8,${en.faviconGlyph}`}):null,ei?(0,nO.jsx)("meta",{name:"theme-color",content:"dark"===er?"#111":"#fff"}):(0,nO.jsxs)(nO.Fragment,{children:[(0,nO.jsx)("meta",{name:"theme-color",content:"#fff",media:"(prefers-color-scheme: light)"}),(0,nO.jsx)("meta",{name:"theme-color",content:"#111",media:"(prefers-color-scheme: dark)"})]}),(0,nO.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, viewport-fit=cover"}),(0,nO.jsx)("style",{children:` - :root { - --nextra-primary-hue: ${ec}deg; - --nextra-navbar-height: 4rem; - --nextra-menu-height: 3.75rem; - --nextra-banner-height: 2.5rem; - } - - .dark { - --nextra-primary-hue: ${eu}deg; - } - `}),eo]})]})}var sD={link:(0,ek.Z)("nx-flex nx-max-w-[50%] nx-items-center nx-gap-1 nx-py-4 nx-text-base nx-font-medium nx-text-gray-600 nx-transition-colors [word-break:break-word] hover:nx-text-primary-600 dark:nx-text-gray-300 md:nx-text-lg"),icon:(0,ek.Z)("nx-inline nx-h-5 nx-shrink-0")},sF=({flatDirectories:ee,currentIndex:en})=>{let er=su(),ei=er.navigation,eo="boolean"==typeof ei?{prev:ei,next:ei}:ei,es=eo.prev&&ee[en-1],eu=eo.next&&ee[en+1];return(es&&!es.isUnderCurrentDocsTree&&(es=!1),eu&&!eu.isUnderCurrentDocsTree&&(eu=!1),es||eu)?(0,nO.jsxs)("div",{className:(0,ek.Z)("nx-mb-8 nx-flex nx-items-center nx-border-t nx-pt-8 dark:nx-border-neutral-800","contrast-more:nx-border-neutral-400 dark:contrast-more:nx-border-neutral-400","print:nx-hidden"),children:[es&&(0,nO.jsxs)(sm,{href:es.route,title:es.title,className:(0,ek.Z)(sD.link,"ltr:nx-pr-4 rtl:nx-pl-4"),children:[(0,nO.jsx)(eS.LZ,{className:(0,ek.Z)(sD.icon,"ltr:nx-rotate-180")}),es.title]}),eu&&(0,nO.jsxs)(sm,{href:eu.route,title:eu.title,className:(0,ek.Z)(sD.link,"ltr:nx-ml-auto ltr:nx-pl-4 ltr:nx-text-right rtl:nx-mr-auto rtl:nx-pr-4 rtl:nx-text-left"),children:[eu.title,(0,nO.jsx)(eS.LZ,{className:(0,ek.Z)(sD.icon,"rtl:nx-rotate-180")})]})]}):null},sz={link:(0,ek.Z)("nx-text-sm contrast-more:nx-text-gray-700 contrast-more:dark:nx-text-gray-100"),active:(0,ek.Z)("nx-font-medium nx-subpixel-antialiased"),inactive:(0,ek.Z)("nx-text-gray-600 hover:nx-text-gray-800 dark:nx-text-gray-400 dark:hover:nx-text-gray-200")};function s$({className:ee,menu:en,children:er}){let{items:ei}=en,eo=Object.fromEntries((en.children||[]).map(ee=>[ee.name,ee]));return(0,nO.jsx)("div",{className:"nx-relative nx-inline-block",children:(0,nO.jsxs)(oy,{children:[(0,nO.jsx)(oy.Button,{className:(0,ek.Z)(ee,"-nx-ml-2 nx-hidden nx-items-center nx-whitespace-nowrap nx-rounded nx-p-2 md:nx-inline-flex",sz.inactive),children:er}),(0,nO.jsx)(i6,{leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,nO.jsx)(oy.Items,{className:"nx-absolute nx-right-0 nx-z-20 nx-mt-1 nx-max-h-64 nx-min-w-full nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",tabIndex:0,children:Object.entries(ei||{}).map(([ee,er])=>{var ei;return(0,nO.jsx)(oy.Item,{children:(0,nO.jsx)(sm,{href:er.href||(null==(ei=eo[ee])?void 0:ei.route)||en.route+"/"+ee,className:(0,ek.Z)("nx-relative nx-hidden nx-w-full nx-select-none nx-whitespace-nowrap nx-text-gray-600 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100 md:nx-inline-block","nx-py-1.5 nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),newWindow:er.newWindow,children:er.title||ee})},ee)})})})]})})}function sW({flatDirectories:ee,items:en}){let er=su(),ei=eT(),{menu:eo,setMenu:es}=so();return(0,nO.jsxs)("div",{className:"nextra-nav-container nx-sticky nx-top-0 nx-z-20 nx-w-full nx-bg-transparent print:nx-hidden",children:[(0,nO.jsx)("div",{className:(0,ek.Z)("nextra-nav-container-blur","nx-pointer-events-none nx-absolute nx-z-[-1] nx-h-full nx-w-full nx-bg-white dark:nx-bg-dark","nx-shadow-[0_2px_4px_rgba(0,0,0,.02),0_1px_0_rgba(0,0,0,.06)] dark:nx-shadow-[0_-1px_0_rgba(255,255,255,.1)_inset]","contrast-more:nx-shadow-[0_0_0_1px_#000] contrast-more:dark:nx-shadow-[0_0_0_1px_#fff]")}),(0,nO.jsxs)("nav",{className:"nx-mx-auto nx-flex nx-h-[var(--nextra-navbar-height)] nx-max-w-[90rem] nx-items-center nx-justify-end nx-gap-2 nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]",children:[er.logoLink?(0,nO.jsx)(sm,{href:"string"==typeof er.logoLink?er.logoLink:"/",className:"nx-flex nx-items-center hover:nx-opacity-75 ltr:nx-mr-auto rtl:nx-ml-auto",children:sg(er.logo)}):(0,nO.jsx)("div",{className:"nx-flex nx-items-center ltr:nx-mr-auto rtl:nx-ml-auto",children:sg(er.logo)}),en.map(ee=>{if("hidden"===ee.display)return null;if("menu"===ee.type){let en=ee,er=en.route===ei||ei.startsWith(en.route+"/");return(0,nO.jsxs)(s$,{className:(0,ek.Z)(sz.link,"nx-flex nx-gap-1",er?sz.active:sz.inactive),menu:en,children:[en.title,(0,nO.jsx)(eS.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5",pathClassName:"nx-origin-center nx-transition-transform nx-rotate-90"})]},en.title)}let en=ee,er=en.href||en.route||"#";en.children&&(er=(en.withIndexPage?en.route:en.firstChildRoute)||er);let eo=en.route===ei||ei.startsWith(en.route+"/");return(0,nO.jsxs)(sm,{href:er,className:(0,ek.Z)(sz.link,"nx-relative -nx-ml-2 nx-hidden nx-whitespace-nowrap nx-p-2 md:nx-inline-block",!eo||en.newWindow?sz.inactive:sz.active),newWindow:en.newWindow,"aria-current":!en.newWindow&&eo,children:[(0,nO.jsx)("span",{className:"nx-absolute nx-inset-x-0 nx-text-center",children:en.title}),(0,nO.jsx)("span",{className:"nx-invisible nx-font-medium",children:en.title})]},er)}),sg(er.search.component,{directories:ee,className:"nx-hidden md:nx-inline-block mx-min-w-[200px]"}),er.project.link?(0,nO.jsx)(sm,{className:"nx-p-2 nx-text-current",href:er.project.link,newWindow:!0,children:sg(er.project.icon)}):null,er.chat.link?(0,nO.jsx)(sm,{className:"nx-p-2 nx-text-current",href:er.chat.link,newWindow:!0,children:sg(er.chat.icon)}):null,sg(er.navbar.extraContent),(0,nO.jsx)("button",{type:"button","aria-label":"Menu",className:"nextra-hamburger -nx-mr-2 nx-rounded nx-p-2 active:nx-bg-gray-400/20 md:nx-hidden",onClick:()=>es(!eo),children:(0,nO.jsx)(eS.Oq,{className:(0,ek.Z)({open:eo})})})]})]})}var sU=Object.create(null),sH=(0,e_.createContext)(null),sG=(0,e_.createContext)(null),sV=(0,e_.createContext)(0),sB=(0,e_.memo)(function(ee){let en=(0,e_.useContext)(sV);return(0,nO.jsx)(sV.Provider,{value:en+1,children:(0,nO.jsx)(sK,oX({},ee))})}),sq={link:(0,ek.Z)("nx-flex nx-rounded nx-px-2 nx-py-1.5 nx-text-sm nx-transition-colors [word-break:break-word]","nx-cursor-pointer [-webkit-tap-highlight-color:transparent] [-webkit-touch-callout:none] contrast-more:nx-border"),inactive:(0,ek.Z)("nx-text-gray-500 hover:nx-bg-gray-100 hover:nx-text-gray-900","dark:nx-text-neutral-400 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50","contrast-more:nx-text-gray-900 contrast-more:dark:nx-text-gray-50","contrast-more:nx-border-transparent contrast-more:hover:nx-border-gray-900 contrast-more:dark:hover:nx-border-gray-50"),active:(0,ek.Z)("nx-bg-primary-100 nx-font-semibold nx-text-primary-800 dark:nx-bg-primary-400/10 dark:nx-text-primary-600","contrast-more:nx-border-primary-500 contrast-more:dark:nx-border-primary-500"),list:(0,ek.Z)("nx-flex nx-flex-col nx-gap-1"),border:(0,ek.Z)("nx-relative before:nx-absolute before:nx-inset-y-1",'before:nx-w-px before:nx-bg-gray-200 before:nx-content-[""] dark:before:nx-bg-neutral-800',"ltr:nx-pl-3 ltr:before:nx-left-0 rtl:nx-pr-3 rtl:before:nx-right-0")};function sK({item:ee,anchors:en}){let er=eT(),[ei]=er.split("#"),eo=[ei,ei+"/"].includes(ee.route+"/"),es=eo||ei.startsWith(ee.route+"/"),eu=(0,e_.useContext)(sH),ec=!!(null==eu?void 0:eu.startsWith(ee.route+"/")),ed=(0,e_.useContext)(sV),{setMenu:ef}=so(),eh=su(),{theme:ep}=ee,em=void 0===sU[ee.route]?eo||es||ec||(ep&&"collapsed"in ep?!ep.collapsed:ed{let en=()=>{(es||ec)&&(sU[ee.route]=!0)},er=()=>{es&&ec?sU[ee.route]=!0:delete sU[ee.route]};eh.sidebar.autoCollapse?er():en()},[es,ec,ee.route,eh.sidebar.autoCollapse]),"menu"===ee.type){let en=ee,er=Object.fromEntries((en.children||[]).map(ee=>[ee.name,ee]));ee.children=Object.entries(en.items||{}).map(([ee,ei])=>{let eo=er[ee]||o0(oX({name:ee},"locale"in en&&{locale:en.locale}),{route:en.route+"/"+ee});return oX(oX({},eo),ei)})}let eg="withIndexPage"in ee&&ee.withIndexPage,ev=eg?sm:"button";return(0,nO.jsxs)("li",{className:(0,ek.Z)({open:em,active:eo}),children:[(0,nO.jsxs)(ev,{href:eg?ee.route:void 0,className:(0,ek.Z)("nx-items-center nx-justify-between nx-gap-2",!eg&&"nx-text-left nx-w-full",sq.link,eo?sq.active:sq.inactive),onClick:en=>{let er=["svg","path"].includes(en.target.tagName.toLowerCase());if(er&&en.preventDefault(),eg){eo||er?sU[ee.route]=!em:(sU[ee.route]=!0,ef(!1)),ex({});return}eo||(sU[ee.route]=!em,ex({}))},children:[sg(eh.sidebar.titleComponent,{title:ee.title,type:ee.type,route:ee.route}),(0,nO.jsx)(eS.LZ,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5 hover:nx-bg-gray-800/5 dark:hover:nx-bg-gray-100/5",pathClassName:(0,ek.Z)("nx-origin-center nx-transition-transform rtl:-nx-rotate-180",em&&"ltr:nx-rotate-90 rtl:nx-rotate-[-270deg]")})]}),(0,nO.jsx)(sk,{className:"ltr:nx-pr-0 rtl:nx-pl-0 nx-pt-1",isOpen:em,children:Array.isArray(ee.children)?(0,nO.jsx)(sJ,{className:(0,ek.Z)(sq.border,"ltr:nx-ml-3 rtl:nx-mr-3"),directories:ee.children,base:ee.route,anchors:en}):null})]})}function sY({title:ee}){let en=su();return(0,nO.jsx)("li",{className:(0,ek.Z)("[word-break:break-word]",ee?"nx-mt-5 nx-mb-2 nx-px-2 nx-py-1.5 nx-text-sm nx-font-semibold nx-text-gray-900 first:nx-mt-0 dark:nx-text-gray-100":"nx-my-4"),children:ee?sg(en.sidebar.titleComponent,{title:ee,type:"separator",route:""}):(0,nO.jsx)("hr",{className:"nx-mx-2 nx-border-t nx-border-gray-200 dark:nx-border-primary-100/10"})})}function sQ({item:ee,anchors:en}){let er=eT(),ei=(0,e_.useContext)(sG),eo=ee.route&&[er,er+"/"].includes(ee.route+"/"),es=o9(),{setMenu:eu}=so(),ec=su();return"separator"===ee.type?(0,nO.jsx)(sY,{title:ee.title}):(0,nO.jsxs)("li",{className:(0,ek.Z)(sq.list,{active:eo}),children:[(0,nO.jsx)(sm,{href:ee.href||ee.route,newWindow:ee.newWindow,className:(0,ek.Z)(sq.link,eo?sq.active:sq.inactive),onClick:()=>{eu(!1)},onFocus:()=>{null==ei||ei(ee.route)},onBlur:()=>{null==ei||ei(null)},children:sg(ec.sidebar.titleComponent,{title:ee.title,type:ee.type,route:ee.route})}),eo&&en.length>0&&(0,nO.jsx)("ul",{className:(0,ek.Z)(sq.list,sq.border,"ltr:nx-ml-3 rtl:nx-mr-3"),children:en.map(({id:ee,value:en})=>{var er;return(0,nO.jsx)("li",{children:(0,nO.jsx)("a",{href:`#${ee}`,className:(0,ek.Z)(sq.link,'nx-flex nx-gap-2 before:nx-opacity-25 before:nx-content-["#"]',(null==(er=es[ee])?void 0:er.isActive)?sq.active:sq.inactive),onClick:()=>{eu(!1)},children:en})},ee)})})]})}function sJ({directories:ee,anchors:en,className:er,onlyCurrentDocs:ei}){return(0,nO.jsx)("ul",{className:(0,ek.Z)(sq.list,er),children:ee.map(ee=>!ei||ee.isUnderCurrentDocsTree?"menu"===ee.type||ee.children&&(ee.children.length||!ee.withIndexPage)?(0,nO.jsx)(sB,{item:ee,anchors:en},ee.name):(0,nO.jsx)(sQ,{item:ee,anchors:en},ee.name):null)})}function sX({docsDirectories:ee,flatDirectories:en,fullDirectories:er,asPopover:ei=!1,headings:eo,includePlaceholder:es}){let eu=su(),{menu:ec,setMenu:ed}=so(),ef=(0,ew.useRouter)(),[eh,ep]=(0,e_.useState)(null),[em,ex]=(0,e_.useState)(!0),[eg,ev]=(0,e_.useState)(!1),ey=(0,e_.useMemo)(()=>eo.filter(ee=>2===ee.depth),[eo]),eb=(0,e_.useRef)(null),ej=(0,e_.useRef)(null);(0,e_.useEffect)(()=>{ec?document.body.classList.add("nx-overflow-hidden","md:nx-overflow-auto"):document.body.classList.remove("nx-overflow-hidden","md:nx-overflow-auto")},[ec]),(0,e_.useEffect)(()=>{var ee;let en=null==(ee=eb.current)?void 0:ee.querySelector("li.active");if(en&&(window.innerWidth>767||ec)){let ee=()=>{oT(en,{block:"center",inline:"center",scrollMode:"always",boundary:ej.current})};ec?setTimeout(ee,300):ee()}},[ec]),(0,e_.useEffect)(()=>{ed(!1)},[ef.asPath,ed]);let eE=eu.i18n.length>0,eO=eu.darkMode||eE;return(0,nO.jsxs)(nO.Fragment,{children:[es&&ei?(0,nO.jsx)("div",{className:"max-xl:nx-hidden nx-h-0 nx-w-64 nx-shrink-0"}):null,(0,nO.jsx)("div",{className:(0,ek.Z)("motion-reduce:nx-transition-none [transition:background-color_1.5s_ease]",ec?"nx-fixed nx-inset-0 nx-z-10 nx-bg-black/80 dark:nx-bg-black/60":"nx-bg-transparent"),onClick:()=>ed(!1)}),(0,nO.jsxs)("aside",{className:(0,ek.Z)("nextra-sidebar-container nx-flex nx-flex-col","md:nx-top-16 md:nx-shrink-0 motion-reduce:nx-transform-none","nx-transform-gpu nx-transition-all nx-ease-in-out","print:nx-hidden",em?"md:nx-w-64":"md:nx-w-20",ei?"md:nx-hidden":"md:nx-sticky md:nx-self-start",ec?"max-md:[transform:translate3d(0,0,0)]":"max-md:[transform:translate3d(0,-100%,0)]"),ref:ej,children:[(0,nO.jsx)("div",{className:"nx-px-4 nx-pt-4 md:nx-hidden",children:sg(eu.search.component,{directories:en})}),(0,nO.jsx)(sH.Provider,{value:eh,children:(0,nO.jsx)(sG.Provider,{value:ee=>{ep(ee)},children:(0,nO.jsxs)("div",{className:(0,ek.Z)("nx-overflow-y-auto nx-overflow-x-hidden","nx-p-4 nx-grow md:nx-h-[calc(100vh-var(--nextra-navbar-height)-var(--nextra-menu-height))]",em?"nextra-scrollbar":"no-scrollbar"),ref:eb,children:[(!ei||!em)&&(0,nO.jsx)(sk,{isOpen:em,horizontal:!0,children:(0,nO.jsx)(sJ,{className:"max-md:nx-hidden",directories:ee,anchors:eu.toc.float?[]:ey,onlyCurrentDocs:!0})}),(0,nO.jsx)(sJ,{className:"md:nx-hidden",directories:er,anchors:ey})]})})}),eO&&(0,nO.jsxs)("div",{className:(0,ek.Z)("nx-sticky nx-bottom-0","nx-bg-white dark:nx-bg-dark","nx-mx-4 nx-py-4 nx-shadow-[0_-12px_16px_#fff]","nx-flex nx-items-center nx-gap-2","dark:nx-border-neutral-800 dark:nx-shadow-[0_-12px_16px_#111]","contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-shadow-none",em?(0,ek.Z)(eE&&"nx-justify-end","nx-border-t"):"nx-py-4 nx-flex-wrap nx-justify-center"),"data-toggle-animation":eg?em?"show":"hide":"off",children:[eE&&(0,nO.jsx)(sL,{options:eu.i18n,lite:!em,className:(0,ek.Z)(em?"nx-grow":"max-md:nx-grow")}),eu.darkMode&&(0,nO.jsx)("div",{className:em&&!eE?"nx-grow nx-flex nx-flex-col":"",children:sg(eu.themeSwitch.component,{lite:!em||eE})}),eu.sidebar.toggleButton&&(0,nO.jsx)("button",{title:em?"Hide sidebar":"Show sidebar",className:"max-md:nx-hidden nx-h-7 nx-rounded-md nx-transition-colors nx-text-gray-600 dark:nx-text-gray-400 nx-px-2 hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",onClick:()=>{ex(!em),ev(!0)},children:(0,nO.jsx)(eS.Qq,{isOpen:em})})]})]})]})}var s0="reach-skip-nav",s1="Skip to content";(0,e_.forwardRef)(function(ee,en){var er=ee,{className:ei,id:eo,label:es=s1,styled:eu}=er,ec=o1(er,["className","id","label","styled"]);let ed=void 0===ei?eu?(0,ek.Z)("nx-sr-only","focus:nx-not-sr-only focus:nx-fixed focus:nx-z-50 focus:nx-m-3 focus:nx-ml-4 focus:nx-h-[calc(var(--nextra-navbar-height)-1.5rem)] focus:nx-rounded-lg focus:nx-border focus:nx-px-3 focus:nx-py-2 focus:nx-align-middle focus:nx-text-sm focus:nx-font-bold","focus:nx-text-gray-900 focus:dark:nx-text-gray-100","focus:nx-bg-white focus:dark:nx-bg-neutral-900","focus:nx-border-neutral-400 focus:dark:nx-border-neutral-800"):"":ei;return(0,nO.jsx)("a",o0(oX({},ec),{ref:en,href:`#${eo||s0}`,className:ed,"data-reach-skip-link":"",children:es}))}).displayName="SkipNavLink";var s2=(0,e_.forwardRef)(function(ee,en){var er=ee,{id:ei}=er,eo=o1(er,["id"]);return(0,nO.jsx)("div",o0(oX({},eo),{ref:en,id:ei||s0}))});s2.displayName="SkipNavContent";var s4=nk.strictObject({light:nk.string(),dark:nk.string(),system:nk.string()});function s5({lite:ee,className:en}){let{setTheme:er,resolvedTheme:ei,theme:eo=""}=nI(),es=ej(),eu=su().themeSwitch,ec=es&&"dark"===ei?eS.kL:eS.NW,ed="function"==typeof eu.useOptions?eu.useOptions():eu.useOptions;return(0,nO.jsx)(sA,{className:en,title:"Change theme",options:[{key:"light",name:ed.light},{key:"dark",name:ed.dark},{key:"system",name:ed.system}],onChange:ee=>{er(ee.key)},selected:{key:eo,name:(0,nO.jsxs)("div",{className:"nx-flex nx-items-center nx-gap-2 nx-capitalize",children:[(0,nO.jsx)(ec,{}),(0,nO.jsx)("span",{className:ee?"md:nx-hidden":"",children:es?ed[eo]:ed.light})]})}})}var s3=(0,ek.Z)("nx-text-xs nx-font-medium nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100","contrast-more:nx-text-gray-800 contrast-more:dark:nx-text-gray-50");function s7({headings:ee,filePath:en}){var er;let ei=o9(),eo=su(),es=(0,e_.useRef)(null),eu=(0,e_.useMemo)(()=>ee.filter(ee=>ee.depth>1),[ee]),ec=eu.length>0,ed=!!(eo.feedback.content||eo.editLink.component||eo.toc.extraContent),ef=null==(er=Object.entries(ei).find(([,{isActive:ee}])=>ee))?void 0:er[0];return(0,e_.useEffect)(()=>{var ee;if(!ef)return;let en=null==(ee=es.current)?void 0:ee.querySelector(`li > a[href="#${ef}"]`);en&&oT(en,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:es.current})},[ef]),(0,nO.jsxs)("div",{ref:es,className:(0,ek.Z)("nextra-scrollbar nx-sticky nx-top-16 nx-overflow-y-auto nx-pr-4 nx-pt-6 nx-text-sm [hyphens:auto]","nx-max-h-[calc(100vh-var(--nextra-navbar-height)-env(safe-area-inset-bottom))] ltr:-nx-mr-4 rtl:-nx-ml-4"),children:[ec&&(0,nO.jsxs)(nO.Fragment,{children:[(0,nO.jsx)("p",{className:"nx-mb-4 nx-font-semibold nx-tracking-tight",children:sg(eo.toc.title)}),(0,nO.jsx)("ul",{children:eu.map(({id:ee,value:en,depth:er})=>{var es,eu,ec,ed;return(0,nO.jsx)("li",{className:"nx-my-2 nx-scroll-my-6 nx-scroll-py-6",children:(0,nO.jsx)("a",{href:`#${ee}`,className:(0,ek.Z)({2:"nx-font-semibold",3:"ltr:nx-pl-4 rtl:nx-pr-4",4:"ltr:nx-pl-8 rtl:nx-pr-8",5:"ltr:nx-pl-12 rtl:nx-pr-12",6:"ltr:nx-pl-16 rtl:nx-pr-16"}[er],"nx-inline-block",(null==(es=ei[ee])?void 0:es.isActive)?"nx-text-primary-600 nx-subpixel-antialiased contrast-more:!nx-text-primary-600":"nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-300","contrast-more:nx-text-gray-900 contrast-more:nx-underline contrast-more:dark:nx-text-gray-50 nx-w-full nx-break-words"),children:null!=(ed=null==(ec=(eu=eo.toc).headingComponent)?void 0:ec.call(eu,{id:ee,children:en}))?ed:en})},ee)})})]}),ed&&(0,nO.jsxs)("div",{className:(0,ek.Z)(ec&&"nx-mt-8 nx-border-t nx-bg-white nx-pt-8 nx-shadow-[0_-12px_16px_white] dark:nx-bg-dark dark:nx-shadow-[0_-12px_16px_#111]","nx-sticky nx-bottom-0 nx-flex nx-flex-col nx-items-start nx-gap-2 nx-pb-8 dark:nx-border-neutral-800","contrast-more:nx-border-t contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-border-neutral-400"),children:[eo.feedback.content?(0,nO.jsx)(sm,{className:s3,href:eo.feedback.useLink(),newWindow:!0,children:sg(eo.feedback.content)}):null,sg(eo.editLink.component,{filePath:en,className:s3,children:sg(eo.editLink.text)}),sg(eo.toc.extraContent)]})]})}function s6({className:ee,directories:en}){let[er,ei]=(0,e_.useState)(""),eo=(0,e_.useMemo)(()=>er?oA(en,er,{keys:["title"]}).map(({route:ee,title:en})=>({id:ee+en,route:ee,children:(0,nO.jsx)(sj,{value:en,match:er})})):[],[er,en]);return(0,nO.jsx)(sT,{value:er,onChange:ei,className:ee,overlayClassName:"nx-w-full",results:eo})}var s9="en-US",s8="undefined"!=typeof window;function lt(ee){return null==ee||lr(ee)||ln(ee)||(0,e_.isValidElement)(ee)}function ln(ee){return"function"==typeof ee}function lr(ee){return"string"==typeof ee}var li=nk.array(nk.strictObject({direction:nk.enum(["ltr","rtl"]).optional(),locale:nk.string(),text:nk.string()})),lo=[lt,{message:"Must be React.ReactNode or React.FC"}],ls=[ln,{message:"Must be React.FC"}];nk.strictObject({banner:nk.strictObject({dismissible:nk.boolean(),key:nk.string(),text:nk.custom(...lo).optional()}),chat:nk.strictObject({icon:nk.custom(...lo),link:nk.string().startsWith("https://").optional()}),components:nk.record(nk.custom(...ls)).optional(),darkMode:nk.boolean(),direction:nk.enum(["ltr","rtl"]),docsRepositoryBase:nk.string().startsWith("https://"),editLink:nk.strictObject({component:nk.custom(...ls),text:nk.custom(...lo)}),faviconGlyph:nk.string().optional(),feedback:nk.strictObject({content:nk.custom(...lo),labels:nk.string(),useLink:nk.function().returns(nk.string())}),footer:nk.strictObject({component:nk.custom(...lo),text:nk.custom(...lo)}),gitTimestamp:nk.custom(...lo),head:nk.custom(...lo),i18n:li,logo:nk.custom(...lo),logoLink:nk.boolean().or(nk.string()),main:nk.custom(...ls).optional(),navbar:nk.strictObject({component:nk.custom(...lo),extraContent:nk.custom(...lo).optional()}),navigation:nk.boolean().or(nk.strictObject({next:nk.boolean(),prev:nk.boolean()})),nextThemes:nk.strictObject({defaultTheme:nk.string(),forcedTheme:nk.string().optional(),storageKey:nk.string()}),notFound:nk.strictObject({content:nk.custom(...lo),labels:nk.string()}),primaryHue:nk.number().or(nk.strictObject({dark:nk.number(),light:nk.number()})),project:nk.strictObject({icon:nk.custom(...lo),link:nk.string().startsWith("https://").optional()}),search:nk.strictObject({component:nk.custom(...lo),emptyResult:nk.custom(...lo),error:nk.string().or(nk.function().returns(nk.string())),loading:nk.custom(...lo),placeholder:nk.string().or(nk.function().returns(nk.string()))}),serverSideError:nk.strictObject({content:nk.custom(...lo),labels:nk.string()}),sidebar:nk.strictObject({autoCollapse:nk.boolean().optional(),defaultMenuCollapseLevel:nk.number().min(1).int(),titleComponent:nk.custom(...lo),toggleButton:nk.boolean()}),themeSwitch:nk.strictObject({component:nk.custom(...lo),useOptions:s4.or(nk.function().returns(s4))}),toc:nk.strictObject({component:nk.custom(...lo),extraContent:nk.custom(...lo),float:nk.boolean(),headingComponent:nk.custom(...ls).optional(),title:nk.custom(...lo)}),useNextSeoProps:nk.custom(ln)}).deepPartial().extend({i18n:li.optional()});var ll={"en-US":"Loading",fr:"Сhargement",ru:"Загрузка","zh-CN":"正在加载"},lu={"en-US":"Search documentation",fr:"Rechercher documents",ru:"Поиск документации","zh-CN":"搜索文档"},lc={banner:{dismissible:!0,key:"nextra-banner"},chat:{icon:(0,nO.jsxs)(nO.Fragment,{children:[(0,nO.jsx)(eS.D7,{}),(0,nO.jsx)("span",{className:"nx-sr-only",children:"Discord"})]})},darkMode:!0,direction:"ltr",docsRepositoryBase:"https://github.com/shuding/nextra",editLink:{component:function({className:ee,filePath:en,children:er}){let ei=sb(en);return ei?(0,nO.jsx)(sm,{className:ee,href:ei,children:er}):null},text:"Edit this page"},feedback:{content:"Question? Give us feedback →",labels:"feedback",useLink(){let ee=su();return sx({labels:ee.feedback.labels,repository:ee.docsRepositoryBase,title:`Feedback for \u201C${ee.title}\u201D`})}},footer:{component:sM,text:`MIT ${new Date().getFullYear()} \xa9 Nextra.`},gitTimestamp:function({timestamp:ee}){let{locale:en=s9}=(0,ew.useRouter)();return(0,nO.jsxs)(nO.Fragment,{children:["Last updated on"," ",(0,nO.jsx)("time",{dateTime:ee.toISOString(),children:ee.toLocaleDateString(en,{day:"numeric",month:"long",year:"numeric"})})]})},head:(0,nO.jsxs)(nO.Fragment,{children:[(0,nO.jsx)("meta",{name:"msapplication-TileColor",content:"#fff"}),(0,nO.jsx)("meta",{httpEquiv:"Content-Language",content:"en"}),(0,nO.jsx)("meta",{name:"description",content:"Nextra: the next docs builder"}),(0,nO.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,nO.jsx)("meta",{name:"twitter:site",content:"@shuding_"}),(0,nO.jsx)("meta",{property:"og:title",content:"Nextra: the next docs builder"}),(0,nO.jsx)("meta",{property:"og:description",content:"Nextra: the next docs builder"}),(0,nO.jsx)("meta",{name:"apple-mobile-web-app-title",content:"Nextra"})]}),i18n:[],logo:(0,nO.jsxs)(nO.Fragment,{children:[(0,nO.jsx)("span",{className:"nx-font-extrabold",children:"Nextra"}),(0,nO.jsx)("span",{className:"nx-ml-2 nx-hidden nx-font-normal nx-text-gray-600 md:nx-inline",children:"The Next Docs Builder"})]}),logoLink:!0,navbar:{component:sW},navigation:!0,nextThemes:{defaultTheme:"system",storageKey:"theme"},notFound:{content:"Submit an issue about broken link →",labels:"bug"},primaryHue:{dark:204,light:212},project:{icon:(0,nO.jsxs)(nO.Fragment,{children:[(0,nO.jsx)(eS.fy,{}),(0,nO.jsx)("span",{className:"nx-sr-only",children:"GitHub"})]})},search:{component:function({className:ee,directories:en}){let er=su();return er.flexsearch?(0,nO.jsx)(sI,{className:ee}):(0,nO.jsx)(s6,{className:ee,directories:en})},emptyResult:(0,nO.jsx)("span",{className:"nx-block nx-select-none nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:"No results found."}),error:"Failed to load search index.",loading:function(){let{locale:ee,defaultLocale:en=s9}=(0,ew.useRouter)(),er=ee&&ll[ee]||ll[en];return(0,nO.jsxs)(nO.Fragment,{children:[er,"…"]})},placeholder:function(){let{locale:ee,defaultLocale:en=s9}=(0,ew.useRouter)(),er=ee&&lu[ee]||lu[en];return`${er}\u2026`}},serverSideError:{content:"Submit an issue about error in url →",labels:"bug"},sidebar:{defaultMenuCollapseLevel:2,titleComponent:({title:ee})=>(0,nO.jsx)(nO.Fragment,{children:ee}),toggleButton:!1},themeSwitch:{component:s5,useOptions(){let{locale:ee}=(0,ew.useRouter)();return"zh-CN"===ee?{dark:"深色主题",light:"浅色主题",system:"系统默认"}:{dark:"Dark",light:"Light",system:"System"}}},toc:{component:s7,float:!0,title:"On This Page"},useNextSeoProps:()=>({titleTemplate:"%s – Nextra"})},ld=Object.entries(lc).map(([ee,en])=>{let er=en&&"object"==typeof en&&!Array.isArray(en)&&!(0,e_.isValidElement)(en);if(er)return ee}).filter(Boolean);if(s8){let ee;let en=()=>{document.body.classList.add("resizing"),clearTimeout(ee),ee=setTimeout(()=>{document.body.classList.remove("resizing")},200)};window.addEventListener("resize",en)}function lf(ee){var en=ee,{tag:er,context:ei,children:eo,id:es}=en,eu=o1(en,["tag","context","children","id"]);let ec=o8(),ed=sn(),ef=st(),eh=(0,e_.useRef)(null);return(0,e_.useEffect)(()=>{if(!es)return;let ee=eh.current;if(ee)return ed.set(ee,[es,ei.index+=1]),null==ef||ef.observe(ee),()=>{null==ef||ef.disconnect(),ed.delete(ee),ec(ee=>{let en=oX({},ee);return delete en[es],en})}},[es,ei,ed,ef,ec]),(0,nO.jsxs)(er,o0(oX({className:(0,ek.Z)("nx-font-semibold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100",{h2:"nx-mt-10 nx-border-b nx-pb-1 nx-text-3xl nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400",h3:"nx-mt-8 nx-text-2xl",h4:"nx-mt-8 nx-text-xl",h5:"nx-mt-8 nx-text-lg",h6:"nx-mt-8 nx-text-base"}[er])},eu),{children:[eo,(0,nO.jsx)("span",{className:"nx-absolute -nx-mt-20",id:es,ref:eh}),(0,nO.jsx)("a",{href:`#${es}`,className:"subheading-anchor","aria-label":"Permalink for this section"})]}))}var lh=ee=>{let en=null,er=[];return e_.Children.forEach(ee,(ee,ei)=>{var eo;if(ee&&ee.type===lm){en||(en=ee);return}let es=ee;if(!en&&ee&&"object"==typeof ee&&ee.type!==lp&&"props"in ee&&ee.props){let er=lh(ee.props.children);en=er[0],es=(0,e_.cloneElement)(ee,o0(oX({},ee.props),{children:(null==(eo=er[1])?void 0:eo.length)?er[1]:void 0,key:ei}))}er.push(es)}),[en,er]},lp=ee=>{var en=ee,{children:er,open:ei}=en,eo=o1(en,["children","open"]);let[es,eu]=(0,e_.useState)(!!ei),[ec,ed]=lh(er),[ef,eh]=(0,e_.useState)(es);return(0,e_.useEffect)(()=>{if(es)eh(!0);else{let ee=setTimeout(()=>eh(es),500);return()=>clearTimeout(ee)}},[es]),(0,nO.jsxs)("details",o0(oX(o0(oX({className:"nx-my-4 nx-rounded nx-border nx-border-gray-200 nx-bg-white nx-p-2 nx-shadow-sm first:nx-mt-0 dark:nx-border-neutral-800 dark:nx-bg-neutral-900"},eo),{open:ef}),es&&{"data-expanded":!0}),{children:[(0,nO.jsx)(sh,{value:eu,children:ec}),(0,nO.jsx)(sk,{isOpen:es,children:ed})]}))},lm=ee=>{let en=sf();return(0,nO.jsx)("summary",o0(oX({className:(0,ek.Z)("nx-flex nx-items-center nx-cursor-pointer nx-list-none nx-p-1 nx-transition-colors hover:nx-bg-gray-100 dark:hover:nx-bg-neutral-800","before:nx-mr-1 before:nx-inline-block before:nx-transition-transform before:nx-content-[''] dark:before:nx-invert","rtl:before:nx-rotate-180 [[data-expanded]>&]:before:nx-rotate-90")},ee),{onClick:ee=>{ee.preventDefault(),en(ee=>!ee)}}))},lx=/https?:\/\//,lg=ee=>{var en=ee,{href:er="",className:ei}=en,eo=o1(en,["href","className"]);return(0,nO.jsx)(sm,oX({href:er,newWindow:lx.test(er),className:(0,ek.Z)("nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font]",ei)},eo))},lv=ee=>{var en=ee,{href:er=""}=en,ei=o1(en,["href"]);return(0,nO.jsx)(sm,oX({href:er,newWindow:lx.test(er)},ei))},ly=({isRawLayout:ee,components:en})=>{if(ee)return{a:lv};let er={index:0};return oX({h1:ee=>(0,nO.jsx)("h1",oX({className:"nx-mt-2 nx-text-4xl nx-font-bold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100"},ee)),h2:ee=>(0,nO.jsx)(lf,oX({tag:"h2",context:er},ee)),h3:ee=>(0,nO.jsx)(lf,oX({tag:"h3",context:er},ee)),h4:ee=>(0,nO.jsx)(lf,oX({tag:"h4",context:er},ee)),h5:ee=>(0,nO.jsx)(lf,oX({tag:"h5",context:er},ee)),h6:ee=>(0,nO.jsx)(lf,oX({tag:"h6",context:er},ee)),ul:ee=>(0,nO.jsx)("ul",oX({className:"nx-mt-6 nx-list-disc first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},ee)),ol:ee=>(0,nO.jsx)("ol",oX({className:"nx-mt-6 nx-list-decimal first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},ee)),li:ee=>(0,nO.jsx)("li",oX({className:"nx-my-2"},ee)),blockquote:ee=>(0,nO.jsx)("blockquote",oX({className:(0,ek.Z)("nx-mt-6 nx-border-gray-300 nx-italic nx-text-gray-700 dark:nx-border-gray-700 dark:nx-text-gray-400","first:nx-mt-0 ltr:nx-border-l-2 ltr:nx-pl-6 rtl:nx-border-r-2 rtl:nx-pr-6")},ee)),hr:ee=>(0,nO.jsx)("hr",oX({className:"nx-my-8 dark:nx-border-gray-900"},ee)),a:lg,table:ee=>(0,nO.jsx)(oG.iA,oX({className:"nextra-scrollbar nx-mt-6 nx-p-0 first:nx-mt-0"},ee)),p:ee=>(0,nO.jsx)("p",oX({className:"nx-mt-6 nx-leading-7 first:nx-mt-0"},ee)),tr:oG.Tr,th:oG.Th,td:oG.Td,details:lp,summary:lm,pre:oG.SU,code:oG.EK},en)},lb={toc:(0,ek.Z)("nextra-toc nx-order-last nx-hidden nx-w-64 nx-shrink-0 xl:nx-block print:nx-hidden"),main:(0,ek.Z)("nx-w-full nx-break-words")},lw=({themeContext:ee,breadcrumb:en,timestamp:er,navigation:ei,children:eo})=>{var es;let eu=su(),ec=ej();if("raw"===ee.layout)return(0,nO.jsx)("div",{className:lb.main,children:eo});let ed=ee.timestamp&&eu.gitTimestamp&&er?new Date(er):null,ef=ec&&ed?(0,nO.jsx)("div",{className:"nx-mt-12 nx-mb-8 nx-block nx-text-xs nx-text-gray-500 ltr:nx-text-right rtl:nx-text-left dark:nx-text-gray-400",children:sg(eu.gitTimestamp,{timestamp:ed})}):(0,nO.jsx)("div",{className:"nx-mt-16"}),eh=(0,nO.jsxs)(nO.Fragment,{children:[eo,ef,ei]}),ep=(null==(es=eu.main)?void 0:es.call(eu,{children:eh}))||eh;return"full"===ee.layout?(0,nO.jsx)("article",{className:(0,ek.Z)(lb.main,"nextra-content nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:ep}):(0,nO.jsx)("article",{className:(0,ek.Z)(lb.main,"nextra-content nx-flex nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-min-w-0 nx-justify-center nx-pb-8 nx-pr-[calc(env(safe-area-inset-right)-1.5rem)]","article"===ee.typesetting&&"nextra-body-typesetting-article"),children:(0,nO.jsxs)("main",{className:"nx-w-full nx-min-w-0 nx-max-w-6xl nx-px-6 nx-pt-4 md:nx-px-12",children:[en,ep]})})},l_=({filePath:ee,pageMap:en,frontMatter:er,headings:ei,timestamp:eo,children:es})=>{let eu=su(),{locale:ec=s9,defaultLocale:ed}=(0,ew.useRouter)(),ef=eT(),{activeType:eh,activeIndex:ep,activeThemeContext:em,activePath:ex,topLevelNavbarItems:eg,docsDirectories:ev,flatDirectories:ey,flatDocsDirectories:eb,directories:ej}=(0,e_.useMemo)(()=>nY({list:en,locale:ec,defaultLocale:ed,route:ef}),[en,ec,ed,ef]),eE=oX(oX({},em),er),eO=!eE.sidebar||"raw"===eE.layout||"page"===eh,eS="page"!==eh&&eE.toc&&"default"===eE.layout?(0,nO.jsx)("nav",{className:(0,ek.Z)(lb.toc,"nx-px-4"),"aria-label":"table of contents",children:sg(eu.toc.component,{headings:eu.toc.float?ei:[],filePath:ee})}):"full"!==eE.layout&&"raw"!==eE.layout&&(0,nO.jsx)("nav",{className:lb.toc,"aria-label":"table of contents"}),eN=eu.i18n.find(ee=>ee.locale===ec),eR=eN?"rtl"===eN.direction:"rtl"===eu.direction,eI=eR?"rtl":"ltr";return(0,nO.jsxs)("div",{dir:eI,children:[(0,nO.jsx)("script",{dangerouslySetInnerHTML:{__html:`document.documentElement.setAttribute('dir','${eI}')`}}),(0,nO.jsx)(sZ,{}),(0,nO.jsx)(sw,{}),eE.navbar&&sg(eu.navbar.component,{flatDirectories:ey,items:eg}),(0,nO.jsx)("div",{className:(0,ek.Z)("nx-mx-auto nx-flex","raw"!==eE.layout&&"nx-max-w-[90rem]"),children:(0,nO.jsxs)(sr,{children:[(0,nO.jsx)(sX,{docsDirectories:ev,flatDirectories:ey,fullDirectories:ej,headings:ei,asPopover:eO,includePlaceholder:"default"===eE.layout}),eS,(0,nO.jsx)(s2,{}),(0,nO.jsx)(lw,{themeContext:eE,breadcrumb:"page"!==eh&&eE.breadcrumb?(0,nO.jsx)(s_,{activePath:ex}):null,timestamp:eo,navigation:"page"!==eh&&eE.pagination?(0,nO.jsx)(sF,{flatDirectories:eb,currentIndex:ep}):null,children:(0,nO.jsx)(eC.Zo,{components:ly({isRawLayout:"raw"===eE.layout,components:eu.components}),children:es})})]})}),eE.footer&&sg(eu.footer.component,{menu:eO})]})};function lk(ee){var en=ee,{children:er}=en,ei=o1(en,["children"]);return(0,nO.jsx)(sc,{value:ei,children:(0,nO.jsx)(l_,o0(oX({},ei.pageOpts),{children:er}))})}},9013:function(ee,en,er){"use strict";er.d(en,{UW:function(){return em},EK:function(){return ev},SU:function(){return ey},Rg:function(){return eb},OK:function(){return tn},iA:function(){return ti},mQ:function(){return tt},Td:function(){return tr},Th:function(){return to},Tr:function(){return ts}});var ei,eo,es,eu=er(6010),ec=er(5893),ed=({children:ee,className:en,...er})=>(0,ec.jsx)("button",{className:(0,eu.Z)("nextra-button nx-transition-all active:nx-opacity-50","nx-bg-primary-700/5 nx-border nx-border-black/5 nx-text-gray-600 hover:nx-text-gray-900 nx-rounded-md nx-p-1.5","dark:nx-bg-primary-300/10 dark:nx-border-white/10 dark:nx-text-gray-400 dark:hover:nx-text-gray-50",en),...er,children:ee}),ef=er(4861),eh={default:"\uD83D\uDCA1",error:"\uD83D\uDEAB",info:(0,ec.jsx)(ef.AV,{className:"nx-mt-1"}),warning:"⚠️"},ep={default:(0,eu.Z)("nx-border-orange-100 nx-bg-orange-50 nx-text-orange-800 dark:nx-border-orange-400/30 dark:nx-bg-orange-400/20 dark:nx-text-orange-300"),error:(0,eu.Z)("nx-border-red-200 nx-bg-red-100 nx-text-red-900 dark:nx-border-red-200/30 dark:nx-bg-red-900/30 dark:nx-text-red-200"),info:(0,eu.Z)("nx-border-blue-200 nx-bg-blue-100 nx-text-blue-900 dark:nx-border-blue-200/30 dark:nx-bg-blue-900/30 dark:nx-text-blue-200"),warning:(0,eu.Z)("nx-border-yellow-100 nx-bg-yellow-50 nx-text-yellow-900 dark:nx-border-yellow-200/30 dark:nx-bg-yellow-700/30 dark:nx-text-yellow-200")};function em({children:ee,type:en="default",emoji:er=eh[en]}){return(0,ec.jsxs)("div",{className:(0,eu.Z)("nextra-callout nx-overflow-x-auto nx-mt-6 nx-flex nx-rounded-lg nx-border nx-py-2 ltr:nx-pr-4 rtl:nx-pl-4","contrast-more:nx-border-current contrast-more:dark:nx-border-current",ep[en]),children:[(0,ec.jsx)("div",{className:"nx-select-none nx-text-xl ltr:nx-pl-3 ltr:nx-pr-2 rtl:nx-pr-3 rtl:nx-pl-2",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},children:er}),(0,ec.jsx)("div",{className:"nx-w-full nx-min-w-0 nx-leading-7",children:ee})]})}var ex=er(7294),eg=({getValue:ee,...en})=>{let[er,ei]=(0,ex.useState)(!1);(0,ex.useEffect)(()=>{if(!er)return;let ee=setTimeout(()=>{ei(!1)},2e3);return()=>{clearTimeout(ee)}},[er]);let eo=(0,ex.useCallback)(async()=>{ei(!0),navigator?.clipboard||console.error("Access to clipboard rejected!");try{await navigator.clipboard.writeText(ee())}catch{console.error("Failed to copy!")}},[ee]),es=er?ef.nQ:ef.TI;return(0,ec.jsx)(ed,{onClick:eo,title:"Copy code",tabIndex:0,...en,children:(0,ec.jsx)(es,{className:"nextra-copy-icon nx-pointer-events-none nx-h-4 nx-w-4"})})},ev=({children:ee,className:en,...er})=>{let ei="data-line-numbers"in er;return(0,ec.jsx)("code",{className:(0,eu.Z)("nx-border-black nx-border-opacity-[0.04] nx-bg-opacity-[0.03] nx-bg-black nx-break-words nx-rounded-md nx-border nx-py-0.5 nx-px-[.25em] nx-text-[.9em]","dark:nx-border-white/10 dark:nx-bg-white/10",ei&&"[counter-reset:line]",en),dir:"ltr",...er,children:ee})},ey=({children:ee,className:en,hasCopyCode:er,filename:ei,...eo})=>{let es=(0,ex.useRef)(null),eh=(0,ex.useCallback)(()=>{let ee=document.documentElement.dataset,en="nextraWordWrap"in ee;en?delete ee.nextraWordWrap:ee.nextraWordWrap=""},[]);return(0,ec.jsxs)("div",{className:"nextra-code-block nx-relative nx-mt-6 first:nx-mt-0",children:[ei&&(0,ec.jsx)("div",{className:"nx-absolute nx-top-0 nx-z-[1] nx-w-full nx-truncate nx-rounded-t-xl nx-bg-primary-700/5 nx-py-2 nx-px-4 nx-text-xs nx-text-gray-700 dark:nx-bg-primary-300/10 dark:nx-text-gray-200",children:ei}),(0,ec.jsx)("pre",{className:(0,eu.Z)("nx-bg-primary-700/5 nx-mb-4 nx-overflow-x-auto nx-rounded-xl nx-font-medium nx-subpixel-antialiased dark:nx-bg-primary-300/10 nx-text-[.9em]","contrast-more:nx-border contrast-more:nx-border-primary-900/20 contrast-more:nx-contrast-150 contrast-more:dark:nx-border-primary-100/40",ei?"nx-pt-12 nx-pb-4":"nx-py-4",en),ref:es,...eo,children:ee}),(0,ec.jsxs)("div",{className:(0,eu.Z)("nx-opacity-0 nx-transition [div:hover>&]:nx-opacity-100 focus-within:nx-opacity-100","nx-flex nx-gap-1 nx-absolute nx-m-[11px] nx-right-0",ei?"nx-top-8":"nx-top-0"),children:[(0,ec.jsx)(ed,{onClick:eh,className:"md:nx-hidden",title:"Toggle word wrap",children:(0,ec.jsx)(ef.NK,{className:"nx-pointer-events-none nx-h-4 nx-w-4"})}),er&&(0,ec.jsx)(eg,{getValue:()=>es.current?.querySelector("code")?.textContent||""})]})]})};function eb({children:ee,className:en,...er}){return(0,ec.jsx)("div",{className:(0,eu.Z)("nextra-steps nx-ml-4 nx-mb-12 nx-border-l nx-border-gray-200 nx-pl-6","dark:nx-border-neutral-800 [counter-reset:step]",en),...er,children:ee})}var ew=er(2351),e_=er(9946),ek=er(2984),ej=er(1363),eE=er(4575),eO=er(6723),eT=er(3784),eC=er(4157),eS=er(3855),eN=er(4879),eR=er(6045);function eI({onFocus:ee}){let[en,er]=(0,ex.useState)(!0),ei=(0,eN.t)();return en?ex.createElement(eR._,{as:"button",type:"button",features:eR.A.Focusable,onFocus:en=>{en.preventDefault();let eo,es=50;function eu(){if(es--<=0){eo&&cancelAnimationFrame(eo);return}if(ee()){if(cancelAnimationFrame(eo),!ei.current)return;er(!1);return}eo=requestAnimationFrame(eu)}eo=requestAnimationFrame(eu)}}):null}var eA=er(3781),eP=er(1021),eL=er(5466);let eM=ex.createContext(null);function eZ(){return{groups:new Map,get(ee,en){var er;let ei=this.groups.get(ee);ei||(ei=new Map,this.groups.set(ee,ei));let eo=null!=(er=ei.get(en))?er:0;function es(){let ee=ei.get(en);ee>1?ei.set(en,ee-1):ei.delete(en)}return ei.set(en,eo+1),[Array.from(ei.keys()).indexOf(en),es]}}}function eD({children:ee}){let en=ex.useRef(eZ());return ex.createElement(eM.Provider,{value:en},ee)}function eF(ee){let en=ex.useContext(eM);if(!en)throw Error("You must wrap your component in a ");let er=ez(),[ei,eo]=en.current.get(ee,er);return ex.useEffect(()=>eo,[]),ei}function ez(){var ee,en,er;let ei=null!=(er=null==(en=null==(ee=ex.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:ee.ReactCurrentOwner)?void 0:en.current)?er:null;if(!ei)return Symbol();let eo=[],es=ei;for(;es;)eo.push(es.index),es=es.return;return"$."+eo.join(".")}var e$=((ei=e$||{})[ei.Forwards=0]="Forwards",ei[ei.Backwards=1]="Backwards",ei),eW=((eo=eW||{})[eo.Less=-1]="Less",eo[eo.Equal=0]="Equal",eo[eo.Greater=1]="Greater",eo),eU=((es=eU||{})[es.SetSelectedIndex=0]="SetSelectedIndex",es[es.RegisterTab=1]="RegisterTab",es[es.UnregisterTab=2]="UnregisterTab",es[es.RegisterPanel=3]="RegisterPanel",es[es.UnregisterPanel=4]="UnregisterPanel",es);let eH={0(ee,en){var er;let ei=(0,eE.z2)(ee.tabs,ee=>ee.current),eo=(0,eE.z2)(ee.panels,ee=>ee.current),es=ei.filter(ee=>{var en;return!(null!=(en=ee.current)&&en.hasAttribute("disabled"))}),eu={...ee,tabs:ei,panels:eo};if(en.index<0||en.index>ei.length-1){let er=(0,ek.E)(Math.sign(en.index-ee.selectedIndex),{[-1]:()=>1,0:()=>(0,ek.E)(Math.sign(en.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});return 0===es.length?eu:{...eu,selectedIndex:(0,ek.E)(er,{0:()=>ei.indexOf(es[0]),1:()=>ei.indexOf(es[es.length-1])})}}let ec=ei.slice(0,en.index),ed=[...ei.slice(en.index),...ec].find(ee=>es.includes(ee));if(!ed)return eu;let ef=null!=(er=ei.indexOf(ed))?er:ee.selectedIndex;return -1===ef&&(ef=ee.selectedIndex),{...eu,selectedIndex:ef}},1(ee,en){var er;if(ee.tabs.includes(en.tab))return ee;let ei=ee.tabs[ee.selectedIndex],eo=(0,eE.z2)([...ee.tabs,en.tab],ee=>ee.current),es=null!=(er=eo.indexOf(ei))?er:ee.selectedIndex;return -1===es&&(es=ee.selectedIndex),{...ee,tabs:eo,selectedIndex:es}},2:(ee,en)=>({...ee,tabs:ee.tabs.filter(ee=>ee!==en.tab)}),3:(ee,en)=>ee.panels.includes(en.panel)?ee:{...ee,panels:(0,eE.z2)([...ee.panels,en.panel],ee=>ee.current)},4:(ee,en)=>({...ee,panels:ee.panels.filter(ee=>ee!==en.panel)})},eG=(0,ex.createContext)(null);function eV(ee){let en=(0,ex.useContext)(eG);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,eV),en}return en}eG.displayName="TabsDataContext";let eB=(0,ex.createContext)(null);function eK(ee){let en=(0,ex.useContext)(eB);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,eK),en}return en}function eY(ee,en){return(0,ek.E)(en.type,eH,ee,en)}eB.displayName="TabsActionsContext";let eQ=ex.Fragment;function eJ(ee,en){let{defaultIndex:er=0,vertical:ei=!1,manual:eo=!1,onChange:es,selectedIndex:eu=null,...ec}=ee,ed=ei?"vertical":"horizontal",ef=eo?"manual":"auto",eh=null!==eu,ep=(0,eT.T)(en),[em,eg]=(0,ex.useReducer)(eY,{selectedIndex:null!=eu?eu:er,tabs:[],panels:[]}),ev=(0,ex.useMemo)(()=>({selectedIndex:em.selectedIndex}),[em.selectedIndex]),ey=(0,eS.E)(es||(()=>{})),eb=(0,eS.E)(em.tabs),e_=(0,ex.useMemo)(()=>({orientation:ed,activation:ef,...em}),[ed,ef,em]),ek=(0,eA.z)(ee=>(eg({type:1,tab:ee}),()=>eg({type:2,tab:ee}))),ej=(0,eA.z)(ee=>(eg({type:3,panel:ee}),()=>eg({type:4,panel:ee}))),eC=(0,eA.z)(ee=>{eN.current!==ee&&ey.current(ee),eh||eg({type:0,index:ee})}),eN=(0,eS.E)(eh?ee.selectedIndex:em.selectedIndex),eR=(0,ex.useMemo)(()=>({registerTab:ek,registerPanel:ej,change:eC}),[]);(0,eO.e)(()=>{eg({type:0,index:null!=eu?eu:er})},[eu]),(0,eO.e)(()=>{if(void 0===eN.current||em.tabs.length<=0)return;let ee=(0,eE.z2)(em.tabs,ee=>ee.current);ee.some((ee,en)=>em.tabs[en]!==ee)&&eC(ee.indexOf(em.tabs[eN.current]))});let eP={ref:ep};return ex.createElement(eD,null,ex.createElement(eB.Provider,{value:eR},ex.createElement(eG.Provider,{value:e_},e_.tabs.length<=0&&ex.createElement(eI,{onFocus:()=>{var ee,en;for(let er of eb.current)if((null==(ee=er.current)?void 0:ee.tabIndex)===0)return null==(en=er.current)||en.focus(),!0;return!1}}),(0,ew.sY)({ourProps:eP,theirProps:ec,slot:ev,defaultTag:eQ,name:"Tabs"}))))}let eX="div";function e0(ee,en){let{orientation:er,selectedIndex:ei}=eV("Tab.List"),eo=(0,eT.T)(en);return(0,ew.sY)({ourProps:{ref:eo,role:"tablist","aria-orientation":er},theirProps:ee,slot:{selectedIndex:ei},defaultTag:eX,name:"Tabs.List"})}let e1="button";function e2(ee,en){var er,ei;let eo=(0,e_.M)(),{id:es=`headlessui-tabs-tab-${eo}`,...eu}=ee,{orientation:ec,activation:ed,selectedIndex:ef,tabs:eh,panels:ep}=eV("Tab"),em=eK("Tab"),eg=eV("Tab"),ev=(0,ex.useRef)(null),ey=(0,eT.T)(ev,en);(0,eO.e)(()=>em.registerTab(ev),[em,ev]);let eb=eF("tabs"),eS=eh.indexOf(ev);-1===eS&&(eS=eb);let eN=eS===ef,eR=(0,eA.z)(ee=>{var en;let er=ee();if(er===eE.fE.Success&&"auto"===ed){let ee=null==(en=(0,eL.r)(ev))?void 0:en.activeElement,er=eg.tabs.findIndex(en=>en.current===ee);-1!==er&&em.change(er)}return er}),eI=(0,eA.z)(ee=>{let en=eh.map(ee=>ee.current).filter(Boolean);if(ee.key===ej.R.Space||ee.key===ej.R.Enter){ee.preventDefault(),ee.stopPropagation(),em.change(eS);return}switch(ee.key){case ej.R.Home:case ej.R.PageUp:return ee.preventDefault(),ee.stopPropagation(),eR(()=>(0,eE.jA)(en,eE.TO.First));case ej.R.End:case ej.R.PageDown:return ee.preventDefault(),ee.stopPropagation(),eR(()=>(0,eE.jA)(en,eE.TO.Last))}if(eR(()=>(0,ek.E)(ec,{vertical:()=>ee.key===ej.R.ArrowUp?(0,eE.jA)(en,eE.TO.Previous|eE.TO.WrapAround):ee.key===ej.R.ArrowDown?(0,eE.jA)(en,eE.TO.Next|eE.TO.WrapAround):eE.fE.Error,horizontal:()=>ee.key===ej.R.ArrowLeft?(0,eE.jA)(en,eE.TO.Previous|eE.TO.WrapAround):ee.key===ej.R.ArrowRight?(0,eE.jA)(en,eE.TO.Next|eE.TO.WrapAround):eE.fE.Error}))===eE.fE.Success)return ee.preventDefault()}),eM=(0,ex.useRef)(!1),eZ=(0,eA.z)(()=>{var ee;eM.current||(eM.current=!0,null==(ee=ev.current)||ee.focus(),em.change(eS),(0,eP.Y)(()=>{eM.current=!1}))}),eD=(0,eA.z)(ee=>{ee.preventDefault()}),ez=(0,ex.useMemo)(()=>({selected:eN}),[eN]),e$={ref:ey,onKeyDown:eI,onMouseDown:eD,onClick:eZ,id:es,role:"tab",type:(0,eC.f)(ee,ev),"aria-controls":null==(ei=null==(er=ep[eS])?void 0:er.current)?void 0:ei.id,"aria-selected":eN,tabIndex:eN?0:-1};return(0,ew.sY)({ourProps:e$,theirProps:eu,slot:ez,defaultTag:e1,name:"Tabs.Tab"})}let e4="div";function e5(ee,en){let{selectedIndex:er}=eV("Tab.Panels"),ei=(0,eT.T)(en),eo=(0,ex.useMemo)(()=>({selectedIndex:er}),[er]);return(0,ew.sY)({ourProps:{ref:ei},theirProps:ee,slot:eo,defaultTag:e4,name:"Tabs.Panels"})}let e3="div",e7=ew.AN.RenderStrategy|ew.AN.Static;function e6(ee,en){var er,ei,eo,es;let eu=(0,e_.M)(),{id:ec=`headlessui-tabs-panel-${eu}`,tabIndex:ed=0,...ef}=ee,{selectedIndex:eh,tabs:ep,panels:em}=eV("Tab.Panel"),eg=eK("Tab.Panel"),ev=(0,ex.useRef)(null),ey=(0,eT.T)(ev,en);(0,eO.e)(()=>eg.registerPanel(ev),[eg,ev]);let eb=eF("panels"),ek=em.indexOf(ev);-1===ek&&(ek=eb);let ej=ek===eh,eE=(0,ex.useMemo)(()=>({selected:ej}),[ej]),eC={ref:ey,id:ec,role:"tabpanel","aria-labelledby":null==(ei=null==(er=ep[ek])?void 0:er.current)?void 0:ei.id,tabIndex:ej?ed:-1};return ej||null!=(eo=ef.unmount)&&!eo||null!=(es=ef.static)&&es?(0,ew.sY)({ourProps:eC,theirProps:ef,slot:eE,defaultTag:e3,features:e7,visible:ej,name:"Tabs.Panel"}):ex.createElement(eR._,{as:"span",...eC})}let e9=Object.assign((0,ew.yV)(e2),{Group:(0,ew.yV)(eJ),List:(0,ew.yV)(e0),Panels:(0,ew.yV)(e5),Panel:(0,ew.yV)(e6)});function e8(ee){return!!ee&&"object"==typeof ee&&"label"in ee}function tt({items:ee,selectedIndex:en,defaultIndex:er=0,onChange:ei,children:eo,storageKey:es}){let[ed,ef]=(0,ex.useState)(er);(0,ex.useEffect)(()=>{void 0!==en&&ef(en)},[en]),(0,ex.useEffect)(()=>{if(!es)return;function ee(ee){ee.key===es&&ef(Number(ee.newValue))}let en=Number(localStorage.getItem(es));return ef(Number.isNaN(en)?0:en),window.addEventListener("storage",ee),()=>{window.removeEventListener("storage",ee)}},[]);let eh=(0,ex.useCallback)(ee=>{if(es){let en=String(ee);localStorage.setItem(es,en),window.dispatchEvent(new StorageEvent("storage",{key:es,newValue:en}));return}ef(ee),ei?.(ee)},[]);return(0,ec.jsxs)(e9.Group,{selectedIndex:ed,defaultIndex:er,onChange:eh,children:[(0,ec.jsx)("div",{className:"nextra-scrollbar nx-overflow-x-auto nx-overflow-y-hidden nx-overscroll-x-contain",children:(0,ec.jsx)(e9.List,{className:"nx-mt-4 nx-flex nx-w-max nx-min-w-full nx-border-b nx-border-gray-200 nx-pb-px dark:nx-border-neutral-800",children:ee.map((ee,en)=>{let er=e8(ee)&&ee.disabled;return(0,ec.jsx)(e9,{disabled:er,className:({selected:ee})=>(0,eu.Z)("nx-mr-2 nx-rounded-t nx-p-2 nx-font-medium nx-leading-5 nx-transition-colors","-nx-mb-0.5 nx-select-none nx-border-b-2",ee?"nx-border-primary-500 nx-text-primary-600":"nx-border-transparent nx-text-gray-600 hover:nx-border-gray-200 hover:nx-text-black dark:nx-text-gray-200 dark:hover:nx-border-neutral-800 dark:hover:nx-text-white",er&&"nx-pointer-events-none nx-text-gray-400 dark:nx-text-neutral-600"),children:e8(ee)?ee.label:ee},en)})})}),(0,ec.jsx)(e9.Panels,{children:eo})]})}function tn({children:ee,...en}){return(0,ec.jsx)(e9.Panel,{...en,className:"nx-rounded nx-pt-6",children:ee})}var tr=({className:ee="",...en})=>(0,ec.jsx)("td",{className:(0,eu.Z)("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 dark:nx-border-gray-600",ee),...en}),ti=({className:ee="",...en})=>(0,ec.jsx)("table",{className:(0,eu.Z)("nx-block nx-overflow-x-scroll",ee),...en}),to=({className:ee="",...en})=>(0,ec.jsx)("th",{className:(0,eu.Z)("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 nx-font-semibold dark:nx-border-gray-600",ee),...en}),ts=({className:ee="",...en})=>(0,ec.jsx)("tr",{className:(0,eu.Z)("nx-m-0 nx-border-t nx-border-gray-300 nx-p-0 dark:nx-border-gray-600","even:nx-bg-gray-100 even:dark:nx-bg-gray-600/20",ee),...en});er(1664),(0,eu.Z)("nextra-cards nx-mt-4 nx-gap-4 nx-grid","nx-not-prose"),(0,eu.Z)("nextra-card nx-group nx-flex nx-flex-col nx-justify-start nx-overflow-hidden nx-rounded-lg nx-border nx-border-gray-200","nx-text-current nx-no-underline dark:nx-shadow-none","hover:nx-shadow-gray-100 dark:hover:nx-shadow-none nx-shadow-gray-100","active:nx-shadow-sm active:nx-shadow-gray-200","nx-transition-all nx-duration-200 hover:nx-border-gray-300"),(0,eu.Z)("nx-flex nx-font-semibold nx-items-start nx-gap-2 nx-p-4 nx-text-gray-700 hover:nx-text-gray-900");var tl=(0,ex.createContext)(0);function tu(){return(0,ex.useContext)(tl)}function tc({children:ee}){return(0,ec.jsx)("div",{className:(0,eu.Z)("nextra-filetree nx-mt-6 nx-select-none nx-text-sm nx-text-gray-800 dark:nx-text-gray-300","nx-not-prose"),children:(0,ec.jsx)("div",{className:"nx-inline-block nx-rounded-lg nx-border nx-px-4 nx-py-2 dark:nx-border-neutral-800",children:ee})})}function td(){let ee=tu();return(0,ec.jsx)(ec.Fragment,{children:Array.from({length:ee},(ee,en)=>(0,ec.jsx)("span",{className:"nx-w-5"},en))})}var tf=(0,ex.memo)(({label:ee,name:en,open:er,children:ei,defaultOpen:eo=!1,onToggle:es})=>{let eu=tu(),[ed,ef]=(0,ex.useState)(eo),eh=(0,ex.useCallback)(()=>{es?.(!ed),ef(!ed)},[ed,es]),ep=void 0===er?ed:er;return(0,ec.jsxs)("li",{className:"nx-flex nx-list-none nx-flex-col",children:[(0,ec.jsxs)("button",{onClick:eh,title:en,className:"nx-inline-flex nx-cursor-pointer nx-items-center nx-py-1 hover:nx-opacity-60",children:[(0,ec.jsx)(td,{}),(0,ec.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,ec.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:ep?"M5 19a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4l2 2h4a2 2 0 0 1 2 2v1M5 19h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2Z":"M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6l-2-2H5a2 2 0 0 0-2 2Z"})}),(0,ec.jsx)("span",{className:"nx-ml-1",children:ee??en})]}),ep&&(0,ec.jsx)("ul",{children:(0,ec.jsx)(tl.Provider,{value:eu+1,children:ei})})]})});tf.displayName="Folder";var th=(0,ex.memo)(({label:ee,name:en,active:er})=>(0,ec.jsx)("li",{className:(0,eu.Z)("nx-flex nx-list-none",er&&"nx-text-primary-600 contrast-more:nx-underline"),children:(0,ec.jsxs)("span",{className:"nx-inline-flex nx-cursor-default nx-items-center nx-py-1",children:[(0,ec.jsx)(td,{}),(0,ec.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,ec.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2Z"})}),(0,ec.jsx)("span",{className:"nx-ml-1",children:ee??en})]})}));th.displayName="File",Object.assign(tc,{Folder:tf,File:th})},4861:function(ee,en,er){"use strict";er.d(en,{LZ:function(){return eo},nQ:function(){return es},TI:function(){return eu},D7:function(){return ec},Qq:function(){return ed},fy:function(){return ef},n9:function(){return eh},AV:function(){return ep},Oq:function(){return em},kL:function(){return ex},L4:function(){return eg},NW:function(){return ev},NK:function(){return ey},b0:function(){return eb}});var ei=er(5893);function eo({pathClassName:ee,...en}){return(0,ei.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...en,children:(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5l7 7-7 7",className:ee})})}function es(ee){return(0,ei.jsx)("svg",{viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor",...ee,children:(0,ei.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function eu(ee){return(0,ei.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",...ee,children:[(0,ei.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,ei.jsx)("path",{d:"M5 15H4C2.89543 15 2 14.1046 2 13V4C2 2.89543 2.89543 2 4 2H13C14.1046 2 15 2.89543 15 4V5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function ec(ee){return(0,ei.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 5 30.67 23.25",...ee,children:[(0,ei.jsx)("title",{children:"Discord"}),(0,ei.jsx)("path",{d:"M26.0015 6.9529C24.0021 6.03845 21.8787 5.37198 19.6623 5C19.3833 5.48048 19.0733 6.13144 18.8563 6.64292C16.4989 6.30193 14.1585 6.30193 11.8336 6.64292C11.6166 6.13144 11.2911 5.48048 11.0276 5C8.79575 5.37198 6.67235 6.03845 4.6869 6.9529C0.672601 12.8736 -0.41235 18.6548 0.130124 24.3585C2.79599 26.2959 5.36889 27.4739 7.89682 28.2489C8.51679 27.4119 9.07477 26.5129 9.55525 25.5675C8.64079 25.2265 7.77283 24.808 6.93587 24.312C7.15286 24.1571 7.36986 23.9866 7.57135 23.8161C12.6241 26.1255 18.0969 26.1255 23.0876 23.8161C23.3046 23.9866 23.5061 24.1571 23.7231 24.312C22.8861 24.808 22.0182 25.2265 21.1037 25.5675C21.5842 26.5129 22.1422 27.4119 22.7621 28.2489C25.2885 27.4739 27.8769 26.2959 30.5288 24.3585C31.1952 17.7559 29.4733 12.0212 26.0015 6.9529ZM10.2527 20.8402C8.73376 20.8402 7.49382 19.4608 7.49382 17.7714C7.49382 16.082 8.70276 14.7025 10.2527 14.7025C11.7871 14.7025 13.0425 16.082 13.0115 17.7714C13.0115 19.4608 11.7871 20.8402 10.2527 20.8402ZM20.4373 20.8402C18.9183 20.8402 17.6768 19.4608 17.6768 17.7714C17.6768 16.082 18.8873 14.7025 20.4373 14.7025C21.9717 14.7025 23.2271 16.082 23.1961 17.7714C23.1961 19.4608 21.9872 20.8402 20.4373 20.8402Z"})]})}function ed({isOpen:ee,...en}){return(0,ei.jsxs)("svg",{height:"12",width:"12",viewBox:"0 0 16 16",fill:"currentColor",...en,children:[(0,ei.jsx)("path",{fillRule:"evenodd",d:"M4.177 7.823l2.396-2.396A.25.25 0 017 5.604v4.792a.25.25 0 01-.427.177L4.177 8.177a.25.25 0 010-.354z",className:ee?"":"nx-origin-[35%] nx-rotate-180"}),(0,ei.jsx)("path",{fillRule:"evenodd",d:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0114.25 16H1.75A1.75 1.75 0 010 14.25V1.75zm1.75-.25a.25.25 0 00-.25.25v12.5c0 .138.112.25.25.25H9.5v-13H1.75zm12.5 13H11v-13h3.25a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25z"})]})}function ef(ee){return(0,ei.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",viewBox:"3 3 18 18",...ee,children:[(0,ei.jsx)("title",{children:"GitHub"}),(0,ei.jsx)("path",{d:"M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z"})]})}function eh(ee){return(0,ei.jsx)("svg",{viewBox:"2 2 16 16",width:"12",height:"12",fill:"currentColor",...ee,children:(0,ei.jsx)("path",{fillRule:"evenodd",d:"M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z",clipRule:"evenodd"})})}function ep(ee){return(0,ei.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"20",height:"20",...ee,children:(0,ei.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"})})}function em(ee){return(0,ei.jsxs)("svg",{fill:"none",width:"24",height:"24",viewBox:"0 0 24 24",stroke:"currentColor",...ee,children:[(0,ei.jsx)("g",{children:(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16"})}),(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 12h16"}),(0,ei.jsx)("g",{children:(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 18h16"})})]})}function ex(ee){return(0,ei.jsx)("svg",{fill:"none",viewBox:"2 2 20 20",width:"12",height:"12",stroke:"currentColor",...ee,children:(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})}function eg(ee){return(0,ei.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24",...ee,children:[(0,ei.jsx)("circle",{className:"nx-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,ei.jsx)("path",{className:"nx-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function ev(ee){return(0,ei.jsx)("svg",{fill:"none",viewBox:"3 3 18 18",width:"12",height:"12",stroke:"currentColor",...ee,children:(0,ei.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})})}function ey(ee){return(0,ei.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",...ee,children:(0,ei.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}function eb(ee){return(0,ei.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",...ee,children:(0,ei.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}},6997:function(ee,en,er){"use strict";er.d(en,{j:function(){return ej}});var ei,eo=er(9208),es=er.n(eo),eu=er(7222),ec=er(7308),ed=er(1163),ef=er(7294);function eh(){let ee=globalThis[eu.eZ],{route:en}=(0,ed.useRouter)();(0,ef.useState)({})[1];let er=ee.context[en];if(!er)throw Error("No content found for the current route. This is a Nextra bug.");return{context:er,Layout:ee.Layout}}var ep=er(5893);function em({__nextra_pageMap:ee,__nextra_dynamic_opts:en,...er}){let{context:ei,Layout:eo}=eh(),{Content:es,...eu}=ei;if(ee&&(eu.pageOpts={...eu.pageOpts,pageMap:ee}),en){let ee=JSON.parse(en);eu.pageOpts={...eu.pageOpts,headings:ee.headings,title:ee.title||eu.pageOpts.title,frontMatter:ee.frontMatter}}return(0,ep.jsx)(eo,{...eu,pageProps:er,children:(0,ep.jsx)(ec.mK.Provider,{value:er,children:(0,ep.jsx)(es,{...er})})})}var ex=er(1864),eg=er(3859),ev=er(2891);function ey(ee,en){return eg(ex.join(ee,en.replace(/^index$/,"")))}function eb(ee){return ev(ee.replace(/[-_]/g," "))}function ew(ee){return!!ee&&"object"==typeof ee&&"folder"===ee.type}function e_(ee){return Object.fromEntries(Object.entries(ee).map(([ee,en])=>{if(ew(en)){let er=ee.replace("/","");return[er,en.title||eb(er)]}return[ee,en||eb(ee)]}))}function ek(ee,en,er=!0){if(er){ek(ee,{kind:"Meta",data:en.data,locale:en.locale},!1),en.data=e_(en.data);return}for(let[er,ei]of Object.entries(en.data)){if(!ew(ei)){if("*"===er)continue;ee.children.push({kind:"MdxPage",...en.locale&&{locale:en.locale},name:er,route:ey(ee.route,er)});continue}let eo=er.replace("/",""),es={kind:"Folder",name:eo,route:`${ee.route}/${eo}`,children:[{kind:"Meta",...en.locale&&{locale:en.locale},data:e_(ei.items)}]};ee.children.push(es),ek(es,{kind:"Meta",data:ei.items,locale:en.locale},!1)}}function ej({pageNextRoute:ee,pageOpts:en,nextraLayout:er,themeConfig:eo,MDXContent:ec,hot:ed,pageOptsChecksum:ef,dynamicMetaModules:eh=[]}){var ep;"undefined"==typeof window&&(globalThis.__nextra_resolvePageMap=async()=>{if(ei)return ei;let ee=JSON.parse(JSON.stringify(ex.pageMap));return await Promise.all(eh.map(async([en,{metaObjectKeyPath:er,metaParentKeyPath:ei}])=>{let eo=await en,eu=await eo.default(),ec=es()(ee,er);ec.data=eu;let ed=es()(ee,ei);ek(ed,ec)})),ei=ee});let ex=globalThis[ep=eu.eZ]||(globalThis[ep]=Object.create(null));return en.pageMap?(ex.pageMap=en.pageMap,ex.Layout=er):(en={...en,pageMap:ex.pageMap,flexsearch:ex.flexsearch},eo=ex.themeConfig),en={frontMatter:{},...en},ex.route=en.route,ex.context||(ex.context=Object.create(null)),ex.context[ee]={Content:ec,pageOpts:en,themeConfig:eo},em}},7308:function(ee,en,er){"use strict";er.d(en,{et:function(){return es},mK:function(){return eo}}),er(1404);var ei=er(7294);er(5893);var eo=(0,ei.createContext)(!1),es=(ee="ssg")=>ei.useContext(eo)?.[ee]},6008:function(ee,en,er){"use strict";var ei=er(2337);function eo(ee){var en={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:ee,query:{},parse_failed:!1};try{var er=new URL(ee);en.protocols=ei(er),en.protocol=en.protocols[0],en.port=er.port,en.resource=er.hostname,en.host=er.host,en.user=er.username||"",en.password=er.password||"",en.pathname=er.pathname,en.hash=er.hash.slice(1),en.search=er.search.slice(1),en.href=er.href,en.query=Object.fromEntries(er.searchParams)}catch(er){en.protocols=["file"],en.protocol=en.protocols[0],en.port="",en.resource="",en.user="",en.pathname="",en.hash="",en.search="",en.href=ee,en.query={},en.parse_failed=!0}return en}ee.exports=eo},3905:function(ee,en,er){"use strict";var ei=function(ee){return ee&&"object"==typeof ee&&"default"in ee?ee:{default:ee}}(er(6008));let eo="text/plain",es="us-ascii",eu=(ee,en)=>en.some(en=>en instanceof RegExp?en.test(ee):en===ee),ec=(ee,{stripHash:en})=>{let er=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(ee);if(!er)throw Error(`Invalid URL: ${ee}`);let{type:ei,data:eu,hash:ec}=er.groups,ed=ei.split(";");ec=en?"":ec;let ef=!1;"base64"===ed[ed.length-1]&&(ed.pop(),ef=!0);let eh=(ed.shift()||"").toLowerCase(),ep=ed.map(ee=>{let[en,er=""]=ee.split("=").map(ee=>ee.trim());return"charset"===en&&(er=er.toLowerCase())===es?"":`${en}${er?`=${er}`:""}`}).filter(Boolean),em=[...ep];return ef&&em.push("base64"),(em.length>0||eh&&eh!==eo)&&em.unshift(eh),`data:${em.join(";")},${ef?eu.trim():eu}${ec?`#${ec}`:""}`};function ed(ee,en){if(en={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...en},ee=ee.trim(),/^data:/i.test(ee))return ec(ee,en);if(/^view-source:/i.test(ee))throw Error("`view-source:` is not supported as it is a non-standard protocol");let er=ee.startsWith("//"),ei=!er&&/^\.*\//.test(ee);ei||(ee=ee.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,en.defaultProtocol));let eo=new URL(ee);if(en.forceHttp&&en.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(en.forceHttp&&"https:"===eo.protocol&&(eo.protocol="http:"),en.forceHttps&&"http:"===eo.protocol&&(eo.protocol="https:"),en.stripAuthentication&&(eo.username="",eo.password=""),en.stripHash?eo.hash="":en.stripTextFragment&&(eo.hash=eo.hash.replace(/#?:~:text.*?$/i,"")),eo.pathname){let ee=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,en=0,er="";for(;;){let ei=ee.exec(eo.pathname);if(!ei)break;let es=ei[0],eu=ei.index,ec=eo.pathname.slice(en,eu);er+=ec.replace(/\/{2,}/g,"/")+es,en=eu+es.length}let ei=eo.pathname.slice(en,eo.pathname.length);er+=ei.replace(/\/{2,}/g,"/"),eo.pathname=er}if(eo.pathname)try{eo.pathname=decodeURI(eo.pathname)}catch{}if(!0===en.removeDirectoryIndex&&(en.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(en.removeDirectoryIndex)&&en.removeDirectoryIndex.length>0){let ee=eo.pathname.split("/"),er=ee[ee.length-1];eu(er,en.removeDirectoryIndex)&&(ee=ee.slice(0,-1),eo.pathname=ee.slice(1).join("/")+"/")}if(eo.hostname&&(eo.hostname=eo.hostname.replace(/\.$/,""),en.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(eo.hostname)&&(eo.hostname=eo.hostname.replace(/^www\./,""))),Array.isArray(en.removeQueryParameters))for(let ee of[...eo.searchParams.keys()])eu(ee,en.removeQueryParameters)&&eo.searchParams.delete(ee);if(!0===en.removeQueryParameters&&(eo.search=""),en.sortQueryParameters){eo.searchParams.sort();try{eo.search=decodeURIComponent(eo.search)}catch{}}en.removeTrailingSlash&&(eo.pathname=eo.pathname.replace(/\/$/,""));let es=ee;return ee=eo.toString(),en.removeSingleSlash||"/"!==eo.pathname||es.endsWith("/")||""!==eo.hash||(ee=ee.replace(/\/$/,"")),(en.removeTrailingSlash||"/"===eo.pathname)&&""===eo.hash&&en.removeSingleSlash&&(ee=ee.replace(/\/$/,"")),er&&!en.normalizeProtocol&&(ee=ee.replace(/^http:\/\//,"//")),en.stripProtocol&&(ee=ee.replace(/^(?:https?:)?\/\//,"")),ee}let ef=(ee,en=!1)=>{let er=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,eo=en=>{let er=Error(en);throw er.subject_url=ee,er};"string"==typeof ee&&ee.trim()||eo("Invalid url."),ee.length>ef.MAX_INPUT_LENGTH&&eo("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),en&&("object"!=typeof en&&(en={stripHash:!1}),ee=ed(ee,en));let es=ei.default(ee);if(es.parse_failed){let ee=es.href.match(er);ee?(es.protocols=["ssh"],es.protocol="ssh",es.resource=ee[2],es.host=ee[2],es.user=ee[1],es.pathname=`/${ee[3]}`,es.parse_failed=!1):eo("URL parsing failed.")}return es};ef.MAX_INPUT_LENGTH=2048,ee.exports=ef},2337:function(ee){"use strict";ee.exports=function(ee,en){!0===en&&(en=0);var er="";if("string"==typeof ee)try{er=new URL(ee).protocol}catch(ee){}else ee&&ee.constructor===URL&&(er=ee.protocol);var ei=er.split(/\:|\+/).filter(Boolean);return"number"==typeof en?ei[en]:ei}},6826:function(ee){var en={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},er=Object.keys(en).join("|"),ei=RegExp(er,"g"),eo=RegExp(er,""),es=function(ee){return ee.replace(ei,function(ee){return en[ee]})},eu=function(ee){return!!ee.match(eo)};ee.exports=es,ee.exports.has=eu,ee.exports.remove=es},3859:function(ee){"use strict";ee.exports=ee=>{let en=/^\\\\\?\\/.test(ee),er=/[^\u0000-\u0080]+/.test(ee);return en||er?ee:ee.replace(/\\/g,"/")}},2891:function(ee,en,er){let ei=er(1439),eo=er(7224),es="[^\\s'’\\(\\)!?;:\"-]",eu=RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${es}))|(${es}))(${es}*[’']*${es}*)`,"g"),ec=ee=>ee.map(ee=>[RegExp(`\\b${ee}\\b`,"gi"),ee]);function ed(ee){let en=ee[0];return/\s/.test(en)?ee.slice(1):/[\(\)]/.test(en)?null:ee}ee.exports=(ee,en={})=>{ee=ee.toLowerCase().replace(eu,(ee,en="",er,eo,es,eu,ec)=>{let ef=ee.length+eu>=ec.length,eh=ed(ee);if(!eh)return ee;if(!er){let ee=eo+es;if(ei.has(ee)&&!ef)return eh}return en+(eo||er).toUpperCase()+es});let er=en.special||[],es=[...eo,...er],ef=ec(es);return ef.forEach(([en,er])=>{ee=ee.replace(en,er)}),ee}},1439:function(ee){let en=["for","and","nor","but","or","yet","so"],er=["a","an","the"],ei=["aboard","about","above","across","after","against","along","amid","among","anti","around","as","at","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","considering","despite","down","during","except","excepting","excluding","following","for","from","in","inside","into","like","minus","near","of","off","on","onto","opposite","over","past","per","plus","regarding","round","save","since","than","through","to","toward","towards","under","underneath","unlike","until","up","upon","versus","via","with","within","without"];ee.exports=new Set([...en,...er,...ei])},7224:function(ee){let en=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS","SQL","C","C#","GraphQL","GraphiQL","JWT","JWTs"];ee.exports=en},2746:function(ee,en,er){ee.exports.jsxRuntime=er(5893)},1363:function(ee,en,er){"use strict";er.d(en,{R:function(){return eo}});var ei,eo=((ei=eo||{}).Space=" ",ei.Enter="Enter",ei.Escape="Escape",ei.Backspace="Backspace",ei.Delete="Delete",ei.ArrowLeft="ArrowLeft",ei.ArrowUp="ArrowUp",ei.ArrowRight="ArrowRight",ei.ArrowDown="ArrowDown",ei.Home="Home",ei.End="End",ei.PageUp="PageUp",ei.PageDown="PageDown",ei.Tab="Tab",ei)},3781:function(ee,en,er){"use strict";er.d(en,{z:function(){return es}});var ei=er(7294),eo=er(3855);let es=function(ee){let en=(0,eo.E)(ee);return ei.useCallback((...ee)=>en.current(...ee),[en])}},9946:function(ee,en,er){"use strict";er.d(en,{M:function(){return ed}});var ei,eo=er(7294),es=er(6723),eu=er(2180),ec=er(7896);let ed=null!=(ei=eo.useId)?ei:function(){let ee=(0,eu.H)(),[en,er]=eo.useState(ee?()=>ec.O.nextId():null);return(0,es.e)(()=>{null===en&&er(ec.O.nextId())},[en]),null!=en?""+en:void 0}},4879:function(ee,en,er){"use strict";er.d(en,{t:function(){return es}});var ei=er(7294),eo=er(6723);function es(){let ee=(0,ei.useRef)(!1);return(0,eo.e)(()=>(ee.current=!0,()=>{ee.current=!1}),[]),ee}},6723:function(ee,en,er){"use strict";er.d(en,{e:function(){return es}});var ei=er(7294),eo=er(7896);let es=(ee,en)=>{eo.O.isServer?(0,ei.useEffect)(ee,en):(0,ei.useLayoutEffect)(ee,en)}},3855:function(ee,en,er){"use strict";er.d(en,{E:function(){return es}});var ei=er(7294),eo=er(6723);function es(ee){let en=(0,ei.useRef)(ee);return(0,eo.e)(()=>{en.current=ee},[ee]),en}},4157:function(ee,en,er){"use strict";er.d(en,{f:function(){return eu}});var ei=er(7294),eo=er(6723);function es(ee){var en;if(ee.type)return ee.type;let er=null!=(en=ee.as)?en:"button";if("string"==typeof er&&"button"===er.toLowerCase())return"button"}function eu(ee,en){let[er,eu]=(0,ei.useState)(()=>es(ee));return(0,eo.e)(()=>{eu(es(ee))},[ee.type,ee.as]),(0,eo.e)(()=>{er||en.current&&en.current instanceof HTMLButtonElement&&!en.current.hasAttribute("type")&&eu("button")},[er,en]),er}},2180:function(ee,en,er){"use strict";er.d(en,{H:function(){return es}});var ei=er(7294),eo=er(7896);function es(){let[ee,en]=(0,ei.useState)(eo.O.isHandoffComplete);return ee&&!1===eo.O.isHandoffComplete&&en(!1),(0,ei.useEffect)(()=>{!0!==ee&&en(!0)},[ee]),(0,ei.useEffect)(()=>eo.O.handoff(),[]),ee}},3784:function(ee,en,er){"use strict";er.d(en,{T:function(){return eu}});var ei=er(7294),eo=er(3781);let es=Symbol();function eu(...ee){let en=(0,ei.useRef)(ee);(0,ei.useEffect)(()=>{en.current=ee},[ee]);let er=(0,eo.z)(ee=>{for(let er of en.current)null!=er&&("function"==typeof er?er(ee):er.current=ee)});return ee.every(ee=>null==ee||(null==ee?void 0:ee[es]))?void 0:er}},6045:function(ee,en,er){"use strict";er.d(en,{A:function(){return eu},_:function(){return ed}});var ei,eo=er(2351);let es="div";var eu=((ei=eu||{})[ei.None=1]="None",ei[ei.Focusable=2]="Focusable",ei[ei.Hidden=4]="Hidden",ei);function ec(ee,en){let{features:er=1,...ei}=ee,eu={ref:en,"aria-hidden":(2&er)==2||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&er)==4&&(2&er)!=2&&{display:"none"}}};return(0,eo.sY)({ourProps:eu,theirProps:ei,slot:{},defaultTag:es,name:"Hidden"})}let ed=(0,eo.yV)(ec)},4067:function(ee,en,er){"use strict";function ei(...ee){return ee.filter(Boolean).join(" ")}er.d(en,{A:function(){return ei}})},9362:function(ee,en,er){"use strict";er.d(en,{k:function(){return eo}});var ei=er(1021);function eo(){let ee=[],en={addEventListener:(ee,er,ei,eo)=>(ee.addEventListener(er,ei,eo),en.add(()=>ee.removeEventListener(er,ei,eo))),requestAnimationFrame(...ee){let er=requestAnimationFrame(...ee);return en.add(()=>cancelAnimationFrame(er))},nextFrame:(...ee)=>en.requestAnimationFrame(()=>en.requestAnimationFrame(...ee)),setTimeout(...ee){let er=setTimeout(...ee);return en.add(()=>clearTimeout(er))},microTask(...ee){let er={current:!0};return(0,ei.Y)(()=>{er.current&&ee[0]()}),en.add(()=>{er.current=!1})},style(ee,en,er){let ei=ee.style.getPropertyValue(en);return Object.assign(ee.style,{[en]:er}),this.add(()=>{Object.assign(ee.style,{[en]:ei})})},group(ee){let en=eo();return ee(en),this.add(()=>en.dispose())},add:en=>(ee.push(en),()=>{let er=ee.indexOf(en);if(er>=0)for(let en of ee.splice(er,1))en()}),dispose(){for(let en of ee.splice(0))en()}};return en}},7896:function(ee,en,er){"use strict";er.d(en,{O:function(){return ec}});var ei=Object.defineProperty,eo=(ee,en,er)=>en in ee?ei(ee,en,{enumerable:!0,configurable:!0,writable:!0,value:er}):ee[en]=er,es=(ee,en,er)=>(eo(ee,"symbol"!=typeof en?en+"":en,er),er);class eu{constructor(){es(this,"current",this.detect()),es(this,"handoffState","pending"),es(this,"currentId",0)}set(ee){this.current!==ee&&(this.handoffState="pending",this.currentId=0,this.current=ee)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}let ec=new eu},4575:function(ee,en,er){"use strict";er.d(en,{EO:function(){return eT},TO:function(){return em},fE:function(){return ex},jA:function(){return eC},sP:function(){return eb},tJ:function(){return ey},wI:function(){return ew},z2:function(){return eO}});var ei,eo,es,eu,ec,ed=er(9362),ef=er(2984),eh=er(5466);let ep=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(ee=>`${ee}:not([tabindex='-1'])`).join(",");var em=((ei=em||{})[ei.First=1]="First",ei[ei.Previous=2]="Previous",ei[ei.Next=4]="Next",ei[ei.Last=8]="Last",ei[ei.WrapAround=16]="WrapAround",ei[ei.NoScroll=32]="NoScroll",ei),ex=((eo=ex||{})[eo.Error=0]="Error",eo[eo.Overflow=1]="Overflow",eo[eo.Success=2]="Success",eo[eo.Underflow=3]="Underflow",eo),eg=((es=eg||{})[es.Previous=-1]="Previous",es[es.Next=1]="Next",es);function ev(ee=document.body){return null==ee?[]:Array.from(ee.querySelectorAll(ep)).sort((ee,en)=>Math.sign((ee.tabIndex||Number.MAX_SAFE_INTEGER)-(en.tabIndex||Number.MAX_SAFE_INTEGER)))}var ey=((eu=ey||{})[eu.Strict=0]="Strict",eu[eu.Loose=1]="Loose",eu);function eb(ee,en=0){var er;return ee!==(null==(er=(0,eh.r)(ee))?void 0:er.body)&&(0,ef.E)(en,{0:()=>ee.matches(ep),1(){let en=ee;for(;null!==en;){if(en.matches(ep))return!0;en=en.parentElement}return!1}})}function ew(ee){let en=(0,eh.r)(ee);(0,ed.k)().nextFrame(()=>{en&&!eb(en.activeElement,0)&&ek(ee)})}var e_=((ec=e_||{})[ec.Keyboard=0]="Keyboard",ec[ec.Mouse=1]="Mouse",ec);function ek(ee){null==ee||ee.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",ee=>{ee.metaKey||ee.altKey||ee.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",ee=>{1===ee.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===ee.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let ej="textarea,input";function eE(ee){var en,er;return null!=(er=null==(en=null==ee?void 0:ee.matches)?void 0:en.call(ee,ej))&&er}function eO(ee,en=ee=>ee){return ee.slice().sort((ee,er)=>{let ei=en(ee),eo=en(er);if(null===ei||null===eo)return 0;let es=ei.compareDocumentPosition(eo);return es&Node.DOCUMENT_POSITION_FOLLOWING?-1:es&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function eT(ee,en){return eC(ev(),en,{relativeTo:ee})}function eC(ee,en,{sorted:er=!0,relativeTo:ei=null,skipElements:eo=[]}={}){let es=Array.isArray(ee)?ee.length>0?ee[0].ownerDocument:document:ee.ownerDocument,eu=Array.isArray(ee)?er?eO(ee):ee:ev(ee);eo.length>0&&eu.length>1&&(eu=eu.filter(ee=>!eo.includes(ee))),ei=null!=ei?ei:es.activeElement;let ec=(()=>{if(5&en)return 1;if(10&en)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),ed=(()=>{if(1&en)return 0;if(2&en)return Math.max(0,eu.indexOf(ei))-1;if(4&en)return Math.max(0,eu.indexOf(ei))+1;if(8&en)return eu.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),ef=32&en?{preventScroll:!0}:{},eh=0,ep=eu.length,em;do{if(eh>=ep||eh+ep<=0)return 0;let ee=ed+eh;if(16&en)ee=(ee+ep)%ep;else{if(ee<0)return 3;if(ee>=ep)return 1}null==(em=eu[ee])||em.focus(ef),eh+=ec}while(em!==es.activeElement);return 6&en&&eE(em)&&em.select(),2}},2984:function(ee,en,er){"use strict";function ei(ee,en,...er){if(ee in en){let ei=en[ee];return"function"==typeof ei?ei(...er):ei}let eo=Error(`Tried to handle "${ee}" but there is no handler defined. Only defined handlers are: ${Object.keys(en).map(ee=>`"${ee}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(eo,ei),eo}er.d(en,{E:function(){return ei}})},1021:function(ee,en,er){"use strict";function ei(ee){"function"==typeof queueMicrotask?queueMicrotask(ee):Promise.resolve().then(ee).catch(ee=>setTimeout(()=>{throw ee}))}er.d(en,{Y:function(){return ei}})},5466:function(ee,en,er){"use strict";er.d(en,{r:function(){return eo}});var ei=er(7896);function eo(ee){return ei.O.isServer?null:ee instanceof Node?ee.ownerDocument:null!=ee&&ee.hasOwnProperty("current")&&ee.current instanceof Node?ee.current.ownerDocument:document}},2351:function(ee,en,er){"use strict";er.d(en,{AN:function(){return ed},l4:function(){return ef},oA:function(){return ev},sY:function(){return eh},yV:function(){return eg}});var ei,eo,es=er(7294),eu=er(4067),ec=er(2984),ed=((ei=ed||{})[ei.None=0]="None",ei[ei.RenderStrategy=1]="RenderStrategy",ei[ei.Static=2]="Static",ei),ef=((eo=ef||{})[eo.Unmount=0]="Unmount",eo[eo.Hidden=1]="Hidden",eo);function eh({ourProps:ee,theirProps:en,slot:er,defaultTag:ei,features:eo,visible:es=!0,name:eu}){let ed=ex(en,ee);if(es)return ep(ed,er,ei,eu);let ef=null!=eo?eo:0;if(2&ef){let{static:ee=!1,...en}=ed;if(ee)return ep(en,er,ei,eu)}if(1&ef){let{unmount:ee=!0,...en}=ed;return(0,ec.E)(ee?0:1,{0:()=>null,1:()=>ep({...en,hidden:!0,style:{display:"none"}},er,ei,eu)})}return ep(ed,er,ei,eu)}function ep(ee,en={},er,ei){let{as:eo=er,children:ec,refName:ed="ref",...ef}=ey(ee,["unmount","static"]),eh=void 0!==ee.ref?{[ed]:ee.ref}:{},ep="function"==typeof ec?ec(en):ec;"className"in ef&&ef.className&&"function"==typeof ef.className&&(ef.className=ef.className(en));let eg={};if(en){let ee=!1,er=[];for(let[ei,eo]of Object.entries(en))"boolean"==typeof eo&&(ee=!0),!0===eo&&er.push(ei);ee&&(eg["data-headlessui-state"]=er.join(" "))}if(eo===es.Fragment&&Object.keys(ev(ef)).length>0){if(!(0,es.isValidElement)(ep)||Array.isArray(ep)&&ep.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${ei} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ef).map(ee=>` - ${ee}`).join(` -`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(ee=>` - ${ee}`).join(` -`)].join(` -`));let ee=ep.props,en="function"==typeof(null==ee?void 0:ee.className)?(...en)=>(0,eu.A)(null==ee?void 0:ee.className(...en),ef.className):(0,eu.A)(null==ee?void 0:ee.className,ef.className),er=en?{className:en}:{};return(0,es.cloneElement)(ep,Object.assign({},ex(ep.props,ev(ey(ef,["ref"]))),eg,eh,em(ep.ref,eh.ref),er))}return(0,es.createElement)(eo,Object.assign({},ey(ef,["ref"]),eo!==es.Fragment&&eh,eo!==es.Fragment&&eg),ep)}function em(...ee){return{ref:ee.every(ee=>null==ee)?void 0:en=>{for(let er of ee)null!=er&&("function"==typeof er?er(en):er.current=en)}}}function ex(...ee){var en;if(0===ee.length)return{};if(1===ee.length)return ee[0];let er={},ei={};for(let eo of ee)for(let ee in eo)ee.startsWith("on")&&"function"==typeof eo[ee]?(null!=(en=ei[ee])||(ei[ee]=[]),ei[ee].push(eo[ee])):er[ee]=eo[ee];if(er.disabled||er["aria-disabled"])return Object.assign(er,Object.fromEntries(Object.keys(ei).map(ee=>[ee,void 0])));for(let ee in ei)Object.assign(er,{[ee](en,...er){for(let eo of ei[ee]){if((en instanceof Event||(null==en?void 0:en.nativeEvent)instanceof Event)&&en.defaultPrevented)return;eo(en,...er)}}});return er}function eg(ee){var en;return Object.assign((0,es.forwardRef)(ee),{displayName:null!=(en=ee.displayName)?en:ee.name})}function ev(ee){let en=Object.assign({},ee);for(let ee in en)void 0===en[ee]&&delete en[ee];return en}function ey(ee,en=[]){let er=Object.assign({},ee);for(let ee of en)ee in er&&delete er[ee];return er}},1151:function(ee,en,er){"use strict";er.d(en,{NF:function(){return es},Zo:function(){return ed},ah:function(){return eu},pC:function(){return eo}});var ei=er(7294);let eo=ei.createContext({});function es(ee){return en;function en(en){let er=eu(en.components);return ei.createElement(ee,{...en,allComponents:er})}}function eu(ee){let en=ei.useContext(eo);return ei.useMemo(()=>"function"==typeof ee?ee(en):{...en,...ee},[en,ee])}let ec={};function ed({components:ee,children:en,disableParentContext:er}){let es;return es=er?"function"==typeof ee?ee({}):ee||ec:eu(ee),ei.createElement(eo.Provider,{value:es},en)}},1404:function(ee,en,er){"use strict";er.d(en,{R:function(){return ec}});var ei={};er.r(ei),er.d(ei,{MDXContext:function(){return eu.pC},MDXProvider:function(){return eu.Zo},useMDXComponents:function(){return eu.ah},withMDXComponents:function(){return eu.NF}});var eo=er(7294),es=er(2746),eu=er(1151);function ec({compiledSource:ee,frontmatter:en,scope:er,components:ec={},lazy:ed}){let[ef,eh]=(0,eo.useState)(!ed||"undefined"==typeof window);(0,eo.useEffect)(()=>{if(ed){let ee=window.requestIdleCallback(()=>{eh(!0)});return()=>window.cancelIdleCallback(ee)}},[]);let ep=(0,eo.useMemo)(()=>{let eo=Object.assign({opts:{...ei,...es.jsxRuntime}},{frontmatter:en},er),eu=Object.keys(eo),ec=Object.values(eo),ed=Reflect.construct(Function,eu.concat(`${ee}`));return ed.apply(ed,ec).default},[er,ee]);if(!ef)return eo.createElement("div",{dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0});let em=eo.createElement(eu.Zo,{components:ec},eo.createElement(ep,null));return ed?eo.createElement("div",null,em):em}"undefined"!=typeof window&&(window.requestIdleCallback=window.requestIdleCallback||function(ee){var en=Date.now();return setTimeout(function(){ee({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-en))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(ee){clearTimeout(ee)})},7222:function(ee,en,er){"use strict";er.d(en,{ZW:function(){return es},eZ:function(){return ec},hV:function(){return ed}});var ei=er(1864),eo=er(3454),es="en-US",eu=eo.cwd();ei.join(eu,"public");var ec=Symbol.for("__nextra_internal__"),ed=new Set(["/404","/500"])}}]); \ No newline at end of file diff --git a/_next/static/chunks/framework-0c7baedefba6b077.js b/_next/static/chunks/framework-0c7baedefba6b077.js new file mode 100644 index 0000000..dd28fb9 --- /dev/null +++ b/_next/static/chunks/framework-0c7baedefba6b077.js @@ -0,0 +1,33 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[774],{4448:function(n,t,a){/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var u,i,o,s,w,x,C=a(7294),_=a(3840);function p(n){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+n,a=1;a