PageSourceSearch

https://www.beginlyhealth.com/_next/static/chunks/5133.b75f1e2331e49483.js

js beginlyhealth.com collected 2026-09-24 12:59:01 UTC 8,981 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5133,3139],{13139:function(e,t,r){r.r(t),r.d(t,{encodeIntoResult:function(){return c},stegaEncodeSourceMap:function(){return _},stegaEncodeSourceMap$1:function(){return k}});var n=r(3607);let i=/_key\s*==\s*['"](.*)['"]/;function o(e){if(!Array.isArray(e))throw Error("Path is not an array");return e.reduce((e,t,r)=>{let n=typeof t;if("number"===n)return`${e}[${t}]`;if("string"===n)return`${e}${0===r?"":"."}${t}`;if(("string"==typeof t?i.test(t.trim()):"object"==typeof t&&"_key"in t)&&t._key)return`${e}[_key=="${t._key}"]`;if(Array.isArray(t)){let[r,n]=t;return`${e}[${r}:${n}]`}throw Error(`Unsupported path segment \`${JSON.stringify(t)}\``)},"")}let s={"\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t","'":"\\'","\\":"\\\\"},a={"\\f":"\f","\\n":`
2`,"\\r":"\r","\\t":"	","\\'":"'","\\\\":"\\"};function l(e){let t;let r=[],n=/\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g;for(;null!==(t=n.exec(e));){if(void 0!==t[1]){let e=t[1].replace(/\\(\\|f|n|r|t|')/g,e=>a[e]);r.push(e);continue}if(void 0!==t[2]){r.push(parseInt(t[2],10));continue}if(void 0!==t[3]){let e=t[3].replace(/\\(\\')/g,e=>a[e]);r.push({_key:e,_index:-1});continue}}return r}function u(e){return e.map(e=>{if("string"==typeof e||"number"==typeof e)return e;if(""!==e._key)return{_key:e._key};if(-1!==e._index)return e._index;throw Error(`invalid segment:${JSON.stringify(e)}`)})}function p(e){return e.map(e=>{if("string"==typeof e||"number"==typeof e)return e;if(-1!==e._index)return e._index;throw Error(`invalid segment:${JSON.stringify(e)}`)})}function c(e,t,r){return function e(t,r,i=[]){if(null!==t&&Array.isArray(t))return t.map((t,o)=>{if((0,n.Uy)(t)){let n=t._key;if("string"==typeof n)return e(t,r,i.concat({_key:n,_index:o}))}return e(t,r,i.concat(o))});if((0,n.Uy)(t)){if("block"===t._type||"span"===t._type){let n={...t};return"block"===t._type?n.children=e(t.children,r,i.concat("children")):"span"===t._type&&(n.text=e(t.text,r,i.concat("text"))),n}return Object.fromEntries(Object.entries(t).map(([t,n])=>[t,e(n,r,i.concat(t))]))}return r(t,i)}(e,(e,n)=>{if("string"!=typeof e)return e;let i=function(e,t){var r;if(!t?.mappings)return;let n=(r=p(e),`$${r.map(e=>"string"==typeof e?`['${e.replace(/[\f\n\r\t'\\]/g,e=>s[e])}']`:"number"==typeof e?`[${e}]`:""!==e._key?`[?(@._key=='${e._key.replace(/['\\]/g,e=>s[e])}')]`:`[${e._index}]`).join("")}`);if(void 0!==t.mappings[n])return{mapping:t.mappings[n],matchedPath:n,pathSuffix:""};let i=p(e).map(e=>"string"==typeof e?`['${e.replace(/[\f\n\r\t'\\]/g,e=>s[e])}']`:"number"==typeof e?`[${e}]`:""!==e._key?`[?(@._key=='${e._key.replace(/['\\]/g,e=>s[e])}')]`:`[${e._index}]`);for(let e=i.length-1;e>=0;e--){let r=`$${i.slice(0,e).join("")}`,o=t.mappings[r];if(o){let e=n.substring(r.length);return{mapping:o,matchedPath:r,pathSuffix:e}}}}(n,t);if(!i)return e;let{mapping:o,matchedPath:a}=i;if("value"!==o.type||"documentValue"!==o.source.type)return e;let u=t.documents[o.source.document],c=t.paths[o.source.path],f=l(a);return r({sourcePath:l(c).concat(n.slice(f.length)),sourceDocument:u,resultPath:n,value:e})})}let f="drafts.";function d(e){return e.startsWith(f)}function h(e){return e.startsWith("versions.")}let g=({sourcePath:e,resultPath:t,value:r})=>{if(/^\d{4}-\d{2}-\d{2}/.test(r)&&Date.parse(r)||function(e){try{let{protocol:t}=new URL(e,e.startsWith("/")?"https://acme.com":void 0);return m.has(t)||t.startsWith("web+")}catch{return!1}}(r))return!1;let n=e.at(-1);return!("slug"===e.at(-2)&&"current"===n||"string"==typeof n&&(n.startsWith("_")||n.endsWith("Id"))||e.some(e=>"meta"===e||"metadata"===e||"openGraph"===e||"seo"===e)||$(e)||$(t)||"string"==typeof n&&y.has(n))},y=new Set(["color","colour","currency","email","format","gid","hex","href","hsl","hsla","icon","id","index","key","language","layout","link","linkAction","locale","lqip","page","path","ref","rgb","rgba","route","secret","slug","status","tag","template","theme","type","textTheme","unit","url","username","variant","website"]),m=new Set(["app:","data:","discord:","file:","ftp:","ftps:","geo:","http:","https:","imap:","javascript:","magnet:","mailto:","maps:","ms-excel:","ms-powerpoint:","ms-word:","slack:","sms:","spotify:","steam:","teams:","tel:","vscode:","zoom:"]);function $(e){return e.some(e=>"string"==typeof e&&null!==e.match(/type/i))}function _(e,t,r){let{filter:s,logger:a,enabled:l}=r;if(!l){let n="config.enabled must be true, don't call this function otherwise";throw a?.error?.(`[@sanity/client]: ${n}`,{result:e,resultSourceMap:t,config:r}),TypeError(n)}if(!t)return a?.error?.("[@sanity/client]: Missing Content Source Map from response body",{result:e,resultSourceMap:t,config:r}),e;if(!r.studioUrl){let n="config.studioUrl must be defined";throw a?.error?.(`[@sanity/client]: ${n}`,{result:e,resultSourceMap:t,config:r}),TypeError(n)}let p={encoded:[],skipped:[]},y=c(e,t,({sourcePath:e,sourceDocument:t,resultPath:i,value:l})=>{var c;let y;if(("function"==typeof s?s({sourcePath:e,resultPath:i,filterDefault:g,sourceDocument:t,value:l}):g({sourcePath:e,resultPath:i,value:l}))===!1)return a&&p.skipped.push({path:o(u(e)),value:`${l.slice(0,20)}${l.length>20?"...":""}`,length:l.length}),l;a&&p.encoded.push({path:o(u(e)),value:`${l.slice(0,20)}${l.length>20?"...":""}`,length:l.length});let{baseUrl:m,workspace:$,tool:_}=("/"!==(y="string"==typeof(c="function"==typeof r.studioUrl?r.studioUrl(t):r.studioUrl)?c:c.baseUrl)&&(y=y.replace(/\/$/,"")),"string"==typeof c?{baseUrl:y}:{...c,baseUrl:y});if(!m)return l;let{_id:k,_type:b,_projectId:v,_dataset:w}=t;return(0,n.y)(l,{origin:"sanity.io",href:function(e){let{baseUrl:t,workspace:r="default",tool:n="default",id:i,type:s,path:a,projectId:l,dataset:p}=e;if(!t)throw Error("baseUrl is required");if(!a)throw Error("path is required");if(!i)throw Error("id is required");if("/"!==t&&t.endsWith("/"))throw Error("baseUrl must not end with a slash");let c="default"===r?void 0:r,g="default"===n?void 0:n,y=h(i)?i.split(".").slice(2).join("."):d(i)?i.slice(f.length):i,m=Array.isArray(a)?o(u(a)):a,$=new URLSearchParams({baseUrl:t,id:y,type:s,path:m});if(c&&$.set("workspace",c),g&&$.set("tool",g),l&&$.set("projectId",l),p&&$.set("dataset",p),d(i)||h(i)){if(h(i)){let e=function(e){if(!h(e))return;let[t,r]=e.split(".");return r}(i);$.set("perspective",e)}}else $.set("perspective","published");let _=["/"===t?"":t];c&&_.push(c);let k=["mode=presentation",`id=${y}`,`type=${s}`,`path=${encodeURIComponent(m)}`];return g&&k.push(`tool=${g}`),_.push("intent","edit",`${k.join(";")}?${$}`),_.join("/")}({baseUrl:m,workspace:$,tool:_,id:k,type:b,path:e,...!r.omitCrossDatasetReferenceData&&{dataset:w,projectId:v}})},!1)});if(a){let e=p.skipped.length,t=p.encoded.length;if((e||t)&&((a?.groupCollapsed||a.log)?.("[@sanity/client]: Encoding source map into result"),a.log?.(`[@sanity/client]: Paths encoded: ${p.encoded.length}, skipped: ${p.skipped.length}`)),p.encoded.length>0&&(a?.log?.("[@sanity/client]: Table of encoded paths"),(a?.table||a.log)?.(p.encoded)),p.skipped.length>0){let e=new Set;for(let{path:t}of p.skipped)e.add(t.replace(i,"0").replace(/\[\d+\]/g,"[]"));a?.log?.("[@sanity/client]: List of skipped paths",[...e.values()])}(e||t)&&a?.groupEnd?.()}return y}var k=Object.freeze({__proto__:null,stegaEncodeSourceMap:_})},35133:function(e,t,r){r.r(t),r.d(t,{default:function(){return p}});var n=r(57437),i=r(13139),o=Object.prototype.hasOwnProperty,s=r(2265),a=r(52141),l=r(35992);let u=s.use;function p(e){let{query:t,dataset:r,params:p={},perspective:c,projectId:f,stega:d}=e,h=(0,s.useCallback)(e=>(l.Y5.add(e),()=>
2l.Y5.delete(e)),[]),g=(0,s.useSyncExternalStore)(h,()=>l.id,()=>null),[y,m]=(0,s.useState)(void 0),$=(0,a.i)(e=>{e.post("loader/query-listen",{projectId:f,dataset:r,perspective:c,query:t,params:p,heartbeat:1e4})}),_=(0,a.i)(n=>{if(function e(t,r){var n,i;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((i=t.length)===r.length)for(;i--&&e(t[i],r[i]););return -1===i}if(!n||"object"==typeof t){for(n in i=0,t)if(o.call(t,n)&&++i&&!o.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===i}}return t!=t&&r!=r}({projectId:f,dataset:r,query:t,params:p},{projectId:n.projectId,dataset:n.dataset,query:n.query,params:n.params})){let{result:t,resultSourceMap:r,tags:o}=n,s=d?(0,i.stegaEncodeSourceMap)(t,r,{enabled:!0,studioUrl:"/"}):t;console.groupCollapsed("rendering with server action"),e.children({data:s,sourceMap:r,tags:o||[]}).then(e=>{console.log("setChildren(children)"),m(e)},e=>{console.error("rendering with server action: render children error",e)}).finally(()=>console.groupEnd())}});return(0,s.useEffect)(()=>{if(!g)return;let e=g.on("loader/query-change",_),t=setInterval(()=>$(g),1e4);return()=>{clearInterval(t),e()}},[g]),g&&void 0!==y?(0,n.jsx)(n.Fragment,{children:y}):u(e.initial)}p.displayName="SanityLiveStream"}}]);

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.