PageSourceSearch

https://dortiboxsl.net/_next/static/chunks/156-3511e9215a42b3bd.js

js dortiboxsl.net collected 2026-10-02 02:01:38 UTC 105,772 bytes, 8 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[156],{9371:function(t){var e;e=function(){function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function e(){return(e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(null,arguments)}var r="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function n(t){return("image-"+t.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}var i=[["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"]],o=["clip","crop","fill","fillmax","max","scale","min"],s=["top","bottom","left","right","center","focalpoint","entropy"],a=["format"],u=function(){function u(t,r){this.options=void 0,this.options=t?e({},t.options||{},r||{}):e({},r||{})}var c=u.prototype;return c.withOptions=function(r){var n=r.baseUrl||this.options.baseUrl,o={baseUrl:n};for(var s in r)r.hasOwnProperty(s)&&(o[function(e){for(var r,n=function(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return t(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,void 0):void 0}}(e))){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i);!(r=n()).done;){var o=r.value,s=o[0],a=o[1];if(e===s||e===a)return s}return e}(s)]=r[s]);return new u(this,e({baseUrl:n},o))},c.image=function(t){return this.withOptions({source:t})},c.dataset=function(t){return this.withOptions({dataset:t})},c.projectId=function(t){return this.withOptions({projectId:t})},c.bg=function(t){return this.withOptions({bg:t})},c.dpr=function(t){return this.withOptions(t&&1!==t?{dpr:t}:{})},c.width=function(t){return this.withOptions({width:t})},c.height=function(t){return this.withOptions({height:t})},c.focalPoint=function(t,e){return this.withOptions({focalPoint:{x:t,y:e}})},c.maxWidth=function(t){return this.withOptions({maxWidth:t})},c.minWidth=function(t){return this.withOptions({minWidth:t})},c.maxHeight=function(t){return this.withOptions({maxHeight:t})},c.minHeight=function(t){return this.withOptions({minHeight:t})},c.size=function(t,e){return this.withOptions({width:t,height:e})},c.blur=function(t){return this.withOptions({blur:t})},c.sharpen=function(t){return this.withOptions({sharpen:t})},c.rect=function(t,e,r,n){return this.withOptions({rect:{left:t,top:e,width:r,height:n}})},c.format=function(t){return this.withOptions({format:t})},c.invert=function(t){return this.withOptions({invert:t})},c.orientation=function(t){return this.withOptions({orientation:t})},c.quality=function(t){return this.withOptions({quality:t})},c.forceDownload=function(t){return this.withOptions({download:t})},c.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},c.flipVertical=function(){return this.withOptions({flipVertical:!0})},c.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},c.fit=function(t){if(-1===o.indexOf(t))throw Error('Invalid fit mode "'+t+'"');return this.withOptions({fit:t})},c.crop=function(t){if(-1===s.indexOf(t))throw Error('Invalid crop mode "'+t+'"');return this.withOptions({crop:t})},c.saturation=function(t){return this.withOptions({saturation:t})},c.auto=function(t){if(-1===a.indexOf(t))throw Error('Invalid auto mode "'+t+'"');return this.withOptions({auto:t})},c.pad=function(t){return this.withOptions({pad:t})},c.vanityName=function(t){return this.withOptions({vanityName:t})},c.frame=function(t){if(1!==t)throw Error('Invalid frame value "'+t+'"');return this.withOptions({frame:t})},c.url=function(){return function(t){var o=e({},t||{}),s=o.source;delete o.source;var a=function(t){var r;if(!t)return null;if("string"==typeof t&&/^https?:\/\//.test(""+t))r={asset:{_ref:n(t)}};else if("string"==typeof t)r={asset:{_ref:t}};else if(t&&"string"==typeof t._ref)r={asset:t};else if(t&&"string"==typeof t._id)r={asset:{_ref:t._id||""}};else if(t&&t.asset&&"string"==typeof t.asset.url)r={asset:{_ref:n(t.asset.url)}};else{if("object"!=typeof t.asset)return null;r=e({},t)}return t.crop&&(r.crop=t.crop),t.hotspot&&(r.hotspot=t.hotspot),function(t){if(t.crop&&t.hotspot)return t;var r=e({},t);
1return r.crop||(r.crop={left:0,top:0,bottom:0,right:0}),r.hotspot||(r.hotspot={x:.5,y:.5,height:1,width:1}),r}(r)}(s);if(!a){if(s&&"object"==typeof s&&null!==s&&s._upload&&(!s.asset||!s.asset._ref))return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";throw Error("Unable to resolve image URL from source ("+JSON.stringify(s)+")")}var u=function(t){var e=t.split("-"),n=e[1],i=e[2],o=e[3];if(!n||!i||!o)throw Error("Malformed asset _ref '"+t+"'. Expected an id like \""+r+'".');var s=i.split("x"),a=s[0],u=s[1],c=+a,l=+u;if(!(isFinite(c)&&isFinite(l)))throw Error("Malformed asset _ref '"+t+"'. Expected an id like \""+r+'".');return{id:n,width:c,height:l,format:o}}(a.asset._ref||a.asset._id||""),c=Math.round(a.crop.left*u.width),l=Math.round(a.crop.top*u.height),f={left:c,top:l,width:Math.round(u.width-a.crop.right*u.width-c),height:Math.round(u.height-a.crop.bottom*u.height-l)},h=a.hotspot.height*u.height/2,p=a.hotspot.width*u.width/2,d=a.hotspot.x*u.width,y=a.hotspot.y*u.height;return o.rect||o.focalPoint||o.ignoreImageParams||o.crop||(o=e({},o,function(t,e){var r,n=e.width,i=e.height;if(!(n&&i))return{width:n,height:i,rect:t.crop};var o=t.crop,s=t.hotspot,a=n/i;if(o.width/o.height>a){var u=Math.round(o.height),c=Math.round(u*a),l=Math.max(0,Math.round(o.top)),f=Math.max(0,Math.round(Math.round((s.right-s.left)/2+s.left)-c/2));f<o.left?f=o.left:f+c>o.left+o.width&&(f=o.left+o.width-c),r={left:f,top:l,width:c,height:u}}else{var h=o.width,p=Math.round(h/a),d=Math.max(0,Math.round(o.left)),y=Math.max(0,Math.round(Math.round((s.bottom-s.top)/2+s.top)-p/2));y<o.top?y=o.top:y+p>o.top+o.height&&(y=o.top+o.height-p),r={left:d,top:y,width:h,height:p}}return{width:n,height:i,rect:r}}({crop:f,hotspot:{left:d-p,top:y-h,right:d+p,bottom:y+h}},o))),function(t){var e=(t.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),r=t.vanityName?"/"+t.vanityName:"",n=t.asset.id+"-"+t.asset.width+"x"+t.asset.height+"."+t.asset.format+r,o=e+"/images/"+t.projectId+"/"+t.dataset+"/"+n,s=[];if(t.rect){var a=t.rect,u=a.left,c=a.top,l=a.width,f=a.height;(0!==u||0!==c||f!==t.asset.height||l!==t.asset.width)&&s.push("rect="+u+","+c+","+l+","+f)}t.bg&&s.push("bg="+t.bg),t.focalPoint&&(s.push("fp-x="+t.focalPoint.x),s.push("fp-y="+t.focalPoint.y));var h=[t.flipHorizontal&&"h",t.flipVertical&&"v"].filter(Boolean).join("");
1return(h&&s.push("flip="+h),i.forEach(function(e){var r=e[0],n=e[1];void 0!==t[r]?s.push(n+"="+encodeURIComponent(t[r])):void 0!==t[n]&&s.push(n+"="+encodeURIComponent(t[n]))}),0===s.length)?o:o+"?"+s.join("&")}(e({},o,{asset:u}))}(this.options)},c.toString=function(){return this.url()},u}();return function(t){if(t&&"config"in t&&"function"==typeof t.config){var e=t.config(),r=e.apiHost,n=e.projectId,i=e.dataset;return new u(null,{baseUrl:(r||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:n,dataset:i})}if(t&&"clientConfig"in t&&"object"==typeof t.clientConfig){var o=t.clientConfig,s=o.apiHost,a=o.projectId,c=o.dataset;return new u(null,{baseUrl:(s||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:a,dataset:c})}return new u(null,t||{})}},t.exports=e()},5565:(t,e,r)=>{"use strict";r.d(e,{default:()=>i.a});var n=r(4146),i=r.n(n)},5714:t=>{!function(){var e={675:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=u(t),s=o[0],a=o[1],c=new i((s+a)*3/4-a),l=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[l++]=255&e),1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(function(t,e,n){for(var i,o=[],s=e;s<n;s+=3)o.push(r[(i=(t[s]<<16&0xff0000)+(t[s+1]<<8&65280)+(255&t[s+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(t,e,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!a.isEncoding(e))throw TypeError("Unknown encoding: "+e);var r=0|p(t,e),n=s(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return f(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(j(t,ArrayBuffer)||t&&j(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(j(t,SharedArrayBuffer)||t&&j(t.buffer,SharedArrayBuffer)))return function(t,e,r){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),a.prototype),n}(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return a.from(n,e,r);var i=function(t){if(a.isBuffer(t)){var e,r=0|h(t.length),n=s(r);return 0===n.length||t.copy(n,0,0,r),n}return void 0!==t.length?"number"!=typeof t.length||(e=t.length)!=e?s(0):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');
vendor: 16,490 bytes, line 1
1if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return c(t),s(t<0?0:0|h(t))}function f(t){for(var e=t.length<0?0:0|h(t.length),r=s(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function h(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||j(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return O(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return S(t).length;default:if(i)return n?-1:O(t).length;e=(""+e).toLowerCase(),i=!0}}function d(t,e,r){var i,o,s=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=_[t[o]];return i}(this,e,r);case"utf8":case"utf-8":return b(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":return i=e,o=r,0===i&&o===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,e,r);default:if(s)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),s=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function g(t,e,r,n,i){var o;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r=+r)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return -1;r=t.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,i);throw TypeError("val must be string, number or Buffer")}function v(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,a/=2,u/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=r;o<a;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else -1!==l&&(o-=o-l),l=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(c(t,o+h)!==c(e,h)){f=!1;break}if(f)return o}return -1}function b(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,s,a,u,c=t[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:(192&(o=t[i+1]))==128&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],s=t[i+2],(192&o)==128&&(192&s)==128&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}function m(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function w(t,e,r,n,i,o){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function C(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function E(t,e,r,n,o){return e=+e,r>>>=0,o||C(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function x(t,e,r,n,o){return e=+e,r>>>=0,o||C(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}e.Buffer=a,e.SlowBuffer=function(t){return+t!=t&&(t=0),a.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,r){return(c(t),t<=0)?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(j(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),j(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=a.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(j(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?b(this,0,t):d.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(t,e,r,n,i){if(j(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,s=r-e,u=Math.min(o,s),c=this.slice(n,i),l=t.slice(e,r),f=0;f<u;++f)if(c[f]!==l[f]){o=c[f],s=l[f];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return g(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return g(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,u,c,l,f,h,p,d,y,g=this.length-e;if((void 0===r||r>g)&&(r=g),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var v=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(a!=a)break;t[r+s]=a}return s}(this,t,e,r);case"utf8":case"utf-8":return u=e,c=r,R(O(t,this.length-u),this,u,c);case"ascii":return l=e,f=r,R(I(t),this,l,f);case"latin1":case"binary":return i=this,o=t,s=e,a=r,R(I(o),i,s,a);case"base64":return h=e,p=r,R(S(t),this,h,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=e,y=r,R(function(t,e){for(var r,n,i=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-d),this,d,y);default:if(v)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),v=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||m(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},a.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||m(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUInt8=function(t,e){return t>>>=0,e||m(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||m(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||m(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||m(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||m(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||m(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||m(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},a.prototype.readInt8=function(t,e){return(t>>>=0,e||m(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||m(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||m(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||m(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||m(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||m(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||m(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||m(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||m(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,t,e,r,i,0)}var o=1,s=0;for(this[e]=255&t;++s<r&&(o*=256);)this[e+s]=t/o&255;return e+r},a.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,t,e,r,i,0)}var o=r-1,s=1;for(this[e+o]=255&t;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,r){return E(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return E(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return x(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return x(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var o=i-1;o>=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},a.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),u=s.length;
1if(0===u)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=s[i%u]}return this};var A=/[^+/0-9A-Za-z-_]/g;function O(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function I(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function S(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function R(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function j(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var _=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},783:function(t,e){e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=c}return(p?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=23===i?5960464477539062e-23:0,p=n?0:o-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+f>=1?e+=h/u:e+=h*Math.pow(2,1-f),e*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;t[r+p]=255&s,p+=d,s/=256,c-=8);t[r+p-d]|=128*y}}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}},s=!0;try{e[t](o,o.exports,n),s=!1}finally{s&&delete r[t]}return o.exports}n.ab="//";var i=n(72);t.exports=i}()},4146:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var r in e)Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}(e,{default:function(){return u},getImageProps:function(){return a}});let n=r(306),i=r(666),o=r(7970),s=n._(r(5514));function a(t){let{props:e}=(0,i.getImgProps)(t,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,r]of Object.entries(e))void 0===r&&delete e[t];return{props:e}}let u=o.Image},758:(t,e,r)=>{"use strict";r.d(e,{C:()=>s,Q:()=>c});var n={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},i={0:8203,1:8204,2:8205,3:65279},o=[,,,,].fill(String.fromCodePoint(i[0])).join("");function s(t,e,r="auto"){let n;return!0===r||"auto"===r&&(!(!Number.isNaN(Number(t))||/[a-z]/i.test(t)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(t))&&Date.parse(t)||function(t){try{new URL(t,t.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(t))?t:`${t}${n=JSON.stringify(e),`${o}${Array.from(n).map(t=>{let e=t.charCodeAt(0);if(e>255)throw Error(`Only ASCII edit info can be encoded. Error attempting to encode ${n} on character ${t} (${e})`);return Array.from(e.toString(4).padStart(4,"0")).map(t=>String.fromCodePoint(i[t])).join("")}).join("")}`}`}Object.fromEntries(Object.entries(i).map(t=>t.reverse())),Object.fromEntries(Object.entries(n).map(t=>t.reverse()));var a=`${Object.values(n).map(t=>`\\u{${t.toString(16)}}`).join("")}`,u=RegExp(`[${a}]{4,}`,"gu");function c(t){var e,r;return t&&JSON.parse({cleaned:(e=JSON.stringify(t)).replace(u,""),encoded:(null==(r=e.match(u))?void 0:r[0])||""}.cleaned)}},3862:(t,e,r)=>{"use strict";r.d(e,{UU:()=>rH});let n=!(typeof navigator>"u")&&"ReactNative"===navigator.product,i={timeout:n?6e4:12e4},o=function(t){let e={...i,..."string"==typeof t?{url:t}:t};if(e.timeout=function t(e){if(!1===e||0===e)return!1;if(e.connect||e.socket)return e;let r=Number(e);return isNaN(r)?t(i.timeout):{connect:r,socket:r}}(e.timeout),e.query){let{url:t,searchParams:r}=function(t){let e=t.indexOf("?");if(-1===e)return{url:t,searchParams:new URLSearchParams};let r=t.slice(0,e),i=t.slice(e+1);if(!n)return{url:r,searchParams:new URLSearchParams(i)};if("function"!=typeof decodeURIComponent)throw Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");let o=new URLSearchParams;for(let t of i.split("&")){let[e,r]=t.split("=");e&&o.append(s(e),s(r||""))}return{url:r,searchParams:o}}(e.url);for(let[n,i]of Object.entries(e.query)){if(void 0!==i){if(Array.isArray(i))for(let t of i)r.append(n,t);else r.append(n,i)}let o=r.toString();o&&(e.url=`${t}?${o}`)}}return e.method=e.body&&!e.method?"POST":(e.method||"GET").toUpperCase(),e};function s(t){return decodeURIComponent(t.replace(/\+/g," "))}let a=/^https?:\/\//i,u=function(t){if(!a.test(t.url))throw Error(`"${t.url}" is not a valid URL`)},c=["request","response","progress","error","abort"],l=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];var f,h,p=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(function(){if(h)return f;h=1;var t=function(t){return t.replace(/^\s+|\s+$/g,"")};return f=function(e){if(!e)return{};for(var r=Object.create(null),n=t(e).split("\n"),i=0;i<n.length;i++){var o,s=n[i],a=s.indexOf(":"),u=t(s.slice(0,a)).toLowerCase(),c=t(s.slice(a+1));typeof r[u]>"u"?r[u]=c:(o=r[u],"[object Array]"===Object.prototype.toString.call(o))?r[u].push(c):r[u]=[r[u],c]}return r}}());class d{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText="";responseType="";status;statusText;withCredentials;#t;#e;#r;#n={};#i;#o={};#s;open(t,e,r){this.#t=t,this.#e=e,this.#r="",this.readyState=1,this.onreadystatechange?.(),this.#i=void 0}abort(){this.#i&&this.#i.abort()}getAllResponseHeaders(){return this.#r}setRequestHeader(t,e){this.#n[t]=e}setInit(t,e=!0){this.#o=t,this.#s=e}send(t){let e="arraybuffer"!==this.responseType,r={...this.#o,method:this.#t,headers:this.#n,body:t};"function"==typeof AbortController&&this.#s&&(this.#i=new AbortController,"u">typeof EventTarget&&this.#i.signal instanceof EventTarget&&(r.signal=this.#i.signal)),"u">typeof document&&(r.credentials=this.withCredentials?"include":"omit"),fetch(this.#e,r).then(t=>
1(t.headers.forEach((t,e)=>{this.#r+=`${e}: ${t}\r
2`}),this.status=t.status,this.statusText=t.statusText,this.readyState=3,this.onreadystatechange?.(),e?t.text():t.arrayBuffer())).then(t=>{"string"==typeof t?this.responseText=t:this.response=t,this.readyState=4,this.onreadystatechange?.()}).catch(t=>{"AbortError"!==t.name?this.onerror?.(t):this.onabort?.()})}}let y="function"==typeof XMLHttpRequest?"xhr":"fetch",g="xhr"===y?XMLHttpRequest:d,v=(t,e)=>{let r=t.options,n=t.applyMiddleware("finalizeOptions",r),i={},o=t.applyMiddleware("interceptRequest",void 0,{adapter:y,context:t});if(o){let t=setTimeout(e,0,null,o);return{abort:()=>clearTimeout(t)}}let s=new g;s instanceof d&&"object"==typeof n.fetch&&s.setInit(n.fetch,n.useAbortSignal??!0);let a=n.headers,u=n.timeout,c=!1,l=!1,f=!1;if(s.onerror=t=>{b(s instanceof d?t instanceof Error?t:Error(`Request error while attempting to reach ${n.url}`,{cause:t}):Error(`Request error while attempting to reach is ${n.url}${t.lengthComputable?`(${t.loaded} of ${t.total} bytes transferred)`:""}`))},s.ontimeout=t=>{b(Error(`Request timeout while attempting to reach ${n.url}${t.lengthComputable?`(${t.loaded} of ${t.total} bytes transferred)`:""}`))},s.onabort=()=>{v(!0),c=!0},s.onreadystatechange=function(){u&&(v(),i.socket=setTimeout(()=>h("ESOCKETTIMEDOUT"),u.socket)),!c&&s&&4===s.readyState&&0!==s.status&&function(){if(!(c||l||f)){if(0===s.status)return void b(Error("Unknown XHR error"));v(),l=!0,e(null,{body:s.response||(""===s.responseType||"text"===s.responseType?s.responseText:""),url:n.url,method:n.method,headers:p(s.getAllResponseHeaders()),statusCode:s.status,statusMessage:s.statusText})}}()},s.open(n.method,n.url,!0),s.withCredentials=!!n.withCredentials,a&&s.setRequestHeader)for(let t in a)a.hasOwnProperty(t)&&s.setRequestHeader(t,a[t]);return n.rawBody&&(s.responseType="arraybuffer"),t.applyMiddleware("onRequest",{options:n,adapter:y,request:s,context:t}),s.send(n.body||null),u&&(i.connect=setTimeout(()=>h("ETIMEDOUT"),u.connect)),{abort:function(){c=!0,s&&s.abort()}};function h(e){f=!0,s.abort();let r=Error("ESOCKETTIMEDOUT"===e?`Socket timed out on request to ${n.url}`:`Connection timed out on request to ${n.url}`);r.code=e,t.channels.error.publish(r)}function v(t){(t||c||s&&s.readyState>=2&&i.connect)&&clearTimeout(i.connect),i.socket&&clearTimeout(i.socket)}function b(t){if(l)return;v(!0),l=!0,s=null;let r=t||Error(`Network error while attempting to reach ${n.url}`);r.isNetworkError=!0,r.request=n,e(r)}},b=(t=[],e=v)=>(function t(e,r){let n=[],i=l.reduce((t,e)=>(t[e]=t[e]||[],t),{processOptions:[o],validateOptions:[u]});function s(t){let e;let n=c.reduce((t,e)=>(t[e]=function(){let t=Object.create(null),e=0;return{publish:function(e){for(let r in t)t[r](e)},subscribe:function(r){let n=e++;return t[n]=r,function(){delete t[n]}}}}(),t),{}),o=function(t,e,...r){let n="onError"===t,o=e;for(let e=0;e<i[t].length&&(o=(0,i[t][e])(o,...r),!n||o);e++);return o},s=o("processOptions",t);o("validateOptions",s);let a={options:s,channels:n,applyMiddleware:o},u=n.request.subscribe(t=>{e=r(t,(e,r)=>((t,e,r)=>{let i=t,s=e;if(!i)try{s=o("onResponse",e,r)}catch(t){s=null,i=t}(i=i&&o("onError",i,r))?n.error.publish(i):s&&n.response.publish(s)})(e,r,t))});n.abort.subscribe(()=>{u(),e&&e.abort()});let l=o("onReturn",n,a);return l===n&&n.request.publish(a),l}return s.use=function(t){if(!t)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof t)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(t.onReturn&&i.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return l.forEach(e=>{t[e]&&i[e].push(t[e])}),n.push(t),s},s.clone=()=>t(n,r),e.forEach(s.use),s})(t,e);var m,w,C,E,x,A=r(2818),O=r(5714).Buffer,I={exports:{}};x||(x=1,function(t,e){let r;e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,t=>{"%%"!==t&&(n++,"%c"===t&&(i=n))}),e.splice(i,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch{}},e.load=function(){let t;try{t=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!t&&"u">typeof A&&"env"in A&&(t=A.env.DEBUG),t},e.useColors=function(){let t;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+)/))&&
2("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&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch{}}(),e.destroy=(r=!1,()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),e.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"],e.log=console.debug||console.log||(()=>{}),t.exports=(E?C:(E=1,C=function(t){function e(t){let n,i,o,s=null;function a(...t){if(!a.enabled)return;let r=Number(new Date),i=r-(n||r);a.diff=i,a.prev=n,a.curr=r,n=r,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let o=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";o++;let i=e.formatters[n];if("function"==typeof i){let e=t[o];r=i.call(a,e),t.splice(o,1),o--}return r}),e.formatArgs.call(a,t),(a.log||e.log).apply(a,t)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=r,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==e.namespaces&&(i=e.namespaces,o=e.enabled(t)),o),set:t=>{s=t}}),"function"==typeof e.init&&e.init(a),a}function r(t,r){let n=e(this.namespace+(typeof r>"u"?":":r)+t);return n.log=this.log,n}function n(t,e){let r=0,n=0,i=-1,o=0;for(;r<t.length;)if(n<e.length&&(e[n]===t[r]||"*"===e[n]))"*"===e[n]?(i=n,o=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++o}for(;n<e.length&&"*"===e[n];)n++;return n===e.length}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){let t=[...e.names,...e.skips.map(t=>"-"+t)].join(",");return e.enable(""),t},e.enable=function(t){for(let r of(e.save(t),e.namespaces=t,e.names=[],e.skips=[],("string"==typeof t?t:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===r[0]?e.skips.push(r.slice(1)):e.names.push(r)},e.enabled=function(t){for(let r of e.skips)if(n(t,r))return!1;for(let r of e.names)if(n(t,r))return!0;return!1},e.humanize=function(){if(w)return m;function t(t,e,r,n){return Math.round(t/r)+" "+n+(e>=1.5*r?"s":"")}return w=1,m=function(e,r){r=r||{};var n,i,o=typeof e;if("string"===o&&e.length>0)return function(t){if(!((t=String(t)).length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===o&&isFinite(e))return r.long?(i=Math.abs(e))>=864e5?t(e,i,864e5,"day"):i>=36e5?t(e,i,36e5,"hour"):i>=6e4?t(e,i,6e4,"minute"):i>=1e3?t(e,i,1e3,"second"):e+" ms":(n=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":n>=36e5?Math.round(e/36e5)+"h":n>=6e4?Math.round(e/6e4)+"m":n>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}(),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach(r=>{e[r]=t[r]}),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e)|0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}))(e);let{formatters:n}=t.exports;n.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}
2(I,I.exports)),I.exports,Object.prototype.hasOwnProperty;let S=typeof O>"u"?()=>!1:t=>O.isBuffer(t);function R(t){return"[object Object]"===Object.prototype.toString.call(t)}let j=["boolean","string","number"],_={};"u">typeof globalThis?_=globalThis:"u">typeof window?_=window:"u">typeof global?_=global:"u">typeof self&&(_=self);var T=_;let q=(t={})=>{let e=t.implementation||Promise;if(!e)throw Error("`Promise` is not available in global scope, and no implementation was passed");return{onReturn:(r,n)=>new e((e,i)=>{let o=n.options.cancelToken;o&&o.promise.then(t=>{r.abort.publish(t),i(t)}),r.error.subscribe(i),r.response.subscribe(r=>{e(t.onlyBody?r.body:r)}),setTimeout(()=>{try{r.request.publish(n)}catch(t){i(t)}},0)})}};class ${__CANCEL__=!0;message;constructor(t){this.message=t}toString(){return"Cancel"+(this.message?`: ${this.message}`:"")}}class P{promise;reason;constructor(t){if("function"!=typeof t)throw TypeError("executor must be a function.");let e=null;this.promise=new Promise(t=>{e=t}),t(t=>{this.reason||(this.reason=new $(t),e(this.reason))})}static source=()=>{let t;return{token:new P(e=>{t=e}),cancel:t}}}q.Cancel=$,q.CancelToken=P,q.isCancel=t=>!(!t||!t?.__CANCEL__);var U=(t,e,r)=>("GET"===r.method||"HEAD"===r.method)&&(t.isNetworkError||!1);function M(t){return 100*Math.pow(2,t)+100*Math.random()}let k=(t={})=>(t=>{let e=t.maxRetries||5,r=t.retryDelay||M,n=t.shouldRetry;return{onError:(t,i)=>{var o;let s=i.options,a=s.maxRetries||e,u=s.retryDelay||r,c=s.shouldRetry||n,l=s.attemptNumber||0;if(null!==(o=s.body)&&"object"==typeof o&&"function"==typeof o.pipe||!c(t,l,s)||l>=a)return t;let f=Object.assign({},i,{options:Object.assign({},s,{attemptNumber:l+1})});return setTimeout(()=>i.channels.request.publish(f),u(l)),null}}})({shouldRetry:U,...t});k.shouldRetry=U;var B=function(t,e){return(B=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function F(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}B(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function D(t,e){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function N(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function L(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function z(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function H(t){return this instanceof H?(this.v=t,this):new H(t)}function V(t){return"function"==typeof t}function W(t){var e=t(function(t){Error.call(t),t.stack=Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Y=W(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=e}});function J(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var G=function(){var t;function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t,e,r,n,i,o=this._parentage;if(o){if(this._parentage=null,Array.isArray(o))try{for(var s=N(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this)}var u=this.initialTeardown;
vendor: 5,794 bytes, line 2
2if(V(u))try{u()}catch(t){i=t instanceof Y?t.errors:[t]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var l=N(c),f=l.next();!f.done;f=l.next()){var h=f.value;try{K(h)}catch(t){i=null!=i?i:[],t instanceof Y?i=z(z([],L(i)),L(t.errors)):i.push(t)}}}catch(t){r={error:t}}finally{try{f&&!f.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new Y(i)}},e.prototype.add=function(t){var r;if(t&&t!==this){if(this.closed)K(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}}},e.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},e.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},e.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&J(e,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&J(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),Q=G.EMPTY;function X(t){return t instanceof G||t&&"closed"in t&&V(t.remove)&&V(t.add)&&V(t.unsubscribe)}function K(t){V(t)?t():t.unsubscribe()}var Z={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},tt={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=tt.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,z([t,e],L(r))):setTimeout.apply(void 0,z([t,e],L(r)))},clearTimeout:function(t){var e=tt.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function te(t){tt.setTimeout(function(){var e=Z.onUnhandledError;if(e)e(t);else throw t})}function tr(){}var tn=ti("C",void 0,void 0);function ti(t,e,r){return{kind:t,value:e,error:r}}var to=null;function ts(t){if(Z.useDeprecatedSynchronousErrorHandling){var e=!to;if(e&&(to={errorThrown:!1,error:null}),t(),e){var r=to,n=r.errorThrown,i=r.error;if(to=null,n)throw i}}else t()}var ta=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,X(e)&&e.add(r)):r.destination=td,r}return F(e,t),e.create=function(t,e,r){return new tf(t,e,r)},e.prototype.next=function(t){this.isStopped?tp(ti("N",t,void 0),this):this._next(t)},e.prototype.error=function(t){this.isStopped?tp(ti("E",void 0,t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?tp(tn,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(G),tu=Function.prototype.bind;function tc(t,e){return tu.call(t,e)}var tl=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){th(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){th(t)}else th(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){th(t)}},t}(),tf=function(t){function e(e,r,n){var i,o,s=t.call(this)||this;return V(e)||!e?i={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&Z.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},i={next:e.next&&tc(e.next,o),error:e.error&&tc(e.error,o),complete:e.complete&&tc(e.complete,o)}):i=e,s.destination=new tl(i),s}return F(e,t),e}(ta);function th(t){Z.useDeprecatedSynchronousErrorHandling?Z.useDeprecatedSynchronousErrorHandling&&to&&(to.errorThrown=!0,to.error=t):te(t)}function tp(t,e){var r=Z.onStoppedNotification;r&&tt.setTimeout(function(){return r(t,e)})}var td={closed:!0,next:tr,error:function(t){throw t},complete:tr},ty="function"==typeof Symbol&&Symbol.observable||"@@observable";function tg(t){return t}function tv(t){return 0===t.length?tg:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}var tb=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,i=this,o=(n=t)&&n instanceof ta||n&&V(n.next)&&V(n.error)&&V(n.complete)&&X(n)?t:new tf(t,e,r);return ts(function(){var t=i.operator,e=i.source;o.add(t?t.call(o,e):e?i._subscribe(o):i._trySubscribe(o))}),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=tm(e))(function(e,n){var i=new tf({next:function(e){try{t(e)}catch(t){n(t),i.unsubscribe()}},error:n,complete:e});r.subscribe(i)})},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[ty]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return tv(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=tm(t))(function(t,r){var n;e.subscribe(function(t){return n=t},function(t){return r(t)},function(){return t(n)})})},t.create=function(e){return new t(e)},t}();function tm(t){var e;return null!==(e=null!=t?t:Z.Promise)&&void 0!==e?e:Promise}var tw=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function tC(t){return V(null==t?void 0:t.then)}function tE(t){return Symbol.asyncIterator&&V(null==t?void 0:t[Symbol.asyncIterator])}function tx(t){return TypeError("You provided "+(null!==t&&"object"==typeof t?"an invali
2d object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var tA="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function tO(t){return V(null==t?void 0:t[tA])}function tI(t){return function(t,e,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(t,e||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(t){return function(e){return Promise.resolve(e).then(t,c)}}),n[Symbol.asyncIterator]=function(){return this},n;function s(t,e){i[t]&&(n[t]=function(e){return new Promise(function(r,n){o.push([t,e,r,n])>1||a(t,e)})},e&&(n[t]=e(n[t])))}function a(t,e){try{var r;(r=i[t](e)).value instanceof H?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(t){l(o[0][3],t)}}function u(t){a("next",t)}function c(t){a("throw",t)}function l(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function(){var e,r,n;return D(this,function(i){switch(i.label){case 0:e=t.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,H(e.read())];case 3:if(n=(r=i.sent()).value,!r.done)return[3,5];return[4,H(void 0)];case 4:return[2,i.sent()];case 5:return[4,H(n)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function tS(t){return V(null==t?void 0:t.getReader)}function tR(t){if(t instanceof tb)return t;if(null!=t){if(V(t[ty]))return new tb(function(e){var r=t[ty]();if(V(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(tw(t))return new tb(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()});if(tC(t))return new tb(function(e){t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,te)});if(tE(t))return tj(t);if(tO(t))return new tb(function(e){var r,n;try{for(var i=N(t),o=i.next();!o.done;o=i.next()){var s=o.value;if(e.next(s),e.closed)return}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}e.complete()});if(tS(t))return tj(tI(t))}throw tx(t)}function tj(t){return new tb(function(e){(function(t,e){var r,n,i,o,s,a,u,c;return s=this,a=void 0,u=void 0,c=function(){var s;return D(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),r=function(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=N(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise(function(n,i){(function(t,e,r,n){Promise.resolve(n).then(function(e){t({value:e,done:r})},e)})(n,i,(e=t[r](e)).done,e.value)})}}}(t),a.label=1;case 1:return[4,r.next()];case 2:if((n=a.sent()).done)return[3,4];if(s=n.value,e.next(s),e.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:a.sent()},[3,11];case 6:if(a.trys.push([6,,9,10]),!(n&&!n.done&&(o=r.return)))return[3,8];return[4,o.call(r)];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})},new(u||(u=Promise))(function(t,e){function r(t){try{i(c.next(t))}catch(t){e(t)}}function n(t){try{i(c.throw(t))}catch(t){e(t)}}function i(e){var i;e.done?t(e.value):((i=e.value)instanceof u?i:new u(function(t){t(i)})).then(r,n)}i((c=c.apply(s,a||[])).next())})})(t,e).catch(function(t){return e.error(t)})})}function t_(t){return new tb(function(e){tR(t()).subscribe(e)})}function tT(t){return t[t.length-1]}function tq(t){var e;return(e=tT(t))&&V(e.schedule)?t.pop():void 0}function t$(t,e,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function tP(t){return function(e){if(V(null==e?void 0:e.lift))return e.lift(function(e){try{return t(e,this)}catch(t){this.error(t)}});throw TypeError("Unable to lift unknown Observable type")}}function tU(t,e,r,n,i){return new tM(t,e,r,n,i)}var tM=function(t){function e(e,r,n,i,o,s){var a=t.call(this,e)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=r?function(t){try{r(t)}catch(t){e.error(t)}}:t.prototype._next,a._error=i?function(t){try{i(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,a._complete=n?function(){try{n()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,a}return F(e,t),e.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;t.prototype.unsubscribe.call(this),r||null===(e=this.onFinalize)||void 0===e||e.call(this)}},e}(ta);function tk(t,e){return void 0===e&&(e=0),tP(function(r,n){r.subscribe(tU(n,function(r){return t$(n,t,function(){return n.next(r)},e)},function(){return t$(n,t,function(){return n.complete()},e)},function(r){return t$(n,t,function(){return n.error(r)},e)}))})}function tB(t,e){return void 0===e&&(e=0),tP(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function tF(t,e){if(!t)throw Error("Iterable cannot be null");return new tb(function(r){t$(r,e,function(){var n=t[Symbol.asyncIterator]();t$(r,e,function(){n.next().then(function(t){t.done?r.complete():r.next(t.value)})},0,!0)})})}function tD(t,e){return e?function(t,e){if(null!=t){if(V(t[ty]))return tR(t).pipe(tB(e),tk(e));if(tw(t))return new tb(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})});if(tC(t))return tR(t).pipe(tB(e),tk(e));if(tE(t))return tF(t,e);if(tO(t))return new tb(function(r){var n;return t$(r,e,function(){n=t[tA](),t$(r,e,function(){var t,e,i;try{e=(t=n.next()).value,i=t.done}catch(t){r.error(t);return}i?r.complete():r.next(e)},0,!0)}),function(){return V(null==n?void 0:n.return)&&n.return()}});if(tS(t))return tF(tI(t),e)}throw tx(t)}(t,e):tR(t)}function tN(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=tq(t);return tD(t,r)}function tL(t,e){return tP(function(r,n){var i=0;r.subscribe(tU(n,function(r){n.next(t.call(e,r,i++))}))})}function tz(t,e,r){return(void 0===r&&(r=1/0),V(e))?tz(function(r,n){return tL(function(t,i){return e(r,t,n,i)})(tR(t(r,n)))},r):("number"==typeof e&&(r=e),tP(function(e,n){var i,o,s,a,u,c,l,f,h;return i=r,s=[],a=0,u=0,c=!1,l=function(){!c||s.length||a||n.complete()},f=function(t){return a<i?h(t):s.push(t)},h=function(e){a++;var r=!1;tR(t(e,u++)).subscribe(tU(n,function(t){o?f(t):n.next(t)},function(){r=!0},void 0,function(){if(r)try{for(a--;s.length&&a<i;)!function(){var t=s.shift();h(t)}();l()}catch(t){n.error(t)}}))},e.subscribe(tU(n,f,function(){c=!0,l()})),function(){}}))}var tH=W(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function tV(t,e){var r="object"==typeof e;return new Promise(function(n,i){var o,s=!1;t.subscribe({next:function(t){o=t,s=!0},error:i,complete:function(){s?n(o):r?n(e.defaultValue):i(new tH)}})})}var tW=W(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),tY=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return F(e,t),e.prototype.lift=function(t){var e=new tJ(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new tW},e.prototype.next=function(t){var e=this;ts(function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=N(e.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(t)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}})},e.prototype.error=function(t){var e=this;ts(function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}})},e.prototype.complete=function(){var t=this;ts(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}
2,enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?Q:(this.currentObservers=null,i.push(t),new G(function(){e.currentObservers=null,J(i,t)}))},e.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,n=this.isStopped;e?t.error(r):n&&t.complete()},e.prototype.asObservable=function(){var t=new tb;return t.source=this,t},e.create=function(t,e){return new tJ(t,e)},e}(tb),tJ=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return F(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:Q},e}(tY),tG={now:function(){return(tG.delegate||Date).now()},delegate:void 0},tQ=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=tG);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,r),i}return F(e,t),e.prototype.next=function(e){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,o=this._timestampProvider,s=this._windowTime;!r&&(n.push(e),i||n.push(o.now()+s)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=e.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},e}(tY);function tX(t){void 0===t&&(t={});var e=t.connector,r=void 0===e?function(){return new tY}:e,n=t.resetOnError,i=void 0===n||n,o=t.resetOnComplete,s=void 0===o||o,a=t.resetOnRefCountZero,u=void 0===a||a;return function(t){var e,n,o,a=0,c=!1,l=!1,f=function(){null==n||n.unsubscribe(),n=void 0},h=function(){f(),e=o=void 0,c=l=!1},p=function(){var t=e;h(),null==t||t.unsubscribe()};return tP(function(t,d){a++,l||c||f();var y=o=null!=o?o:r();d.add(function(){0!=--a||l||c||(n=tK(p,u))}),y.subscribe(d),!e&&a>0&&(e=new tf({next:function(t){return y.next(t)},error:function(t){l=!0,f(),n=tK(h,i,t),y.error(t)},complete:function(){c=!0,f(),n=tK(h,s),y.complete()}}),tR(t).subscribe(e))})(t)}}function tK(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!0===e){t();return}if(!1!==e){var i=new tf({next:function(){i.unsubscribe(),t()}});return tR(e.apply(void 0,z([],L(r)))).subscribe(i)}}function tZ(t){return tP(function(e,r){var n,i=null,o=!1;i=e.subscribe(tU(r,void 0,void 0,function(s){n=tR(t(s,tZ(t)(e))),i?(i.unsubscribe(),i=null,n.subscribe(r)):o=!0})),o&&(i.unsubscribe(),i=null,n.subscribe(r))})}function t0(t){return void 0===t&&(t=1/0),tz(tg,t)}function t1(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t0(1)(tD(t,tq(t)))}var t2=function(t){function e(e,r){return t.call(this)||this}return F(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(G),t3={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=t3.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,z([t,e],L(r))):setInterval.apply(void 0,z([t,e],L(r)))},clearInterval:function(t){var e=t3.delegate;return((null==e?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},t6=function(t){function e(e,r){var n=t.call(this,e,r)||this;
2return n.scheduler=e,n.work=r,n.pending=!1,n}return F(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),t3.setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return e;null!=e&&t3.clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r,n=!1;try{this.work(t)}catch(t){n=!0,r=t||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},e.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,J(n,this),null!=e&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(t2),t5=function(){function t(e,r){void 0===r&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.schedulerActionCtor(this,t).schedule(r,e)},t.now=tG.now,t}(),t8=new(function(t){function e(e,r){void 0===r&&(r=t5.now);var n=t.call(this,e,r)||this;return n.actions=[],n._active=!1,n}return F(e,t),e.prototype.flush=function(t){var e,r=this.actions;if(this._active){r.push(t);return}this._active=!0;do if(e=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,e){for(;t=r.shift();)t.unsubscribe();throw e}},e}(t5))(t6);function t4(t,e){var r=V(t)?t:function(){return t},n=function(t){return t.error(r())};return new tb(e?function(t){return e.schedule(n,0,t)}:n)}function t9(t){return tP(function(e,r){try{e.subscribe(r)}finally{r.add(t)}})}var t7=new tb(function(t){return t.complete()}),et=r(758),ee=Array.isArray,er=Array.isArray;function en(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=V(tT(t))?t.pop():void 0;return r?function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return tv(t)}(en.apply(void 0,z([],L(t))),tL(function(t){return er(t)?r.apply(void 0,z([],L(t))):r(t)})):tP(function(e,r){var n,i,o;(n=z([e],L(1===t.length&&ee(t[0])?t[0]:t)),void 0===o&&(o=tg),function(t){var e,r;e=void 0,r=function(){for(var e=n.length,r=Array(e),s=e,a=e,u=function(e){var u;u=function(){var u=tD(n[e],i),c=!1;u.subscribe(tU(t,function(n){r[e]=n,!c&&(c=!0,a--),a||t.next(o(r.slice()))},function(){--s||t.complete()}))},i?t$(t,i,u):u()},c=0;c<e;c++)u(c)},e?t$(t,e,r):r()})(r)})}function ei(t,e){return tP(function(r,n){var i=0;r.subscribe(tU(n,function(r){return t.call(e,r,i++)&&n.next(r)}))})}
2class eo extends Error{response;statusCode=400;responseBody;details;constructor(t){let e=ea(t);super(e.message),Object.assign(this,e)}}class es extends Error{response;statusCode=500;responseBody;details;constructor(t){let e=ea(t);super(e.message),Object.assign(this,e)}}function ea(t){let e=t.body,r={response:t,statusCode:t.statusCode,responseBody:-1!==(t.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(e,null,2):e,message:"",details:void 0};if(e.error&&e.message)return r.message=`${e.error} - ${e.message}`,r;if(eu(e)&&eu(e.error)&&"mutationError"===e.error.type&&"string"==typeof e.error.description||eu(e)&&eu(e.error)&&"actionError"===e.error.type&&"string"==typeof e.error.description){let t=e.error.items||[],n=t.slice(0,5).map(t=>t.error?.description).filter(Boolean),i=n.length?`:
3- ${n.join(`
4- `)}`:"";return t.length>5&&(i+=`
5...and ${t.length-5} more`),r.message=`${e.error.description}${i}`,r.details=e.error,r}return e.error&&e.error.description?(r.message=e.error.description,r.details=e.error):r.message=e.error||e.message||function(t){let e=t.statusMessage?` ${t.statusMessage}`:"";return`${t.method}-request to ${t.url} resulted in HTTP ${t.statusCode}${e}`}(t),r}function eu(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}class ec extends Error{projectId;addOriginUrl;constructor({projectId:t}){super("CorsOriginError"),this.name="CorsOriginError",this.projectId=t;let e=new URL(`https://sanity.io/manage/project/${t}/api`);if("u">typeof location){let{origin:t}=location;e.searchParams.set("cors","add"),e.searchParams.set("origin",t),this.addOriginUrl=e,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${e}`}else this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: ${e}`}}let el={onResponse:t=>{if(t.statusCode>=500)throw new es(t);if(t.statusCode>=400)throw new eo(t);return t}};function ef(t){return b([k({shouldRetry:eh}),...t,function(){let t={};return{onResponse:e=>{let r=e.headers["x-sanity-warning"];for(let e of Array.isArray(r)?r:[r])!e||t[e]||(t[e]=!0,console.warn(e));return e}}}(),{processOptions:t=>{let e=t.body;return!e||"function"==typeof e.pipe||S(e)||-1===j.indexOf(typeof e)&&!Array.isArray(e)&&!function(t){if(!1===R(t))return!1;let e=t.constructor;if(void 0===e)return!0;let r=e.prototype;return!(!1===R(r)||!1===r.hasOwnProperty("isPrototypeOf"))}(e)?t:Object.assign({},t,{body:JSON.stringify(t.body),headers:Object.assign({},t.headers,{"Content-Type":"application/json"})})}},{onResponse:t=>{let e=t.headers["content-type"]||"",r=-1!==e.indexOf("application/json");return t.body&&e&&r?Object.assign({},t,{body:function(t){try{return JSON.parse(t)}catch(t){throw t.message=`Failed to parsed response body as JSON: ${t.message}`,t}}(t.body)}):t},processOptions:t=>Object.assign({},t,{headers:Object.assign({Accept:"application/json"},t.headers)})},{onRequest:t=>{if("xhr"!==t.adapter)return;let e=t.request,r=t.context;function n(t){return e=>{let n=e.lengthComputable?e.loaded/e.total*100:-1;r.channels.progress.publish({stage:t,percent:n,total:e.total,loaded:e.loaded,lengthComputable:e.lengthComputable})}}"upload"in e&&"onprogress"in e.upload&&(e.upload.onprogress=n("upload")),"onprogress"in e&&(e.onprogress=n("download"))}},el,function(t={}){let e=t.implementation||T.Observable;if(!e)throw Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(t,r)=>new e(e=>(t.error.subscribe(t=>e.error(t)),t.progress.subscribe(t=>e.next(Object.assign({type:"progress"},t))),t.response.subscribe(t=>{e.next(Object.assign({type:"response"},t)),e.complete()}),t.request.publish(r),()=>t.abort.publish()))}}({implementation:tb})])}function eh(t,e,r){if(0===r.maxRetries)return!1;let n="GET"===r.method||"HEAD"===r.method,i=(r.uri||r.url).startsWith("/data/query"),o=t.response&&(429===t.response.statusCode||502===t.response.statusCode||503===t.response.statusCode);return(!!n||!!i)&&!!o||k.shouldRetry(t,e,r)}function ep(t){return"https://www.sanity.io/help/"+t}let ed=["image","file"],ey=["before","after","replace"],eg=t=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(t))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},ev=t=>{if(!/^[-a-z0-9]+$/i.test(t))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")},eb=t=>{if(-1===ed.indexOf(t))throw Error(`Invalid asset type: ${t}. Must be one of ${ed.join(", ")}`)},em=(t,e)=>{if(null===e||"object"!=typeof e||Array.isArray(e))throw Error(`${t}() takes an object of properties`)},ew=(t,e)=>{if("string"!=typeof e||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(e)||e.includes(".."))throw Error(`${t}(): "${e}" is not a valid document ID`)},eC=(t,e)=>{if(!e._id)throw Error(`${t}() requires that the document contains an ID ("_id" property)`);ew(t,e._id)},eE=(t,e,r)=>{let n="insert(at, selector, items)";if(-1===ey.indexOf(t)){let t=ey.map(t=>`"${t}"`).join(", ");throw Error(`${n} takes an "at"-argument which is one of: ${t}`)}if("string"!=typeof e)throw Error(`${n} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw Error(`${n} takes an "items"-argument which must be an array`)},ex=t=>{if(!t.dataset)throw Error("`dataset` must be provided to perform queries");return t.dataset||""},eA=t=>{if("string"!=typeof t||!/^[a-z0-9._-]{1,75}$/i.test(t))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return t},eO=t=>{if(!t["~experimental_resource"])throw Error("`resource` must be provided to perform resource queries");let{type:e,id:r}=t["~experimental_resource"];switch(e){case"dataset":if(2!==r.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: ${e.toString()}`)}},eI=(t,e)=>{if(e["~experimental_resource"])throw Error(`\`${t}\` does not support resource-based operations`)},eS=t=>(function(t){let e=!1,r;return(...n)=>(e||(r=t(...n),e=!0),r)})((...e)=>console.warn(t.join(" "),...e)),eR=eS(["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=eS(["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."]),e_=eS(["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."]),eT=eS(["The `previewDrafts` perspective has been renamed to  `drafts` and will be removed in a future API version"]),eq=eS(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${ep("js-cl
5ient-browser-token")} for more information and how to hide this warning.`]),e$=eS(["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`."]),eP=eS(["Using the Sanity client without specifying an API version is deprecated.",`See ${ep("js-client-api-version")}`]),eU=(eS(["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}}),eM=["localhost","127.0.0.1","0.0.0.0"],ek=t=>-1!==eM.indexOf(t);function eB(t){if(Array.isArray(t)&&t.length>1&&t.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}let eF=(t,e)=>{let r={...e,...t,stega:{..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||eU.stega,..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||{}}};r.apiVersion||eP();let n={...eU,...r},i=n.useProjectHostname&&!n["~experimental_resource"];if(typeof Promise>"u"){let t=ep("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${t}`)}if(i&&!n.projectId)throw Error("Configuration must contain `projectId`");if(n["~experimental_resource"]&&eO(n),"u">typeof n.perspective&&eB(n.perspective),"encodeSourceMap"in n)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 n)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'?");if("boolean"!=typeof n.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${n.stega.enabled}`);if(n.stega.enabled&&void 0===n.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(n.stega.enabled&&"string"!=typeof n.stega.studioUrl&&"function"!=typeof n.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${n.stega.studioUrl}`);let o="u">typeof window&&window.location&&window.location.hostname,s=o&&ek(window.location.hostname),a=!!n.token;n.withCredentials&&a&&(e$(),n.withCredentials=!1),o&&s&&a&&!0!==n.ignoreBrowserTokenWarning?eq():typeof n.useCdn>"u"&&ej(),i&&ev(n.projectId),n.dataset&&eg(n.dataset),"requestTagPrefix"in n&&(n.requestTagPrefix=n.requestTagPrefix?eA(n.requestTagPrefix).replace(/\.+$/,""):void 0),n.apiVersion=`${n.apiVersion}`.replace(/^v/,""),n.isDefaultApi=n.apiHost===eU.apiHost,!0===n.useCdn&&n.withCredentials&&eR(),n.useCdn=!1!==n.useCdn&&!n.withCredentials,function(t){if("1"===t||"X"===t)return;let e=new Date(t);if(!(/^\d{4}-\d{2}-\d{2}$/.test(t)&&e instanceof Date&&e.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(n.apiVersion);let u=n.apiHost.split("://",2),c=u[0],l=u[1],f=n.isDefaultApi?"apicdn.sanity.io":l;return i?(n.url=`${c}://${n.projectId}.${l}/v${n.apiVersion}`,n.cdnUrl=`${c}://${n.projectId}.${f}/v${n.apiVersion}`):(n.url=`${n.apiHost}/v${n.apiVersion}`,n.cdnUrl=n.url),n};class eD extends Error{name="ConnectionFailedError"}class eN extends Error{name="DisconnectError";reason;constructor(t,e,r={}){super(t,r),this.reason=e}}class eL extends Error{name="ChannelError";data;constructor(t,e){super(t),this.data=e}}class ez extends Error{name="MessageError";data;constructor(t,e,r={}){super(t,r),this.data=e}}class eH extends Error{name="MessageParseError"}let eV=["channelError","disconnect"];function eW(t,e){return t_(()=>{let e=t();return e&&(e instanceof tb||V(e.lift)&&V(e.subscribe))?e:tN(e)}).pipe(tz(t=>new tb(r=>{let n=e.includes("open"),i=e.includes("reconnect");function o(e){if("data"in e){let[t,n]=eY(e);r.error(t?new eH("Unable to parse EventSource error message",{cause:n}):new ez((n?.data).message,n));return}t.readyState===t.CLOSED?r.error(new eD("EventSource connection failed")):i&&r.next({type:"reconnect"})}function s(){r.next({type:"open"})}function a(t){let[e,n]=eY(t);if(e){r.error(new eH("Unable to parse EventSource message",{cause:e}));return}if("channelError"===t.type){var i;r.error(new eL((i=n?.data).error?i.error.description?i.error.description:"string"==typeof i.error?i.error:JSON.stringify(i.error,null,2):i.message||"Unknown listener error",n.data));return}if("disconnect"===t.type){r.error(new eN(`Server disconnected client: ${n.data?.reason||"unknown error"}`));return}r.next({type:t.type,id:t.lastEventId,...n.data?{data:n.data}:{}})}t.addEventListener("error",o),n&&t.addEventListener("open",s);let u=[...new Set([...eV,...e])].filter(t=>"error"!==t&&"open"!==t&&"reconnect"!==t);
5return u.forEach(e=>t.addEventListener(e,a)),()=>{t.removeEventListener("error",o),n&&t.removeEventListener("open",s),u.forEach(e=>t.removeEventListener(e,a)),t.close()}})))}function eY(t){try{let e="string"==typeof t.data&&JSON.parse(t.data);return[null,{type:t.type,id:t.lastEventId,...!function(t){for(let e in t)return!1;return!0}(e)?{data:e}:{}}]}catch(t){return[t,null]}}function eJ(t){if("string"==typeof t)return{id:t};if(Array.isArray(t))return{query:"*[_id in $ids]",params:{ids:t}};if("object"==typeof t&&null!==t&&"query"in t&&"string"==typeof t.query)return"params"in t&&"object"==typeof t.params&&null!==t.params?{query:t.query,params:t.params}:{query:t.query};let e=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(`
6`);throw Error(`Unknown selection - must be one of:
7
8${e}`)}class eG{selection;operations;constructor(t,e={}){this.selection=t,this.operations=e}set(t){return this._assign("set",t)}setIfMissing(t){return this._assign("setIfMissing",t)}diffMatchPatch(t){return em("diffMatchPatch",t),this._assign("diffMatchPatch",t)}unset(t){if(!Array.isArray(t))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:t}),this}inc(t){return this._assign("inc",t)}dec(t){return this._assign("dec",t)}insert(t,e,r){return eE(t,e,r),this._assign("insert",{[t]:e,items:r})}append(t,e){return this.insert("after",`${t}[-1]`,e)}prepend(t,e){return this.insert("before",`${t}[0]`,e)}splice(t,e,r,n){let i=e<0?e-1:e,o=typeof r>"u"||-1===r?-1:Math.max(0,e+r),s=`${t}[${i}:${i<0&&o>=0?"":o}]`;return this.insert("replace",s,n||[])}ifRevisionId(t){return this.operations.ifRevisionID=t,this}serialize(){return{...eJ(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(t,e,r=!0){return em(t,e),this.operations=Object.assign({},this.operations,{[t]:Object.assign({},r&&this.operations[t]||{},e)}),this}_set(t,e){return this._assign(t,e,!1)}}class eQ extends eG{#a;constructor(t,e,r){super(t,e),this.#a=r}clone(){return new eQ(this.selection,{...this.operations},this.#a)}commit(t){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let e=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},t);return this.#a.mutate({patch:this.serialize()},e)}}class eX extends eG{#a;constructor(t,e,r){super(t,e),this.#a=r}clone(){return new eX(this.selection,{...this.operations},this.#a)}commit(t){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let e=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},t);return this.#a.mutate({patch:this.serialize()},e)}}let eK={returnDocuments:!1};class eZ{operations;trxId;constructor(t=[],e){this.operations=t,this.trxId=e}create(t){return em("create",t),this._add({create:t})}createIfNotExists(t){let e="createIfNotExists";return em(e,t),eC(e,t),this._add({[e]:t})}createOrReplace(t){let e="createOrReplace";return em(e,t),eC(e,t),this._add({[e]:t})}delete(t){return ew("delete",t),this._add({delete:{id:t}})}transactionId(t){return t?(this.trxId=t,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(t){return this.operations.push(t),this}}class e0 extends eZ{#a;constructor(t,e,r){super(t,r),this.#a=e}clone(){return new e0([...this.operations],this.#a,this.trxId)}commit(t){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},eK,t||{}))}patch(t,e){let r="function"==typeof e,n="string"!=typeof t&&t instanceof eX,i="object"==typeof t&&("query"in t||"id"in t);if(n)return this._add({patch:t.serialize()});if(r){let r=e(new eX(t,{},this.#a));if(!(r instanceof eX))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}if(i){let r=new eX(t,e||{},this.#a);return this._add({patch:r.serialize()})}return this._add({patch:{id:t,...e}})}}class e1 extends eZ{#a;constructor(t,e,r){super(t,r),this.#a=e}clone(){return new e1([...this.operations],this.#a,this.trxId)}commit(t){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},eK,t||{}))}patch(t,e){let r="function"==typeof e;if("string"!=typeof t&&t instanceof eQ)return this._add({patch:t.serialize()});if(r){let r=e(new eQ(t,{},this.#a));if(!(r instanceof eQ))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:{id:t,...e}})}}let e2=({query:t,params:e={},options:r={}})=>{let n=new URLSearchParams,{tag:i,includeMutations:o,returnQuery:s,...a}=r;for(let[r,o]of(i&&n.append("tag",i),n.append("query",t),Object.entries(e)))n.append(`$${r}`,JSON.stringify(o));for(let[t,e]of Object.entries(a))e&&n.append(t,`${e}`);return!1===s&&n.append("returnQuery","false"),!1===o&&n.append("includeMutations","fal
8se"),`?${n}`},e3=(t,e)=>!1===t?void 0:typeof t>"u"?e:t,e6=(t={})=>({dryRun:t.dryRun,returnIds:!0,returnDocuments:e3(t.returnDocuments,!0),visibility:t.visibility||"sync",autoGenerateArrayKeys:t.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:t.skipCrossDatasetReferenceValidation}),e5=t=>"response"===t.type,e8=t=>t.body,e4=(t,e)=>t.reduce((t,r)=>(t[e(r)]=r,t),Object.create(null));function e9(t,e,n,i,o={},s={}){let a="stega"in s?{...n||{},..."boolean"==typeof s.stega?{enabled:s.stega}:s.stega||{}}:n,u=a.enabled?(0,et.Q)(o):o,c=!1===s.filterResponse?t=>t:t=>t.result,{cache:l,next:f,...h}={useAbortSignal:"u">typeof s.signal,resultSourceMap:a.enabled?"withKeyArraySelector":s.resultSourceMap,...s,returnQuery:!1===s.filterResponse&&!1!==s.returnQuery},p=rs(t,e,"query",{query:i,params:u},"u">typeof l||"u">typeof f?{...h,fetch:{cache:l,next:f}}:h);return a.enabled?p.pipe(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return en.apply(void 0,z([],L(t)))}(tD(r.e(836).then(r.bind(r,4836)).then(function(t){return t.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:t})=>t))),tL(([t,e])=>{let r=e(t.result,t.resultSourceMap,a);return c({...t,result:r})})):p.pipe(tL(c))}function e7(t,e,r,n={}){let i={uri:rv(t,"doc",r),json:!0,tag:n.tag,signal:n.signal};return ry(t,e,i).pipe(ei(e5),tL(t=>t.body.documents&&t.body.documents[0]))}function rt(t,e,r,n={}){let i={uri:rv(t,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return ry(t,e,i).pipe(ei(e5),tL(t=>{let e=e4(t.body.documents||[],t=>t._id);return r.map(t=>e[t]||null)}))}function re(t,e,r,n){return eC("createIfNotExists",r),ra(t,e,r,"createIfNotExists",n)}function rr(t,e,r,n){return eC("createOrReplace",r),ra(t,e,r,"createOrReplace",n)}function rn(t,e,r,n){return rs(t,e,"mutate",{mutations:[{delete:eJ(r)}]},n)}function ri(t,e,r,n){let i;return rs(t,e,"mutate",{mutations:Array.isArray(i=r instanceof eX||r instanceof eQ?{patch:r.serialize()}:r instanceof e0||r instanceof e1?r.serialize():r)?i:[i],transactionId:n&&n.transactionId||void 0},n)}function ro(t,e,r,n){let i=Array.isArray(r)?r:[r];return rs(t,e,"actions",{actions:i,transactionId:n&&n.transactionId||void 0,skipCrossDatasetReferenceValidation:n&&n.skipCrossDatasetReferenceValidation||void 0,dryRun:n&&n.dryRun||void 0},n)}function rs(t,e,r,n,i={}){let o="mutate"===r,s="actions"===r,a=o||s?"":e2(n),u=!o&&!s&&a.length<11264,c=u?a:"",l=i.returnFirst,{timeout:f,token:h,tag:p,headers:d,returnQuery:y,lastLiveEventId:g,cacheMode:v}=i,b={method:u?"GET":"POST",uri:rv(t,r,c),json:!0,body:u?void 0:n,query:o&&e6(i),timeout:f,headers:d,token:h,tag:p,returnQuery:y,perspective:i.perspective,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(g)?g[0]:g,cacheMode:v,canUseCdn:"query"===r,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn};return ry(t,e,b).pipe(ei(e5),tL(e8),tL(t=>{if(!o)return t;let e=t.results||[];if(i.returnDocuments)return l?e[0]&&e[0].document:e.map(t=>t.document);let r=l?e[0]&&e[0].id:e.map(t=>t.id);return{transactionId:t.transactionId,results:e,[l?"documentId":"documentIds"]:r}}))}function ra(t,e,r,n,i={}){return rs(t,e,"mutate",{mutations:[{[n]:r}]},Object.assign({returnFirst:!0,returnDocuments:!0},i))}let ru=t=>void 0!==t.config().dataset&&void 0!==t.config().projectId||void 0!==t.config()["~experimental_resource"],rc=(t,e)=>ru(t)&&e.startsWith(rv(t,"query")),rl=(t,e)=>
8ru(t)&&e.startsWith(rv(t,"mutate")),rf=(t,e)=>ru(t)&&e.startsWith(rv(t,"doc","")),rh=(t,e)=>ru(t)&&e.startsWith(rv(t,"listen")),rp=(t,e)=>ru(t)&&e.startsWith(rv(t,"history","")),rd=(t,e)=>e.startsWith("/data/")||rc(t,e)||rl(t,e)||rf(t,e)||rh(t,e)||rp(t,e);function ry(t,e,r){var n;let i=r.url||r.uri,o=t.config(),s=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&rd(t,i):r.canUseCdn,a=(r.useCdn??o.useCdn)&&s,u=r.tag&&o.requestTagPrefix?[o.requestTagPrefix,r.tag].join("."):r.tag||o.requestTagPrefix;if(u&&null!==r.tag&&(r.query={tag:eA(u),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&rc(t,i)){let t=r.resultSourceMap??o.resultSourceMap;void 0!==t&&!1!==t&&(r.query={resultSourceMap:t,...r.query});let e=r.perspective||o.perspective;"u">typeof e&&("previewDrafts"===e&&eT(),eB(e),r.query={perspective:Array.isArray(e)?e.join(","):e,...r.query},(Array.isArray(e)&&e.length>0||"previewDrafts"===e||"drafts"===e)&&a&&(a=!1,e_())),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),!1===r.returnQuery&&(r.query={returnQuery:"false",...r.query}),a&&"noStale"==r.cacheMode&&(r.query={cacheMode:"noStale",...r.query})}let c=function(t,e={}){let r={},n=e.token||t.token;n&&(r.Authorization=`Bearer ${n}`),e.useGlobalApi||t.useProjectHostname||!t.projectId||(r["X-Sanity-Project-ID"]=t.projectId);let i=!!(typeof e.withCredentials>"u"?t.withCredentials:e.withCredentials),o=typeof e.timeout>"u"?t.timeout:e.timeout;return Object.assign({},e,{headers:Object.assign({},r,e.headers||{}),timeout:typeof o>"u"?3e5:o,proxy:e.proxy||t.proxy,json:!0,withCredentials:i,fetch:"object"==typeof e.fetch&&"object"==typeof t.fetch?{...t.fetch,...e.fetch}:e.fetch||t.fetch})}(o,Object.assign({},r,{url:rb(t,i,a)})),l=new tb(t=>e(c,o.requester).subscribe(t));return r.signal?l.pipe((n=r.signal,t=>new tb(e=>{let r=()=>e.error(function(t){if(rm)return new DOMException(t?.reason??"The operation was aborted.","AbortError");let e=Error(t?.reason??"The operation was aborted.");return e.name="AbortError",e}(n));if(n&&n.aborted){r();return}let i=t.subscribe(e);return n.addEventListener("abort",r),()=>{n.removeEventListener("abort",r),i.unsubscribe()}}))):l}function rg(t,e,r){return ry(t,e,r).pipe(ei(t=>"response"===t.type),tL(t=>t.body))}function rv(t,e,r){let n=t.config();if(n["~experimental_resource"]){eO(n);let t=rw(n),i=void 0!==r?`${e}/${r}`:e;return`${t}/${i}`.replace(/\/($|\?)/,"$1")}let i=ex(n),o=`/${e}/${i}`;return`/data${void 0!==r?`${o}/${r}`:o}`.replace(/\/($|\?)/,"$1")}function rb(t,e,r=!1){let{url:n,cdnUrl:i}=t.config();return`${r?i:n}/${e.replace(/^\//,"")}`}let rm=!!globalThis.DOMException,rw=t=>{if(!t["~experimental_resource"])throw Error("`resource` must be provided to perform resource queries");let{type:e,id:r}=t["~experimental_resource"];switch(e){case"dataset":{let t=r.split(".");if(2!==t.length)throw Error('Dataset ID must be in the format "project.dataset"');return`/projects/${t[0]}/datasets/${t[1]}`}case"canvas":return`/canvases/${r}`;case"media-library":return`/media-libraries/${r}`;case"dashboard":return`/dashboards/${r}`;default:throw Error(`Unsupported resource type: ${e.toString()}`)}};class rC{#a;#u;constructor(t,e){this.#a=t,this.#u=e}upload(t,e,r){return rx(this.#a,this.#u,t,e,r)}}class rE{#a;#u;constructor(t,e){this.#a=t,this.#u=e}upload(t,e,r){return tV(rx(this.#a,this.#u,t,e,r).pipe(ei(t=>"response"===t.type),tL(t=>t.body.document)))}}function rx(t,e,r,n,i={}){eb(r);let o=i.extract||void 0;o&&!o.length&&(o=["none"]);let s=t.config(),a=!(typeof File>"u")&&n instanceof File?Object.assign({filename:!1===i.preserveFilename?void 0:n.name,contentType:n.type},i):i,{tag:u,label:c,title:l,description:f,creditLine:h,filename:p,source:d}=a,y={label:c,title:l,description:f,filename:p,meta:o,creditLine:h};return d&&(y.sourceId=d.id,y.sourceName=d.name,y.sourceUrl=d.url),ry(t,e,{tag:u,method:"POST",timeout:a.timeout||0,uri:function(t,e){let r="image"===e?"images":"files";if(t["~experimental_resource"]){let{type:e,id:n}=t["~experimental_resource"];switch(e){case"dataset":throw Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${n}/assets/${r}`;case"media-library":return`/media-libraries/${n}/upload`;case"dashboard":return`/dashboards/${n}/assets/${r}`;default:throw Error(`Unsupported resource type: ${e.toString()}`)}}let n=ex(t);return`assets/${r}/${n}`}(s,r),headers:a.contentType?{"Content-Type":a.contentType}:{},query:y,body:n})}var rA=(t,e)=>Object.keys(e).concat(Object.keys(t)).reduce((r,n)=>(r[n]=typeof t[n]>"u"?e[n]:t[n],r),{});let rO=(t,e)=>e.reduce((e,r)=>(typeof t[r]>"u"||(e[r]=t[r]),e),{}),rI=t_(()=>r.e(805).then(r.t.bind(r,2805,19))).pipe(tL(({default:t})=>t),function(t,e,r){var n;return n=t,tX({connector:function(){return new tQ(n,void 0,void 0)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:!1})}(1));function rS(){return function(t){return t.pipe(tZ((t,e)=>{var r;return t instanceof eD?t1(tN({type:"reconnect"}),(void 0===r&&(r=t8),new tb(function(t){var e=1e3,n=0;return r.schedule(function(){t.closed||(t.next(n++),t.complete())},e)})).pipe(tz(()=>e))):t4(()=>t)}))}}let rR=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","tag"],rj={includeResult:!0};function r_(t,e,r={}){let{url:n,token:i,withCredentials:o,requestTagPrefix:s}=this.config(),a=r.tag&&s?[s,r.tag].join("."):r.tag,u={...rA(r,rj),tag:a},c=e2({query:t,params:e,options:{tag:a,...rO(u,rR)}}),l=`${n}${rv(this,"listen",c)}`;if(l.length>14800)return t4(()=>Error("Query too large for listener"));let f=u.events?u.events:["mutation"],h={};return o&&(h.withCredentials=!0),i&&(h.headers={Authorization:`Bearer ${i}`}),eW(()=>(typeof EventSource>"u"||h.headers?rI:tN(EventSource)).pipe(tL(t=>new t(l,h))),f).pipe(rS(),ei(t=>f.includes(t.type)),tL(t=>({type:t.type,..."data"in t?t.data:{}})))}let rT="2021-03-25";class rq{#a;constructor(t){this.#a=t}events({includeDrafts:t=!1,tag:e}={}){var r,n,i;eI("live",this.#a.config());let{projectId:o,apiVersion:s,token:a,withCredentials:u,requestTagPrefix:c}=this.#a.config(),l=s.replace(/^v/,"");if("X"!==l&&l<rT)throw Error(`The live events API requires API version ${rT} or later. The current API version is ${l}. Please update your API version to use this feature.`);if(t&&!a&&!u)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 f=rv(this.#a,"live/events"),h=new URL(this.#a.getUrl(f,!1)),p=e&&c?[c,e].join("."):e;p&&h.searchParams.set("tag",p),t&&h.searchParams.set("includeDrafts","true");let d={};t&&a&&(d.headers={Authorization:`Bearer ${a}`}),t&&u&&(d.withCredentials=!0);let y=`${h.href}::${JSON.stringify(d)}`,g=r$.get(y);if(g)return g;let v=eW(()=>(typeof EventSource>"u"||d.headers?rI:tN(EventSource)).pipe(tL(t=>new t(h.href,d))),["message","restart","welcome","reconnect","goaway"]).pipe(rS(),tL(t=>{if("message"===t.type){let{data:e,...r}=t;return{...r,tags:e.tags}}return t})),b=t1((n={method:"OPTIONS",mode:"cors",credentials:d.withCredentials?"include":"omit",headers:d.headers},new tb(t=>{let e=new AbortController,r=e.signal;return fetch(h,{...n,signal:e.signal}).then(e=>{t.next(e),t.complete()},e=>{r.aborted||t.error(e)}),()=>e.abort()})).pipe(tz(()=>t7),tZ(()=>
8{throw new ec({projectId:o})})),v).pipe(t9(()=>r$.delete(y)),(i="function"==typeof(r={predicate:t=>"welcome"===t.type})?{predicate:r}:r,t=>{var e,r,n,o;let s,a=!1,{predicate:u,...c}=i;return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=tq(e),i=(t=1/0,"number"==typeof tT(e)?e.pop():t);return e.length?1===e.length?tR(e[0]):t0(i)(tD(e,n)):t7}(t.pipe((o=V(e=t=>{i.predicate(t)&&(a=!0,s=t)})?{next:e,error:r,complete:n}:e)?tP(function(t,e){null===(r=o.subscribe)||void 0===r||r.call(o);var r,n=!0;t.subscribe(tU(e,function(t){var r;null===(r=o.next)||void 0===r||r.call(o,t),e.next(t)},function(){var t;n=!1,null===(t=o.complete)||void 0===t||t.call(o),e.complete()},function(t){var r;n=!1,null===(r=o.error)||void 0===r||r.call(o,t),e.error(t)},function(){var t,e;n&&(null===(t=o.unsubscribe)||void 0===t||t.call(o)),null===(e=o.finalize)||void 0===e||e.call(o)}))}):tg,t9(()=>{a=!1,s=void 0}),tX(c)),new tb(t=>{a&&t.next(s),t.complete()}))}));return r$.set(y,b),b}}let r$=new Map;class rP{#a;#u;constructor(t,e){this.#a=t,this.#u=e}create(t,e){return rM(this.#a,this.#u,"PUT",t,e)}edit(t,e){return rM(this.#a,this.#u,"PATCH",t,e)}delete(t){return rM(this.#a,this.#u,"DELETE",t)}list(){return rg(this.#a,this.#u,{uri:"/datasets",tag:null})}}class rU{#a;#u;
8constructor(t,e){this.#a=t,this.#u=e}create(t,e){return eI("dataset",this.#a.config()),tV(rM(this.#a,this.#u,"PUT",t,e))}edit(t,e){return eI("dataset",this.#a.config()),tV(rM(this.#a,this.#u,"PATCH",t,e))}delete(t){return eI("dataset",this.#a.config()),tV(rM(this.#a,this.#u,"DELETE",t))}list(){return eI("dataset",this.#a.config()),tV(rg(this.#a,this.#u,{uri:"/datasets",tag:null}))}}function rM(t,e,r,n,i){return eI("dataset",t.config()),eg(n),rg(t,e,{method:r,uri:`/datasets/${n}`,body:i,tag:null})}class rk{#a;#u;constructor(t,e){this.#a=t,this.#u=e}list(t){eI("projects",this.#a.config());let e=t?.includeMembers===!1?"/projects?includeMembers=false":"/projects";return rg(this.#a,this.#u,{uri:e})}getById(t){return eI("projects",this.#a.config()),rg(this.#a,this.#u,{uri:`/projects/${t}`})}}class rB{#a;#u;constructor(t,e){this.#a=t,this.#u=e}list(t){eI("projects",this.#a.config());let e=t?.includeMembers===!1?"/projects?includeMembers=false":"/projects";return tV(rg(this.#a,this.#u,{uri:e}))}getById(t){return eI("projects",this.#a.config()),tV(rg(this.#a,this.#u,{uri:`/projects/${t}`}))}}class rF{#a;#u;constructor(t,e){this.#a=t,this.#u=e}getById(t){return rg(this.#a,this.#u,{uri:`/users/${t}`})}}class rD{#a;#u;constructor(t,e){this.#a=t,this.#u=e}getById(t){return tV(rg(this.#a,this.#u,{uri:`/users/${t}`}))}}class rN{assets;datasets;live;projects;users;#c;#u;listen=r_;constructor(t,e=eU){this.config(e),this.#u=t,this.assets=new rC(this,this.#u),this.datasets=new rP(this,this.#u),this.live=new rq(this),this.projects=new rk(this,this.#u),this.users=new rF(this,this.#u)}clone(){return new rN(this.#u,this.config())}config(t){if(void 0===t)return{...this.#c};if(this.#c&&!1===this.#c.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#c=eF(t,this.#c||{}),this}withConfig(t){let e=this.config();return new rN(this.#u,{...e,...t,stega:{...e.stega||{},..."boolean"==typeof t?.stega?{enabled:t.stega}:t?.stega||{}}})}fetch(t,e,r){return e9(this,this.#u,this.#c.stega,t,e,r)}getDocument(t,e){return e7(this,this.#u,t,e)}getDocuments(t,e){return rt(this,this.#u,t,e)}create(t,e){return ra(this,this.#u,t,"create",e)}createIfNotExists(t,e){return re(this,this.#u,t,e)}createOrReplace(t,e){return rr(this,this.#u,t,e)}delete(t,e){return rn(this,this.#u,t,e)}mutate(t,e){return ri(this,this.#u,t,e)}patch(t,e){return new eQ(t,e,this)}transaction(t){return new e1(t,this)}action(t,e){return ro(this,this.#u,t,e)}request(t){return rg(this,this.#u,t)}getUrl(t,e){return rb(this,t,e)}getDataUrl(t,e){return rv(this,t,e)}}class rL{assets;datasets;live;projects;users;observable;#c;#u;listen=r_;constructor(t,e=eU){this.config(e),this.#u=t,this.assets=new rE(this,this.#u),this.datasets=new rU(this,this.#u),this.live=new rq(this),this.projects=new rB(this,this.#u),this.users=new rD(this,this.#u),this.observable=new rN(t,e)}clone(){return new rL(this.#u,this.config())}config(t){if(void 0===t)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(t),this.#c=eF(t,this.#c||{}),this}withConfig(t){let e=this.config();return new rL(this.#u,{...e,...t,stega:{...e.stega||{},..."boolean"==typeof t?.stega?{enabled:t.stega}:t?.stega||{}}})}fetch(t,e,r){return tV(e9(this,this.#u,this.#c.stega,t,e,r))}getDocument(t,e){return tV(e7(this,this.#u,t,e))}getDocuments(t,e){return tV(rt(this,this.#u,t,e))}create(t,e){return tV(ra(this,this.#u,t,"create",e))}createIfNotExists(t,e){return tV(re(this,this.#u,t,e))}createOrReplace(t,e){return tV(rr(this,this.#u,t,e))}delete(t,e){return tV(rn(this,this.#u,t,e))}mutate(t,e){return tV(ri(this,this.#u,t,e))}patch(t,e){return new eX(t,e,this)}transaction(t){return new e0(t,this)}action(t,e){return tV(ro(this,this.#u,t,e))}request(t){return tV(rg(this,this.#u,t))}dataRequest(t,e,r){return tV(rs(this,this.#u,t,e,r))}getUrl(t,e){return rb(this,t,e)}getDataUrl(t,e){return rv(this,t,e)}}let rz=function(t,e){return{requester:ef(t),createClient:r=>{let n=ef(t);return new e((t,e)=>(e||n)({maxRedirects:0,maxRetries:r.maxRetries,retryDelay:r.retryDelay,...t}),r)}}}([],rL),rH=(rz.requester,rz.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.