PageSourceSearch

https://www.1x.tech/_next/static/chunks/80.376b780055729a34.js

js 1x.tech collected 2026-10-02 03:14:33 UTC 38,905 bytes, 2 lines download raw bytes

1try{!function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="e0aaa3d1-80d9-4102-a399-22d03862680b",t._sentryDebugIdIdentifier="sentry-dbid-e0aaa3d1-80d9-4102-a399-22d03862680b")}()}catch(t){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[80],{40275:function(t,e,i){let s;i.d(e,{Kx:function(){return f},T:function(){return p},o_:function(){return y}});var r=i(67294);let n=new Uint8Array(16),o=[];for(let t=0;t<256;++t)o.push((t+256).toString(16).slice(1));var a={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let l=["channel/disconnect","channel/response","channel/heartbeat"],h=["handshake/syn","handshake/syn-ack","handshake/ack"],u=t=>l.some(e=>e===t),c=t=>h.some(e=>e===t),d=({data:t={}})=>"object"==typeof t&&null!==t&&!Array.isArray(t)&&!("domain"in t)&&["id","type","from","to"].every(e=>e in t)&&t.type.startsWith("handshake/");function p(t,e,i){let[l,h]=(0,r.useState)(),[p,f]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(window.self===window.top&&!window.opener)return;let t=function(t){let e=window.self!==window.top||window.opener,i={buffer:[],id:null,origin:null,source:null,status:"connecting"};function r(e,r){if(c(e)||u(e)||"connecting"!==i.status&&"reconnecting"!==i.status){if(i.id&&i.origin&&i.source){let l={connectionId:i.id,data:r,domain:"sanity/channels",from:t.id,id:function(t,e,i){if(a.randomUUID&&!e&&!t)return a.randomUUID();let r=(t=t||{}).random||(t.rng||function(){if(!s&&!(s="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(n)})();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){i=i||0;for(let t=0;t<16;++t)e[i+t]=r[t];return e}return function(t,e=0){return o[t[e+0]]+o[t[e+1]]+o[t[e+2]]+o[t[e+3]]+"-"+o[t[e+4]]+o[t[e+5]]+"-"+o[t[e+6]]+o[t[e+7]]+"-"+o[t[e+8]]+o[t[e+9]]+"-"+o[t[e+10]]+o[t[e+11]]+o[t[e+12]]+o[t[e+13]]+o[t[e+14]]+o[t[e+15]]}(r)}(),to:t.connectTo,type:e};try{i.source.postMessage(l,{targetOrigin:i.origin})}catch(e){throw Error(`Failed to postMessage '${l.id}' on '${t.id}'`)}}}else i.buffer.push({type:e,data:r})}function l(e){if(d(e))console.error("Visual editing package mismatch detected! Please ensure you are using the latest version of Sanity Studio and any packages listed here:\nhttps://github.com/sanity-io/visual-editing");else if(function(e){let{data:i}=e;return"sanity/channels"===i.domain&&i.to===t.id&&i.from===t.connectTo&&"channel/response"!==i.type}(e)){let{data:s}=e;if(i.origin&&e.origin!==i.origin)return;if(e.source&&i.source!==e.source&&(i.source=e.source),c(s.type)&&s.data){if("handshake/syn"===s.type)return i.origin=e.origin,i.id=s.data.id,h("connecting"),void r("handshake/syn-ack",{id:i.id});if("handshake/ack"===s.type&&s.data.id===i.id)return void h("connected")}else if(s.connectionId===i.id&&e.origin===i.origin){if("channel/disconnect"===s.type)return void h("disconnected");{let e=[s.type,s.data];t.onEvent?.(...e),r("channel/response",{responseTo:s.id})}return}}}function h(e){i.status=e,t?.onStatusUpdate?.(e),"connected"===e&&function(){let t=[...i.buffer];i.buffer.splice(0,i.buffer.length),t.forEach(({type:t,data:e})=>{r(t,e)})}()}return window.addEventListener("message",l,!1),h("connecting"),{destroy:function(){["disconnected"].includes(i.status)||h("disconnected"),window.removeEventListener("message",l,!1)},inFrame:e,send:function(t,e){r(t,e)}}}({id:"preview-kit",connectTo:"presentation",onStatusUpdate(t){"connected"===t?f(!0):"disconnected"===t&&f(!1)}}),e=setTimeout(()=>h(t),0);return()=>{clearTimeout(e),t.destroy(),h(void 0)}},[i,e]);let y=JSON.stringify(Array.from(t.keys()));(0,r.useEffect)(()=>{"[]"!==y&&l&&p&&l.send("preview-kit/documents",{projectId:e,dataset:i,perspective:"previewDrafts",documents:Array.from(t.values())})},[y,l,p,i,t,e])}function f(t){let e=(0,r.useMemo)(()=>JSON.stringify(t||{}),[t]);return(0,r.useMemo)(()=>JSON.parse(e),[e])}function y(t){let{refreshInterval:e}=t,i=function(){let[t,e]=(0,r.useState)(!1);(0,r.useEffect)(()=>{e(navigator.onLine);let t=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",t),window.addEventListener("offline",i),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",i)}},[]);let i=(0,r.useSyncExternalStore)(g,()=>document.visibilityState,()=>"hidden");return!t||"hidden"===i}(),[s,n]=(0,r.useState)("hit"),o=(0,r.useCallback)(()=>(n("inflight"),()=>n("hit")),[]);return(0,r.useEffect)(()=>
1{if(!e||"hit"!==s)return;let t=setTimeout(()=>n("stale"),e);return()=>clearTimeout(t)},[e,s]),(0,r.useEffect)(()=>{if("hit"!==s)return;let t=()=>n("stale");return window.addEventListener("focus",t),()=>window.removeEventListener("focus",t)},[e,s]),(0,r.useEffect)(()=>{i&&"hit"===s&&n("stale"),i||"stale"!==s||n("refresh")},[i,s]),[s,o]}function g(t){return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)}},80080:function(t,e,i){i.r(e),i.d(e,{default:function(){return Q}});var s=i(85893);let r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/_key\s*==\s*['"](.*)['"]/,o=/^\d*:\d*$/;function a(t){return"number"==typeof t||"string"==typeof t&&/^\[\d+\]$/.test(t)}function l(t){return"string"==typeof t?n.test(t.trim()):"object"==typeof t&&"_key"in t}function h(t){return a(t)?Number(t.replace(/[^\d]/g,"")):l(t)?{_key:t.match(n)[1]}:!function(t){if("string"==typeof t&&o.test(t))return!0;if(!Array.isArray(t)||2!==t.length)return!1;let[e,i]=t;return("number"==typeof e||""===e)&&("number"==typeof i||""===i)}(t)?t:function(t){let[e,i]=t.split(":").map(t=>""===t?t:Number(t));return[e,i]}(t)}let u="drafts.",c="versions.";function d(t){return t.startsWith(u)}function p(t){return t.startsWith(c)}function f(t){return p(t)?t.split(".").slice(2).join("."):d(t)?t.slice(u.length):t}let y={"\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t","'":"\\'","\\":"\\\\"},g={"\\f":"\f","\\n":`
2`,"\\r":"\r","\\t":"	","\\'":"'","\\\\":"\\"};function v(t){return"object"==typeof t&&null!==t}function m(t){return"https://www.sanity.io/help/"+t}let S=t=>{var e;let i,s;return e=(...e)=>console.warn(t.join(" "),...e),i=!1,(...t)=>(i||(s=e(...t),i=!0),s)};S(["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"]),S(["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."]),S(["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."]),S(["The `previewDrafts` perspective has been renamed to  `drafts` and will be removed in a future API version"]),S(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${m("js-client-browser-token")} for more information and how to hide this warning.`]),S(["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`."]),S(["Using the Sanity client without specifying an API version is deprecated.",`See ${m("js-client-api-version")}`]),S(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]);var b=i(40275),w={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},k={0:8203,1:8204,2:8205,3:65279};[,,,,].fill(String.fromCodePoint(k[0])).join(""),Object.fromEntries(Object.entries(k).map(t=>t.reverse())),Object.fromEntries(Object.entries(w).map(t=>t.reverse()));var A=`${Object.values(w).map(t=>`\\u{${t.toString(16)}}`).join("")}`,_=RegExp(`[${A}]{4,}`,"gu");function E(t){var e;return{cleaned:t.replace(_,""),encoded:(null==(e=t.match(_))?void 0:e[0])||""}}var F=i(34155);let L="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,x=new Set,z="object"==typeof F&&F?F:{},T=(t,e,i,s)=>{"function"==typeof z.emitWarning?z.emitWarning(t,e,i,s):console.error(`[${i}] ${e}: ${t}`)},O=globalThis.AbortController,I=globalThis.AbortSignal;if(void 0===O){I=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},O=class{constructor(){e()}signal=new I;abort(t){if(!this.signal.aborted){for(let e of(this.signal.reason=t,this.signal.aborted=!0,this.signal._onabort))e(t);this.signal.onabort?.(t)}}};let t=z.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,T("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}let j=t=>!x.has(t);Symbol("type");let C=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),D=t=>C(t)?t<=256?Uint8Array:t<=65536?Uint16Array:t<=4294967296?Uint32Array:t<=Number.MAX_SAFE_INTEGER?P
2:null:null;class P extends Array{constructor(t){super(t),this.fill(0)}}class M{heap;length;static #t=!1;static create(t){let e=D(t);if(!e)return[];M.#t=!0;let i=new M(t,e);return M.#t=!1,i}constructor(t,e){if(!M.#t)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class R{#e;#i;#s;#r;#n;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#a;#l;#h;#u;#c;#d;#p;#f;#y;#g;#v;#m;#S;#b;#w;#k;static unsafeExposeInternals(t){return{starts:t.#m,ttls:t.#S,sizes:t.#v,keyMap:t.#l,keyList:t.#h,valList:t.#u,next:t.#c,prev:t.#d,get head(){return t.#p},get tail(){return t.#f},free:t.#y,isBackgroundFetch:e=>t.#A(e),backgroundFetch:(e,i,s,r)=>t.#_(e,i,s,r),moveToTail:e=>t.#E(e),indexes:e=>t.#F(e),rindexes:e=>t.#L(e),isStale:e=>t.#x(e)}}get max(){return this.#e}get maxSize(){return this.#i}get calculatedSize(){return this.#a}get size(){return this.#o}get fetchMethod(){return this.#n}get dispose(){return this.#s}get disposeAfter(){return this.#r}constructor(t){let{max:e=0,ttl:i,ttlResolution:s=1,ttlAutopurge:r,updateAgeOnGet:n,updateAgeOnHas:o,allowStale:a,dispose:l,disposeAfter:h,noDisposeOnSet:u,noUpdateTTL:c,maxSize:d=0,maxEntrySize:p=0,sizeCalculation:f,fetchMethod:y,noDeleteOnFetchRejection:g,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:S,ignoreFetchAbort:b}=t;if(0!==e&&!C(e))throw TypeError("max option must be a nonnegative integer");let w=e?D(e):Array;if(!w)throw Error("invalid max value: "+e);if(this.#e=e,this.#i=d,this.maxEntrySize=p||this.#i,this.sizeCalculation=f,this.sizeCalculation){if(!this.#i&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw TypeError("sizeCalculation set to non-function")}if(void 0!==y&&"function"!=typeof y)throw TypeError("fetchMethod must be a function if specified");if(this.#n=y,this.#w=!!y,this.#l=new Map,this.#h=Array(e).fill(void 0),this.#u=Array(e).fill(void 0),this.#c=new w(e),this.#d=new w(e),this.#p=0,this.#f=0,this.#y=M.create(e),this.#o=0,this.#a=0,"function"==typeof l&&(this.#s=l),"function"==typeof h?(this.#r=h,this.#g=[]):(this.#r=void 0,this.#g=void 0),this.#b=!!this.#s,this.#k=!!this.#r,this.noDisposeOnSet=!!u,this.noUpdateTTL=!!c,this.noDeleteOnFetchRejection=!!g,this.allowStaleOnFetchRejection=!!m,this.allowStaleOnFetchAbort=!!S,this.ignoreFetchAbort=!!b,0!==this.maxEntrySize){if(0!==this.#i&&!C(this.#i))throw TypeError("maxSize must be a positive integer if specified");if(!C(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#z()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!n,this.updateAgeOnHas=!!o,this.ttlResolution=C(s)||0===s?s:1,this.ttlAutopurge=!!r,this.ttl=i||0,this.ttl){if(!C(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#T()}if(0===this.#e&&0===this.ttl&&0===this.#i)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#i){let t="LRU_CACHE_UNBOUNDED";j(t)&&(x.add(t),T("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,R))}}getRemainingTTL(t){return this.#l.has(t)?1/0:0}#T(){let t=new P(this.#e),e=new P(this.#e);this.#S=t,this.#m=e,this.#O=(i,s,r=L.now())=>{if(e[i]=0!==s?r:0,t[i]=s,0!==s&&this.ttlAutopurge){let t=setTimeout(()=>{this.#x(i)&&this.delete(this.#h[i])},s+1);t.unref&&t.unref()}},this.#I=i=>{e[i]=0!==t[i]?L.now():0},this.#j=(r,n)=>{if(t[n]){let o=t[n],a=e[n];if(!o||!a)return;r.ttl=o,r.start=a,r.now=i||s();let l=r.now-a;r.remainingTTL=o-l}};let i=0,s=()=>{let t=L.now();if(this.ttlResolution>0){i=t;let e=setTimeout(()=>i=0,this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=r=>{let n=this.#l.get(r);if(void 0===n)return 0;let o=t[n],a=e[n];return o&&a?o-((i||s())-a):1/0},this.#x=r=>{let n=e[r],o=t[r];return!!o&&!!n&&(i||s())-n>o}}#I=()=>{};#j=()=>{};#O=()=>{};#x=()=>!1;#z(){let t=new P(this.#e);this.#a=0,this.#v=t,this.#C=e=>{this.#a-=t[e],t[e]=0},this.#D=(t,e,i,s)=>{if(this.#A(e))return 0;if(!C(i)){if(s){if("function"!=typeof s)throw TypeError("sizeCalculation must be a function");if(!C(i=s(e,t)))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.")}return i},this.#P=(e,i,s)=>{if(t[e]=i,this.#i){let i=this.#i-t[e];for(;this.#a>i;)this.#M(!0)}this.#a+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#a)}}#C=t=>{};#P=(t,e,i)=>{};#D=(t,e,i,s)=>{if(i||s)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#F({allowStale:t=this.allowStale}={}){if(this.#o)for(let e=this.#f;this.#R(e)&&((t||!this.#x(e))&&(yield e),e!==this.#p);)e=this.#d[e]}*#L({allowStale:t=this.allowStale}={}){if(this.#o)for(let e=this.#p;this.#R(e)&&((t||!this.#x(e))&&(yield e),e!==this.#f);)e=this.#c[e]}#R(t){return void 0!==t&&this.#l.get(this.#h[t])===t}*entries(){for(let t of this.#F())void 0===this.#u[t]||void 0===this.#h[t]||this.#A(this.#u[t])||(yield[this.#h[t],this.#u[t]])}*rentries(){for(let t of this.#L())void 0===this.#u[t]||void 0===this.#h[t]||this.#A(this.#u[t])||(yield[this.#h[t],this.#u[t]])}*keys(){for(let t of this.#F()){let e=this.#h[t];void 0===e||this.#A(this.#u[t])||(yield e)}}*rkeys(){for(let t of this.#L()){let e=this.#h[t];void 0===e||this.#A(this.#u[t])||(yield e)}}*values(){for(let t of this.#F())void 0===this.#u[t]||this.#A(this.#u[t])||(yield this.#u[t])}*rvalues(){for(let t of this.#L())void 0===this.#u[t]||this.#A(this.#u[t])||(yield this.#u[t])}[Symbol.iterator](){return this.entries()}find(t,e={}){for(let i of this.#F()){let s=this.#u[i],r=this.#A(s)?s.__staleWhileFetching:s;if(void 0!==r&&t(r,this.#h[i],this))return this.get(this.#h[i],e)}}forEach(t,e=this){for(let i of this.#F()){let s=this.#u[i],r=this.#A(s)?s.__staleWhileFetching:s;void 0!==r&&t.call(e,r,this.#h[i],this)}}
2rforEach(t,e=this){for(let i of this.#L()){let s=this.#u[i],r=this.#A(s)?s.__staleWhileFetching:s;void 0!==r&&t.call(e,r,this.#h[i],this)}}purgeStale(){let t=!1;for(let e of this.#L({allowStale:!0}))this.#x(e)&&(this.delete(this.#h[e]),t=!0);return t}info(t){let e=this.#l.get(t);if(void 0===e)return;let i=this.#u[e],s=this.#A(i)?i.__staleWhileFetching:i;if(void 0===s)return;let r={value:s};if(this.#S&&this.#m){let t=this.#S[e],i=this.#m[e];if(t&&i){let e=t-(L.now()-i);r.ttl=e,r.start=Date.now()}}return this.#v&&(r.size=this.#v[e]),r}dump(){let t=[];for(let e of this.#F({allowStale:!0})){let i=this.#h[e],s=this.#u[e],r=this.#A(s)?s.__staleWhileFetching:s;if(void 0===r||void 0===i)continue;let n={value:r};if(this.#S&&this.#m){n.ttl=this.#S[e];let t=L.now()-this.#m[e];n.start=Math.floor(Date.now()-t)}this.#v&&(n.size=this.#v[e]),t.unshift([i,n])}return t}load(t){for(let[e,i]of(this.clear(),t)){if(i.start){let t=Date.now()-i.start;i.start=L.now()-t}this.set(e,i.value,i)}}set(t,e,i={}){if(void 0===e)return this.delete(t),this;let{ttl:s=this.ttl,start:r,noDisposeOnSet:n=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:a}=i,{noUpdateTTL:l=this.noUpdateTTL}=i,h=this.#D(t,e,i.size||0,o);if(this.maxEntrySize&&h>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.delete(t),this;let u=0===this.#o?void 0:this.#l.get(t);if(void 0===u)u=0===this.#o?this.#f:0!==this.#y.length?this.#y.pop():this.#o===this.#e?this.#M(!1):this.#o,this.#h[u]=t,this.#u[u]=e,this.#l.set(t,u),this.#c[this.#f]=u,this.#d[u]=this.#f,this.#f=u,this.#o++,this.#P(u,h,a),a&&(a.set="add"),l=!1;else{this.#E(u);let i=this.#u[u];if(e!==i){if(this.#w&&this.#A(i)){i.__abortController.abort(Error("replaced"));let{__staleWhileFetching:e}=i;void 0!==e&&!n&&(this.#b&&this.#s?.(e,t,"set"),this.#k&&this.#g?.push([e,t,"set"]))}else!n&&(this.#b&&this.#s?.(i,t,"set"),this.#k&&this.#g?.push([i,t,"set"]));if(this.#C(u),this.#P(u,h,a),this.#u[u]=e,a){a.set="replace";let t=i&&this.#A(i)?i.__staleWhileFetching:i;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===s||this.#S||this.#T(),this.#S&&(l||this.#O(u,s,r),a&&this.#j(a,u)),!n&&this.#k&&this.#g){let t;let e=this.#g;for(;t=e?.shift();)this.#r?.(...t)}return this}pop(){try{for(;this.#o;){let t=this.#u[this.#p];if(this.#M(!0),this.#A(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#k&&this.#g){let t;let e=this.#g;for(;t=e?.shift();)this.#r?.(...t)}}}#M(t){let e=this.#p,i=this.#h[e],s=this.#u[e];return this.#w&&this.#A(s)?s.__abortController.abort(Error("evicted")):(this.#b||this.#k)&&(this.#b&&this.#s?.(s,i,"evict"),this.#k&&this.#g?.push([s,i,"evict"])),this.#C(e),t&&(this.#h[e]=void 0,this.#u[e]=void 0,this.#y.push(e)),1===this.#o?(this.#p=this.#f=0,this.#y.length=0):this.#p=this.#c[e],this.#l.delete(i),this.#o--,e}has(t,e={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,r=this.#l.get(t);if(void 0!==r){let t=this.#u[r];if(this.#A(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#x(r))return i&&this.#I(r),s&&(s.has="hit",this.#j(s,r)),!0;s&&(s.has="stale",this.#j(s,r))}else s&&(s.has="miss");return!1}peek(t,e={}){let{allowStale:i=this.allowStale}=e,s=this.#l.get(t);if(void 0===s||!i&&this.#x(s))return;let r=this.#u[s];return this.#A(r)?r.__staleWhileFetching:r}#_(t,e,i,s){let r=void 0===e?void 0:this.#u[e];if(this.#A(r))return r;let n=new O,{signal:o}=i;o?.addEventListener("abort",()=>n.abort(o.reason),{signal:n.signal});let a={signal:n.signal,options:i,context:s},l=(s,r=!1)=>{let{aborted:o}=n.signal,l=i.ignoreFetchAbort&&void 0!==s;return(i.status&&(o&&!r?(i.status.fetchAborted=!0,i.status.fetchError=n.signal.reason,l&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),!o||l||r)?(this.#u[e]===u&&(void 0===s?u.__staleWhileFetching?this.#u[e]=u.__staleWhileFetching:this.delete(t):(i.status&&(i.status.fetchUpdated=!0),this.set(t,s,a.options))),s):h(n.signal.reason)},h=s=>{let{aborted:r}=n.signal,o=r&&i.allowStaleOnFetchAbort,a=o||i.allowStaleOnFetchRejection,l=a||i.noDeleteOnFetchRejection;if(this.#u[e]!==u||(l&&void 0!==u.__staleWhileFetching?o||(this.#u[e]=u.__staleWhileFetching):this.delete(t)),a)return i.status&&void 0!==u.__staleWhileFetching&&(i.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw s};
2i.status&&(i.status.fetchDispatched=!0);let u=new Promise((e,s)=>{let o=this.#n?.(t,r,a);o&&o instanceof Promise&&o.then(t=>e(void 0===t?void 0:t),s),n.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>l(t,!0)))})}).then(l,t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),h(t))),c=Object.assign(u,{__abortController:n,__staleWhileFetching:r,__returned:void 0});return void 0===e?(this.set(t,c,{...a.options,status:void 0}),e=this.#l.get(t)):this.#u[e]=c,c}#A(t){return!!this.#w&&!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof O}async fetch(t,e={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:h=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:c=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:f,forceRefresh:y=!1,status:g,signal:v}=e;if(!this.#w)return g&&(g.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,status:g});let m={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,ttl:n,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:h,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:c,allowStaleOnFetchAbort:p,ignoreFetchAbort:d,status:g,signal:v},S=this.#l.get(t);if(void 0===S){g&&(g.fetch="miss");let e=this.#_(t,S,m,f);return e.__returned=e}{let e=this.#u[S];if(this.#A(e)){let t=i&&void 0!==e.__staleWhileFetching;return g&&(g.fetch="inflight",t&&(g.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}let r=this.#x(S);if(!y&&!r)return g&&(g.fetch="hit"),this.#E(S),s&&this.#I(S),g&&this.#j(g,S),e;let n=this.#_(t,S,m,f),o=void 0!==n.__staleWhileFetching&&i;return g&&(g.fetch=r?"stale":"refresh",o&&r&&(g.returnedStale=!0)),o?n.__staleWhileFetching:n.__returned=n}}get(t,e={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:n}=e,o=this.#l.get(t);if(void 0!==o){let e=this.#u[o],a=this.#A(e);return(n&&this.#j(n,o),this.#x(o))?(n&&(n.get="stale"),a)?(n&&i&&void 0!==e.__staleWhileFetching&&(n.returnedStale=!0),i?e.__staleWhileFetching:void 0):(r||this.delete(t),n&&i&&(n.returnedStale=!0),i?e:void 0):(n&&(n.get="hit"),a)?e.__staleWhileFetching:(this.#E(o),s&&this.#I(o),e)}n&&(n.get="miss")}#W(t,e){this.#d[e]=t,this.#c[t]=e}#E(t){t!==this.#f&&(t===this.#p?this.#p=this.#c[t]:this.#W(this.#d[t],this.#c[t]),this.#W(this.#f,t),this.#f=t)}delete(t){let e=!1;if(0!==this.#o){let i=this.#l.get(t);if(void 0!==i){if(e=!0,1===this.#o)this.clear();else{this.#C(i);let e=this.#u[i];if(this.#A(e)?e.__abortController.abort(Error("deleted")):(this.#b||this.#k)&&(this.#b&&this.#s?.(e,t,"delete"),this.#k&&this.#g?.push([e,t,"delete"])),this.#l.delete(t),this.#h[i]=void 0,this.#u[i]=void 0,i===this.#f)this.#f=this.#d[i];else if(i===this.#p)this.#p=this.#c[i];else{let t=this.#d[i];this.#c[t]=this.#c[i];let e=this.#c[i];this.#d[e]=this.#d[i]}this.#o--,this.#y.push(i)}}}if(this.#k&&this.#g?.length){let t;let e=this.#g;for(;t=e?.shift();)this.#r?.(...t)}return e}clear(){for(let t of this.#L({allowStale:!0})){let e=this.#u[t];if(this.#A(e))e.__abortController.abort(Error("deleted"));else{let i=this.#h[t];this.#b&&this.#s?.(e,i,"delete"),this.#k&&this.#g?.push([e,i,"delete"])}}if(this.#l.clear(),this.#u.fill(void 0),this.#h.fill(void 0),this.#S&&this.#m&&(this.#S.fill(0),this.#m.fill(0)),this.#v&&this.#v.fill(0),this.#p=0,this.#f=0,this.#y.length=0,this.#a=0,this.#o=0,this.#k&&this.#g){let t;let e=this.#g;for(;t=e?.shift();)this.#r?.(...t)}}}var W=Object.defineProperty,N=(t,e,i)=>e in t?W(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,B=(t,e,i)=>(N(t,"symbol"!=typeof e?e+"":e,i),i);let U=["Value","Copy","Blank","ReturnIntoArray","ReturnIntoObject","ReturnIntoObjectSameKey","PushField","PushElement","PushParent","Pop","PushFieldCopy","PushFieldBlank","PushElementCopy","PushElementBlank","ReturnIntoObjectPop","ReturnIntoObjectSameKeyPop","ReturnIntoArrayPop","ObjectSetFieldValue","ObjectCopyField","ObjectDeleteField","ArrayAppendValue","ArrayAppendSlice","StringAppendString","StringAppendSlice"];class V{constructor(t,e,i){B(this,"model"),B(this,"root"),B(this,"patch"),B(this,"i"),B(this,"inputStack"),B(this,"outputStack"),this.model=t,this.root=e,this.patch=i,this.i=0,this.inputStack=[],this.outputStack=[]}read(){return this.patch[this.i++]}process(){for(this.inputStack.push({value:this.root}),this.outputStack.push({value:this.root});this.i<this.patch.length;){let t=this.read(),e=U[t];if(!e)throw Error("Unknown opcode: ".concat(t));
2this["process".concat(e)].apply(this)}let t=this.outputStack.pop();return this.finalizeOutput(t)}inputEntry(){return this.inputStack[this.inputStack.length-1]}inputKey(t,e){return t.keys||(t.keys=this.model.objectGetKeys(t.value).sort()),t.keys[e]}outputEntry(){return this.outputStack[this.outputStack.length-1]}outputArray(){let t=this.outputEntry();return t.writeValue||(t.writeValue=this.model.copyArray(t.value)),t.writeValue}outputObject(){let t=this.outputEntry();return t.writeValue||(t.writeValue=this.model.copyObject(t.value)),t.writeValue}outputString(){let t=this.outputEntry();return t.writeValue||(t.writeValue=this.model.copyString(t.value)),t.writeValue}finalizeOutput(t){return t.writeValue?this.model.finalize(t.writeValue):t.value}processValue(){let t=this.model.wrap(this.read());this.outputStack.push({value:t})}processCopy(){let t=this.inputEntry();this.outputStack.push({value:t.value})}processBlank(){this.outputStack.push({value:null})}processReturnIntoArray(){let t=this.outputStack.pop(),e=this.finalizeOutput(t),i=this.outputArray();this.model.arrayAppendValue(i,e)}processReturnIntoObject(){let t=this.read(),e=this.outputStack.pop(),i=this.finalizeOutput(e);i=this.model.markChanged(i);let s=this.outputObject();this.model.objectSetField(s,t,i)}processReturnIntoObjectSameKey(){let t=this.inputEntry(),e=this.outputStack.pop(),i=this.finalizeOutput(e),s=this.outputObject();this.model.objectSetField(s,t.key,i)}processPushField(){let t=this.read(),e=this.inputEntry(),i=this.inputKey(e,t),s=this.model.objectGetField(e.value,i);this.inputStack.push({value:s,key:i})}processPushElement(){let t=this.read(),e=this.inputEntry(),i=this.model.arrayGetElement(e.value,t);this.inputStack.push({value:i})}processPop(){this.inputStack.pop()}processPushFieldCopy(){this.processPushField(),this.processCopy()}processPushFieldBlank(){this.processPushField(),this.processBlank()}processPushElementCopy(){this.processPushElement(),this.processCopy()}processPushElementBlank(){this.processPushElement(),this.processBlank()}processReturnIntoObjectPop(){this.processReturnIntoObject(),this.processPop()}processReturnIntoObjectSameKeyPop(){this.processReturnIntoObjectSameKey(),this.processPop()}processReturnIntoArrayPop(){this.processReturnIntoArray(),this.processPop()}processObjectSetFieldValue(){this.processValue(),this.processReturnIntoObject()}processObjectCopyField(){this.processPushField(),this.processCopy(),this.processReturnIntoObjectSameKey(),this.processPop()}processObjectDeleteField(){let t=this.read(),e=this.inputEntry(),i=this.inputKey(e,t),s=this.outputObject();this.model.objectDeleteField(s,i)}processArrayAppendValue(){let t=this.model.wrap(this.read()),e=this.outputArray();this.model.arrayAppendValue(e,t)}processArrayAppendSlice(){let t=this.read(),e=this.read(),i=this.outputArray(),s=this.inputEntry().value;this.model.arrayAppendSlice(i,s,t,e)}processStringAppendString(){let t=this.model.wrap(this.read()),e=this.outputString();this.model.stringAppendValue(e,t)}processStringAppendSlice(){let t=this.read(),e=this.read(),i=this.outputString(),s=this.inputEntry().value;this.model.stringAppendSlice(i,s,t,e)}}function $(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=i,r=0;for(r=i;s<e;r++){var n;let e=(n=t.codePointAt(r))>>16?4:n>>11?3:n>>7?2:1;4===e&&r++,s+=e}return r}var G=Object.defineProperty,K=(t,e,i)=>e in t?G(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;class J{wrap(t){return t}finalize(t){return Array.isArray(t)?t:t.data}markChanged(t){return t}objectGetKeys(t){return Object.keys(t)}objectGetField(t,e){return t[e]}arrayGetElement(t,e){return t[e]}copyObject(t){let e={type:"object",data:{}};if(null!==t)for(let[i,s]of Object.entries(t))e.data[i]=s;return e}copyArray(t){return null===t?[]:t.slice()}copyString(t){return{type:"string",data:null===t?"":t}}objectSetField(t,e,i){t.data[e]=i}objectDeleteField(t,e){delete t.data[e]}arrayAppendValue(t,e){t.push(e)}arrayAppendSlice(t,e,i,s){t.push(...e.slice(i,s))}stringAppendSlice(t,e,i,s){let r=$(e,i),n=$(e,s,r);t.data+=e.slice(r,n)}stringAppendValue(t,e){t.data+=e}}var q=i(67294),H=i(58113);let Y=new R({max:500}),Q=(0,q.memo)(function(t){let{children:e,refreshInterval:i=1e4,token:r}=t;if(!t.client)throw Error("Missing a `client` prop with a configured Sanity client instance");
2let[n]=(0,q.useState)(()=>{let{requestTagPrefix:e,resultSourceMap:i}=t.client.config();return t.client.withConfig({requestTagPrefix:e||"sanity.preview-kit",resultSourceMap:"withKeyArraySelector"!==i||"withKeyArraySelector",...r&&{token:r,useCdn:!1,perspective:"previewDrafts",ignoreBrowserTokenWarning:!0}})}),[o]=(0,q.useState)(()=>t.logger);(0,q.useEffect)(()=>{o&&o.log("[@sanity/preview-kit]: With the current configuration you can expect that: Updates that can be traced using Content Source Maps will be applied in real-time. Other updates will be applied every ".concat(i,"ms."))},[o,i]);let[a,l]=(0,q.useState)([]),[h]=(0,q.useState)(()=>new Map),u=function(t){let[e]=(0,q.useState)(()=>new Map),i=(0,q.useCallback)((i,s,r,n)=>{e.has(i)||(e.set(i,{query:s,params:r,listeners:new Set}),(0,q.startTransition)(()=>t(t=>t.includes(i)?t:[...t,i])));let o=e.get(i);if(!o||!o.listeners)throw TypeError("Inconsistent cache for key: "+i);let{listeners:a}=o;return a.add(n),()=>{a.delete(n),0===a.size&&(e.delete(i),(0,q.startTransition)(()=>t(t=>t.includes(i)?t.filter(t=>t!==i):t)))}},[e,t]);return(0,q.useMemo)(()=>({cache:e,subscribe:i}),[e,i])}(l),[c]=(0,q.useState)(()=>function(t,e,i){let s=tr(e,i);return h.has(s)||h.set(s,{result:t,resultSourceMap:{}}),{subscribe:t=>{let r=u.subscribe(s,e,i,t);return()=>r()},getSnapshot:()=>{var t;return null==(t=h.get(s))?void 0:t.result}}}),[d,p]=(0,q.useState)([]),[f]=(0,q.useState)(()=>new Map),y=(0,q.useCallback)(t=>{var e;let i=new Set;if(f.clear(),null==(e=t.documents)?void 0:e.length)for(let e of t.documents)i.add(e._id),f.set(e._id,e);(0,q.startTransition)(()=>p(t=>{let e=Array.from(new Set([...t,...i]));return JSON.stringify(e.sort())===JSON.stringify(t.sort())?t:e}))},[f]);return(0,s.jsxs)(H.x.Provider,{value:c,children:[e,(0,s.jsx)(tt,{cache:u.cache,client:n,setTurboIds:p,snapshots:h,turboIds:d,docsInUse:f}),a.map(t=>{if(!u.cache.has(t))return null;let{query:e,params:r,listeners:o}=u.cache.get(t);return(0,s.jsx)(X,{client:n,listeners:o,params:r,query:e,refreshInterval:i,snapshots:h,turboIdsFromSourceMap:y},t)})]})});Q.displayName="LiveStoreProvider";let X=(0,q.memo)(function(t){let{client:e,refreshInterval:i,query:s,params:r,listeners:n,snapshots:o,turboIdsFromSourceMap:a}=t,{projectId:l,dataset:h}=(0,q.useMemo)(()=>{let{projectId:t,dataset:i}=e.config();return{projectId:t,dataset:i}},[e]),[u,c]=(0,q.useState)(null);if(u)throw u;let[d,p]=(0,b.o_)({refreshInterval:i}),f="refresh"===d||"inflight"===d;return(0,q.useEffect)(()=>{if(!f)return;let t=!1,i=new AbortController,u=p();return(async function(){let{signal:u}=i,{result:c,resultSourceMap:d}=await e.fetch(s,r,{signal:u,filterResponse:!1});if(!u.aborted){for(let t of(o.set(tr(s,r),{result:ts(l,h,c,d),resultSourceMap:null!=d?d:{}}),d&&a(d),n.values()))t();t=!0}})().catch(t=>{"AbortError"!==t.name&&c(t)}).finally(u),()=>{t||i.abort()}},[e,h,n,r,l,s,f,o,p,a]),null});function Z(t,e,i){return"".concat(t,"-").concat(e,"-").concat(i)}X.displayName="QuerySubscription";let tt=(0,q.memo)(function(t){let{client:e,snapshots:i,cache:r,turboIds:n,setTurboIds:o,docsInUse:a}=t,{projectId:l,dataset:h}=(0,q.useMemo)(()=>{let{projectId:t,dataset:i}=e.config();return{projectId:t,dataset:i}},[e]);(0,q.useEffect)(()=>{var t,e;let s=new Set;for(let{query:n,params:o}of(a.clear(),r.values())){let r=tr(n,o),l=i.get(r);if(l&&(null==(e=null==(t=l.resultSourceMap)?void 0:t.documents)?void 0:e.length))for(let t of l.resultSourceMap.documents)s.add(t._id),a.set(t._id,t)}let l=[...s].sort();JSON.stringify(n)!==JSON.stringify(l)&&(0,q.startTransition)(()=>o(l))},[r,o,i,n,a]),(0,b.T)(a,l,h);let[u,c]=(0,q.useState)([]);(0,q.useEffect)(()=>{let t=new Set(u.flat()),e=new Set;for(let i of n)t.has(i)||Y.has(Z(l,h,i))||e.add(i);let i=[...e].slice(0,100);0!==i.length&&(0,q.startTransition)(()=>c(t=>[...t.slice(-100),i]))},[u,h,l,n]);let[d,p]=(0,q.useState)();return(0,q.useEffect)(()=>{let t=e.listen("*",{},{events:["mutation"],effectFormat:"mendoza",includePreviousRevision:!1,includeResult:!1,tag:"turbo"}).subscribe(t=>{var e,i,s;if("mutation"!==t.type||!(null==(i=null==(e=t.effects)?void 0:e.apply)?void 0:i.length))return;let r=Z(l,h,t.documentId),n=Y.peek(r);if(n){let e={...n};delete e._rev;let i=(s=t.effects.apply,new V(new J,e,s).process());Y.set(r,i)}(0,q.startTransition)(()=>p(t.documentId))});return()=>t.unsubscribe()},[e,h,l]),(0,q.useEffect)(()=>{var t,e,s;if(!d||!n.includes(d))return;let o=[];for(let[s,r]of i.entries())(null==(e=null==(t=r.resultSourceMap)?void 0:t.documents)?void 0:e.length)&&(r.result=ts(l,h,r.result,r.resultSourceMap),o.push(s));for(let t of o){let e=null==(s=r.get(t))?void 0:s.listeners;if(e)for(let t of e)t()}(0,q.startTransition)(()=>p(void 0))},[r,h,d,l,i,n]),(0,s.jsx)(s.Fragment,{children:u.map(t=>(0,s.jsx)(te,{client:e,projectId:l,dataset:h,ids:t},JSON.stringify(t)))})});tt.displayName="Turbo";let te=(0,q.memo)(function(t){let{client:e,projectId:i,dataset:s,ids:r}=t;return(0,q.useEffect)(()=>{let t=r.filter(t=>!Y.has(Z(i,s,t)));0!==t.length&&e.getDocuments(t).then(t=>{for(let e of t)e&&(null==e?void 0:e._id)&&Y.set(Z(i,s,e._id),e)},console.error)},[e,s,r,i]),null});te.displayName="GetDocuments";let ti=!1;
2function ts(t,e,i,s){return s?function(t,e,i,s,n){if(!e)return t;let o=function(t,e){let i=function(t){if(function(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')}(t),Array.isArray(t))return t.includes("published")?t:[...t,"published"];switch(t){case"previewDrafts":case"drafts":return["drafts","published"];default:return["published"]}}(e);return function(e){return function(e){for(let r of i){var s;let i=null;if(r.startsWith("r")&&(i=t({...e,_id:function(t,e){if("drafts"===e||"published"===e)throw Error('Version can not be "published" or "drafts"');return`${c}${e}.${f(t)}`}(e._id,r)})),"drafts"===r&&(i=t({...e,_id:p(s=e._id)?u+f(s):d(s)?s:u+s})),"published"===r&&(i=t({...e,_id:f(e._id)})),i)return{...i,_id:f(i._id),_originalId:i._id}}return null}(e)}}(i,n),m=e.documents?.map?.(o)||[];return function t(e,i,s=[]){if(null!==e&&Array.isArray(e))return e.map((e,r)=>{if(v(e)){let n=e._key;if("string"==typeof n)return t(e,i,s.concat({_key:n,_index:r}))}return t(e,i,s.concat(r))});if(v(e)){if("block"===e._type||"span"===e._type){let r={...e};return"block"===e._type?r.children=t(e.children,i,s.concat("children")):"span"===e._type&&(r.text=t(e.text,i,s.concat("text"))),r}return Object.fromEntries(Object.entries(e).map(([e,r])=>[e,t(r,i,s.concat(e))]))}return i(e,s)}(JSON.parse(JSON.stringify(t)),(t,i)=>{let n=function(t,e){var i;if(!e?.mappings)return;let s=(i=t.map(t=>{if("string"==typeof t||"number"==typeof t)return t;if(-1!==t._index)return t._index;throw Error(`invalid segment:${JSON.stringify(t)}`)}),`$${i.map(t=>"string"==typeof t?`['${t.replace(/[\f\n\r\t'\\]/g,t=>y[t])}']`:"number"==typeof t?`[${t}]`:""!==t._key?`[?(@._key=='${t._key.replace(/['\\]/g,t=>y[t])}')]`:`[${t._index}]`).join("")}`);if(void 0!==e.mappings[s])return{mapping:e.mappings[s],matchedPath:s,pathSuffix:""};let r=Object.entries(e.mappings).filter(([t])=>s.startsWith(t)).sort(([t],[e])=>e.length-t.length);if(0==r.length)return;let[n,o]=r[0],a=s.substring(n.length);return{mapping:o,matchedPath:n,pathSuffix:a}}(i,e);if(!n)return t;let{mapping:o,pathSuffix:u}=n;if("value"!==o.type||"documentValue"!==o.source.type)return t;let c=e.documents[o.source.document],d=e.paths[o.source.path];if(c){let e=function(t){let e;let i=[],s=/\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g;for(;null!==(e=s.exec(t));){if(void 0!==e[1]){let t=e[1].replace(/\\(\\|f|n|r|t|')/g,t=>g[t]);i.push(t);continue}if(void 0!==e[2]){i.push(parseInt(e[2],10));continue}if(void 0!==e[3]){let t=e[3].replace(/\\(\\')/g,t=>g[t]);i.push({_key:t,_index:-1});continue}}return i}(d+u),i=function(t){if(!Array.isArray(t))throw Error("Path is not an array");return t.reduce((t,e,i)=>{let s=typeof e;if("number"===s)return`${t}[${e}]`;if("string"===s)return`${t}${0===i?"":"."}${e}`;if(l(e)&&e._key)return`${t}[_key=="${e._key}"]`;if(Array.isArray(e)){let[i,s]=e;return`${t}[${i}:${s}]`}throw Error(`Unsupported path segment \`${JSON.stringify(e)}\``)},"")}(e),n=m[o.source.document];if(!n)return t;let p=n?function(t,e,i){let s="string"==typeof e?function(t){if("string"!=typeof t)throw Error("Path is not a string");let e=t.match(r);if(!e)throw Error("Invalid path string");return e.map(h)}(e):e;if(!Array.isArray(s))throw Error("Path must be an array or a string");let n=t;for(let t=0;t<s.length;t++){let e=s[t];if(a(e)){if(!Array.isArray(n))return i;n=n[e]}if(l(e)){if(!Array.isArray(n))return i;n=n.find(t=>t._key===e._key)}if("string"==typeof e&&(n="object"==typeof n&&null!==n?n[e]:void 0),typeof n>"u")return i}return n}(n,i,t):t;return t===p?t:s(p,{cachedDocument:n,previousValue:t,sourceDocument:c,sourcePath:e})}return t})}(i,s,i=>{if(!i._projectId)return Y.get(Z(t,e,i._id));ti||(console.warn("Cross dataset references are not supported yet, ignoring source document",i),ti=!0)},(t,{previousValue:e})=>
2{if("string"==typeof t&&"string"==typeof e){let{encoded:i}=E(e),{cleaned:s}=E(t);return"".concat(i).concat(s)}return t},"previewDrafts"):i}function tr(t,e){return"".concat(t,"-").concat(JSON.stringify(e))}},58113:function(t,e,i){i.d(e,{x:function(){return s}});let s=(0,i(67294).createContext)(null)}}]);

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.