PageSourceSearch

https://blog.ticto.com.br/_next/static/chunks/0tp5y3vure-p5.js?dpl=dpl_HW77CExbage6nxDywgwrGourMP2d

js ticto.com.br collected 2026-09-24 13:05:53 UTC 124,733 bytes, 14 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,273299,e=>{"use strict";var t,r;let n,i,s="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function o(e){return`image-${e.split("/").slice(-1)[0]}`.replace(/\.([a-z]+)$/,"-$1")}let a=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]],u=["clip","crop","fill","fillmax","max","scale","min"],c=["top","bottom","left","right","center","focalpoint","entropy"],l=["format"];function h(e){let{apiHost:t,projectId:r,dataset:n}=e,i={baseUrl:(t||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn.")},s=e.resource??e["~experimental_resource"];if(s?.type==="media-library"){if("string"!=typeof s.id||0===s.id.length)throw Error('Media library clients must include an id in "resource"');return{...i,mediaLibraryId:s.id}}if(s?.type==="canvas"){if("string"!=typeof s.id||0===s.id.length)throw Error('Canvas clients must include an id in "resource"');return{...i,canvasId:s.id}}if(s?.type==="dataset"){if("string"!=typeof s.id||0===s.id.length)throw Error('Dataset clients must include an id in "resource"');let[e,t]=s.id.split(".");if(!e||!t)throw Error('Dataset resource id must be in the format "projectId.dataset", got: '+s.id);return{...i,projectId:e,dataset:t}}return{...i,projectId:r,dataset:n}}function f(e){return e&&"config"in e&&"function"==typeof e.config?h(e.config()):e&&"clientConfig"in e&&"object"==typeof e.clientConfig?h(e.clientConfig):e||{}}class p{options;constructor(e,t){this.options=e?{...e.options||{},...t||{}}:{...t||{}}}withOptions(e){return new p(this,function(e,t){let r=t.baseUrl||e.baseUrl,n={baseUrl:r};for(let e in t)t.hasOwnProperty(e)&&(n[function(e){for(let t of a){let[r,n]=t;if(e===r||e===n)return r}return e}(e)]=t[e]);return{baseUrl:r,...n}}(this.options,e))}image(e){return this.withOptions({source:e})}dataset(e){return this.withOptions({dataset:e})}projectId(e){return this.withOptions({projectId:e})}withClient(e){let t=f(e),r={...this.options};return delete r.baseUrl,delete r.projectId,delete r.dataset,delete r.mediaLibraryId,delete r.canvasId,new p(null,{...t,...r})}bg(e){return this.withOptions({bg:e})}dpr(e){return this.withOptions(e&&1!==e?{dpr:e}:{})}width(e){return this.withOptions({width:e})}height(e){return this.withOptions({height:e})}focalPoint(e,t){return this.withOptions({focalPoint:{x:e,y:t}})}maxWidth(e){return this.withOptions({maxWidth:e})}minWidth(e){return this.withOptions({minWidth:e})}maxHeight(e){return this.withOptions({maxHeight:e})}minHeight(e){return this.withOptions({minHeight:e})}size(e,t){return this.withOptions({width:e,height:t})}blur(e){return this.withOptions({blur:e})}sharpen(e){return this.withOptions({sharpen:e})}rect(e,t,r,n){return this.withOptions({rect:{left:e,top:t,width:r,height:n}})}format(e){return this.withOptions({format:e})}invert(e){return this.withOptions({invert:e})}orientation(e){return this.withOptions({orientation:e})}quality(e){return this.withOptions({quality:e})}forceDownload(e){return this.withOptions({download:e})}flipHorizontal(){return this.withOptions({flipHorizontal:!0})}flipVertical(){return this.withOptions({flipVertical:!0})}ignoreImageParams(){return this.withOptions({ignoreImageParams:!0})}fit(e){if(-1===u.indexOf(e))throw Error(`Invalid fit mode "${e}"`);return this.withOptions({fit:e})}crop(e){if(-1===c.indexOf(e))throw Error(`Invalid crop mode "${e}"`);return this.withOptions({crop:e})}saturation(e){return this.withOptions({saturation:e})}auto(e){if(-1===l.indexOf(e))throw Error(`Invalid auto mode "${e}"`);return this.withOptions({auto:e})}pad(e){return this.withOptions({pad:e})}vanityName(e){return this.withOptions({vanityName:e})}frame(e){if(1!==e)throw Error(`Invalid frame value "${e}"`);return this.withOptions({frame:e})}url(){return function(e){let t={...e||{}}
1,r=t.source;delete t.source;let n=function(e){var t;let r;if(!e)return null;if("string"==typeof e&&(t=e,/^https?:\/\//.test(`${t}`)))r={asset:{_ref:o(e)}};else if("string"==typeof e)r={asset:{_ref:e}};else if(e&&"string"==typeof e._ref)r={asset:e};else if(e&&"string"==typeof e._id)r={asset:{_ref:e._id||""}};else if(e&&e.asset&&"string"==typeof e.asset.url)r={asset:{_ref:o(e.asset.url)}};else{if("object"!=typeof e.asset)return null;r={...e}}return e.crop&&(r.crop=e.crop),e.hotspot&&(r.hotspot=e.hotspot),function(e){if(e.crop&&e.hotspot)return e;let t={...e};return t.crop||(t.crop={left:0,top:0,bottom:0,right:0}),t.hotspot||(t.hotspot={x:.5,y:.5,height:1,width:1}),t}(r)}(r);if(!n){if(r&&"object"==typeof r&&null!==r&&r._upload&&(!r.asset||!r.asset._ref))return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";throw Error(`Unable to resolve image URL from source (${JSON.stringify(r)})`)}let i=function(e){let[,t,r,n]=e.split("-");if(!t||!r||!n)throw Error(`Malformed asset _ref '${e}'. Expected an id like "${s}".`);let[i,o]=r.split("x"),a=+i,u=+o;if(!(isFinite(a)&&isFinite(u)))throw Error(`Malformed asset _ref '${e}'. Expected an id like "${s}".`);return{id:t,width:a,height:u,format:n}}(n.asset._ref||n.asset._id||""),u=Math.round(n.crop.left*i.width),c=Math.round(n.crop.top*i.height),l={left:u,top:c,width:Math.round(i.width-n.crop.right*i.width-u),height:Math.round(i.height-n.crop.bottom*i.height-c)},h=n.hotspot.height*i.height/2,f=n.hotspot.width*i.width/2,p=n.hotspot.x*i.width,d=n.hotspot.y*i.height;return t.rect||t.focalPoint||t.ignoreImageParams||t.crop||(t={...t,...function(e,t){let r,n=t.width,i=t.height;if(!(n&&i))return{width:n,height:i,rect:e.crop};let s=e.crop,o=e.hotspot,a=n/i;if(s.width/s.height>a){let e=Math.round(s.height),t=Math.round(e*a),n=Math.max(0,Math.round(s.top)),i=Math.max(0,Math.round(Math.round((o.right-o.left)/2+o.left)-t/2));i<s.left?i=s.left:i+t>s.left+s.width&&(i=s.left+s.width-t),r={left:i,top:n,width:t,height:e}}else{let e=s.width,t=Math.round(e/a),n=Math.max(0,Math.round(s.left)),i=Math.max(0,Math.round(Math.round((o.bottom-o.top)/2+o.top)-t/2));i<s.top?i=s.top:i+t>s.top+s.height&&(i=s.top+s.height-t),r={left:n,top:i,width:e,height:t}}return{width:n,height:i,rect:r}}({crop:l,hotspot:{left:p-f,top:d-h,right:p+f,bottom:d+h}},t)}),function(e){let t,r=(e.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),n=e.vanityName?`/${e.vanityName}`:"",i=`${e.asset.id}-${e.asset.width}x${e.asset.height}.${e.asset.format}${n}`;t=e.mediaLibraryId?`${r}/media-libraries/${e.mediaLibraryId}/images/${i}`:e.canvasId?`${r}/images/canvases/${e.canvasId}/${i}`:`${r}/images/${e.projectId}/${e.dataset}/${i}`;let s=[];if(e.rect){let{left:t,top:r,width:n,height:i}=e.rect;(0!==t||0!==r||i!==e.asset.height||n!==e.asset.width)&&s.push(`rect=${t},${r},${n},${i}`)}e.bg&&s.push(`bg=${e.bg}`),e.focalPoint&&(s.push(`fp-x=${e.focalPoint.x}`),s.push(`fp-y=${e.focalPoint.y}`));let o=[e.flipHorizontal&&"h",e.flipVertical&&"v"].filter(Boolean).join("");return o&&s.push(`flip=${o}`),a.forEach(t=>{let[r,n]=t;"u">typeof e[r]?s.push(`${n}=${encodeURIComponent(e[r])}`):"u">typeof e[n]&&s.push(`${n}=${encodeURIComponent(e[n])}`)}),0===s.length?t:`${t}?${s.join("&")}`}({...t,asset:i})}(this.options)}toString(){return this.url()}}let d=(t=["The default export of @sanity/image-url has been deprecated. Use the named export `createImageUrlBuilder` instead."],r=(...e)=>{console.warn(t.join(" "),...e)},n=!1,(...e)=>(n||(i=r(...e),n=!0),i));e.s(["createImageUrlBuilder",0,function(e){return new p(null,f(e))},"defineDeprecated",0,function(e){return function(t){return d(),e(t)}}])},467034,(e,t,r)=>{var n={675:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,s=u(e),o=s[0],a=s[1],c=new i((o+a)*3/4-a),l=0,h=a>0?o-4:o;for(r=0;r<h;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,s=[],o=0,a=n-i;o<a;o+=16383)s.push(function(e,t,n){for(var i,s=[],o=t;o<n;o+=3)i=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),s.push(r[i>>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="u">typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 18,973 bytes, line 1
1+/",o=0,a=s.length;o<a;++o)r[o]=s[o],n[s.charCodeAt(o)]=o;function u(e){var t=e.length;if(t%4>0)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[45]=62,n[95]=63},72:function(e,t,r){"use strict";var n=r(675),i=r(783),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)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,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return l(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);var s=0|p(n,i),u=o(s),c=u.write(n,i);return c!==s&&(u=u.slice(0,c)),u}if(ArrayBuffer.isView(e))return h(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($(e,ArrayBuffer)||e&&$(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&($(e,SharedArrayBuffer)||e&&$(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var l=e.valueOf&&e.valueOf();if(null!=l&&l!==e)return a.from(l,t,r);var d=function(e){if(a.isBuffer(e)){var t=0|f(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(d)return d;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return c(e),o(e<0?0:0|f(e))}function h(e){for(var t=e.length<0?0:0|f(e.length),r=o(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,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&&"u">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,r){return u(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(c(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},a.allocUnsafe=function(e){return l(e)},a.allocUnsafeSlow=function(e){return l(e)};function f(e){if(e>=0x7fffffff)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)||$(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 _(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return O(e).length;default:if(i)return n?-1:_(e).length;t=(""+t).toLowerCase(),i=!0}}function d(e,t,r){var i,s,o,a=!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;s<r;++s)i+=q[e[s]];return i}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,s=t,o=r,0===s&&o===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(s,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",s=0;s<n.length;s+=2)i+=String.fromCharCode(n[s]+256*n[s+1]);return i}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){var s;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(s=r*=1)!=s&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return m(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var s,o=1,a=e.length,u=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,u/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(s=r;s<a;s++)if(c(e,s)===c(t,-1===l?0:s-l)){if(-1===l&&(l=s),s-l+1===u)return l*o}else -1!==l&&(s-=s-l),l=-1}else for(r+u>a&&(r=a-u),s=r;s>=0;s--){for(var h=!0,f=0;f<u;f++)if(c(e,s+f)!==c(t,f)){h=!1;break}if(h)return s}return -1}a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if($(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),$(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 r=e.length,n=t.length,i=0,s=Math.min(r,n);i<s;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var s=e[r];if($(s,Uint8Array)&&(s=a.from(s)),!a.isBuffer(s))throw TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):d.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},s&&(a.prototype[s]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if($(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===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,u=Math.min(s,o),c=this.slice(n,i),l=e.slice(t,r),h=0;h<u;++h)if(c[h]!==l[h]){s=c[h],o=l[h];break}return s<o?-1:+(o<s)},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)};function b(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var s,o,a,u,c=e[i],l=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=r)switch(h){case 1:c<128&&(l=c);break;case 2:(192&(s=e[i+1]))==128&&(u=(31&c)<<6|63&s)>127&&(l=u);break;case 3:s=e[i+1],o=e[i+2],(192&s)==128&&(192&o)==128&&(u=(15&c)<<12|(63&s)<<6|63&o)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:s=e[i+1],o=e[i+2],a=e[i+3],(192&s)==128&&(192&o)==128&&(192&a)==128&&(u=(15&c)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}var f=n,p=f.length;if(p<=4096)return String.fromCharCode.apply(String,f);for(var d="",y=0;y<p;)d+=String.fromCharCode.apply(String,f.slice(y,y+=4096));return d}function v(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,s){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function E(e,t,r,n,i,s){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function C(e,t,r,n,s){return t*=1,r>>>=0,s||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function I(e,t,r,n,s){return t*=1,r>>>=0,s||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=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,u,c,l,h,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!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<n;++o){var a,u=parseInt(t.substr(2*o,2),16);if((a=u)!=a)break;e[r+o]=u}return o}(this,e,t,r);case"utf8":case"utf-8":return i=t,s=r,x(_(e,this.length-i),this,i,s);case"ascii":return o=t,a=r,x(A(e),this,o,a);case"latin1":case"binary":return function(e,t,r,n){return x(A(t),e,r,n)}(this,e,t,r);case"base64":return u=t,c=r,x(O(e),this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=t,h=r,x(function(e,t){for(var r,n,i=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,i.push(r%256),i.push(n);return i}(e,this.length-l),this,l,h);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.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<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e],i=1,s=0;++s<t&&(i*=256);)n+=this[e+s]*i;return n},a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e],i=1,s=0;++s<t&&(i*=256);)n+=this[e+s]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||v(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},a.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||v(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||v(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||v(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||v(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||v(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var s=1,o=0;for(this[t]=255&e;++o<r&&(s*=256);)this[t+o]=e/s&255;return t+r},a.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(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},a.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,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,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,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,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var s=0,o=1,a=0;for(this[t]=255&e;++s<r&&(o*=256);)e<0&&0===a&&0!==this[t+s-1]&&(a=1),this[t+s]=(e/o|0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(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},a.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),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,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+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,r){return C(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return I(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return I(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.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<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=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<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var s=i-1;s>=0;--s)e[s+t]=this[s+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},a.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&&!a.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<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var o=a.isBuffer(e)?e:a.from(e,n),u=o.length;
1if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%u]}return this};var R=/[^+/0-9A-Za-z-_]/g;function _(e,t){t=t||1/0;for(var r,n=e.length,i=null,s=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&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 A(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function O(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function x(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function $(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var q=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){t.read=function(e,t,r,n,i){var s,o,a=8*i-n-1,u=(1<<a)-1,c=u>>1,l=-7,h=r?i-1:0,f=r?-1:1,p=e[t+h];for(h+=f,s=p&(1<<-l)-1,p>>=-l,l+=a;l>0;s=256*s+e[t+h],h+=f,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=n;l>0;o=256*o+e[t+h],h+=f,l-=8);if(0===s)s=1-c;else{if(s===u)return o?NaN:1/0*(p?-1:1);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,u,c=8*s-i-1,l=(1<<c)-1,h=l>>1,f=5960464477539062e-23*(23===i),p=n?0:s-1,d=n?1:-1,y=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+h>=1?t+=f/u:t+=f*Math.pow(2,1-h),t*u>=2&&(o++,u/=2),o+h>
1=l?(a=0,o=l):o+h>=1?(a=(t*u-1)*Math.pow(2,i),o+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=255&a,p+=d,a/=256,i-=8);for(o=o<<i|a,c+=i;c>0;e[r+p]=255&o,p+=d,o/=256,c-=8);e[r+p-d]|=128*y}}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},o=!0;try{n[e](r,r.exports,s),o=!1}finally{o&&delete i[e]}return r.exports}s.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=s(72)},271011,708228,e=>{"use strict";let t=!(typeof navigator>"u")&&"ReactNative"===navigator.product,r={timeout:t?6e4:12e4},n=function(e){let n={...r,..."string"==typeof e?{url:e}:e};if(n.timeout=function e(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;let n=Number(t);return isNaN(n)?e(r.timeout):{connect:n,socket:n}}(n.timeout),n.query){let{url:e,searchParams:r}=function(e){let r=e.indexOf("?");if(-1===r)return{url:e,searchParams:new URLSearchParams};let n=e.slice(0,r),s=e.slice(r+1);if(!t)return{url:n,searchParams:new URLSearchParams(s)};if("function"!=typeof decodeURIComponent)throw Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");let o=new URLSearchParams;for(let e of s.split("&")){let[t,r]=e.split("=");t&&o.append(i(t),i(r||""))}return{url:n,searchParams:o}}(n.url);for(let[t,i]of Object.entries(n.query)){if(void 0!==i)if(Array.isArray(i))for(let e of i)r.append(t,e);else r.append(t,i);let s=r.toString();s&&(n.url=`${e}?${s}`)}}return n.method=n.body&&!n.method?"POST":(n.method||"GET").toUpperCase(),n};function i(e){return decodeURIComponent(e.replace(/\+/g," "))}let s=/^https?:\/\//i,o=function(e){if(!s.test(e.url))throw Error(`"${e.url}" is not a valid URL`)},a=["request","response","progress","error","abort"],u=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];var c,l,h,f=(c=function(){if(h)return l;h=1;var e=function(e){return e.replace(/^\s+|\s+$/g,"")};return l=function(t){if(!t)return{};for(var r=Object.create(null),n=e(t).split("\n"),i=0;i<n.length;i++){var s,o=n[i],a=o.indexOf(":"),u=e(o.slice(0,a)).toLowerCase(),c=e(o.slice(a+1));typeof r[u]>"u"?r[u]=c:(s=r[u],"[object Array]"===Object.prototype.toString.call(s))?r[u].push(c):r[u]=[r[u],c]}return r}}())&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c;class p{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText="";responseType="";status;statusText;withCredentials;#e;#t;#r;#n={};#i;#s={};#o;open(e,t,r){this.#e=e,this.#t=t,this.#r="",this.readyState=1,this.onreadystatechange?.(),this.#i=void 0}abort(){this.#i&&this.#i.abort()}getAllResponseHeaders(){return this.#r}setRequestHeader(e,t){this.#n[e]=t}setInit(e,t=!0){this.#s=e,this.#o=t}send(e){let t="arraybuffer"!==this.responseType,r={...this.#s,method:this.#e,headers:this.#n,body:e};"function"==typeof AbortController&&this.#o&&(this.#i=new AbortController,"u">typeof EventTarget&&this.#i.signal instanceof EventTarget&&(r.signal=this.#i.signal)),"u">typeof document&&(r.credentials=this.withCredentials?"include":"omit"),fetch(this.#t,r).then(e=>(e.headers.forEach((e,t)=>{this.#r+=`${t}: ${e}\r
2`}),this.status=e.status,this.statusText=e.statusText,this.readyState=3,this.onreadystatechange?.(),t?e.text():e.arrayBuffer())).then(e=>{"string"==typeof e?this.responseText=e:this.response=e,this.readyState=4,this.onreadystatechange?.()}).catch(e=>{"AbortError"!==e.name?this.onerror?.(e):this.onabort?.()})}}let d="function"==typeof XMLHttpRequest?"xhr":"fetch",y="xhr"===d?XMLHttpRequest:p,g=(e,t)=>{let r=e.options,n=e.applyMiddleware("finalizeOptions",r),i={},s=e.applyMiddleware("interceptRequest",void 0,{adapter:d,context:e});if(s){let e=setTimeout(t,0,null,s);return{abort:()=>clearTimeout(e)}}let o=new y;o instanceof p&&"object"==typeof n.fetch&&o.setInit(n.fetch,n.useAbortSignal??!0);let a=n.headers,u=n.timeout,c=!1,l=!1,h=!1;if(o.onerror=e=>{b(o instanceof p?e instanceof Error?e:Error(`Request error while attempting to reach ${n.url}`,{cause:e}):Error(`Request error while attempting to reach is ${n.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},o.ontimeout=e=>{b(Error(`Request timeout while attempting to reach ${n.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},o.onabort=()=>{m(!0),c=!0},o.onreadystatechange=function(){u&&(m(),i.socket=setTimeout(()=>g("ESOCKETTIMEDOUT"),u.socket)),!c&&o&&4===o.readyState&&0!==o.status&&function(){if(!(c||l||h)){if(0===o.status)return b(Error("Unknown XHR error"));m(),l=!0,t(null,{body:o.response||(""===o.responseType||"text"===o.responseType?o.responseText:""),url:n.url,method:n.method,headers:f(o.getAllResponseHeaders()),statusCode:o.status,statusMessage:o.statusText})}}()},o.open(n.method,n.url,!0),o.withCredentials=!!n.withCredentials,a&&o.setRequestHeader)for(let e in a)a.hasOwnProperty(e)&&o.setRequestHeader(e,a[e]);return n.rawBody&&(o.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:n,adapter:d,request:o,context:e}),o.send(n.body||null),u&&(i.connect=setTimeout(()=>g("ETIMEDOUT"),u.connect)),{abort:function(){c=!0,o&&o.abort()}};function g(t){h=!0,o.abort();let r=Error("ESOCKETTIMEDOUT"===t?`Socket timed out on request to ${n.url}`:`Connection timed out on request to ${n.url}`);r.code=t,e.channels.error.publish(r)}function m(e){(e||c||o&&o.readyState>=2&&i.connect)&&clearTimeout(i.connect),i.socket&&clearTimeout(i.socket)}function b(e){if(l)return;m(!0),l=!0,o=null;let r=e||Error(`Network error while attempting to reach ${n.url}`);r.isNetworkError=!0,r.request=n,t(r)}};e.s(["adapter",0,d,"environment",0,"browser","getIt",0,(e=[],t=g)=>(function e(t,r){let i=[],s=u.reduce((e,t)=>
2(e[t]=e[t]||[],e),{processOptions:[n],validateOptions:[o]});function c(e){let t,n="object"==typeof e&&e.callSiteStack?e.callSiteStack:void 0,i=n?void 0:Error(),o=a.reduce((e,t)=>{let r,n;return e[t]=(r=Object.create(null),n=0,{publish:function(e){for(let t in r)r[t](e)},subscribe:function(e){let t=n++;return r[t]=e,function(){delete r[t]}}}),e},{}),u=function(e,t,...r){let n="onError"===e,i=t;for(let t=0;t<s[e].length&&(i=(0,s[e][t])(i,...r),!n||i);t++);return i},c=u("processOptions",e);u("validateOptions",c);let l={options:c,channels:o,applyMiddleware:u},h=o.request.subscribe(e=>{t=r(e,(t,r)=>((e,t,r)=>{let s=e,a=t;if(!s)try{a=u("onResponse",t,r)}catch(e){a=null,s=e}if(s=s&&u("onError",s,r)){if(s instanceof Error){let e=n?.stack||i?.stack;if("string"==typeof e){let t=e.split("\n").slice(n?1:2);t.length>0&&(s.stack+="\n"+t.join("\n"))}}o.error.publish(s)}else a&&o.response.publish(a)})(t,r,e))});o.abort.subscribe(()=>{h(),t&&t.abort()});let f=u("onReturn",o,l);return f===o&&o.request.publish(l),f}return c.use=function(e){if(!e)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof e)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.onReturn&&s.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return u.forEach(t=>{e[t]&&s[t].push(e[t])}),i.push(e),c},c.clone=()=>e(i,r),t.forEach(c.use),c})(e,t)],271011);var m,b,v,w,E,C=e.i(247167),I=e.i(467034),R={exports:{}};E||(E=1,function(e,t){let r;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch{}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!e&&"u">typeof C.default&&"env"in C.default&&(e=C.default.env.DEBUG),e},t.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch{}}(),r=!1,t.destroy=()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=(w?v:(w=1,v=function(e){function t(e){let n,i,s,o=null;function a(...e){if(!a.enabled)return;let r=Number(new Date);a.diff=r-(n||r),a.prev=n,a.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";i++;let s=t.formatters[n];if("function"==typeof s){let t=e[i];r=s.call(a,t),e.splice(i,1),i--}return r}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set
2:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,r){let n=t(this.namespace+(typeof r>"u"?":":r)+e);return n.log=this.log,n}function n(e,t){let r=0,n=0,i=-1,s=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,s=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++s}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(n(e,r))return!1;for(let r of t.names)if(n(e,r))return!0;return!1},t.humanize=function(){if(b)return m;b=1;function e(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}return m=function(t,r){r=r||{};var n,i,s=typeof t;if("string"===s&&t.length>0){var o=t;if(!((o=String(o)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(a){var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"weeks":case"week":case"w":return 6048e5*u;case"days":case"day":case"d":return 864e5*u;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*u;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*u;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u}}}return}if("number"===s&&isFinite(t))return r.long?(i=Math.abs(t))>=864e5?e(t,i,864e5,"day"):i>=36e5?e(t,i,36e5,"hour"):i>=6e4?e(t,i,6e4,"minute"):i>=1e3?e(t,i,1e3,"second"):t+" ms":(n=Math.abs(t))>=864e5?Math.round(t/864e5)+"d":n>=36e5?Math.round(t/36e5)+"h":n>=6e4?Math.round(t/6e4)+"m":n>=1e3?Math.round(t/1e3)+"s":t+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}))(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(R,R.exports)),R.exports,Object.prototype.hasOwnProperty;let _=typeof I.Buffer>"u"?()=>!1:e=>I.Buffer.isBuffer(e);function A(e){return"[object Object]"===Object.prototype.toString.call(e)}let O=["boolean","string","number"];var x="u">typeof globalThis?globalThis:"u">typeof window?window:e.g;let $=(e={})=>{let t=e.implementation||Promise;if(!t)throw Error("`Promise` is not available in global scope, and no implementation was passed");return{onReturn:(r,n)=>new t((t,i)=>{let s=n.options.cancelToken;s&&s.promise.then(e=>{r.abort.publish(e),i(e)}),r.error.subscribe(i),r.response.subscribe(r=>{t(e.onlyBody?r.body:r)}),setTimeout(()=>{try{r.request.publish(n)}catch(e){i(e)}},0)})}};class q{__CANCEL__=!0;message;constructor(e){this.message=e}toString(){return"Cancel"+(this.message?`: ${this.message}`:"")}}class S{promise;reason;constructor(e){if("function"!=typeof e)throw TypeError("executor must be a function.");let t=null;this.promise=new Promise(e=>{t=e}),e(e=>{this.reason||(this.reason=new q(e),t(this.reason))})}static source=()=>{let e;return{token:new S(t=>{e=t}),cancel:e}}}$.Cancel=q,$.CancelToken=S,$.isCancel=e=>!(!e||!e?.__CANCEL__);var T=(e,t,r)=>("GET"===r.method||"HEAD"===r.method)&&(e.isNetworkError||!1);function F(e){return 100*Math.pow(2,e)+100*Math.random()}let j=(e={})=>{var t;let r,n,i;return r=(t={shouldRetry:T,...e}).maxRetries||5,n=t.retryDelay||F,i=t.shouldRetry,{onError:(e,t)=>
2{var s;let o=t.options,a=o.maxRetries||r,u=o.retryDelay||n,c=o.shouldRetry||i,l=o.attemptNumber||0;if(null!==(s=o.body)&&"object"==typeof s&&"function"==typeof s.pipe||!c(e,l,o)||l>=a)return e;let h=Object.assign({},t,{options:Object.assign({},o,{attemptNumber:l+1})});return setTimeout(()=>t.channels.request.publish(h),u(l)),null}}};j.shouldRetry=T,e.s(["jsonRequest",0,function(){return{processOptions:e=>{let t=e.body;return!t||"function"==typeof t.pipe||_(t)||-1===O.indexOf(typeof t)&&!Array.isArray(t)&&!function(e){if(!1===A(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!1!==A(r)&&!1!==r.hasOwnProperty("isPrototypeOf")}(t)?e:Object.assign({},e,{body:JSON.stringify(e.body),headers:Object.assign({},e.headers,{"Content-Type":"application/json"})})}}},"jsonResponse",0,function(e){return{onResponse:t=>{let r=t.headers["content-type"]||"",n=e&&e.force||-1!==r.indexOf("application/json");return t.body&&r&&n?Object.assign({},t,{body:function(e){try{return JSON.parse(e)}catch(e){throw e.message=`Failed to parsed response body as JSON: ${e.message}`,e}}(t.body)}):t},processOptions:e=>Object.assign({},e,{headers:Object.assign({Accept:"application/json"},e.headers)})}},"observable",0,function(e={}){let t=e.implementation||x.Observable;if(!t)throw Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(e,r)=>new t(t=>(e.error.subscribe(e=>t.error(e)),e.progress.subscribe(e=>t.next(Object.assign({type:"progress"},e))),e.response.subscribe(e=>{t.next(Object.assign({type:"response"},e)),t.complete()}),e.request.publish(r),()=>e.abort.publish()))}},"progress",0,function(){return{onRequest:e=>{if("xhr"!==e.adapter)return;let t=e.request,r=e.context;function n(e){return t=>{let n=t.lengthComputable?t.loaded/t.total*100:-1;r.channels.progress.publish({stage:e,percent:n,total:t.total,loaded:t.loaded,lengthComputable:t.lengthComputable})}}"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=n("upload")),"onprogress"in t&&(t.onprogress=n("download"))}}},"retry",0,j],708228)},394426,603752,842093,586903,909116,505698,114940,140260,240126,33981,979165,282541,e=>{"use strict";var t=e.i(290571);function r(e){return"function"==typeof e}function n(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}e.s(["isFunction",0,r],603752),e.s(["createErrorClass",0,n],842093);var i=n(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}});function s(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}e.s(["arrRemove",0,s],586903);var o=function(){var e;function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,n,s,o,a,u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var l=(0,t.__values)(u),h=l.next();!h.done;h=l.next())h.value.remove(this)}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}else u.remove(this);var f=this.initialTeardown;if(r(f))try{f()}catch(e){a=e instanceof i?e.errors:[e]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var d=(0,t.__values)(p),y=d.next();!y.done;y=d.next()){var g=y.value;try{c(g)}catch(e){a=null!=a?a:[],e instanceof i?a=(0,t.__spreadArray)((0,t.__spreadArray)([],(0,t.__read)(a)),(0,t.__read)(e.errors)):a.push(e)}}}catch(e){s={error:e}}finally{try{y&&!y.done&&(o=d.return)&&o.call(d)}finally{if(s)throw s.error}}}if(a)throw new i(a)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)c(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&s(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&s(t,e),e instanceof n&&e._removeParent(this)},(e=new n).closed=!0,n.EMPTY=e,n}(),a=o.EMPTY;function u(e){return e instanceof o||e&&"closed"in e&&r(e.remove)&&r(e.add)&&r(e.unsubscribe)}function c(e){r(e)?e():e.unsubscribe()}e.s(["EMPTY_SUBSCRIPTION",0,a,"Subscription",0,o,"isSubscription",0,u],909116);var l=void 0,h={setTimeout:function(e,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var s=h.delegate;return(null==s?void 0:s.setTimeout)?s.setTimeout.apply(s,(0,t.__spreadArray)([e,r],(0,t.__read)(n))):setTimeout.apply(void 0,(0,t.__spreadArray)([e,r],(0,t.__read)(n)))},clearTimeout:function(e){var t=h.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function f(e){h.setTimeout(function(){!1;throw e})}function p(){}e.s(["reportUnhandledError",0,f],505698),e.s(["noop",0,p],114940);var d=y("C",void 0,void 0);function y(e,t,r){return{kind:e,value:t,error:r}}var g=null;function m(e){var t,r,n,i;1;e()}function b(e){}e.s(["captureError",0,b,"errorContext",0,m],140260);var v=function(e){function r(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,u(t)&&t.add(r)):r.destination=A,r}return(0,t.__extends)(r,e),r.create=function(e,t,r){return new I(e,t,r)},r.prototype.next=function(e){this.isStopped?_(y("N",e,void 0),this):this._next(e)},r.prototype.error=function(e){this.isStopped?_(y("E",void 0,e),this):(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped?_(d,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(o),w=Function.prototype.bind;function E(e,t){return w.call(e,t)}var C=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){R(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){R(e)}else R(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){R(e)}},e}(),I=function(e){function n(t,n,i){var s,o,a=e.call(this)||this;return r(t)||!t?s={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=i?i:void 0}:s=t,a.destination=new C(s),a}return(0,t.__extends)(n,e),n}(v);function R(e){f(e)}function _(e,t){}var A={closed:!0,next:p,error:function(e){throw e},complete:p};e.s(["SafeSubscriber",0,I,"Subscriber",0,v],240126);var O="function"==typeof Symbol&&Symbol.observable||"@@observable";function x(e){return e}function $(e){return 0===e.length?x:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}e.s(["observable",0,O],33981),e.s(["identity",0,x],979165),e.s(["pipe",0,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return $(e)},"pipeFromArray",0,$],282541);var q=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,n){var i=this,s=!function(e){return e&&e instanceof v||e&&r(e.next)&&r(e.error)&&r(e.complete)&&u(e)}(e)?new I(e,t,n):e;return m(function(){var e=i.operator,t=i.source;s.add(e?e.call(s,t):t?i._subscribe(s):i._trySubscribe(s))}),s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=S(t))(function(t,n){var i=new I({next:function(t){try{e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[O]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return $(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=S(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function S(e){var t;return null!=(t=null!=e?e:l)?t:Promise}e.s(["Observable",0,q],394426)},220324,987675,349449,717718,238331,254824,177650,23515,311902,e=>{"use strict";var t=e.i(290571),r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};e.s(["isArrayLike",0,r],987675);var n=e.i(603752);function i(e){return(0,n.isFunction)(null==e?void 0:e.then)}e.s(["isPromise",0,i],349449);var s=e.i(394426),o=e.i(33981);function a(e){return(0,n.isFunction)(e[o.observable])}function u(e){return Symbol.asyncIterator&&(0,n.isFunction)(null==e?void 0:e[Symbol.asyncIterator])}function c(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invali
2d object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}e.s(["isInteropObservable",0,a],717718),e.s(["isAsyncIterable",0,u],238331),e.s(["createInvalidObservableTypeError",0,c],254824);var l="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function h(e){return(0,n.isFunction)(null==e?void 0:e[l])}function f(e){return(0,t.__asyncGenerator)(this,arguments,function(){var r,n,i;return(0,t.__generator)(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,(0,t.__await)(r.read())];case 3:if(i=(n=s.sent()).value,!n.done)return[3,5];return[4,(0,t.__await)(void 0)];case 4:return[2,s.sent()];case 5:return[4,(0,t.__await)(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function p(e){return(0,n.isFunction)(null==e?void 0:e.getReader)}e.s(["iterator",0,l],177650),e.s(["isIterable",0,h],23515),e.s(["isReadableStreamLike",0,p,"readableStreamLikeToAsyncGenerator",0,f],311902);var d=e.i(505698);function y(e){return new s.Observable(function(r){(function(e,r){var n,i,s,o;return(0,t.__awaiter)(this,void 0,void 0,function(){var a;return(0,t.__generator)(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),n=(0,t.__asyncValues)(e),u.label=1;case 1:return[4,n.next()];case 2:if((i=u.sent()).done)return[3,4];if(a=i.value,r.next(a),r.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s={error:u.sent()},[3,11];
2case 6:if(u.trys.push([6,,9,10]),!(i&&!i.done&&(o=n.return)))return[3,8];return[4,o.call(n)];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return r.complete(),[2]}})})})(e,r).catch(function(e){return r.error(e)})})}e.s(["innerFrom",0,function(e){if(e instanceof s.Observable)return e;if(null!=e){var l,g,m,b;if(a(e)){return l=e,new s.Observable(function(e){var t=l[o.observable]();if((0,n.isFunction)(t.subscribe))return t.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(r(e)){return g=e,new s.Observable(function(e){for(var t=0;t<g.length&&!e.closed;t++)e.next(g[t]);e.complete()})}if(i(e)){return m=e,new s.Observable(function(e){m.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,d.reportUnhandledError)})}if(u(e))return y(e);if(h(e)){return b=e,new s.Observable(function(e){var r,n;try{for(var i=(0,t.__values)(b),s=i.next();!s.done;s=i.next()){var o=s.value;if(e.next(o),e.closed)return}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}e.complete()})}if(p(e))return y(f(e))}throw c(e)}],220324)},172441,e=>{"use strict";var t=e.i(394426),r=e.i(220324);e.s(["defer",0,function(e){return new t.Observable(function(t){(0,r.innerFrom)(e()).subscribe(t)})}])},245912,e=>{"use strict";var t=e.i(394426),r=e.i(603752);e.s(["isObservable",0,function(e){return!!e&&(e instanceof t.Observable||(0,r.isFunction)(e.lift)&&(0,r.isFunction)(e.subscribe))}])},673649,871041,e=>{"use strict";var t=e.i(603752);function r(e){return e&&(0,t.isFunction)(e.schedule)}function n(e){return e[e.length-1]}e.s(["isScheduler",0,r],871041),e.s(["popNumber",0,function(e,t){return"number"==typeof n(e)?e.pop():t},"popResultSelector",0,function(e){return(0,t.isFunction)(n(e))?e.pop():void 0},"popScheduler",0,function(e){return r(n(e))?e.pop():void 0}],673649)},245281,175436,902965,627608,2223,330823,94059,658474,484973,e=>{"use strict";var t=e.i(673649),r=e.i(220324);function n(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var s=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(s),!i)return s}e.s(["executeSchedule",0,n],175436);var i=e.i(603752);function s(e){return(0,i.isFunction)(null==e?void 0:e.lift)}function o(e){return function(t){if(s(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}e.s(["hasLift",0,s,"operate",0,o],902965);var a=e.i(290571);function u(e,t,r,n,i){return new c(e,t,r,n,i)}var c=function(e){function t(t,r,n,i,s,o){var a=e.call(this,t)||this;return a.onFinalize=s,a.shouldUnsubscribe=o,a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return(0,a.__extends)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},t}(e.i(240126).Subscriber);function l(e,t){return void 0===t&&(t=0),o(function(r,i){r.subscribe(u(i,function(r){return n(i,e,function(){return i.next(r)},t)},function(){return n(i,e,function(){return i.complete()},t)},function(r){return n(i,e,function(){return i.error(r)},t)}))})}function h(e,t){return void 0===t&&(t=0),o(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}e.s(["OperatorSubscriber",0,c,"createOperatorSubscriber",0,u],627608);var f=e.i(394426),p=e.i(177650);function d(e,t){if(!e)throw Error("Iterable cannot be null");return new f.Observable(function(r){n(r,t,function(){var i=e[Symbol.asyncIterator]();n(r,t,function(){i.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}var y=e.i(717718),g=e.i(349449),m=e.i(987675),b=e.i(23515),v=e.i(238331),w=e.i(254824),E=e.i(311902);function C(e,t){if(null!=e){if((0,y.isInteropObservable)(e))return(0,r.innerFrom)(e).pipe(h(t),l(t));if((0,m.isArrayLike)(e))return new f.Observable(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[
2n++]),r.closed||this.schedule())})});if((0,g.isPromise)(e))return(0,r.innerFrom)(e).pipe(h(t),l(t));if((0,v.isAsyncIterable)(e))return d(e,t);if((0,b.isIterable)(e))return new f.Observable(function(r){var s;return n(r,t,function(){s=e[p.iterator](),n(r,t,function(){var e,t,n;try{t=(e=s.next()).value,n=e.done}catch(e){r.error(e);return}n?r.complete():r.next(t)},0,!0)}),function(){return(0,i.isFunction)(null==s?void 0:s.return)&&s.return()}});if((0,E.isReadableStreamLike)(e))return d((0,E.readableStreamLikeToAsyncGenerator)(e),t)}throw(0,w.createInvalidObservableTypeError)(e)}function I(e,t){return t?C(e,t):(0,r.innerFrom)(e)}function R(e,t){return o(function(r,n){var i=0;r.subscribe(u(n,function(r){n.next(e.call(t,r,i++))}))})}function _(e,t,i,s,o,a,c,l){var h=[],f=0,p=0,d=!1,y=function(){!d||h.length||f||t.complete()},g=function(e){return f<s?m(e):h.push(e)},m=function(e){a&&t.next(e),f++;var l=!1;(0,r.innerFrom)(i(e,p++)).subscribe(u(t,function(e){null==o||o(e),a?g(e):t.next(e)},function(){l=!0},void 0,function(){if(l)try{for(f--;h.length&&f<s;)!function(){var e=h.shift();c?n(t,c,function(){return m(e)}):m(e)}();y()}catch(e){t.error(e)}}))};return e.subscribe(u(t,g,function(){d=!0,y()})),function(){null==l||l()}}e.s(["scheduled",0,C],2223),e.s(["from",0,I],330823),e.s(["of",0,function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=(0,t.popScheduler)(e);return I(e,n)}],245281),e.s(["map",0,R],94059),e.s(["mergeInternals",0,_],658474),e.s(["mergeMap",0,function e(t,n,s){return(void 0===s&&(s=1/0),(0,i.isFunction)(n))?e(function(e,i){return R(function(t,r){return n(e,t,i,r)})((0,r.innerFrom)(t(e,i)))},s):("number"==typeof n&&(s=n),o(function(e,r){return _(e,r,t,s)}))}],484973)},234915,e=>{"use strict";var t=(0,e.i(842093).createErrorClass)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});e.s(["EmptyError",0,t])},305753,e=>{"use strict";var t=e.i(234915);e.s(["lastValueFrom",0,function(e,r){var n="object"==typeof r;return new Promise(function(i,s){var o,a=!1;e.subscribe({next:function(e){o=e,a=!0},error:s,complete:function(){a?i(o):n?i(r.defaultValue):s(new t.EmptyError)}})})}])},408659,e=>{"use strict";var t=e.i(290571),r=e.i(394426),n=e.i(909116),i=(0,e.i(842093).createErrorClass)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),s=e.i(586903),o=e.i(140260),a=function(e){function a(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,t.__extends)(a,e),a.prototype.lift=function(e){var t=new u(this,this);return t.operator=e,t},a.prototype._throwIfClosed=function(){if(this.closed)throw new i},a.prototype.next=function(e){var r=this;(0,o.errorContext)(function(){var n,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=(0,t.__values)(r.currentObservers),o=s.next();!o.done;o=s.next())o.value.next(e)}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}})},a.prototype.error=function(e){var t=this;(0,o.errorContext)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},a.prototype.complete=function(){var e=this;(0,o.errorContext)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},a.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(a.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0},enumerable:!1,configurable:!0}),a.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},a.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},a.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,i=this.isStopped,o=this.observers;return r||i?n.EMPTY_SUBSCRIPTION:(this.currentObservers=null,o.push(e),new n.Subscription(function(){t.currentObservers=null,(0,s.arrRemove)(o,e)}))},a.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},a.prototype.asObservable=function(){var e=new r.Observable;return e.source=this,e},a.create=function(e,t){return new u(e,t)},a}(r.Observable),u=function(e){function r(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,t.__extends)(r,e),r.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},r.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},r.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},r.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:n.EMPTY_SUBSCRIPTION},r}(a);e.s(["Subject",0,a],408659)},740144,3670,e=>{"use strict";var t=e.i(290571),r=e.i(408659),n={now:function(){return(n.delegate||Date).now()},delegate:void 0};e.s(["dateTimestampProvider",0,n],3670);var i=function(e){function r(t,r,i){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===i&&(i=n);var s=e.call(this)||this;return s._bufferSize=t,s._windowTime=r,s._timestampProvider=i,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=r===1/0,s._bufferSize=Math.max(1,t),s._windowTime=Math.max(1,r),s}return(0,t.__extends)(r,e),r.prototype.next=function(t){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,s=this._timestampProvider,o=this._windowTime;!r&&(n.push(t),i||n.push(s.now()+o)),this._trimBuffer(),e.prototype.next.call(this,t)},r.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},r.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var s=t.now(),o=0,a=1;a<r.length&&r[a]<=s;a+=2)o=a;o&&r.splice(0,o+1)}},r}(r.Subject);e.s(["ReplaySubject",0,i],740144)},277497,e=>{"use strict";var t=e.i(290571),r=e.i(220324),n=e.i(408659),i=e.i(240126),s=e.i(902965);function o(e,n){for(var s=[],o=2;o<arguments.length;o++)s[o-2]=arguments[o];if(!0===n)return void e();if(!1!==n){var a=new i.SafeSubscriber({next:function(){a.unsubscribe(),e()}});return(0,r.innerFrom)(n.apply(void 0,(0,t.__spreadArray)([],(0,t.__read)(s)))).subscribe(a)}}e.s(["share",0,function(e){void 0===e&&(e={});var t=e.connector,a=void 0===t?function(){return new n.Subject}:t,u=e.resetOnError,c=void 0===u||u,l=e.resetOnComplete,h=void 0===l||l,f=e.resetOnRefCountZero,p=void 0===f||f;return function(e){var t,n,u,l=0,f=!1,d=!1,y=function(){null==n||n.unsubscribe(),n=void 0},g=function(){y(),t=u=void 0,f=d=!1},m=function(){var e=t;g(),null==e||e.unsubscribe()};return(0,s.operate)(function(e,s){l++,d||f||y();var b=u=null!=u?u:a();s.add(function(){0!=--l||d||f||(n=o(m,p))}),b.subscribe(s),!t&&l>0&&(t=new i.SafeSubscriber({next:function(e){return b.next(e)},error:function(e){d=!0,y(),n=o(g,c,e),b.error(e)},complete:function(){f=!0,y(),n=o(g,h),b.complete()}}),(0,r.innerFrom)(e).subscribe(t))})(e)}}])},827341,e=>{"use strict";var t=e.i(740144),r=e.i(277497);e.s(["shareReplay",0,function(e,n,i){var s,o,a,u,c=!1;return e&&"object"==typeof e?(u=void 0===(s=e.bufferSize)?1/0:s,n=void 0===(o=e.windowTime)?1/0:o,c=void 0!==(a=e.refCount)&&a,i=e.sc
2heduler):u=null!=e?e:1/0,(0,r.share)({connector:function(){return new t.ReplaySubject(u,n,i)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}])},992481,e=>{"use strict";var t=e.i(220324),r=e.i(627608),n=e.i(902965);e.s(["catchError",0,function e(i){return(0,n.operate)(function(n,s){var o,a=null,u=!1;a=n.subscribe((0,r.createOperatorSubscriber)(s,void 0,void 0,function(r){o=(0,t.innerFrom)(i(r,e(i)(n))),a?(a.unsubscribe(),a=null,o.subscribe(s)):u=!0})),u&&(a.unsubscribe(),a=null,o.subscribe(s))})}])},602400,844032,761101,e=>{"use strict";var t=e.i(484973),r=e.i(979165);function n(e){return void 0===e&&(e=1/0),(0,t.mergeMap)(r.identity,e)}function i(){return n(1)}e.s(["mergeAll",0,n],844032),e.s(["concatAll",0,i],761101);var s=e.i(673649),o=e.i(330823);e.s(["concat",0,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i()((0,o.from)(e,(0,s.popScheduler)(e)))}],602400)},817312,329418,796989,629437,161538,e=>{"use strict";var t=e.i(394426),r=e.i(290571),n=function(e){function t(t,r){return e.call(this)||this}return(0,r.__extends)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(e.i(909116).Subscription),i={setInterval:function(e,t){for(var n=[],s=2;s<arguments.length;s++)n[s-2]=arguments[s];var o=i.delegate;return(null==o?void 0:o.setInterval)?o.setInterval.apply(o,(0,r.__spreadArray)([e,t],(0,r.__read)(n))):setInterval.apply(void 0,(0,r.__spreadArray)([e,t],(0,r.__read)(n)))},clearInterval:function(e){var t=i.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},s=e.i(586903),o=function(e){function t(t,r){var n=e.call(this,t,r)||this;
2return n.scheduler=t,n.work=r,n.pending=!1,n}return(0,r.__extends)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!=(r=this.id)?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),i.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&i.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,s.arrRemove)(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(n);e.s(["AsyncAction",0,o],329418);var a=e.i(3670),u=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=a.dateTimestampProvider.now,e}(),c=function(e){function t(t,r){void 0===r&&(r=u.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return(0,r.__extends)(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active)return void r.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift())if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(u);e.s(["AsyncScheduler",0,c],796989);var l=new c(o);e.s(["async",0,l,"asyncScheduler",0,l],629437);var h=e.i(871041);function f(e){return e instanceof Date&&!isNaN(e)}e.s(["isValidDate",0,f],161538),e.s(["timer",0,function(e,r,n){void 0===e&&(e=0),void 0===n&&(n=l);var i=-1;return null!=r&&((0,h.isScheduler)(r)?n=r:i=r),new t.Observable(function(t){var r=f(e)?e-n.now():e;r<0&&(r=0);var s=0;return n.schedule(function(){t.closed||(t.next(s++),0<=i?this.schedule(void 0,i):t.complete())},r)})}],817312)},254201,218692,128068,e=>{"use strict";var t=e.i(394426),r=e.i(603752);e.s(["throwError",0,function(e,n){var i=(0,r.isFunction)(e)?e:function(){return e},s=function(e){return e.error(i())};return new t.Observable(n?function(e){return n.schedule(s,0,e)}:s)}],254201);var n=e.i(902965),i=e.i(627608),s=e.i(979165);e.s(["tap",0,function(e,t,o){var a=(0,r.isFunction)(e)||t||o?{next:e,error:t,complete:o}:e;return a?(0,n.operate)(function(e,t){null==(r=a.subscribe)||r.call(a);var r,n=!0;e.subscribe((0,i.createOperatorSubscriber)(t,function(e){var r;null==(r=a.next)||r.call(a,e),t.next(e)},function(){var e;n=!1,null==(e=a.complete)||e.call(a),t.complete()},function(e){var r;n=!1,null==(r=a.error)||r.call(a,e),t.error(e)},function(){var e,t;n&&(null==(e=a.unsubscribe)||e.call(a)),null==(t=a.finalize)||t.call(a)}))}):s.identity}],218692),e.s(["finalize",0,function(e){return(0,n.operate)(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}],128068)},993817,96623,e=>{"use strict";var t=e.i(844032),r=e.i(220324),n=new(e.i(394426)).Observable(function(e){return e.complete()});e.s(["EMPTY",0,n],96623);var i=e.i(673649),s=e.i(330823);e.s(["merge",0,function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var a=(0,i.popScheduler)(e),u=(0,i.popNumber)(e,1/0);return e.length?1===e.length?(0,r.innerFrom)(e[0]):(0,t.mergeAll)(u)((0,s.from)(e,a)):n}],993817)},839338,e=>{"use strict";var t=e.i(234915),r=e.i(240126);e.s(["firstValueFrom",0,function(e,n){var i="object"==typeof n;return new Promise(function(s,o){var a=new r.SafeSubscriber({next:function(e){s(e),a.unsubscribe()},error:o,complete:function(){i?s(n.defaultValue):o(new t.EmptyError)}});e.subscribe(a)})}])},502448,e=>{"use strict";var t=Array.isArray,r=Object.getPrototypeOf,n=Object.prototype,i=Object.keys;e.s(["argsArgArrayOrObject",0,function(e){if(1===e.length){var s,o=e[0];if(t(o))return{args:o,keys:null};if((s=o)&&"object"==typeof s&&r(s)===n){var a=i(o);return{args:a.map(function(e){return o[e]}),keys:a}}}return{args:e,keys:null}}])},272383,e=>{"use strict";var t=e.i(290571),r=e.i(94059),n=Array.isArray;e.s(["mapOneOrManyArgs",0,function(e){return(0,r.map)(function(r){return n(r)?e.apply(void 0,(0,t.__spreadArray)([],(0,t.__read)(r))):e(r)})}])},630330,718244,e=>{"use strict";var t=e.i(394426),r=e.i(502448),n=e.i(330823),i=e.i(979165),s=e.i(272383),o=e.i(673649);function a(e,t){return e.reduce(function(e,r,n){return e[r]=t[n],e},{})}e.s(["createObject",0,a],718244);var u=e.i(627608),c=e.i(175436);function l(e,t,r){return void 0===r&&(r=i.identity),function(i){h(t,function(){for(var s=e.length,o=Array(s),a=s,c=s,l=function(s){h(t,function(){var l=(0,n.from)(e[s],t),h=!1;l.subscribe((0,u.createOperatorSubscriber)(i,function(e){o[s]=e,!h&&(h=!0,c--),c||i.next(r(o.slice()))},function(){--a||i.complete()}
2))},i)},f=0;f<s;f++)l(f)},i)}}function h(e,t,r){e?(0,c.executeSchedule)(r,e,t):t()}e.s(["combineLatest",0,function(){for(var e=[],u=0;u<arguments.length;u++)e[u]=arguments[u];var c=(0,o.popScheduler)(e),h=(0,o.popResultSelector)(e),f=(0,r.argsArgArrayOrObject)(e),p=f.args,d=f.keys;if(0===p.length)return(0,n.from)([],c);var y=new t.Observable(l(p,c,d?function(e){return a(d,e)}:i.identity));return h?y.pipe((0,s.mapOneOrManyArgs)(h)):y},"combineLatestInit",0,l],630330)},545146,e=>{"use strict";var t=Array.isArray;e.s(["argsOrArgArray",0,function(e){return 1===e.length&&t(e[0])?e[0]:e}])},524888,e=>{"use strict";var t=e.i(290571),r=e.i(630330),n=e.i(902965),i=e.i(545146),s=e.i(272383),o=e.i(282541),a=e.i(673649);function u(){for(var e=[],c=0;c<arguments.length;c++)e[c]=arguments[c];var l=(0,a.popResultSelector)(e);return l?(0,o.pipe)(u.apply(void 0,(0,t.__spreadArray)([],(0,t.__read)(e))),(0,s.mapOneOrManyArgs)(l)):(0,n.operate)(function(n,s){(0,r.combineLatestInit)((0,t.__spreadArray)([n],(0,t.__read)((0,i.argsOrArgArray)(e))))(s)})}e.s(["combineLatestWith",0,function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return u.apply(void 0,(0,t.__spreadArray)([],(0,t.__read)(e)))}],524888)},722249,e=>{"use strict";var t=e.i(902965),r=e.i(627608);e.s(["filter",0,function(e,n){return(0,t.operate)(function(t,i){var s=0;t.subscribe((0,r.createOperatorSubscriber)(i,function(t){return e.call(n,t,s++)&&i.next(t)}))})}])},216024,e=>{"use strict";let t="drafts",r="versions",n=`${t}.`,i=`${r}.`;function s(e){return e.startsWith(n)}function o(e){return e.startsWith(i)}function a(e){return o(e)?e.split(".").slice(2).join("."):s(e)?e.slice(n.length):e}e.s(["DRAFTS_FOLDER",0,t,"VERSION_FOLDER",0,r,"getDraftId",0,function(e){return o(e)?n+a(e):s(e)?e:n+e},"getPublishedId",0,a,"getVersionFromId",0,function(e){if(!o(e))return;let[t,r]=e.split(".");return r},"getVersionId",0,function(e,t){if("drafts"===t||"published"===t)throw Error('Version can not be "published" or "drafts"');return`${i}${t}.${a(e)}`},"isDraftId",0,s,"isPublishedId",0,function(e){return!s(e)&&!o(e)},"isVersionId",0,o],216024)},945736,148077,e=>{"use strict";var t,r=e.i(271011),n=e.i(708228),i=e.i(394426),s=e.i(172441),o=e.i(245912),a=e.i(245281),u=e.i(484973),c=e.i(330823),l=e.i(305753),h=e.i(827341),f=e.i(992481),p=e.i(602400),d=e.i(817312),y=e.i(254201),g=e.i(218692),m=e.i(128068),b=e.i(277497),v=e.i(993817),w=e.i(94059),E=e.i(839338),C=e.i(247984),I=e.i(524888),R=e.i(722249),_=e.i(216024);let A=e=>crypto.getRandomValues(new Uint8Array(e)),O=(e,t=21)=>{var r;let n,i;return r=t,i=-~(1.6*(n=(2<<Math.log(e.length-1)/Math.LN2)-1)*r/e.length),(t=r)=>{let s="";for(;;){let r=A(i),o=0|i;for(;o--;)if((s+=e[r[o]&n]||"").length===t)return s}}};e.s(["customAlphabet",0,O,"nanoid",0,(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>((t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"")],148077);let x=/\r\n|[\n\r\u2028\u2029]/;function $(e,t){let r=0;for(let n=0;n<t.length;n++){let i=t[n].length+1;if(r+i>e)return{line:n+1,column:e-r};r+=i}return{line:t.length,column:t[t.length-1]?.length??0}}class q extends Error{response;statusCode=400;responseBody;traceId;details;constructor(e,t){const r=T(e,t);super(r.message),Object.assign(this,r)}}class S extends Error{response;statusCode=500;responseBody;traceId;details;constructor(e){const t=T(e);super(t.message),Object.assign(this,t)}}function T(e,t){var r,n,i;let s=e.body,o={response:e,statusCode:e.statusCode,responseBody:(r=s,-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(r,null,2):r),traceId:function(e){let t=e?.headers?.traceparent;if(t)return t.split("-")[1]}(e),message:"",details:void 0};if(!(0,C.isRecord)(s))return o.message=`${P(e,s)}${M(o.traceId)}`,o;let a=s.error;if("string"==typeof a&&"string"==typeof s.message)return o.message=`${a} - ${s.message}${M(o.traceId)}`,o;if("object"!=typeof a||null===a)return"string"==typeof a?o.message=`${a}${M(o.traceId)}`:"string"==typeof s.message?o.message=`${s.message}${M(o.traceId)}`:o.message=`${P(e,s)}${M(o.traceId)}`,o;if("type"in(n=a)&&"mutationError"===n.type&&"description"in n&&"string"==typeof n.description||"type"in(i=a)&&"actionError"===i.type&&"description"in i&&"string"==typeof i.description){let e=a.items||[],t=e.slice(0,5).map(e=>
2e.error?.description).filter(Boolean),r=t.length?`:
3- ${t.join(`
4- `)}`:"";return e.length>5&&(r+=`
5...and ${e.length-5} more`),o.message=`${a.description}${M(o.traceId)}${r}`,o.details=s.error,o}return F(a)?(o.message=j(a,t?.options?.query?.tag,o.traceId),o.details=s.error):"description"in a&&"string"==typeof a.description?(o.message=`${a.description}${M(o.traceId)}`,o.details=a):o.message=`${P(e,s)}${M(o.traceId)}`,o}function F(e){return(0,C.isRecord)(e)&&"queryParseError"===e.type&&"string"==typeof e.query&&"number"==typeof e.start&&"number"==typeof e.end}function j(e,t,r){let{query:n,start:i,end:s,description:o}=e,a=r?`
6(traceId: ${r})`:"";if(!n||typeof i>"u")return`GROQ query parse error: ${o}${a}`;let u=t?`
7
8Tag: ${t}`:"";return`GROQ query parse error:
9${function(e,t,r){let n=e.split(x),{start:i,end:s,markerLines:o}=function(e,t){let r={...e.start},n={...r,...e.end},i=r.line??-1,s=r.column??0,o=n.line,a=n.column,u=Math.max(i-3,0),c=Math.min(t.length,o+3);-1===i&&(u=0),-1===o&&(c=t.length);let l=o-i,h={};if(l)for(let e=0;e<=l;e++){let r=e+i;if(s)if(0===e){let e=t[r-1].length;h[r]=[s,e-s+1]}else if(e===l)h[r]=[0,a];else{let n=t[r-e].length;h[r]=[0,n]}else h[r]=!0}else s===a?s?h[i]=[s,0]:h[i]=!0:h[i]=[s,a-s];return{start:u,end:c,markerLines:h}}({start:$(t.start,n),end:t.end?$(t.end,n):void 0},n),a=`${s}`.length;return e.split(x,s).slice(i,s).map((e,t)=>{let n=i+1+t,s=` ${` ${n}`.slice(-a)} |`,u=o[n],c=!o[n+1];if(!u)return` ${s}${e.length>0?` ${e}`:""}`;let l="";if(Array.isArray(u)){let t=e.slice(0,Math.max(u[0]-1,0)).replace(/[^\t]/g," "),n=u[1]||1;l=`
10 `+s.replace(/\d/g," ")+" "+t+"^".repeat(n),c&&r&&(l+=" "+r)}return">"+s+(e.length>0?` ${e}`:"")+l}).join(`
11`)}(n,{start:i,end:s},o)}${u}${a}`}function P(e,t){var r;let n="string"==typeof t?` (${(r=t).length>100?`${r.slice(0,100)}\u2026`:r})`:"",i=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${i}${n}`}function M(e){return e?` (traceId: ${e})`:""}class U extends Error{projectId;addOriginUrl;constructor({projectId:e,credentials:t}={}){if(super("CorsOriginError"),this.name="CorsOriginError",this.projectId=e,e&&"u">typeof location){const r=new URL(`https://sanity.io/manage/project/${e}/api`),{origin:n}=location;r.searchParams.set("cors","add"),r.searchParams.set("origin",n),t&&r.searchParams.set("credentials",""),this.addOriginUrl=r,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${r}`}else e?this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: https://sanity.io/manage/project/${e}/api`:this.message="The current origin is not allowed to connect to the Live Content API."}}let V={onResponse:(e,t)=>{if(e.statusCode>=500)throw new S(e);if(e.statusCode>=400)throw new q(e,t);return e}};function k(e,t={}){return(0,r.getIt)([(0,n.retry)({shouldRetry:D}),...e,function(e={}){let t={},r=t=>void 0!==e.ignoreWarnings&&(Array.isArray(e.ignoreWarnings)?e.ignoreWarnings:[e.ignoreWarnings]).some(e=>"string"==typeof e?t.includes(e):e instanceof RegExp&&e.test(t));return{onResponse:e=>{let n=e.headers["x-sanity-warning"];for(let e of Array.isArray(n)?n:[n])!e||t[e]||r(e)||(t[e]=!0,console.warn(e));return e}}}(t),(0,n.jsonRequest)(),(0,n.jsonResponse)(),(0,n.progress)(),V,(0,n.observable)({implementation:i.Observable})])}function D(e,t,r){if(0===r.maxRetries)return!1;let i="GET"===r.method||"HEAD"===r.method,s=(r.uri||r.url).startsWith("/data/query"),o=e.response&&(429===e.response.statusCode||502===e.response.statusCode||503===e.response.statusCode);return(!!i||!!s)&&!!o||n.retry.shouldRetry(e,t,r)}function B(e){return"https://www.sanity.io/help/"+e}let L=["image","file"],N=["before","after","replace"],z=e=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},H=(e,t)=>{if(null===t||"object"!=typeof t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)},W=(e,t)=>{if("string"!=typeof t||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(t)||t.includes(".."))throw Error(`${e}(): "${t}" is not a valid document ID`)},G=(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);W(e,t._id)},Y=(e,t)=>
11{if(!t._type)throw Error(`\`${e}()\` requires that the document contains a type (\`_type\` property)`);var r=t._type;if("string"!=typeof r)throw Error(`\`${e}()\`: \`${r}\` is not a valid document type`)},J=e=>{if(e.dataset)return e.dataset;let t=e.resource;if(t&&"dataset"===t.type){let e=t.id.split(".");if(2!==e.length)throw Error('Dataset resource ID must be in the format "project.dataset"');return e[1]}throw Error("`dataset` must be provided to perform queries")},Q=e=>{if("string"!=typeof e||!/^[a-z0-9._-]{1,75}$/i.test(e))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return e},K=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:n}=t;switch(r){case"dataset":if(2!==n.split(".").length)throw Error('Dataset resource ID must be in the format "project.dataset"');return;case"dashboard":case"media-library":case"canvas":return;default:throw Error(`Unsupported resource type: ${r.toString()}`)}},X=(e,t)=>{if(t.resource)throw Error(`\`${e}\` does not support resource-based operations`)},Z=e=>{var t;let r,n;return t=(...t)=>console.warn(e.join(" "),...t),r=!1,(...e)=>(r||(n=t(...e),r=!0),n)},ee=Z(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),et=Z(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),er=Z(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),en=Z(["The `previewDrafts` perspective has been renamed to  `drafts` and will be removed in a future API version"]),ei=Z(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${B("js-client-browser-token")} for more information and how to hide this warning.`]),es=Z(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),eo=Z(["Using the Sanity client without specifying an API version is deprecated.",`See ${B("js-client-api-version")}`]),ea=(Z(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),Z(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."])),eu=Z(["The `~experimental_resource` configuration property has been renamed to `resource`.","Please update your client configuration to use `resource` instead. Support for `~experimental_resource` will be removed in a future version."]),ec={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},el=["localhost","127.0.0.1","0.0.0.0"];function eh(e){if(Array.isArray(e)&&e.length>1&&e.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}let ef=(e,t)=>{let r,n={...t,...e,stega:{..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||ec.stega,..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||{}}};n.apiVersion||eo();let i={...ec,...n};i["~experimental_resource"]&&!i.resource&&(eu(),i.resource=i["~experimental_resource"]);let s=i.resource,o=i.useProjectHostname&&!s;if(typeof Promise>"u"){let e=B("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${e}`)}if(o&&!i.projectId)throw Error("Configuration must contain `projectId`");if(s&&K(i),"u">typeof i.perspective&&eh(i.perspective),"encodeSourceMap"in i)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in i)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");
11if("boolean"!=typeof i.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${i.stega.enabled}`);if(i.stega.enabled&&void 0===i.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(i.stega.enabled&&"string"!=typeof i.stega.studioUrl&&"function"!=typeof i.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${i.stega.studioUrl}`);let a="u">typeof window&&window.location&&window.location.hostname,u=a&&(r=window.location.hostname,-1!==el.indexOf(r)),c=!!i.token;i.withCredentials&&c&&(es(),i.withCredentials=!1),a&&u&&c&&!0!==i.ignoreBrowserTokenWarning?ei():typeof i.useCdn>"u"&&et(),o&&(e=>{if(!/^[-a-z0-9]+$/i.test(e))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")})(i.projectId),i.dataset&&z(i.dataset),"requestTagPrefix"in i&&(i.requestTagPrefix=i.requestTagPrefix?Q(i.requestTagPrefix).replace(/\.+$/,""):void 0),i.apiVersion=`${i.apiVersion}`.replace(/^v/,""),i.isDefaultApi=i.apiHost===ec.apiHost,!0===i.useCdn&&i.withCredentials&&ee(),i.useCdn=!1!==i.useCdn&&!i.withCredentials,function(e){if("1"===e||"X"===e)return;let t=new Date(e);if(!(/^\d{4}-\d{2}-\d{2}$/.test(e)&&t instanceof Date&&t.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(i.apiVersion);let l=i.apiHost.split("://",2),h=l[0],f=l[1],p=i.isDefaultApi?"apicdn.sanity.io":f;return o?(i.url=`${h}://${i.projectId}.${f}/v${i.apiVersion}`,i.cdnUrl=`${h}://${i.projectId}.${p}/v${i.apiVersion}
11`):(i.url=`${i.apiHost}/v${i.apiVersion}`,i.cdnUrl=i.url),i};class ep extends Error{name="ConnectionFailedError"}class ed extends Error{name="DisconnectError";reason;constructor(e,t,r={}){super(e,r),this.reason=t}}class ey extends Error{name="ChannelError";data;constructor(e,t){super(e),this.data=t}}class eg extends Error{name="MessageError";data;constructor(e,t,r={}){super(e,r),this.data=t}}class em extends Error{name="MessageParseError"}let eb=["channelError","disconnect"];function ev(e,t){return(0,s.defer)(()=>{let t=e();return(0,o.isObservable)(t)?t:(0,a.of)(t)}).pipe((0,u.mergeMap)(e=>{var r,n;return r=e,n=t,new i.Observable(e=>{let t=n.includes("open"),i=n.includes("reconnect");function s(t){if("data"in t){let[r,n]=ew(t);e.error(r?new em("Unable to parse EventSource error message",{cause:n}):new eg((n?.data).message,n));return}r.readyState===r.CLOSED?e.error(new ep("EventSource connection failed")):i&&e.next({type:"reconnect"})}function o(){e.next({type:"open"})}function a(t){let[n,i]=ew(t);if(n)return void e.error(new em("Unable to parse EventSource message",{cause:n}));if("channelError"===t.type){var s,o;let t,n=new URL(r.url).searchParams.get("tag");e.error(new ey((s=i?.data,o=n,(t=s.error)?F(t)?j(t,o):t.description?t.description:"string"==typeof t?t:JSON.stringify(t,null,2):s.message||"Unknown listener error"),i.data));return}"disconnect"===t.type?e.error(new ed(`Server disconnected client: ${i.data?.reason||"unknown error"}`)):e.next({type:t.type,id:t.lastEventId,...i.data?{data:i.data}:{}})}r.addEventListener("error",s),t&&r.addEventListener("open",o);let u=[...new Set([...eb,...n])].filter(e=>"error"!==e&&"open"!==e&&"reconnect"!==e);return u.forEach(e=>r.addEventListener(e,a)),()=>{r.removeEventListener("error",s),t&&r.removeEventListener("open",o),u.forEach(e=>r.removeEventListener(e,a)),r.close()}})}))}function ew(e){try{let t="string"==typeof e.data&&JSON.parse(e.data);return[null,{type:e.type,id:e.lastEventId,...!function(e){for(let t in e)return!1;return!0}(t)?{data:t}:{}}]}catch(e){return[e,null]}}function eE(e){if("string"==typeof e)return{id:e};if(Array.isArray(e))return{query:"*[_id in $ids]",params:{ids:e}};if("object"==typeof e&&null!==e&&"query"in e&&"string"==typeof e.query)return"params"in e&&"object"==typeof e.params&&null!==e.params?{query:e.query,params:e.params}:{query:e.query};let t=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(`
12`);throw Error(`Unknown selection - must be one of:
13
14${t}`)}class eC{selection;operations;constructor(e,t={}){this.selection=e,this.operations=t}set(e){return this._assign("set",e)}setIfMissing(e){return this._assign("setIfMissing",e)}diffMatchPatch(e){return H("diffMatchPatch",e),this._assign("diffMatchPatch",e)}unset(e){if(!Array.isArray(e))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:e}),this}inc(e){return this._assign("inc",e)}dec(e){return this._assign("dec",e)}insert(e,t,r){return((e,t,r)=>{let n="insert(at, selector, items)";if(-1===N.indexOf(e)){let e=N.map(e=>`"${e}"`).join(", ");throw Error(`${n} takes an "at"-argument which is one of: ${e}`)}if("string"!=typeof t)throw Error(`${n} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw Error(`${n} takes an "items"-argument which must be an array`)})(e,t,r),this._assign("insert",{[e]:t,items:r})}append(e,t){return this.insert("after",`${e}[-1]`,t)}prepend(e,t){return this.insert("before",`${e}[0]`,t)}splice(e,t,r,n){let i=t<0?t-1:t,s=typeof r>"u"||-1===r?-1:Math.max(0,t+r),o=`${e}[${i}:${i<0&&s>=0?"":s}]`;return this.insert("replace",o,n||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...eE(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t,r=!0){return H(e,t),this.operations=Object.assign({},this.operations,{[e]:Object.assign({},r&&this.operations[e]||{},t)}),this}_set(e,t){return this._assign(e,t,!1)}}class eI extends eC{#a;constructor(e,t,r){super(e,t),this.#a=r}clone(){return new eI(this.selection,{...this.operations},this.#a)}commit(e){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#a.mutate({patch:this.serialize()},t)}}class eR extends eC{#a;constructor(e,t,r){super(e,t),this.#a=r}clone(){return new eR(this.selection,{...this.operations},this.#a)}commit(e){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#a.mutate({patch:this.serialize()},t)}}let e_={returnDocuments:!1};class eA{operations;trxId;constructor(e=[],t){this.operations=e,this.trxId=t}create(e){return H("create",e),this._add({create:e})}createIfNotExists(e){let t="createIfNotExists";return H(t,e),G(t,e),this._add({[t]:e})}createOrReplace(e){let t="createOrReplace";return H(t,e),G(t,e),this._add({[t]:e})}delete(e){return W("delete",e),this._add({delete:{id:e}})}transactionId(e){return e?(this.trxId=e,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(e){return this.operations.push(e),this}}class eO extends eA{#a;constructor(e,t,r){super(e,r),this.#a=t}clone(){return new eO([...this.operations],this.#a,this.trxId)}commit(e){if(!this.#a)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#a.mutate(this.serialize(),Object.assign({transactionId:this.trxId},e_,e||{}))}patch(e,t){let r="function"==typeof t,n="string"!=typeof e&&e instanceof eR,i="object"==typeof e&&("query"in e||"id"in e);if(n)return this._add({patch:e.serialize()});if(r){let r=t(new eR(e,{},this.#a));if(!(r instanceof eR))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}if(i){let r=new eR(e,t||{},this.#a);return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}class ex extends eA{#a;constructor(e,t,r){super(e,r),this.#a=t}clone(){return new ex([...this.operations],this.#a,this.trxId)}commit(e){if(!this.#a)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#a.mutate(this.serialize(),Object.assign({transactionId:this.trxId},e_,e||{}))}patch(e,t){let r="function"==typeof t;if("string"!=typeof e&&e instanceof eI)return this._add({patch:e.serialize()});if(r){let r=t(new eI(e,{},this.#a));if(!(r instanceof eI))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}let e$=({query:e,params:t={},options:r={}})=>{let n=new URLSearchParams,{tag:i,includeMutations:s,returnQuery:o,...a}=r;for(let[r,s]of(i&&n.append("tag",i),n.append("query",e),Object.entries(t)))void 0!==s&&n.append(`$${r}`,JSON.stringify(s));for(let[e,t]of Object.entries(a))t&&n.append(e,`${t}`);return!1===o&&n.append("returnQuery","false"),!1===s&&n.append("includeMutations","fal
14se"),`?${n}`},eq=e=>"response"===e.type,eS=e=>e.body;function eT(t,r,n,i,s={},o={}){let a="stega"in o?{...n||{},..."boolean"==typeof o.stega?{enabled:o.stega}:o.stega||{}}:n,u=a.enabled?(0,C.stegaClean)(s):s,l=!1===o.filterResponse?e=>e:e=>e.result,{cache:h,next:f,...p}={useAbortSignal:"u">typeof o.signal,resultSourceMap:a.enabled?"withKeyArraySelector":o.resultSourceMap,...o,returnQuery:!1===o.filterResponse&&!1!==o.returnQuery},d=eW(t,r,"query",{query:i,params:u},"u">typeof h||"u">typeof f?{...p,fetch:{cache:h,next:f}}:p);return a.enabled?d.pipe((0,I.combineLatestWith)((0,c.from)(e.A(684927).then(function(e){return e.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:e})=>e))),(0,w.map)(([e,t])=>{let r=t(e.result,e.resultSourceMap,a);return l({...e,result:r})})):d.pipe((0,w.map)(l))}function eF(e,t,r,n={}){let i={uri:eX(e,"doc",(()=>{if(!n.releaseId)return r;let e=(0,_.getVersionFromId)(r);if(!e){if((0,_.isDraftId)(r))throw Error(`The document ID (\`${r}\`) is a draft, but \`options.releaseId\` is set as \`${n.releaseId}\``);return(0,_.getVersionId)(r,n.releaseId)}if(e!==n.releaseId)throw Error(`The document ID (\`${r}\`) is already a version of \`${e}\` release, but this does not match the provided \`options.releaseId\` (\`${n.releaseId}\`)`);return r})()),json:!0,tag:n.tag,signal:n.signal,query:void 0!==n.includeAllVersions?{includeAllVersions:n.includeAllVersions}:void 0};return eQ(e,t,i).pipe((0,R.filter)(eq),(0,w.map)(e=>{let t=e.body.documents;return t?n.includeAllVersions?t:t[0]:n.includeAllVersions?[]:void 0}))}function ej(e,t,r,n={}){let i={uri:eX(e,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return eQ(e,t,i).pipe((0,R.filter)(eq),(0,w.map)(e=>{let t,n,i=(t=e.body.documents||[],n=e=>e._id,t.reduce((e,t)=>(e[n(t)]=t,e),Object.create(null)));return r.map(e=>i[e]||null)}))}function eP(e,t,r,n={}){return eW(e,t,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:r}},n)}function eM(e,t,r,n){return G("createIfNotExists",r),eG(e,t,r,"createIfNotExists",n)}function eU(e,t,r,n){return G("createOrReplace",r),eG(e,t,r,"createOrReplace",n)}function eV(e,t,r,n,i){return G("createVersion",r),Y("createVersion",r),ea(),eH(e,t,{actionType:"sanity.action.document.version.create",publishedId:n,document:r},i)}function ek(e,t,r,n,i,s,o){if(!n)throw Error("`createVersion()` requires `baseId` when no `document` is provided");if(!r)throw Error("`createVersion()` requires `publishedId` when `baseId` is provided");return W("createVersion",n),W("createVersion",r),eH(e,t,{actionType:"sanity.action.document.version.create",publishedId:r,baseId:n,versionId:i?(0,_.getVersionId)(r,i):(0,_.getDraftId)(r),ifBaseRevisionId:s},o)}function eD(e,t,r,n){return eW(e,t,"mutate",{mutations:[{delete:eE(r)}]},n)}function eB(e,t,r,n=!1,i){return eH(e,t,{actionType:"sanity.action.document.version.discard",versionId:r,purge:n},i)}function eL(e,t,r,n){return G("replaceVersion",r),Y("replaceVersion",r),eH(e,t,{actionType:"sanity.action.document.version.replace",document:r},n)}function eN(e,t,r,n,i){return eH(e,t,{actionType:"sanity.action.document.version.unpublish",versionId:r,publishedId:n},i)}function ez(e,t,r,n){let i;return eW(e,t,"mutate",{mutations:Array.isArray(i=r instanceof eR||r instanceof eI?{patch:r.serialize()}:r instanceof eO||r instanceof ex?r.serialize():r)?i:[i],transactionId:n&&n.transactionId||void 0},n)}function eH(e,t,r,n){let i=Array.isArray(r)?r:[r],s=n&&n.transactionId||void 0;return eW(e,t,"actions",{actions:i,transactionId:s,skipCrossDatasetReferenceValidation:n&&n.skipCrossDatasetReferenceValidation||void 0,dryRun:n&&n.dryRun||void 0},n)}function eW(e,t,r,n,i={}){let s="mutate"===r,o="actions"===r,a=s||o?"":e$(n),u=!s&&!o&&a.length<11264,c=u?a:"",l=i.returnFirst,{timeout:h,token:f,tag:p,headers:d,returnQuery:y,lastLiveEventId:g,cacheMode:m}=i,b={method:u?"GET":"POST",uri:eX(e,r,c),json:!0,body:u?void 0:n,query:s&&((e={})=>{let t;return{dryRun:e.dryRun,returnIds:!0,returnDocuments:(t=e.returnDocuments,!1===t?void 0:!!(typeof t>"u")||t),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}})(i),timeout:h,headers:d,token:f,tag:p,returnQuery:y,perspective:i.perspective,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(g)?g[0]:g,cacheMode:m,canUseCdn:"query"===r,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn};return eQ(e,t,b).pipe((0,R.filter)(eq),(0,w.map)(eS),(0,w.map)(e=>{if(!s)return e;let t=e.results||[];if(i.returnDocuments)return l?t[0]&&t[0].document:t.map(e=>e.document);let r=l?t[0]&&t[0].id:t.map(e=>e.id);return{transactionId:e.transactionId,results:t,[l?"documentId":"documentIds"]:r}}))}function eG(e,t,r,n,i={}){return eW(e,t,"mutate",{mutations:[{[n]:r}]},Object.assign({returnFirst:!0,returnDocuments:!0},i))}let eY=e=>{let t=e.config();return void 0!==t.dataset&&void 0!==t.projectId||void 0!==t.resource},eJ=(e,t)=>
14eY(e)&&t.startsWith(eX(e,"query"));function eQ(e,t,r){var n;let s=r.url||r.uri,o=e.config(),a=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&(s.startsWith("/data/")||eJ(e,s)||eY(e)&&s.startsWith(eX(e,"mutate"))||eY(e)&&s.startsWith(eX(e,"doc",""))||eY(e)&&s.startsWith(eX(e,"listen"))||eY(e)&&s.startsWith(eX(e,"history",""))):r.canUseCdn,u=(r.useCdn??o.useCdn)&&a,c=r.tag&&o.requestTagPrefix?[o.requestTagPrefix,r.tag].join("."):r.tag||o.requestTagPrefix;if(c&&null!==r.tag&&(r.query={tag:Q(c),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&eJ(e,s)){let e=r.resultSourceMap??o.resultSourceMap;void 0!==e&&!1!==e&&(r.query={resultSourceMap:e,...r.query});let t=r.perspective||o.perspective;"u">typeof t&&("previewDrafts"===t&&en(),eh(t),r.query={perspective:Array.isArray(t)?t.join(","):t,...r.query},(Array.isArray(t)&&t.length>0||"previewDrafts"===t||"drafts"===t)&&u&&(u=!1,er())),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),!1===r.returnQuery&&(r.query={returnQuery:"false",...r.query}),u&&"noStale"==r.cacheMode&&(r.query={cacheMode:"noStale",...r.query})}let l=function(e,t={}){let r={};e.headers&&Object.assign(r,e.headers);let n=t.token||e.token;n&&(r.Authorization=`Bearer ${n}`),t.useGlobalApi||e.useProjectHostname||!e.projectId||(r["X-Sanity-Project-ID"]=e.projectId);let i=!!(typeof t.withCredentials>"u"?e.withCredentials:t.withCredentials),s=typeof t.timeout>"u"?e.timeout:t.timeout;return Object.assign({},t,{headers:Object.assign({},r,t.headers||{}),timeout:typeof s>"u"?3e5:s,proxy:t.proxy||e.proxy,json:!0,withCredentials:i,fetch:"object"==typeof t.fetch&&"object"==typeof e.fetch?{...e.fetch,...t.fetch}:t.fetch||e.fetch})}(o,Object.assign({},r,{url:eZ(e,s,u)})),h=new i.Observable(e=>t(l,o.requester).subscribe(e));return r.signal?h.pipe((n=r.signal,e=>new i.Observable(t=>{let r=()=>t.error(function(e){if(e0)return new DOMException(e?.reason??"The operation was aborted.","AbortError");let t=Error(e?.reason??"The operation was aborted.");return t.name="AbortError",t}(n));if(n&&n.aborted)return void r();let i=e.subscribe(t);return n.addEventListener("abort",r),()=>{n.removeEventListener("abort",r),i.unsubscribe()}}))):h}function eK(e,t,r){return eQ(e,t,r).pipe((0,R.filter)(e=>"response"===e.type),(0,w.map)(e=>e.body))}function eX(e,t,r){let n=e.config();if(n.resource){K(n);let e=e1(n),i=void 0!==r?`${t}/${r}`:t;return`${e}/${i}`.replace(/\/($|\?)/,"$1")}let i=J(n),s=`/${t}/${i}`;return`/data${void 0!==r?`${s}/${r}`:s}`.replace(/\/($|\?)/,"$1")}function eZ(e,t,r=!1){let{url:n,cdnUrl:i}=e.config();return`${r?i:n}/${t.replace(/^\//,"")}`}let e0=!!globalThis.DOMException,e1=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:n}=t;switch(r){case"dataset":{let e=n.split(".");if(2!==e.length)throw Error('Dataset ID must be in the format "project.dataset"');return`/projects/${e[0]}/datasets/${e[1]}`}case"canvas":return`/canvases/${n}`;case"media-library":return`/media-libraries/${n}`;case"dashboard":return`/dashboards/${n}`;default:throw Error(`Unsupported resource type: ${r.toString()}`)}};function e2(e,t,r){let n=J(e.config());return eK(e,t,{method:"POST",uri:`/agent/action/generate/${n}`,body:r})}function e3(e,t,r){let n=J(e.config());return eK(e,t,{method:"POST",uri:`/agent/action/transform/${n}`,body:r})}function e6(e,t,r){let n=J(e.config());return eK(e,t,{method:"POST",uri:`/agent/action/translate/${n}`,body:r})}class e4{#a;#u;constructor(e,t){this.#a=e,this.#u=t}generate(e){return e2(this.#a,this.#u,e)}transform(e){return e3(this.#a,this.#u,e)}translate(e){return e6(this.#a,this.#u,e)}}class e5{#a;#u;constructor(e,t){this.#a=e,this.#u=t}generate(e){return(0,l.lastValueFrom)(e2(this.#a,this.#u,e))}transform(e){return(0,l.lastValueFrom)(e3(this.#a,this.#u,e))}translate(e){return(0,l.lastValueFrom)(e6(this.#a,this.#u,e))}prompt(e){var t,r;let n;return(0,l.lastValueFrom)((t=this.#a,r=this.#u,n=J(t.config()),eK(t,r,{method:"POST",uri:`/agent/action/prompt/${n}`,body:e})))}patch(e){var t,r;let n;return(0,l.lastValueFrom)((t=this.#a,r=this.#u,n=J(t.config()),eK(t,r,{method:"POST",uri:`/agent/action/patch/${n}`,body:e})))}}class e8{#a;#u;constructor(e,t){this.#a=e,this.#u=t}upload(e,t,r){return e7(this.#a,this.#u,e,t,r)}}class e9{#a;#u;constructor(e,t){this.#a=e,this.#u=t}upload(e,t,r){let n=e7(this.#a,this.#u,e,t,r);return(0,l.lastValueFrom)(n.pipe((0,R.filter)(e=>"response"===e.type),(0,w.map)(e=>e.body.document)))}}function e7(e,t,r,n,i={}){var s,o;if(-1===L.indexOf(r))throw Error(`Invalid asset type: ${r}. Must be one of ${L.join(", ")}`);let a=i.extract||void 0;a&&!a.length&&(a=["none"]);let u=e.config(),c=(s=i,o=n,!(typeof File>"u")&&o instanceof File?Object.assign({filename:!1===s.preserveFilename?void 0:o.name,contentType:o.type},s):s),{tag:l,label:h,title:f,description:p,creditLine:d,filename:y,source:g}=c,m=u.resource?.type==="media-library",b=m?{title:f,filename:y}:{label:h,title:f,description:p,filename:y,meta:a,creditLine:d};return g&&!m&&(b.sourceId=g.id,b.sourceName=g.name,b.sourceUrl=g.url),eQ(e,t,{tag:l,method:"POST",timeout:c.timeout||0,uri:function(e,t){let r="image"===t?"images":"files",n=e.resource;if(n){let{type:e,id:t}=n;switch(e){case"dataset":throw Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${t}/assets/${r}`;case"media-library":return`/media-libraries/${t}/upload`;case"dashboard":return`/dashboards/${t}/assets/${r}`;default:throw Error(`Unsupported resource type: ${e.toString()}`)}}let i=J(e);return`assets/${r}/${i}`}(u,r),headers:c.contentType?{"Content-Type":c.contentType}:{},query:b,body:n})}let te=(0,s.defer)(()=>e.A(627649)).pipe((0,w.map)(({default:e})=>e),(0,h.shareReplay)(1));function tt(){return function(e){return e.pipe((0,f.catchError)((e,t)=>e instanceof ep?(0,p.concat)((0,a.of)({type:"reconnect"}),(0,d.timer)(1e3).pipe((0,u.mergeMap)(()=>t))):(0,y.throwError)(()=>e)))}}let tr=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","enableResume","tag"],tn={includeResult:!0};function ti(e,t,r={}){let{url:n,token:i,withCredentials:s,requestTagPrefix:o,headers:u}=this.config(),c=r.tag&&o?[o,r.tag].join("."):r.tag,l={...Object.keys(tn).concat(Object.keys(r)).reduce((e,t)=>
14(e[t]=typeof r[t]>"u"?tn[t]:r[t],e),{}),tag:c},h=e$({query:e,params:t,options:{tag:c,...tr.reduce((e,t)=>(typeof l[t]>"u"||(e[t]=l[t]),e),{})}}),f=`${n}${eX(this,"listen",h)}`;if(f.length>14800)return(0,y.throwError)(()=>Error("Query too large for listener"));let p=l.events?l.events:["mutation"],d={};return s&&(d.withCredentials=!0),(i||u)&&(d.headers={},i&&(d.headers.Authorization=`Bearer ${i}`),u&&Object.assign(d.headers,u)),ev(()=>(typeof EventSource>"u"||d.headers?te:(0,a.of)(EventSource)).pipe((0,w.map)(e=>new e(f,d))),p).pipe(tt(),(0,R.filter)(e=>p.includes(e.type)),(0,w.map)(e=>({type:e.type,..."data"in e?e.data:{}})))}let ts="2021-03-25";class to{#a;constructor(e){this.#a=e}events({includeDrafts:e=!1,tag:t,waitFor:r}={}){var n,s,o,c,l;let{projectId:h,apiVersion:p,token:d,withCredentials:E,requestTagPrefix:C,headers:I}=this.#a.config(),R=p.replace(/^v/,"");if("X"!==R&&R<ts)throw Error(`The live events API requires API version ${ts} or later. The current API version is ${R}. Please update your API version to use this feature.`);if(e&&!d&&!E)throw Error("The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.");let _=eX(this.#a,"live/events"),A=new URL(this.#a.getUrl(_,!1)),O=t&&C?[C,t].join("."):t;O&&A.searchParams.set("tag",O),e&&A.searchParams.set("includeDrafts","true"),r&&A.searchParams.set("waitFor",r);let x={};e&&E&&(x.withCredentials=!0),(e&&d||I)&&(x.headers={},e&&d&&(x.headers.Authorization=`Bearer ${d}`),I&&Object.assign(x.headers,I));let $=`${A.href}::${JSON.stringify(x)}`,q=ta.get($);if(q)return q;let S=ev(()=>(typeof EventSource>"u"||x.headers?te:(0,a.of)(EventSource)).pipe((0,w.map)(e=>new e(A.href,x))),["message","restart","welcome","reconnect","goaway"]),T=(s=new URL(this.#a.getUrl("/check/cors",!1)),o=h,c=!0===x.withCredentials,new i.Observable(e=>{let t=new AbortController,{signal:r}=t;return fetch(s,{method:"GET",mode:"cors",credentials:"omit",signal:r}).then(e=>{if(!(r.aborted||!e.ok))return e.json()}).then(t=>{if(!r.aborted){if(c&&t?.result?.withCredentials===!1)return void e.error(new U({projectId:o,credentials:!0}));if(t?.result?.allowed===!1)return void e.error(new U({projectId:o,credentials:c}));e.next(),e.complete()}}).catch(()=>{r.aborted||e.closed||(e.next(),e.complete())}),()=>t.abort()})),F=S.pipe(tt(),(0,u.mergeMap)(e=>"reconnect"===e.type?T.pipe((0,u.mergeMap)(()=>(0,a.of)(e))):(0,a.of)(e)),(0,f.catchError)(e=>e instanceof U?(0,y.throwError)(()=>e):T.pipe((0,u.mergeMap)(()=>{throw e}))),(0,w.map)(e=>{if("message"===e.type){let{data:t,...r}=e;return{...r,tags:t.tags}}return e})).pipe((0,m.finalize)(()=>ta.delete($)),(l="function"==typeof(n={predicate:e=>"welcome"===e.type})?{predicate:n,...void 0}:n,e=>{let t,r=!1,{predicate:n,...s}=l,o=e.pipe((0,g.tap)(e=>{l.predicate(e)&&(r=!0,t=e)}),(0,m.finalize)(()=>{r=!1,t=void 0}),(0,b.share)(s)),a=new i.Observable(e=>{r&&e.next(t),e.complete()});return(0,v.merge)(o,a)}));return ta.set($,F),F}}let ta=new Map;class tu{#a;#u;constructor(e,t){this.#a=e,this.#u=t}create(e,t){return th(this.#a,this.#u,"PUT",e,t)}edit(e,t){return th(this.#a,this.#u,"PATCH",e,t)}delete(e){return th(this.#a,this.#u,"DELETE",e)}list(){X("dataset",this.#a.config());let e=this.#a.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),eK(this.#a,this.#u,{uri:r,tag:null})}getEmbeddingsSettings(e){return X("dataset",this.#a.config()),z(e),eK(this.#a,this.#u,{uri:tl(this.#a,e),tag:null})}editEmbeddingsSettings(e,t){return X("dataset",this.#a.config()),z(e),eK(this.#a,this.#u,{method:"PUT",uri:tl(this.#a,e),body:t,tag:null})}}class tc{#a;#u;constructor(e,t){this.#a=e,this.#u=t}create(e,t){return X("dataset",this.#a.config()),(0,l.lastValueFrom)(th(this.#a,this.#u,"PUT",e,t))}edit(e,t){return X("dataset",this.#a.config()),(0,l.lastValueFrom)(th(this.#a,this.#u,"PATCH",e,t))}delete(e){return X("dataset",this.#a.config()),(0,l.lastValueFrom)(th(this.#a,this.#u,"DELETE",e))}list(){X("dataset",this.#a.config());let e=this.#a.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),(0,l.lastValueFrom)(eK(this.#a,this.#u,{uri:r,tag:null}))}getEmbeddingsSettings(e){return X("dataset",this.#a.config()),z(e),(0,l.lastValueFrom)(eK(this.#a,this.#u,{uri:tl(this.#a,e),tag:null}))}editEmbeddingsSettings(e,t){return X("dataset",this.#a.config()),z(e),(0,l.lastValueFrom)(eK(this.#a,this.#u,{method:"PUT",uri:tl(this.#a,e),body:t,tag:null}))}}function tl(e,t){let r=e.config();return!1===r.useProjectHostname?`/projects/${r.projectId}/datasets/${t}/settings/embeddings`:`/datasets/${t}/settings/embeddings`}function th(e,t,r,n,i){return X("dataset",e.config()),z(n),eK(e,t,{method:r,uri:`/datasets/${n}`,body:i,tag:null})}class tf{#a;#u;constructor(e,t){this.#a=e,this.#u=t}getPlaybackInfo(e,t={}){var r,n;let i=this.#a.config(),s=(i.resource||i["~experimental_resource"])?.id,{instanceId:o,library
14Id:a}=function(e){let t="object"==typeof e&&"_ref"in e?e._ref:e,r=td.exec(t);if(r){let[,e,t]=r;return{libraryId:e,instanceId:t}}if("string"==typeof e&&e.startsWith("video-"))return{instanceId:e};throw Error(`Invalid video asset instance identifier "${t}": must be a valid video instance id or a Global Dataset Reference (GDR) to the video asset in the Media Library`)}(e),u=a||s;if(!u)throw Error("Could not determine Media Library ID - you need to provide a valid Media Library ID in the client config or a Media Library GDR");let c=(r=o,n=u,`/media-libraries/${n}/video/${r}/playback-info`),l=function(e){let t={};if(e.transformations){let{thumbnail:r,animated:n,storyboard:i}=e.transformations;r&&(r.width&&(t.thumbnailWidth=r.width),r.height&&(t.thumbnailHeight=r.height),void 0!==r.time&&(t.thumbnailTime=r.time),r.fit&&(t.thumbnailFit=r.fit),r.format&&(t.thumbnailFormat=r.format)),n&&(n.width&&(t.animatedWidth=n.width),n.height&&(t.animatedHeight=n.height),void 0!==n.start&&(t.animatedStart=n.start),void 0!==n.end&&(t.animatedEnd=n.end),n.fps&&(t.animatedFps=n.fps),n.format&&(t.animatedFormat=n.format)),i&&i.format&&(t.storyboardFormat=i.format)}return e.expiration&&(t.expiration=e.expiration),t}(t);return eK(this.#a,this.#u,{method:"GET",uri:c,query:l})}}class tp{#a;#u;constructor(e,t){this.#a=e,this.#u=t}getPlaybackInfo(e,t={}){return(0,l.lastValueFrom)(new tf(this.#a.observable,this.#u).getPlaybackInfo(e,t))}}let td=/^media-library:(ml[^:]+):([^:]+)$/;class ty{#a;#u;constructor(e,t){this.#a=e,this.#u=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.includeFeatures===!1&&(t.includeFeatures="false"),e?.organizationId&&(t.organizationId=e.organizationId),e?.onlyExplicitMembership&&(t.onlyExplicitMembership="true"),eK(this.#a,this.#u,{uri:"/projects",query:t})}getById(e){return eK(this.#a,this.#u,{uri:`/projects/${e}`})}}class tg{#a;#u;constructor(e,t){this.#a=e,this.#u=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.includeFeatures===!1&&(t.includeFeatures="false"),e?.organizationId&&(t.organizationId=e.organizationId),e?.onlyExplicitMembership&&(t.onlyExplicitMembership="true"),(0,l.lastValueFrom)(eK(this.#a,this.#u,{uri:"/projects",query:t}))}getById(e){return(0,l.lastValueFrom)(eK(this.#a,this.#u,{uri:`/projects/${e}`}))}}let tm=O("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),tb=(e,t)=>t?(0,_.getVersionId)(e,t):(0,_.getDraftId)(e);function tv(e,{releaseId:t,publishedId:r,document:n}){if(r&&n._id){let e=tb(r,t);return((e,t)=>{if(t._id&&t._id!==e)throw Error(`The provided document ID (\`${t._id}\`) does not match the generated version ID (\`${e}\`)`)})(e,n),e}if(n._id){let r=(0,_.isDraftId)(n._id),i=(0,_.isVersionId)(n._id);if(!r&&!i)throw Error(`\`${e}()\` requires a document with an \`_id\` that is a version or draft ID`);if(t){if(r)throw Error(`\`${e}()\` was called with a document ID (\`${n._id}\`) that is a draft ID, but a release ID (\`${t}\`) was also provided.`);let i=(0,_.getVersionFromId)(n._id);if(i!==t)throw Error(`\`${e}()\` was called with a document ID (\`${n._id}\`) that is a version ID, but the release ID (\`${t}\`) does not match the document's version ID (\`${i}\`).`)}return n._id}if(r)return tb(r,t);throw Error(`\`${e}()\` requires either a publishedId or a document with an \`_id\``)}let tw=(e,t)=>{let[r,n,i]=((e,t)=>{if("object"==typeof e&&null!==e&&("releaseId"in e||"metadata"in e)){let{releaseId:r=tm(),metadata:n={}}=e;return[r,n,t]}return[tm(),{},e]})(e,t);return{action:{actionType:"sanity.action.release.create",releaseId:r,metadata:{...n,releaseType:n.releaseType||"undecided"}},options:i}};class tE{#a;#u;
14constructor(e,t){this.#a=e,this.#u=t}get({releaseId:e},t){return eF(this.#a,this.#u,`_.releases.${e}`,t)}create(e,t){let{action:r,options:n}=tw(e,t),{releaseId:i,metadata:s}=r;return eH(this.#a,this.#u,r,n).pipe((0,w.map)(e=>({...e,releaseId:i,metadata:s})))}edit({releaseId:e,patch:t},r){return eH(this.#a,this.#u,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r)}publish({releaseId:e},t){return eH(this.#a,this.#u,{actionType:"sanity.action.release.publish",releaseId:e},t)}archive({releaseId:e},t){return eH(this.#a,this.#u,{actionType:"sanity.action.release.archive",releaseId:e},t)}unarchive({releaseId:e},t){return eH(this.#a,this.#u,{actionType:"sanity.action.release.unarchive",releaseId:e},t)}schedule({releaseId:e,publishAt:t},r){return eH(this.#a,this.#u,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r)}unschedule({releaseId:e},t){return eH(this.#a,this.#u,{actionType:"sanity.action.release.unschedule",releaseId:e},t)}delete({releaseId:e},t){return eH(this.#a,this.#u,{actionType:"sanity.action.release.delete",releaseId:e},t)}fetchDocuments({releaseId:e},t){return eP(this.#a,this.#u,e,t)}}class tC{#a;#u;constructor(e,t){this.#a=e,this.#u=t}get({releaseId:e},t){return(0,l.lastValueFrom)(eF(this.#a,this.#u,`_.releases.${e}`,t))}async create(e,t){let{action:r,options:n}=tw(e,t),{releaseId:i,metadata:s}=r;return{...await (0,l.lastValueFrom)(eH(this.#a,this.#u,r,n)),releaseId:i,metadata:s}}edit({releaseId:e,patch:t},r){return(0,l.lastValueFrom)(eH(this.#a,this.#u,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r))}publish({releaseId:e},t){return(0,l.lastValueFrom)(eH(this.#a,this.#u,{actionType:"sanity.action.release.publish",releaseId:e},t))}archive({releaseId:e},t){return(0,l.lastValueFrom)(eH(this.#a,this.#u,{actionType:"sanity.action.release.archive",releaseId:e},t))}unarchive({releaseId:e},t){return(0,l.lastValueFrom)(eH(this.#a,this.#u,{actionType:"sanity.action.release.unarchive",releaseId:e},t))}schedule({releaseId:e,publishAt:t},r){return(0,l.lastValueFrom)(eH(this.#a,this.#u,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r))}unschedule({releaseId:e},t){return(0,l.lastValueFrom)(eH(this.#a,this.#u,{actionType:"sanity.action.release.unschedule",releaseId:e},t))}delete({releaseId:e},t){return(0,l.lastValueFrom)(eH(this.#a,this.#u,{actionType:"sanity.action.release.delete",releaseId:e},t))}fetchDocuments({releaseId:e},t){return(0,l.lastValueFrom)(eP(this.#a,this.#u,e,t))}}class tI{#a;#u;constructor(e,t){this.#a=e,this.#u=t}getById(e){return eK(this.#a,this.#u,{uri:`/users/${e}`})}}class tR{#a;#u;constructor(e,t){this.#a=e,this.#u=t}getById(e){return(0,l.lastValueFrom)(eK(this.#a,this.#u,{uri:`/users/${e}`}))}}class t_{assets;datasets;live;mediaLibrary;projects;users;agent;releases;#c;#l;#u;listen=ti;constructor(e,t=ec){this.config(t),this.#l=e;const r=t._requestHandler;this.#u=r?(()=>{let n;return(i,s)=>(n||(n=new tA(e,{...t,_requestHandler:void 0})),r(i,t=>e(t,s),n))})():e,this.assets=new e8(this,this.#u),this.datasets=new tu(this,this.#u),this.live=new to(this),this.mediaLibrary={video:new tf(this,this.#u)},this.projects=new ty(this,this.#u),this.users=new tI(this,this.#u),this.agent={action:new e4(this,this.#u)},this.releases=new tE(this,this.#u)}clone(){return new t_(this.#l,this.config())}config(e){if(void 0===e)return{...this.#c};if(this.#c&&!1===this.#c.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#c=ef(e,this.#c||{}),this}withConfig(e){let t=this.config();return new t_(this.#l,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return eT(this,this.#u,this.#c.stega,e,t,r)}getDocument(e,t){if(t?.includeAllVersions===!0)return eF(this,this.#u,e,{...t,includeAllVersions:!0});let r={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return eF(this,this.#u,e,r)}getDocuments(e,t){return ej(this,this.#u,e,t)}create(e,t){return eG(this,this.#u,e,"create",t)}createIfNotExists(e,t){return eM(this,this.#u,e,t)}createOrReplace(e,t){return eU(this,this.#u,e,t)}createVersion({document:e,publishedId:t,releaseId:r,baseId:n,ifBaseRevisionId:i},s){if(!e)return ek(this,this.#u,t,n,r,i,s);let o=tv("createVersion",{document:e,publishedId:t,releaseId:r}),a={...e,_id:o},u=t||(0,_.getPublishedId)(e._id);return eV(this,this.#u,a,u,s)}delete(e,t){return eD(this,this.#u,e,t)}discardVersion({releaseId:e,publishedId:t},r,n){let i=tb(t,e);return eB(this,this.#u,i,r,n)}replaceVersion({document:e,publishedId:t,releaseId:r},n){let i=tv("replaceVersion",{document:e,publishedId:t,releaseId:r}),s={...e,_id:i};return eL(this,this.#u,s,n)}unpublishVersion({releaseId:e,publishedId:t},r){let n=(0,_.getVersionId)(t,e);return eN(this,this.#u,n,t,r)}mutate(e,t){return ez(this,this.#u,e,t)}patch(e,t){return new eI(e,t,this)}transaction(e){return new ex(e,this)}action(e,t){return eH(this,this.#u,e,t)}request(e){return eK(this,this.#u,e)}getUrl(e,t){return eZ(this,e,t)}getDataUrl(e,t){return eX(this,e,t)}}class tA{assets;datasets;live;mediaLibrary;projects;users;agent;releases;observable;#c;#l;#u;listen=ti;constructor(e,t=ec){this.config(t),this.#l=e;const r=t._requestHandler;this.#u=r?(()=>{let n;return(i,s)=>(n||(n=new tA(e,{...t,_requestHandler:void 0})),r(i,t=>e(t,s),n))})():e,this.assets=new e9(this,this.#u),this.datasets=new tc(this,this.#u),this.live=new to(this),this.mediaLibrary={video:new tp(this,this.#u)}
14,this.projects=new tg(this,this.#u),this.users=new tR(this,this.#u),this.agent={action:new e5(this,this.#u)},this.releases=new tC(this,this.#u),this.observable=new t_(e,t)}clone(){return new tA(this.#l,this.config())}config(e){if(void 0===e)return{...this.#c};if(this.#c&&!1===this.#c.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(e),this.#c=ef(e,this.#c||{}),this}withConfig(e){let t=this.config();return new tA(this.#l,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return(0,l.lastValueFrom)(eT(this,this.#u,this.#c.stega,e,t,r))}getDocument(e,t){if(t?.includeAllVersions===!0)return(0,l.lastValueFrom)(eF(this,this.#u,e,{...t,includeAllVersions:!0}));let r={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return(0,l.lastValueFrom)(eF(this,this.#u,e,r))}getDocuments(e,t){return(0,l.lastValueFrom)(ej(this,this.#u,e,t))}create(e,t){return(0,l.lastValueFrom)(eG(this,this.#u,e,"create",t))}createIfNotExists(e,t){return(0,l.lastValueFrom)(eM(this,this.#u,e,t))}createOrReplace(e,t){return(0,l.lastValueFrom)(eU(this,this.#u,e,t))}createVersion({document:e,publishedId:t,releaseId:r,baseId:n,ifBaseRevisionId:i},s){if(!e)return(0,E.firstValueFrom)(ek(this,this.#u,t,n,r,i,s));let o=tv("createVersion",{document:e,publishedId:t,releaseId:r}),a={...e,_id:o},u=t||(0,_.getPublishedId)(e._id);return(0,E.firstValueFrom)(eV(this,this.#u,a,u,s))}delete(e,t){return(0,l.lastValueFrom)(eD(this,this.#u,e,t))}discardVersion({releaseId:e,publishedId:t},r,n){let i=tb(t,e);return(0,l.lastValueFrom)(eB(this,this.#u,i,r,n))}replaceVersion({document:e,publishedId:t,releaseId:r},n){let i=tv("replaceVersion",{document:e,publishedId:t,releaseId:r}),s={...e,_id:i};return(0,E.firstValueFrom)(eL(this,this.#u,s,n))}unpublishVersion({releaseId:e,publishedId:t},r){let n=(0,_.getVersionId)(t,e);return(0,l.lastValueFrom)(eN(this,this.#u,n,t,r))}mutate(e,t){return(0,l.lastValueFrom)(ez(this,this.#u,e,t))}patch(e,t){return new eR(e,t,this)}transaction(e){return new eO(e,this)}action(e,t){return(0,l.lastValueFrom)(eH(this,this.#u,e,t))}request(e){return(0,l.lastValueFrom)(eK(this,this.#u,e))}dataRequest(e,t,r){return(0,l.lastValueFrom)(eW(this,this.#u,e,t,r))}getUrl(e,t){return eZ(this,e,t)}getDataUrl(e,t){return eX(this,e,t)}}let tO={requester:k(t=[]),createClient:e=>{let r=k(t,{ignoreWarnings:e.ignoreWarnings});return new tA((t,n)=>(n||r)({maxRedirects:0,maxRetries:e.maxRetries,retryDelay:e.retryDelay,lineage:e.lineage,...t}),e)}},tx=(tO.requester,tO.createClient);e.s(["ChannelError",0,ey,"ClientError",0,q,"ServerError",0,S,"createClient",0,tx],945736)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.