PageSourceSearch

https://salarycalculate.com/_next/static/chunks/1842-d3cc713f8ee1d4b7.js

js salarycalculate.com collected 2026-10-09 04:59:15 UTC 117,548 bytes, 13 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1842],{6803:function(i){i.exports=function(){function _extends(){return(_extends=Object.assign||function(i){for(var u=1;u<arguments.length;u++){var c=arguments[u];for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(i[f]=c[f])}return i}).apply(this,arguments)}function _arrayLikeToArray(i,u){(null==u||u>i.length)&&(u=i.length);for(var c=0,f=Array(u);c<u;c++)f[c]=i[c];return f}var i="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function urlToId(i){return("image-"+i.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}var u=[["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"]],c=["clip","crop","fill","fillmax","max","scale","min"],f=["top","bottom","left","right","center","focalpoint","entropy"],h=["format"],b=function(){function ImageUrlBuilder(i,u){this.options=void 0,this.options=i?_extends({},i.options||{},u||{}):_extends({},u||{})}var b=ImageUrlBuilder.prototype;return b.withOptions=function(i){var c=i.baseUrl||this.options.baseUrl,f={baseUrl:c};for(var h in i)i.hasOwnProperty(h)&&(f[function(i){for(var c,f=function(i,u){var c="undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(c)return(c=c.call(i)).next.bind(c);if(Array.isArray(i)||(c=function(i,u){if(i){if("string"==typeof i)return _arrayLikeToArray(i,u);var c=Object.prototype.toString.call(i).slice(8,-1);if("Object"===c&&i.constructor&&(c=i.constructor.name),"Map"===c||"Set"===c)return Array.from(i);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return _arrayLikeToArray(i,u)}}(i))){c&&(i=c);var f=0;return function(){return f>=i.length?{done:!0}:{done:!1,value:i[f++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(u);!(c=f()).done;){var h=c.value,b=h[0],g=h[1];if(i===b||i===g)return b}return i}(h)]=i[h]);return new ImageUrlBuilder(this,_extends({baseUrl:c},f))},b.image=function(i){return this.withOptions({source:i})},b.dataset=function(i){return this.withOptions({dataset:i})},b.projectId=function(i){return this.withOptions({projectId:i})},b.bg=function(i){return this.withOptions({bg:i})},b.dpr=function(i){return this.withOptions(i&&1!==i?{dpr:i}:{})},b.width=function(i){return this.withOptions({width:i})},b.height=function(i){return this.withOptions({height:i})},b.focalPoint=function(i,u){return this.withOptions({focalPoint:{x:i,y:u}})},b.maxWidth=function(i){return this.withOptions({maxWidth:i})},b.minWidth=function(i){return this.withOptions({minWidth:i})},b.maxHeight=function(i){return this.withOptions({maxHeight:i})},b.minHeight=function(i){return this.withOptions({minHeight:i})},b.size=function(i,u){return this.withOptions({width:i,height:u})},b.blur=function(i){return this.withOptions({blur:i})},b.sharpen=function(i){return this.withOptions({sharpen:i})},b.rect=function(i,u,c,f){return this.withOptions({rect:{left:i,top:u,width:c,height:f}})},b.format=function(i){return this.withOptions({format:i})},b.invert=function(i){return this.withOptions({invert:i})},b.orientation=function(i){return this.withOptions({orientation:i})},b.quality=function(i){return this.withOptions({quality:i})},b.forceDownload=function(i){return this.withOptions({download:i})},b.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},b.flipVertical=function(){return this.withOptions({flipVertical:!0})},b.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},b.fit=function(i){if(-1===c.indexOf(i))throw Error('Invalid fit mode "'+i+'"');return this.withOptions({fit:i})},b.crop=function(i){if(-1===f.indexOf(i))throw Error('Invalid crop mode "'+i+'"');return this.withOptions({crop:i})},b.saturation=function(i){return this.withOptions({saturation:i})},b.auto=function(i){if(-1===h.indexOf(i))throw Error('Invalid auto mode "'+i+'"');return this.withOptions({auto:i})},b.pad=function(i){return this.withOptions({pad:i})},b.vanityName=function(i){return this.withOptions({vanityName:i})},b.frame=function(i){if(1!==i)throw Error('Invalid frame value "'+i+'"');return this.withOptions({frame:i})},b.url=function(){return function(c){var f=_extends({},c||{}),h=f.source;delete f.source;var b=function(i){var u;if(!i)return null;if("string"==typeof i&&/^https?:\/\//.test(""+i))u={asset:{_ref:urlToId(i)}};else if("string"==typeof i)u={asset:{_ref:i}
1};else if(i&&"string"==typeof i._ref)u={asset:i};else if(i&&"string"==typeof i._id)u={asset:{_ref:i._id||""}};else if(i&&i.asset&&"string"==typeof i.asset.url)u={asset:{_ref:urlToId(i.asset.url)}};else{if("object"!=typeof i.asset)return null;u=_extends({},i)}return i.crop&&(u.crop=i.crop),i.hotspot&&(u.hotspot=i.hotspot),function(i){if(i.crop&&i.hotspot)return i;var u=_extends({},i);return u.crop||(u.crop={left:0,top:0,bottom:0,right:0}),u.hotspot||(u.hotspot={x:.5,y:.5,height:1,width:1}),u}(u)}(h);if(!b)throw Error("Unable to resolve image URL from source ("+JSON.stringify(h)+")");var g=function(u){var c=u.split("-"),f=c[1],h=c[2],b=c[3];if(!f||!h||!b)throw Error("Malformed asset _ref '"+u+"'. Expected an id like \""+i+'".');var g=h.split("x"),v=g[0],E=g[1],S=+v,x=+E;if(!(isFinite(S)&&isFinite(x)))throw Error("Malformed asset _ref '"+u+"'. Expected an id like \""+i+'".');return{id:f,width:S,height:x,format:b}}(b.asset._ref||b.asset._id||""),v=Math.round(b.crop.left*g.width),E=Math.round(b.crop.top*g.height),S={left:v,top:E,width:Math.round(g.width-b.crop.right*g.width-v),height:Math.round(g.height-b.crop.bottom*g.height-E)},x=b.hotspot.height*g.height/2,A=b.hotspot.width*g.width/2,B=b.hotspot.x*g.width,j=b.hotspot.y*g.height;return f.rect||f.focalPoint||f.ignoreImageParams||f.crop||(f=_extends({},f,function(i,u){var c,f=u.width,h=u.height;if(!(f&&h))return{width:f,height:h,rect:i.crop};var b=i.crop,g=i.hotspot,v=f/h;if(b.width/b.height>v){var E=Math.round(b.height),S=Math.round(E*v),x=Math.max(0,Math.round(b.top)),A=Math.max(0,Math.round(Math.round((g.right-g.left)/2+g.left)-S/2));A<b.left?A=b.left:A+S>b.left+b.width&&(A=b.left+b.width-S),c={left:A,top:x,width:S,height:E}}else{var B=b.width,j=Math.round(B/v),R=Math.max(0,Math.round(b.left)),q=Math.max(0,Math.round(Math.round((g.bottom-g.top)/2+g.top)-j/2));q<b.top?q=b.top:q+j>b.top+b.height&&(q=b.top+b.height-j),c={left:R,top:q,width:B,height:j}}return{width:f,height:h,rect:c}}({crop:S,hotspot:{left:B-A,top:j-x,right:B+A,bottom:j+x}},f))),function(i){var c=(i.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),f=i.vanityName?"/"+i.vanityName:"",h=i.asset.id+"-"+i.asset.width+"x"+i.asset.height+"."+i.asset.format+f,b=c+"/images/"+i.projectId+"/"+i.dataset+"/"+h,g=[];if(i.rect){var v=i.rect,E=v.left,S=v.top,x=v.width,A=v.height;(0!==E||0!==S||A!==i.asset.height||x!==i.asset.width)&&g.push("rect="+E+","+S+","+x+","+A)}i.bg&&g.push("bg="+i.bg),i.focalPoint&&(g.push("fp-x="+i.focalPoint.x),g.push("fp-y="+i.focalPoint.y));var B=[i.flipHorizontal&&"h",i.flipVertical&&"v"].filter(Boolean).join("");return(B&&g.push("flip="+B),u.forEach(function(u){var c=u[0],f=u[1];void 0!==i[c]?g.push(f+"="+encodeURIComponent(i[c])):void 0!==i[f]&&g.push(f+"="+encodeURIComponent(i[f]))}),0===g.length)?b:b+"?"+g.join("&")}(_extends({},f,{asset:g}))}(this.options)},b.toString=function(){return this.url()},ImageUrlBuilder}();return function(i){if(i&&"config"in i&&"function"==typeof i.config){var u=i.config(),c=u.apiHost,f=u.projectId,h=u.dataset;return new b(null,{baseUrl:(c||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:f,dataset:h})}if(i&&"clientConfig"in i&&"object"==typeof i.clientConfig){var g=i.clientConfig,v=g.apiHost,E=g.projectId,S=g.dataset;return new b(null,{baseUrl:(v||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:E,dataset:S})}return new b(null,i||{})}}()},83454:function(i,u,c){"use strict";var f,h;i.exports=(null==(f=c.g.process)?void 0:f.env)&&"object"==typeof(null==(h=c.g.process)?void 0:h.env)?c.g.process:c(77663)},21876:function(i){!function(){var u={675:function(i,u){"use strict";u.byteLength=function(i){var u=getLens(i),c=u[0],f=u[1];return(c+f)*3/4-f},u.toByteArray=function(i){var u,c,b=getLens(i),g=b[0],v=b[1],E=new h((g+v)*3/4-v),S=0,x=v>0?g-4:g;for(c=0;c<x;
1c+=4)u=f[i.charCodeAt(c)]<<18|f[i.charCodeAt(c+1)]<<12|f[i.charCodeAt(c+2)]<<6|f[i.charCodeAt(c+3)],E[S++]=u>>16&255,E[S++]=u>>8&255,E[S++]=255&u;return 2===v&&(u=f[i.charCodeAt(c)]<<2|f[i.charCodeAt(c+1)]>>4,E[S++]=255&u),1===v&&(u=f[i.charCodeAt(c)]<<10|f[i.charCodeAt(c+1)]<<4|f[i.charCodeAt(c+2)]>>2,E[S++]=u>>8&255,E[S++]=255&u),E},u.fromByteArray=function(i){for(var u,f=i.length,h=f%3,b=[],g=0,v=f-h;g<v;g+=16383)b.push(function(i,u,f){for(var h,b=[],g=u;g<f;g+=3)b.push(c[(h=(i[g]<<16&16711680)+(i[g+1]<<8&65280)+(255&i[g+2]))>>18&63]+c[h>>12&63]+c[h>>6&63]+c[63&h]);return b.join("")}(i,g,g+16383>v?v:g+16383));return 1===h?b.push(c[(u=i[f-1])>>2]+c[u<<4&63]+"=="):2===h&&b.push(c[(u=(i[f-2]<<8)+i[f-1])>>10]+c[u>>4&63]+c[u<<2&63]+"="),b.join("")};for(var c=[],f=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,v=b.length;g<v;++g)c[g]=b[g],f[b.charCodeAt(g)]=g;function getLens(i){var u=i.length;if(u%4>0)throw Error("Invalid string. Length must be a multiple of 4");var c=i.indexOf("=");-1===c&&(c=u);var f=c===u?0:4-c%4;return[c,f]}f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},72:function(i,u,c){"use strict";/*!
2 * The buffer module from node.js, for the browser.
3 *
4 * @author   Feross Aboukhadijeh <https://feross.org>
5 * @license  MIT
6 */var f=c(675),h=c(783),b="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function createBuffer(i){if(i>2147483647)throw RangeError('The value "'+i+'" is invalid for option "size"');var u=new Uint8Array(i);return Object.setPrototypeOf(u,Buffer.prototype),u}function Buffer(i,u,c){if("number"==typeof i){if("string"==typeof u)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(i)}return from(i,u,c)}function from(i,u,c){if("string"==typeof i)return function(i,u){if(("string"!=typeof u||""===u)&&(u="utf8"),!Buffer.isEncoding(u))throw TypeError("Unknown encoding: "+u);var c=0|byteLength(i,u),f=createBuffer(c),h=f.write(i,u);return h!==c&&(f=f.slice(0,h)),f}(i,u);if(ArrayBuffer.isView(i))return fromArrayLike(i);if(null==i)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(isInstance(i,ArrayBuffer)||i&&isInstance(i.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(i,SharedArrayBuffer)||i&&isInstance(i.buffer,SharedArrayBuffer)))return function(i,u,c){var f;if(u<0||i.byteLength<u)throw RangeError('"offset" is outside of buffer bounds');if(i.byteLength<u+(c||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(f=void 0===u&&void 0===c?new Uint8Array(i):void 0===c?new Uint8Array(i,u):new Uint8Array(i,u,c),Buffer.prototype),f}(i,u,c);if("number"==typeof i)throw TypeError('The "value" argument must not be of type number. Received type number');var f=i.valueOf&&i.valueOf();if(null!=f&&f!==i)return Buffer.from(f,u,c);var h=function(i){if(Buffer.isBuffer(i)){var u,c=0|checked(i.length),f=createBuffer(c);return 0===f.length||i.copy(f,0,0,c),f}return void 0!==i.length?"number"!=typeof i.length||(u=i.length)!=u?createBuffer(0):fromArrayLike(i):"Buffer"===i.type&&Array.isArray(i.data)?fromArrayLike(i.data):void 0}(i);if(h)return h;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof i[Symbol.toPrimitive])return Buffer.from(i[Symbol.toPrimitive]("string"),u,c);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}function assertSize(i){if("number"!=typeof i)throw TypeError('"size" argument must be of type number');if(i<0)throw RangeError('The value "'+i+'" is invalid for option "size"')}function allocUnsafe(i){return assertSize(i),createBuffer(i<0?0:0|checked(i))}function fromArrayLike(i){for(var u=i.length<0?0:0|checked(i.length),c=createBuffer(u),f=0;f<u;f+=1)c[f]=255&i[f];return c}function checked(i){if(i>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|i}function byteLength(i,u){if(Buffer.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||isInstance(i,ArrayBuffer))return i.byteLength;if("string"!=typeof i)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);var c=i.length,f=arguments.length>2&&!0===arguments[2];if(!f&&0===c)return 0;for(var h=!1;;)switch(u){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return utf8ToBytes(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return base64ToBytes(i).length;default:if(h)return f?-1:utf8ToBytes(i).length;u=(""+u).toLowerCase(),h=!0}}function slowToString(i,u,c){var h,b,g=!1;if((void 0===u||u<0)&&(u=0),u>this.length||((void 0===c||c>this.length)&&(c=this.length),c<=0||(c>>>=0)<=(u>>>=0)))return"";for(i||(i="utf8");;)switch(i){case"hex":return function(i,u,c){var f=i.length;(!u||u<0)&&(u=0),(!c||c<0||c>f)&&(c=f);for(var h="",b=u;b<c;++b)h+=v[i[b]];return h}(this,u,c);case"utf8":case"utf-8":return utf8Slice(this,u,c);case"ascii":return function(i,u,c){var f="";c=Math.min(i.length,c);for(var h=u;h<c;++h)f+=String.fromCharCode(127&i[h]);return f}(this,u,c);case"latin1":case"binary":return function(i,u,c){var f="";c=Math.min(i.length,c);for(var h=u;h<c;++h)f+=String.fromCharCode(i[h]);return f}(this,u,c);case"base64":return h=u,b=c,0===h&&b===this.length?f.fromByteArray(this):f.fromByteArray(this.slice(h,b));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(i,u,c){for(var f=i.slice(u,c),h="",b=0;b<f.length;b+=2)h+=String.fromCharCode(f[b]+256*f[b+1]);return h}(this,u,c);default:if(g)throw TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),g=!0}}function swap(i,u,c){var f=i[u];i[u]=i[c],i[c]=f}function bidirectionalIndexOf(i,u,c,f,h){var b;if(0===i.length)return -1;if("string"==typeof c?(f=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),(b=c=+c)!=b&&(c=h?0:i.length-1),c<0&&(c=i.length+c),c>=i.length){if(h)return -1;c=i.length-1}else if(c<0){if(!h)return -1;c=0}if("string"==typeof u&&(u=Buffer.from(u,f)),Buffer.isBuffer(u))return 0===u.length?-1:arrayIndexOf(i,u,c,f,h);if("number"==typeof u)return(u&=255,"function"==typeof Uint8Array.prototype.indexOf)?h?Uint8Array.prototype.indexOf.call(i,u,c):Uint8Array.prototype.lastIndexOf.call(i,u,c):arrayIndexOf(i,[u],c,f,h);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(i,u,c,f,h){var b,g=1,v=i.length,E=u.length;if(void 0!==f&&("ucs2"===(f=String(f).toLowerCase())||"ucs-2"===f||"utf16le"===f||"utf-16le"===f)){if(i.length<2||u.length<2)return -1;g=2,v/=2,E/=2,c/=2}function read(i,u){return 1===g?i[u]:i.readUInt16BE(u*g)}if(h){var S=-1;for(b=c;b<v;
vendor: 11,040 bytes, line 6
6b++)if(read(i,b)===read(u,-1===S?0:b-S)){if(-1===S&&(S=b),b-S+1===E)return S*g}else -1!==S&&(b-=b-S),S=-1}else for(c+E>v&&(c=v-E),b=c;b>=0;b--){for(var x=!0,A=0;A<E;A++)if(read(i,b+A)!==read(u,A)){x=!1;break}if(x)return b}return -1}function utf8Slice(i,u,c){c=Math.min(i.length,c);for(var f=[],h=u;h<c;){var b,g,v,E,S=i[h],x=null,A=S>239?4:S>223?3:S>191?2:1;if(h+A<=c)switch(A){case 1:S<128&&(x=S);break;case 2:(192&(b=i[h+1]))==128&&(E=(31&S)<<6|63&b)>127&&(x=E);break;case 3:b=i[h+1],g=i[h+2],(192&b)==128&&(192&g)==128&&(E=(15&S)<<12|(63&b)<<6|63&g)>2047&&(E<55296||E>57343)&&(x=E);break;case 4:b=i[h+1],g=i[h+2],v=i[h+3],(192&b)==128&&(192&g)==128&&(192&v)==128&&(E=(15&S)<<18|(63&b)<<12|(63&g)<<6|63&v)>65535&&E<1114112&&(x=E)}null===x?(x=65533,A=1):x>65535&&(x-=65536,f.push(x>>>10&1023|55296),x=56320|1023&x),f.push(x),h+=A}return function(i){var u=i.length;if(u<=4096)return String.fromCharCode.apply(String,i);for(var c="",f=0;f<u;)c+=String.fromCharCode.apply(String,i.slice(f,f+=4096));return c}(f)}function checkOffset(i,u,c){if(i%1!=0||i<0)throw RangeError("offset is not uint");if(i+u>c)throw RangeError("Trying to access beyond buffer length")}function checkInt(i,u,c,f,h,b){if(!Buffer.isBuffer(i))throw TypeError('"buffer" argument must be a Buffer instance');if(u>h||u<b)throw RangeError('"value" argument is out of bounds');if(c+f>i.length)throw RangeError("Index out of range")}function checkIEEE754(i,u,c,f,h,b){if(c+f>i.length||c<0)throw RangeError("Index out of range")}function writeFloat(i,u,c,f,b){return u=+u,c>>>=0,b||checkIEEE754(i,u,c,4,34028234663852886e22,-34028234663852886e22),h.write(i,u,c,f,23,4),c+4}function writeDouble(i,u,c,f,b){return u=+u,c>>>=0,b||checkIEEE754(i,u,c,8,17976931348623157e292,-17976931348623157e292),h.write(i,u,c,f,52,8),c+8}u.Buffer=Buffer,u.SlowBuffer=function(i){return+i!=i&&(i=0),Buffer.alloc(+i)},u.INSPECT_MAX_BYTES=50,u.kMaxLength=2147483647,Buffer.TYPED_ARRAY_SUPPORT=function(){try{var i=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(i,u),42===i.foo()}catch(i){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(i,u,c){return from(i,u,c)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(i,u,c){return(assertSize(i),i<=0)?createBuffer(i):void 0!==u?"string"==typeof c?createBuffer(i).fill(u,c):createBuffer(i).fill(u):createBuffer(i)},Buffer.allocUnsafe=function(i){return allocUnsafe(i)},Buffer.allocUnsafeSlow=function(i){return allocUnsafe(i)},Buffer.isBuffer=function(i){return null!=i&&!0===i._isBuffer&&i!==Buffer.prototype},Buffer.compare=function(i,u){if(isInstance(i,Uint8Array)&&(i=Buffer.from(i,i.offset,i.byteLength)),isInstance(u,Uint8Array)&&(u=Buffer.from(u,u.offset,u.byteLength)),!Buffer.isBuffer(i)||!Buffer.isBuffer(u))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(i===u)return 0;for(var c=i.length,f=u.length,h=0,b=Math.min(c,f);h<b;++h)if(i[h]!==u[h]){c=i[h],f=u[h];break}return c<f?-1:f<c?1:0},Buffer.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(i,u){if(!Array.isArray(i))throw TypeError('"list" argument must be an Array of Buffers');if(0===i.length)return Buffer.alloc(0);if(void 0===u)for(c=0,u=0;c<i.length;++c)u+=i[c].length;var c,f=Buffer.allocUnsafe(u),h=0;for(c=0;c<i.length;++c){var b=i[c];if(isInstance(b,Uint8Array)&&(b=Buffer.from(b)),!Buffer.isBuffer(b))throw TypeError('"list" argument must be an Array of Buffers');b.copy(f,h),h+=b.length}return f},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var i=this.length;if(i%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var u=0;u<i;u+=2)swap(this,u,u+1);return this},Buffer.prototype.swap32=function(){var i=this.length;if(i%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var u=0;u<i;u+=4)swap(this,u,u+3),swap(this,u+1,u+2);return this},Buffer.prototype.swap64=function(){var i=this.length;if(i%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var u=0;u<i;u+=8)swap(this,u,u+7),swap(this,u+1,u+6),swap(this,u+2,u+5),swap(this,u+3,u+4);return this},Buffer.prototype.toString=function(){var i=this.length;return 0===i?"":0==arguments.length?utf8Slice(this,0,i):slowToString.apply(this,arguments)},Buffer.prototype.toLocaleString=Buffer.prototype.toString,Buffer.prototype.equals=function(i){if(!Buffer.isBuffer(i))throw TypeError("Argument must be a Buffer");return this===i||0===Buffer.compare(this,i)},Buffer.prototype.inspect=function(){var i="",c=u.INSPECT_MAX_BYTES;return i=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(i+=" ... "),"<Buffer "+i+">"},b&&(Buffer.prototype[b]=Buffer.prototype.inspect),Buffer.prototype.compare=function(i,u,c,f,h){if(isInstance(i,Uint8Array)&&(i=Buffer.from(i,i.offset,i.byteLength)),!Buffer.isBuffer(i))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(void 0===u&&(u=0),void 0===c&&(c=i?i.length:0),void 0===f&&(f=0),void 0===h&&(h=this.length),u<0||c>i.length||f<0||h>this.length)throw RangeError("out of range index");if(f>=h&&u>=c)return 0;if(f>=h)return -1;if(u>=c)return 1;if(u>>>=0,c>>>=0,f>>>=0,h>>>=0,this===i)return 0;for(var b=h-f,g=c-u,v=Math.min(b,g),E=this.slice(f,h),S=i.slice(u,c),x=0;x<v;++x)if(E[x]!==S[x]){b=E[x],g=S[x];break}return b<g?-1:g<b?1:0},Buffer.prototype.includes=function(i,u,c){return -1!==this.indexOf(i,u,c)},Buffer.prototype.indexOf=function(i,u,c){return bidirectionalIndexOf(this,i,u,c,!0)},Buffer.prototype.lastIndexOf=function(i,u,c){return bidirectionalIndexOf(this,i,u,c,!1)},Buffer.prototype.write=function(i,u,c,f){if(void 0===u)f="utf8",c=this.length,u=0;else if(void 0===c&&"string"==typeof u)f=u,c=this.length,u=0;else if(isFinite(u))u>>>=0,isFinite(c)?(c>>>=0,void 0===f&&(f="utf8")):(f=c,c=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var h,b,g,v,E,S,x,A,B,j,R,q,k=this.length-u;if((void 0===c||c>k)&&(c=k),i.length>0&&(c<0||u<0)||u>this.length)throw RangeError("Attempt to write outside buffer bounds");f||(f="utf8");for(var F=!1;;)switch(f){case"hex":return function(i,u,c,f){c=Number(c)||0;var h=i.length-c;f?(f=Number(f))>h&&(f=h):f=h;var b=u.length;f>b/2&&(f=b/2);for(var g=0;g<f;++g){var v=parseInt(u.substr(2*g,2),16);if(v!=v)break;i[c+g]=v}return g}(this,i,u,c);case"utf8":case"utf-8":return E=u,S=c,blitBuffer(utf8ToBytes(i,this.length-E),this,E,S);case"ascii":return x=u,A=c,blitBuffer(asciiToBytes(i),this,x,A);case"latin1":case"binary":return h=this,b=i,g=u,v=c,blitBuffer(asciiToBytes(b),h,g,v);case"base64":return B=u,j=c,blitBuffer(base64ToBytes(i),this,B,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R=u,q=c,blitBuffer(function(i,u){for(var c,f,h=[],b=0;b<i.length&&!((u-=2)<0);++b)f=(c=i.charCodeAt(b))>>8,h.push(c%256),h.push(f);return h}(i,this.length-R),this,R,q);default:if(F)throw TypeError("Unknown encoding: "+f);f=(""+f).toLowerCase(),F=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(i,u){var c=this.length;i=~~i,u=void 0===u?c:~~u,i<0?(i+=c)<0&&(i=0):i>c&&(i=c),u<0?(u+=c)<0&&(u=0):u>c&&(u=c),u<i&&(u=i);var f=this.subarray(i,u);return Object.setPrototypeOf(f,Buffer.prototype),f},Buffer.prototype.readUIntLE=function(i,u,c){i>>>=0,u>>>=0,c||checkOffset(i,u,this.length);for(var f=this[i],h=1,b=0;++b<u&&(h*=256);)f+=this[i+b]*h;return f},Buffer.prototype.readUIntBE=function(i,u,c){i>>>=0,u>>>=0,c||checkOffset(i,u,this.length);for(var f=this[i+--u],h=1;u>0&&(h*=256);)f+=this[i+--u]*h;return f},Buffer.prototype.readUInt8=function(i,u){return i>>>=0,u||checkOffset(i,1,this.length),this[i]},Buffer.prototype.readUInt16LE=function(i,u){return i>>>=0,u||checkOffset(i,2,this.length),this[i]|this[i+1]<<8},Buffer.prototype.readUInt16BE=function(i,u){return i>>>=0,u||checkOffset(i,2,this.length),this[i]<<8|this[i+1]},Buffer.prototype.readUInt32LE=function(i,u){return i>>>=0,u||checkOffset(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+16777216*this[i+3]},Buffer.prototype.readUInt32BE=function(i,u){return i>>>=0,u||checkOffset(i,4,this.length),16777216*this[i]+(this[i+1]<<16|this[i+2]<<8|this[i+3])},Buffer.prototype.readIntLE=function(i,u,c){i>>>=0,u>>>=0,c||checkOffset(i,u,this.length);for(var f=this[i],h=1,b=0;++b<u&&(h*=256);)f+=this[i+b]*h;return f>=(h*=128)&&(f-=Math.pow(2,8*u)),f},Buffer.prototype.readIntBE=function(i,u,c){i>>>=0,u>>>=0,c||checkOffset(i,u,this.length);for(var f=u,h=1,b=this[i+--f];f>0&&(h*=256);)b+=this[i+--f]*h;return b>=(h*=128)&&(b-=Math.pow(2,8*u)),b},Buffer.prototype.readInt8=function(i,u){return(i>>>=0,u||checkOffset(i,1,this.length),128&this[i])?-((255-this[i]+1)*1):this[i]},Buffer.prototype.readInt16LE=function(i,u){i>>>=0,u||checkOffset(i,2,this.length);var c=this[i]|this[i+1]<<8;return 32768&c?4294901760|c:c},Buffer.prototype.readInt16BE=function(i,u){i>>>=0,u||checkOffset(i,2,this.length);var c=this[i+1]|this[i]<<8;return 32768&c?4294901760|c:c},Buffer.prototype.readInt32LE=function(i,u){return i>>>=0,u||checkOffset(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},Buffer.prototype.readInt32BE=function(i,u){return i>>>=0,u||checkOffset(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},Buffer.prototype.readFloatLE=function(i,u){return i>>>=0,u||checkOffset(i,4,this.length),h.read(this,i,!0,23,4)},Buffer.prototype.readFloatBE=function(i,u){return i>>>=0,u||checkOffset(i,4,this.length),h.read(this,i,!1,23,4)},Buffer.prototype.readDoubleLE=function(i,u){return i>>>=0,u||checkOffset(i,8,this.length),h.read(this,i,!0,52,8)},Buffer.prototype.readDoubleBE=function(i,u){return i>>>=0,u||checkOffset(i,8,this.length),h.read(this,i,!1,52,8)},Buffer.prototype.writeUIntLE=function(i,u,c,f){if(i=+i,u>>>=0,c>>>=0,!f){var h=Math.pow(2,8*c)-1;checkInt(this,i,u,c,h,0)}var b=1,g=0;for(this[u]=255&i;++g<c&&(b*=256);)this[u+g]=i/b&255;return u+c},Buffer.prototype.writeUIntBE=function(i,u,c,f){if(i=+i,u>>>=0,c>>>=0,!f){var h=Math.pow(2,8*c)-1;checkInt(this,i,u,c,h,0)}var b=c-1,g=1;for(this[u+b]=255&i;--b>=0&&(g*=256);)this[u+b]=i/g&255;return u+c},Buffer.prototype.writeUInt8=function(i,u,c){return i=+i,u>>
6>=0,c||checkInt(this,i,u,1,255,0),this[u]=255&i,u+1},Buffer.prototype.writeUInt16LE=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,2,65535,0),this[u]=255&i,this[u+1]=i>>>8,u+2},Buffer.prototype.writeUInt16BE=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,2,65535,0),this[u]=i>>>8,this[u+1]=255&i,u+2},Buffer.prototype.writeUInt32LE=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,4,4294967295,0),this[u+3]=i>>>24,this[u+2]=i>>>16,this[u+1]=i>>>8,this[u]=255&i,u+4},Buffer.prototype.writeUInt32BE=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,4,4294967295,0),this[u]=i>>>24,this[u+1]=i>>>16,this[u+2]=i>>>8,this[u+3]=255&i,u+4},Buffer.prototype.writeIntLE=function(i,u,c,f){if(i=+i,u>>>=0,!f){var h=Math.pow(2,8*c-1);checkInt(this,i,u,c,h-1,-h)}var b=0,g=1,v=0;for(this[u]=255&i;++b<c&&(g*=256);)i<0&&0===v&&0!==this[u+b-1]&&(v=1),this[u+b]=(i/g>>0)-v&255;return u+c},Buffer.prototype.writeIntBE=function(i,u,c,f){if(i=+i,u>>>=0,!f){var h=Math.pow(2,8*c-1);checkInt(this,i,u,c,h-1,-h)}var b=c-1,g=1,v=0;for(this[u+b]=255&i;--b>=0&&(g*=256);)i<0&&0===v&&0!==this[u+b+1]&&(v=1),this[u+b]=(i/g>>0)-v&255;return u+c},Buffer.prototype.writeInt8=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,1,127,-128),i<0&&(i=255+i+1),this[u]=255&i,u+1},Buffer.prototype.writeInt16LE=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,2,32767,-32768),this[u]=255&i,this[u+1]=i>>>8,u+2},Buffer.prototype.writeInt16BE=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,2,32767,-32768),this[u]=i>>>8,this[u+1]=255&i,u+2},Buffer.prototype.writeInt32LE=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,4,2147483647,-2147483648),this[u]=255&i,this[u+1]=i>>>8,this[u+2]=i>>>16,this[u+3]=i>>>24,u+4},Buffer.prototype.writeInt32BE=function(i,u,c){return i=+i,u>>>=0,c||checkInt(this,i,u,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),this[u]=i>>>24,this[u+1]=i>>>16,this[u+2]=i>>>8,this[u+3]=255&i,u+4},Buffer.prototype.writeFloatLE=function(i,u,c){return writeFloat(this,i,u,!0,c)},Buffer.prototype.writeFloatBE=function(i,u,c){return writeFloat(this,i,u,!1,c)},Buffer.prototype.writeDoubleLE=function(i,u,c){return writeDouble(this,i,u,!0,c)},Buffer.prototype.writeDoubleBE=function(i,u,c){return writeDouble(this,i,u,!1,c)},Buffer.prototype.copy=function(i,u,c,f){if(!Buffer.isBuffer(i))throw TypeError("argument should be a Buffer");if(c||(c=0),f||0===f||(f=this.length),u>=i.length&&(u=i.length),u||(u=0),f>0&&f<c&&(f=c),f===c||0===i.length||0===this.length)return 0;if(u<0)throw RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw RangeError("Index out of range");if(f<0)throw RangeError("sourceEnd out of bounds");f>this.length&&(f=this.length),i.length-u<f-c&&(f=i.length-u+c);var h=f-c;if(this===i&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(u,c,f);else if(this===i&&c<u&&u<f)for(var b=h-1;b>=0;--b)i[b+u]=this[b+c];else Uint8Array.prototype.set.call(i,this.subarray(c,f),u);return h},Buffer.prototype.fill=function(i,u,c,f){if("string"==typeof i){if("string"==typeof u?(f=u,u=0,c=this.length):"string"==typeof c&&(f=c,c=this.length),void 0!==f&&"string"!=typeof f)throw TypeError("encoding must be a string");if("string"==typeof f&&!Buffer.isEncoding(f))throw TypeError("Unknown encoding: "+f);if(1===i.length){var h,b=i.charCodeAt(0);("utf8"===f&&b<128||"latin1"===f)&&(i=b)}}else"number"==typeof i?i&=255:"boolean"==typeof i&&(i=Number(i));if(u<0||this.length<u||this.length<c)throw RangeError("Out of range index");if(c<=u)return this;if(u>>>=0,c=void 0===c?this.length:c>>>0,i||(i=0),"number"==typeof i)for(h=u;h<c;++h)this[h]=i;else{var g=Buffer.isBuffer(i)?i:Buffer.from(i,f),v=g.length;if(0===v)throw TypeError('The value "'+i+'" is invalid for argument "value"');for(h=0;h<c-u;++h)this[h+u]=g[h%v]}return this};var g=/[^+/0-9A-Za-z-_]/g;function utf8ToBytes(i,u){u=u||1/0;for(var c,f=i.length,h=null,b=[],g=0;g<f;++g){if((c=i.charCodeAt(g))>55295&&c<57344){if(!h){if(c>56319||g+1===f){(u-=3)>-1&&b.push(239,191,189);continue}h=c;continue}if(c<56320){(u-=3)>-1&&b.push(239,191,189),h=c;continue}c=(h-55296<<10|c-56320)+65536}else h&&(u-=3)>-1&&b.push(239,191,189);if(h=null,c<128){if((u-=1)<0)break;b.push(c)}else if(c<2048){if((u-=2)<0)break;b.push(c>>6|192,63&c|128)}
6else if(c<65536){if((u-=3)<0)break;b.push(c>>12|224,c>>6&63|128,63&c|128)}else if(c<1114112){if((u-=4)<0)break;b.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}else throw Error("Invalid code point")}return b}function asciiToBytes(i){for(var u=[],c=0;c<i.length;++c)u.push(255&i.charCodeAt(c));return u}function base64ToBytes(i){return f.toByteArray(function(i){if((i=(i=i.split("=")[0]).trim().replace(g,"")).length<2)return"";for(;i.length%4!=0;)i+="=";return i}(i))}function blitBuffer(i,u,c,f){for(var h=0;h<f&&!(h+c>=u.length)&&!(h>=i.length);++h)u[h+c]=i[h];return h}function isInstance(i,u){return i instanceof u||null!=i&&null!=i.constructor&&null!=i.constructor.name&&i.constructor.name===u.name}var v=function(){for(var i="0123456789abcdef",u=Array(256),c=0;c<16;++c)for(var f=16*c,h=0;h<16;++h)u[f+h]=i[c]+i[h];return u}()},783:function(i,u){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */u.read=function(i,u,c,f,h){var b,g,v=8*h-f-1,E=(1<<v)-1,S=E>>1,x=-7,A=c?h-1:0,B=c?-1:1,j=i[u+A];for(A+=B,b=j&(1<<-x)-1,j>>=-x,x+=v;x>0;b=256*b+i[u+A],A+=B,x-=8);for(g=b&(1<<-x)-1,b>>=-x,x+=f;x>0;g=256*g+i[u+A],A+=B,x-=8);if(0===b)b=1-S;else{if(b===E)return g?NaN:(j?-1:1)*(1/0);g+=Math.pow(2,f),b-=S}return(j?-1:1)*g*Math.pow(2,b-f)},u.write=function(i,u,c,f,h,b){var g,v,E,S=8*b-h-1,x=(1<<S)-1,A=x>>1,B=23===h?5960464477539062e-23:0,j=f?0:b-1,R=f?1:-1,q=u<0||0===u&&1/u<0?1:0;for(isNaN(u=Math.abs(u))||u===1/0?(v=isNaN(u)?1:0,g=x):(g=Math.floor(Math.log(u)/Math.LN2),u*(E=Math.pow(2,-g))<1&&(g--,E*=2),g+A>=1?u+=B/E:u+=B*Math.pow(2,1-A),u*E>=2&&(g++,E/=2),g+A>=x?(v=0,g=x):g+A>=1?(v=(u*E-1)*Math.pow(2,h),g+=A):(v=u*Math.pow(2,A-1)*Math.pow(2,h),g=0));h>=8;i[c+j]=255&v,j+=R,v/=256,h-=8);for(g=g<<h|v,S+=h;S>0;i[c+j]=255&g,j+=R,g/=256,S-=8);i[c+j-R]|=128*q}}},c={};function __nccwpck_require__(i){var f=c[i];if(void 0!==f)return f.exports;
6var h=c[i]={exports:{}},b=!0;try{u[i](h,h.exports,__nccwpck_require__),b=!1}finally{b&&delete c[i]}return h.exports}__nccwpck_require__.ab="//";var f=__nccwpck_require__(72);i.exports=f}()},77663:function(i){!function(){var u={229:function(i){var u,c,f,h=i.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(i){if(u===setTimeout)return setTimeout(i,0);if((u===defaultSetTimout||!u)&&setTimeout)return u=setTimeout,setTimeout(i,0);try{return u(i,0)}catch(c){try{return u.call(null,i,0)}catch(c){return u.call(this,i,0)}}}!function(){try{u="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(i){u=defaultSetTimout}try{c="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(i){c=defaultClearTimeout}}();var b=[],g=!1,v=-1;function cleanUpNextTick(){g&&f&&(g=!1,f.length?b=f.concat(b):v=-1,b.length&&drainQueue())}function drainQueue(){if(!g){var i=runTimeout(cleanUpNextTick);g=!0;for(var u=b.length;u;){for(f=b,b=[];++v<u;)f&&f[v].run();v=-1,u=b.length}f=null,g=!1,function(i){if(c===clearTimeout)return clearTimeout(i);if((c===defaultClearTimeout||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(i);try{c(i)}catch(u){try{return c.call(null,i)}catch(u){return c.call(this,i)}}}(i)}}function Item(i,u){this.fun=i,this.array=u}function noop(){}h.nextTick=function(i){var u=Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)u[c-1]=arguments[c];b.push(new Item(i,u)),1!==b.length||g||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=noop,h.addListener=noop,h.once=noop,h.off=noop,h.removeListener=noop,h.removeAllListeners=noop,h.emit=noop,h.prependListener=noop,h.prependOnceListener=noop,h.listeners=function(i){return[]},h.binding=function(i){throw Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(i){throw Error("process.chdir is not supported")},h.umask=function(){return 0}}},c={};function __nccwpck_require__(i){var f=c[i];if(void 0!==f)return f.exports;
6var h=c[i]={exports:{}},b=!0;try{u[i](h,h.exports,__nccwpck_require__),b=!1}finally{b&&delete c[i]}return h.exports}__nccwpck_require__.ab="//";var f=__nccwpck_require__(229);i.exports=f}()},23259:function(i,u,c){"use strict";c.d(u,{C:function(){return C},N:function(){return stegaClean}});var f={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},h={0:8203,1:8204,2:8205,3:65279},b=[,,,,].fill(String.fromCodePoint(h[0])).join("");function C(i,u,c="auto"){let f;return!0===c||"auto"===c&&(!(!Number.isNaN(Number(i))||/[a-z]/i.test(i)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(i))&&Date.parse(i)||function(i){try{new URL(i,i.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(i))?i:`${i}${f=JSON.stringify(u),`${b}${Array.from(f).map(i=>{let u=i.charCodeAt(0);if(u>255)throw Error(`Only ASCII edit info can be encoded. Error attempting to encode ${f} on character ${i} (${u})`);return Array.from(u.toString(4).padStart(4,"0")).map(i=>String.fromCodePoint(h[i])).join("")}).join("")}`}`}Object.fromEntries(Object.entries(h).map(i=>i.reverse())),Object.fromEntries(Object.entries(f).map(i=>i.reverse()));var g=`${Object.values(f).map(i=>`\\u{${i.toString(16)}}`).join("")}`,v=RegExp(`[${g}]{4,}`,"gu");function stegaClean(i){var u,c;return i&&JSON.parse({cleaned:(u=JSON.stringify(i)).replace(v,""),encoded:(null==(c=u.match(v))?void 0:c[0])||""}.cleaned)}},85088:function(i,u,c){"use strict";c.d(u,{eI:function(){return eJ}});let f=!(typeof navigator>"u")&&"ReactNative"===navigator.product,h={timeout:f?6e4:12e4},_commonjsHelpers_r=function(i){let u={...h,..."string"==typeof i?{url:i}:i};if(u.timeout=function n(i){if(!1===i||0===i)return!1;if(i.connect||i.socket)return i;let u=Number(i);return isNaN(u)?n(h.timeout):{connect:u,socket:u}}(u.timeout),u.query){let{url:i,searchParams:c}=function(i){let u=i.indexOf("?");if(-1===u)return{url:i,searchParams:new URLSearchParams};let c=i.slice(0,u),h=i.slice(u+1);if(!f)return{url:c,searchParams:new URLSearchParams(h)};if("function"!=typeof decodeURIComponent)throw Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");let b=new URLSearchParams;for(let i of h.split("&")){let[u,c]=i.split("=");u&&b.append(o(u),o(c||""))}return{url:c,searchParams:b}}(u.url);for(let[f,h]of Object.entries(u.query)){if(void 0!==h){if(Array.isArray(h))for(let i of h)c.append(f,i);else c.append(f,h)}let b=c.toString();b&&(u.url=`${i}?${b}`)}}return u.method=u.body&&!u.method?"POST":(u.method||"GET").toUpperCase(),u};function o(i){return decodeURIComponent(i.replace(/\+/g," "))}let b=/^https?:\/\//i,s=function(i){if(!b.test(i.url))throw Error(`"${i.url}" is not a valid URL`)},g=["request","response","progress","error","abort"],v=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];var E,S,x,A,B,j,R=(E=function(){if(j)return B;j=1;var e=function(i){return i.replace(/^\s+|\s+$/g,"")};return B=function(i){if(!i)return{};for(var u,c={},f=e(i).split("\n"),h=0;h<f.length;h++){var b=f[h],g=b.indexOf(":"),v=e(b.slice(0,g)).toLowerCase(),E=e(b.slice(g+1));typeof c[v]>"u"?c[v]=E:(u=c[v],"[object Array]"===Object.prototype.toString.call(u)?c[v].push(E):c[v]=[c[v],E])}return c}}())&&E.__esModule&&Object.prototype.hasOwnProperty.call(E,"default")?E.default:E;let l=class l{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText="";responseType="";status;statusText;withCredentials;#e;#t;#r;#n={};#i;#o={};#s;open(i,u,c){this.#e=i,this.#t=u,this.#r="",this.readyState=1,this.onreadystatechange?.(),this.#i=void 0}abort(){this.#i&&this.#i.abort()}getAllResponseHeaders(){return this.#r}setRequestHeader(i,u){this.#n[i]=u}setInit(i,u=!0){this.#o=i,this.#s=u}send(i){let u="arraybuffer"!==this.responseType,c={...this.#o,method:this.#e,headers:this.#n,body:i};"function"==typeof AbortController&&this.#s&&(this.#i=new AbortController,"u">typeof EventTarget&&this.#i.signal instanceof EventTarget&&(c.signal=this.#i.signal)),"u">typeof document&&(c.credentials=this.withCredentials?"include":"omit"),fetch(this.#t,c).then(i=>
6(i.headers.forEach((i,u)=>{this.#r+=`${u}: ${i}\r
7`}),this.status=i.status,this.statusText=i.statusText,this.readyState=3,this.onreadystatechange?.(),u?i.text():i.arrayBuffer())).then(i=>{"string"==typeof i?this.responseText=i:this.response=i,this.readyState=4,this.onreadystatechange?.()}).catch(i=>{"AbortError"!==i.name?this.onerror?.(i):this.onabort?.()})}};let q="function"==typeof XMLHttpRequest?"xhr":"fetch",k="xhr"===q?XMLHttpRequest:l,d=(i,u)=>{let c=i.options,f=i.applyMiddleware("finalizeOptions",c),h={},b=i.applyMiddleware("interceptRequest",void 0,{adapter:q,context:i});if(b){let i=setTimeout(u,0,null,b);return{abort:()=>clearTimeout(i)}}let g=new k;g instanceof l&&"object"==typeof f.fetch&&g.setInit(f.fetch,f.useAbortSignal??!0);let v=f.headers,E=f.timeout,S=!1,x=!1,A=!1;if(g.onerror=i=>{m(g instanceof l?i instanceof Error?i:Error(`Request error while attempting to reach is ${f.url}`,{cause:i}):Error(`Request error while attempting to reach is ${f.url}${i.lengthComputable?`(${i.loaded} of ${i.total} bytes transferred)`:""}`))},g.ontimeout=i=>{m(Error(`Request timeout while attempting to reach ${f.url}${i.lengthComputable?`(${i.loaded} of ${i.total} bytes transferred)`:""}`))},g.onabort=()=>{w(!0),S=!0},g.onreadystatechange=()=>{E&&(w(),h.socket=setTimeout(()=>y("ESOCKETTIMEDOUT"),E.socket)),S||4!==g.readyState||0===g.status||function(){if(!(S||x||A)){if(0===g.status)return void m(Error("Unknown XHR error"));w(),x=!0,u(null,{body:g.response||(""===g.responseType||"text"===g.responseType?g.responseText:""),url:f.url,method:f.method,headers:R(g.getAllResponseHeaders()),statusCode:g.status,statusMessage:g.statusText})}}()},g.open(f.method,f.url,!0),g.withCredentials=!!f.withCredentials,v&&g.setRequestHeader)for(let i in v)v.hasOwnProperty(i)&&g.setRequestHeader(i,v[i]);return f.rawBody&&(g.responseType="arraybuffer"),i.applyMiddleware("onRequest",{options:f,adapter:q,request:g,context:i}),g.send(f.body||null),E&&(h.connect=setTimeout(()=>y("ETIMEDOUT"),E.connect)),{abort:function(){S=!0,g&&g.abort()}};function y(u){A=!0,g.abort();let c=Error("ESOCKETTIMEDOUT"===u?`Socket timed out on request to ${f.url}`:`Connection timed out on request to ${f.url}`);c.code=u,i.channels.error.publish(c)}function w(i){(i||S||g.readyState>=2&&h.connect)&&clearTimeout(h.connect),h.socket&&clearTimeout(h.socket)}function m(i){if(x)return;w(!0),x=!0,g=null;let c=i||Error(`Network error while attempting to reach ${f.url}`);
7c.isNetworkError=!0,c.request=f,u(c)}},p=(i=[],u=d)=>(function index_browser_n(i,u){let c=[],f=v.reduce((i,u)=>(i[u]=i[u]||[],i),{processOptions:[_commonjsHelpers_r],validateOptions:[s]});function l(i){let c;let h=g.reduce((i,u)=>(i[u]=function(){let i=Object.create(null),u=0;return{publish:function(u){for(let c in i)i[c](u)},subscribe:function(c){let f=u++;return i[f]=c,function(){delete i[f]}}}}(),i),{}),r=function(i,u,...c){let h="onError"===i,b=u;for(let u=0;u<f[i].length&&(b=(0,f[i][u])(b,...c),!h||b);u++);return b},b=r("processOptions",i);r("validateOptions",b);let v={options:b,channels:h,applyMiddleware:r},E=h.request.subscribe(i=>{c=u(i,(u,c)=>((i,u,c)=>{let f=i,b=u;if(!f)try{b=r("onResponse",u,c)}catch(i){b=null,f=i}(f=f&&r("onError",f,c))?h.error.publish(f):b&&h.response.publish(b)})(u,c,i))});h.abort.subscribe(()=>{E(),c&&c.abort()});let S=r("onReturn",h,v);return S===h&&h.request.publish(v),S}return l.use=function(i){if(!i)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof i)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(i.onReturn&&f.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return v.forEach(u=>{i[u]&&f[u].push(i[u])}),c.push(i),l},l.clone=()=>index_browser_n(c,u),i.forEach(l.use),l})(i,u);var F,U,D,M,L,z=c(83454),H=c(21876).Buffer,V={exports:{}};L||(L=1,function(i,u){let c;u.formatArgs=function(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+i.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;u.splice(1,0,c,"color: inherit");let f=0,h=0;u[0].replace(/%[a-zA-Z%]/g,i=>{"%%"!==i&&(f++,"%c"===i&&(h=f))}),u.splice(h,0,c)},u.save=function(i){try{i?u.storage.setItem("debug",i):u.storage.removeItem("debug")}catch{}},u.load=function(){let i;try{i=u.storage.getItem("debug")}catch{}return!i&&"u">typeof z&&"env"in z&&(i=z.env.DEBUG),i},u.useColors=function(){let i;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&&(i=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(i[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},u.storage=function(){try{return localStorage}catch{}}(),u.destroy=(c=!1,()=>{c||(c=!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`."))}),u.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"],u.log=console.debug||console.log||(()=>{}),i.exports=(M?D:(M=1,D=function(i){function t(i){let u,c,f,h=null;function a(...i){if(!a.enabled)return;let c=Number(new Date),f=c-(u||c);a.diff=f,a.prev=u,a.curr=c,u=c,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");let h=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(u,c)=>{if("%%"===u)return"%";h++;let f=t.formatters[c];if("function"==typeof f){let c=i[h];u=f.call(a,c),i.splice(h,1),h--}return u}),t.formatArgs.call(a,i),(a.log||t.log).apply(a,i)}return a.namespace=i,a.useColors=t.useColors(),a.color=t.selectColor(i),a.extend=s,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==h?h:(c!==t.namespaces&&(c=t.namespaces,f=t.enabled(i)),f),set:i=>{h=i}}),"function"==typeof t.init&&t.init(a),a}function s(i,u){let c=t(this.namespace+(typeof u>"u"?":":u)+i);return c.log=this.log,c}function n(i,u){let c=0,f=0,h=-1,b=0;for(;c<i.length;)if(f<u.length&&(u[f]===i[c]||"*"===u[f]))"*"===u[f]?(h=f,b=c):c++,f++;else{if(-1===h)return!1;f=h+1,c=++b}for(;f<u.length&&"*"===u[f];)f++;return f===u.length}return t.debug=t,t.default=t,t.coerce=function(i){return i instanceof Error?i.stack||i.message:i},t.disable=function(){let i=[...t.names,...t.skips.map(i=>"-"+i)].join(",");return t.enable(""),i},t.enable=function(i){t.save(i),t.namespaces=i,t.names=[],t.skips=[];let u=("string"==typeof i?i:"").trim().replace(" ",",").split(",").filter(
7Boolean);for(let i of u)"-"===i[0]?t.skips.push(i.slice(1)):t.names.push(i)},t.enabled=function(i){for(let u of t.skips)if(n(i,u))return!1;for(let u of t.names)if(n(i,u))return!0;return!1},t.humanize=function(){if(U)return F;function o(i,u,c,f){return Math.round(i/c)+" "+f+(u>=1.5*c?"s":"")}return U=1,F=function(i,u){u=u||{};var c,f,h=typeof i;if("string"===h&&i.length>0)return function(i){if(!((i=String(i)).length>100)){var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(u){var c=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*c;case"weeks":case"week":case"w":return 6048e5*c;case"days":case"day":case"d":return 864e5*c;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*c;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*c;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}(i);if("number"===h&&isFinite(i))return u.long?(f=Math.abs(i))>=864e5?o(i,f,864e5,"day"):f>=36e5?o(i,f,36e5,"hour"):f>=6e4?o(i,f,6e4,"minute"):f>=1e3?o(i,f,1e3,"second"):i+" ms":(c=Math.abs(i))>=864e5?Math.round(i/864e5)+"d":c>=36e5?Math.round(i/36e5)+"h":c>=6e4?Math.round(i/6e4)+"m":c>=1e3?Math.round(i/1e3)+"s":i+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))}}(),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`.")}
7,Object.keys(i).forEach(u=>{t[u]=i[u]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(i){let u=0;for(let c=0;c<i.length;c++)u=(u<<5)-u+i.charCodeAt(c)|0;return t.colors[Math.abs(u)%t.colors.length]},t.enable(t.load()),t}))(u);let{formatters:f}=i.exports;f.j=function(i){try{return JSON.stringify(i)}catch(i){return"[UnexpectedJSONParseError]: "+i.message}}}(V,V.exports)),V.exports,Object.prototype.hasOwnProperty;let W=typeof H>"u"?()=>!1:i=>H.isBuffer(i);function O(i){return"[object Object]"===Object.prototype.toString.call(i)}let G=["boolean","string","number"],J={};"u">typeof globalThis?J=globalThis:"u">typeof window?J=window:"u">typeof global?J=global:"u">typeof self&&(J=self);var Y=J;let N=(i={})=>{let u=i.implementation||Promise;if(!u)throw Error("`Promise` is not available in global scope, and no implementation was passed");return{onReturn:(c,f)=>new u((u,h)=>{let b=f.options.cancelToken;b&&b.promise.then(i=>{c.abort.publish(i),h(i)}),c.error.subscribe(h),c.response.subscribe(c=>{u(i.onlyBody?c.body:c)}),setTimeout(()=>{try{c.request.publish(f)}catch(i){h(i)}},0)})}};let T=class T{__CANCEL__=!0;message;constructor(i){this.message=i}toString(){return"Cancel"+(this.message?`: ${this.message}`:"")}};let I=class I{promise;reason;constructor(i){if("function"!=typeof i)throw TypeError("executor must be a function.");let u=null;this.promise=new Promise(i=>{u=i}),i(i=>{this.reason||(this.reason=new T(i),u(this.reason))})}static source=()=>{let i;return{token:new I(u=>{i=u}),cancel:i}}};N.Cancel=T,N.CancelToken=I,N.isCancel=i=>!(!i||!i?.__CANCEL__);var $=(i,u,c)=>("GET"===c.method||"HEAD"===c.method)&&(i.isNetworkError||!1);function _(i){return 100*Math.pow(2,i)+100*Math.random()}let P=(i={})=>(i=>{let u=i.maxRetries||5,c=i.retryDelay||_,f=i.shouldRetry;return{onError:(i,h)=>{var b;let g=h.options,v=g.maxRetries||u,E=g.retryDelay||c,S=g.shouldRetry||f,x=g.attemptNumber||0;if(null!==(b=g.body)&&"object"==typeof b&&"function"==typeof b.pipe||!S(i,x,g)||x>=v)return i;let A=Object.assign({},h,{options:Object.assign({},g,{attemptNumber:x+1})});return setTimeout(()=>h.channels.request.publish(A),E(x)),null}}})({shouldRetry:$,...i});P.shouldRetry=$;var extendStatics=function(i,u){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(i,u){i.__proto__=u}||function(i,u){for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(i[c]=u[c])})(i,u)};function __extends(i,u){if("function"!=typeof u&&null!==u)throw TypeError("Class extends value "+String(u)+" is not a constructor or null");function __(){this.constructor=i}extendStatics(i,u),i.prototype=null===u?Object.create(u):(__.prototype=u.prototype,new __)}function __generator(i,u){var c,f,h,b={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=verb(0),g.throw=verb(1),g.return=verb(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function verb(v){return function(E){return function(v){if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,v[0]&&(b=0)),b;)try{if(c=1,f&&(h=2&v[0]?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(
7h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[2&v[0],h.value]),v[0]){case 0:case 1:h=v;break;case 4:return b.label++,{value:v[1],done:!1};case 5:b.label++,f=v[1],v=[0];continue;case 7:v=b.ops.pop(),b.trys.pop();continue;default:if(!(h=(h=b.trys).length>0&&h[h.length-1])&&(6===v[0]||2===v[0])){b=0;continue}if(3===v[0]&&(!h||v[1]>h[0]&&v[1]<h[3])){b.label=v[1];break}if(6===v[0]&&b.label<h[1]){b.label=h[1],h=v;break}if(h&&b.label<h[2]){b.label=h[2],b.ops.push(v);break}h[2]&&b.ops.pop(),b.trys.pop();continue}v=u.call(i,b)}catch(i){v=[6,i],f=0}finally{c=h=0}if(5&v[0])throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}([v,E])}}}function __values(i){var u="function"==typeof Symbol&&Symbol.iterator,c=u&&i[u],f=0;if(c)return c.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&f>=i.length&&(i=void 0),{value:i&&i[f++],done:!i}}};throw TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(i,u){var c="function"==typeof Symbol&&i[Symbol.iterator];if(!c)return i;var f,h,b=c.call(i),g=[];try{for(;(void 0===u||u-- >0)&&!(f=b.next()).done;)g.push(f.value)}catch(i){h={error:i}}finally{try{f&&!f.done&&(c=b.return)&&c.call(b)}finally{if(h)throw h.error}}return g}function __spreadArray(i,u,c){if(c||2==arguments.length)for(var f,h=0,b=u.length;h<b;h++)!f&&h in u||(f||(f=Array.prototype.slice.call(u,0,h)),f[h]=u[h]);return i.concat(f||Array.prototype.slice.call(u))}function __await(i){return this instanceof __await?(this.v=i,this):new __await(i)}function isFunction(i){return"function"==typeof i}function createErrorClass(i){var u=i(function(i){Error.call(i),i.stack=Error().stack});return u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u}"function"==typeof SuppressedError&&SuppressedError;var Q=createErrorClass(function(i){return function(u){i(this),this.message=u?u.length+" errors occurred during unsubscription:\n"+u.map(function(i,u){return u+1+") "+i.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=u}});function arrRemove(i,u){if(i){var c=i.indexOf(u);0<=c&&i.splice(c,1)}}var X=function(){var i;function Subscription(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}return Subscription.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var i,u,c,f,h,b=this._parentage;if(b){if(this._parentage=null,Array.isArray(b))try{for(var g=__values(b),v=g.next();!v.done;v=g.next())v.value.remove(this)}catch(u){i={error:u}}finally{try{v&&!v.done&&(u=g.return)&&u.call(g)}finally{if(i)throw i.error}}else b.remove(this)}var E=this.initialTeardown;if(isFunction(E))try{E()}catch(i){h=i instanceof Q?i.errors:[i]}var S=this._finalizers;if(S){this._finalizers=null;try{for(var x=__values(S),A=x.next();!A.done;A=x.next()){var B=A.value;try{execFinalizer(B)}catch(i){h=null!=h?h:[],i instanceof Q?h=__spreadArray(__spreadArray([],__read(h)),__read(i.errors)):h.push(i)}}}catch(i){c={error:i}}finally{try{A&&!A.done&&(f=x.return)&&f.call(x)}finally{if(c)throw c.error}}}if(h)throw new Q(h)}},Subscription.prototype.add=function(i){var u;if(i&&i!==this){if(this.closed)execFinalizer(i);else{if(i instanceof Subscription){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=null!==(u=this._finalizers)&&void 0!==u?u:[]).push(i)}}},Subscription.prototype._hasParent=function(i){var u=this._parentage;return u===i||Array.isArray(u)&&u.includes(i)},Subscription.prototype._addParent=function(i){var u=this._parentage;this._parentage=Array.isArray(u)?(u.push(i),u):u?[u,i]:i},Subscription.prototype._removeParent=function(i){var u=this._parentage;u===i?this._parentage=null:Array.isArray(u)&&arrRemove(u,i)},Subscription.prototype.remove=function(i){var u=this._finalizers;u&&arrRemove(u,i),i instanceof Subscription&&i._removeParent(this)},Subscription.EMPTY=((i=new Subscription).closed=!0,i),Subscription}(),Z=X.EMPTY;function isSubscription(i){return i instanceof X||i&&"closed"in i&&isFunction(i.remove)&&isFunction(i.add)&&isFunction(i.unsubscribe)}function execFinalizer(i){isFunction(i)?i():i.unsubscribe()}var K={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNext
7Context:!1},ee={setTimeout:function(i,u){for(var c=[],f=2;f<arguments.length;f++)c[f-2]=arguments[f];var h=ee.delegate;return(null==h?void 0:h.setTimeout)?h.setTimeout.apply(h,__spreadArray([i,u],__read(c))):setTimeout.apply(void 0,__spreadArray([i,u],__read(c)))},clearTimeout:function(i){var u=ee.delegate;return((null==u?void 0:u.clearTimeout)||clearTimeout)(i)},delegate:void 0};function reportUnhandledError(i){ee.setTimeout(function(){var u=K.onUnhandledError;if(u)u(i);else throw i})}function noop(){}var et=createNotification("C",void 0,void 0);function createNotification(i,u,c){return{kind:i,value:u,error:c}}var er=null;function errorContext(i){if(K.useDeprecatedSynchronousErrorHandling){var u=!er;if(u&&(er={errorThrown:!1,error:null}),i(),u){var c=er,f=c.errorThrown,h=c.error;if(er=null,f)throw h}}else i()}var en=function(i){function Subscriber(u){var c=i.call(this)||this;return c.isStopped=!1,u?(c.destination=u,isSubscription(u)&&u.add(c)):c.destination=ea,c}return __extends(Subscriber,i),Subscriber.create=function(i,u,c){return new es(i,u,c)},Subscriber.prototype.next=function(i){this.isStopped?handleStoppedNotification(createNotification("N",i,void 0),this):this._next(i)},Subscriber.prototype.error=function(i){this.isStopped?handleStoppedNotification(createNotification("E",void 0,i),this):(this.isStopped=!0,this._error(i))},Subscriber.prototype.complete=function(){this.isStopped?handleStoppedNotification(et,this):(this.isStopped=!0,this._complete())},Subscriber.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},Subscriber.prototype._next=function(i){this.destination.next(i)},Subscriber.prototype._error=function(i){try{this.destination.error(i)}finally{this.unsubscribe()}},Subscriber.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Subscriber}(X),ei=Function.prototype.bind;function bind(i,u){return ei.call(i,u)}var eo=function(){function ConsumerObserver(i){this.partialObserver=i}return ConsumerObserver.prototype.next=function(i){var u=this.partialObserver;if(u.next)try{u.next(i)}catch(i){handleUnhandledError(i)}},ConsumerObserver.prototype.error=function(i){var u=this.partialObserver;if(u.error)try{u.error(i)}catch(i){handleUnhandledError(i)}else handleUnhandledError(i)},ConsumerObserver.prototype.complete=function(){var i=this.partialObserver;if(i.complete)try{i.complete()}catch(i){handleUnhandledError(i)}},ConsumerObserver}(),es=function(i){function SafeSubscriber(u,c,f){var h,b,g=i.call(this)||this;return isFunction(u)||!u?h={next:null!=u?u:void 0,error:null!=c?c:void 0,complete:null!=f?f:void 0}:g&&K.useDeprecatedNextContext?((b=Object.create(u)).unsubscribe=function(){return g.unsubscribe()},h={next:u.next&&bind(u.next,b),error:u.error&&bind(u.error,b),complete:u.complete&&bind(u.complete,b)}):h=u,g.destination=new eo(h),g}return __extends(SafeSubscriber,i),SafeSubscriber}(en);function handleUnhandledError(i){K.useDeprecatedSynchronousErrorHandling?K.useDeprecatedSynchronousErrorHandling&&er&&(er.errorThrown=!0,er.error=i):reportUnhandledError(i)}function handleStoppedNotification(i,u){var c=K.onStoppedNotification;c&&ee.setTimeout(function(){return c(i,u)})}var ea={closed:!0,next:noop,error:function(i){throw i},complete:noop},eu="function"==typeof Symbol&&Symbol.observable||"@@observable";function identity_identity(i){return i}function pipeFromArray(i){return 0===i.length?identity_identity:1===i.length?i[0]:function(u){return i.reduce(function(i,u){return u(i)},u)}}var ec=function(){function Observable(i){i&&(this._subscribe=i)}return Observable.prototype.lift=function(i){var u=new Observable;return u.source=this,u.operator=i,u},Observable.prototype.subscribe=function(i,u,c){var f,h=this,b=(f=i)&&f instanceof en||f&&isFunction(f.next)&&isFunction(f.error)&&isFunction(f.complete)&&isSubscription(f)?i:new es(i,u,c);return errorContext(function(){var i=h.operator,u=h.source;b.add(i?i.call(b,u):u?h._subscribe(b):h._trySubscribe(b))}),b},Observable.prototype._trySubscribe=function(i){try{return this._subscribe(i)}catch(u){i.error(u)}},Observable.prototype.forEach=function(i,u){var c=this;return new(u=getPromiseCtor(u))(function(u,f){var h=new es({next:function(u){try{i(u)}catch(i){f(i),h.unsubscribe()}},error:f,complete:u});c.subscribe(h)})},Observable.prototype._subscribe=function(i){var u;return null===(u=this.source)||void 0===u?void 0:u.subscribe(i)},Observable.prototype[eu]=function(){return this},Observable.prototype.pipe=function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];return pipeFromArray(i)(this)},Observable.prototype.toPromise=function(i){var u=this;return new(i=getPromiseCtor(i))(function(i,c){var f;u.subscribe(function(i){return f=i},function(i){return c(i)},function(){return i(f)})})},Observable.create=function(i){return new Observable(i)},Observable}();function getPromiseCtor(i){var u;return null!==(u=null!=i?i:K.Promise)&&void 0!==u?u:Promise}var isArrayLike=function(i){return i&&"number"==typeof i.length&&"function"!=typeof i};function isPromise(i){return isFunction(null==i?void 0:i.then)}function isAsyncIterable(i){return Symbol.asyncIterator&&isFunction(null==i?void 0:i[Symbol.asyncIterator])}function createInvalidObservableTypeError(i){return TypeError("You provided "+(null!==i&&"object"==typeof i?"an invali
7d object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var el="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function isIterable(i){return isFunction(null==i?void 0:i[el])}function readableStreamLikeToAsyncGenerator(i){return function(i,u,c){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var f,h=c.apply(i,u||[]),b=[];return f=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),verb("next"),verb("throw"),verb("return",function(i){return function(u){return Promise.resolve(u).then(i,reject)}}),f[Symbol.asyncIterator]=function(){return this},f;function verb(i,u){h[i]&&(f[i]=function(u){return new Promise(function(c,f){b.push([i,u,c,f])>1||resume(i,u)})},u&&(f[i]=u(f[i])))}function resume(i,u){try{var c;(c=h[i](u)).value instanceof __await?Promise.resolve(c.value.v).then(fulfill,reject):settle(b[0][2],c)}catch(i){settle(b[0][3],i)}}function fulfill(i){resume("next",i)}function reject(i){resume("throw",i)}function settle(i,u){i(u),b.shift(),b.length&&resume(b[0][0],b[0][1])}}(this,arguments,function(){var u,c,f;return __generator(this,function(h){switch(h.label){case 0:u=i.getReader(),h.label=1;case 1:h.trys.push([1,,9,10]),h.label=2;case 2:return[4,__await(u.read())];case 3:if(f=(c=h.sent()).value,!c.done)return[3,5];return[4,__await(void 0)];case 4:return[2,h.sent()];case 5:return[4,__await(f)];case 6:return[4,h.sent()];case 7:return h.sent(),[3,2];case 8:return[3,10];case 9:return u.releaseLock(),[7];case 10:return[2]}})})}function isReadableStreamLike(i){return isFunction(null==i?void 0:i.getReader)}function innerFrom(i){if(i instanceof ec)return i;if(null!=i){if(isFunction(i[eu]))return new ec(function(u){var c=i[eu]();if(isFunction(c.subscribe))return c.subscribe(u);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(isArrayLike(i))return new ec(function(u){for(var c=0;c<i.length&&!u.closed;c++)u.next(i[c]);u.complete()});if(isPromise(i))return new ec(function(u){i.then(function(i){u.closed||(u.next(i),u.complete())},function(i){return u.error(i)}).then(null,reportUnhandledError)});if(isAsyncIterable(i))return fromAsyncIterable(i);if(isIterable(i))return new ec(function(u){var c,f;try{for(var h=__values(i),b=h.next();!b.done;b=h.next()){var g=b.value;if(u.next(g),u.closed)return}}catch(i){c={error:i}}finally{try{b&&!b.done&&(f=h.return)&&f.call(h)}finally{if(c)throw c.error}}u.complete()});if(isReadableStreamLike(i))return fromAsyncIterable(readableStreamLikeToAsyncGenerator(i))}throw createInvalidObservableTypeError(i)}function fromAsyncIterable(i){return new ec(function(u){(function(i,u){var c,f,h,b,g,v,E,S;return g=this,v=void 0,E=void 0,S=function(){var g;return __generator(this,function(v){switch(v.label){case 0:v.trys.push([0,5,6,11]),c=function(i){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var u,c=i[Symbol.asyncIterator];return c?c.call(i):(i=__values(i),u={},verb("next"),verb("throw"),verb("return"),u[Symbol.asyncIterator]=function(){return this},u);function verb(c){u[c]=i[c]&&function(u){return new Promise(function(f,h){(function(i,u,c,f){Promise.resolve(f).then(function(u){i({value:u,done:c})},u)})(f,h,(u=i[c](u)).done,u.value)})}}}(i),v.label=1;case 1:return[4,c.next()];case 2:if((f=v.sent()).done)return[3,4];if(g=f.value,u.next(g),u.closed)return[2];v.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return h={error:v.sent()},[3,11];case 6:if(v.trys.push([6,,9,10]),!(f&&!f.done&&(b=c.return)))return[3,8];return[4,b.call(c)];case 7:v.sent(),v.label=8;case 8:return[3,10];case 9:if(h)throw h.error;return[7];case 10:return[7];case 11:return u.complete(),[2]}})},new(E||(E=Promise))(function(i,u){function fulfilled(i){try{step(S.next(i))}catch(i){u(i)}}function rejected(i){try{step(S.throw(i))}catch(i){u(i)}}function step(u){var c;u.done?i(u.value):((c=u.value)instanceof E?c:new E(function(i){i(c)})).then(fulfilled,rejected)}step((S=S.apply(g,v||[])).next())})})(i,u).catch(function(i){return u.error(i)})})}function defer(i){return new ec(function(u){innerFrom(i()).subscribe(u)})}function isScheduler(i){return i&&isFunction(i.schedule)}function last(i){return i[i.length-1]}function args_popScheduler(i){return isScheduler(last(i))?i.pop():void 0}function executeSchedule(i,u,c,f,h){void 0===f&&(f=0),void 0===h&&(h=!1);var b=u.schedule(function(){c(),h?i.add(this.schedule(null,f)):this.unsubscribe()},f);if(i.add(b),!h)return b}function operate(i){return function(u){if(isFunction(null==u?void 0:u.lift))return u.lift(function(u){try{return i(u,this)}catch(i){this.error(i)}});throw TypeError("Unable to lift unknown Observable type")}}function createOperatorSubscriber(i,u,c,f,h){return new ef(i,u,c,f,h)}var ef=function(i){function OperatorSubscriber(u,c,f,h,b,g){var v=i.call(this,u)||this;return v.onFinalize=b,v.shouldUnsubscribe=g,v._next=c?function(i){try{c(i)}catch(i){u.error(i)}}:i.prototype._next,v._error=h?function(i){try{h(i)}catch(i){u.error(i)}finally{this.unsubscribe()}}:i.prototype._error,v._complete=f?function(){try{f()}catch(i){u.error(i)}finally{this.unsubscribe()}}:i.prototype._complete,v}return __extends(OperatorSubscriber,i),OperatorSubscriber.prototype.unsubscribe=function(){var u;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var c=this.closed;i.prototype.unsubscribe.call(this),c||null===(u=this.onFinalize)||void 0===u||u.call(this)}},OperatorSubscriber}(en);function observeOn(i,u){return void 0===u&&(u=0),operate(function(c,f){c.subscribe(createOperatorSubscriber(f,function(c){return executeSchedule(f,i,function(){return f.next(c)},u)},function(){return executeSchedule(f,i,function(){return f.complete()},u)},function(c){return executeSchedule(f,i,function(){return f.error(c)},u)}))})}function subscribeOn(i,u){return void 0===u&&(u=0),operate(function(c,f){f.add(i.schedule(function(){return c.subscribe(f)},u))})}function scheduleAsyncIterable(i,u){if(!i)throw Error("Iterable cannot be null");return new ec(function(c){executeSchedule(c,u,function(){var f=i[Symbol.asyncIterator]();executeSchedule(c,u,function(){f.next().then(function(i){i.done?c.complete():c.next(i.value)})},0,!0)})})}function from_from(i,u){return u?function(i,u){if(null!=i){if(isFunction(i[eu]))return innerFrom(i).pipe(subscribeOn(u),observeOn(u));if(isArrayLike(i))return new ec(function(c){var f=0;return u.schedule(function(){f===i.length?c.complete():(c.next(i[f++]),c.closed||this.schedule())})});
7if(isPromise(i))return innerFrom(i).pipe(subscribeOn(u),observeOn(u));if(isAsyncIterable(i))return scheduleAsyncIterable(i,u);if(isIterable(i))return new ec(function(c){var f;return executeSchedule(c,u,function(){f=i[el](),executeSchedule(c,u,function(){var i,u,h;try{u=(i=f.next()).value,h=i.done}catch(i){c.error(i);return}h?c.complete():c.next(u)},0,!0)}),function(){return isFunction(null==f?void 0:f.return)&&f.return()}});if(isReadableStreamLike(i))return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(i),u)}throw createInvalidObservableTypeError(i)}(i,u):innerFrom(i)}function of(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var c=args_popScheduler(i);return from_from(i,c)}function map(i,u){return operate(function(c,f){var h=0;c.subscribe(createOperatorSubscriber(f,function(c){f.next(i.call(u,c,h++))}))})}function mergeMap(i,u,c){return(void 0===c&&(c=1/0),isFunction(u))?mergeMap(function(c,f){return map(function(i,h){return u(c,i,f,h)})(innerFrom(i(c,f)))},c):("number"==typeof u&&(c=u),operate(function(u,f){var h,b,g,v,E,S,x,A,B,j,R,q;return h=c,S=[],x=0,A=0,B=!1,j=function(){!B||S.length||x||f.complete()},R=function(i){return x<h?q(i):S.push(i)},q=function(u){g&&f.next(u),x++;var c=!1;innerFrom(i(u,A++)).subscribe(createOperatorSubscriber(f,function(i){null==b||b(i),g?R(i):f.next(i)},function(){c=!0},void 0,function(){if(c)try{for(x--;S.length&&x<h;)!function(){var i=S.shift();v?executeSchedule(f,v,function(){return q(i)}):q(i)}();j()}catch(i){f.error(i)}}))},u.subscribe(createOperatorSubscriber(f,R,function(){B=!0,j()})),function(){null==E||E()}}))}var eh=createErrorClass(function(i){return function(){i(this),this.name="EmptyError",this.message="no elements in sequence"}});function lastValueFrom(i,u){var c="object"==typeof u;return new Promise(function(f,h){var b,g=!1;i.subscribe({next:function(i){b=i,g=!0},error:h,complete:function(){g?f(b):c?f(u.defaultValue):h(new eh)}})})}var ep=createErrorClass(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ed=function(i){function Subject(){var u=i.call(this)||this;return u.closed=!1,u.currentObservers=null,u.observers=[],u.isStopped=!1,u.hasError=!1,u.thrownError=null,u}return __extends(Subject,i),Subject.prototype.lift=function(i){var u=new ey(this,this);return u.operator=i,u},Subject.prototype._throwIfClosed=function(){if(this.closed)throw new ep},Subject.prototype.next=function(i){var u=this;errorContext(function(){var c,f;if(u._throwIfClosed(),!u.isStopped){u.currentObservers||(u.currentObservers=Array.from(u.observers));try{for(var h=__values(u.currentObservers),b=h.next();!b.done;b=h.next())b.value.next(i)}catch(i){c={error:i}}finally{try{b&&!b.done&&(f=h.return)&&f.call(h)}finally{if(c)throw c.error}}}})},Subject.prototype.error=function(i){var u=this;errorContext(function(){if(u._throwIfClosed(),!u.isStopped){u.hasError=u.isStopped=!0,u.thrownError=i;for(var c=u.observers;c.length;)c.shift().error(i)}})},Subject.prototype.complete=function(){var i=this;errorContext(function(){if(i._throwIfClosed(),!i.isStopped){i.isStopped=!0;for(var u=i.observers;u.length;)u.shift().complete()}})},Subject.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(Subject.prototype,"observed",{get:function(){var i;return(null===(i=this.observers)||void 0===i?void 0:i.length)>0},enumerable:!1,configurable:!0}),Subject.prototype._trySubscribe=function(u){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,u)},Subject.prototype._subscribe=function(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)},Subject.prototype._innerSubscribe=function(i){var u=this,c=this.hasError,f=this.isStopped,h=this.observers;return c||f?Z:(this.currentObservers=null,h.push(i),new X(function(){u.currentObservers=null,arrRemove(h,i)}))},Subject.prototype._checkFinalizedStatuses=function(i){var u=this.hasError,c=this.thrownError,f=this.isStopped;u?i.error(c):f&&i.complete()},Subject.prototype.asObservable=function(){var i=new ec;return i.source=this,i},Subject.create=function(i,u){return new ey(i,u)},Subject}(ec),ey=function(i){function AnonymousSubject(u,c){var f=i.call(this)||this;return f.destination=u,f.source=c,f}return __extends(AnonymousSubject,i),AnonymousSubject.prototype.next=function(i){var u,c;null===(c=null===(u=this.destination)||void 0===u?void 0:u.next)||void 0===c||c.call(u,i)},AnonymousSubject.prototype.error=function(i){var u,c;null===(c=null===(u=this.destination)||void 0===u?void 0:u.error)||void 0===c||c.call(u,i)},AnonymousSubject.prototype.complete=function(){var i,u;null===(u=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===u||u.call(i)},AnonymousSubject.prototype._subscribe=function(i){var u,c;return null!==(c=null===(u=this.source)||void 0===u?void 0:u.subscribe(i))&&void 0!==c?c:Z},AnonymousSubject}(ed),eb={now:function(){return(eb.delegate||Date).now()},delegate:void 0},eg=function(i){function ReplaySubject(u,c,f){void 0===u&&(u=1/0),void 0===c&&(c=1/0),void 0===f&&(f=eb);var h=i.call(this)||this;return h._bufferSize=u,h._windowTime=c,h._timestampProvider=f,h._buffer=[],h._infiniteTimeWindow=!0,h._infiniteTimeWindow=c===1/0,h._bufferSize=Math.max(1,u),h._windowTime=Math.max(1,c),h}return __extends(ReplaySubject,i),ReplaySubject.prototype.next=function(u){var c=this.isStopped,f=this._buffer,h=this._infiniteTimeWindow,b=this._timestampProvider,g=this._windowTime;!c&&(f.push(u),h||f.push(b.now()+g)),this._trimBuffer(),i.prototype.next.call(this,u)},ReplaySubject.prototype._subscribe=function(i){this._throwIfClosed(),this._trimBuffer();for(var u=this._innerSubscribe(i),c=this._infiniteTimeWindow,f=this._buffer.slice(),h=0;h<f.length&&!i.closed;h+=c?1:2)i.next(f[h]);return this._checkFinalizedStatuses(i),u},ReplaySubject.prototype._trimBuffer=function(){var i=this._bufferSize,u=this._timestampProvider,c=this._buffer,f=this._infiniteTimeWindow,h=(f?1:2)*i;if(i<1/0&&h<c.length&&c.splice(0,c.length-h),!f){for(var b=u.now(),g=0,v=1;v<c.length&&c[v]<=b;v+=2)g=v;g&&c.splice(0,g+1)}},ReplaySubject}(ed);function share(i){void 0===i&&(i={});var u=i.connector,c=void 0===u?function(){return new ed}:u,f=i.resetOnError,h=void 0===f||f,b=i.resetOnComplete,g=void 0===b||b,v=i.resetOnRefCountZero,E=void 0===v||v;return function(i){var u,f,b,v=0,S=!1,x=!1,cancelReset=function(){null==f||f.unsubscribe(),f=void 0},reset=function(){cancelReset(),u=b=void 0,S=x=!1},resetAndUnsubscribe=function(){var i=u;reset(),null==i||i.unsubscribe()};return operate(function(i,A){v++,x||S||cancelReset();var B=b=null!=b?b:c();A.add(function(){0!=--v||x||S||(f=handleReset(resetAndUnsubscribe,E))}),B.subscribe(A),!u&&v>0&&(u=new es({next:function(i){return B.next(i)},error:function(i){x=!0,cancelReset(),f=handleReset(reset,h,i),B.error(i)},complete:function(){S=!0,cancelReset(),f=handleReset(reset,g),B.complete()}}),innerFrom(i).subscribe(u))})(i)}}function handleReset(i,u){for(var c=[],f=2;f<arguments.length;f++)c[f-2]=arguments[f];if(!0===u){i();return}if(!1!==u){var h=new es({next:function(){h.unsubscribe(),i()}});return innerFrom(u.apply(void 0,__spreadArray([],__read(c)))).subscribe(h)}}function catchError(i){return operate(function(u,c){var f,h=null,b=!1;h=u.subscribe(createOperatorSubscriber(c,void 0,void 0,function(g){f=innerFrom(i(g,catchError(i)(u))),h?(h.unsubscribe(),h=null,f.subscribe(c)):b=!0})),b&&(h.unsubscribe(),h=null,f.subscribe(c))})}function mergeAll(i){return void 0===i&&(i=1/0),mergeMap(identity_identity,i)}function concat(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];return mergeAll(1)(from_from(i,args_popScheduler(i)))}var em=function(i){function Action(u,c){return i.call(this)||this}return __extends(Action,i),Action.prototype.schedule=function(i,u){return void 0===u&&(u=0),this},Action}(X),ev={setInterval:function(i,u){for(var c=[],f=2;f<arguments.length;f++)c[f-2]=arguments[f];var h=ev.delegate;return(null==h?void 0:h.setInterval)?h.setInterval.apply(h,__spreadArray([i,u],__read(c))):setInterval.apply(void 0,__spreadArray([i,u],__read(c)))},clearInterval:function(i){var u=ev.delegate;return((null==u?void 0:u.clearInterval)||clearInterval)(i)},delegate:void 0},ew=function(i){function AsyncAction(u,c){var f=i.call(this,u,c)||this;
7return f.scheduler=u,f.work=c,f.pending=!1,f}return __extends(AsyncAction,i),AsyncAction.prototype.schedule=function(i,u){if(void 0===u&&(u=0),this.closed)return this;this.state=i;var c,f=this.id,h=this.scheduler;return null!=f&&(this.id=this.recycleAsyncId(h,f,u)),this.pending=!0,this.delay=u,this.id=null!==(c=this.id)&&void 0!==c?c:this.requestAsyncId(h,this.id,u),this},AsyncAction.prototype.requestAsyncId=function(i,u,c){return void 0===c&&(c=0),ev.setInterval(i.flush.bind(i,this),c)},AsyncAction.prototype.recycleAsyncId=function(i,u,c){if(void 0===c&&(c=0),null!=c&&this.delay===c&&!1===this.pending)return u;null!=u&&ev.clearInterval(u)},AsyncAction.prototype.execute=function(i,u){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var c=this._execute(i,u);if(c)return c;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},AsyncAction.prototype._execute=function(i,u){var c,f=!1;try{this.work(i)}catch(i){f=!0,c=i||Error("Scheduled action threw falsy error")}if(f)return this.unsubscribe(),c},AsyncAction.prototype.unsubscribe=function(){if(!this.closed){var u=this.id,c=this.scheduler,f=c.actions;this.work=this.state=this.scheduler=null,this.pending=!1,arrRemove(f,this),null!=u&&(this.id=this.recycleAsyncId(c,u,null)),this.delay=null,i.prototype.unsubscribe.call(this)}},AsyncAction}(em),e_=function(){function Scheduler(i,u){void 0===u&&(u=Scheduler.now),this.schedulerActionCtor=i,this.now=u}return Scheduler.prototype.schedule=function(i,u,c){return void 0===u&&(u=0),new this.schedulerActionCtor(this,i).schedule(c,u)},Scheduler.now=eb.now,Scheduler}(),eC=new(function(i){function AsyncScheduler(u,c){void 0===c&&(c=e_.now);var f=i.call(this,u,c)||this;return f.actions=[],f._active=!1,f}return __extends(AsyncScheduler,i),AsyncScheduler.prototype.flush=function(i){var u,c=this.actions;if(this._active){c.push(i);return}this._active=!0;do if(u=i.execute(i.state,i.delay))break;while(i=c.shift());if(this._active=!1,u){for(;i=c.shift();)i.unsubscribe();throw u}},AsyncScheduler}(e_))(ew);function throwError(i,u){var c=isFunction(i)?i:function(){return i},init=function(i){return i.error(c())};return new ec(u?function(i){return u.schedule(init,0,i)}:init)}function finalize(i){return operate(function(u,c){try{u.subscribe(c)}finally{c.add(i)}})}var eE=new ec(function(i){return i.complete()}),eO=c(23259),eS=Array.isArray,ex=Array.isArray;function combineLatest_combineLatest(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var c=isFunction(last(i))?i.pop():void 0;return c?function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];return pipeFromArray(i)}(combineLatest_combineLatest.apply(void 0,__spreadArray([],__read(i))),map(function(i){return ex(i)?c.apply(void 0,__spreadArray([],__read(i))):c(i)})):operate(function(u,c){var f,h,b;(f=__spreadArray([u],__read(1===i.length&&eS(i[0])?i[0]:i)),void 0===b&&(b=identity_identity),function(i){var u;u=function(){for(var u=f.length,c=Array(u),g=u,v=u,_loop_1=function(u){var E;E=function(){var E=from_from(f[u],h),S=!1;E.subscribe(createOperatorSubscriber(i,function(f){c[u]=f,!S&&(S=!0,v--),v||i.next(b(c.slice()))},function(){--g||i.complete()}))},h?executeSchedule(i,h,E):E()},E=0;E<u;E++)_loop_1(E)},h?executeSchedule(i,h,u):u()})(c)})}function filter(i,u){return operate(function(c,f){var h=0;c.subscribe(createOperatorSubscriber(f,function(c){return i.call(u,c,h++)&&f.next(c)}))})}let ClientError=class ClientError extends Error{response;statusCode=400;responseBody;details;constructor(i){let u=extractErrorProps(i);super(u.message),Object.assign(this,u)}};let ServerError=class ServerError extends Error{response;statusCode=500;responseBody;details;constructor(i){let u=extractErrorProps(i);super(u.message),Object.assign(this,u)}};function extractErrorProps(i){let u=i.body,c={response:i,statusCode:i.statusCode,responseBody:-1!==(i.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(u,null,2):u,message:"",details:void 0};if(u.error&&u.message)return c.message=`${u.error} - ${u.message}`,c;if(isPlainObject(u)&&isPlainObject(u.error)&&"mutationError"===u.error.type&&"string"==typeof u.error.description||isPlainObject(u)&&isPlainObject(u.error)&&"actionError"===u.error.type&&"string"==typeof u.error.description){let i=u.error.items||[],f=i.slice(0,5).map(i=>
7i.error?.description).filter(Boolean),h=f.length?`:
8- ${f.join(`
9- `)}`:"";return i.length>5&&(h+=`
10...and ${i.length-5} more`),c.message=`${u.error.description}${h}`,c.details=u.error,c}return u.error&&u.error.description?(c.message=u.error.description,c.details=u.error):c.message=u.error||u.message||function(i){let u=i.statusMessage?` ${i.statusMessage}`:"";return`${i.method}-request to ${i.url} resulted in HTTP ${i.statusCode}${u}`}(i),c}function isPlainObject(i){return"object"==typeof i&&null!==i&&!Array.isArray(i)}let CorsOriginError=class CorsOriginError extends Error{projectId;addOriginUrl;constructor({projectId:i}){super("CorsOriginError"),this.name="CorsOriginError",this.projectId=i;let u=new URL(`https://sanity.io/manage/project/${i}/api`);if("u">typeof location){let{origin:i}=location;u.searchParams.set("cors","add"),u.searchParams.set("origin",i),this.addOriginUrl=u,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${u}`}else this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: ${u}`}};let eA={onResponse:i=>{if(i.statusCode>=500)throw new ServerError(i);if(i.statusCode>=400)throw new ClientError(i);return i}};function defineHttpRequest(i){var u;return p([P({shouldRetry}),...i,function(){let i={};return{onResponse:u=>{let c=u.headers["x-sanity-warning"],f=Array.isArray(c)?c:[c];for(let u of f)!u||i[u]||(i[u]=!0,console.warn(u));return u}}}(),{processOptions:i=>{let u=i.body;return!u||"function"==typeof u.pipe||W(u)||-1===G.indexOf(typeof u)&&!Array.isArray(u)&&!function(i){if(!1===O(i))return!1;let u=i.constructor;if(void 0===u)return!0;let c=u.prototype;return!(!1===O(c)||!1===c.hasOwnProperty("isPrototypeOf"))}(u)?i:Object.assign({},i,{body:JSON.stringify(i.body),headers:Object.assign({},i.headers,{"Content-Type":"application/json"})})}},{onResponse:i=>{let c=i.headers["content-type"]||"",f=u&&u.force||-1!==c.indexOf("application/json");return i.body&&c&&f?Object.assign({},i,{body:function(i){try{return JSON.parse(i)}catch(i){throw i.message=`Failed to parsed response body as JSON: ${i.message}`,i}}(i.body)}):i},processOptions:i=>Object.assign({},i,{headers:Object.assign({Accept:"application/json"},i.headers)})},{onRequest:i=>{if("xhr"!==i.adapter)return;let u=i.request,c=i.context;function n(i){return u=>{let f=u.lengthComputable?u.loaded/u.total*100:-1;c.channels.progress.publish({stage:i,percent:f,total:u.total,loaded:u.loaded,lengthComputable:u.lengthComputable})}}"upload"in u&&"onprogress"in u.upload&&(u.upload.onprogress=n("upload")),"onprogress"in u&&(u.onprogress=n("download"))}},eA,function(i={}){let u=i.implementation||Y.Observable;if(!u)throw Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(i,c)=>new u(u=>(i.error.subscribe(i=>u.error(i)),i.progress.subscribe(i=>u.next(Object.assign({type:"progress"},i))),i.response.subscribe(i=>{u.next(Object.assign({type:"response"},i)),u.complete()}),i.request.publish(c),()=>i.abort.publish()))}}({implementation:ec})])}function shouldRetry(i,u,c){if(0===c.maxRetries)return!1;let f="GET"===c.method||"HEAD"===c.method,h=(c.uri||c.url).startsWith("/data/query"),b=i.response&&(429===i.response.statusCode||502===i.response.statusCode||503===i.response.statusCode);return(!!f||!!h)&&!!b||P.shouldRetry(i,u,c)}function generateHelpUrl(i){return"https://www.sanity.io/help/"+i}let eI=["image","file"],eB=["before","after","replace"],dataset=i=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(i))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},projectId=i=>{if(!/^[-a-z0-9]+$/i.test(i))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")},validateAssetType=i=>{if(-1===eI.indexOf(i))throw Error(`Invalid asset type: ${i}. Must be one of ${eI.join(", ")}`)},validateObject=(i,u)=>{if(null===u||"object"!=typeof u||Array.isArray(u))throw Error(`${i}() takes an object of properties`)},validateDocumentId=(i,u)=>{if("string"!=typeof u||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(u)||u.includes(".."))throw Error(`${i}(): "${u}" is not a valid document ID`)},requireDocumentId=(i,u)=>
10{if(!u._id)throw Error(`${i}() requires that the document contains an ID ("_id" property)`);validateDocumentId(i,u._id)},validateInsert=(i,u,c)=>{let f="insert(at, selector, items)";if(-1===eB.indexOf(i)){let i=eB.map(i=>`"${i}"`).join(", ");throw Error(`${f} takes an "at"-argument which is one of: ${i}`)}if("string"!=typeof u)throw Error(`${f} takes a "selector"-argument which must be a string`);if(!Array.isArray(c))throw Error(`${f} takes an "items"-argument which must be an array`)},hasDataset=i=>{if(!i.dataset)throw Error("`dataset` must be provided to perform queries");return i.dataset||""},requestTag=i=>{if("string"!=typeof i||!/^[a-z0-9._-]{1,75}$/i.test(i))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return i},resourceConfig=i=>{if(!i["~experimental_resource"])throw Error("`resource` must be provided to perform resource queries");let{type:u,id:c}=i["~experimental_resource"];switch(u){case"dataset":if(2!==c.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: ${u.toString()}`)}},resourceGuard=(i,u)=>{if(u["~experimental_resource"])throw Error(`\`${i}\` does not support resource-based operations`)},createWarningPrinter=i=>{var u;let c,f;return u=(...u)=>console.warn(i.join(" "),...u),c=!1,(...i)=>(c||(f=u(...i),c=!0),f)},eT=createWarningPrinter(["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"]),ej=createWarningPrinter(["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=createWarningPrinter(["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."]),eq=createWarningPrinter(["The `previewDrafts` perspective has been renamed to  `drafts` and will be removed in a future API version"]),eP=createWarningPrinter(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${generateHelpUrl("js-client-browser-token")} for more information and how to hide this warning.`]),ek=createWarningPrinter(["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`."]),eF=createWarningPrinter(["Using the Sanity client without specifying an API version is deprecated.",`See ${generateHelpUrl("js-client-api-version")}`]),eU=(createWarningPrinter(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),{apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}}),e$=["localhost","127.0.0.1","0.0.0.0"],isLocal=i=>-1!==e$.indexOf(i);function validateApiPerspective(i){if(Array.isArray(i)&&i.length>1&&i.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}let initConfig=(i,u)=>{let c={...u,...i,stega:{..."boolean"==typeof u.stega?{enabled:u.stega}:u.stega||eU.stega,..."boolean"==typeof i.stega?{enabled:i.stega}:i.stega||{}}};c.apiVersion||eF();let f={...eU,...c},h=f.useProjectHostname&&!f["~experimental_resource"];if(typeof Promise>"u"){let i=generateHelpUrl("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${i}`)}if(h&&!f.projectId)throw Error("Configuration must contain `projectId`");if(f["~experimental_resource"]&&resourceConfig(f),"u">typeof f.perspective&&validateApiPerspective(f.perspective),"encodeSourceMap"in f)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 f)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'?");
10if("boolean"!=typeof f.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${f.stega.enabled}`);if(f.stega.enabled&&void 0===f.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(f.stega.enabled&&"string"!=typeof f.stega.studioUrl&&"function"!=typeof f.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${f.stega.studioUrl}`);let b="u">typeof window&&window.location&&window.location.hostname,g=b&&isLocal(window.location.hostname),v=!!f.token;f.withCredentials&&v&&(ek(),f.withCredentials=!1),b&&g&&v&&!0!==f.ignoreBrowserTokenWarning?eP():typeof f.useCdn>"u"&&ej(),h&&projectId(f.projectId),f.dataset&&dataset(f.dataset),"requestTagPrefix"in f&&(f.requestTagPrefix=f.requestTagPrefix?requestTag(f.requestTagPrefix).replace(/\.+$/,""):void 0),f.apiVersion=`${f.apiVersion}`.replace(/^v/,""),f.isDefaultApi=f.apiHost===eU.apiHost,!0===f.useCdn&&f.withCredentials&&eT(),f.useCdn=!1!==f.useCdn&&!f.withCredentials,function(i){if("1"===i||"X"===i)return;let u=new Date(i);if(!(/^\d{4}-\d{2}-\d{2}$/.test(i)&&u instanceof Date&&u.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(f.apiVersion);let E=f.apiHost.split("://",2),S=E[0],x=E[1],A=f.isDefaultApi?"apicdn.sanity.io":x;return h?(f.url=`${S}://${f.projectId}.${x}/v${f.apiVersion}`,f.cdnUrl=`${S}://${f.projectId}.${A}/v${f.apiVersion}`):(f.url=`${f.apiHost}/v${f.apiVersion}`,f.cdnUrl=f.url),f};let ConnectionFailedError=class ConnectionFailedError extends Error{name="ConnectionFailedError"};let DisconnectError=class DisconnectError extends Error{name="DisconnectError";reason;constructor(i,u,c={}){super(i,c),this.reason=u}};let ChannelError=class ChannelError extends Error{name="ChannelError";data;constructor(i,u){super(i),this.data=u}};let MessageError=class MessageError extends Error{name="MessageError";data;constructor(i,u,c={}){super(i,c),this.data=u}};let MessageParseError=class MessageParseError extends Error{name="MessageParseError"};let eD=["channelError","disconnect"];function connectEventSource(i,u){return defer(()=>{let u=i();return u&&(u instanceof ec||isFunction(u.lift)&&isFunction(u.subscribe))?u:of(u)}).pipe(mergeMap(i=>new ec(c=>{let f=u.includes("open"),h=u.includes("reconnect");function onError(u){if("data"in u){let[i,f]=parseEvent(u);c.error(i?new MessageParseError("Unable to parse EventSource error message",{cause:f}):new MessageError(f?.data.message,f));return}i.readyState===i.CLOSED?c.error(new ConnectionFailedError("EventSource connection failed")):h&&c.next({type:"reconnect"})}function onOpen(){c.next({type:"open"})}function onMessage(i){let[u,f]=parseEvent(i);if(u){c.error(new MessageParseError("Unable to parse EventSource message",{cause:u}));return}if("channelError"===i.type){var h;c.error(new ChannelError((h=f?.data).error?h.error.description?h.error.description:"string"==typeof h.error?h.error:JSON.stringify(h.error,null,2):h.message||"Unknown listener error",f.data));return}if("disconnect"===i.type){c.error(new DisconnectError(`Server disconnected client: ${f.data?.reason||"unknown error"}`));return}c.next({type:i.type,id:i.lastEventId,...f.data?{data:f.data}:{}})}i.addEventListener("error",onError),f&&i.addEventListener("open",onOpen);let b=[...new Set([...eD,...u])].filter(i=>"error"!==i&&"open"!==i&&"reconnect"!==i);return b.forEach(u=>i.addEventListener(u,onMessage)),()=>{i.removeEventListener("error",onError),f&&i.removeEventListener("open",onOpen),b.forEach(u=>i.removeEventListener(u,onMessage)),i.close()}})))}function parseEvent(i){try{let u="string"==typeof i.data&&JSON.parse(i.data);return[null,{type:i.type,id:i.lastEventId,...!function(i){for(let u in i)return!1;return!0}(u)?{data:u}:{}}]}catch(i){return[i,null]}}function getSelection(i){if("string"==typeof i)return{id:i};if(Array.isArray(i))return{query:"*[_id in $ids]",params:{ids:i}};if("object"==typeof i&&null!==i&&"query"in i&&"string"==typeof i.query)return"params"in i&&"object"==typeof i.params&&null!==i.params?{query:i.query,params:i.params}:{query:i.query};let u=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(`
11`);throw Error(`Unknown selection - must be one of:
12
13${u}`)}let BasePatch=class BasePatch{selection;operations;constructor(i,u={}){this.selection=i,this.operations=u}set(i){return this._assign("set",i)}setIfMissing(i){return this._assign("setIfMissing",i)}diffMatchPatch(i){return validateObject("diffMatchPatch",i),this._assign("diffMatchPatch",i)}unset(i){if(!Array.isArray(i))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:i}),this}inc(i){return this._assign("inc",i)}dec(i){return this._assign("dec",i)}insert(i,u,c){return validateInsert(i,u,c),this._assign("insert",{[i]:u,items:c})}append(i,u){return this.insert("after",`${i}[-1]`,u)}prepend(i,u){return this.insert("before",`${i}[0]`,u)}splice(i,u,c,f){let h=u<0?u-1:u,b=typeof c>"u"||-1===c?-1:Math.max(0,u+c),g=h<0&&b>=0?"":b,v=`${i}[${h}:${g}]`;return this.insert("replace",v,f||[])}ifRevisionId(i){return this.operations.ifRevisionID=i,this}serialize(){return{...getSelection(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(i,u,c=!0){return validateObject(i,u),this.operations=Object.assign({},this.operations,{[i]:Object.assign({},c&&this.operations[i]||{},u)}),this}_set(i,u){return this._assign(i,u,!1)}};let ObservablePatch=class ObservablePatch extends BasePatch{#a;constructor(i,u,c){super(i,u),this.#a=c}clone(){return new ObservablePatch(this.selection,{...this.operations},this.#a)}commit(i){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let u="string"==typeof this.selection,c=Object.assign({returnFirst:u,returnDocuments:!0},i);return this.#a.mutate({patch:this.serialize()},c)}};let Patch=class Patch extends BasePatch{#a;constructor(i,u,c){super(i,u),this.#a=c}clone(){return new Patch(this.selection,{...this.operations},this.#a)}commit(i){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let u="string"==typeof this.selection,c=Object.assign({returnFirst:u,returnDocuments:!0},i);return this.#a.mutate({patch:this.serialize()},c)}};let eM={returnDocuments:!1};let BaseTransaction=class BaseTransaction{operations;trxId;constructor(i=[],u){this.operations=i,this.trxId=u}create(i){return validateObject("create",i),this._add({create:i})}createIfNotExists(i){let u="createIfNotExists";return validateObject(u,i),requireDocumentId(u,i),this._add({[u]:i})}createOrReplace(i){let u="createOrReplace";return validateObject(u,i),requireDocumentId(u,i),this._add({[u]:i})}delete(i){return validateDocumentId("delete",i),this._add({delete:{id:i}})}transactionId(i){return i?(this.trxId=i,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(i){return this.operations.push(i),this}};let Transaction=class Transaction extends BaseTransaction{#a;constructor(i,u,c){super(i,c),this.#a=u}clone(){return new Transaction([...this.operations],this.#a,this.trxId)}commit(i){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},eM,i||{}))}patch(i,u){let c="function"==typeof u,f="string"!=typeof i&&i instanceof Patch,h="object"==typeof i&&("query"in i||"id"in i);if(f)return this._add({patch:i.serialize()});if(c){let c=u(new Patch(i,{},this.#a));if(!(c instanceof Patch))throw Error("function passed to `patch()` must return the patch");
13return this._add({patch:c.serialize()})}if(h){let c=new Patch(i,u||{},this.#a);return this._add({patch:c.serialize()})}return this._add({patch:{id:i,...u}})}};let ObservableTransaction=class ObservableTransaction extends BaseTransaction{#a;constructor(i,u,c){super(i,c),this.#a=u}clone(){return new ObservableTransaction([...this.operations],this.#a,this.trxId)}commit(i){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},eM,i||{}))}patch(i,u){if("string"!=typeof i&&i instanceof ObservablePatch)return this._add({patch:i.serialize()});if("function"==typeof u){let c=u(new ObservablePatch(i,{},this.#a));if(!(c instanceof ObservablePatch))throw Error("function passed to `patch()` must return the patch");return this._add({patch:c.serialize()})}return this._add({patch:{id:i,...u}})}};let encodeQueryString=({query:i,params:u={},options:c={}})=>{let f=new URLSearchParams,{tag:h,includeMutations:b,returnQuery:g,...v}=c;for(let[c,b]of(h&&f.append("tag",h),f.append("query",i),Object.entries(u)))f.append(`$${c}`,JSON.stringify(b));for(let[i,u]of Object.entries(v))u&&f.append(i,`${u}`);return!1===g&&f.append("returnQuery","false"),!1===b&&f.append("includeMutations","false"),`?${f}`},excludeFalsey=(i,u)=>!1===i?void 0:typeof i>"u"?u:i,getMutationQuery=(i={})=>({dryRun:i.dryRun,returnIds:!0,returnDocuments:excludeFalsey(i.returnDocuments,!0),visibility:i.visibility||"sync",autoGenerateArrayKeys:i.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:i.skipCrossDatasetReferenceValidation}),isResponse=i=>"response"===i.type,getBody=i=>i.body,indexBy=(i,u)=>i.reduce((i,c)=>(i[u(c)]=c,i),Object.create(null));function _fetch(i,u,f,h,b={},g={}){let v="stega"in g?{...f||{},..."boolean"==typeof g.stega?{enabled:g.stega}:g.stega||{}}:f,E=v.enabled?(0,eO.N)(b):b,S=!1===g.filterResponse?i=>i:i=>i.result,{cache:x,next:A,...B}={useAbortSignal:"u">typeof g.signal,resultSourceMap:v.enabled?"withKeyArraySelector":g.resultSourceMap,...g,returnQuery:!1===g.filterResponse&&!1!==g.returnQuery},j="u">typeof x||"u">typeof A?{...B,fetch:{cache:x,next:A}}:B,R=_dataRequest(i,u,"query",{query:h,params:E},j);return v.enabled?R.pipe(function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];return combineLatest_combineLatest.apply(void 0,__spreadArray([],__read(i)))}(from_from(c.e(4235).then(c.bind(c,84235)).then(function(i){return i.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:i})=>i))),map(([i,u])=>{let c=u(i.result,i.resultSourceMap,v);return S({...i,result:c})})):R.pipe(map(S))}function _getDocument(i,u,c,f={}){let h={uri:_getDataUrl(i,"doc",c),json:!0,tag:f.tag,signal:f.signal};return _requestObservable(i,u,h).pipe(filter(isResponse),map(i=>i.body.documents&&i.body.documents[0]))}function _getDocuments(i,u,c,f={}){let h={uri:_getDataUrl(i,"doc",c.join(",")),json:!0,tag:f.tag,signal:f.signal};return _requestObservable(i,u,h).pipe(filter(isResponse),map(i=>{let u=indexBy(i.body.documents||[],i=>i._id);return c.map(i=>u[i]||null)}))}function _createIfNotExists(i,u,c,f){return requireDocumentId("createIfNotExists",c),_create(i,u,c,"createIfNotExists",f)}function _createOrReplace(i,u,c,f){return requireDocumentId("createOrReplace",c),_create(i,u,c,"createOrReplace",f)}function _delete(i,u,c,f){return _dataRequest(i,u,"mutate",{mutations:[{delete:getSelection(c)}]},f)}function _mutate(i,u,c,f){let h;h=c instanceof Patch||c instanceof ObservablePatch?{patch:c.serialize()}:c instanceof Transaction||c instanceof ObservableTransaction?c.serialize():c;let b=Array.isArray(h)?h:[h],g=f&&f.transactionId||void 0;return _dataRequest(i,u,"mutate",{mutations:b,transactionId:g},f)}function _action(i,u,c,f){let h=Array.isArray(c)?c:[c],b=f&&f.transactionId||void 0,g=f&&f.skipCrossDatasetReferenceValidation||void 0,v=f&&f.dryRun||void 0;return _dataRequest(i,u,"actions",{actions:h,transactionId:b,skipCrossDatasetReferenceValidation:g,dryRun:v},f)}function _dataRequest(i,u,c,f,h={}){let b="mutate"===c,g="actions"===c,v="query"===c,E=b||g?"":encodeQueryString(f),S=!b&&!g&&E.length<11264,x=h.returnFirst,{timeout:A,token:B,tag:j,headers:R,returnQuery:q,lastLiveEventId:k,cacheMode:F}=h,U=_getDataUrl(i,c,S?E:""),D={method:S?"GET":"POST",uri:U,json:!0,body:S?void 0:f,query:b&&getMutationQuery(h),timeout:A,headers:R,token:B,tag:j,returnQuery:q,perspective:h.perspective,resultSourceMap:h.resultSourceMap,lastLiveEventId:Array.isArray(k)?k[0]:k,cacheMode:F,canUseCdn:v,signal:h.signal,fetch:h.fetch,useAbortSignal:h.useAbortSignal,useCdn:h.useCdn};return _requestObservable(i,u,D).pipe(filter(isResponse),map(getBody),map(i=>{if(!b)return i;let u=i.results||[];if(h.returnDocuments)return x?u[0]&&u[0].document:u.map(i=>i.document);let c=x?u[0]&&u[0].id:u.map(i=>i.id);return{transactionId:i.transactionId,results:u,[x?"documentId":"documentIds"]:c}}
13))}function _create(i,u,c,f,h={}){let b=Object.assign({returnFirst:!0,returnDocuments:!0},h);return _dataRequest(i,u,"mutate",{mutations:[{[f]:c}]},b)}let hasDataConfig=i=>void 0!==i.config().dataset&&void 0!==i.config().projectId||void 0!==i.config()["~experimental_resource"],isQuery=(i,u)=>hasDataConfig(i)&&u.startsWith(_getDataUrl(i,"query")),isMutate=(i,u)=>hasDataConfig(i)&&u.startsWith(_getDataUrl(i,"mutate")),isDoc=(i,u)=>hasDataConfig(i)&&u.startsWith(_getDataUrl(i,"doc","")),isListener=(i,u)=>hasDataConfig(i)&&u.startsWith(_getDataUrl(i,"listen")),isHistory=(i,u)=>hasDataConfig(i)&&u.startsWith(_getDataUrl(i,"history","")),isData=(i,u)=>u.startsWith("/data/")||isQuery(i,u)||isMutate(i,u)||isDoc(i,u)||isListener(i,u)||isHistory(i,u);function _requestObservable(i,u,c){var f;let h=c.url||c.uri,b=i.config(),g=typeof c.canUseCdn>"u"?["GET","HEAD"].indexOf(c.method||"GET")>=0&&isData(i,h):c.canUseCdn,v=(c.useCdn??b.useCdn)&&g,E=c.tag&&b.requestTagPrefix?[b.requestTagPrefix,c.tag].join("."):c.tag||b.requestTagPrefix;if(E&&null!==c.tag&&(c.query={tag:requestTag(E),...c.query}),["GET","HEAD","POST"].indexOf(c.method||"GET")>=0&&isQuery(i,h)){let i=c.resultSourceMap??b.resultSourceMap;void 0!==i&&!1!==i&&(c.query={resultSourceMap:i,...c.query});let u=c.perspective||b.perspective;"u">typeof u&&("previewDrafts"===u&&eq(),validateApiPerspective(u),c.query={perspective:Array.isArray(u)?u.join(","):u,...c.query},(Array.isArray(u)&&u.length>0||"previewDrafts"===u||"drafts"===u)&&v&&(v=!1,eR())),c.lastLiveEventId&&(c.query={...c.query,lastLiveEventId:c.lastLiveEventId}),!1===c.returnQuery&&(c.query={returnQuery:"false",...c.query}),v&&"noStale"==c.cacheMode&&(c.query={cacheMode:"noStale",...c.query})}let S=function(i,u={}){let c={},f=u.token||i.token;f&&(c.Authorization=`Bearer ${f}`),u.useGlobalApi||i.useProjectHostname||!i.projectId||(c["X-Sanity-Project-ID"]=i.projectId);let h=!!(typeof u.withCredentials>"u"?i.withCredentials:u.withCredentials),b=typeof u.timeout>"u"?i.timeout:u.timeout;return Object.assign({},u,{headers:Object.assign({},c,u.headers||{}),timeout:typeof b>"u"?3e5:b,proxy:u.proxy||i.proxy,json:!0,withCredentials:h,fetch:"object"==typeof u.fetch&&"object"==typeof i.fetch?{...i.fetch,...u.fetch}:u.fetch||i.fetch})}(b,Object.assign({},c,{url:_getUrl(i,h,v)})),x=new ec(i=>u(S,b.requester).subscribe(i));return c.signal?x.pipe((f=c.signal,i=>new ec(u=>{let abort=()=>u.error(function(i){if(eL)return new DOMException(i?.reason??"The operation was aborted.","AbortError");let u=Error(i?.reason??"The operation was aborted.");return u.name="AbortError",u}(f));if(f&&f.aborted){abort();return}let c=i.subscribe(u);return f.addEventListener("abort",abort),()=>{f.removeEventListener("abort",abort),c.unsubscribe()}}))):x}function _request(i,u,c){return _requestObservable(i,u,c).pipe(filter(i=>"response"===i.type),map(i=>i.body))}function _getDataUrl(i,u,c){let f=i.config();if(f["~experimental_resource"]){resourceConfig(f);let i=resourceDataBase(f),h=void 0!==c?`${u}/${c}`:u;return`${i}/${h}`.replace(/\/($|\?)/,"$1")}let h=hasDataset(f),b=`/${u}/${h}`;return`/data${void 0!==c?`${b}/${c}`:b}`.replace(/\/($|\?)/,"$1")}function _getUrl(i,u,c=!1){let{url:f,cdnUrl:h}=i.config();return`${c?h:f}/${u.replace(/^\//,"")}`}let eL=!!globalThis.DOMException,resourceDataBase=i=>{if(!i["~experimental_resource"])throw Error("`resource` must be provided to perform resource queries");let{type:u,id:c}=i["~experimental_resource"];switch(u){case"dataset":{let i=c.split(".");if(2!==i.length)throw Error('Dataset ID must be in the format "project.dataset"');return`/projects/${i[0]}/datasets/${i[1]}`}case"canvas":return`/canvases/${c}`;case"media-library":return`/media-libraries/${c}`;case"dashboard":return`/dashboards/${c}`;default:throw Error(`Unsupported resource type: ${u.toString()}`)}};let ObservableAssetsClient=class ObservableAssetsClient{#a;#u;constructor(i,u){this.#a=i,this.#u=u}upload(i,u,c){return _upload(this.#a,this.#u,i,u,c)}};let AssetsClient=class AssetsClient{#a;#u;constructor(i,u){this.#a=i,this.#u=u}upload(i,u,c){let f=_upload(this.#a,this.#u,i,u,c);return lastValueFrom(f.pipe(filter(i=>"response"===i.type),map(i=>i.body.document)))}};function _upload(i,u,c,f,h={}){validateAssetType(c);let b=h.extract||void 0;b&&!b.length&&(b=["none"]);let g=i.config(),v=!(typeof File>
13"u")&&f instanceof File?Object.assign({filename:!1===h.preserveFilename?void 0:f.name,contentType:f.type},h):h,{tag:E,label:S,title:x,description:A,creditLine:B,filename:j,source:R}=v,q={label:S,title:x,description:A,filename:j,meta:b,creditLine:B};return R&&(q.sourceId=R.id,q.sourceName=R.name,q.sourceUrl=R.url),_requestObservable(i,u,{tag:E,method:"POST",timeout:v.timeout||0,uri:function(i,u){let c="image"===u?"images":"files";if(i["~experimental_resource"]){let{type:u,id:f}=i["~experimental_resource"];switch(u){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/${f}/assets/${c}`;case"media-library":return`/media-libraries/${f}/upload`;case"dashboard":return`/dashboards/${f}/assets/${c}`;default:throw Error(`Unsupported resource type: ${u.toString()}`)}}let f=hasDataset(i);return`assets/${c}/${f}`}(g,c),headers:v.contentType?{"Content-Type":v.contentType}:{},query:q,body:f})}var defaults=(i,u)=>Object.keys(u).concat(Object.keys(i)).reduce((c,f)=>(c[f]=typeof i[f]>"u"?u[f]:i[f],c),{});let pick=(i,u)=>u.reduce((u,c)=>(typeof i[c]>"u"||(u[c]=i[c]),u),{}),eN=defer(()=>c.e(3699).then(c.t.bind(c,33699,19))).pipe(map(({default:i})=>i),share({connector:function(){return new eg(1,S,x)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:!1}));function reconnectOnConnectionFailure(){return function(i){return i.pipe(catchError((i,u)=>{var c,f,h;return i instanceof ConnectionFailedError?concat(of({type:"reconnect"}),(void 0===f&&(f=eC),h=-1,null!=c&&(isScheduler(c)?f=c:h=c),new ec(function(i){var u=1e3,c=0;return f.schedule(function(){i.closed||(i.next(c++),0<=h?this.schedule(void 0,h):i.complete())},u)})).pipe(mergeMap(()=>u))):throwError(()=>i)}))}}let ez=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","tag"],eH={includeResult:!0};function _listen(i,u,c={}){let{url:f,token:h,withCredentials:b,requestTagPrefix:g}=this.config(),v=c.tag&&g?[g,c.tag].join("."):c.tag,E={...defaults(c,eH),tag:v},S=pick(E,ez),x=encodeQueryString({query:i,params:u,options:{tag:v,...S}}),A=`${f}${_getDataUrl(this,"listen",x)}`;if(A.length>14800)return throwError(()=>Error("Query too large for listener"));let B=E.events?E.events:["mutation"],j={};return b&&(j.withCredentials=!0),h&&(j.headers={Authorization:`Bearer ${h}`}),connectEventSource(()=>(typeof EventSource>"u"||j.headers?eN:of(EventSource)).pipe(map(i=>new i(A,j))),B).pipe(reconnectOnConnectionFailure(),filter(i=>B.includes(i.type)),map(i=>({type:i.type,..."data"in i?i.data:{}})))}let eV="2021-03-25";let LiveClient=class LiveClient{#a;constructor(i){this.#a=i}events({includeDrafts:i=!1,tag:u}={}){var c,f,h;resourceGuard("live",this.#a.config());let{projectId:b,apiVersion:g,token:v,withCredentials:E,requestTagPrefix:S}=this.#a.config(),x=g.replace(/^v/,"");if("X"!==x&&x<eV)throw Error(`The live events API requires API version ${eV} or later. The current API version is ${x}. Please update your API version to use this feature.`);if(i&&!v&&!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 A=_getDataUrl(this.#a,"live/events"),B=new URL(this.#a.getUrl(A,!1)),j=u&&S?[S,u].join("."):u;j&&B.searchParams.set("tag",j),i&&B.searchParams.set("includeDrafts","true");let R={};i&&v&&(R.headers={Authorization:`Bearer ${v}`}),i&&E&&(R.withCredentials=!0);let q=`${B.href}::${JSON.stringify(R)}`,k=eW.get(q);if(k)return k;let F=connectEventSource(()=>(typeof EventSource>"u"||R.headers?eN:of(EventSource)).pipe(map(i=>new i(B.href,R))),["message","restart","welcome","reconnect","goaway"]).pipe(reconnectOnConnectionFailure(),map(i=>{if("message"===i.type){let{data:u,...c}=i;return{...c,tags:u.tags}}return i})),U=(f={method:"OPTIONS",mode:"cors",credentials:R.withCredentials?"include":"omit",headers:R.headers},new ec(i=>{let u=new AbortController,c=u.signal;return fetch(B,{...f,signal:u.signal}).then(u=>{i.next(u),i.complete()},u=>{c.aborted||i.error(u)}),()=>u.abort()})).pipe(mergeMap(()=>eE),catchError(()=>{throw new CorsOriginError({projectId:b})})),D=concat(U,F).pipe(finalize(()=>eW.delete(q)),(h="function"==typeof(c={predicate:i=>"welcome"===i.type})?{predicate:c}:c,i=>{var u,c,f,b;let g,v=!1,{predicate:E,...S}=h,x=i.pipe((b=isFunction(u=i=>{h.predicate(i)&&(v=!0,g=i)})||c||f?{next:u,error:c,complete:f}:u)?operate(function(i,u){null===(c=b.subscribe)||void 0===c||c.call(b);var c,f=!0;i.subscribe(createOperatorSubscriber(u,function(i){var c;null===(c=b.next)||void 0===c||c.call(b,i),u.next(i)},function(){var i;f=!1,null===(i=b.complete)||void 0===i||i.call(b),u.complete()},function(i){var c;f=!1,null===(c=b.error)||void 0===c||c.call(b,i),u.error(i)},function(){var i,u;f&&(null===(i=b.unsubscribe)||void 0===i||i.call(b)),null===(u=b.finalize)||void 0===u||u.call(b)}))}):identity_identity,finalize(()=>{v=!1,g=void 0}),share(S)),A=new ec(i=>
13{v&&i.next(g),i.complete()});return function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var c=args_popScheduler(i),f="number"==typeof last(i)?i.pop():1/0;return i.length?1===i.length?innerFrom(i[0]):mergeAll(f)(from_from(i,c)):eE}(x,A)}));return eW.set(q,D),D}};let eW=new Map;let ObservableDatasetsClient=class ObservableDatasetsClient{#a;#u;constructor(i,u){this.#a=i,this.#u=u}create(i,u){return _modify(this.#a,this.#u,"PUT",i,u)}edit(i,u){return _modify(this.#a,this.#u,"PATCH",i,u)}delete(i){return _modify(this.#a,this.#u,"DELETE",i)}list(){return _request(this.#a,this.#u,{uri:"/datasets",tag:null})}};let DatasetsClient=class DatasetsClient{#a;#u;constructor(i,u){this.#a=i,this.#u=u}create(i,u){return resourceGuard("dataset",this.#a.config()),lastValueFrom(_modify(this.#a,this.#u,"PUT",i,u))}edit(i,u){return resourceGuard("dataset",this.#a.config()),lastValueFrom(_modify(this.#a,this.#u,"PATCH",i,u))}delete(i){return resourceGuard("dataset",this.#a.config()),lastValueFrom(_modify(this.#a,this.#u,"DELETE",i))}list(){return resourceGuard("dataset",this.#a.config()),lastValueFrom(_request(this.#a,this.#u,{uri:"/datasets",tag:null}))}};function _modify(i,u,c,f,h){return resourceGuard("dataset",i.config()),dataset(f),_request(i,u,{method:c,uri:`/datasets/${f}`,body:h,tag:null})}let ObservableProjectsClient=class ObservableProjectsClient{#a;#u;constructor(i,u){this.#a=i,this.#u=u}list(i){resourceGuard("projects",this.#a.config());let u=i?.includeMembers===!1?"/projects?includeMembers=false":"/projects";return _request(this.#a,this.#u,{uri:u})}getById(i){return resourceGuard("projects",this.#a.config()),_request(this.#a,this.#u,{uri:`/projects/${i}`})}};let ProjectsClient=class ProjectsClient{#a;#u;constructor(i,u){this.#a=i,this.#u=u}list(i){resourceGuard("projects",this.#a.config());let u=i?.includeMembers===!1?"/projects?includeMembers=false":"/projects";return lastValueFrom(_request(this.#a,this.#u,{uri:u}))}getById(i){return resourceGuard("projects",this.#a.config()),lastValueFrom(_request(this.#a,this.#u,{uri:`/projects/${i}`}))}};let ObservableUsersClient=class ObservableUsersClient{#a;#u;constructor(i,u){this.#a=i,this.#u=u}getById(i){return _request(this.#a,this.#u,{uri:`/users/${i}`})}};let UsersClient=class UsersClient{#a;#u;constructor(i,u){this.#a=i,this.#u=u}getById(i){return lastValueFrom(_request(this.#a,this.#u,{uri:`/users/${i}`}))}};let ObservableSanityClient=class ObservableSanityClient{assets;datasets;live;projects;users;#c;#u;listen=_listen;constructor(i,u=eU){this.config(u),this.#u=i,this.assets=new ObservableAssetsClient(this,this.#u),this.datasets=new ObservableDatasetsClient(this,this.#u),this.live=new LiveClient(this),this.projects=new ObservableProjectsClient(this,this.#u),this.users=new ObservableUsersClient(this,this.#u)}clone(){return new ObservableSanityClient(this.#u,this.config())}config(i){if(void 0===i)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=initConfig(i,this.#c||{}),this}withConfig(i){let u=this.config();return new ObservableSanityClient(this.#u,{...u,...i,stega:{...u.stega||{},..."boolean"==typeof i?.stega?{enabled:i.stega}:i?.stega||{}}})}fetch(i,u,c){return _fetch(this,this.#u,this.#c.stega,i,u,c)}getDocument(i,u){return _getDocument(this,this.#u,i,u)}getDocuments(i,u){return _getDocuments(this,this.#u,i,u)}create(i,u){return _create(this,this.#u,i,"create",u)}createIfNotExists(i,u){return _createIfNotExists(this,this.#u,i,u)}createOrReplace(i,u){return _createOrReplace(this,this.#u,i,u)}delete(i,u){return _delete(this,this.#u,i,u)}mutate(i,u){return _mutate(this,this.#u,i,u)}patch(i,u){return new ObservablePatch(i,u,this)}transaction(i){return new ObservableTransaction(i,this)}action(i,u){return _action(this,this.#u,i,u)}request(i){return _request(this,this.#u,i)}getUrl(i,u){return _getUrl(this,i,u)}getDataUrl(i,u){return _getDataUrl(this,i,u)}};let SanityClient=class SanityClient{assets;datasets;live;projects;users;observable;#c;#u;listen=_listen;constructor(i,u=eU){this.config(u),this.#u=i,this.assets=new AssetsClient(this,this.#u),this.datasets=new DatasetsClient(this,this.#u),this.live=new LiveClient(this),this.projects=new ProjectsClient(this,this.#u),this.users=new UsersClient(this,this.#u),this.observable=new ObservableSanityClient(i,u)}clone(){return new SanityClient(this.#u,this.config())}config(i){if(void 0===i)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(i),this.#c=initConfig(i,this.#c||{}),this}withConfig(i){let u=this.config();return new SanityClient(this.#u,{...u,...i,stega:{...u.stega||{},..."boolean"==typeof i?.stega?{enabled:i.stega}:i?.stega||{}}})}fetch(i,u,c){return lastValueFrom(_fetch(this,this.#u,this.#c.stega,i,u,c))}getDocument(i,u){return lastValueFrom(_getDocument(this,this.#u,i,u))}getDocuments(i,u){return lastValueFrom(_getDocuments(this,this.#u,i,u))}create(i,u){return lastValueFrom(_create(this,this.#u,i,"create",u))}createIfNotExists(i,u){return lastValueFrom(_createIfNotExists(this,this.#u,i,u))}createOrReplace(i,u){return lastValueFrom(_createOrReplace(this,this.#u,i,u))}delete(i,u){return lastValueFrom(_delete(this,this.#u,i,u))}mutate(i,u){return lastValueFrom(_mutate(this,this.#u,i,u))}patch(i,u){return new Patch(i,u,this)}transaction(i){return new Transaction(i,this)}action(i,u){return lastValueFrom(_action(this,this.#u,i,u))}request(i){return lastValueFrom(_request(this,this.#u,i))}dataRequest(i,u,c){return lastValueFrom(_dataRequest(this,this.#u,i,u,c))}getUrl(i,u){return _getUrl(this,i,u)}getDataUrl(i,u){return _getDataUrl(this,i,u)}};let eG={requester:defineHttpRequest(A=[]),createClient:i=>{let u=defineHttpRequest(A);return new SanityClient((c,f)=>(f||u)({maxRedirects:0,maxRetries:i.maxRetries,retryDelay:i.retryDelay,...c}),i)}},eJ=(eG.requester,eG.createClient)}}]);

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.