PageSourceSearch

https://peculiarpages.co.uk/_next/static/chunks/0tob9870-hpxv.js

js peculiarpages.co.uk collected 2026-10-04 06:36:27 UTC 23,455 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="93bbd78d-9f8a-a4e1-1a0f-35451596fa20")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,110273,443265,e=>{"use strict";var t=e.i(271645);let r=(0,t.createContext)(void 0);e.s(["default",0,r],443265),e.s(["useOnboardingContext",0,()=>{let e=(0,t.useContext)(r);if(!e)throw Error("useOnboardingContext must be used within an OnboardingProvider");return e}],110273)},734155,e=>{"use strict";var t=e.i(618566),r=e.i(504286),o=e.i(267247),n=e.i(110273);function a(e){let t=e.split(","),r=t[0].match(/:(.*?);/)?.[1]||"",o=atob(t[1]),n=new Uint8Array(o.length);for(let e=0;e<o.length;e++)n[e]=o.charCodeAt(e);return new Blob([n],{type:r})}let i=["flowType","authorName","bookTitle","eanOrAsin","instagramHandle","email","onboardingId","skippedFields","bookNotFound","bookNotFoundIdentifier"],s=e=>Object.values(r.ONBOARDING_NAVIGATION_SLUG).includes(e),l={[r.ONBOARDING_NAVIGATION_SLUG.STAGE_PUBLISHING_JOURNEY]:o.ONBOARDING_SCREEN_TITLES.STAGE_PUBLISHING_JOURNEY,[r.ONBOARDING_NAVIGATION_SLUG.AUTHOR_NAME]:o.ONBOARDING_SCREEN_TITLES.ENTER_AUTHOR_NAME,[r.ONBOARDING_NAVIGATION_SLUG.BOOK_TITLE]:o.ONBOARDING_SCREEN_TITLES.ENTER_BOOK_TITLE,[r.ONBOARDING_NAVIGATION_SLUG.INSTAGRAM_OR_PHOTO]:o.ONBOARDING_SCREEN_TITLES.ENTER_INSTAGRAM_OR_PHOTO,[r.ONBOARDING_NAVIGATION_SLUG.EMAIL]:o.ONBOARDING_SCREEN_TITLES.ENTER_EMAIL,[r.ONBOARDING_NAVIGATION_SLUG.IMPORT_BOOKS]:o.ONBOARDING_SCREEN_TITLES.IMPORT_BOOKS,[r.ONBOARDING_NAVIGATION_SLUG.SELECT_THEME]:o.ONBOARDING_SCREEN_TITLES.SELECT_THEME,[r.ONBOARDING_NAVIGATION_SLUG.PREVIEW_THEME]:o.ONBOARDING_SCREEN_TITLES.PREVIEW_THEME},u={"onboarding-no-ISBN":["stage-publishing-journey","enter-author-name","enter-book-title","enter-instagram-or-upload-photo","sign-up"],"onboarding-emailfirst":["stage-publishing-journey","enter-author-name","enter-book-title","enter-instagram-or-upload-photo","sign-up","enter-email","import-books","enter-instagram-or-upload-photo","sign-up"],"onboarding-ISBN":["sign-up"]},c=(e,t)=>{let r=u[e];return r?.includes(t)??!1},d={TITLE_AND_COVER:[r.ONBOARDING_NAVIGATION_SLUG.AUTHOR_NAME,r.ONBOARDING_NAVIGATION_SLUG.INSTAGRAM_OR_PHOTO],TITLE:[r.ONBOARDING_NAVIGATION_SLUG.AUTHOR_NAME,r.ONBOARDING_NAVIGATION_SLUG.BOOK_TITLE,r.ONBOARDING_NAVIGATION_SLUG.INSTAGRAM_OR_PHOTO],BIOGRAPHY:[r.ONBOARDING_NAVIGATION_SLUG.AUTHOR_NAME,r.ONBOARDING_NAVIGATION_SLUG.INSTAGRAM_OR_PHOTO],MOBILE:[r.ONBOARDING_NAVIGATION_SLUG.EMAIL,r.ONBOARDING_NAVIGATION_SLUG.IMPORT_BOOKS,r.ONBOARDING_NAVIGATION_SLUG.INSTAGRAM_OR_PHOTO]},S=[r.ONBOARDING_NAVIGATION_SLUG.AUTHOR_NAME],f=({flowType:e,bookNotFound:t})=>t?S:e?d[e]:void 0;e.s(["BOOK_NOT_FOUND_STEPS",0,S,"FLOW_STEP_ROUTES",0,d,"FORM_STORAGE_KEYS",0,i,"ONBOARDING_ROUTE_TITLES",0,l,"TRACKING_FLOW_ROUTE_GROUPS",0,u,"base64ToBlob",0,a,"base64ToFile",0,function(e,t){let r=a(e),o=r.type||"image/png";return new File([r],t,{type:o})},"clearFormStorage",0,()=>{i.forEach(e=>{localStorage.removeItem(e)})},"defaultData",0,{author:{},book:{},contact:{},onboardingId:void 0},"fileToBase64",0,e=>new Promise((t,r)=>{let o=new FileReader;o.onloadend=()=>{"string"==typeof o.result?t(o.result):r(Error("Error reading file as base64"))},o.onerror=r,o.readAsDataURL(e)}),"getFlowSteps",0,f,"getValueFromFormData",0,(e,t)=>{switch(e){case"authorName":return t.author.authorName??"";case"bookTitle":return t.book?.bookTitle??"";case"eanOrAsin":return t.book.eanOrAsin??"";case"instagramHandle":return t.contact.instagramHandle??"";case"email":return t.contact.email??"";default:return""}},"isRouteInFlow",0,c,"isStepRouteValue",0,s,"mergeStepData",0,(e,t,o)=>{switch(t){case r.ONBOARDING_NAVIGATION_SLUG.AUTHOR_NAME:return{...e,author:{...e.author,authorName:o.authorName}};case r.ONBOARDING_NAVIGATION_SLUG.BOOK_TITLE:return{...e,book:{...e.book,bookTitle:o.bookTitle}};case r.ONBOARDING_NAVIGATION_SLUG.IMPORT_BOOKS:return{...e,book:{...e.book,eanOrAsin:o.eanOrAsin}};case r.ONBOARDING_NAVIGATION_SLUG.EMAIL:return{...e,contact:{...e.contact,email:o.email}};case r.ONBOARDING_NAVIGATION_SLUG.INSTAGRAM_OR_PHOTO:return{...e,contact:{...e.contact,instagramHandle:o.instagramHandle}};default:return e}},"resolveTrackingFlow",0,function(e,t){return t&&c(t,e)?t:e===r.ONBOARDING_NAVIGATION_SLUG.STAGE_PUBLISHING_JOURNEY?"onboarding-no-ISBN":void 0},"skippedFieldsByStep",0,{"enter-author-name":["authorName"],"enter-book-title":["bookTitle"],"enter-instagram-or-upload-photo":["instagramHandle","
2instagramImage"],"enter-email":["email"],"import-books":["eanOrAsin"]},"useStepProgress",0,()=>{let{formData:e}=(0,n.useOnboardingContext)(),o=((0,t.usePathname)()??"").replace("/onboarding/",""),a=f({flowType:e.flowType??r.FLOW_TYPE.TITLE_AND_COVER,bookNotFound:e.bookNotFound});return a?s(o)?{step:a.indexOf(o)+1,total:a.length}:{step:0,total:a.length}:{step:0,total:0}}])},962008,e=>{"use strict";var t=e.i(843476),r=e.i(271645),o=e.i(662537),n=e.i(719525),a=e.i(810956),i=e.i(382634),s=e.i(51601),l=e.i(880368),u=e.i(770894);let c={globalData:{},globalPreviewData:{},appData:{},userSiteInformation:{stripe_connect_status:"NOT_STARTED"},domainInformation:{},cart:[]},d=(0,r.createContext)(void 0),S=(0,r.createContext)(void 0),f=(0,r.createContext)(void 0),I=(0,r.createContext)(void 0),O=(0,r.createContext)(void 0),p=(0,r.createContext)(void 0),m=(0,r.createContext)(void 0),N=(0,r.createContext)(void 0);function g(e,t){if(!e)throw Error(`${t} must be used within a StoreProvider`);return e}let A=()=>g((0,r.useContext)(d),"useStoreAuthor"),_=()=>g((0,r.useContext)(S),"useStoreSiteData"),T=()=>g((0,r.useContext)(f),"useStoreUserInfo"),b=()=>g((0,r.useContext)(I),"useStoreDomain"),h=()=>g((0,r.useContext)(O),"useStoreAppData"),y=()=>g((0,r.useContext)(p),"useStoreCart"),E=({slices:e,children:r})=>(0,t.jsx)(m.Provider,{value:e.actions,"data-sentry-element":"StoreActionsContext.Provider","data-sentry-component":"StoreSliceProviders","data-sentry-source-file":"StoreContext.tsx",children:(0,t.jsx)(N.Provider,{value:e.init,"data-sentry-element":"StoreInitContext.Provider","data-sentry-source-file":"StoreContext.tsx",children:(0,t.jsx)(d.Provider,{value:e.author,"data-sentry-element":"StoreAuthorContext.Provider","data-sentry-source-file":"StoreContext.tsx",children:(0,t.jsx)(S.Provider,{value:e.siteData,"data-sentry-element":"StoreSiteDataContext.Provider","data-sentry-source-file":"StoreContext.tsx",children:(0,t.jsx)(f.Provider,{value:e.userInfo,"data-sentry-element":"StoreUserInfoContext.Provider","data-sentry-source-file":"StoreContext.tsx",children:(0,t.jsx)(I.Provider,{value:e.domain,"data-sentry-element":"StoreDomainContext.Provider","data-sentry-source-file":"StoreContext.tsx",children:(0,t.jsx)(O.Provider,{value:e.appData,"data-sentry-element":"StoreAppDataContext.Provider","data-sentry-source-file":"StoreContext.tsx",children:(0,t.jsx)(p.Provider,{value:e.cart,"data-sentry-element":"StoreCartContext.Provider","data-sentry-source-file":"StoreContext.tsx",children:r})})})})})})})});function C(){return Date.now()}function D(e,t){return(0,i.mergePreservingFiles)(e,t)}let B=["books","blogPosts","customPages","events","pages","series"];function G(e,t){let r=D(e,t);if(r.site&&e?.site)for(let o of B){let n=t?.site?.[o],a=e.site[o];a?.length&&(n?.length?r.site[o]=function(e,t){if(!t?.length)return e||[];if(!e?.length)return t;let r=new Set(t.map(e=>e.id));return[...t.map(t=>{let r=e.find(e=>e.id===t.id);return r?{...r,...t}:t}),...e.filter(e=>!r.has(e.id))]}(a,n):r.site[o]=a)}return r}function R(e){if("function"==typeof structuredClone)try{return structuredClone(e)}catch(e){console.error("structuredClone failed in cloneAsType, falling back to clonePreservingFiles:",e)}return(0,i.clonePreservingFiles)(e)}function v(e,t,r){let o=R(e);return(0,l.setByPath)({object:o,path:t,value:r})}function w(e,t,r,o){let n=R(e);return(0,l.updateItemByPath)(n,t,r,o)}e.s(["StoreProvider",0,({children:e,initialGlobalData:l,initialAppData:d})=>{let[S,f]=(0,r.useState)(null),[I,O]=(0,r.useState)(!1),[p,m]=(0,r.useState)(()=>l??c.globalData),[N,g]=(0,r.useState)(()=>l??c.globalData),[A,_]=(0,r.useState)(c.userSiteInformation),[T,b]=(0,r.useState)(c.domainInformation),[h,y]=(0,r.useState)(null),[B,R]=(0,r.useState)(()=>({...c.appData,...d})),[x,P]=(0,r.useState)(c.cart||[]),L=A?.user?.id;(0,r.useEffect)(()=>{L?o.setUser({id:L}):o.setUser(null)},[L]);let k=p?.site?.global?.siteSlug||A?.slug;(0,r.useEffect)(()=>{k&&(0,u.setCurrentSiteSlug)(k)},[k]);let M=p?.site?.global?.id||null,F=(0,r.useMemo)(()=>Math.random().toString(36).substring(2,9),[]),U=(0,r.useRef)(0),V=(0,r.useRef)(null),j=(0,r.useRef)(null),H=(0,r.useRef)(!1),$=(0,r.useRef)(0),K=(0,r.useRef)(null),J=(0,r.useRef)(c),W=(0,r.useCallback)(()=>{$.current=performance.now()},[]),z=(0,r.useMemo)(()=>S&&M?`tertulia-context:${S}:${M}`:null,[S,M]);(0,r.useEffect)(()=>
2{if(z){if("u"<typeof BroadcastChannel)return void console.warn("BroadcastChannel not available in this environment");V.current?.close();try{V.current=new BroadcastChannel(z),V.current.onmessage=e=>{var t,r;let o=e.data;if(!o?.__meta||o.__meta.authorId!==S||o.__meta.websiteId!==String(M)||o.__meta.sourceTabId===F||j.current&&0>=(t=o.__meta,r=j.current,t.wallClockMs!==r.wallClockMs?t.wallClockMs-r.wallClockMs:t.intraTabSeq!==r.intraTabSeq?t.intraTabSeq-r.intraTabSeq:t.sourceTabId.localeCompare(r.sourceTabId)))return;let n=performance.now()-$.current,a=()=>{let e={globalData:o.globalData,globalPreviewData:o.globalPreviewData,appData:o.appData,userSiteInformation:o.userSiteInformation,domainInformation:o.domainInformation,cart:o.cart||[]};!function(e,t){try{let r=(0,i.stripFilesForStorage)(e),o=(0,i.stripFilesForStorage)(t);return JSON.stringify(r)===JSON.stringify(o)}catch(e){return console.error("Error comparing contexts:",e),!1}}(J.current,e)?(H.current=!0,J.current=e,m(o.globalData),g(o.globalPreviewData),R(o.appData),_(o.userSiteInformation),b(o.domainInformation),P(o.cart||[]),j.current=o.__meta,setTimeout(()=>{H.current=!1},0)):j.current=o.__meta};if(n<500){K.current&&(clearTimeout(K.current),K.current=null),K.current=window.setTimeout(()=>{performance.now()-$.current>=500&&a()},500-n);return}a()}}catch(e){console.error("Failed to create BroadcastChannel:",e)}return()=>{try{V.current?.close(),V.current=null}catch(e){console.error("Failed to close BroadcastChannel:",e)}}}},[z,S,M,F]);let q=(0,r.useMemo)(()=>(0,a.debounce)(async(e,t,r)=>{try{let t=(0,i.stripFilesForStorage)(e);await (0,s.setAppContext)(r,t)}catch(e){console.error("Failed to persist context to IndexedDB:",e)}if("u">typeof BroadcastChannel)try{let r=(0,i.stripFilesForStorage)(e),o=JSON.parse(JSON.stringify({...r,__meta:t}));V.current?.postMessage(o)}catch(e){console.error("Failed to broadcast context over BroadcastChannel:",e)}},160),[]),Y=async({authorId:e,globalData:t,userSiteInformation:r})=>{let o;f(e);let a=t?.site?.global?.id||null;if(!a)return;let i=`${n.LOCAL_STORAGE_KEY_PREFIX}_${e}_${a}`;try{o=await (0,s.getAppContext)(i)}catch(e){console.error("Error fetching context from IndexedDB:",e)}if(o&&(m(o.globalData),g(o.globalPreviewData&&Object.keys(o.globalPreviewData).length?o.globalPreviewData:o.globalData),R(o.appData),_(o.userSiteInformation),b(o.domainInformation),P(o.cart||[])),t)if(o){let e=e=>t?.site?.themeOptions?{...e,site:{...e?.site,themeOptions:t.site.themeOptions}}:e;m(r=>e(G(r,t))),g(r=>e(G(r,t)))}else m(t),g(t);r&&_(e=>D(e,r)),O(!0),U.current+=1;let l=C(),u={globalData:p,globalPreviewData:N,appData:B,userSiteInformation:A,domainInformation:T,cart:o?.cart||[]};j.current={wallClockMs:l,intraTabSeq:U.current,sourceTabId:F,authorId:e,websiteId:String(a)},q(u,j.current,i)};(0,r.useEffect)(()=>{if(!S||!M||!I||H.current)return;let e={globalData:p,globalPreviewData:N,appData:B,userSiteInformation:A,domainInformation:T,cart:x};J.current=e;let t=`${n.LOCAL_STORAGE_KEY_PREFIX}_${S}_${M}`;U.current+=1;let r={wallClockMs:C(),intraTabSeq:U.current,sourceTabId:F,authorId:S,websiteId:String(M)};j.current=r,q(e,r,t)},[S,M,I,p,N,B,A,T,x,F,q]);let X=(0,r.useCallback)(e=>{W(),m(t=>D(t,e))},[W]),Z=(0,r.useCallback)(e=>{W(),g(t=>D(t,e))},[W]),Q=(0,r.useCallback)(e=>{W(),m(t=>D(t,e)),g(t=>D(t,e))},[W]),ee=(0,r.useCallback)(e=>{W(),R(t=>D(t,e))},[W]),et=(0,r.useCallback)(e=>{W(),_(t=>D(t,e))},[W]),er=(0,r.useCallback)(e=>{W(),b(t=>D(t,e))},[W]),eo=(0,r.useCallback)(e=>{W(),y(e)},[W]),en=(0,r.useCallback)(e=>{W(),P(e)},[W]),ea=(0,r.useCallback)(({path:e,value:t})=>{W(),m(r=>v(r,e,t))},[W]),ei=(0,r.useCallback)(({path:e,value:t})=>{W(),m(r=>v(r,e,t)),g(r=>v(r,e,t))},[W]),es=(0,r.useCallback)(({path:e,value:t,identifier:r="id"})=>{W(),m(o=>w(o,e,t,r)),g(o=>w(o,e,t,r))},[W]),el=(0,r.useMemo)(()=>({updateGlobalData:X,updateGlobalPreviewData:Z,updateBothGlobalData:Q,updateAppData:ee,updateUserSiteInformation:et,updateDomainInformation:er,updateSelectedDomain:eo,updateByPath:ea,updateBothByPath:ei,updateBothByIdentifier:es,updateCart:en}),[X,Z,Q,ee,et,er,eo,ea,ei,es,en]),eu=(0,r.useMemo)(()=>({initializeAuthorContext:Y}),[Y]),ec=(0,r.useMemo)(()=>({authorId:S,isAuthorContextInitialized:I}),[S,I]),ed=(0,r.useMemo)(()=>({globalData:p,globalPreviewData:N}),[p,N]),eS=(0,r.useMemo)(()=>({userSiteInformation:A}),[A]),ef=(0,r.useMemo)(()=>({domainInformation:T,selectedDomain:h}),[T,h]),eI=(0,r.useMemo)(()=>({appData:B}),[B]),eO=(0,r.useMemo)(()=>({cart:x}),[x]);return(0,t.jsx)(E,{slices:{actions:el,init:eu,author:ec,siteData:ed,userInfo:eS,domain:ef,appData:eI,cart:eO},"data-sentry-element":"StoreSliceProviders","data-sentry-component":"StoreProvider","data-sentry-source-file":"StoreContext.tsx",children:e})},"StoreValueProvider",0,({value:e,children:r})=>{let{authorId:o,isAuthorContextInitialized:n,globalData:a,globalPreviewData:i,userSiteInformation:s,domainInformation:l,selectedDomain:u,appData:c,cart:d,initializeAuthorContext:S,...f}=e;return(0,t.jsx)(E,{slices:{actions:f,init:{initializeAuthorContext:S},author:{authorId:o,isAuthorContextInitialized:n},siteData:{globalData:a,globalPreviewData:i},userInfo:{userSiteInformation:s},domain:{domainInformation:l,selectedDomain:u},appData:{appData:c},cart:{cart:d}},"data-sentry-element":"StoreSliceProviders","data-sentry-component":"StoreV
2alueProvider","data-sentry-source-file":"StoreContext.tsx",children:r})},"initialAppContext",0,c,"initialSubscriptionPricing",0,{},"useOptionalStoreUserInfo",0,()=>(0,r.useContext)(f),"useStoreActions",0,()=>g((0,r.useContext)(m),"useStoreActions"),"useStoreAppData",0,h,"useStoreAuthor",0,A,"useStoreCart",0,y,"useStoreContext",0,()=>{let e=A(),t=_(),o=T(),n=b(),a=h(),i=y(),s=g((0,r.useContext)(m),"useStoreContext"),l=g((0,r.useContext)(N),"useStoreContext");return(0,r.useMemo)(()=>({...e,...t,...o,...n,...a,...i,...s,...l}),[e,t,o,n,a,i,s,l])},"useStoreDomain",0,b,"useStoreSiteData",0,_,"useStoreUserInfo",0,T])},618566,(e,t,r)=>{t.exports=e.r(976562)},361892,e=>{"use strict";var t=e.i(734155);e.s(["clearSessionCookies",0,()=>{document.cookie="authToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",(0,t.clearFormStorage)()},"getCookie",0,function(e){if("u"<typeof document)return null;let t=`${e}=`,r=document.cookie.split(";");for(let e=0;e<r.length;e++){let o=r[e];for(;" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},"setCookie",0,function(e,t,r=90){if("u"<typeof document)return;let o=new Date;o.setTime(o.getTime()+24*r*36e5);let n=`expires=${o.toUTCString()}`,a="https:"===window.location.protocol?"; Secure":"";document.cookie=`${e}=${t};${n};path=/;SameSite=Lax${a}`}])},810956,e=>{"use strict";e.s(["debounce",0,function(e,t){let r,o=(...o)=>{clearTimeout(r),r=setTimeout(()=>e(...o),t)};return o.cancel=()=>clearTimeout(r),o}])},382634,e=>{"use strict";function t(e){return"u">typeof File&&e instanceof File||"u">typeof Blob&&e instanceof Blob}function r(e){if(t(e))return e;if(Array.isArray(e))return e.map(r);if(e&&"object"==typeof e){let t={};for(let[o,n]of Object.entries(e))t[o]=r(n);return t}return e}let o={EPUB:"application/epub+zip",PDF:"application/pdf",TXT:"text/plain",MOBI:"application/x-mobipocket-ebook",MP3:"audio/mpeg",M4B:"audio/mp4",ZIP:"application/zip"};async function n(e){try{let t=await e.arrayBuffer(),r=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(r)).map(e=>e.toString(16).padStart(2,"0")).join("")}catch(e){throw console.error("Error calculating SHA-256 checksum:",e),Error("Failed to calculate file checksum")}}e.s(["calculateSha256Checksum",0,n,"clonePreservingFiles",0,r,"formatFileSize",0,function(e,t=2){if(0===e)return"0 Bytes";let r=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,r)).toFixed(t<0?0:t))+" "+["Bytes","KB","MB","GB","TB"][r]},"getContentType",0,function(e,t){let r=o[e];return r||(t.type?t.type:"application/octet-stream")},"getStringByteSize",0,function(e){return new Blob([e]).size},"mergePreservingFiles",0,function e(o,n){let a=r(o),i=r(n),s={...a};for(let[r,o]of Object.entries(i)){let n=Object.prototype.hasOwnProperty.call(a,r)?a[r]:void 0;Array.isArray(n)&&Array.isArray(o)?s[r]=o:n&&"object"==typeof n&&o&&"object"==typeof o&&!t(o)?s[r]=e(n,o):s[r]=o}return s},"sanitizeFilenameForS3",0,function(e){return e.normalize("NFC").replace(/[–—]/g,"-").replace(/\s+/g,"_").replace(/[^A-Za-z0-9._~-]/g,"_").replace(/_+/g,"_")||"file"},"stripFilesForStorage",0,function(e){let r=e=>{if(!t(e)){if(Array.isArray(e))return e.map(r);if(e&&"object"==typeof e){let t={};for(let[o,n]of Object.entries(e)){let e=r(n);void 0!==e&&(t[o]=e)}return t}return e}};return r(e)}])},51601,e=>{"use strict";let t,r,o,n,a,i=(e,t)=>t.some(t=>e instanceof t),s=new WeakMap,l=new WeakMap,u=new WeakMap,c={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return s.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return d(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function d(e){if(e instanceof IDBRequest){let t;return t=new Promise((t,r)=>{let o=()=>{e.removeEventListener("success",n),e.removeEventListener("error",a)},n=()=>{t(d(e.result)),o()},a=()=>{r(e.error),o()};e.addEventListener("success",n),e.addEventListener("error",a)}),u.set(t,e),t}if(l.has(e))return l.get(e);let t=function(e){if("function"==typeof e)return(n||(n=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(S(this),t),d(this.request)}:function(...t){return d(e.apply(S(this),t))};return(e instanceof IDBTransaction&&function(e){if(s.has(e))return;let t=new Promise((t,r)=>{let o=()=>{e.removeEventListener("complete",n),e.removeEventListener("error",a),e.removeEventListener("abort",a)},n=()=>{t(),o()},a=()=>{r(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",n),e.addEventListener("error",a),e.addEventListener("abort",a)});s.set(e,t)}(e),i(e,o||(o=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(e,c):e}(e);return t!==e&&(l.set(e,t),u.set(t,e)),t}let S=e=>u.get(e),f=["get","getKey","getAll","getAllKeys","count"],I=["put","add","delete","clear"],O=new Map;function p(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(O.get(t))return O.get(t);let r=t.replace(/FromIndex$/,""),o=t!==r,n=I.includes(r);if(!(r in(o?IDBIndex:IDBObjectStore).prototype)||!(n||f.includes(r)))return;let a=async function(e,...t){let a=this.transaction(e,n?"readwrite":"readonly"),i=a.store;
2return o&&(i=i.index(t.shift())),(await Promise.all([i[r](...t),n&&a.done]))[0]};return O.set(t,a),a}c={...t=c,get:(e,r,o)=>p(e,r)||t.get(e,r,o),has:(e,r)=>!!p(e,r)||t.has(e,r)};let m=["continue","continuePrimaryKey","advance"],N={},g=new WeakMap,A=new WeakMap,_={get(e,t){if(!m.includes(t))return e[t];let r=N[t];return r||(r=N[t]=function(...e){g.set(this,A.get(this)[t](...e))}),r}};async function*T(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let r=new Proxy(t,_);for(A.set(r,t),u.set(r,S(t));t;)yield r,t=await (g.get(r)||t.continue()),g.delete(r)}function b(e,t){return t===Symbol.asyncIterator&&i(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&i(e,[IDBIndex,IDBObjectStore])}c={...r=c,get:(e,t,o)=>b(e,t)?T:r.get(e,t,o),has:(e,t)=>b(e,t)||r.has(e,t)};let h="appContext";function y(){return a||(a=function(e,{blocked:t,upgrade:r,blocking:o,terminated:n}={}){let a=indexedDB.open(e,1),i=d(a);return r&&a.addEventListener("upgradeneeded",e=>{r(d(a.result),e.oldVersion,e.newVersion,d(a.transaction),e)}),t&&a.addEventListener("blocked",e=>t(e.oldVersion,e.newVersion,e)),i.then(e=>{n&&e.addEventListener("close",()=>n()),o&&e.addEventListener("versionchange",e=>o(e.oldVersion,e.newVersion,e))}).catch(()=>{}),i}("TertuliaAuthorWebsiteBuilderDB",{upgrade(e){e.objectStoreNames.contains(h)||e.createObjectStore(h)}})),a}async function E(e){let t;try{t=await y()}catch(e){throw console.error("IndexedDB initialization failed:",e),e}return t.get(h,e)}async function C(e,t){try{let r,o,n=await y(),a=(r=new WeakSet,(o=JSON.stringify(t,(e,t)=>{if("function"!=typeof t&&"symbol"!=typeof t){if(t&&"object"==typeof t){if(r.has(t))return;r.add(t)}return t}}))?JSON.parse(o):{});return n.put(h,a,e)}catch(e){throw console.error("IndexedDB initialization failed:",e),e}}async function D(e){try{return(await y()).delete(h,e)}catch(e){throw console.error("IndexedDB initialization failed:",e),e}}e.s(["getAppContext",0,E,"removeAppContext",0,D,"setAppContext",0,C],51601)},880368,e=>{"use strict";e.s(["getByPath",0,function(e,t){let r=t.split("."),o=e;for(let e of r){if(null==o||"object"!=typeof o)return;o=o[e]}return o},"setByPath",0,({object:e,path:t,value:r})=>{let o=t.split("."),n=(e,t=0)=>{let a=o[t];return{...e,[a]:t===o.length-1?r:n(e?.[a]??{},t+1)}};return n(e)},"updateItemByPath",0,function(e,t,r,o){return function(e,t,r){let o=t.split("."),n=JSON.parse(JSON.stringify(e)),a=n;for(let e=0;e<o.length-1;e++){let t=o[e];t in a&&"object"==typeof a[t]&&null!==a[t]||(a[t]={}),a=a[t]}let i=o[o.length-1];return a[i]=r(a[i]),n}(e,t,(e=[])=>(function(e=[],t,r="id"){return e.map(e=>e[r]===t[r]?{...e,...t}:e)})(e,r,o))}])},430704,e=>{"use strict";e.s(["localStorageHelper",0,{set:(e,t)=>{try{window.localStorage.setItem(e,t)}catch(t){console.warn(`Failed to set localStorage item: ${e}`,t)}},get:e=>{try{return window.localStorage.getItem(e)}catch(t){return console.warn(`Failed to get localStorage item: ${e}`,t),null}},remove:e=>{try{window.localStorage.removeItem(e)}catch(t){console.warn(`Failed to remove localStorage item: ${e}`,t)}},clear:()=>{try{window.localStorage.clear()}catch(e){console.warn("Failed to clear localStorage",e)}}},"sessionStorageHelper",0,{set:(e,t)=>{try{window.sessionStorage.setItem(e,t)}catch(t){console.warn(`Failed to set sessionStorage item: ${e}`,t)}},get:e=>{try{return window.sessionStorage.getItem(e)}catch(t){return console.warn(`Failed to get sessionStorage item: ${e}`,t),null}},remove:e=>{try{window.sessionStorage.removeItem(e)}catch(t){console.warn(`Failed to remove sessionStorage item: ${e}`,t)}},clear:()=>{try{window.sessionStorage.clear()}catch(e){console.warn("Failed to clear sessionStorage",e)}}}])}]);
3
4//# debugId=93bbd78d-9f8a-a4e1-1a0f-35451596fa20

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.