Publish the prerendered static export (index.html, 404.html, cinema/,
c/, about/, for-cinemas/, for-film-lovers/, assets/, images/, og/,
sitemap.xml, robots.txt) as the site root and remove the React Router
+ Nitro source tree from this branch. Source remains available in
history at 0548772.
Note: public/sw.js here reports VERSION v2.0.5 while the removed source
tree (v2.1.0) was newer, and .gitignore was not carried over.
1 line
7.9 KiB
JavaScript
1 line
7.9 KiB
JavaScript
import{t as e}from"./api-path-DiLUeLL2.js";var t={"agent-workspace.builder.io":`beta.agent-workspace.builder.io`,"builder-agent-native-workspace.netlify.app":`beta.agent-workspace.builder.io`,"analytics.agent-native.com":`beta.analytics.agent-native.com`,"assets.agent-native.com":`beta.assets.agent-native.com`,"brain.agent-native.com":`beta.brain.agent-native.com`,"calendar.agent-native.com":`beta.calendar.agent-native.com`,"chat.agent-native.com":`beta.chat.agent-native.com`,"clips.agent-native.com":`beta.clips.agent-native.com`,"content.agent-native.com":`beta.content.agent-native.com`,"crm.agent-native.com":`beta.crm.agent-native.com`,"design.agent-native.com":`beta.design.agent-native.com`,"dispatch.agent-native.com":`beta.dispatch.agent-native.com`,"factory.agent-native.com":`beta.factory.agent-native.com`,"forms.agent-native.com":`beta.forms.agent-native.com`,"mail.agent-native.com":`beta.mail.agent-native.com`,"plan.agent-native.com":`beta.plan.agent-native.com`,"slides.agent-native.com":`beta.slides.agent-native.com`};function n(e){let n=e?.trim().toLowerCase().replace(/\.$/,``);if(!n)return null;let r=n.replace(/^beta\./,``),i=t[r];return i?{betaHost:i,productionHost:r}:null}function r(e,r){let i=r?.trim().toLowerCase().replace(/\.$/,``);if(!i||n(i)?.betaHost!==i)return e;let a;try{a=new URL(e)}catch{return e}let o=t[a.hostname];return o?(a.hostname=o,a.toString()):e}function i(e){return typeof e==`string`&&e.trim().toLowerCase()===`beta-e2e`}var a=`an_aid`,o=3600*24*30,s=/^[A-Za-z0-9_-]+$/;function ee(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t.length>128||!s.test(t)))return t}function c(e){let t=ee(e);if(t)return`${a}=${encodeURIComponent(t)}; path=/; max-age=${o}; SameSite=Lax`}var te=`an_sid`,ne=1800,l=/^[!-~]+$/;function u(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t.length>127||!l.test(t)))return t}function d(e){let t=u(e);if(t)return`${te}=${encodeURIComponent(t)}; path=/; max-age=${ne}; SameSite=Lax`}var f=new Set(`Africa/Ceuta.America/Cayenne.America/Guadeloupe.America/Marigot.America/Martinique.Asia/Famagusta.Asia/Nicosia.Atlantic/Azores.Atlantic/Canary.Atlantic/Madeira.Atlantic/Reykjavik.Europe/Amsterdam.Europe/Athens.Europe/Berlin.Europe/Bratislava.Europe/Brussels.Europe/Bucharest.Europe/Budapest.Europe/Busingen.Europe/Copenhagen.Europe/Dublin.Europe/Helsinki.Europe/Lisbon.Europe/Ljubljana.Europe/Luxembourg.Europe/Madrid.Europe/Malta.Europe/Mariehamn.Europe/Monaco.Europe/Nicosia.Europe/Oslo.Europe/Paris.Europe/Prague.Europe/Riga.Europe/Rome.Europe/San_Marino.Europe/Sofia.Europe/Stockholm.Europe/Tallinn.Europe/Vaduz.Europe/Vienna.Europe/Vilnius.Europe/Warsaw.Europe/Zagreb.Indian/Mayotte.Indian/Reunion.CET.EET.Eire.Iceland.MET.Poland.Portugal.WET`.split(`.`));[...f];function p(e){return!!e&&f.has(e)}var m=`an_consent`,re=`/_agent-native/auth/consent-region`;function ie(e){let t=/^1\.p([01])\.t([01])$/.exec(e?.trim()??``);return t?{performance:t[1]===`1`,targeting:t[2]===`1`}:null}var h=null;function g(){return h}var _=`an_consent_region`,v=`__AN_CONSENT_QUEUE__`,ae=`__AN_CONSENT_LAYERS__`,oe=Symbol.for(`agent-native.client.consent`);function y(){let e=globalThis;return e[oe]??={region:null,regionPromise:null,waiters:[],listeners:new Set,settingsOpen:!1,pageChoice:null}}function b(e){if(typeof document>`u`)return null;try{for(let t of document.cookie?document.cookie.split(`;`):[]){let n=t.indexOf(`=`);if(n!==-1&&t.slice(0,n).trim()===e)return t.slice(n+1).trim()}}catch{}return null}function x(){return ie(b(`an_consent`))??y().pageChoice??null}Promise.resolve();function S(){try{let e=window.sessionStorage.getItem(_);return e===`consent`||e===`none`?e:null}catch{return null}}function C(e){try{window.sessionStorage.setItem(_,e)}catch{}}function w(){try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;return p(e)?`consent`:`none`}catch{return`consent`}}async function T(){if(g()||typeof fetch!=`function`)return w();try{let t=await fetch(e(re),{credentials:`same-origin`}),n=t.ok?await t.json():{};if(n.region===`consent`||n.region===`none`)return n.region}catch{}return w()}function E(){let e=y();if(e.region)return Promise.resolve(e.region);let t=typeof window>`u`?null:S();return t?(e.region=t,A(),M(),Promise.resolve(t)):e.regionPromise??=T().then(t=>(e.region=t,C(t),A(),M(),t))}function D(){return y().region??S()??w()}function O(e,t){let n=x();return n?n[e]:t===`none`}function se(e){return typeof window>`u`?!1:(y().region||E(),O(e,D()))}function k(e){if(typeof window>`u`)return!1;let t=x();if(t)return t[e];let n=y().region??S();return n?n===`none`:(E(),null)}function ce(e){let t=window,n=t[ae];if(!Array.isArray(n))return;let r=t=>O(t,e)?`granted`:`denied`,i={analytics_storage:r(`performance`),ad_storage:r(`targeting`),ad_user_data:r(`targeting`),ad_personalization:r(`targeting`)};for(let e of n){if(typeof e!=`string`)continue;let n=t[e]??=[];(function(...e){n.push(arguments)})(`consent`,`update`,i)}}function A(){let e=y().region;(e||x())&&ce(e);for(let t of y().waiters){let n=O(t.category,e);n&&!t.ran?(t.ran=!0,j(t.run)):!n&&(e||x())&&(t.ran=!1,t.revoke&&j(t.revoke))}(e||x())&&F?.(!0)}function j(e){try{e()}catch(e){setTimeout(()=>{throw e})}}function M(){for(let e of y().listeners)e()}function N(e,t,n={}){if(typeof window>`u`)return;let r={category:e,run:t,revoke:n.revoke,ran:!1};y().waiters.push(r),O(e,y().region??S()??(n.optimistic?D():null))?(r.ran=!0,j(t)):(y().region||x())&&n.revoke&&j(n.revoke),y().region||E()}var P=null,F=null;function I(e){if(k(`performance`)!==null){e(!0);return}if(!P){let e=[];P=e;let t=t=>{if(P===e){P=null,F=null,window.removeEventListener(`pagehide`,n);for(let n of e)n(t)}},n=()=>t(!1);F=t,window.addEventListener(`pagehide`,n),E().then(()=>t(!0))}P.push(e)}var L=`agent-native-consent`,R=null,z=null;function B(){let e=b(m);e!==R&&(R=e,y().settingsOpen=!1,A(),M())}function V(){if(!(typeof window>`u`||typeof document>`u`)&&(R=b(m),window.addEventListener?.(`focus`,B),document.addEventListener?.(`visibilitychange`,B),typeof BroadcastChannel==`function`))try{z=new BroadcastChannel(L),z.onmessage=B}catch{}}function H(){if(typeof window>`u`)return;let e=window,t=e[v],n=(...e)=>{for(let[t,n]of e)N(t,n);return 0};e[v]={push:n},Array.isArray(t)&&n(...t)}H(),V();var U=`agent-native.anonymous_id`,W=`agent-native.session_id`,le=`agent-native.session_id_pin`,G=`agent-native.session_last_activity`,ue=1800*1e3;function K(){try{if(typeof crypto<`u`&&typeof crypto.randomUUID==`function`)return crypto.randomUUID()}catch{}return Date.now().toString(36)+Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)}function q(e){try{return window.localStorage.getItem(e)}catch{return null}}function J(e,t){try{window.localStorage.setItem(e,t)}catch{}}function Y(e){try{window.localStorage.removeItem(e)}catch{}}function de(e){try{let t=c(e);t&&(document.cookie=t)}catch{}}function X(e){try{let t=d(e);t&&(document.cookie=t)}catch{}}var Z;function fe(){return Z??=K(),Z}var Q=!1;function pe(){Y(U);try{document.cookie=`${a}=; path=/; max-age=0; SameSite=Lax`}catch{}}function me(){if(typeof window>`u`||(Q||(Q=!0,N(`performance`,()=>{},{revoke:pe})),k(`performance`)!==!0))return;let e=q(U);return e||(e=K(),J(U,e)),de(e),e}function he(){if(typeof window>`u`)return;let e=Date.now(),t=q(le);if(t)return J(W,t),J(G,String(e)),X(t),t;let n=q(G),r=n?Number.parseInt(n,10):0,i=q(W),a=!r||Number.isNaN(r)||e-r>ue;return(!i||a)&&(i=K(),J(W,i)),J(G,String(e)),X(i),i}var $=`/api/analytics/replay`,ge=`https://analytics-endpoint.invalid`,_e=[`/api/analytics/track`,`/ssr-track`,`/build-track`,`/config-track`,`/track`];function ve(e,t=ge){let n=/^[a-z][a-z\d+.-]*:/i.test(e),r=e.startsWith(`//`),i;try{i=new URL(e,t)}catch(e){if(e instanceof TypeError)return null;throw e}if(i.protocol!==`http:`&&i.protocol!==`https:`)return null;let a=_e.find(e=>i.pathname.endsWith(e));return i.pathname=a?`${i.pathname.slice(0,-a.length)}${$}`:$,i.hash=``,n?i.toString():r?`//${i.host}${i.pathname}${i.search}`:`${i.pathname}${i.search}`}export{se as a,I as c,r as d,he as i,g as l,fe as n,k as o,me as r,N as s,ve as t,i as u}; |