PageSourceSearch

https://www.travelalberta.com/_app/immutable/chunks/hS1nRtpB.js

js travelalberta.com collected 2026-10-01 11:27:08 UTC 12,528 bytes, 1 lines download raw bytes

1var J=Object.defineProperty;var B=a=>{throw TypeError(a)};var Z=(a,e,c)=>e in a?J(a,e,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[e]=c;var M=(a,e,c)=>Z(a,typeof e!="symbol"?e+"":e,c),C=(a,e,c)=>e.has(a)||B("Cannot "+c);var W=(a,e,c)=>(C(a,e,"read from private field"),c?c.call(a):e.get(a)),P=(a,e,c)=>e.has(a)?B("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,c);import"./CWj6FrbW.js";import{p as Y,b as H,a as D,d as G,h as T,aF as j,g as k,b8 as z,at as q,bl as X}from"./NhcICrO6.js";import{r as K,p as Q,q as V}from"./L6J4euHc.js";import{b as $,S as tt}from"./Dh2IWB_g.js";import{p as O}from"./zbpUNHdk.js";import{b as et,d as it,f as nt,p as rt,g as ot}from"./DgG6Cw7a.js";import"./fJfAftQ6.js";function st(a,e){return et({projectId:a,dataset:e})}function at(a){const e=/https:\/\/cdn\.sanity\.io\/images\/([a-zA-Z0-9\-]+)\/([a-zA-Z0-9\-]+)/,c=a.match(e);if(c){const w=c[1],S=c[2];return{projectId:w,dataset:S}}else return{projectId:"",dataset:""}}const ct=a=>{var u;if(!((u=a==null?void 0:a.asset)!=null&&u._ref))return;const e=a.asset._ref.split("-")[2],[c,w]=e.split("x").map(Number);if(!c||!w||Number.isNaN(c)||Number.isNaN(w))return;const S=a.crop;if(!S)return{aspectRatio:c/w,height:w,width:c};const v=c*(1-(S.left+S.right)),_=w*(1-(S.top+S.bottom));return{aspectRatio:v/_,height:_,width:v}},lt=1920,ft=.1,dt=[400,600,850,1e3,1150],ut=[360,414,768,1366,1536,1920];function ht(a){var x;const{image:e,maxWidth:c,minimumWidthStep:w=ft,customWidthSteps:S,sizes:v}=a;if(!((x=e==null?void 0:e.asset)!=null&&x._ref))return;const _=typeof c=="number"?c:lt;let u=nt,t=it;if("src"in e&&e.src){const f=at(e.src);f.projectId&&f.dataset&&(u=f.projectId,t=f.dataset)}const o=st(u,t).image(e).fit("max").auto("format").quality(a.quality),n=ct(e),s=[_,...S||(typeof c=="number"?dt:ut)],y=Array.from(new Set([...s,...s.map(f=>f*2),...s.map(f=>f*3)])).sort((f,m)=>f-m).filter(f=>typeof n=="object"&&n!==null&&"width"in n&&n.width?f<=n.width*1.15&&f<=_*3:!1).filter((f,m,h)=>{const p=h[m+1];return p?p/f>w+1:!0}
1);function b(f){let m=o.width(f);return A(m,{})}function A(f,m){let h=f;return m.scaleX&&(a.focalPoint?h=f.fit("crop").crop("focalpoint").focalPoint(a.focalPoint.x,a.focalPoint.y):h=f.fit("crop").crop("center"),h=h.width(m.scaleX),m.scaleY&&(h=h.height(m.scaleY))),h}return{src:o.width(_).url(),srcset:y.map(f=>`${b(f)} ${f}w`).join(", "),sizes:_.toString()==="100vw"?"100vw":v||`(max-width: ${_}px) 100vw, ${_}px`,width:y[0],height:n&&y[0]/n.aspectRatio}}var pt=H("<img/>");function jt(a,e){Y(e,!0);let c=O(e,"loading",3,"lazy"),w=O(e,"classNames",3,""),S=O(e,"quality",3,77),v=z(!1);const _=j(()=>ht({image:e.image,maxWidth:e.maxWidth||e.width,mobile:e.mobile,desktop:e.desktop,quality:S(),sizes:e.sizes})),u=j(()=>{var n;return(n=e.image)!=null&&n.hotspot?`${e.image.hotspot.x*100}% ${e.image.hotspot.y*100}%`:"unset"}),t=j(()=>e.aspectRatio||(e.width&&e.height?e.width/e.height:void 0));var i=pt(),o=()=>k(v,!0);$(i,n=>{var s;return{loading:c(),class:w(),alt:((s=e.image)==null?void 0:s.alt)||"",...T(_),onload:o,"data-loaded":T(v),role:e.role,width:e.width,height:e.height,[tt]:n}},[()=>({"aspect-ratio":T(t)||null,"object-fit":T(t)?"cover":null,"object-position":T(u)})],void 0,"svelte-1riluvw"),K(i),D(a,i),G()}const Ot=Q("",a=>{var c;const e=(c=document.cookie.split("; ").find(w=>w.startsWith("preview=")))==null?void 0:c.split("=")[1];a(e||"")}),Rt=V(rt,a=>{const e=a.url.pathname;if(/^\/(listings|events)\/preview\/[^/]+/.test(e))return!0});var F={exports:{}};(function(a){var e=function(){var c=String.fromCharCode,w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",v={};function _(t,i){if(!v[t]){v[t]={};for(var o=0;o<t.length;o++)v[t][t.charAt(o)]=o}return v[t][i]}var u={compressToBase64:function(t){if(t==null)return"";var i=u._compress(t,6,function(o){return w.charAt(o)});switch(i.length%4){default:case 0:return i;case 1:return i+"===";case 2:return i+"==";case 3:return i+"="}},decompressFromBase64:function(t){return t==null?"":t==""?null:u._decompress(t.length,32,function(i){return _(w,t.charAt(i))})},compressToUTF16:function(t){return t==null?"":u._compress(t,15,function(i){return c(i+32)})+" "},decompressFromUTF16:function(t){return t==null?"":t==""?null:u._decompress(t.length,16384,function(i){return t.charCodeAt(i)-32})},compressToUint8Array:function(t){for(var i=u.compress(t),o=new Uint8Array(i.length*2),n=0,s=i.length;n<s;n++){var y=i.charCodeAt(n);o[n*2]=y>>>8,o[n*2+1]=y%256}return o},decompressFromUint8Array:function(t){if(t==null)return u.decompress(t);for(var i=new Array(t.length/2),o=0,n=i.length;o<n;o++)i[o]=t[o*2]*256+t[o*2+1];var s=[];return i.forEach(function(y){s.push(c(y))}),u.decompress(s.join(""))},compressToEncodedURIComponent:function(t){return t==null?"":u._compress(t,6,function(i){return S.charAt(i)})},decompressFromEncodedURIComponent:function(t){return t==null?"":t==""?null:(t=t.replace(/ /g,"+"),u._decompress(t.length,32,function(i){return _(S,t.charAt(i))}))},compress:function(t){return u._compress(t,16,function(i){return c(i)})},_compress:function(t,i,o){if(t==null)return"";var n,s,y={},b={},A="",x="",f="",m=2,h=3,p=2,g=[],r=0,d=0,l;for(l=0;l<t.length;l+=1)if(A=t.charAt(l),Object.prototype.hasOwnProperty.call(y,A)||(y[A]=h++,b[A]=!0),x=f+A,Object.prototype.hasOwnProperty.call(y,x))f=x;else{if(Object.prototype.hasOwnProperty.call(b,f)){if(f.charCodeAt(0)<256){for(n=0;n<p;n++)r=r<<1,d==i-1?(d=0,g.push(o(r)),r=0):d++;for(s=f.charCodeAt(0),n=0;n<8;n++)r=r<<1|s&1,d==i-1?(d=0,g.push(o(r)),r=0):d++,s=s>>1}else{for(s=1,n=0;n<p;n++)r=r<<1|s,d==i-1?(d=0,g.push(o(r)),r=0):d++,s=0;for(s=f.charCodeAt(0),n=0;n<16;n++)r=r<<1|s&1,d==i-1?(d=0,g.push(o(r)),r=0):d++,s=s>>1}m--,m==0&&(m=Math.pow(2,p),p++),delete b[f]}else for(s=y[f],n=0;n<p;n++)r=r<<1|s&1,d==i-1?(d=0,g.push(o(r)),r=0):d++,s=s>>1;m--,m==0&&(m=Math.pow(2,p),p++),y[x]=h++,f=String(A)}if(f!==""){if(Object.prototype.hasOwnProperty.call(b,f)){if(f.charCodeAt(0)<256){for(n=0;n<p;n++)r=r<<1,d==i-1?(d=0,g.push(o(r)),r=0):d++;for(s=f.charCodeAt(0),n=0;n<8;n++)r=r<<1|s&1,d==i-1?(d=0,g.push(o(r)),r=0):d++,s=s>>1}else{for(s=1,n=0;n<p;n++)r=r<<1|s,d==i-1?(d=0,g.push(o(r)),r=0):d++,s=0;for(s=f.charCodeAt(0),n=0;n<16;n++)r=r<<1|s&1,d==i-1?(d=0,g.push(o(r)),r=0):d++,s=s>>1}m--,m==0&&(m=Math.pow(2,p),p++),delete b[f]}else for(s=y[f],n=0;n<p;n++)r=r<<1|s&1,d==i-1?(d=0,g.push(o(r)),r=0):d++,s=s>>1;m--,m==0&&(m=Math.pow(2,p),p++)}for(s=2,n=0;n<p;n++)r=r<<1|s&1,d==i-1?(d=0,g.push(o(r)),r=0):d++,s=s>>1;for(;;)if(r=r<<1,d==i-1){g.push(o(r));break}else d++;return g.join("")},decompress:function(t){return t==null?"":t==""?null:u._decompress(t.length,32768,function(i){return t.charCodeAt(i)})},_decompress:function(t,i,o){var n=[],s=4,y=4,b=3,A="",x=[],f,m,h,p,g,r,d,l={val:o(0),position:i,index:1};for(f=0;f<3;f+=1)n[f]=f;
1for(h=0,g=Math.pow(2,2),r=1;r!=g;)p=l.val&l.position,l.position>>=1,l.position==0&&(l.position=i,l.val=o(l.index++)),h|=(p>0?1:0)*r,r<<=1;switch(h){case 0:for(h=0,g=Math.pow(2,8),r=1;r!=g;)p=l.val&l.position,l.position>>=1,l.position==0&&(l.position=i,l.val=o(l.index++)),h|=(p>0?1:0)*r,r<<=1;d=c(h);break;case 1:for(h=0,g=Math.pow(2,16),r=1;r!=g;)p=l.val&l.position,l.position>>=1,l.position==0&&(l.position=i,l.val=o(l.index++)),h|=(p>0?1:0)*r,r<<=1;d=c(h);break;case 2:return""}for(n[3]=d,m=d,x.push(d);;){if(l.index>t)return"";for(h=0,g=Math.pow(2,b),r=1;r!=g;)p=l.val&l.position,l.position>>=1,l.position==0&&(l.position=i,l.val=o(l.index++)),h|=(p>0?1:0)*r,r<<=1;switch(d=h){case 0:for(h=0,g=Math.pow(2,8),r=1;r!=g;)p=l.val&l.position,l.position>>=1,l.position==0&&(l.position=i,l.val=o(l.index++)),h|=(p>0?1:0)*r,r<<=1;n[y++]=c(h),d=y-1,s--;break;case 1:for(h=0,g=Math.pow(2,16),r=1;r!=g;)p=l.val&l.position,l.position>>=1,l.position==0&&(l.position=i,l.val=o(l.index++)),h|=(p>0?1:0)*r,r<<=1;n[y++]=c(h),d=y-1,s--;break;case 2:return x.join("")}if(s==0&&(s=Math.pow(2,b),b++),n[d])A=n[d];else if(d===y)A=m+m.charAt(0);else return null;x.push(A),n[y++]=m+A.charAt(0),s--,m=A,s==0&&(s=Math.pow(2,b),b++)}}};return u}();a!=null?a.exports=e:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})})(F);var mt=F.exports;const wt=ot(mt);var L;class gt{constructor(){P(this,L,z(q([])));M(this,"id",0)}get toasts(){return T(W(this,L))}set toasts(e){k(W(this,L),e,!0)}add(e,c){const w=c==null?void 0:c.image,S=typeof w=="string"?w:w==null?void 0:w.src,v={id:this.id++,message:e,image:S,icon:c==null?void 0:c.icon,duration:(c==null?void 0:c.duration)??3e3};this.toasts=[...this.toasts,v],setTimeout(()=>{this.remove(v.id)},v.duration)}remove(e){this.toasts=this.toasts.filter(c=>c.id!==e)}}L=new WeakMap;const R=new gt,{compressToEncodedURIComponent:vt,decompressFromEncodedURIComponent:yt}=wt,E="wishlist";function U(a){return Array.isArray(a)?Array.from(new Set(a.filter(e=>typeof e=="string"||typeof e=="number").map(e=>String(e).trim()).filter(Boolean))):[]}function St(a){let e=z(q(a));const c=new Set;
1function w(){c.forEach(u=>u(T(e)))}function S(u){return u(T(e)),c.add(u),()=>{c.delete(u)}}function v(u){k(e,u,!0),w()}function _(u){v(u(T(e)))}return{subscribe:S,set:v,update:_,get:()=>T(e)}}function I(){if(typeof window>"u")return[];try{const a=localStorage.getItem(E);if(!a)return[];const e=JSON.parse(a);return U(e)}catch{return[]}}function N(){if(typeof window>"u")return!1;const a=window.location.pathname;return a==="/wishlist"||a.startsWith("/wishlist/")}function _t(){const a=St({items:I(),badgeVisible:!1}),{subscribe:e,set:c,update:w,get:S}=a;let v=null;function _(t,i){const o=S();c({items:t,badgeVisible:i??o.badgeVisible})}function u(t,{merge:i=!1,badgeVisible:o}={}){if(!(typeof window>"u"))try{let n=U(t);if(i){const s=U(JSON.parse(localStorage.getItem(E)||"[]"));n=Array.from(new Set([...s,...n]))}localStorage.setItem(E,JSON.stringify(n)),_(n,o)}catch{const n=U(t);localStorage.setItem(E,JSON.stringify(n)),_(n,o)}}return typeof window<"u"&&window.addEventListener("storage",t=>{if(t.key===E)try{const i=U(JSON.parse(t.newValue||"[]"));_(i)}catch{_([])}}),{subscribe:e,getIds(){return[...S().items]},add(t){const i=String(t),o=I();if(o.includes(i))return;const n=[...o,i];u(n,{badgeVisible:!N()})},remove(t){const i=String(t),n=I().filter(s=>s!==i);u(n,{badgeVisible:n.length===0?!1:S().badgeVisible})},toggle(t){const i=String(t),o=I(),n=o.includes(i),s=n?o.filter(y=>y!==i):[...o,i];return u(s,{badgeVisible:n?s.length===0?!1:S().badgeVisible:!N()}),!n},toggleListing(t,i){const o=this.toggle(t),n=i==null?void 0:typeof i=="string"?i:i.src;o?R.add("Added to your wishlist",{image:n}):R.add("Removed from your wishlist",{image:n})},getShareUrl(){if(typeof window>"u")return"";const t=I(),i=vt(JSON.stringify(t)),o=new URL(window.location.origin+"/wishlist");return o.searchParams.set("wishlist",i),o.toString()},async copyShareUrl(){if(typeof window>"u")return"";const t=this.getShareUrl();try{return await navigator.clipboard.writeText(t),v&&clearTimeout(v),v=setTimeout(()=>{v=null},2e3),R.add("Link copied",{image:"/images/check.svg"}),t}catch{return""}},checkImportFromUrl(){return typeof window>"u"?!1:!!new URLSearchParams(window.location.search).get("wishlist")},idsFromEncodedWishlistParam(t){try{const i=yt(t);if(!i)return[];const o=JSON.parse(i);return U(o)}catch{return[]}},getIdsForPageFromUrlOrStorage(){if(typeof window>"u")return[];const i=new URLSearchParams(window.location.search).get("wishlist");if(i){const o=this.idsFromEncodedWishlistParam(i);if(o.length>0)return o}return I()},clearBadge(){w(t=>({...t,badgeVisible:!1}))}}}const kt=_t();var At=X('<svg class="wishlist-icon-svg svelte-p8otoq" width="24" height="22" viewBox="0 0 24 22" fill="none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><path class="wishlist-icon-svg__path svelte-p8otoq" d="M11.6447 20.622C11.5428 20.622 11.4408 20.5806 11.368 20.505L2.27398 10.8588C0.0745302 8.52286 0.0745301 4.72145 2.27884 2.39037C3.35186 1.24922 4.78175 0.625 6.30389 0.625C7.82603 0.625 9.25591 1.2541 10.3289 2.39281L11.6496 3.78999L12.9241 2.44158C13.9971 1.30286 15.427 0.678644 16.9467 0.678644C18.4664 0.678644 19.8987 1.30774 20.9718 2.44158C23.1761 4.77753 23.1761 8.57894 20.9718 10.9149L11.9215 20.505C11.8486 20.5806 11.7515 20.622 11.6447 20.622Z" fill="var(--wishlist-fill, rgba(98, 98, 98, 0.68))" stroke="var(--wishlist-stroke, #ffffff)" stroke-width="1.25"></path></svg>');function zt(a){var e=At();D(a,e)}export{jt as A,zt as W,Rt as a,ht as g,Ot as p,R as t,kt as w};

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.